PageSourceSearch

https://paciente.conexasaude.com.br/assets/vendor-B7LJOUx9.js

js conexasaude.com.br collected 2026-10-01 13:03:20 UTC 775,872 bytes, 87 lines download raw bytes

vendor: 4,130 bytes, lines 1-9
1(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new a.Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="63050fac-7f31-40a5-a5eb-1ad82a27070e",a._sentryDebugIdIdentifier="sentry-dbid-63050fac-7f31-40a5-a5eb-1ad82a27070e")}catch{}})();function _mergeNamespaces(a,i){for(var r=0;r<i.length;r++){const n=i[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in a)){const l=Object.getOwnPropertyDescriptor(n,s);l&&Object.defineProperty(a,s,l.get?l:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var _global=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};_global.SENTRY_RELEASE={id:"2bcb30847061f7234658c850ee1e03a25fa9e3cc"};var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function getAugmentedNamespace(a){if(Object.prototype.hasOwnProperty.call(a,"__esModule"))return a;var i=a.default;if(typeof i=="function"){var r=function n(){return this instanceof n?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};r.prototype=i.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(a).forEach(function(n){var s=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return a[n]}})}),r}var jsxRuntime$1={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var hasRequiredReact_production_min;function requireReact_production_min(){if(hasRequiredReact_production_min)return react_production_min;hasRequiredReact_production_min=1;var a=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),B=Symbol.iterator;function A(p){return p===null||typeof p!="object"?null:(p=B&&p[B]||p["@@iterator"],typeof p=="function"?p:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,E={};function C(p,x,H){this.props=p,this.context=x,this.refs=E,this.updater=H||I}C.prototype.isReactComponent={},C.prototype.setState=function(p,x){if(typeof p!="object"&&typeof p!="function"&&p!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,p,x,"setState")},C.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function $(){}$.prototype=C.prototype;function F(p,x,H){this.props=p,this.context=x,this.refs=E,this.updater=H||I}var M=F.prototype=new $;M.constructor=F,_(M,C.prototype),M.isPureReactComponent=!0;var g=Array.isArray,h=Object.prototype.hasOwnProperty,m={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function T(p,x,H){var ne,ae={},ie=null,xe=null;if(x!=null)for(ne in x.ref!==void 0&&(xe=x.ref),x.key!==void 0&&(ie=""+x.key),x)h.call(x,ne)&&!k.hasOwnProperty(ne)&&(ae[ne]=x[ne]);var Ue=arguments.length-2;if(Ue===1)ae.children=H;else if(1<Ue){for(var qe=Array(Ue),se=0;se<Ue;se++)qe[se]=arguments[se+2];ae.children=qe}if(p&&p.defaultProps)for(ne in Ue=p.defaultProps,Ue)ae[ne]===void 0&&(ae[ne]=Ue[ne]);return{$$typeof:a,type:p,key:ie,ref:xe,props:ae,_owner:m.current}}function w(p,x){return{$$typeof:a,type:p.type,key:x,ref:p.ref,props:p.props,_owner:p._owner}}
vendor: 6,089 bytes, lines 9-17
9function D(p){return typeof p=="object"&&p!==null&&p.$$typeof===a}function z(p){var x={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(H){return x[H]})}var J=/\/+/g;function K(p,x){return typeof p=="object"&&p!==null&&p.key!=null?z(""+p.key):x.toString(36)}function te(p,x,H,ne,ae){var ie=typeof p;(ie==="undefined"||ie==="boolean")&&(p=null);var xe=!1;if(p===null)xe=!0;else switch(ie){case"string":case"number":xe=!0;break;case"object":switch(p.$$typeof){case a:case i:xe=!0}}if(xe)return xe=p,ae=ae(xe),p=ne===""?"."+K(xe,0):ne,g(ae)?(H="",p!=null&&(H=p.replace(J,"$&/")+"/"),te(ae,x,H,"",function(se){return se})):ae!=null&&(D(ae)&&(ae=w(ae,H+(!ae.key||xe&&xe.key===ae.key?"":(""+ae.key).replace(J,"$&/")+"/")+p)),x.push(ae)),1;if(xe=0,ne=ne===""?".":ne+":",g(p))for(var Ue=0;Ue<p.length;Ue++){ie=p[Ue];var qe=ne+K(ie,Ue);xe+=te(ie,x,H,qe,ae)}else if(qe=A(p),typeof qe=="function")for(p=qe.call(p),Ue=0;!(ie=p.next()).done;)ie=ie.value,qe=ne+K(ie,Ue++),xe+=te(ie,x,H,qe,ae);else if(ie==="object")throw x=String(p),Error("Objects are not valid as a React child (found: "+(x==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":x)+"). If you meant to render a collection of children, use an array instead.");return xe}function le(p,x,H){if(p==null)return p;var ne=[],ae=0;return te(p,ne,"","",function(ie){return x.call(H,ie,ae++)}),ne}function fe(p){if(p._status===-1){var x=p._result;x=x(),x.then(function(H){(p._status===0||p._status===-1)&&(p._status=1,p._result=H)},function(H){(p._status===0||p._status===-1)&&(p._status=2,p._result=H)}),p._status===-1&&(p._status=0,p._result=x)}if(p._status===1)return p._result.default;throw p._result}var ve={current:null},q={transition:null},Y={ReactCurrentDispatcher:ve,ReactCurrentBatchConfig:q,ReactCurrentOwner:m};function U(){throw Error("act(...) is not supported in production builds of React.")}return react_production_min.Children={map:le,forEach:function(p,x,H){le(p,function(){x.apply(this,arguments)},H)},count:function(p){var x=0;return le(p,function(){x++}),x},toArray:function(p){return le(p,function(x){return x})||[]},only:function(p){if(!D(p))throw Error("React.Children.only expected to receive a single React element child.");return p}},react_production_min.Component=C,react_production_min.Fragment=r,react_production_min.Profiler=s,react_production_min.PureComponent=F,react_production_min.StrictMode=n,react_production_min.Suspense=S,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,react_production_min.act=U,react_production_min.cloneElement=function(p,x,H){if(p==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+p+".");var ne=_({},p.props),ae=p.key,ie=p.ref,xe=p._owner;if(x!=null){if(x.ref!==void 0&&(ie=x.ref,xe=m.current),x.key!==void 0&&(ae=""+x.key),p.type&&p.type.defaultProps)var Ue=p.type.defaultProps;for(qe in x)h.call(x,qe)&&!k.hasOwnProperty(qe)&&(ne[qe]=x[qe]===void 0&&Ue!==void 0?Ue[qe]:x[qe])}var qe=arguments.length-2;if(qe===1)ne.children=H;else if(1<qe){Ue=Array(qe);for(var se=0;se<qe;se++)Ue[se]=arguments[se+2];ne.children=Ue}return{$$typeof:a,type:p.type,key:ae,ref:ie,props:ne,_owner:xe}},react_production_min.createContext=function(p){return p={$$typeof:f,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},p.Provider={$$typeof:l,_context:p},p.Consumer=p},react_production_min.createElement=T,react_production_min.createFactory=function(p){var x=T.bind(null,p);return x.type=p,x},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(p){return{$$typeof:d,render:p}},react_production_min.isValidElement=D,react_production_min.lazy=function(p){return{$$typeof:N,_payload:{_status:-1,_result:p},_init:fe}},react_production_min.memo=function(p,x){return{$$typeof:R,type:p,compare:x===void 0?null:x}},react_production_min.startTransition=function(p){var x=q.transition;q.transition={};try{p()}finally{q.transition=x}},react_production_min.unstable_act=U,react_production_min.useCallback=function(p,x){return ve.current.useCallback(p,x)},react_production_min.useContext=function(p){return ve.current.useContext(p)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(p){return ve.current.useDeferredValue(p)},react_production_min.useEffect=function(p,x){return ve.current.useEffect(p,x)},react_production_min.useId=function(){return ve.current.useId()},react_production_min.useImperativeHandle=function(p,x,H){return ve.current.useImperativeHandle(p,x,H)},react_production_min.useInsertionEffect=function(p,x){return ve.current.useInsertionEffect(p,x)},react_production_min.useLayoutEffect=function(p,x){return ve.current.useLayoutEffect(p,x)},react_production_min.useMemo=function(p,x){return ve.current.useMemo(p,x)},react_production_min.useReducer=function(p,x,H){return ve.current.useReducer(p,x,H)},react_production_min.useRef=function(p){return ve.current.useRef(p)},react_production_min.useState=function(p){return ve.current.useState(p)},react_production_min.useSyncExternalStore=function(p,x,H){return ve.current.useSyncExternalStore(p,x,H)},react_production_min.useTransition=function(){return ve.current.useTransition()},react_production_min.version="18.3.1",react_production_min}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production_min()),react.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var hasRequiredReactJsxRuntime_production_min;function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1;var a=requireReact(),i=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,s=a.__SECRET_INT
vendor: 5,145 bytes, lines 17-24
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function f(d,S,R){var N,B={},A=null,I=null;R!==void 0&&(A=""+R),S.key!==void 0&&(A=""+S.key),S.ref!==void 0&&(I=S.ref);for(N in S)n.call(S,N)&&!l.hasOwnProperty(N)&&(B[N]=S[N]);if(d&&d.defaultProps)for(N in S=d.defaultProps,S)B[N]===void 0&&(B[N]=S[N]);return{$$typeof:i,type:d,key:A,ref:I,props:B,_owner:s.current}}return reactJsxRuntime_production_min.Fragment=r,reactJsxRuntime_production_min.jsx=f,reactJsxRuntime_production_min.jsxs=f,reactJsxRuntime_production_min}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime$1.exports=requireReactJsxRuntime_production_min()),jsxRuntime$1.exports}var jsxRuntimeExports=requireJsxRuntime();const jsxRuntime=getDefaultExportFromCjs(jsxRuntimeExports),ReactJsxRuntimeNS=_mergeNamespaces({__proto__:null,default:jsxRuntime},[jsxRuntimeExports]);var reactExports=requireReact();const v=getDefaultExportFromCjs(reactExports),j=_mergeNamespaces({__proto__:null,default:v},[reactExports]);function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(a){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var n in r)({}).hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},_extends$2.apply(null,arguments)}var reactIs={exports:{}},reactIs_production_min={};/** @license React v16.13.1
18 * react-is.production.min.js
19 *
20 * Copyright (c) Facebook, Inc. and its affiliates.
21 *
22 * This source code is licensed under the MIT license found in the
23 * LICENSE file in the root directory of this source tree.
24 */var hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var a=typeof Symbol=="function"&&Symbol.for,i=a?Symbol.for("react.element"):60103,r=a?Symbol.for("react.portal"):60106,n=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,l=a?Symbol.for("react.profiler"):60114,f=a?Symbol.for("react.provider"):60109,d=a?Symbol.for("react.context"):60110,S=a?Symbol.for("react.async_mode"):60111,R=a?Symbol.for("react.concurrent_mode"):60111,N=a?Symbol.for("react.forward_ref"):60112,B=a?Symbol.for("react.suspense"):60113,A=a?Symbol.for("react.suspense_list"):60120,I=a?Symbol.for("react.memo"):60115,_=a?Symbol.for("react.lazy"):60116,E=a?Symbol.for("react.block"):60121,C=a?Symbol.for("react.fundamental"):60117,$=a?Symbol.for("react.responder"):60118,F=a?Symbol.for("react.scope"):60119;function M(h){if(typeof h=="object"&&h!==null){var m=h.$$typeof;switch(m){case i:switch(h=h.type,h){case S:case R:case n:case l:case s:case B:return h;default:switch(h=h&&h.$$typeof,h){case d:case N:case _:case I:case f:return h;default:return m}}case r:return m}}}function g(h){return M(h)===R}return reactIs_production_min.AsyncMode=S,reactIs_production_min.ConcurrentMode=R,reactIs_production_min.ContextConsumer=d,reactIs_production_min.ContextProvider=f,reactIs_production_min.Element=i,reactIs_production_min.ForwardRef=N,reactIs_production_min.Fragment=n,reactIs_production_min.Lazy=_,reactIs_production_min.Memo=I,reactIs_production_min.Portal=r,reactIs_production_min.Profiler=l,reactIs_production_min.StrictMode=s,reactIs_production_min.Suspense=B,reactIs_production_min.isAsyncMode=function(h){return g(h)||M(h)===S},reactIs_production_min.isConcurrentMode=g,reactIs_production_min.isContextConsumer=function(h){return M(h)===d},reactIs_production_min.isContextProvider=function(h){return M(h)===f},reactIs_production_min.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===i},reactIs_production_min.isForwardRef=function(h){return M(h)===N},reactIs_production_min.isFragment=function(h){return M(h)===n},reactIs_production_min.isLazy=function(h){return M(h)===_},reactIs_production_min.isMemo=function(h){return M(h)===I},reactIs_production_min.isPortal=function(h){return M(h)===r},reactIs_production_min.isProfiler=function(h){return M(h)===l},reactIs_production_min.isStrictMode=function(h){return M(h)===s},reactIs_production_min.isSuspense=function(h){return M(h)===B},reactIs_production_min.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===R||h===l||h===s||h===B||h===A||typeof h=="object"&&h!==null&&(h.$$typeof===_||h.$$typeof===I||h.$$typeof===f||h.$$typeof===d||h.$$typeof===N||h.$$typeof===C||h.$$typeof===$||h.$$typeof===F||h.$$typeof===E)},reactIs_production_min.typeOf=M,reactIs_production_min}var hasRequiredReactIs;function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,reactIs.exports=requireReactIs_production_min()),reactIs.exports}var hoistNonReactStatics_cjs,hasRequiredHoistNonReactStatics_cjs;function requireHoistNonReactStatics_cjs(){if(hasRequiredHoistNonReactStatics_cjs)return hoistNonReactStatics_cjs;hasRequiredHoistNonReactStatics_cjs=1;var a=requireReactIs(),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0}
vendor: 4,432 bytes, lines 24-32
24,r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[a.ForwardRef]=n,l[a.Memo]=s;function f(_){return a.isMemo(_)?s:l[_.$$typeof]||i}var d=Object.defineProperty,S=Object.getOwnPropertyNames,R=Object.getOwnPropertySymbols,N=Object.getOwnPropertyDescriptor,B=Object.getPrototypeOf,A=Object.prototype;function I(_,E,C){if(typeof E!="string"){if(A){var $=B(E);$&&$!==A&&I(_,$,C)}var F=S(E);R&&(F=F.concat(R(E)));for(var M=f(_),g=f(E),h=0;h<F.length;++h){var m=F[h];if(!r[m]&&!(C&&C[m])&&!(g&&g[m])&&!(M&&M[m])){var k=N(E,m);try{d(_,m,k)}catch{}}}}return _}return hoistNonReactStatics_cjs=I,hoistNonReactStatics_cjs}var hoistNonReactStatics_cjsExports=requireHoistNonReactStatics_cjs();const hoistStatics=getDefaultExportFromCjs(hoistNonReactStatics_cjsExports);var reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/**
25 * @license React
26 * scheduler.production.min.js
27 *
28 * Copyright (c) Facebook, Inc. and its affiliates.
29 *
30 * This source code is licensed under the MIT license found in the
31 * LICENSE file in the root directory of this source tree.
32 */var hasRequiredScheduler_production_min;function requireScheduler_production_min(){return hasRequiredScheduler_production_min||(hasRequiredScheduler_production_min=1,(function(a){function i(q,Y){var U=q.length;q.push(Y);e:for(;0<U;){var p=U-1>>>1,x=q[p];if(0<s(x,Y))q[p]=Y,q[U]=x,U=p;else break e}}function r(q){return q.length===0?null:q[0]}function n(q){if(q.length===0)return null;var Y=q[0],U=q.pop();if(U!==Y){q[0]=U;e:for(var p=0,x=q.length,H=x>>>1;p<H;){var ne=2*(p+1)-1,ae=q[ne],ie=ne+1,xe=q[ie];if(0>s(ae,U))ie<x&&0>s(xe,ae)?(q[p]=xe,q[ie]=U,p=ie):(q[p]=ae,q[ne]=U,p=ne);else if(ie<x&&0>s(xe,U))q[p]=xe,q[ie]=U,p=ie;else break e}}return Y}function s(q,Y){var U=q.sortIndex-Y.sortIndex;return U!==0?U:q.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;a.unstable_now=function(){return l.now()}}else{var f=Date,d=f.now();a.unstable_now=function(){return f.now()-d}}var S=[],R=[],N=1,B=null,A=3,I=!1,_=!1,E=!1,C=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(q){for(var Y=r(R);Y!==null;){if(Y.callback===null)n(R);else if(Y.startTime<=q)n(R),Y.sortIndex=Y.expirationTime,i(S,Y);else break;Y=r(R)}}function g(q){if(E=!1,M(q),!_)if(r(S)!==null)_=!0,fe(h);else{var Y=r(R);Y!==null&&ve(g,Y.startTime-q)}}function h(q,Y){_=!1,E&&(E=!1,$(T),T=-1),I=!0;var U=A;try{for(M(Y),B=r(S);B!==null&&(!(B.expirationTime>Y)||q&&!z());){var p=B.callback;if(typeof p=="function"){B.callback=null,A=B.priorityLevel;var x=p(B.expirationTime<=Y);Y=a.unstable_now(),typeof x=="function"?B.callback=x:B===r(S)&&n(S),M(Y)}else n(S);B=r(S)}if(B!==null)var H=!0;else{var ne=r(R);ne!==null&&ve(g,ne.startTime-Y),H=!1}return H}finally{B=null,A=U,I=!1}}var m=!1,k=null,T=-1,w=5,D=-1;function z(){return!(a.unstable_now()-D<w)}function J(){if(k!==null){var q=a.unstable_now();D=q;var Y=!0;try{Y=k(!0,q)}finally{Y?K():(m=!1,k=null)}}else m=!1}var K;if(typeof F=="function")K=function(){F(J)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,le=te.port2;te.port1.onmessage=J,K=function(){le.postMessage(null)}}else K=function(){C(J,0)};function fe(q){k=q,m||(m=!0,K())}function ve(q,Y){T=C(function(){q(a.unstable_now())},Y)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(q){q.callback=null},a.unstable_continueExecution=function(){_||I||(_=!0,fe(h))},a.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<q?Math.floor(1e3/q):5},a.unstable_getCurrentPriorityLevel=function(){return A},a.unstable_getFirstCallbackNode=function(){return r(S)},a.unstable_next=function(q){switch(A){case 1:case 2:case 3:var Y=3;break;default:Y=A}var U=A;A=Y;try{return q()}finally{A=U}
vendor: 49,269 bytes, lines 32-45
32},a.unstable_pauseExecution=function(){},a.unstable_requestPaint=function(){},a.unstable_runWithPriority=function(q,Y){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var U=A;A=q;try{return Y()}finally{A=U}},a.unstable_scheduleCallback=function(q,Y,U){var p=a.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?p+U:p):U=p,q){case 1:var x=-1;break;case 2:x=250;break;case 5:x=1073741823;break;case 4:x=1e4;break;default:x=5e3}return x=U+x,q={id:N++,callback:Y,priorityLevel:q,startTime:U,expirationTime:x,sortIndex:-1},U>p?(q.sortIndex=U,i(R,q),r(S)===null&&q===r(R)&&(E?($(T),T=-1):E=!0,ve(g,U-p))):(q.sortIndex=x,i(S,q),_||I||(_=!0,fe(h))),q},a.unstable_shouldYield=z,a.unstable_wrapCallback=function(q){var Y=A;return function(){var U=A;A=Y;try{return q.apply(this,arguments)}finally{A=U}}}})(scheduler_production_min)),scheduler_production_min}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production_min()),scheduler.exports}/**
33 * @license React
34 * react-dom.production.min.js
35 *
36 * Copyright (c) Facebook, Inc. and its affiliates.
37 *
38 * This source code is licensed under the MIT license found in the
39 * LICENSE file in the root directory of this source tree.
40 */var hasRequiredReactDom_production_min;function requireReactDom_production_min(){if(hasRequiredReactDom_production_min)return reactDom_production_min;hasRequiredReactDom_production_min=1;var a=requireReact(),i=requireScheduler();function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o]);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 n=new Set,s={};function l(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(s[e]=t,e=0;e<t.length;e++)n.add(t[e])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),S=Object.prototype.hasOwnProperty,R=/^[: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]*$/,N={},B={};function A(e){return S.call(B,e)?!0:S.call(N,e)?!1:R.test(e)?B[e]=!0:(N[e]=!0,!1)}function I(e,t,o,c){if(o!==null&&o.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return c?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _(e,t,o,c){if(t===null||typeof t>"u"||I(e,t,o,c))return!0;if(c)return!1;if(o!==null)switch(o.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function E(e,t,o,c,y,O,re){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=c,this.attributeNamespace=y,this.mustUseProperty=o,this.propertyName=e,this.type=t,this.sanitizeURL=O,this.removeEmptyString=re}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new E(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];C[t]=new E(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new E(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C[e]=new E(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){C[e]=new E(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new E(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){C[e]=new E(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){C[e]=new E(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){C[e]=new E(e,5,!1,e.toLowerCase(),null,!1,!1)});var $=/[\-:]([a-z])/g;function F(e){return e[1].toUpperCase()}"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($,F);C[t]=new E(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($,F);C[t]=new E(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($,F);C[t]=new E(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){C[e]=new E(e,1,!1,e.toLowerCase(),null,!1,!1)}),C.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){C[e]=new E(e,1,!1,e.toLowerCase(),null,!0,!0)});function M(e,t,o,c){var y=C.hasOwnProperty(t)?C[t]:null;(y!==null?y.type!==0:c||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_(t,o,y,c)&&(o=null),c||y===null?A(t)&&(o===null?e.removeAttribute(t):e.setAttribute(t,""+o)):y.mustUseProperty?e[y.propertyName]=o===null?y.type===3?!1:"":o:(t=y.attributeName,c=y.attributeNamespace,o===null?e.removeAttribute(t):(y=y.type,o=y===3||y===4&&o===!0?"":""+o,c?e.setAttributeNS(c,t,o):e.setAttribute(t,o))))}var g=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,h=Symbol.for("react.element"),m=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),z=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),ve=Symbol.for("react.offscreen"),q=Symbol.iterator;function Y(e){return e===null||typeof e!="object"?null:(e=q&&e[q]||e["@@iterator"],typeof e=="function"?e:null)}var U=Object.assign,p;function x(e){if(p===void 0)try{throw Error()}catch(o){var t=o.stack.trim().match(/\n( *(at )?)/);p=t&&t[1]||""}return`
41`+p+e}var H=!1;function ne(e,t){if(!e||H)return"";H=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(Xe){var c=Xe}Reflect.construct(e,[],t)}else{try{t.call()}catch(Xe){c=Xe}e.call(t.prototype)}else{try{throw Error()}catch(Xe){c=Xe}e()}}catch(Xe){if(Xe&&c&&typeof Xe.stack=="string"){for(var y=Xe.stack.split(`
42`),O=c.stack.split(`
43`),re=y.length-1,_e=O.length-1;1<=re&&0<=_e&&y[re]!==O[_e];)_e--;for(;1<=re&&0<=_e;re--,_e--)if(y[re]!==O[_e]){if(re!==1||_e!==1)do if(re--,_e--,0>_e||y[re]!==O[_e]){var Ie=`
44`+y[re].replace(" at new "," at ");return e.displayName&&Ie.includes("<anonymous>")&&(Ie=Ie.replace("<anonymous>",e.displayName)),Ie}while(1<=re&&0<=_e);break}}}finally{H=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?x(e):""}function ae(e){switch(e.tag){case 5:return x(e.type);case 16:return x("Lazy");case 13:return x("Suspense");case 19:return x("SuspenseList");case 0:case 2:case 15:return e=ne(e.type,!1),e;case 11:return e=ne(e.type.render,!1),e;case 1:return e=ne(e.type,!0),e;default:return""}}function ie(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case m:return"Portal";case w:return"Profiler";case T:return"StrictMode";case K:return"Suspense";case te:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case z:return(e.displayName||"Context")+".Consumer";case D:return(e._context.displayName||"Context")+".Provider";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case le:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}function xe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ie(t);case 8:return t===T?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ue(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function se(e){var t=qe(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),c=""+e[t];if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var y=o.get,O=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return y.call(this)},set:function(re){c=""+re,O.call(this,re)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return c},setValue:function(re){c=""+re},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Q(e){e._valueTracker||(e._valueTracker=se(e))}function L(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),c="";return e&&(c=qe(e)?e.checked?"true":"false":e.value),e=c,e!==o?(t.setValue(e),!0):!1}function P(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function V(e,t){var o=t.checked;return U({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function ee(e,t){var o=t.defaultValue==null?"":t.defaultValue,c=t.checked!=null?t.checked:t.defaultChecked;o=Ue(t.value!=null?t.value:o),e._wrapperState={initialChecked:c,initialValue:o,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function oe(e,t){t=t.checked,t!=null&&M(e,"checked",t,!1)}function pe(e,t){oe(e,t);var o=Ue(t.value),c=t.type;if(o!=null)c==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(c==="submit"||c==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Oe(e,t.type,o):t.hasOwnProperty("defaultValue")&&Oe(e,t.type,Ue(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,o){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var c=t.type;if(!(c!=="submit"&&c!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,o||t===e.value||(e.value=t),e.defaultValue=t}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function Oe(e,t,o){(t!=="number"||P(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Me=Array.isArray;function Fe(e,t,o,c){if(e=e.options,t){t={};for(var y=0;y<o.length;y++)t["$"+o[y]]=!0;for(o=0;o<e.length;o++)y=t.hasOwnProperty("$"+e[o].value),e[o].selected!==y&&(e[o].selected=y),y&&c&&(e[o].defaultSelected=!0)}else{for(o=""+Ue(o),t=null,y=0;y<e.length;y++){if(e[y].value===o){e[y].selected=!0,c&&(e[y].defaultSelected=!0);return}t!==null||e[y].disabled||(t=e[y])}t!==null&&(t.selected=!0)}}function ze(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return U({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ye(e,t){var o=t.value;if(o==null){if(o=t.children,t=t.defaultValue,o!=null){if(t!=null)throw Error(r(92));if(Me(o)){if(1<o.length)throw Error(r(93));o=o[0]}t=o}t==null&&(t=""),o=t}e._wrapperState={initialValue:Ue(o)}}function Je(e,t){var o=Ue(t.value),c=Ue(t.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),t.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),c!=null&&(e.defaultValue=""+c)}function nt(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function tt(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 ct(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?tt(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var lt,Ee=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,o,c,y){MSApp.execUnsafeLocalFunction(function(){return e(t,o,c,y)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(lt=lt||document.createElement("div"),lt.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=lt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Re(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}var Z={animationIterationCount:!0,aspectRatio:!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},he=["Webkit","ms","Moz","O"];Object.keys(Z).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Z[t]=Z[e]})});function ue(e,t,o){return t==null||typeof t=="boolean"||t===""?"":o||typeof t!="number"||t===0||Z.hasOwnProperty(e)&&Z[e]?(""+t).trim():t+"px"}function ye(e,t){e=e.style;for(var o in t)if(t.hasOwnProperty(o)){var c=o.indexOf("--")===0,y=ue(o,t[o],c);o==="float"&&(o="cssFloat"),c?e.setProperty(o,y):e[o]=y}}var me=U({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 de(e,t){if(t){if(me[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!="object")throw Error(r(62))}}function W(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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}}var G=null;function ce(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var we=null,Ce=null,De=null;function Se(e){if(e=un(e)){if(typeof we!="function")throw Error(r(280));var t=e.stateNode;t&&(t=si(t),we(e.stateNode,e.type,t))}}function He(e){Ce?De?De.push(e):De=[e]:Ce=e}function Ne(){if(Ce){var e=Ce,t=De;if(De=Ce=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Ve(e,t){return e(t)}function rt(){}var et=!1;function pt(e,t,o){if(et)return e(t,o);et=!0;try{return Ve(e,t,o)}finally{et=!1,(Ce!==null||De!==null)&&(rt(),Ne())}}function mt(e,t){var o=e.stateNode;if(o===null)return null;var c=si(o);if(c===null)return null;o=c[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":(c=!c.disabled)||(e=e.type,c=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!c;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(r(231,t,typeof o));return o}var xt=!1;if(d)try{var Et={};Object.defineProperty(Et,"passive",{get:function(){xt=!0}}),window.addEventListener("test",Et,Et),window.removeEventListener("test",Et,Et)}catch{xt=!1}function Bt(e,t,o,c,y,O,re,_e,Ie){var Xe=Array.prototype.slice.call(arguments,3);try{t.apply(o,Xe)}catch(st){this.onError(st)}}var er=!1,Kt=null,gr=!1,Jr=null,Zr={onError:function(e){er=!0,Kt=e}};function en(e,t,o,c,y,O,re,_e,Ie){er=!1,Kt=null,Bt.apply(Zr,arguments)}function sn(e,t,o,c,y,O,re,_e,Ie){if(en.apply(this,arguments),er){if(er){var Xe=Kt;er=!1,Kt=null}else throw Error(r(198));gr||(gr=!0,Jr=Xe)}}function Tr(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(o=t.return),e=t.return;while(e)}return t.tag===3?o:null}function Fr(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function br(e){if(Tr(e)!==e)throw Error(r(188))}function Pe(e){var t=e.alternate;if(!t){if(t=Tr(e),t===null)throw Error(r(188));return t!==e?null:e}for(var o=e,c=t;;){var y=o.return;if(y===null)break;var O=y.alternate;if(O===null){if(c=y.return,c!==null){o=c;continue}break}if(y.child===O.child){for(O=y.child;O;){if(O===o)return br(y),e;if(O===c)return br(y),t;O=O.sibling}throw Error(r(188))}if(o.return!==c.return)o=y,c=O;else{for(var re=!1,_e=y.child;_e;){if(_e===o){re=!0,o=y,c=O;break}if(_e===c){re=!0,c=y,o=O;break}_e=_e.sibling}if(!re){for(_e=O.child;_e;){if(_e===o){re=!0,o=O,c=y;break}if(_e===c){re=!0,c=O,o=y;break}_e=_e.sibling}if(!re)throw Error(r(189))}}if(o.alternate!==c)throw Error(r(190))}if(o.tag!==3)throw Error(r(188));return o.stateNode.current===o?e:t}function Ke(e){return e=Pe(e),e!==null?Ae(e):null}function Ae(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ae(e);if(t!==null)return t;e=e.sibling}return null}var je=i.unstable_scheduleCallback,dt=i.unstable_cancelCallback,ht=i.unstable_shouldYield,Pt=i.unstable_requestPaint,gt=i.unstable_now,$t=i.unstable_getCurrentPriorityLevel,Wt=i.unstable_ImmediatePriority,fr=i.unstable_UserBlockingPriority,Gt=i.unstable_NormalPriority,jr=i.unstable_LowPriority,Sr=i.unstable_IdlePriority,Mr=null,Mt=null;function yn(e){if(Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(Mr,e,void 0,(e.current.flags&128)===128)}catch{}}var or=Math.clz32?Math.clz32:gn,$n=Math.log,On=Math.LN2;function gn(e){return e>>>=0,e===0?32:31-($n(e)/On|0)|0}var pr=64,Ht=4194304;function kr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bn(e,t){var o=e.pendingLanes;if(o===0)return 0;var c=0,y=e.suspendedLanes,O=e.pingedLanes,re=o&268435455;if(re!==0){var _e=re&~y;_e!==0?c=kr(_e):(O&=re,O!==0&&(c=kr(O)))}else re=o&~y,re!==0?c=kr(re):O!==0&&(c=kr(O));if(c===0)return 0;if(t!==0&&t!==c&&(t&y)===0&&(y=c&-c,O=t&-t,y>=O||y===16&&(O&4194240)!==0))return t;if((c&4)!==0&&(c|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=c;0<t;)o=31-or(t),y=1<<o,c|=e[o],t&=~y;return c}function Wn(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function aa(e,t){for(var o=e.suspendedLanes,c=e.pingedLanes,y=e.expirationTimes,O=e.pendingLanes;0<O;){var re=31-or(O),_e=1<<re,Ie=y[re];Ie===-1?((_e&o)===0||(_e&c)!==0)&&(y[re]=Wn(_e,t)):Ie<=t&&(e.expiredLanes|=_e),O&=~_e}}function In(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Si(){var e=pr;return pr<<=1,(pr&4194240)===0&&(pr=64),e}function Da(e){for(var t=[],o=0;31>o;o++)t.push(e);return t}function Vn(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-or(t),e[t]=o}function Xi(e,t){var o=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var c=e.eventTimes;for(e=e.expirationTimes;0<o;){var y=31-or(o),O=1<<y;t[y]=0,c[y]=-1,e[y]=-1,o&=~O}}function Na(e,t){var o=e.entangledLanes|=t;for(e=e.entanglements;o;){var c=31-or(o),y=1<<c;y&t|e[c]&t&&(e[c]|=t),o&=~y}}var Nt=0;function Ua(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var _i,ja,wi,Fn,Ba,$a=!1,zn=[],_r=null,wr=null,Lr=null,Mn=new Map,Hn=new Map,Br=[],Wa="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 ia(e,t){switch(e){case"focusin":case"focusout":_r=null;break;case"dragenter":case"dragleave":wr=null;break;case"mouseover":case"mouseout":Lr=null;break;case"pointerover":case"pointerout":Mn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hn.delete(t.pointerId)}}function Gn(e,t,o,c,y,O){return e===null||e.nativeEvent!==O?(e={blockedOn:t,domEventName:o,eventSystemFlags:c,nativeEvent:O,targetContainers:[y]},t!==null&&(t=un(t),t!==null&&ja(t)),e):(e.eventSystemFlags|=c,t=e.targetContainers,y!==null&&t.indexOf(y)===-1&&t.push(y),e)}function Ai(e,t,o,c,y){switch(t){case"focusin":return _r=Gn(_r,e,t,o,c,y),!0;case"dragenter":return wr=Gn(wr,e,t,o,c,y),!0;case"mouseover":return Lr=Gn(Lr,e,t,o,c,y),!0;case"pointerover":var O=y.pointerId;return Mn.set(O,Gn(Mn.get(O)||null,e,t,o,c,y)),!0;case"gotpointercapture":return O=y.pointerId,Hn.set(O,Gn(Hn.get(O)||null,e,t,o,c,y)),!0}return!1}function Pi(e){var t=Cr(e.target);if(t!==null){var o=Tr(t);if(o!==null){if(t=o.tag,t===13){if(t=Fr(o),t!==null){e.blockedOn=t,Ba(e.priority,function(){wi(o)});return}}else if(t===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $e(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var o=oa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var c=new o.constructor(o.type,o);G=c,o.target.dispatchEvent(c),G=null}else return t=un(o),t!==null&&ja(t),e.blockedOn=o,!1;t.shift()}return!0}function ge(e,t,o){$e(e)&&o.delete(t)}function ke(){$a=!1,_r!==null&&$e(_r)&&(_r=null),wr!==null&&$e(wr)&&(wr=null),Lr!==null&&$e(Lr)&&(Lr=null),Mn.forEach(ge),Hn.forEach(ge)}function Qe(e,t){e.blockedOn===t&&(e.blockedOn=null,$a||($a=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,ke)))}function it(e){function t(y){return Qe(y,e)}if(0<zn.length){Qe(zn[0],e);for(var o=1;o<zn.length;o++){var c=zn[o];c.blockedOn===e&&(c.blockedOn=null)}}for(_r!==null&&Qe(_r,e),wr!==null&&Qe(wr,e),Lr!==null&&Qe(Lr,e),Mn.forEach(t),Hn.forEach(t),o=0;o<Br.length;o++)c=Br[o],c.blockedOn===e&&(c.blockedOn=null);for(;0<Br.length&&(o=Br[0],o.blockedOn===null);)Pi(o),o.blockedOn===null&&Br.shift()}var Ct=g.ReactCurrentBatchConfig,Vt=!0;function nr(e,t,o,c){var y=Nt,O=Ct.transition;Ct.transition=null;try{Nt=1,Va(e,t,o,c)}finally{Nt=y,Ct.transition=O}}function $r(e,t,o,c){var y=Nt,O=Ct.transition;Ct.transition=null;try{Nt=4,Va(e,t,o,c)}finally{Nt=y,Ct.transition=O}}function Va(e,t,o,c){if(Vt){var y=oa(e,t,o,c);if(y===null)_a(e,t,c,qn,o),ia(e,c);else if(Ai(y,e,t,o,c))c.stopPropagation();else if(ia(e,c),t&4&&-1<Wa.indexOf(e)){for(;y!==null;){var O=un(y);if(O!==null&&_i(O),O=oa(e,t,o,c),O===null&&_a(e,t,c,qn,o),O===y)break;y=O}y!==null&&c.stopPropagation()}else _a(e,t,c,null,o)}}var qn=null;function oa(e,t,o,c){if(qn=null,e=ce(c),e=Cr(e),e!==null)if(t=Tr(e),t===null)e=null;else if(o=t.tag,o===13){if(e=Fr(t),e!==null)return e;e=null}else if(o===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qn=e,null}function za(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($t()){case Wt:return 1;case fr:return 4;case Gt:case jr:return 16;case Sr:return 536870912;default:return 16}default:return 16}}var Wr=null,sa=null,Ha=null;function Ki(){if(Ha)return Ha;var e,t=sa,o=t.length,c,y="value"in Wr?Wr.value:Wr.textContent,O=y.length;for(e=0;e<o&&t[e]===y[e];e++);var re=o-e;for(c=1;c<=re&&t[o-c]===y[O-c];c++);return Ha=y.slice(e,1<c?1-c:void 0)}function Ga(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Sn(){return!0}function Ti(){return!1}function Er(e){function t(o,c,y,O,re){this._reactName=o,this._targetInst=y,this.type=c,this.nativeEvent=O,this.target=re,this.currentTarget=null;for(var _e in e)e.hasOwnProperty(_e)&&(o=e[_e],this[_e]=o?o(O):O[_e]);return this.isDefaultPrevented=(O.defaultPrevented!=null?O.defaultPrevented:O.returnValue===!1)?Sn:Ti,this.isPropagationStopped=Ti,this}return U(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Sn)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Sn)},persist:function(){},isPersistent:Sn}),t}var la={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ua=Er(la),qa=U({},la,{view:0,detail:0}),Ls=Er(qa),ki,Qi,Ln,ca=U({},qa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xa,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ln&&(Ln&&e.type==="mousemove"?(ki=e.screenX-Ln.screenX,Qi=e.screenY-Ln.screenY):Qi=ki=0,Ln=e),ki)},movementY:function(e){return"movementY"in e?e.movementY:Qi}}),ko=Er(ca),Ds=U({},ca,{dataTransfer:0}),Ji=Er(Ds),Eo=U({},qa,{relatedTarget:0}),fa=Er(Eo),Zi=U({},la,{animationName:0,elapsedTime:0,pseudoElement:0}),Yn=Er(Zi),Ya=U({},la,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ei=Er(Ya),Co=U({},la,{data:0}),Ro=Er(Co),eo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ns={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"},xo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ci(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xo[e])?!!t[e]:!1}function Xa(){return Ci}var Oo=U({},qa,{key:function(e){if(e.key){var t=eo[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ga(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ns[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xa,charCode:function(e){return e.type==="keypress"?Ga(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ga(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Io=Er(Oo),Us=U({},ca,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fo=Er(Us),to=U({},qa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xa}),Mo=Er(to),js=U({},la,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bs=Er(js),$s=U({},ca,{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}),Lo=Er($s),da=[9,13,27,32],ha=d&&"CompositionEvent"in window,_n=null;d&&"documentMode"in document&&(_n=document.documentMode);var Do=d&&"TextEvent"in window&&!_n,Ka=d&&(!ha||_n&&8<_n&&11>=_n),pa=" ",Qa=!1;function wn(e,t){switch(e){case"keyup":return da.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ri(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function ma(e,t){switch(e){case"compositionend":return Ri(t);case"keypress":return t.which!==32?null:(Qa=!0,pa);case"textInput":return e=t.data,e===pa&&Qa?null:e;default:return null}}function No(e,t){if(va)return e==="compositionend"||!ha&&wn(e,t)?(e=Ki(),Ha=sa=Wr=null,va=!1,e):null;switch(e){case"paste":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 Ka&&t.locale!=="ko"?null:t.data;default:return null}}var Ws={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 Ja(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ws[e.type]:t==="textarea"}function Uo(e,t,o,c){He(c),t=u(t,"onChange"),0<t.length&&(o=new ua("onChange","change",null,o,c),e.push({event:o,listeners:t}))}var Za=null,ei=null;function Vs(e){uo(e,0)}function xi(e){var t=cn(e);if(L(t))return e}function zs(e,t){if(e==="change")return t}var jo=!1;if(d){var ro;if(d){var no="oninput"in document;if(!no){var Bo=document.createElement("div");Bo.setAttribute("oninput","return;"),no=typeof Bo.oninput=="function"}ro=no}else ro=!1;jo=ro&&(!document.documentMode||9<document.documentMode)}function $o(){Za&&(Za.detachEvent("onpropertychange",ao),ei=Za=null)}function ao(e){if(e.propertyName==="value"&&xi(ei)){var t=[];Uo(t,ei,e,ce(e)),pt(Vs,t)}}function Hs(e,t,o){e==="focusin"?($o(),Za=t,ei=o,Za.attachEvent("onpropertychange",ao)):e==="focusout"&&$o()}function Gs(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xi(ei)}function Dn(e,t){if(e==="click")return xi(t)}function io(e,t){if(e==="input"||e==="change")return xi(t)}function Wo(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dr=typeof Object.is=="function"?Object.is:Wo;function Vr(e,t){if(Dr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var o=Object.keys(e),c=Object.keys(t);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var y=o[c];if(!S.call(t,y)||!Dr(e[y],t[y]))return!1}return!0}function An(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zr(e,t){var o=An(e);e=0;for(var c;o;){if(o.nodeType===3){if(c=e+o.textContent.length,e<=t&&c>=t)return{node:o,offset:t-e};e=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=An(o)}}function ya(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ya(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function oo(){for(var e=window,t=P();t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href=="string"}catch{o=!1}if(o)e=t.contentWindow;else break;t=P(e.document)}return t}function Pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Vo(e){var t=oo(),o=e.focusedElem,c=e.selectionRange;if(t!==o&&o&&o.ownerDocument&&ya(o.ownerDocument.documentElement,o)){if(c!==null&&Pn(o)){if(t=c.start,e=c.end,e===void 0&&(e=t),"selectionStart"in o)o.selectionStart=t,o.selectionEnd=Math.min(e,o.value.length);else if(e=(t=o.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var y=o.textContent.length,O=Math.min(c.start,y);c=c.end===void 0?O:Math.min(c.end,y),!e.extend&&O>c&&(y=c,c=O,O=y),y=zr(o,O);var re=zr(o,c);y&&re&&(e.rangeCount!==1||e.anchorNode!==y.node||e.anchorOffset!==y.offset||e.focusNode!==re.node||e.focusOffset!==re.offset)&&(t=t.createRange(),t.setStart(y.node,y.offset),e.removeAllRanges(),O>c?(e.addRange(t),e.extend(re.node,re.offset)):(t.setEnd(re.node,re.offset),e.addRange(t)))}}for(t=[],e=o;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<t.length;o++)e=t[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var zo=d&&"documentMode"in document&&11>=document.documentMode,Tn=null,Oi=null,ga=null,Ii=!1;function ti(e,t,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Ii||Tn==null||Tn!==P(c)||(c=Tn,"selectionStart"in c&&Pn(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),ga&&Vr(ga,c)||(ga=c,c=u(Oi,"onSelect"),0<c.length&&(t=new ua("onSelect","select",null,t,o),e.push({event:t,listeners:c}),t.target=Tn)))}function ri(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}var Xn={animationend:ri("Animation","AnimationEnd"),animationiteration:ri("Animation","AnimationIteration"),animationstart:ri("Animation","AnimationStart"),transitionend:ri("Transition","TransitionEnd")},so={},Ho={};d&&(Ho=document.createElement("div").style,"AnimationEvent"in window||(delete Xn.animationend.animation,delete Xn.animationiteration.animation,delete Xn.animationstart.animation),"TransitionEvent"in window||delete Xn.transitionend.transition);function Fi(e){if(so[e])return so[e];if(!Xn[e])return e;var t=Xn[e],o;for(o in t)if(t.hasOwnProperty(o)&&o in Ho)return so[e]=t[o];return e}var Go=Fi("animationend"),ni=Fi("animationiteration"),qo=Fi("animationstart"),lo=Fi("transitionend"),ai=new Map,ii="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function tn(e,t){ai.set(e,t),l(t,[e])}for(var Kn=0;Kn<ii.length;Kn++){var ba=ii[Kn],qs=ba.toLowerCase(),Ys=ba[0].toUpperCase()+ba.slice(1);tn(qs,"on"+Ys)}tn(Go,"onAnimationEnd"),tn(ni,"onAnimationIteration"),tn(qo,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(lo,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Yo=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sa));function Xo(e,t,o){var c=e.type||"unknown-event";e.currentTarget=o,sn(c,t,void 0,e),e.currentTarget=null}function uo(e,t){t=(t&4)!==0;for(var o=0;o<e.length;o++){var c=e[o],y=c.event;c=c.listeners;e:{var O=void 0;if(t)for(var re=c.length-1;0<=re;re--){var _e=c[re],Ie=_e.instance,Xe=_e.currentTarget;if(_e=_e.listener,Ie!==O&&y.isPropagationStopped())break e;Xo(y,_e,Xe),O=Ie}else for(re=0;re<c.length;re++){if(_e=c[re],Ie=_e.instance,Xe=_e.currentTarget,_e=_e.listener,Ie!==O&&y.isPropagationStopped())break e;Xo(y,_e,Xe),O=Ie}}}if(gr)throw e=Jr,gr=!1,Jr=null,e}function qt(e,t){var o=t[Dt];o===void 0&&(o=t[Dt]=new Set);var c=e+"__bubble";o.has(c)||(Ko(t,e,2,!1),o.add(c))}function co(e,t,o){var c=0;t&&(c|=4),Ko(o,e,c,t)}var Mi="_reactListening"+Math.random().toString(36).slice(2);function oi(e){if(!e[Mi]){e[Mi]=!0,n.forEach(function(o){o!=="selectionchange"&&(Yo.has(o)||co(o,!1,e),co(o,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mi]||(t[Mi]=!0,co("selectionchange",!1,t))}}function Ko(e,t,o,c){switch(za(t)){case 1:var y=nr;break;case 4:y=$r;break;default:y=Va}o=y.bind(null,t,o,e),y=void 0,!xt||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(y=!0),c?y!==void 0?e.addEventListener(t,o,{capture:!0,passive:y}):e.addEventListener(t,o,!0):y!==void 0?e.addEventListener(t,o,{passive:y}):e.addEventListener(t,o,!1)}function _a(e,t,o,c,y){var O=c;if((t&1)===0&&(t&2)===0&&c!==null)e:for(;;){if(c===null)return;var re=c.tag;if(re===3||re===4){var _e=c.stateNode.containerInfo;if(_e===y||_e.nodeType===8&&_e.parentNode===y)break;if(re===4)for(re=c.return;re!==null;){var Ie=re.tag;if((Ie===3||Ie===4)&&(Ie=re.stateNode.containerInfo,Ie===y||Ie.nodeType===8&&Ie.parentNode===y))return;re=re.return}for(;_e!==null;){if(re=Cr(_e),re===null)return;if(Ie=re.tag,Ie===5||Ie===6){c=O=re;continue e}_e=_e.parentNode}}c=c.return}pt(function(){var Xe=O,st=ce(o),ut=[];e:{var ot=ai.get(e);if(ot!==void 0){var yt=ua,St=e;switch(e){case"keypress":if(Ga(o)===0)break e;case"keydown":case"keyup":yt=Io;break;case"focusin":St="focus",yt=fa;break;case"focusout":St="blur",yt=fa;break;case"beforeblur":case"afterblur":yt=fa;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":yt=ko;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":yt=Ji;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":yt=Mo;break;case Go:case ni:case qo:yt=Yn;break;case lo:yt=Bs;break;case"scroll":yt=Ls;break;case"wheel":yt=Lo;break;case"copy":case"cut":case"paste":yt=Ei;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":yt=Fo}var _t=(t&4)!==0,sr=!_t&&e==="scroll",We=_t?ot!==null?ot+"Capture":null:ot;_t=[];for(var Le=Xe,Ge;Le!==null;){Ge=Le;var ft=Ge.stateNode;if(Ge.tag===5&&ft!==null&&(Ge=ft,We!==null&&(ft=mt(Le,We),ft!=null&&_t.push(wa(Le,ft,Ge)))),sr)break;Le=Le.return}0<_t.length&&(ot=new yt(ot,St,null,o,st),ut.push({event:ot,listeners:_t}))}}if((t&7)===0){e:{if(ot=e==="mouseover"||e==="pointerover",yt=e==="mouseout"||e==="pointerout",ot&&o!==G&&(St=o.relatedTarget||o.fromElement)&&(Cr(St)||St[At]))break e;if((yt||ot)&&(ot=st.window===st?st:(ot=st.ownerDocument)?ot.defaultView||ot.parentWindow:window,yt?(St=o.relatedTarget||o.toElement,yt=Xe,St=St?Cr(St):null,St!==null&&(sr=Tr(St),St!==sr||St.tag!==5&&St.tag!==6)&&(St=null)):(yt=null,St=Xe),yt!==St)){if(_t=ko,ft="onMouseLeave",We="onMouseEnter",Le="mouse",(e==="pointerout"||e==="pointerover")&&(_t=Fo,ft="onPointerLeave",We="onPointerEnter",Le="pointer"),sr=yt==null?ot:cn(yt),Ge=St==null?ot:cn(St),ot=new _t(ft,Le+"leave",yt,o,st),ot.target=sr,ot.relatedTarget=Ge,ft=null,Cr(st)===Xe&&(_t=new _t(We,Le+"enter",St,o,st),_t.target=Ge,_t.relatedTarget=sr,ft=_t),sr=ft,yt&&St)t:{for(_t=yt,We=St,Le=0,Ge=_t;Ge;Ge=b(Ge))Le++;for(Ge=0,ft=We;ft;ft=b(ft))Ge++;for(;0<Le-Ge;)_t=b(_t),Le--;for(;0<Ge-Le;)We=b(We),Ge--;for(;Le--;){if(_t===We||We!==null&&_t===We.alternate)break t;_t=b(_t),We=b(We)}_t=null}else _t=null;yt!==null&&X(ut,ot,yt,_t,!1),St!==null&&sr!==null&&X(ut,sr,St,_t,!0)}}e:{if(ot=Xe?cn(Xe):window,yt=ot.nodeName&&ot.nodeName.toLowerCase(),yt==="select"||yt==="input"&&ot.type==="file")var wt=zs;else if(Ja(ot))if(jo)wt=io;else{wt=Gs;var Tt=Hs}else(yt=ot.nodeName)&&yt.toLowerCase()==="input"&&(ot.type==="checkbox"||ot.type==="radio")&&(wt=Dn);if(wt&&(wt=wt(e,Xe))){Uo(ut,wt,o,st);break e}Tt&&Tt(e,ot,Xe),e==="focusout"&&(Tt=ot._wrapperState)&&Tt.controlled&&ot.type==="number"&&Oe(ot,"number",ot.value)}switch(Tt=Xe?cn(Xe):window,e){case"focusin":(Ja(Tt)||Tt.contentEditable==="true")&&(Tn=Tt,Oi=Xe,ga=null);break;case"focusout":ga=Oi=Tn=null;break;case"mousedown":Ii=!0;break;case"contextmenu":case"mouseup":case"dragend":Ii=!1,ti(ut,o,st);break;case"selectionchange":if(zo)break;case"keydown":case"keyup":ti(ut,o,st)}var kt;if(ha)e:{switch(e){case"compositionstart":var Rt="onCompositionStart";break e;case"compositionend":Rt="onCompositionEnd";break e;case"compositionupdate":Rt="onCompositionUpdate";break e}Rt=void 0}else va?wn(e,o)&&(Rt="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(Rt="onCompositionStart");Rt&&(Ka&&o.locale!=="ko"&&(va||Rt!=="onCompositionStart"?Rt==="onCompositionEnd"&&va&&(kt=Ki()):(Wr=st,sa="value"in Wr?Wr.value:Wr.textContent,va=!0)),Tt=u(Xe,Rt),0<Tt.length&&(Rt=new Ro(Rt,e,null,o,st),ut.push({event:Rt,listeners:Tt}),kt?Rt.data=kt:(kt=Ri(o),kt!==null&&(Rt.data=kt)))),(kt=Do?ma(e,o):No(e,o))&&(Xe=u(Xe,"onBeforeInput"),0<Xe.length&&(st=new Ro("onBeforeInput","beforeinput",null,o,st),ut.push({event:st,listeners:Xe}),st.data=kt))}uo(ut,t)})}function wa(e,t,o){return{instance:e,listener:t,currentTarget:o}}function u(e,t){for(var o=t+"Capture",c=[];e!==null;){var y=e,O=y.stateNode;y.tag===5&&O!==null&&(y=O,O=mt(e,o),O!=null&&c.unshift(wa(e,O,y)),O=mt(e,t),O!=null&&c.push(wa(e,O,y))),e=e.return}return c}function b(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function X(e,t,o,c,y){for(var O=t._reactName,re=[];o!==null&&o!==c;){var _e=o,Ie=_e.alternate,Xe=_e.stateNode;if(Ie!==null&&Ie===c)break;_e.tag===5&&Xe!==null&&(_e=Xe,y?(Ie=mt(o,O),Ie!=null&&re.unshift(wa(o,Ie,_e))):y||(Ie=mt(o,O),Ie!=null&&re.push(wa(o,Ie,_e)))),o=o.return}re.length!==0&&e.push({event:t,listeners:re})}var be=/\r\n?/g,Be=/\u0000|\uFFFD/g;function Ze(e){return(typeof e=="string"?e:""+e).replace(be,`
45`).replace(Be,"")}function at(e,t,o){if(t=Ze(t),Ze(e)!==t&&o)throw Error(r(425))}function vt(){}var Ot=null,It=null;function Ft(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Lt=typeof setTimeout=="function"?setTimeout:void 0,ar=typeof clearTimeout=="function"?clearTimeout:void 0,Hr=typeof Promise=="function"?Promise:void 0,Aa=typeof queueMicrotask=="function"?queueMicrotask:typeof Hr<"u"?function(e){return Hr.resolve(null).then(e).catch(Nn)}:Lt;function Nn(e){setTimeout(function(){throw e})}function Gr(e,t){var o=t,c=0;do{var y=o.nextSibling;if(e.removeChild(o),y&&y.nodeType===8)if(o=y.data,o==="/$"){if(c===0){e.removeChild(y),it(t);return}c--}else o!=="$"&&o!=="$?"&&o!=="$!"||c++;o=y}while(o);it(t)}function Yt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function rn(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(t===0)return e;t--}else o==="/$"&&t++}e=e.previousSibling}return null}var lr=Math.random().toString(36).slice(2),ur="__reactFiber$"+lr,zt="__reactProps$"+lr,At="__reactContainer$"+lr,Dt="__reactEvents$"+lr,Qt="__reactListeners$"+lr,ln="__reactHandles$"+lr;function Cr(e){var t=e[ur];if(t)return t;for(var o=e.parentNode;o;){if(t=o[At]||o[ur]){if(o=t.alternate,t.child!==null||o!==null&&o.child!==null)for(e=rn(e);e!==null;){if(o=e[ur])return o;e=rn(e)}return t}e=o,o=e.parentNode}return null}function un(e){return e=e[ur]||e[At],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function cn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function si(e){return e[zt]||null}var li=[],Li=-1;function Pa(e){return{current:e}}function Jt(e){0>Li||(e.current=li[Li],li[Li]=null,Li--)}function Xt(e,t){Li++,li[Li]=e.current,e.current=t}var Ta={},Rr=Pa(Ta),qr=Pa(!1),ui=Ta;function Di(e,t){var o=e.type.contextTypes;if(!o)return Ta;var c=e.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===t)return c.__reactInternalMemoizedMaskedChildContext;var y={},O;for(O in o)y[O]=t[O];return c&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=y),y}function Yr(e){return e=e.childContextTypes,e!=null}function Qo(){Jt(qr),Jt(Rr)}function Ql(e,t,o){if(Rr.current!==Ta)throw Error(r(168));Xt(Rr,t),Xt(qr,o)}function Jl(e,t,o){var c=e.stateNode;if(t=t.childContextTypes,typeof c.getChildContext!="function")return o;c=c.getChildContext();for(var y in c)if(!(y in t))throw Error(r(108,xe(e)||"Unknown",y));return U({},o,c)}function Jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ta,ui=Rr.current,Xt(Rr,e),Xt(qr,qr.current),!0}function Zl(e,t,o){var c=e.stateNode;if(!c)throw Error(r(169));o?(e=Jl(e,t,ui),c.__reactInternalMemoizedMergedChildContext=e,Jt(qr),Jt(Rr),Xt(Rr,e)):Jt(qr),Xt(qr,o)}
vendor: 4,154 bytes, line 45
45var Qn=null,Zo=!1,Xs=!1;function eu(e){Qn===null?Qn=[e]:Qn.push(e)}function Rc(e){Zo=!0,eu(e)}function ka(){if(!Xs&&Qn!==null){Xs=!0;var e=0,t=Nt;try{var o=Qn;for(Nt=1;e<o.length;e++){var c=o[e];do c=c(!0);while(c!==null)}Qn=null,Zo=!1}catch(y){throw Qn!==null&&(Qn=Qn.slice(e+1)),je(Wt,ka),y}finally{Nt=t,Xs=!1}}return null}var Ni=[],Ui=0,es=null,ts=0,fn=[],dn=0,ci=null,Jn=1,Zn="";function fi(e,t){Ni[Ui++]=ts,Ni[Ui++]=es,es=e,ts=t}function tu(e,t,o){fn[dn++]=Jn,fn[dn++]=Zn,fn[dn++]=ci,ci=e;var c=Jn;e=Zn;var y=32-or(c)-1;c&=~(1<<y),o+=1;var O=32-or(t)+y;if(30<O){var re=y-y%5;O=(c&(1<<re)-1).toString(32),c>>=re,y-=re,Jn=1<<32-or(t)+y|o<<y|c,Zn=O+e}else Jn=1<<O|o<<y|c,Zn=e}function Ks(e){e.return!==null&&(fi(e,1),tu(e,1,0))}function Qs(e){for(;e===es;)es=Ni[--Ui],Ni[Ui]=null,ts=Ni[--Ui],Ni[Ui]=null;for(;e===ci;)ci=fn[--dn],fn[dn]=null,Zn=fn[--dn],fn[dn]=null,Jn=fn[--dn],fn[dn]=null}var nn=null,an=null,Zt=!1,kn=null;function ru(e,t){var o=mn(5,null,null,0);o.elementType="DELETED",o.stateNode=t,o.return=e,t=e.deletions,t===null?(e.deletions=[o],e.flags|=16):t.push(o)}function nu(e,t){switch(e.tag){case 5:var o=e.type;return t=t.nodeType!==1||o.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,nn=e,an=Yt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,nn=e,an=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(o=ci!==null?{id:Jn,overflow:Zn}:null,e.memoizedState={dehydrated:t,treeContext:o,retryLane:1073741824},o=mn(18,null,null,0),o.stateNode=t,o.return=e,e.child=o,nn=e,an=null,!0):!1;default:return!1}}function Js(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Zs(e){if(Zt){var t=an;if(t){var o=t;if(!nu(e,t)){if(Js(e))throw Error(r(418));t=Yt(o.nextSibling);var c=nn;t&&nu(e,t)?ru(c,o):(e.flags=e.flags&-4097|2,Zt=!1,nn=e)}}else{if(Js(e))throw Error(r(418));e.flags=e.flags&-4097|2,Zt=!1,nn=e}}}function au(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;nn=e}function rs(e){if(e!==nn)return!1;if(!Zt)return au(e),Zt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ft(e.type,e.memoizedProps)),t&&(t=an)){if(Js(e))throw iu(),Error(r(418));for(;t;)ru(e,t),t=Yt(t.nextSibling)}if(au(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(t===0){an=Yt(e.nextSibling);break e}t--}else o!=="$"&&o!=="$!"&&o!=="$?"||t++}e=e.nextSibling}an=null}}else an=nn?Yt(e.stateNode.nextSibling):null;return!0}function iu(){for(var e=an;e;)e=Yt(e.nextSibling)}function ji(){an=nn=null,Zt=!1}function el(e){kn===null?kn=[e]:kn.push(e)}var xc=g.ReactCurrentBatchConfig;function fo(e,t,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(r(309));var c=o.stateNode}if(!c)throw Error(r(147,e));var y=c,O=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===O?t.ref:(t=function(re){var _e=y.refs;re===null?delete _e[O]:_e[O]=re},t._stringRef=O,t)}if(typeof e!="string")throw Error(r(284));if(!o._owner)throw Error(r(290,e))}return e}function ns(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ou(e){var t=e._init;return t(e._payload)}function su(e){function t(We,Le){if(e){var Ge=We.deletions;Ge===null?(We.deletions=[Le],We.flags|=16):Ge.push(Le)}}function o(We,Le){if(!e)return null;for(;Le!==null;)t(We,Le),Le=Le.sibling;return null}function c(We,Le){for(We=new Map;Le!==null;)Le.key!==null?We.set(Le.key,Le):We.set(Le.index,Le),Le=Le.sibling;return We}function y(We,Le){return We=Ma(We,Le),We.index=0,We.sibling=null,We}function O(We,Le,Ge){return We.index=Ge,e?(Ge=We.alternate,Ge!==null?(Ge=Ge.index,Ge<Le?(We.flags|=2,Le):Ge):(We.flags|=2,Le)):(We.flags|=1048576,Le)}function re(We){return e&&We.alternate===null&&(We.flags|=2),We}function _e(We,Le,Ge,ft){return Le===null||Le.tag!==6?(Le=Hl(Ge,We.mode,ft),Le.return=We,Le):(Le=y(Le,Ge),Le.return=We,Le)}function Ie(We,Le,Ge,ft){var wt=Ge.type;
vendor: 4,557 bytes, line 45
45return wt===k?st(We,Le,Ge.props.children,ft,Ge.key):Le!==null&&(Le.elementType===wt||typeof wt=="object"&&wt!==null&&wt.$$typeof===fe&&ou(wt)===Le.type)?(ft=y(Le,Ge.props),ft.ref=fo(We,Le,Ge),ft.return=We,ft):(ft=Es(Ge.type,Ge.key,Ge.props,null,We.mode,ft),ft.ref=fo(We,Le,Ge),ft.return=We,ft)}function Xe(We,Le,Ge,ft){return Le===null||Le.tag!==4||Le.stateNode.containerInfo!==Ge.containerInfo||Le.stateNode.implementation!==Ge.implementation?(Le=Gl(Ge,We.mode,ft),Le.return=We,Le):(Le=y(Le,Ge.children||[]),Le.return=We,Le)}function st(We,Le,Ge,ft,wt){return Le===null||Le.tag!==7?(Le=bi(Ge,We.mode,ft,wt),Le.return=We,Le):(Le=y(Le,Ge),Le.return=We,Le)}function ut(We,Le,Ge){if(typeof Le=="string"&&Le!==""||typeof Le=="number")return Le=Hl(""+Le,We.mode,Ge),Le.return=We,Le;if(typeof Le=="object"&&Le!==null){switch(Le.$$typeof){case h:return Ge=Es(Le.type,Le.key,Le.props,null,We.mode,Ge),Ge.ref=fo(We,null,Le),Ge.return=We,Ge;case m:return Le=Gl(Le,We.mode,Ge),Le.return=We,Le;case fe:var ft=Le._init;return ut(We,ft(Le._payload),Ge)}if(Me(Le)||Y(Le))return Le=bi(Le,We.mode,Ge,null),Le.return=We,Le;ns(We,Le)}return null}function ot(We,Le,Ge,ft){var wt=Le!==null?Le.key:null;if(typeof Ge=="string"&&Ge!==""||typeof Ge=="number")return wt!==null?null:_e(We,Le,""+Ge,ft);if(typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case h:return Ge.key===wt?Ie(We,Le,Ge,ft):null;case m:return Ge.key===wt?Xe(We,Le,Ge,ft):null;case fe:return wt=Ge._init,ot(We,Le,wt(Ge._payload),ft)}if(Me(Ge)||Y(Ge))return wt!==null?null:st(We,Le,Ge,ft,null);ns(We,Ge)}return null}function yt(We,Le,Ge,ft,wt){if(typeof ft=="string"&&ft!==""||typeof ft=="number")return We=We.get(Ge)||null,_e(Le,We,""+ft,wt);if(typeof ft=="object"&&ft!==null){switch(ft.$$typeof){case h:return We=We.get(ft.key===null?Ge:ft.key)||null,Ie(Le,We,ft,wt);case m:return We=We.get(ft.key===null?Ge:ft.key)||null,Xe(Le,We,ft,wt);case fe:var Tt=ft._init;return yt(We,Le,Ge,Tt(ft._payload),wt)}if(Me(ft)||Y(ft))return We=We.get(Ge)||null,st(Le,We,ft,wt,null);ns(Le,ft)}return null}function St(We,Le,Ge,ft){for(var wt=null,Tt=null,kt=Le,Rt=Le=0,yr=null;kt!==null&&Rt<Ge.length;Rt++){kt.index>Rt?(yr=kt,kt=null):yr=kt.sibling;var jt=ot(We,kt,Ge[Rt],ft);if(jt===null){kt===null&&(kt=yr);break}e&&kt&&jt.alternate===null&&t(We,kt),Le=O(jt,Le,Rt),Tt===null?wt=jt:Tt.sibling=jt,Tt=jt,kt=yr}if(Rt===Ge.length)return o(We,kt),Zt&&fi(We,Rt),wt;if(kt===null){for(;Rt<Ge.length;Rt++)kt=ut(We,Ge[Rt],ft),kt!==null&&(Le=O(kt,Le,Rt),Tt===null?wt=kt:Tt.sibling=kt,Tt=kt);return Zt&&fi(We,Rt),wt}for(kt=c(We,kt);Rt<Ge.length;Rt++)yr=yt(kt,We,Rt,Ge[Rt],ft),yr!==null&&(e&&yr.alternate!==null&&kt.delete(yr.key===null?Rt:yr.key),Le=O(yr,Le,Rt),Tt===null?wt=yr:Tt.sibling=yr,Tt=yr);return e&&kt.forEach(function(La){return t(We,La)}),Zt&&fi(We,Rt),wt}function _t(We,Le,Ge,ft){var wt=Y(Ge);if(typeof wt!="function")throw Error(r(150));if(Ge=wt.call(Ge),Ge==null)throw Error(r(151));for(var Tt=wt=null,kt=Le,Rt=Le=0,yr=null,jt=Ge.next();kt!==null&&!jt.done;Rt++,jt=Ge.next()){kt.index>Rt?(yr=kt,kt=null):yr=kt.sibling;var La=ot(We,kt,jt.value,ft);if(La===null){kt===null&&(kt=yr);break}e&&kt&&La.alternate===null&&t(We,kt),Le=O(La,Le,Rt),Tt===null?wt=La:Tt.sibling=La,Tt=La,kt=yr}if(jt.done)return o(We,kt),Zt&&fi(We,Rt),wt;if(kt===null){for(;!jt.done;Rt++,jt=Ge.next())jt=ut(We,jt.value,ft),jt!==null&&(Le=O(jt,Le,Rt),Tt===null?wt=jt:Tt.sibling=jt,Tt=jt);return Zt&&fi(We,Rt),wt}for(kt=c(We,kt);!jt.done;Rt++,jt=Ge.next())jt=yt(kt,We,Rt,jt.value,ft),jt!==null&&(e&&jt.alternate!==null&&kt.delete(jt.key===null?Rt:jt.key),Le=O(jt,Le,Rt),Tt===null?wt=jt:Tt.sibling=jt,Tt=jt);return e&&kt.forEach(function(cf){return t(We,cf)}),Zt&&fi(We,Rt),wt}function sr(We,Le,Ge,ft){if(typeof Ge=="object"&&Ge!==null&&Ge.type===k&&Ge.key===null&&(Ge=Ge.props.children),typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case h:e:{for(var wt=Ge.key,Tt=Le;Tt!==null;){if(Tt.key===wt){if(wt=Ge.type,wt===k){if(Tt.tag===7){o(We,Tt.sibling),Le=y(Tt,Ge.props.children),Le.return=We,We=Le;break e}}else if(Tt.elementType===wt||typeof wt=="object"&&wt!==null&&wt.$$typeof===fe&&ou(wt)===Tt.type){o(We,Tt.sibling),Le=y(Tt,Ge.props),Le.ref=fo(We,Tt,Ge),Le.return=We,We=Le;break e}o(We,Tt);break}else t(We,Tt);Tt=Tt.sibling}Ge.type===k?(Le=bi(Ge.props.children,We.mode,ft,Ge.key),Le.return=We,We=Le):(ft=Es(Ge.type,Ge.key,Ge.props,null,We.mode,ft),ft.ref=fo(We,Le,Ge),ft.return=We,We=ft)}return re(We);case m:e:{for(Tt=Ge.key;Le!==null;){if(Le.key===Tt)if(Le.tag===4&&Le.stateNode.containerInfo===Ge.containerInfo&&Le.stateNode.implementation===Ge.
vendor: 4,688 bytes, line 45
45implementation){o(We,Le.sibling),Le=y(Le,Ge.children||[]),Le.return=We,We=Le;break e}else{o(We,Le);break}else t(We,Le);Le=Le.sibling}Le=Gl(Ge,We.mode,ft),Le.return=We,We=Le}return re(We);case fe:return Tt=Ge._init,sr(We,Le,Tt(Ge._payload),ft)}if(Me(Ge))return St(We,Le,Ge,ft);if(Y(Ge))return _t(We,Le,Ge,ft);ns(We,Ge)}return typeof Ge=="string"&&Ge!==""||typeof Ge=="number"?(Ge=""+Ge,Le!==null&&Le.tag===6?(o(We,Le.sibling),Le=y(Le,Ge),Le.return=We,We=Le):(o(We,Le),Le=Hl(Ge,We.mode,ft),Le.return=We,We=Le),re(We)):o(We,Le)}return sr}var Bi=su(!0),lu=su(!1),as=Pa(null),is=null,$i=null,tl=null;function rl(){tl=$i=is=null}function nl(e){var t=as.current;Jt(as),e._currentValue=t}function al(e,t,o){for(;e!==null;){var c=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,c!==null&&(c.childLanes|=t)):c!==null&&(c.childLanes&t)!==t&&(c.childLanes|=t),e===o)break;e=e.return}}function Wi(e,t){is=e,tl=$i=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Xr=!0),e.firstContext=null)}function hn(e){var t=e._currentValue;if(tl!==e)if(e={context:e,memoizedValue:t,next:null},$i===null){if(is===null)throw Error(r(308));$i=e,is.dependencies={lanes:0,firstContext:e}}else $i=$i.next=e;return t}var di=null;function il(e){di===null?di=[e]:di.push(e)}function uu(e,t,o,c){var y=t.interleaved;return y===null?(o.next=o,il(t)):(o.next=y.next,y.next=o),t.interleaved=o,ea(e,c)}function ea(e,t){e.lanes|=t;var o=e.alternate;for(o!==null&&(o.lanes|=t),o=e,e=e.return;e!==null;)e.childLanes|=t,o=e.alternate,o!==null&&(o.childLanes|=t),o=e,e=e.return;return o.tag===3?o.stateNode:null}var Ea=!1;function ol(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cu(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 ta(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ca(e,t,o){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,(Ut&2)!==0){var y=c.pending;return y===null?t.next=t:(t.next=y.next,y.next=t),c.pending=t,ea(e,o)}return y=c.interleaved,y===null?(t.next=t,il(c)):(t.next=y.next,y.next=t),c.interleaved=t,ea(e,o)}function os(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194240)!==0)){var c=t.lanes;c&=e.pendingLanes,o|=c,t.lanes=o,Na(e,o)}}function fu(e,t){var o=e.updateQueue,c=e.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var y=null,O=null;if(o=o.firstBaseUpdate,o!==null){do{var re={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};O===null?y=O=re:O=O.next=re,o=o.next}while(o!==null);O===null?y=O=t:O=O.next=t}else y=O=t;o={baseState:c.baseState,firstBaseUpdate:y,lastBaseUpdate:O,shared:c.shared,effects:c.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}function ss(e,t,o,c){var y=e.updateQueue;Ea=!1;var O=y.firstBaseUpdate,re=y.lastBaseUpdate,_e=y.shared.pending;if(_e!==null){y.shared.pending=null;var Ie=_e,Xe=Ie.next;Ie.next=null,re===null?O=Xe:re.next=Xe,re=Ie;var st=e.alternate;st!==null&&(st=st.updateQueue,_e=st.lastBaseUpdate,_e!==re&&(_e===null?st.firstBaseUpdate=Xe:_e.next=Xe,st.lastBaseUpdate=Ie))}if(O!==null){var ut=y.baseState;re=0,st=Xe=Ie=null,_e=O;do{var ot=_e.lane,yt=_e.eventTime;if((c&ot)===ot){st!==null&&(st=st.next={eventTime:yt,lane:0,tag:_e.tag,payload:_e.payload,callback:_e.callback,next:null});e:{var St=e,_t=_e;switch(ot=t,yt=o,_t.tag){case 1:if(St=_t.payload,typeof St=="function"){ut=St.call(yt,ut,ot);break e}ut=St;break e;case 3:St.flags=St.flags&-65537|128;case 0:if(St=_t.payload,ot=typeof St=="function"?St.call(yt,ut,ot):St,ot==null)break e;ut=U({},ut,ot);break e;case 2:Ea=!0}}_e.callback!==null&&_e.lane!==0&&(e.flags|=64,ot=y.effects,ot===null?y.effects=[_e]:ot.push(_e))}else yt={eventTime:yt,lane:ot,tag:_e.tag,payload:_e.payload,callback:_e.callback,next:null},st===null?(Xe=st=yt,Ie=ut):st=st.next=yt,re|=ot;if(_e=_e.next,_e===null){if(_e=y.shared.pending,_e===null)break;ot=_e,_e=ot.next,ot.next=null,y.lastBaseUpdate=ot,y.shared.pending=null}}while(!0);if(st===null&&(Ie=ut),y.baseState=Ie,y.firstBaseUpdate=Xe,y.lastBaseUpdate=st,t=y.shared.interleaved,t!==null){y=t;do re|=y.lane,y=y.next;while(y!==t)}else O===null&&(y.shared.lanes=0);vi|=re,e.lanes=re,e.memoizedState=ut}}function du(e,t,o){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var c=e[t],y=c.callback;if(y!==null){if(c.callback=null,c=o,typeof y!="function")throw Error(r(191,y));y.call(c)}}}var ho={},Un=Pa(ho),po=Pa(ho),vo=Pa(ho);
vendor: 8,110 bytes, line 45
45function hi(e){if(e===ho)throw Error(r(174));return e}function sl(e,t){switch(Xt(vo,t),Xt(po,e),Xt(Un,ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ct(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ct(t,e)}Jt(Un),Xt(Un,t)}function Vi(){Jt(Un),Jt(po),Jt(vo)}function hu(e){hi(vo.current);var t=hi(Un.current),o=ct(t,e.type);t!==o&&(Xt(po,e),Xt(Un,o))}function ll(e){po.current===e&&(Jt(Un),Jt(po))}var tr=Pa(0);function ls(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ul=[];function cl(){for(var e=0;e<ul.length;e++)ul[e]._workInProgressVersionPrimary=null;ul.length=0}var us=g.ReactCurrentDispatcher,fl=g.ReactCurrentBatchConfig,pi=0,rr=null,dr=null,vr=null,cs=!1,mo=!1,yo=0,Oc=0;function xr(){throw Error(r(321))}function dl(e,t){if(t===null)return!1;for(var o=0;o<t.length&&o<e.length;o++)if(!Dr(e[o],t[o]))return!1;return!0}function hl(e,t,o,c,y,O){if(pi=O,rr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,us.current=e===null||e.memoizedState===null?Lc:Dc,e=o(c,y),mo){O=0;do{if(mo=!1,yo=0,25<=O)throw Error(r(301));O+=1,vr=dr=null,t.updateQueue=null,us.current=Nc,e=o(c,y)}while(mo)}if(us.current=hs,t=dr!==null&&dr.next!==null,pi=0,vr=dr=rr=null,cs=!1,t)throw Error(r(300));return e}function pl(){var e=yo!==0;return yo=0,e}function jn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vr===null?rr.memoizedState=vr=e:vr=vr.next=e,vr}function pn(){if(dr===null){var e=rr.alternate;e=e!==null?e.memoizedState:null}else e=dr.next;var t=vr===null?rr.memoizedState:vr.next;if(t!==null)vr=t,dr=e;else{if(e===null)throw Error(r(310));dr=e,e={memoizedState:dr.memoizedState,baseState:dr.baseState,baseQueue:dr.baseQueue,queue:dr.queue,next:null},vr===null?rr.memoizedState=vr=e:vr=vr.next=e}return vr}function go(e,t){return typeof t=="function"?t(e):t}function vl(e){var t=pn(),o=t.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=e;var c=dr,y=c.baseQueue,O=o.pending;if(O!==null){if(y!==null){var re=y.next;y.next=O.next,O.next=re}c.baseQueue=y=O,o.pending=null}if(y!==null){O=y.next,c=c.baseState;var _e=re=null,Ie=null,Xe=O;do{var st=Xe.lane;if((pi&st)===st)Ie!==null&&(Ie=Ie.next={lane:0,action:Xe.action,hasEagerState:Xe.hasEagerState,eagerState:Xe.eagerState,next:null}),c=Xe.hasEagerState?Xe.eagerState:e(c,Xe.action);else{var ut={lane:st,action:Xe.action,hasEagerState:Xe.hasEagerState,eagerState:Xe.eagerState,next:null};Ie===null?(_e=Ie=ut,re=c):Ie=Ie.next=ut,rr.lanes|=st,vi|=st}Xe=Xe.next}while(Xe!==null&&Xe!==O);Ie===null?re=c:Ie.next=_e,Dr(c,t.memoizedState)||(Xr=!0),t.memoizedState=c,t.baseState=re,t.baseQueue=Ie,o.lastRenderedState=c}if(e=o.interleaved,e!==null){y=e;do O=y.lane,rr.lanes|=O,vi|=O,y=y.next;while(y!==e)}else y===null&&(o.lanes=0);return[t.memoizedState,o.dispatch]}function ml(e){var t=pn(),o=t.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=e;var c=o.dispatch,y=o.pending,O=t.memoizedState;if(y!==null){o.pending=null;var re=y=y.next;do O=e(O,re.action),re=re.next;while(re!==y);Dr(O,t.memoizedState)||(Xr=!0),t.memoizedState=O,t.baseQueue===null&&(t.baseState=O),o.lastRenderedState=O}return[O,c]}function pu(){}function vu(e,t){var o=rr,c=pn(),y=t(),O=!Dr(c.memoizedState,y);if(O&&(c.memoizedState=y,Xr=!0),c=c.queue,yl(gu.bind(null,o,c,e),[e]),c.getSnapshot!==t||O||vr!==null&&vr.memoizedState.tag&1){if(o.flags|=2048,bo(9,yu.bind(null,o,c,y,t),void 0,null),mr===null)throw Error(r(349));(pi&30)!==0||mu(o,t,y)}return y}function mu(e,t,o){e.flags|=16384,e={getSnapshot:t,value:o},t=rr.updateQueue,t===null?(t={lastEffect:null,stores:null},rr.updateQueue=t,t.stores=[e]):(o=t.stores,o===null?t.stores=[e]:o.push(e))}function yu(e,t,o,c){t.value=o,t.getSnapshot=c,bu(t)&&Su(e)}function gu(e,t,o){return o(function(){bu(t)&&Su(e)})}function bu(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!Dr(e,o)}catch{return!0}}function Su(e){var t=ea(e,1);t!==null&&xn(t,e,1,-1)}function _u(e){var t=jn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:go,lastRenderedState:e},t.queue=e,e=e.dispatch=Mc.bind(null,rr,e),[t.memoizedState,e]}function bo(e,t,o,c){return e={tag:e,create:t,destroy:o,deps:c,next:null},t=rr.updateQueue,t===null?(t={lastEffect:null,stores:null},rr.updateQueue=t,t.lastEffect=e.next=e):(o=t.lastEffect,o===null?t.lastEffect=e.next=e:(c=o.next,o.next=e,e.next=c,t.lastEffect=e)),e}function wu(){return pn().memoizedState}function fs(e,t,o,c){var y=jn();rr.flags|=e,y.memoizedState=bo(1|t,o,void 0,c===void 0?null:c)}function ds(e,t,o,c){var y=pn();c=c===void 0?null:c;var O=void 0;if(dr!==null){var re=dr.memoizedState;if(O=re.destroy,c!==null&&dl(c,re.deps)){y.memoizedState=bo(t,o,O,c);return}}rr.flags|=e,y.memoizedState=bo(1|t,o,O,c)}function Au(e,t){return fs(8390656,8,e,t)}function yl(e,t){return ds(2048,8,e,t)}function Pu(e,t){return ds(4,2,e,t)}function Tu(e,t){return ds(4,4,e,t)}function ku(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Eu(e,t,o){return o=o!=null?o.concat([e]):null,ds(4,4,ku.bind(null,t,e),o)}function gl(){}function Cu(e,t){var o=pn();t=t===void 0?null:t;var c=o.memoizedState;return c!==null&&t!==null&&dl(t,c[1])?c[0]:(o.memoizedState=[e,t],e)}function Ru(e,t){var o=pn();t=t===void 0?null:t;var c=o.memoizedState;return c!==null&&t!==null&&dl(t,c[1])?c[0]:(e=e(),o.memoizedState=[e,t],e)}function xu(e,t,o){return(pi&21)===0?(e.baseState&&(e.baseState=!1,Xr=!0),e.memoizedState=o):(Dr(o,t)||(o=Si(),rr.lanes|=o,vi|=o,e.baseState=!0),t)}function Ic(e,t){var o=Nt;Nt=o!==0&&4>o?o:4,e(!0);var c=fl.transition;fl.transition={};try{e(!1),t()}finally{Nt=o,fl.transition=c}}function Ou(){return pn().memoizedState}function Fc(e,t,o){var c=Ia(e);if(o={lane:c,action:o,hasEagerState:!1,eagerState:null,next:null},Iu(e))Fu(t,o);else if(o=uu(e,t,o,c),o!==null){var y=Ur();xn(o,e,c,y),Mu(o,t,c)}}function Mc(e,t,o){var c=Ia(e),y={lane:c,action:o,hasEagerState:!1,eagerState:null,next:null};if(Iu(e))Fu(t,y);else{var O=e.alternate;if(e.lanes===0&&(O===null||O.lanes===0)&&(O=t.lastRenderedReducer,O!==null))try{var re=t.lastRenderedState,_e=O(re,o);if(y.hasEagerState=!0,y.eagerState=_e,Dr(_e,re)){var Ie=t.interleaved;Ie===null?(y.next=y,il(t)):(y.next=Ie.next,Ie.next=y),t.interleaved=y;return}}catch{}finally{}o=uu(e,t,y,c),o!==null&&(y=Ur(),xn(o,e,c,y),Mu(o,t,c))}}function Iu(e){var t=e.alternate;return e===rr||t!==null&&t===rr}function Fu(e,t){mo=cs=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function Mu(e,t,o){if((o&4194240)!==0){var c=t.lanes;c&=e.pendingLanes,o|=c,t.lanes=o,Na(e,o)}}var hs={readContext:hn,useCallback:xr,useContext:xr,useEffect:xr,useImperativeHandle:xr,useInsertionEffect:xr,useLayoutEffect:xr,useMemo:xr,useReducer:xr,useRef:xr,useState:xr,useDebugValue:xr,useDeferredValue:xr,useTransition:xr,useMutableSource:xr,useSyncExternalStore:xr,useId:xr,unstable_isNewReconciler:!1},Lc={readContext:hn,useCallback:function(e,t){return jn().memoizedState=[e,t===void 0?null:t],e},useContext:hn,useEffect:Au,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,fs(4194308,4,ku.bind(null,t,e),o)},useLayoutEffect:function(e,t){return fs(4194308,4,e,t)},useInsertionEffect:function(e,t){return fs(4,2,e,t)},useMemo:function(e,t){var o=jn();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var c=jn();return t=o!==void 0?o(t):t,c.memoizedState=c.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},c.queue=e,e=e.dispatch=Fc.bind(null,rr,e),[c.memoizedState,e]}
vendor: 5,355 bytes, lines 45-47
45,useRef:function(e){var t=jn();return e={current:e},t.memoizedState=e},useState:_u,useDebugValue:gl,useDeferredValue:function(e){return jn().memoizedState=e},useTransition:function(){var e=_u(!1),t=e[0];return e=Ic.bind(null,e[1]),jn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var c=rr,y=jn();if(Zt){if(o===void 0)throw Error(r(407));o=o()}else{if(o=t(),mr===null)throw Error(r(349));(pi&30)!==0||mu(c,t,o)}y.memoizedState=o;var O={value:o,getSnapshot:t};return y.queue=O,Au(gu.bind(null,c,O,e),[e]),c.flags|=2048,bo(9,yu.bind(null,c,O,o,t),void 0,null),o},useId:function(){var e=jn(),t=mr.identifierPrefix;if(Zt){var o=Zn,c=Jn;o=(c&~(1<<32-or(c)-1)).toString(32)+o,t=":"+t+"R"+o,o=yo++,0<o&&(t+="H"+o.toString(32)),t+=":"}else o=Oc++,t=":"+t+"r"+o.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Dc={readContext:hn,useCallback:Cu,useContext:hn,useEffect:yl,useImperativeHandle:Eu,useInsertionEffect:Pu,useLayoutEffect:Tu,useMemo:Ru,useReducer:vl,useRef:wu,useState:function(){return vl(go)},useDebugValue:gl,useDeferredValue:function(e){var t=pn();return xu(t,dr.memoizedState,e)},useTransition:function(){var e=vl(go)[0],t=pn().memoizedState;return[e,t]},useMutableSource:pu,useSyncExternalStore:vu,useId:Ou,unstable_isNewReconciler:!1},Nc={readContext:hn,useCallback:Cu,useContext:hn,useEffect:yl,useImperativeHandle:Eu,useInsertionEffect:Pu,useLayoutEffect:Tu,useMemo:Ru,useReducer:ml,useRef:wu,useState:function(){return ml(go)},useDebugValue:gl,useDeferredValue:function(e){var t=pn();return dr===null?t.memoizedState=e:xu(t,dr.memoizedState,e)},useTransition:function(){var e=ml(go)[0],t=pn().memoizedState;return[e,t]},useMutableSource:pu,useSyncExternalStore:vu,useId:Ou,unstable_isNewReconciler:!1};function En(e,t){if(e&&e.defaultProps){t=U({},t),e=e.defaultProps;for(var o in e)t[o]===void 0&&(t[o]=e[o]);return t}return t}function bl(e,t,o,c){t=e.memoizedState,o=o(c,t),o=o==null?t:U({},t,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var ps={isMounted:function(e){return(e=e._reactInternals)?Tr(e)===e:!1},enqueueSetState:function(e,t,o){e=e._reactInternals;var c=Ur(),y=Ia(e),O=ta(c,y);O.payload=t,o!=null&&(O.callback=o),t=Ca(e,O,y),t!==null&&(xn(t,e,y,c),os(t,e,y))},enqueueReplaceState:function(e,t,o){e=e._reactInternals;var c=Ur(),y=Ia(e),O=ta(c,y);O.tag=1,O.payload=t,o!=null&&(O.callback=o),t=Ca(e,O,y),t!==null&&(xn(t,e,y,c),os(t,e,y))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var o=Ur(),c=Ia(e),y=ta(o,c);y.tag=2,t!=null&&(y.callback=t),t=Ca(e,y,c),t!==null&&(xn(t,e,c,o),os(t,e,c))}};function Lu(e,t,o,c,y,O,re){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(c,O,re):t.prototype&&t.prototype.isPureReactComponent?!Vr(o,c)||!Vr(y,O):!0}function Du(e,t,o){var c=!1,y=Ta,O=t.contextType;return typeof O=="object"&&O!==null?O=hn(O):(y=Yr(t)?ui:Rr.current,c=t.contextTypes,O=(c=c!=null)?Di(e,y):Ta),t=new t(o,O),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ps,e.stateNode=t,t._reactInternals=e,c&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=y,e.__reactInternalMemoizedMaskedChildContext=O),t}function Nu(e,t,o,c){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(o,c),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(o,c),t.state!==e&&ps.enqueueReplaceState(t,t.state,null)}function Sl(e,t,o,c){var y=e.stateNode;y.props=o,y.state=e.memoizedState,y.refs={},ol(e);var O=t.contextType;typeof O=="object"&&O!==null?y.context=hn(O):(O=Yr(t)?ui:Rr.current,y.context=Di(e,O)),y.state=e.memoizedState,O=t.getDerivedStateFromProps,typeof O=="function"&&(bl(e,t,O,o),y.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(t=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),t!==y.state&&ps.enqueueReplaceState(y,y.state,null),ss(e,o,y,c),y.state=e.memoizedState),typeof y.componentDidMount=="function"&&(e.flags|=4194308)}function zi(e,t){try{var o="",c=t;do o+=ae(c),c=c.return;while(c);var y=o}catch(O){y=`
46Error generating stack: `+O.message+`
47`+O.stack}return{value:e,source:t,stack:y,digest:null}}function _l(e,t,o){return{value:e,source:null,stack:o??null,digest:t??null}}function wl(e,t){try{console.error(t.value)}catch(o){setTimeout(function(){throw o})}}var Uc=typeof WeakMap=="function"?WeakMap:Map;function Uu(e,t,o){o=ta(-1,o),o.tag=3,o.payload={element:null};var c=t.value;return o.callback=function(){_s||(_s=!0,Nl=c),wl(e,t)},o}function ju(e,t,o){o=ta(-1,o),o.tag=3;var c=e.type.getDerivedStateFromError;if(typeof c=="function"){var y=t.value;o.payload=function(){return c(y)},o.callback=function(){wl(e,t)}}var O=e.stateNode;return O!==null&&typeof O.componentDidCatch=="function"&&(o.callback=function(){wl(e,t),typeof c!="function"&&(xa===null?xa=new Set([this]):xa.add(this));var re=t.stack;this.componentDidCatch(t.value,{componentStack:re!==null?re:""})}),o}function Bu(e,t,o){var c=e.pingCache;if(c===null){c=e.pingCache=new Uc;var y=new Set;c.set(t,y)}else y=c.get(t),y===void 0&&(y=new Set,c.set(t,y));
vendor: 12,229 bytes, line 47
47y.has(o)||(y.add(o),e=Jc.bind(null,e,t,o),t.then(e,e))}function $u(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Wu(e,t,o,c,y){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(t=ta(-1,1),t.tag=2,Ca(o,t,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=y,e)}var jc=g.ReactCurrentOwner,Xr=!1;function Nr(e,t,o,c){t.child=e===null?lu(t,null,o,c):Bi(t,e.child,o,c)}function Vu(e,t,o,c,y){o=o.render;var O=t.ref;return Wi(t,y),c=hl(e,t,o,c,O,y),o=pl(),e!==null&&!Xr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~y,ra(e,t,y)):(Zt&&o&&Ks(t),t.flags|=1,Nr(e,t,c,y),t.child)}function zu(e,t,o,c,y){if(e===null){var O=o.type;return typeof O=="function"&&!zl(O)&&O.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(t.tag=15,t.type=O,Hu(e,t,O,c,y)):(e=Es(o.type,null,c,t,t.mode,y),e.ref=t.ref,e.return=t,t.child=e)}if(O=e.child,(e.lanes&y)===0){var re=O.memoizedProps;if(o=o.compare,o=o!==null?o:Vr,o(re,c)&&e.ref===t.ref)return ra(e,t,y)}return t.flags|=1,e=Ma(O,c),e.ref=t.ref,e.return=t,t.child=e}function Hu(e,t,o,c,y){if(e!==null){var O=e.memoizedProps;if(Vr(O,c)&&e.ref===t.ref)if(Xr=!1,t.pendingProps=c=O,(e.lanes&y)!==0)(e.flags&131072)!==0&&(Xr=!0);else return t.lanes=e.lanes,ra(e,t,y)}return Al(e,t,o,c,y)}function Gu(e,t,o){var c=t.pendingProps,y=c.children,O=e!==null?e.memoizedState:null;if(c.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xt(Gi,on),on|=o;else{if((o&1073741824)===0)return e=O!==null?O.baseLanes|o:o,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Xt(Gi,on),on|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=O!==null?O.baseLanes:o,Xt(Gi,on),on|=c}else O!==null?(c=O.baseLanes|o,t.memoizedState=null):c=o,Xt(Gi,on),on|=c;return Nr(e,t,y,o),t.child}function qu(e,t){var o=t.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(t.flags|=512,t.flags|=2097152)}function Al(e,t,o,c,y){var O=Yr(o)?ui:Rr.current;return O=Di(t,O),Wi(t,y),o=hl(e,t,o,c,O,y),c=pl(),e!==null&&!Xr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~y,ra(e,t,y)):(Zt&&c&&Ks(t),t.flags|=1,Nr(e,t,o,y),t.child)}function Yu(e,t,o,c,y){if(Yr(o)){var O=!0;Jo(t)}else O=!1;if(Wi(t,y),t.stateNode===null)ms(e,t),Du(t,o,c),Sl(t,o,c,y),c=!0;else if(e===null){var re=t.stateNode,_e=t.memoizedProps;re.props=_e;var Ie=re.context,Xe=o.contextType;typeof Xe=="object"&&Xe!==null?Xe=hn(Xe):(Xe=Yr(o)?ui:Rr.current,Xe=Di(t,Xe));var st=o.getDerivedStateFromProps,ut=typeof st=="function"||typeof re.getSnapshotBeforeUpdate=="function";ut||typeof re.UNSAFE_componentWillReceiveProps!="function"&&typeof re.componentWillReceiveProps!="function"||(_e!==c||Ie!==Xe)&&Nu(t,re,c,Xe),Ea=!1;var ot=t.memoizedState;re.state=ot,ss(t,c,re,y),Ie=t.memoizedState,_e!==c||ot!==Ie||qr.current||Ea?(typeof st=="function"&&(bl(t,o,st,c),Ie=t.memoizedState),(_e=Ea||Lu(t,o,_e,c,ot,Ie,Xe))?(ut||typeof re.UNSAFE_componentWillMount!="function"&&typeof re.componentWillMount!="function"||(typeof re.componentWillMount=="function"&&re.componentWillMount(),typeof re.UNSAFE_componentWillMount=="function"&&re.UNSAFE_componentWillMount()),typeof re.componentDidMount=="function"&&(t.flags|=4194308)):(typeof re.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=c,t.memoizedState=Ie),re.props=c,re.state=Ie,re.context=Xe,c=_e):(typeof re.componentDidMount=="function"&&(t.flags|=4194308),c=!1)}else{re=t.stateNode,cu(e,t),_e=t.memoizedProps,Xe=t.type===t.elementType?_e:En(t.type,_e),re.props=Xe,ut=t.pendingProps,ot=re.context,Ie=o.contextType,typeof Ie=="object"&&Ie!==null?Ie=hn(Ie):(Ie=Yr(o)?ui:Rr.current,Ie=Di(t,Ie));var yt=o.getDerivedStateFromProps;(st=typeof yt=="function"||typeof re.getSnapshotBeforeUpdate=="function")||typeof re.UNSAFE_componentWillReceiveProps!="function"&&typeof re.componentWillReceiveProps!="function"||(_e!==ut||ot!==Ie)&&Nu(t,re,c,Ie),Ea=!1,ot=t.memoizedState,re.state=ot,ss(t,c,re,y);var St=t.memoizedState;_e!==ut||ot!==St||qr.current||Ea?(typeof yt=="function"&&(bl(t,o,yt,c),St=t.memoizedState),(Xe=Ea||Lu(t,o,Xe,c,ot,St,Ie)||!1)?(st||typeof re.UNSAFE_componentWillUpdate!="function"&&typeof re.componentWillUpdate!="function"||(typeof re.componentWillUpdate=="function"&&re.componentWillUpdate(c,St,Ie),typeof re.UNSAFE_componentWillUpdate=="function"&&re.UNSAFE_componentWillUpdate(c,St,Ie)),typeof re.componentDidUpdate=="function"&&(t.flags|=4),typeof re.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof re.componentDidUpdate!="function"||_e===e.memoizedProps&&ot===e.memoizedState||(t.flags|=4),typeof re.getSnapshotBeforeUpdate!="function"||_e===e.memoizedProps&&ot===e.memoizedState||(t.flags|=1024),t.memoizedProps=c,t.memoizedState=St),re.props=c,re.state=St,re.context=Ie,c=Xe):(typeof re.componentDidUpdate!="function"||_e===e.memoizedProps&&ot===e.memoizedState||(t.flags|=4),typeof re.getSnapshotBeforeUpdate!="function"||_e===e.memoizedProps&&ot===e.memoizedState||(t.flags|=1024),c=!1)}return Pl(e,t,o,c,O,y)}function Pl(e,t,o,c,y,O){qu(e,t);var re=(t.flags&128)!==0;if(!c&&!re)return y&&Zl(t,o,!1),ra(e,t,O);c=t.stateNode,jc.current=t;var _e=re&&typeof o.getDerivedStateFromError!="function"?null:c.render();return t.flags|=1,e!==null&&re?(t.child=Bi(t,e.child,null,O),t.child=Bi(t,null,_e,O)):Nr(e,t,_e,O),t.memoizedState=c.state,y&&Zl(t,o,!0),t.child}function Xu(e){var t=e.stateNode;t.pendingContext?Ql(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ql(e,t.context,!1),sl(e,t.containerInfo)}function Ku(e,t,o,c,y){return ji(),el(y),t.flags|=256,Nr(e,t,o,c),t.child}var Tl={dehydrated:null,treeContext:null,retryLane:0};function kl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qu(e,t,o){var c=t.pendingProps,y=tr.current,O=!1,re=(t.flags&128)!==0,_e;if((_e=re)||(_e=e!==null&&e.memoizedState===null?!1:(y&2)!==0),_e?(O=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(y|=1),Xt(tr,y&1),e===null)return Zs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(re=c.children,e=c.fallback,O?(c=t.mode,O=t.child,re={mode:"hidden",children:re},(c&1)===0&&O!==null?(O.childLanes=0,O.pendingProps=re):O=Cs(re,c,0,null),e=bi(e,c,o,null),O.return=t,e.return=t,O.sibling=e,t.child=O,t.child.memoizedState=kl(o),t.memoizedState=Tl,e):El(t,re));if(y=e.memoizedState,y!==null&&(_e=y.dehydrated,_e!==null))return Bc(e,t,re,c,_e,y,o);if(O){O=c.fallback,re=t.mode,y=e.child,_e=y.sibling;var Ie={mode:"hidden",children:c.children};return(re&1)===0&&t.child!==y?(c=t.child,c.childLanes=0,c.pendingProps=Ie,t.deletions=null):(c=Ma(y,Ie),c.subtreeFlags=y.subtreeFlags&14680064),_e!==null?O=Ma(_e,O):(O=bi(O,re,o,null),O.flags|=2),O.return=t,c.return=t,c.sibling=O,t.child=c,c=O,O=t.child,re=e.child.memoizedState,re=re===null?kl(o):{baseLanes:re.baseLanes|o,cachePool:null,transitions:re.transitions},O.memoizedState=re,O.childLanes=e.childLanes&~o,t.memoizedState=Tl,c}return O=e.child,e=O.sibling,c=Ma(O,{mode:"visible",children:c.children}),(t.mode&1)===0&&(c.lanes=o),c.return=t,c.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=c,t.memoizedState=null,c}function El(e,t){return t=Cs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function vs(e,t,o,c){return c!==null&&el(c),Bi(t,e.child,null,o),e=El(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bc(e,t,o,c,y,O,re){if(o)return t.flags&256?(t.flags&=-257,c=_l(Error(r(422))),vs(e,t,re,c)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(O=c.fallback,y=t.mode,c=Cs({mode:"visible",children:c.children},y,0,null),O=bi(O,y,re,null),O.flags|=2,c.return=t,O.return=t,c.sibling=O,t.child=c,(t.mode&1)!==0&&Bi(t,e.child,null,re),t.child.memoizedState=kl(re),t.memoizedState=Tl,O);if((t.mode&1)===0)return vs(e,t,re,null);if(y.data==="$!"){if(c=y.nextSibling&&y.nextSibling.dataset,c)var _e=c.dgst;return c=_e,O=Error(r(419)),c=_l(O,c,void 0),vs(e,t,re,c)}if(_e=(re&e.childLanes)!==0,Xr||_e){if(c=mr,c!==null){switch(re&-re){case 4:y=2;break;case 16:y=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:y=32;break;case 536870912:y=268435456;break;default:y=0}y=(y&(c.suspendedLanes|re))!==0?0:y,y!==0&&y!==O.retryLane&&(O.retryLane=y,ea(e,y),xn(c,e,y,-1))}return Vl(),c=_l(Error(r(421))),vs(e,t,re,c)}return y.data==="$?"?(t.flags|=128,t.child=e.child,t=Zc.bind(null,e),y._reactRetry=t,null):(e=O.treeContext,an=Yt(y.nextSibling),nn=t,Zt=!0,kn=null,e!==null&&(fn[dn++]=Jn,fn[dn++]=Zn,fn[dn++]=ci,Jn=e.id,Zn=e.overflow,ci=t),t=El(t,c.children),t.flags|=4096,t)}function Ju(e,t,o){e.lanes|=t;var c=e.alternate;c!==null&&(c.lanes|=t),al(e.return,t,o)}function Cl(e,t,o,c,y){var O=e.memoizedState;O===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:y}:(O.isBackwards=t,O.rendering=null,O.renderingStartTime=0,O.last=c,O.tail=o,O.tailMode=y)}function Zu(e,t,o){var c=t.pendingProps,y=c.revealOrder,O=c.tail;if(Nr(e,t,c.children,o),c=tr.current,(c&2)!==0)c=c&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ju(e,o,t);else if(e.tag===19)Ju(e,o,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}c&=1}if(Xt(tr,c),(t.mode&1)===0)t.memoizedState=null;else switch(y){case"forwards":for(o=t.child,y=null;o!==null;)e=o.alternate,e!==null&&ls(e)===null&&(y=o),o=o.sibling;o=y,o===null?(y=t.child,t.child=null):(y=o.sibling,o.sibling=null),Cl(t,!1,y,o,O);break;case"backwards":for(o=null,y=t.child,t.child=null;y!==null;){if(e=y.alternate,e!==null&&ls(e)===null){t.child=y;break}e=y.sibling,y.sibling=o,o=y,y=e}Cl(t,!0,o,null,O);break;case"together":Cl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ms(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ra(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),vi|=t.lanes,(o&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,o=Ma(e,e.pendingProps),t.child=o,o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=Ma(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function $c(e,t,o){switch(t.tag){case 3:Xu(t),ji();break;case 5:hu(t);break;case 1:Yr(t.type)&&Jo(t);break;case 4:sl(t,t.stateNode.containerInfo);break;case 10:var c=t.type._context,y=t.memoizedProps.value;Xt(as,c._currentValue),c._currentValue=y;break;case 13:if(c=t.memoizedState,c!==null)return c.dehydrated!==null?(Xt(tr,tr.current&1),t.flags|=128,null):(o&t.child.childLanes)!==0?Qu(e,t,o):(Xt(tr,tr.current&1),e=ra(e,t,o),e!==null?e.sibling:null);Xt(tr,tr.current&1);break;case 19:if(c=(o&t.childLanes)!==0,(e.flags&128)!==0){if(c)return Zu(e,t,o);t.flags|=128}if(y=t.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),Xt(tr,tr.current),c)break;return null;case 22:case 23:return t.lanes=0,Gu(e,t,o)}return ra(e,t,o)}var ec,Rl,tc,rc;ec=function(e,t){for(var o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Rl=function(){},tc=function(e,t,o,c){var y=e.memoizedProps;if(y!==c){e=t.stateNode,hi(Un.current);var O=null;switch(o){case"input":y=V(e,y),c=V(e,c),O=[];break;case"select":y=U({},y,{value:void 0}),c=U({},c,{value:void 0}),O=[];break;case"textarea":y=ze(e,y),c=ze(e,c),O=[];break;default:typeof y.onClick!="function"&&typeof c.onClick=="function"&&(e.onclick=vt)}de(o,c);var re;o=null;for(Xe in y)if(!c.hasOwnProperty(Xe)&&y.hasOwnProperty(Xe)&&y[Xe]!=null)if(Xe
vendor: 4,094 bytes, line 47
47==="style"){var _e=y[Xe];for(re in _e)_e.hasOwnProperty(re)&&(o||(o={}),o[re]="")}else Xe!=="dangerouslySetInnerHTML"&&Xe!=="children"&&Xe!=="suppressContentEditableWarning"&&Xe!=="suppressHydrationWarning"&&Xe!=="autoFocus"&&(s.hasOwnProperty(Xe)?O||(O=[]):(O=O||[]).push(Xe,null));for(Xe in c){var Ie=c[Xe];if(_e=y?.[Xe],c.hasOwnProperty(Xe)&&Ie!==_e&&(Ie!=null||_e!=null))if(Xe==="style")if(_e){for(re in _e)!_e.hasOwnProperty(re)||Ie&&Ie.hasOwnProperty(re)||(o||(o={}),o[re]="");for(re in Ie)Ie.hasOwnProperty(re)&&_e[re]!==Ie[re]&&(o||(o={}),o[re]=Ie[re])}else o||(O||(O=[]),O.push(Xe,o)),o=Ie;else Xe==="dangerouslySetInnerHTML"?(Ie=Ie?Ie.__html:void 0,_e=_e?_e.__html:void 0,Ie!=null&&_e!==Ie&&(O=O||[]).push(Xe,Ie)):Xe==="children"?typeof Ie!="string"&&typeof Ie!="number"||(O=O||[]).push(Xe,""+Ie):Xe!=="suppressContentEditableWarning"&&Xe!=="suppressHydrationWarning"&&(s.hasOwnProperty(Xe)?(Ie!=null&&Xe==="onScroll"&&qt("scroll",e),O||_e===Ie||(O=[])):(O=O||[]).push(Xe,Ie))}o&&(O=O||[]).push("style",o);var Xe=O;(t.updateQueue=Xe)&&(t.flags|=4)}},rc=function(e,t,o,c){o!==c&&(t.flags|=4)};function So(e,t){if(!Zt)switch(e.tailMode){case"hidden":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function Or(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=0,c=0;if(t)for(var y=e.child;y!==null;)o|=y.lanes|y.childLanes,c|=y.subtreeFlags&14680064,c|=y.flags&14680064,y.return=e,y=y.sibling;else for(y=e.child;y!==null;)o|=y.lanes|y.childLanes,c|=y.subtreeFlags,c|=y.flags,y.return=e,y=y.sibling;return e.subtreeFlags|=c,e.childLanes=o,t}function Wc(e,t,o){var c=t.pendingProps;switch(Qs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Or(t),null;case 1:return Yr(t.type)&&Qo(),Or(t),null;case 3:return c=t.stateNode,Vi(),Jt(qr),Jt(Rr),cl(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(e===null||e.child===null)&&(rs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,kn!==null&&(Bl(kn),kn=null))),Rl(e,t),Or(t),null;case 5:ll(t);var y=hi(vo.current);if(o=t.type,e!==null&&t.stateNode!=null)tc(e,t,o,c,y),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!c){if(t.stateNode===null)throw Error(r(166));return Or(t),null}if(e=hi(Un.current),rs(t)){c=t.stateNode,o=t.type;var O=t.memoizedProps;switch(c[ur]=t,c[zt]=O,e=(t.mode&1)!==0,o){case"dialog":qt("cancel",c),qt("close",c);break;case"iframe":case"object":case"embed":qt("load",c);break;case"video":case"audio":for(y=0;y<Sa.length;y++)qt(Sa[y],c);break;case"source":qt("error",c);break;case"img":case"image":case"link":qt("error",c),qt("load",c);break;case"details":qt("toggle",c);break;case"input":ee(c,O),qt("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!O.multiple},qt("invalid",c);break;case"textarea":Ye(c,O),qt("invalid",c)}de(o,O),y=null;for(var re in O)if(O.hasOwnProperty(re)){var _e=O[re];re==="children"?typeof _e=="string"?c.textContent!==_e&&(O.suppressHydrationWarning!==!0&&at(c.textContent,_e,e),y=["children",_e]):typeof _e=="number"&&c.textContent!==""+_e&&(O.suppressHydrationWarning!==!0&&at(c.textContent,_e,e),y=["children",""+_e]):s.hasOwnProperty(re)&&_e!=null&&re==="onScroll"&&qt("scroll",c)}switch(o){case"input":Q(c),Te(c,O,!0);break;case"textarea":Q(c),nt(c);break;case"select":case"option":break;default:typeof O.onClick=="function"&&(c.onclick=vt)}c=y,t.updateQueue=c,c!==null&&(t.flags|=4)}else{re=y.nodeType===9?y:y.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=tt(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=re.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof c.is=="string"?e=re.createElement(o,{is:c.is}):(e=re.createElement(o),o==="select"&&(re=e,c.multiple?re.multiple=!0:c.size&&(re.size=c.size))):e=re.createElementNS(e,o),e[ur]=t,e[zt]=c,ec(e,t,!1,!1),t.stateNode=e;
vendor: 26,914 bytes, line 47
47e:{switch(re=W(o,c),o){case"dialog":qt("cancel",e),qt("close",e),y=c;break;case"iframe":case"object":case"embed":qt("load",e),y=c;break;case"video":case"audio":for(y=0;y<Sa.length;y++)qt(Sa[y],e);y=c;break;case"source":qt("error",e),y=c;break;case"img":case"image":case"link":qt("error",e),qt("load",e),y=c;break;case"details":qt("toggle",e),y=c;break;case"input":ee(e,c),y=V(e,c),qt("invalid",e);break;case"option":y=c;break;case"select":e._wrapperState={wasMultiple:!!c.multiple},y=U({},c,{value:void 0}),qt("invalid",e);break;case"textarea":Ye(e,c),y=ze(e,c),qt("invalid",e);break;default:y=c}de(o,y),_e=y;for(O in _e)if(_e.hasOwnProperty(O)){var Ie=_e[O];O==="style"?ye(e,Ie):O==="dangerouslySetInnerHTML"?(Ie=Ie?Ie.__html:void 0,Ie!=null&&Ee(e,Ie)):O==="children"?typeof Ie=="string"?(o!=="textarea"||Ie!=="")&&Re(e,Ie):typeof Ie=="number"&&Re(e,""+Ie):O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&O!=="autoFocus"&&(s.hasOwnProperty(O)?Ie!=null&&O==="onScroll"&&qt("scroll",e):Ie!=null&&M(e,O,Ie,re))}switch(o){case"input":Q(e),Te(e,c,!1);break;case"textarea":Q(e),nt(e);break;case"option":c.value!=null&&e.setAttribute("value",""+Ue(c.value));break;case"select":e.multiple=!!c.multiple,O=c.value,O!=null?Fe(e,!!c.multiple,O,!1):c.defaultValue!=null&&Fe(e,!!c.multiple,c.defaultValue,!0);break;default:typeof y.onClick=="function"&&(e.onclick=vt)}switch(o){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Or(t),null;case 6:if(e&&t.stateNode!=null)rc(e,t,e.memoizedProps,c);else{if(typeof c!="string"&&t.stateNode===null)throw Error(r(166));if(o=hi(vo.current),hi(Un.current),rs(t)){if(c=t.stateNode,o=t.memoizedProps,c[ur]=t,(O=c.nodeValue!==o)&&(e=nn,e!==null))switch(e.tag){case 3:at(c.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&at(c.nodeValue,o,(e.mode&1)!==0)}O&&(t.flags|=4)}else c=(o.nodeType===9?o:o.ownerDocument).createTextNode(c),c[ur]=t,t.stateNode=c}return Or(t),null;case 13:if(Jt(tr),c=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Zt&&an!==null&&(t.mode&1)!==0&&(t.flags&128)===0)iu(),ji(),t.flags|=98560,O=!1;else if(O=rs(t),c!==null&&c.dehydrated!==null){if(e===null){if(!O)throw Error(r(318));if(O=t.memoizedState,O=O!==null?O.dehydrated:null,!O)throw Error(r(317));O[ur]=t}else ji(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Or(t),O=!1}else kn!==null&&(Bl(kn),kn=null),O=!0;if(!O)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=o,t):(c=c!==null,c!==(e!==null&&e.memoizedState!==null)&&c&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(tr.current&1)!==0?hr===0&&(hr=3):Vl())),t.updateQueue!==null&&(t.flags|=4),Or(t),null);case 4:return Vi(),Rl(e,t),e===null&&oi(t.stateNode.containerInfo),Or(t),null;case 10:return nl(t.type._context),Or(t),null;case 17:return Yr(t.type)&&Qo(),Or(t),null;case 19:if(Jt(tr),O=t.memoizedState,O===null)return Or(t),null;if(c=(t.flags&128)!==0,re=O.rendering,re===null)if(c)So(O,!1);else{if(hr!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(re=ls(e),re!==null){for(t.flags|=128,So(O,!1),c=re.updateQueue,c!==null&&(t.updateQueue=c,t.flags|=4),t.subtreeFlags=0,c=o,o=t.child;o!==null;)O=o,e=c,O.flags&=14680066,re=O.alternate,re===null?(O.childLanes=0,O.lanes=e,O.child=null,O.subtreeFlags=0,O.memoizedProps=null,O.memoizedState=null,O.updateQueue=null,O.dependencies=null,O.stateNode=null):(O.childLanes=re.childLanes,O.lanes=re.lanes,O.child=re.child,O.subtreeFlags=0,O.deletions=null,O.memoizedProps=re.memoizedProps,O.memoizedState=re.memoizedState,O.updateQueue=re.updateQueue,O.type=re.type,e=re.dependencies,O.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Xt(tr,tr.current&1|2),t.child}e=e.sibling}O.tail!==null&&gt()>qi&&(t.flags|=128,c=!0,So(O,!1),t.lanes=4194304)}else{if(!c)if(e=ls(re),e!==null){if(t.flags|=128,c=!0,o=e.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),So(O,!0),O.tail===null&&O.tailMode==="hidden"&&!re.alternate&&!Zt)return Or(t),null}else 2*gt()-O.renderingStartTime>qi&&o!==1073741824&&(t.flags|=128,c=!0,So(O,!1),t.lanes=4194304);O.isBackwards?(re.sibling=t.child,t.child=re):(o=O.last,o!==null?o.sibling=re:t.child=re,O.last=re)}return O.tail!==null?(t=O.tail,O.rendering=t,O.tail=t.sibling,O.renderingStartTime=gt(),t.sibling=null,o=tr.current,Xt(tr,c?o&1|2:o&1),t):(Or(t),null);case 22:case 23:return Wl(),c=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==c&&(t.flags|=8192),c&&(t.mode&1)!==0?(on&1073741824)!==0&&(Or(t),t.subtreeFlags&6&&(t.flags|=8192)):Or(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function Vc(e,t){switch(Qs(t),t.tag){case 1:return Yr(t.type)&&Qo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vi(),Jt(qr),Jt(Rr),cl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ll(t),null;case 13:if(Jt(tr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Jt(tr),null;case 4:return Vi(),null;case 10:return nl(t.type._context),null;case 22:case 23:return Wl(),null;case 24:return null;default:return null}}var ys=!1,Ir=!1,zc=typeof WeakSet=="function"?WeakSet:Set,bt=null;function Hi(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(c){ir(e,t,c)}else o.current=null}function xl(e,t,o){try{o()}catch(c){ir(e,t,c)}}var nc=!1;function Hc(e,t){if(Ot=Vt,e=oo(),Pn(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var y=c.anchorOffset,O=c.focusNode;c=c.focusOffset;try{o.nodeType,O.nodeType}catch{o=null;break e}var re=0,_e=-1,Ie=-1,Xe=0,st=0,ut=e,ot=null;t:for(;;){for(var yt;ut!==o||y!==0&&ut.nodeType!==3||(_e=re+y),ut!==O||c!==0&&ut.nodeType!==3||(Ie=re+c),ut.nodeType===3&&(re+=ut.nodeValue.length),(yt=ut.firstChild)!==null;)ot=ut,ut=yt;for(;;){if(ut===e)break t;if(ot===o&&++Xe===y&&(_e=re),ot===O&&++st===c&&(Ie=re),(yt=ut.nextSibling)!==null)break;ut=ot,ot=ut.parentNode}ut=yt}o=_e===-1||Ie===-1?null:{start:_e,end:Ie}}else o=null}o=o||{start:0,end:0}}else o=null;for(It={focusedElem:e,selectionRange:o},Vt=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){t=bt;try{var St=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(St!==null){var _t=St.memoizedProps,sr=St.memoizedState,We=t.stateNode,Le=We.getSnapshotBeforeUpdate(t.elementType===t.type?_t:En(t.type,_t),sr);We.__reactInternalSnapshotBeforeUpdate=Le}break;case 3:var Ge=t.stateNode.containerInfo;Ge.nodeType===1?Ge.textContent="":Ge.nodeType===9&&Ge.documentElement&&Ge.removeChild(Ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ft){ir(t,t.return,ft)}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}return St=nc,nc=!1,St}function _o(e,t,o){var c=t.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var y=c=c.next;do{if((y.tag&e)===e){var O=y.destroy;y.destroy=void 0,O!==void 0&&xl(t,o,O)}y=y.next}while(y!==c)}}function gs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var c=o.create;o.destroy=c()}o=o.next}while(o!==t)}}function Ol(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof t=="function"?t(e):t.current=e}}function ac(e){var t=e.alternate;t!==null&&(e.alternate=null,ac(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ur],delete t[zt],delete t[Dt],delete t[Qt],delete t[ln])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ic(e){return e.tag===5||e.tag===3||e.tag===4}function oc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ic(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Il(e,t,o){var c=e.tag;if(c===5||c===6)e=e.stateNode,t?o.nodeType===8?o.parentNode.insertBefore(e,t):o.insertBefore(e,t):(o.nodeType===8?(t=o.parentNode,t.insertBefore(e,o)):(t=o,t.appendChild(e)),o=o._reactRootContainer,o!=null||t.onclick!==null||(t.onclick=vt));else if(c!==4&&(e=e.child,e!==null))for(Il(e,t,o),e=e.sibling;e!==null;)Il(e,t,o),e=e.sibling}function Fl(e,t,o){var c=e.tag;if(c===5||c===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(c!==4&&(e=e.child,e!==null))for(Fl(e,t,o),e=e.sibling;e!==null;)Fl(e,t,o),e=e.sibling}var Ar=null,Cn=!1;function Ra(e,t,o){for(o=o.child;o!==null;)sc(e,t,o),o=o.sibling}function sc(e,t,o){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Mr,o)}catch{}switch(o.tag){case 5:Ir||Hi(o,t);case 6:var c=Ar,y=Cn;Ar=null,Ra(e,t,o),Ar=c,Cn=y,Ar!==null&&(Cn?(e=Ar,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):Ar.removeChild(o.stateNode));break;case 18:Ar!==null&&(Cn?(e=Ar,o=o.stateNode,e.nodeType===8?Gr(e.parentNode,o):e.nodeType===1&&Gr(e,o),it(e)):Gr(Ar,o.stateNode));break;case 4:c=Ar,y=Cn,Ar=o.stateNode.containerInfo,Cn=!0,Ra(e,t,o),Ar=c,Cn=y;break;case 0:case 11:case 14:case 15:if(!Ir&&(c=o.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){y=c=c.next;do{var O=y,re=O.destroy;O=O.tag,re!==void 0&&((O&2)!==0||(O&4)!==0)&&xl(o,t,re),y=y.next}while(y!==c)}Ra(e,t,o);break;case 1:if(!Ir&&(Hi(o,t),c=o.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=o.memoizedProps,c.state=o.memoizedState,c.componentWillUnmount()}catch(_e){ir(o,t,_e)}Ra(e,t,o);break;case 21:Ra(e,t,o);break;case 22:o.mode&1?(Ir=(c=Ir)||o.memoizedState!==null,Ra(e,t,o),Ir=c):Ra(e,t,o);break;default:Ra(e,t,o)}}function lc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new zc),t.forEach(function(c){var y=ef.bind(null,e,c);o.has(c)||(o.add(c),c.then(y,y))})}}function Rn(e,t){var o=t.deletions;if(o!==null)for(var c=0;c<o.length;c++){var y=o[c];try{var O=e,re=t,_e=re;e:for(;_e!==null;){switch(_e.tag){case 5:Ar=_e.stateNode,Cn=!1;break e;case 3:Ar=_e.stateNode.containerInfo,Cn=!0;break e;case 4:Ar=_e.stateNode.containerInfo,Cn=!0;break e}_e=_e.return}if(Ar===null)throw Error(r(160));sc(O,re,y),Ar=null,Cn=!1;var Ie=y.alternate;Ie!==null&&(Ie.return=null),y.return=null}catch(Xe){ir(y,t,Xe)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)uc(t,e),t=t.sibling}function uc(e,t){var o=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rn(t,e),Bn(e),c&4){try{_o(3,e,e.return),gs(3,e)}catch(_t){ir(e,e.return,_t)}try{_o(5,e,e.return)}catch(_t){ir(e,e.return,_t)}}break;case 1:Rn(t,e),Bn(e),c&512&&o!==null&&Hi(o,o.return);break;case 5:if(Rn(t,e),Bn(e),c&512&&o!==null&&Hi(o,o.return),e.flags&32){var y=e.stateNode;try{Re(y,"")}catch(_t){ir(e,e.return,_t)}}if(c&4&&(y=e.stateNode,y!=null)){var O=e.memoizedProps,re=o!==null?o.memoizedProps:O,_e=e.type,Ie=e.updateQueue;if(e.updateQueue=null,Ie!==null)try{_e==="input"&&O.type==="radio"&&O.name!=null&&oe(y,O),W(_e,re);var Xe=W(_e,O);for(re=0;re<Ie.length;re+=2){var st=Ie[re],ut=Ie[re+1];st==="style"?ye(y,ut):st==="dangerouslySetInnerHTML"?Ee(y,ut):st==="children"?Re(y,ut):M(y,st,ut,Xe)}switch(_e){case"input":pe(y,O);break;case"textarea":Je(y,O);break;case"select":var ot=y._wrapperState.wasMultiple;y._wrapperState.wasMultiple=!!O.multiple;var yt=O.value;yt!=null?Fe(y,!!O.multiple,yt,!1):ot!==!!O.multiple&&(O.defaultValue!=null?Fe(y,!!O.multiple,O.defaultValue,!0):Fe(y,!!O.multiple,O.multiple?[]:"",!1))}y[zt]=O}catch(_t){ir(e,e.return,_t)}}break;case 6:if(Rn(t,e),Bn(e),c&4){if(e.stateNode===null)throw Error(r(162));y=e.stateNode,O=e.memoizedProps;try{y.nodeValue=O}catch(_t){ir(e,e.return,_t)}}break;case 3:if(Rn(t,e),Bn(e),c&4&&o!==null&&o.memoizedState.isDehydrated)try{it(t.containerInfo)}catch(_t){ir(e,e.return,_t)}break;case 4:Rn(t,e),Bn(e);break;case 13:Rn(t,e),Bn(e),y=e.child,y.flags&8192&&(O=y.memoizedState!==null,y.stateNode.isHidden=O,!O||y.alternate!==null&&y.alternate.memoizedState!==null||(Dl=gt())),c&4&&lc(e);break;case 22:if(st=o!==null&&o.memoizedState!==null,e.mode&1?(Ir=(Xe=Ir)||st,Rn(t,e),Ir=Xe):Rn(t,e),Bn(e),c&8192){if(Xe=e.memoizedState!==null,(e.stateNode.isHidden=Xe)&&!st&&(e.mode&1)!==0)for(bt=e,st=e.child;st!==null;){for(ut=bt=st;bt!==null;){switch(ot=bt,yt=ot.child,ot.tag){case 0:case 11:case 14:case 15:_o(4,ot,ot.return);break;case 1:Hi(ot,ot.return);var St=ot.stateNode;if(typeof St.componentWillUnmount=="function"){c=ot,o=ot.return;try{t=c,St.props=t.memoizedProps,St.state=t.memoizedState,St.componentWillUnmount()}catch(_t){ir(c,o,_t)}}break;case 5:Hi(ot,ot.return);break;case 22:if(ot.memoizedState!==null){dc(ut);continue}}yt!==null?(yt.return=ot,bt=yt):dc(ut)}st=st.sibling}e:for(st=null,ut=e;;){if(ut.tag===5){if(st===null){st=ut;try{y=ut.stateNode,Xe?(O=y.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none"):(_e=ut.stateNode,Ie=ut.memoizedProps.style,re=Ie!=null&&Ie.hasOwnProperty("display")?Ie.display:null,_e.style.display=ue("display",re))}catch(_t){ir(e,e.return,_t)}}}else if(ut.tag===6){if(st===null)try{ut.stateNode.nodeValue=Xe?"":ut.memoizedProps}catch(_t){ir(e,e.return,_t)}}else if((ut.tag!==22&&ut.tag!==23||ut.memoizedState===null||ut===e)&&ut.child!==null){ut.child.return=ut,ut=ut.child;continue}if(ut===e)break e;for(;ut.sibling===null;){if(ut.return===null||ut.return===e)break e;st===ut&&(st=null),ut=ut.return}st===ut&&(st=null),ut.sibling.return=ut.return,ut=ut.sibling}}break;case 19:Rn(t,e),Bn(e),c&4&&lc(e);break;case 21:break;default:Rn(t,e),Bn(e)}}function Bn(e){var t=e.flags;if(t&2){try{e:{for(var o=e.return;o!==null;){if(ic(o)){var c=o;break e}o=o.return}throw Error(r(160))}switch(c.tag){case 5:var y=c.stateNode;c.flags&32&&(Re(y,""),c.flags&=-33);var O=oc(e);Fl(e,O,y);break;case 3:case 4:var re=c.stateNode.containerInfo,_e=oc(e);Il(e,_e,re);break;default:throw Error(r(161))}}catch(Ie){ir(e,e.return,Ie)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gc(e,t,o){bt=e,cc(e)}function cc(e,t,o){for(var c=(e.mode&1)!==0;bt!==null;){var y=bt,O=y.child;if(y.tag===22&&c){var re=y.memoizedState!==null||ys;if(!re){var _e=y.alternate,Ie=_e!==null&&_e.memoizedState!==null||Ir;_e=ys;var Xe=Ir;if(ys=re,(Ir=Ie)&&!Xe)for(bt=y;bt!==null;)re=bt,Ie=re.child,re.tag===22&&re.memoizedState!==null?hc(y):Ie!==null?(Ie.return=re,bt=Ie):hc(y);for(;O!==null;)bt=O,cc(O),O=O.sibling;bt=y,ys=_e,Ir=Xe}fc(e)}else(y.subtreeFlags&8772)!==0&&O!==null?(O.return=y,bt=O):fc(e)}}function fc(e){for(;bt!==null;){var t=bt;if((t.flags&8772)!==0){var o=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ir||gs(5,t);break;case 1:var c=t.stateNode;if(t.flags&4&&!Ir)if(o===null)c.componentDidMount();else{var y=t.elementType===t.type?o.memoizedProps:En(t.type,o.memoizedProps);c.componentDidUpdate(y,o.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var O=t.updateQueue;O!==null&&du(t,O,c);break;case 3:var re=t.updateQueue;if(re!==null){if(o=null,t.child!==null)switch(t.child.tag){case 5:o=t.child.stateNode;break;case 1:o=t.child.stateNode}du(t,re,o)}break;case 5:var _e=t.stateNode;if(o===null&&t.flags&4){o=_e;var Ie=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":Ie.autoFocus&&o.focus();break;case"img":Ie.src&&(o.src=Ie.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var Xe=t.alternate;if(Xe!==null){var st=Xe.memoizedState;if(st!==null){var ut=st.dehydrated;ut!==null&&it(ut)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Ir||t.flags&512&&Ol(t)}catch(ot){ir(t,t.return,ot)}}if(t===e){bt=null;break}if(o=t.sibling,o!==null){o.return=t.return,bt=o;break}bt=t.return}}function dc(e){for(;bt!==null;){var t=bt;if(t===e){bt=null;break}var o=t.sibling;if(o!==null){o.return=t.return,bt=o;break}bt=t.return}}function hc(e){for(;bt!==null;){var t=bt;try{switch(t.tag){case 0:case 11:case 15:var o=t.return;try{gs(4,t)}catch(Ie){ir(t,o,Ie)}break;case 1:var c=t.stateNode;if(typeof c.componentDidMount=="function"){var y=t.return;try{c.componentDidMount()}catch(Ie){ir(t,y,Ie)}}var O=t.return;try{Ol(t)}catch(Ie){ir(t,O,Ie)}break;case 5:var re=t.return;try{Ol(t)}catch(Ie){ir(t,re,Ie)}}}catch(Ie){ir(t,t.return,Ie)}if(t===e){bt=null;break}var _e=t.sibling;if(_e!==null){_e.return=t.return,bt=_e;break}bt=t.return}}var qc=Math.ceil,bs=g.ReactCurrentDispatcher,Ml=g.ReactCurrentOwner,vn=g.ReactCurrentBatchConfig,Ut=0,mr=null,cr=null,Pr=0,on=0,Gi=Pa(0),hr=0,wo=null,vi=0,Ss=0,Ll=0,Ao=null,Kr=null,Dl=0,qi=1/0,na=null,_s=!1,Nl=null,xa=null,ws=!1,Oa=null,As=0,Po=0,Ul=null,Ps=-1,Ts=0;function Ur(){return(Ut&6)!==0?gt():Ps!==-1?Ps:Ps=gt()}function Ia(e){return(e.mode&1)===0?1:(Ut&2)!==0&&Pr!==0?Pr&-Pr:xc.transition!==null?(Ts===0&&(Ts=Si()),Ts):(e=Nt,e!==0||(e=window.event,e=e===void 0?16:za(e.type)),e)}function xn(e,t,o,c){if(50<Po)throw Po=0,Ul=null,Error(r(185));Vn(e,o,c),((Ut&2)===0||e!==mr)&&(e===mr&&((Ut&2)===0&&(Ss|=o),hr===4&&Fa(e,Pr)),Qr(e,c),o===1&&Ut===0&&(t.mode&1)===0&&(qi=gt()+500,Zo&&ka()))}function Qr(e,t){var o=e.callbackNode;aa(e,t);var c=bn(e,e===mr?Pr:0);if(c===0)o!==null&&dt(o),e.callbackNode=null,e.callbackPriority=0;else if(t=c&-c,e.callbackPriority!==t){if(o!=null&&dt(o),t===1)e.tag===0?Rc(vc.bind(null,e)):eu(vc.bind(null,e)),Aa(function(){(Ut&6)===0&&ka()}),o=null;else{switch(Ua(c)){case 1:o=Wt;break;case 4:o=fr;break;case 16:o=Gt;break;case 536870912:o=Sr;break;default:o=Gt}o=Ac(o,pc.bind(null,e))}e.callbackPriority=t,e.callbackNode=o}}function pc(e,t){if(Ps=-1,Ts=0,(Ut&6)!==0)throw Error(r(327));var o=e.callbackNode;if(Yi()&&e.callbackNode!==o)return null;var c=bn(e,e===mr?Pr:0);if(c===0)return null;if((c&30)!==0||(c&e.expiredLanes)!==0||t)t=ks(e,c);else{t=c;var y=Ut;Ut|=2;var O=yc();(mr!==e||Pr!==t)&&(na=null,qi=gt()+500,yi(e,t));do try{Kc();break}catch(_e){mc(e,_e)}while(!0);rl(),bs.current=O,Ut=y,cr!==null?t=0:(mr=null,Pr=0,t=hr)}if(t!==0){if(t===2&&(y=In(e),y!==0&&(c=y,t=jl(e,y))),t===1)throw o=wo,yi(e,0),Fa(e,c),Qr(e,gt()),o;if(t===6)Fa(e,c);else{if(y=e.current.alternate,(c&30)===0&&!Yc(y)&&(t=ks(e,c),t===2&&(O=In(e),O!==0&&(c=O,t=jl(e,O))),t===1))throw o=wo,yi(e,0),Fa(e,c),Qr(e,gt()),o;switch(e.finishedWork=y,e.finishedLanes=c,t){case 0:case 1:throw Error(r(345));case 2:gi(e,Kr,na);break;case 3:if(Fa(e,c),(c&130023424)===c&&(t=Dl+500-gt(),10<t)){if(bn(e,0)!==0)break;if(y=e.suspendedLanes,(y&c)!==c){Ur(),e.pingedLanes|=e.suspendedLanes&y;break}e.timeoutHandle=Lt(gi.bind(null,e,Kr,na),t);break}gi(e,Kr,na);break;case 4:if(Fa(e,c),(c&4194240)===c)break;for(t=e.eventTimes,y=-1;0<c;){var re=31-or(c);O=1<<re,re=t[re],re>y&&(y=re),c&=~O}if(c=y,c=gt()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*qc(c/1960))-c,10<c){e.timeoutHandle=Lt(gi.bind(null,e,Kr,na),c);break}gi(e,Kr,na);break;case 5:gi(e,Kr,na);break;default:throw Error(r(329))}}}return Qr(e,gt()),e.callbackNode===o?pc.bind(null,e):null}function jl(e,t){var o=Ao;return e.current.memoizedState.isDehydrated&&(yi(e,t).flags|=256),e=ks(e,t),e!==2&&(t=Kr,Kr=o,t!==null&&Bl(t)),e}function Bl(e){Kr===null?Kr=e:Kr.push.apply(Kr,e)}function Yc(e){for(var t=e;;){if(t.flags&16384){var o=t.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var c=0;c<o.length;c++){var y=o[c],O=y.getSnapshot;y=y.value;try{if(!Dr(O(),y))return!1}catch{return!1}}}if(o=t.child,t.subtreeFlags&16384&&o!==null)o.return=t,t=o;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fa(e,t){for(t&=~Ll,t&=~Ss,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var o=31-or(t),c=1<<o;e[o]=-1,t&=~c}}function vc(e){if((Ut&6)!==0)throw Error(r(327));Yi();var t=bn(e,0);if((t&1)===0)return Qr(e,gt()),null;var o=ks(e,t);if(e.tag!==0&&o===2){var c=In(e);c!==0&&(t=c,o=jl(e,c))}if(o===1)throw o=wo,yi(e,0),Fa(e,t),Qr(e,gt()),o;if(o===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,gi(e,Kr,na),Qr(e,gt()),null}function $l(e,t){var o=Ut;Ut|=1;try{return e(t)}finally{Ut=o,Ut===0&&(qi=gt()+500,Zo&&ka())}}function mi(e){Oa!==null&&Oa.tag===0&&(Ut&6)===0&&Yi();var t=Ut;Ut|=1;var o=vn.transition,c=Nt;try{if(vn.transition=null,Nt=1,e)return e()}finally{Nt=c,vn.transition=o,Ut=t,(Ut&6)===0&&ka()}}function Wl(){on=Gi.current,Jt(Gi)}function yi(e,t){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,ar(o)),cr!==null)for(o=cr.return;o!==null;){var c=o;switch(Qs(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Qo();break;case 3:Vi(),Jt(qr),Jt(Rr),cl();break;case 5:ll(c);break;case 4:Vi();break;case 13:Jt(tr);break;case 19:Jt(tr);break;case 10:nl(c.type._context);break;case 22:case 23:Wl()}o=o.return}if(mr=e,cr=e=Ma(e.current,null),Pr=on=t,hr=0,wo=null,Ll=Ss=vi=0,Kr=Ao=null,di!==null){for(t=0;t<di.length;t++)if(o=di[t],c=o.interleaved,c!==null){o.interleaved=null;var y=c.next,O=o.pending;if(O!==null){var re=O.next;O.next=y,c.next=re}o.pending=c}di=null}return e}function mc(e,t){do{var o=cr;try{if(rl(),us.current=hs,cs){for(var c=rr.memoizedState;c!==null;){var y=c.queue;y!==null&&(y.pending=null),c=c.next}cs=!1}if(pi=0,vr=dr=rr=null,mo=!1,yo=0,Ml.current=null,o===null||o.return===null){hr=1,wo=t,cr=null;break}e:{var O=e,re=o.return,_e=o,Ie=t;if(t=Pr,_e.flags|=32768,Ie!==null&&typeof Ie=="object"&&typeof Ie.then=="function"){var Xe=Ie,st=_e,ut=st.tag;if((st.mode&1)===0&&(ut===0||ut===11||ut===15)){var ot=st.alternate;ot?(st.updateQueue=ot.updateQueue,st.memoizedState=ot.memoizedState,st.lanes=ot.lanes):(st.updateQueue=null,st.memoizedState=null)}var yt=$u(re);if(yt!==null){yt.flags&=-257,Wu(yt,re,_e,O,t),yt.mode&1&&Bu(O,Xe,t),t=yt,Ie=Xe;var St=t.updateQueue;if(St===null){var _t=new Set;_t.add(Ie),t.updateQueue=_t}else St.add(Ie);break e}else{if((t&1)===0){Bu(O,Xe,t),Vl();break e}Ie=Error(r(426))}}else if(Zt&&_e.mode&1){var sr=$u(re);if(sr!==null){(sr.flags&65536)===0&&(sr.flags|=256),Wu(sr,re,_e,O,t),el(zi(Ie,_e));break e}}O=Ie=zi(Ie,_e),hr!==4&&(hr=2),Ao===null?Ao=[O]:Ao.push(O),O=re;do{switch(O.tag){case 3:O.flags|=65536,t&=-t,O.lanes|=t;var We=Uu(O,Ie,t);fu(O,We);break e;case 1:_e=Ie;var Le=O.type,Ge=O.stateNode;if((O.flags&128)===0&&(typeof Le.getDerivedStateFromError=="function"||Ge!==null&&typeof Ge.componentDidCatch=="function"&&(xa===null||!xa.has(Ge)))){O.flags|=65536,t&=-t,O.lanes|=t;var ft=ju(O,_e,t);fu(O,ft);break e}}O=O.return}while(O!==null)}bc(o)}catch(wt){t=wt,cr===o&&o!==null&&(cr=o=o.return);continue}break}while(!0)}function yc(){var e=bs.current;return bs.current=hs,e===null?hs:e}function Vl(){(hr===0||hr===3||hr===2)&&(hr=4),mr===null||(vi&268435455)===0&&(Ss&268435455)===0||Fa(mr,Pr)}function ks(e,t){var o=Ut;Ut|=2;var c=yc();(mr!==e||Pr!==t)&&(na=null,yi(e,t));do try{Xc();break}catch(y){mc(e,y)}while(!0);if(rl(),Ut=o,bs.current=c,cr!==null)throw Error(r(261));return mr=null,Pr=0,hr}function Xc(){for(;cr!==null;)gc(cr)}function Kc(){for(;cr!==null&&!ht();)gc(cr)}function gc(e){var t=wc(e.alternate,e,on);e.memoizedProps=e.pendingProps,t===null?bc(e):cr=t,Ml.current=null}function bc(e){var t=e;do{var o=t.alternate;if(e=t.return,(t.flags&32768)===0){if(o=Wc(o,t,on),o!==null){cr=o;return}}else{if(o=Vc(o,t),o!==null){o.flags&=32767,cr=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{hr=6,cr=null;return}}if(t=t.sibling,t!==null){cr=t;return}cr=t=e}while(t!==null);hr===0&&(hr=5)}function gi(e,t,o){var c=Nt,y=vn.transition;try{vn.transition=null,Nt=1,Qc(e,t,o,c)}finally{vn.transition=y,Nt=c}return null}function Qc(e,t,o,c){do Yi();while(Oa!==null);if((Ut&6)!==0)throw Error(r(327));o=e.finishedWork;var y=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var O=o.lanes|o.childLanes;if(Xi(e,O),e===mr&&(cr=mr=null,Pr=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||ws||(ws=!0,Ac(Gt,function(){return Yi(),null})),O=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||O){O=vn.transition,vn.transition=null;var re=Nt;Nt=1;var _e=Ut;Ut|=4,Ml.current=null,Hc(e,o),uc(o,e),Vo(It),Vt=!!Ot,It=Ot=null,e.current=o,Gc(o),Pt(),Ut=_e,Nt=re,vn.transition=O}else e.current=o;if(ws&&(ws=!1,Oa=e,As=y),O=e.pendingLanes,O===0&&(xa=null),yn(o.stateNode),Qr(e,gt()),t!==null)for(c=e.onRecoverableError,o=0;o<t.length;o++)y=t[o],c(y.value,{componentStack:y.stack,digest:y.digest});if(_s)throw _s=!1,e=Nl,Nl=null,e;return(As&1)!==0&&e.tag!==0&&Yi(),O=e.pendingLanes,(O&1)!==0?e===Ul?Po++:(Po=0,Ul=e):Po=0,ka(),null}function Yi(){if(Oa!==null){var e=Ua(As),t=vn.transition,o=Nt;try{if(vn.transition=null,Nt=16>e?16:e,Oa===null)var c=!1;else{if(e=Oa,Oa=null,As=0,(Ut&6)!==0)throw Error(r(331));var y=Ut;for(Ut|=4,bt=e.current;bt!==null;){var O=bt,re=O.child;if((bt.flags&16)!==0){var _e=O.deletions;if(_e!==null){for(var Ie=0;Ie<_e.length;Ie++){var Xe=_e[Ie];for(bt=Xe;bt!==null;){var st=bt;switch(st.tag){case 0:case 11:case 15:_o(8,st,O)}var ut=st.child;if(ut!==null)ut.return=st,bt=ut;else for(;bt!==null;){st=bt;var ot=st.sibling,yt=st.return;if(ac(st),st===Xe){bt=null;break}if(ot!==null){ot.return=yt,bt=ot;break}bt=yt}}}var St=O.alternate;if(St!==null){var _t=St.child;if(_t!==null){St.child=null;do{var sr=_t.sibling;_t.sibling=null,_t=sr}while(_t!==null)}}bt=O}}if((O.subtreeFlags&2064)!==0&&re!==null)re.return=O,bt=re;else e:for(;bt!==null;){if(O=bt,(O.flags&2048)!==0)switch(O.tag){case 0:case 11:case 15:_o(9,O,O.return)}var We=O.sibling;if(We!==null){We.return=O.return,bt=We;break e}bt=O.return}}var Le=e.current;for(bt=Le;bt!==null;){re=bt;var Ge=re.child;if((re.subtreeFlags&2064)!==0&&Ge!==null)Ge.return=re,bt=Ge;else e:for(re=Le;bt!==null;){if(_e=bt,(_e.flags&2048)!==0)try{switch(_e.tag){case 0:case 11:case 15:gs(9,_e)}}catch(wt){ir(_e,_e.return,wt)}if(_e===re){bt=null;break e}var ft=_e.sibling;if(ft!==null){ft.return=_e.return,bt=ft;break e}bt=_e.return}}if(Ut=y,ka(),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(Mr,e)}catch{}c=!0}return c}finally{Nt=o,vn.transition=t}}return!1}function Sc(e,t,o){t=zi(o,t),t=Uu(e,t,1),e=Ca(e,t,1),t=Ur(),e!==null&&(Vn(e,1,t),Qr(e,t))}function ir(e,t,o){if(e.tag===3)Sc(e,e,o);else for(;t!==null;){if(t.tag===3){Sc(t,e,o);break}else if(t.tag===1){var c=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(xa===null||!xa.has(c))){e=zi(o,e),e=ju(t,e,1),t=Ca(t,e,1),e=Ur(),t!==null&&(Vn(t,1,e),Qr(t,e));break}}t=t.return}}
vendor: 4,305 bytes, line 47
47function Jc(e,t,o){var c=e.pingCache;c!==null&&c.delete(t),t=Ur(),e.pingedLanes|=e.suspendedLanes&o,mr===e&&(Pr&o)===o&&(hr===4||hr===3&&(Pr&130023424)===Pr&&500>gt()-Dl?yi(e,0):Ll|=o),Qr(e,t)}function _c(e,t){t===0&&((e.mode&1)===0?t=1:(t=Ht,Ht<<=1,(Ht&130023424)===0&&(Ht=4194304)));var o=Ur();e=ea(e,t),e!==null&&(Vn(e,t,o),Qr(e,o))}function Zc(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),_c(e,o)}function ef(e,t){var o=0;switch(e.tag){case 13:var c=e.stateNode,y=e.memoizedState;y!==null&&(o=y.retryLane);break;case 19:c=e.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(t),_c(e,o)}var wc;wc=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||qr.current)Xr=!0;else{if((e.lanes&o)===0&&(t.flags&128)===0)return Xr=!1,$c(e,t,o);Xr=(e.flags&131072)!==0}else Xr=!1,Zt&&(t.flags&1048576)!==0&&tu(t,ts,t.index);switch(t.lanes=0,t.tag){case 2:var c=t.type;ms(e,t),e=t.pendingProps;var y=Di(t,Rr.current);Wi(t,o),y=hl(null,t,c,e,y,o);var O=pl();return t.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Yr(c)?(O=!0,Jo(t)):O=!1,t.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,ol(t),y.updater=ps,t.stateNode=y,y._reactInternals=t,Sl(t,c,e,o),t=Pl(null,t,c,!0,O,o)):(t.tag=0,Zt&&O&&Ks(t),Nr(null,t,y,o),t=t.child),t;case 16:c=t.elementType;e:{switch(ms(e,t),e=t.pendingProps,y=c._init,c=y(c._payload),t.type=c,y=t.tag=rf(c),e=En(c,e),y){case 0:t=Al(null,t,c,e,o);break e;case 1:t=Yu(null,t,c,e,o);break e;case 11:t=Vu(null,t,c,e,o);break e;case 14:t=zu(null,t,c,En(c.type,e),o);break e}throw Error(r(306,c,""))}return t;case 0:return c=t.type,y=t.pendingProps,y=t.elementType===c?y:En(c,y),Al(e,t,c,y,o);case 1:return c=t.type,y=t.pendingProps,y=t.elementType===c?y:En(c,y),Yu(e,t,c,y,o);case 3:e:{if(Xu(t),e===null)throw Error(r(387));c=t.pendingProps,O=t.memoizedState,y=O.element,cu(e,t),ss(t,c,null,o);var re=t.memoizedState;if(c=re.element,O.isDehydrated)if(O={element:c,isDehydrated:!1,cache:re.cache,pendingSuspenseBoundaries:re.pendingSuspenseBoundaries,transitions:re.transitions},t.updateQueue.baseState=O,t.memoizedState=O,t.flags&256){y=zi(Error(r(423)),t),t=Ku(e,t,c,o,y);break e}else if(c!==y){y=zi(Error(r(424)),t),t=Ku(e,t,c,o,y);break e}else for(an=Yt(t.stateNode.containerInfo.firstChild),nn=t,Zt=!0,kn=null,o=lu(t,null,c,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(ji(),c===y){t=ra(e,t,o);break e}Nr(e,t,c,o)}t=t.child}return t;case 5:return hu(t),e===null&&Zs(t),c=t.type,y=t.pendingProps,O=e!==null?e.memoizedProps:null,re=y.children,Ft(c,y)?re=null:O!==null&&Ft(c,O)&&(t.flags|=32),qu(e,t),Nr(e,t,re,o),t.child;case 6:return e===null&&Zs(t),null;case 13:return Qu(e,t,o);case 4:return sl(t,t.stateNode.containerInfo),c=t.pendingProps,e===null?t.child=Bi(t,null,c,o):Nr(e,t,c,o),t.child;case 11:return c=t.type,y=t.pendingProps,y=t.elementType===c?y:En(c,y),Vu(e,t,c,y,o);case 7:return Nr(e,t,t.pendingProps,o),t.child;case 8:return Nr(e,t,t.pendingProps.children,o),t.child;case 12:return Nr(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(c=t.type._context,y=t.pendingProps,O=t.memoizedProps,re=y.value,Xt(as,c._currentValue),c._currentValue=re,O!==null)if(Dr(O.value,re)){if(O.children===y.children&&!qr.current){t=ra(e,t,o);break e}}else for(O=t.child,O!==null&&(O.return=t);O!==null;){var _e=O.dependencies;if(_e!==null){re=O.child;for(var Ie=_e.firstContext;Ie!==null;){if(Ie.context===c){if(O.tag===1){Ie=ta(-1,o&-o),Ie.tag=2;var Xe=O.updateQueue;if(Xe!==null){Xe=Xe.shared;var st=Xe.pending;st===null?Ie.next=Ie:(Ie.next=st.next,st.next=Ie),Xe.pending=Ie}}O.lanes|=o,Ie=O.alternate,Ie!==null&&(Ie.lanes|=o),al(O.return,o,t),_e.lanes|=o;break}Ie=Ie.next}}else if(O.tag===10)re=O.type===t.type?null:O.child;else if(O.tag===18){if(re=O.return,re===null)throw Error(r(341));re.lanes|=o,_e=re.alternate,_e!==null&&(_e.lanes|=o),al(re,o,t),re=O.sibling}else re=O.child;if(re!==null)re.return=O;else for(re=O;re!==null;){if(re===t){re=null;break}if(O=re.sibling,O!==null){O.return=re.return,re=O;break}re=re.return}O=re}Nr(e,t,y.children,o),t=t.child}return t;case 9:return y=t.type,c=t.pendingProps.children,Wi(t,o),y=hn(y),c=c(y),t.flags|=1,Nr(e,t,c,o),t.child;case 14:return c=t.type,y=En(c,t.pendingProps),y=En(c.type,y),zu
vendor: 12,822 bytes, line 47
47(e,t,c,y,o);case 15:return Hu(e,t,t.type,t.pendingProps,o);case 17:return c=t.type,y=t.pendingProps,y=t.elementType===c?y:En(c,y),ms(e,t),t.tag=1,Yr(c)?(e=!0,Jo(t)):e=!1,Wi(t,o),Du(t,c,y),Sl(t,c,y,o),Pl(null,t,c,!0,e,o);case 19:return Zu(e,t,o);case 22:return Gu(e,t,o)}throw Error(r(156,t.tag))};function Ac(e,t){return je(e,t)}function tf(e,t,o,c){this.tag=e,this.key=o,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=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mn(e,t,o,c){return new tf(e,t,o,c)}function zl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rf(e){if(typeof e=="function")return zl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===J)return 11;if(e===le)return 14}return 2}function Ma(e,t){var o=e.alternate;return o===null?(o=mn(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Es(e,t,o,c,y,O){var re=2;if(c=e,typeof e=="function")zl(e)&&(re=1);else if(typeof e=="string")re=5;else e:switch(e){case k:return bi(o.children,y,O,t);case T:re=8,y|=8;break;case w:return e=mn(12,o,t,y|2),e.elementType=w,e.lanes=O,e;case K:return e=mn(13,o,t,y),e.elementType=K,e.lanes=O,e;case te:return e=mn(19,o,t,y),e.elementType=te,e.lanes=O,e;case ve:return Cs(o,y,O,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:re=10;break e;case z:re=9;break e;case J:re=11;break e;case le:re=14;break e;case fe:re=16,c=null;break e}throw Error(r(130,e==null?e:typeof e,""))}return t=mn(re,o,t,y),t.elementType=e,t.type=c,t.lanes=O,t}function bi(e,t,o,c){return e=mn(7,e,c,t),e.lanes=o,e}function Cs(e,t,o,c){return e=mn(22,e,c,t),e.elementType=ve,e.lanes=o,e.stateNode={isHidden:!1},e}function Hl(e,t,o){return e=mn(6,e,null,t),e.lanes=o,e}function Gl(e,t,o){return t=mn(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nf(e,t,o,c,y){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Da(0),this.expirationTimes=Da(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Da(0),this.identifierPrefix=c,this.onRecoverableError=y,this.mutableSourceEagerHydrationData=null}function ql(e,t,o,c,y,O,re,_e,Ie){return e=new nf(e,t,o,_e,Ie),t===1?(t=1,O===!0&&(t|=8)):t=0,O=mn(3,null,null,t),e.current=O,O.stateNode=e,O.memoizedState={element:c,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},ol(O),e}function af(e,t,o){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:c==null?null:""+c,children:e,containerInfo:t,implementation:o}}function Pc(e){if(!e)return Ta;e=e._reactInternals;e:{if(Tr(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Yr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var o=e.type;if(Yr(o))return Jl(e,o,t)}return t}function Tc(e,t,o,c,y,O,re,_e,Ie){return e=ql(o,c,!0,e,y,O,re,_e,Ie),e.context=Pc(null),o=e.current,c=Ur(),y=Ia(o),O=ta(c,y),O.callback=t??null,Ca(o,O,y),e.current.lanes=y,Vn(e,y,c),Qr(e,c),e}function Rs(e,t,o,c){var y=t.current,O=Ur(),re=Ia(y);return o=Pc(o),t.context===null?t.context=o:t.pendingContext=o,t=ta(O,re),t.payload={element:e},c=c===void 0?null:c,c!==null&&(t.callback=c),e=Ca(y,t,re),e!==null&&(xn(e,y,re,O),os(e,y,re)),re}function xs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function kc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<t?o:t}}function Yl(e,t){kc(e,t),(e=e.alternate)&&kc(e,t)}function of(){return null}var Ec=typeof reportError=="function"?reportError:function(e){console.error(e)};function Xl(e){this._internalRoot=e}Os.prototype.render=Xl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));Rs(e,t,null,null)},Os.prototype.unmount=Xl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mi(function(){Rs(null,e,null,null)}),t[At]=null}};function Os(e){this._internalRoot=e}Os.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fn();e={blockedOn:null,target:e,priority:t};for(var o=0;o<Br.length&&t!==0&&t<Br[o].priority;o++);Br.splice(o,0,e),o===0&&Pi(e)}};function Kl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Is(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Cc(){}function sf(e,t,o,c,y){if(y){if(typeof c=="function"){var O=c;c=function(){var Xe=xs(re);O.call(Xe)}}var re=Tc(t,c,e,0,null,!1,!1,"",Cc);return e._reactRootContainer=re,e[At]=re.current,oi(e.nodeType===8?e.parentNode:e),mi(),re}for(;y=e.lastChild;)e.removeChild(y);if(typeof c=="function"){var _e=c;c=function(){var Xe=xs(Ie);_e.call(Xe)}}var Ie=ql(e,0,!1,null,null,!1,!1,"",Cc);return e._reactRootContainer=Ie,e[At]=Ie.current,oi(e.nodeType===8?e.parentNode:e),mi(function(){Rs(t,Ie,o,c)}),Ie}function Fs(e,t,o,c,y){var O=o._reactRootContainer;if(O){var re=O;if(typeof y=="function"){var _e=y;y=function(){var Ie=xs(re);_e.call(Ie)}}Rs(t,re,e,y)}else re=sf(o,t,e,y,c);return xs(re)}_i=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var o=kr(t.pendingLanes);o!==0&&(Na(t,o|1),Qr(t,gt()),(Ut&6)===0&&(qi=gt()+500,ka()))}break;case 13:mi(function(){var c=ea(e,1);if(c!==null){var y=Ur();xn(c,e,1,y)}}),Yl(e,1)}},ja=function(e){if(e.tag===13){var t=ea(e,134217728);if(t!==null){var o=Ur();xn(t,e,134217728,o)}Yl(e,134217728)}},wi=function(e){if(e.tag===13){var t=Ia(e),o=ea(e,t);if(o!==null){var c=Ur();xn(o,e,t,c)}Yl(e,t)}},Fn=function(){return Nt},Ba=function(e,t){var o=Nt;try{return Nt=e,t()}finally{Nt=o}},we=function(e,t,o){switch(t){case"input":if(pe(e,o),t=o.name,o.type==="radio"&&t!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<o.length;t++){var c=o[t];if(c!==e&&c.form===e.form){var y=si(c);if(!y)throw Error(r(90));L(c),pe(c,y)}}}break;case"textarea":Je(e,o);break;case"select":t=o.value,t!=null&&Fe(e,!!o.multiple,t,!1)}},Ve=$l,rt=mi;var lf={usingClientEntryPoint:!1,Events:[un,cn,si,He,Ne,$l]},To={findFiberByHostInstance:Cr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},uf={bundleType:To.bundleType,version:To.version,rendererPackageName:To.rendererPackageName,rendererConfig:To.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:g.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ke(e),e===null?null:e.stateNode},findFiberByHostInstance:To.findFiberByHostInstance||of,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ms=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ms.isDisabled&&Ms.supportsFiber)try{Mr=Ms.inject(uf),Mt=Ms}catch{}}return reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lf,reactDom_production_min.createPortal=function(e,t){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Kl(t))throw Error(r(200));return af(e,t,null,o)},reactDom_production_min.createRoot=function(e,t){if(!Kl(e))throw Error(r(299));var o=!1,c="",y=Ec;return t!=null&&(t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(c=t.identifierPrefix),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=ql(e,1,!1,null,null,o,!1,c,y),e[At]=t.current,oi(e.nodeType===8?e.parentNode:e),new Xl(t)},reactDom_production_min.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=Ke(t),e=e===null?null:e.stateNode,e},reactDom_production_min.flushSync=function(e){return mi(e)},reactDom_production_min.hydrate=function(e,t,o){if(!Is(t))throw Error(r(200));return Fs(null,e,t,!0,o)},reactDom_production_min.hydrateRoot=function(e,t,o){if(!Kl(e))throw Error(r(405));var c=o!=null&&o.hydratedSources||null,y=!1,O="",re=Ec;if(o!=null&&(o.unstable_strictMode===!0&&(y=!0),o.identifierPrefix!==void 0&&(O=o.identifierPrefix),o.onRecoverableError!==void 0&&(re=o.onRecoverableError)),t=Tc(t,null,e,1,o??null,y,!1,O,re),e[At]=t.current,oi(e),c)for(e=0;e<c.length;e++)o=c[e],y=o._getVersion,y=y(o._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[o,y]:t.mutableSourceEagerHydrationData.push(o,y);return new Os(t)},reactDom_production_min.render=function(e,t,o){if(!Is(t))throw Error(r(200));return Fs(null,e,t,!1,o)},reactDom_production_min.unmountComponentAtNode=function(e){if(!Is(e))throw Error(r(40));return e._reactRootContainer?(mi(function(){Fs(null,null,e,!1,function(){e._reactRootContainer=null,e[At]=null})}),!0):!1},reactDom_production_min.unstable_batchedUpdates=$l,reactDom_production_min.unstable_renderSubtreeIntoContainer=function(e,t,o,c){if(!Is(o))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Fs(e,t,o,!1,c)},reactDom_production_min.version="18.3.1-next-f1338f8080-20240426",reactDom_production_min}var hasRequiredReactDom;function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;hasRequiredReactDom=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),reactDom.exports=requireReactDom_production_min(),reactDom.exports}var lib$1={},uaParser_min$1={exports:{}},uaParser_min=uaParser_min$1.exports,hasRequiredUaParser_min;function requireUaParser_min(){return hasRequiredUaParser_min||(hasRequiredUaParser_min=1,(function(a,i){(function(r,n){var s="1.0.41",l="",f="?",d="function",S="undefined",R="object",N="string",B="major",A="model",I="name",_="type",E="vendor",C="version",$="architecture",F="console",M="mobile",g="tablet",h="smarttv",m="wearable",k="embedded",T=500,w="Amazon",D="Apple",z="ASUS",J="BlackBerry",K="Browser",te="Chrome",le="Edge",fe="Firefox",ve="Google",q="Honor",Y="Huawei",U="Lenovo",p="LG",x="Microsoft",H="Motorola",ne="Nvidia",ae="OnePlus",ie="Opera",xe="OPPO",Ue="Samsung",qe="Sharp",se="Sony",Q="Xiaomi",L="Zebra",P="Facebook",V="Chromium OS",ee="Mac OS",oe=" Browser",pe=function(Z,he){var ue={};for(var ye in Z)he[ye]&&he[ye].length%2===0?ue[ye]=he[ye].concat(Z[ye]):ue[ye]=Z[ye];return ue},Te=function(Z){for(var he={},ue=0;ue<Z.length;ue++)he[Z[ue].toUpperCase()]=Z[ue];return he},Oe=function(Z,he){return typeof Z===N?Me(he).indexOf(Me(Z))!==-1:!1},Me=function(Z){return Z.toLowerCase()},Fe=function(Z){return typeof Z===N?Z.replace(/[^\d\.]/g,l).split(".")[0]:n},ze=function(Z,he){if(typeof Z===N)return Z=Z.replace(/^\s\s*/,l),typeof he===S?Z:Z.substring(0,T)},Ye=function(Z,he){for(var ue=0,ye,me,de,W,G,ce;ue<he.length&&!G;){var we=he[ue],Ce=he[ue+1];for(ye=me=0;ye<we.length&&!G&&we[ye];)if(G=we[ye++].exec(Z),G)for(de=0;de<Ce.length;de++)ce=G[++me],W=Ce[de],typeof W===R&&W.length>0?W.length===2?typeof W[1]==d?this[W[0]]=W[1].call(this,ce):this[W[0]]=W[1]:W.length===3?typeof W[1]===d&&!(W[1].exec&&W[1].test)?this[W[0]]=ce?W[1].call(this,ce,W[2]):n:this[W[0]]=ce?ce.replace(W[1],W[2]):n:W.length===4&&(this[W[0]]=ce?W[3].call(this,ce.replace(W[1],W[2])):n):this[W]=ce||n;ue+=2}},Je=function(Z,he){for(var ue in he)if(typeof he[ue]===R&&he[ue].length>0){for(var ye=0;ye<he[ue].length;ye++)if(Oe(he[ue][ye],Z))return ue===f?n:ue}else if(Oe(he[ue],Z))return ue===f?n:ue;
vendor: 4,817 bytes, line 47
47return he.hasOwnProperty("*")?he["*"]:Z},nt={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},tt={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ct={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[C,[I,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[C,[I,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[I,C],[/opios[\/ ]+([\w\.]+)/i],[C,[I,ie+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[C,[I,ie+" GX"]],[/\bopr\/([\w\.]+)/i],[C,[I,ie]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[C,[I,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[C,[I,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[I,C],[/quark(?:pc)?\/([-\w\.]+)/i],[C,[I,"Quark"]],[/\bddg\/([\w\.]+)/i],[C,[I,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[C,[I,"UC"+K]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[C,[I,"WeChat"]],[/konqueror\/([\w\.]+)/i],[C,[I,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[C,[I,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[C,[I,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[C,[I,"Smart Lenovo "+K]],[/(avast|avg)\/([\w\.]+)/i],[[I,/(.+)/,"$1 Secure "+K],C],[/\bfocus\/([\w\.]+)/i],[C,[I,fe+" Focus"]],[/\bopt\/([\w\.]+)/i],[C,[I,ie+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[C,[I,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[C,[I,"Dolphin"]],[/coast\/([\w\.]+)/i],[C,[I,ie+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[C,[I,"MIUI"+oe]],[/fxios\/([\w\.-]+)/i],[C,[I,fe]],[/\bqihoobrowser\/?([\w\.]*)/i],[C,[I,"360"]],[/\b(qq)\/([\w\.]+)/i],[[I,/(.+)/,"$1Browser"],C],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[I,/(.+)/,"$1"+oe],C],[/samsungbrowser\/([\w\.]+)/i],[C,[I,Ue+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[C,[I,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[I,"Sogou Mobile"],C],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[I,C],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[I],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[C,I],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[I,P],C],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[I,C],[/\bgsa\/([\w\.]+) .*safari\//i],[C,[I,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[C,[I,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[C,[I,te+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[I,te+" WebView"],C],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[C,[I,"Android "+K]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[I,C],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[C,[I,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[C,I],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[I,[C,Je,nt]],[/(webkit|khtml)\/([\w\.]+)/i],[I,C],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[I,"Netscape"],C],[/(wolvic|librewolf)\/([\w\.]+)/i],[I,C],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[C,[I,fe+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[I,[C,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[I,[C,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[$,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[$,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[$,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[$,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[$,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[$,/ower/,l,Me]],[/ sun4\w[;\)]/i],[[$,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;
vendor: 4,236 bytes, line 47
47|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[$,Me]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[A,[E,Ue],[_,g]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[A,[E,Ue],[_,M]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[A,[E,D],[_,M]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[A,[E,D],[_,g]],[/(macintosh);/i],[A,[E,D]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[A,[E,qe],[_,M]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[A,[E,q],[_,g]],[/honor([-\w ]+)[;\)]/i],[A,[E,q],[_,M]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[A,[E,Y],[_,g]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[A,[E,Y],[_,M]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[A,/_/g," "],[E,Q],[_,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[A,/_/g," "],[E,Q],[_,M]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[A,[E,xe],[_,M]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[A,[E,Je,{OnePlus:["304","403","203"],"*":xe}],[_,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[A,[E,"Vivo"],[_,M]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[A,[E,"Realme"],[_,M]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[A,[E,H],[_,M]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[A,[E,H],[_,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[A,[E,p],[_,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[A,[E,p],[_,M]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[A,[E,U],[_,g]],[/(nokia) (t[12][01])/i],[E,A,[_,g]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[A,/_/g," "],[_,M],[E,"Nokia"]],[/(pixel (c|tablet))\b/i],[A,[E,ve],[_,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[A,[E,ve],[_,M]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[A,[E,se],[_,M]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[A,"Xperia Tablet"],[E,se],[_,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[A,[E,ae],[_,M]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[A,[E,w],[_,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[A,/(.+)/g,"Fire Phone $1"],[E,w],[_,M]],[/(playbook);[-\w\),; ]+(rim)/i],[A,E,[_,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[A,[E,J],[_,M]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[A,[E,z],[_,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[A,[E,z],[_,M]],[/(nexus 9)/i],[A,[E,"HTC"],[_,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[E,[A,/_/g," "],[_,M]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[A,[E,"TCL"],[_,g]],[/(itel) ((\w+))/i],[[E,Me],A,[_,Je,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[A,[E,"Acer"],[_,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,}
vendor: 5,173 bytes, line 47
47)/i],[A,[E,"Meizu"],[_,M]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[A,[E,"Ulefone"],[_,M]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[A,[E,"Energizer"],[_,M]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[A,[E,"Cat"],[_,M]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[A,[E,"Smartfren"],[_,M]],[/droid.+; (a(?:015|06[35]|142p?))/i],[A,[E,"Nothing"],[_,M]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[A,[E,"Archos"],[_,g]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[A,[E,"Archos"],[_,M]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[E,A,[_,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[E,A,[_,M]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[E,A,[_,g]],[/(surface duo)/i],[A,[E,x],[_,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[A,[E,"Fairphone"],[_,M]],[/(u304aa)/i],[A,[E,"AT&T"],[_,M]],[/\bsie-(\w*)/i],[A,[E,"Siemens"],[_,M]],[/\b(rct\w+) b/i],[A,[E,"RCA"],[_,g]],[/\b(venue[\d ]{2,7}) b/i],[A,[E,"Dell"],[_,g]],[/\b(q(?:mv|ta)\w+) b/i],[A,[E,"Verizon"],[_,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[A,[E,"Barnes & Noble"],[_,g]],[/\b(tm\d{3}\w+) b/i],[A,[E,"NuVision"],[_,g]],[/\b(k88) b/i],[A,[E,"ZTE"],[_,g]],[/\b(nx\d{3}j) b/i],[A,[E,"ZTE"],[_,M]],[/\b(gen\d{3}) b.+49h/i],[A,[E,"Swiss"],[_,M]],[/\b(zur\d{3}) b/i],[A,[E,"Swiss"],[_,g]],[/\b((zeki)?tb.*\b) b/i],[A,[E,"Zeki"],[_,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[E,"Dragon Touch"],A,[_,g]],[/\b(ns-?\w{0,9}) b/i],[A,[E,"Insignia"],[_,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[A,[E,"NextBook"],[_,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[E,"Voice"],A,[_,M]],[/\b(lvtel\-)?(v1[12]) b/i],[[E,"LvTel"],A,[_,M]],[/\b(ph-1) /i],[A,[E,"Essential"],[_,M]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[A,[E,"Envizen"],[_,g]],[/\b(trio[-\w\. ]+) b/i],[A,[E,"MachSpeed"],[_,g]],[/\btu_(1491) b/i],[A,[E,"Rotor"],[_,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[A,[E,ne],[_,g]],[/(sprint) (\w+)/i],[E,A,[_,M]],[/(kin\.[onetw]{3})/i],[[A,/\./g," "],[E,x],[_,M]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[A,[E,L],[_,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[A,[E,L],[_,M]],[/smart-tv.+(samsung)/i],[E,[_,h]],[/hbbtv.+maple;(\d+)/i],[[A,/^/,"SmartTV"],[E,Ue],[_,h]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[E,p],[_,h]],[/(apple) ?tv/i],[E,[A,D+" TV"],[_,h]],[/crkey/i],[[A,te+"cast"],[E,ve],[_,h]],[/droid.+aft(\w+)( bui|\))/i],[A,[E,w],[_,h]],[/(shield \w+ tv)/i],[A,[E,ne],[_,h]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[A,[E,qe],[_,h]],[/(bravia[\w ]+)( bui|\))/i],[A,[E,se],[_,h]],[/(mi(tv|box)-?\w+) bui/i],[A,[E,Q],[_,h]],[/Hbbtv.*(technisat) (.*);/i],[E,A,[_,h]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[E,ze],[A,ze],[_,h]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[A,[_,h]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[_,h]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[E,A,[_,F]],[/droid.+; (shield)( bui|\))/i],[A,[E,ne],[_,F]],[/(playstation \w+)/i],[A,[E,se],[_,F]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[A,[E,x],[_,F]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[A,[E,Ue],[_,m]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[E,A,[_,m]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[A,[E,xe],[_,m]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[A,[E,D],[_,m]],[/(opwwe\d{3})/i],[A,[E,ae],[_,m]],[/(moto 360)/i],[A,[E,H],[_,m]],[/(smartwatch 3)/i],[A,[E,se],[_,m]],[/(g watch r)/i],[A,[E,p],[_,m]],[/droid.+; (wt63?0{2,3})\)/i],[A,[E,L],[_,m]],[/droid.+; (glass) \d/i],[A,[E,ve],[_,m]],[/(pico) (4|neo3(?: link|pro)?)/i],[E,A,[_,m]],[/; (quest( \d| pro)?)/i],[A,[E,P],[_,m]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[E,[_,k]],[/(aeobc)\b/i],[A,[E,w],[_,k]],[/(homepod).+mac os/i],[A,[E,D],[_,k]],[/windows iot/i],[[_,k]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[A,[_,M]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[A,[_,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[_,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[_,M]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[A,[E,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[C,[I,le+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[I,C],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[C,[I,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[I,C],[/ladybird\//i],[[I,"LibWeb"]],[/rv\
vendor: 5,057 bytes, line 47
47:([\w\.]{1,9})\b.+(gecko)/i],[C,I]],os:[[/microsoft (windows) (vista|xp)/i],[I,C],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[I,[C,Je,tt]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[C,Je,tt],[I,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[C,/_/g,"."],[I,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[I,ee],[C,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[C,I],[/(ubuntu) ([\w\.]+) like android/i],[[I,/(.+)/,"$1 Touch"],C],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[I,C],[/\(bb(10);/i],[C,[I,J]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[C,[I,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[C,[I,fe+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[C,[I,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[C,[I,"watchOS"]],[/crkey\/([\d\.]+)/i],[C,[I,te+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[I,V],C],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[I,C],[/(sunos) ?([\w\.\d]*)/i],[[I,"Solaris"],C],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[I,C]]},lt=function(Z,he){if(typeof Z===R&&(he=Z,Z=n),!(this instanceof lt))return new lt(Z,he).getResult();var ue=typeof r!==S&&r.navigator?r.navigator:n,ye=Z||(ue&&ue.userAgent?ue.userAgent:l),me=ue&&ue.userAgentData?ue.userAgentData:n,de=he?pe(ct,he):ct,W=ue&&ue.userAgent==ye;return this.getBrowser=function(){var G={};return G[I]=n,G[C]=n,Ye.call(G,ye,de.browser),G[B]=Fe(G[C]),W&&ue&&ue.brave&&typeof ue.brave.isBrave==d&&(G[I]="Brave"),G},this.getCPU=function(){var G={};return G[$]=n,Ye.call(G,ye,de.cpu),G},this.getDevice=function(){var G={};return G[E]=n,G[A]=n,G[_]=n,Ye.call(G,ye,de.device),W&&!G[_]&&me&&me.mobile&&(G[_]=M),W&&G[A]=="Macintosh"&&ue&&typeof ue.standalone!==S&&ue.maxTouchPoints&&ue.maxTouchPoints>2&&(G[A]="iPad",G[_]=g),G},this.getEngine=function(){var G={};return G[I]=n,G[C]=n,Ye.call(G,ye,de.engine),G},this.getOS=function(){var G={};return G[I]=n,G[C]=n,Ye.call(G,ye,de.os),W&&!G[I]&&me&&me.platform&&me.platform!="Unknown"&&(G[I]=me.platform.replace(/chrome os/i,V).replace(/macos/i,ee)),G},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ye},this.setUA=function(G){return ye=typeof G===N&&G.length>T?ze(G,T):G,this},this.setUA(ye),this};lt.VERSION=s,lt.BROWSER=Te([I,C,B]),lt.CPU=Te([$]),lt.DEVICE=Te([A,E,_,F,M,h,g,m,k]),lt.ENGINE=lt.OS=Te([I,C]),a.exports&&(i=a.exports=lt),i.UAParser=lt;var Ee=typeof r!==S&&(r.jQuery||r.Zepto);if(Ee&&!Ee.ua){var Re=new lt;Ee.ua=Re.getResult(),Ee.ua.get=function(){return Re.getUA()},Ee.ua.set=function(Z){Re.setUA(Z);var he=Re.getResult();for(var ue in he)Ee.ua[ue]=he[ue]}}})(typeof window=="object"?window:uaParser_min)})(uaParser_min$1,uaParser_min$1.exports)),uaParser_min$1.exports}var hasRequiredLib$1;function requireLib$1(){if(hasRequiredLib$1)return lib$1;hasRequiredLib$1=1,Object.defineProperty(lib$1,"__esModule",{value:!0});function a($e){return $e&&typeof $e=="object"&&"default"in $e?$e.default:$e}var i=requireReact(),r=a(i),n=requireUaParser_min(),s=new n,l=s.getBrowser(),f=s.getCPU(),d=s.getDevice(),S=s.getEngine(),R=s.getOS(),N=s.getUA(),B=function(ge){return s.setUA(ge)},A=function(ge){if(!ge){console.error("No userAgent string was provided");return}var ke=new n(ge);return{UA:ke,browser:ke.getBrowser(),cpu:ke.getCPU(),device:ke.getDevice(),engine:ke.getEngine(),os:ke.getOS(),ua:ke.getUA(),setUserAgent:function(it){return ke.setUA(it)}}},I=Object.freeze({ClientUAInstance:s,browser:l,cpu:f,device:d,engine:S,os:R,ua:N,setUa:B,parseUserAgent:A});function _($e,ge){var ke=Object.keys($e);if(Object.getOwnPropertySymbols){var Qe=Object.getOwnPropertySymbols($e);ge&&(Qe=Qe.filter(function(it){return Object.getOwnPropertyDescriptor($e,it).enumerable})),ke.push.apply(ke,Qe)}return ke}function E($e){for(var ge=1;ge<arguments.length;ge++){var ke=arguments[ge]!=null?arguments[ge]:{};
47ge%2?_(Object(ke),!0).forEach(function(Qe){g($e,Qe,ke[Qe])}):Object.getOwnPropertyDescriptors?Object.defineProperties($e,Object.getOwnPropertyDescriptors(ke)):_(Object(ke)).forEach(function(Qe){Object.defineProperty($e,Qe,Object.getOwnPropertyDescriptor(ke,Qe))})}return $e}function C($e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(ge){return typeof ge}:C=function(ge){return ge&&typeof Symbol=="function"&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge},C($e)}function $($e,ge){if(!($e instanceof ge))throw new TypeError("Cannot call a class as a function")}function F($e,ge){for(var ke=0;ke<ge.length;ke++){var Qe=ge[ke];Qe.enumerable=Qe.enumerable||!1,Qe.configurable=!0,"value"in Qe&&(Qe.writable=!0),Object.defineProperty($e,Qe.key,Qe)}}function M($e,ge,ke){return ge&&F($e.prototype,ge),$e}function g($e,ge,ke){return ge in $e?Object.defineProperty($e,ge,{value:ke,enumerable:!0,configurable:!0,writable:!0}):$e[ge]=ke,$e}function h(){return h=Object.assign||function($e){for(var ge=1;ge<arguments.length;ge++){var ke=arguments[ge];for(var Qe in ke)Object.prototype.hasOwnProperty.call(ke,Qe)&&($e[Qe]=ke[Qe])}return $e},h.apply(this,arguments)}function m($e,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function");$e.prototype=Object.create(ge&&ge.prototype,{constructor:{value:$e,writable:!0,configurable:!0}}),ge&&T($e,ge)}function k($e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(ke){return ke.__proto__||Object.getPrototypeOf(ke)},k($e)}function T($e,ge){return T=Object.setPrototypeOf||function(Qe,it){return Qe.__proto__=it,Qe},T($e,ge)}function w($e,ge){if($e==null)return{};var ke={},Qe=Object.keys($e),it,Ct;for(Ct=0;Ct<Qe.length;Ct++)it=Qe[Ct],!(ge.indexOf(it)>=0)&&(ke[it]=$e[it]);return ke}function D($e,ge){if($e==null)return{};var ke=w($e,ge),Qe,it;if(Object.getOwnPropertySymbols){var Ct=Object.getOwnPropertySymbols($e);for(it=0;it<Ct.length;it++)Qe=Ct[it],!(ge.indexOf(Qe)>=0)&&Object.prototype.propertyIsEnumerable.call($e,Qe)&&(ke[Qe]=$e[Qe])}return ke}function z($e){if($e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $e}function J($e,ge){if(ge&&(typeof ge=="object"||typeof ge=="function"))return ge;if(ge!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z($e)}function K($e,ge){return te($e)||le($e,ge)||fe($e,ge)||q()}function te($e){if(Array.isArray($e))return $e}function le($e,ge){var ke=$e==null?null:typeof Symbol<"u"&&$e[Symbol.iterator]||$e["@@iterator"];if(ke!=null){var Qe=[],it=!0,Ct=!1,Vt,nr;try{for(ke=ke.call($e);!(it=(Vt=ke.next()).done)&&(Qe.push(Vt.value),!(ge&&Qe.length===ge));it=!0);}catch($r){Ct=!0,nr=$r}finally{try{!it&&ke.return!=null&&ke.return()}finally{if(Ct)throw nr}}return Qe}}function fe($e,ge){if($e){if(typeof $e=="string")return ve($e,ge);var ke=Object.prototype.toString.call($e).slice(8,-1);if(ke==="Object"&&$e.constructor&&(ke=$e.constructor.name),ke==="Map"||ke==="Set")return Array.from($e);if(ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ke))return ve($e,ge)}}function ve($e,ge){(ge==null||ge>$e.length)&&(ge=$e.length);for(var ke=0,Qe=new Array(ge);ke<ge;ke++)Qe[ke]=$e[ke];return Qe}function q(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
48In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Y={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},U={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},p={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},x={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},H=function(ge){switch(ge){case Y.Mobile:return{isMobile:!0};case Y.Tablet:return{isTablet:!0};case Y.SmartTv:return{isSmartTV:!0};case Y.Console:return{isConsole:!0};case Y.Wearable:return{isWearable:!0};case Y.Browser:return{isBrowser:!0};case Y.Embedded:return{isEmbedded:!0};default:return x}},ne=function(ge){return B(ge)},ae=function(ge){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return ge||ke},ie=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},xe=function(ge){var ke=ie();return ke&&ke.platform&&(ke.platform.indexOf(ge)!==-1||ke.platform==="MacIntel"&&ke.maxTouchPoints>1&&!window.MSStream)},Ue=function(ge,ke,Qe,it,Ct){return{isBrowser:ge,browserMajorVersion:ae(ke.major),browserFullVersion:ae(ke.version),browserName:ae(ke.name),engineName:ae(Qe.name),engineVersion:ae(Qe.version),osName:ae(it.name),osVersion:ae(it.ver
48sion),userAgent:ae(Ct)}},qe=function(ge,ke,Qe,it){return E({},ge,{vendor:ae(ke.vendor),model:ae(ke.model),os:ae(Qe.name),osVersion:ae(Qe.version),ua:ae(it)})},se=function(ge,ke,Qe,it){return{isSmartTV:ge,engineName:ae(ke.name),engineVersion:ae(ke.version),osName:ae(Qe.name),osVersion:ae(Qe.version),userAgent:ae(it)}},Q=function(ge,ke,Qe,it){return{isConsole:ge,engineName:ae(ke.name),engineVersion:ae(ke.version),osName:ae(Qe.name),osVersion:ae(Qe.version),userAgent:ae(it)}},L=function(ge,ke,Qe,it){return{isWearable:ge,engineName:ae(ke.name),engineVersion:ae(ke.version),osName:ae(Qe.name),osVersion:ae(Qe.version),userAgent:ae(it)}},P=function(ge,ke,Qe,it,Ct){return{isEmbedded:ge,vendor:ae(ke.vendor),model:ae(ke.model),engineName:ae(Qe.name),engineVersion:ae(Qe.version),osName:ae(it.name),osVersion:ae(it.version),userAgent:ae(Ct)}};function V($e){var ge=$e?A($e):I,ke=ge.device,Qe=ge.browser,it=ge.engine,Ct=ge.os,Vt=ge.ua,nr=H(ke.type),$r=nr.isBrowser,Va=nr.isMobile,qn=nr.isTablet,oa=nr.isSmartTV,za=nr.isConsole,Wr=nr.isWearable,sa=nr.isEmbedded;if($r)return Ue($r,Qe,it,Ct,Vt);if(oa)return se(oa,it,Ct,Vt);if(za)return Q(za,it,Ct,Vt);if(Va||qn)return qe(nr,ke,Ct,Vt);if(Wr)return L(Wr,it,Ct,Vt);if(sa)return P(sa,ke,it,Ct,Vt)}var ee=function(ge){var ke=ge.type;return ke===Y.Mobile},oe=function(ge){var ke=ge.type;return ke===Y.Tablet},pe=function(ge){var ke=ge.type;return ke===Y.Mobile||ke===Y.Tablet},Te=function(ge){var ke=ge.type;return ke===Y.SmartTv},Oe=function(ge){var ke=ge.type;return ke===Y.Browser},Me=function(ge){var ke=ge.type;return ke===Y.Wearable},Fe=function(ge){var ke=ge.type;return ke===Y.Console},ze=function(ge){var ke=ge.type;return ke===Y.Embedded},Ye=function(ge){var ke=ge.vendor;return ae(ke)},Je=function(ge){var ke=ge.model;return ae(ke)},nt=function(ge){var ke=ge.type;return ae(ke,"browser")},tt=function(ge){var ke=ge.name;return ke===p.Android},ct=function(ge){var ke=ge.name;return ke===p.Windows},lt=function(ge){var ke=ge.name;return ke===p.MAC_OS},Ee=function(ge){var ke=ge.name;return ke===p.WindowsPhone},Re=function(ge){var ke=ge.name;return ke===p.IOS},Z=function(ge){var ke=ge.version;return ae(ke)},he=function(ge){var ke=ge.name;return ae(ke)},ue=function(ge){var ke=ge.name;return ke===U.Chrome},ye=function(ge){var ke=ge.name;return ke===U.Firefox},me=function(ge){var ke=ge.name;return ke===U.Chromium},de=function(ge){var ke=ge.name;return ke===U.Edge},W=function(ge){var ke=ge.name;return ke===U.Yandex},G=function(ge){var ke=ge.name;return ke===U.Safari||ke===U.MobileSafari},ce=function(ge){var ke=ge.name;return ke===U.MobileSafari},we=function(ge){var ke=ge.name;return ke===U.Opera},Ce=function(ge){var ke=ge.name;return ke===U.InternetExplorer||ke===U.Ie},De=function(ge){var ke=ge.name;return ke===U.MIUI},Se=function(ge){var ke=ge.name;return ke===U.SamsungBrowser},He=function(ge){var ke=ge.version;return ae(ke)},Ne=function(ge){var ke=ge.major;return ae(ke)},Ve=function(ge){var ke=ge.name;return ae(ke)},rt=function(ge){var ke=ge.name;return ae(ke)},et=function(ge){var ke=ge.version;return ae(ke)},pt=function(){var ge=ie(),ke=ge&&ge.userAgent&&ge.userAgent.toLowerCase();return typeof ke=="string"?/electron/.test(ke):!1},mt=function(ge){return typeof ge=="string"&&ge.indexOf("Edg/")!==-1},xt=function(){var ge=ie();return ge&&(/iPad|iPhone|iPod/.test(ge.platform)||ge.platform==="MacIntel"&&ge.maxTouchPoints>1)&&!window.MSStream},Et=function(){return xe("iPad")},Bt=function(){return xe("iPhone")},er=function(){return xe("iPod")},Kt=function(ge){return ae(ge)};function gr($e){var ge=$e||I,ke=ge.device,Qe=ge.browser,it=ge.os,Ct=ge.engine,Vt=ge.ua;return{isSmartTV:Te(ke),isConsole:Fe(ke),isWearable:Me(ke),isEmbedded:ze(ke),isMobileSafari:ce(Qe)||Et(),isChromium:me(Qe),isMobile:pe(ke)||Et(),isMobileOnly:ee(ke),isTablet:oe(ke)||Et(),isBrowser:Oe(ke),isDesktop:Oe(ke),isAndroid:tt(it),isWinPhone:Ee(it),isIOS:Re(it)||Et(),isChrome:ue(Qe),isFirefox:ye(Qe),isSafari:G(Qe),isOpera:we(Qe),isIE:Ce(Qe),osVersion:Z(it),osName:he(it),fullBrowserVersion:He(Qe),browserVersion:Ne(Qe),browserName:Ve(Qe),mobileVendor:Ye(ke),mobileModel:Je(ke),engineName:rt(Ct),engineVersion:et(Ct),getUA:Kt(Vt),isEdge:de(Qe)||mt(Vt),isYandex:W(Qe),deviceType:nt(ke),isIOS13:xt(),isIPad13:Et(),isIPhone13:Bt(),isIPod13:er(),isElectron:pt(),isEdgeChromium:mt(Vt),isLegacyEdge:de(Qe)&&!mt(Vt),isWindows:ct(it),isMacOs:lt(it),isMIUI:De(Qe),isSamsungBrowser:Se(Qe)}}var Jr=Te(d),Zr=Fe(d),en=Me(d),sn=ze(d),Tr=ce(l)||Et(),Fr=me(l),br=pe(d)||Et(),Pe=ee(d),Ke=oe(d)||Et(),Ae=Oe(d),je=Oe(d),dt=tt(R),ht=Ee(R),Pt=Re(R
48)||Et(),gt=ue(l),$t=ye(l),Wt=G(l),fr=we(l),Gt=Ce(l),jr=Z(R),Sr=he(R),Mr=He(l),Mt=Ne(l),yn=Ve(l),or=Ye(d),$n=Je(d),On=rt(S),gn=et(S),pr=Kt(N),Ht=de(l)||mt(N),kr=W(l),bn=nt(d),Wn=xt(),aa=Et(),In=Bt(),Si=er(),Da=pt(),Vn=mt(N),Xi=de(l)&&!mt(N),Na=ct(R),Nt=lt(R),Ua=De(l),_i=Se(l),ja=function(ge){if(!ge||typeof ge!="string"){console.error("No valid user agent string was provided");return}var ke=A(ge),Qe=ke.device,it=ke.browser,Ct=ke.os,Vt=ke.engine,nr=ke.ua;return gr({device:Qe,browser:it,os:Ct,engine:Vt,ua:nr})},wi=function(ge){var ke=ge.renderWithFragment,Qe=ge.children,it=D(ge,["renderWithFragment","children"]);return dt?ke?r.createElement(i.Fragment,null,Qe):r.createElement("div",it,Qe):null},Fn=function(ge){var ke=ge.renderWithFragment,Qe=ge.children,it=D(ge,["renderWithFragment","children"]);return Ae?ke?r.createElement(i.Fragment,null,Qe):r.createElement("div",it,Qe):null},Ba=function(ge){var ke=ge.renderWithFragment,Qe=ge.children,it=D(ge,["renderWithFragment","children"]);return Gt?ke?r.createElement(i.Fragment,null,Qe):r.createElement("div",it,Qe):null},$a=function(ge){var ke=ge.renderWithFragment,Qe=ge.children,it=D(ge,["renderWithFragment","children"]);return Pt?ke?r.createElement(i.Fragment,null,Qe):r.createElement("div",it,Qe):null},zn=function(ge){var ke=ge.renderWithFragment,Qe=ge.children,it=D(ge,["renderWithFragment","children"]);return br?ke?r.createElement(i.Fragment,null,Qe):r.createElement("div",it,Qe):null},_r=function(ge){var ke=ge.renderWithFragment,Qe=ge.children,it=D(ge,["renderWithFragment","children"]);return Ke?ke?r.createElement(i.Fragment,null,Qe):r.createElement("div",it,Qe):null},wr=function(ge){var ke=ge.renderWithFragment,Qe=ge.children,it=D(ge,["renderWithFragment","children"]);return ht?ke?r.createElement(i.Fragment,null,Qe):r.createElement("div",it,Qe):null},Lr=function(ge){var ke=ge.renderWithFragment,Qe=ge.children;ge.viewClassName,ge.style;var it=D(ge,["renderWithFragment","children","viewClassName","style"]);return Pe?ke?r.createElement(i.Fragment,null,Qe):r.createElement("div",it,Qe):null},Mn=function(ge){var ke=ge.renderWithFragment,Qe=ge.children,it=D(ge,["renderWithFragment","children"]);return Jr?ke?r.createElement(i.Fragment,null,Qe):r.createElement("div",it,Qe):null},Hn=function(ge){var ke=ge.renderWithFragment,Qe=ge.children,it=D(ge,["renderWithFragment","children"]);return Zr?ke?r.createElement(i.Fragment,null,Qe):r.createElement("div",it,Qe):null},Br=function(ge){var ke=ge.renderWithFragment,Qe=ge.children,it=D(ge,["renderWithFragment","children"]);return en?ke?r.createElement(i.Fragment,null,Qe):r.createElement("div",it,Qe):null},Wa=function(ge){var ke=ge.renderWithFragment,Qe=ge.children;ge.viewClassName,ge.style;var it=ge.condition,Ct=D(ge,["renderWithFragment","children","viewClassName","style","condition"]);return it?ke?r.createElement(i.Fragment,null,Qe):r.createElement("div",Ct,Qe):null};function ia($e){return(function(ge){m(ke,ge);function ke(Qe){var it;return $(this,ke),it=J(this,k(ke).call(this,Qe)),it.isEventListenerAdded=!1,it.handleOrientationChange=it.handleOrientationChange.bind(z(it)),it.onOrientationChange=it.onOrientationChange.bind(z(it)),it.onPageLoad=it.onPageLoad.bind(z(it)),it.state={isLandscape:!1,isPortrait:!1},it}return M(ke,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var it=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:it===0,isLandscape:it===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":C(window))!==void 0&&br&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return r.createElement($e,h({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),ke})(r.Component)}function Gn(){var $e=i.useState(function(){var Ct=window.innerWidth>window.innerHeight?90:0;return{isPortrait:Ct===0,isLandscape:Ct===90,orientation:Ct===0?"portrait":"landscape"}}),ge=K($e,2),ke=ge[0],Qe=ge[1],it=i.useCallback(function(){var Ct=window.innerWidth>window.innerHeight?90:0,Vt={isPortrait:Ct===0,isLandscape:Ct===90,orientation:Ct===0?"portrait":"landscape"};ke.orientation!==Vt.orientation&&Qe(Vt)},[ke.orientation]);return i.useEffect(function(){return(typeof window>"u"?"undefined":C(window))!==void 0&&br&&(it(),window.addEventListener("load",it,!1),window.addEventListener("resize",it,!1)),function(){window.removeEventListener("resize",it,!1),window.removeEventListener("load",it,!1)}},[it]),ke}function Ai($e){var ge=$e||window.navigator.userAgent;return A(ge)}function Pi($e){var ge=$e||window.navigator.userAgent,ke=Ai(ge),Qe=gr(ke);return[Qe,ke]}return lib$1.AndroidView=wi,lib$1.BrowserTypes=U,lib$1.BrowserView=Fn,lib$1.ConsoleView=Hn,lib$1.CustomView=Wa,lib$1.IEView=Ba,lib$1.IOSView=$a,lib$1.MobileOnlyView=Lr,lib$1.MobileView=zn,lib$1.OsTypes=p,lib$1.SmartTVView=Mn,lib$1.TabletView=_r,lib$1.WearableView=Br,lib$1.WinPhoneView=wr,lib$1.browserName=yn,lib$1.browserVersion=Mt,lib$1.deviceDetect=V,lib$1.deviceType=bn,lib$1.engineName=On,lib$1.engineVersion=gn,lib$1.fullBrowserVersion=Mr,lib$1.getSelectorsByUserAgent=ja,lib$1.getUA=pr,lib$1.isAndroid=dt,lib$1.isBrowser=Ae,lib$1.isChrome=gt,lib$1.isChromium=Fr,lib$1.isConsole=Zr,lib$1.isDesktop=je,lib$1.isEdge=Ht,lib$1.isEdgeChromium=Vn,lib$1.isElectron=Da,lib$1.isEmbedded=sn,lib$1.isFirefox=$t,lib$1.isIE=Gt,lib$1.isIOS=Pt,lib$1.isIOS13=Wn,lib$1.isIPad13=aa,lib$1.isIPhone13=In,lib$1.isIPod13=Si,lib$1.isLegacyEdge=Xi,lib$1.isMIUI=Ua,lib$1.isMacOs=Nt,lib$1.isMobile=br,lib$1.isMobileOnly=Pe,lib$1.isMobileSafari=Tr,lib$1.isOpera=fr,lib$1.isSafari=Wt,lib$1.isSamsungBrowser=_i,lib$1.isSmartTV=Jr,lib$1.isTablet=Ke,lib$1.isWearable=en,lib$1.isWinPhone=ht,lib$1.isWindows=Na,lib$1.isYandex=kr,lib$1.mobileModel=$n,lib$1.mobileVendor=or,lib$1.osName=Sr,lib$1.osVersion=jr,lib$1.parseUserAgent=A,lib$1.setUserAgent=ne,lib$1.useDeviceData=Ai,lib$1.useDeviceSelectors=Pi,lib$1.useMobileOrientation=Gn,lib$1.withOrientationChange=ia,lib$1}function _setPrototypeOf$2(a,i){return _setPrototypeOf$2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},_setPrototypeOf$2(a,i)}function _inheritsLoose$2(a,i){a.prototype=Object.create(i.prototype),a.prototype.constructor=a,_setPrototypeOf$2(a,i)}var propTypes={exports:{}},ReactPropTypesSecret_1,hasRequiredReactPropTypesSecret;function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;var a="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ReactPropTypesSecret_1=a,ReactPropTypesSecret_1}var factoryWithThrowingShims,hasRequiredFactoryWithThrowingShims;function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var a=requireReactPropTypesSecret();function i(){}function r(){}return r.resetWarningCache=i,factoryWithThrowingShims=function(){function n(f,d,S,R,N,B){if(B!==a){var A=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 A.name="Invariant Violation",A}}n.isRequired=n;function s(){return n}var l={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:s,element:n,elementType:n,instanceOf:s,node:n,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:i}
48;return l.PropTypes=l,l},factoryWithThrowingShims}var hasRequiredPropTypes;function requirePropTypes(){return hasRequiredPropTypes||(hasRequiredPropTypes=1,propTypes.exports=requireFactoryWithThrowingShims()()),propTypes.exports}var propTypesExports=requirePropTypes();const PropTypes=getDefaultExportFromCjs(propTypesExports);function isAbsolute(a){return a.charAt(0)==="/"}function spliceOne(a,i){for(var r=i,n=r+1,s=a.length;n<s;r+=1,n+=1)a[r]=a[n];a.pop()}function resolvePathname(a,i){i===void 0&&(i="");var r=a&&a.split("/")||[],n=i&&i.split("/")||[],s=a&&isAbsolute(a),l=i&&isAbsolute(i),f=s||l;if(a&&isAbsolute(a)?n=r:r.length&&(n.pop(),n=n.concat(r)),!n.length)return"/";var d;if(n.length){var S=n[n.length-1];d=S==="."||S===".."||S===""}else d=!1;for(var R=0,N=n.length;N>=0;N--){var B=n[N];B==="."?spliceOne(n,N):B===".."?(spliceOne(n,N),R++):R&&(spliceOne(n,N),R--)}if(!f)for(;R--;R)n.unshift("..");f&&n[0]!==""&&(!n[0]||!isAbsolute(n[0]))&&n.unshift("");var A=n.join("/");return d&&A.substr(-1)!=="/"&&(A+="/"),A}function valueOf(a){return a.valueOf?a.valueOf():Object.prototype.valueOf.call(a)}function valueEqual(a,i){if(a===i)return!0;if(a==null||i==null)return!1;if(Array.isArray(a))return Array.isArray(i)&&a.length===i.length&&a.every(function(s,l){return valueEqual(s,i[l])});if(typeof a=="object"||typeof i=="object"){var r=valueOf(a),n=valueOf(i);return r!==a||n!==i?valueEqual(r,n):Object.keys(Object.assign({},a,i)).every(function(s){return valueEqual(a[s],i[s])})}return!1}var prefix="Invariant failed";function invariant(a,i){if(!a)throw new Error(prefix)}function addLeadingSlash$1(a){return a.charAt(0)==="/"?a:"/"+a}function stripLeadingSlash(a){return a.charAt(0)==="/"?a.substr(1):a}function hasBasename(a,i){return a.toLowerCase().indexOf(i.toLowerCase())===0&&"/?#".indexOf(a.charAt(i.length))!==-1}function stripBasename$1(a,i){return hasBasename(a,i)?a.substr(i.length):a}function stripTrailingSlash(a){return a.charAt(a.length-1)==="/"?a.slice(0,-1):a}function parsePath(a){var i=a||"/",r="",n="",s=i.indexOf("#");s!==-1&&(n=i.substr(s),i=i.substr(0,s));var l=i.indexOf("?");return l!==-1&&(r=i.substr(l),i=i.substr(0,l)),{pathname:i,search:r==="?"?"":r,hash:n==="#"?"":n}}function createPath(a){var i=a.pathname,r=a.search,n=a.hash,s=i||"/";return r&&r!=="?"&&(s+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(s+=n.charAt(0)==="#"?n:"#"+n),s}function createLocation(a,i,r,n){var s;typeof a=="string"?(s=parsePath(a),s.state=i):(s=_extends$2({},a),s.pathname===void 0&&(s.pathname=""),s.search?s.search.charAt(0)!=="?"&&(s.search="?"+s.search):s.search="",s.hash?s.hash.charAt(0)!=="#"&&(s.hash="#"+s.hash):s.hash="",i!==void 0&&s.state===void 0&&(s.state=i));try{s.pathname=decodeURI(s.pathname)}catch(l){throw l instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):l}return r&&(s.key=r),n?s.pathname?s.pathname.charAt(0)!=="/"&&(s.pathname=resolvePathname(s.pathname,n.pathname)):s.pathname=n.pathname:s.pathname||(s.pathname="/"),s}function locationsAreEqual(a,i){return a.pathname===i.pathname&&a.search===i.search&&a.hash===i.hash&&a.key===i.key&&valueEqual(a.state,i.state)}function createTransitionManager(){var a=null;function i(f){return a=f,function(){a===f&&(a=null)}}function r(f,d,S,R){if(a!=null){var N=typeof a=="function"?a(f,d):a;typeof N=="string"?typeof S=="function"?S(N,R):R(!0):R(N!==!1)}else R(!0)}var n=[];function s(f){var d=!0;function S(){d&&f.apply(void 0,arguments)}return n.push(S),function(){d=!1,n=n.filter(function(R){return R!==S})}}function l(){for(var f=arguments.length,d=new Array(f),S=0;S<f;S++)d[S]=arguments[S];n.forEach(function(R){return R.apply(void 0,d)})}return{setPrompt:i,confirmTransitionTo:r,appendListener:s,notifyListeners:l}}var canUseDOM=!!(typeof window<"u"&&window.document&&window.document.createElement);function getConfirmation(a,i){i(window.confirm(a))}function supportsHistory(){var a=window.navigator.userAgent;return(a.indexOf("Android 2.")!==-1||a.indexOf("Android 4.0")!==-1)&&a.indexOf("Mobile Safari")!==-1&&a.indexOf("Chrome")===-1&&a.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function supportsPopStateOnHashChange(){return window.navigator.userAgent.indexOf("Trident")===-1}function supportsGoWithoutReloadUsingHash(){return window.navigator.userAgent.indexOf("Firefox")===-1}function isExtraneousPopstateEvent(a){return a.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var PopStateEvent="popstate",HashChangeEvent="hashchange";function getHistoryState(){try{return window.history.state||{}}catch{return{}}}function createBrowserHistory(a){a===void 0&&(a={}),canUseDOM||invariant(!1);var i=window.history,r=supportsHistory(),n=!supportsPopStateOnHashChange(),s=a,l=s.forceRefresh,f=l===void 0?!1:l,d=s.getUserConfirmation,S=d===void 0?getConfirmation:d,R=s.keyLength,N=R===void 0?6:R,B=a.basename?stripTrailingSlash(addLeadingSlash$1(a.basename)):"";function A(Y){var U=Y||{},p=U.key,x=U.state,H=window.location,ne=H.pathname,ae=H.search,ie=H.hash,xe=ne+ae+ie;return B&&(xe=stripBasename$1(xe,B)),createLocation(xe,x,p)}function I(){return Math.random().toString(36).substr(2,N)}var _=createTransitionManager();function E(Y){_extends$2(q,Y),q.length=i.length,_.notifyListeners(q.location,q.action)}function C(Y){isExtraneousPopstateEvent(Y)||M(A(Y.state))}function $(){M(A(getHistoryState()))}var F=!1;function M(Y){if(F)F=!1,E();else{var U="POP";_.confirmTransitionTo(Y,U,S,function(p){p?E({action:U,location:Y}):g(Y)})}}function g(Y){var U=q.location,p=m.indexOf(U.key);p===-1&&(p=0);
48var x=m.indexOf(Y.key);x===-1&&(x=0);var H=p-x;H&&(F=!0,D(H))}var h=A(getHistoryState()),m=[h.key];function k(Y){return B+createPath(Y)}function T(Y,U){var p="PUSH",x=createLocation(Y,U,I(),q.location);_.confirmTransitionTo(x,p,S,function(H){if(H){var ne=k(x),ae=x.key,ie=x.state;if(r)if(i.pushState({key:ae,state:ie},null,ne),f)window.location.href=ne;else{var xe=m.indexOf(q.location.key),Ue=m.slice(0,xe+1);Ue.push(x.key),m=Ue,E({action:p,location:x})}else window.location.href=ne}})}function w(Y,U){var p="REPLACE",x=createLocation(Y,U,I(),q.location);_.confirmTransitionTo(x,p,S,function(H){if(H){var ne=k(x),ae=x.key,ie=x.state;if(r)if(i.replaceState({key:ae,state:ie},null,ne),f)window.location.replace(ne);else{var xe=m.indexOf(q.location.key);xe!==-1&&(m[xe]=x.key),E({action:p,location:x})}else window.location.replace(ne)}})}function D(Y){i.go(Y)}function z(){D(-1)}function J(){D(1)}var K=0;function te(Y){K+=Y,K===1&&Y===1?(window.addEventListener(PopStateEvent,C),n&&window.addEventListener(HashChangeEvent,$)):K===0&&(window.removeEventListener(PopStateEvent,C),n&&window.removeEventListener(HashChangeEvent,$))}var le=!1;function fe(Y){Y===void 0&&(Y=!1);var U=_.setPrompt(Y);return le||(te(1),le=!0),function(){return le&&(le=!1,te(-1)),U()}}function ve(Y){var U=_.appendListener(Y);return te(1),function(){te(-1),U()}}var q={length:i.length,action:"POP",location:h,createHref:k,push:T,replace:w,go:D,goBack:z,goForward:J,block:fe,listen:ve};return q}var HashChangeEvent$1="hashchange",HashPathCoders={hashbang:{encodePath:function(i){return i.charAt(0)==="!"?i:"!/"+stripLeadingSlash(i)},decodePath:function(i){return i.charAt(0)==="!"?i.substr(1):i}},noslash:{encodePath:stripLeadingSlash,decodePath:addLeadingSlash$1},slash:{encodePath:addLeadingSlash$1,decodePath:addLeadingSlash$1}};function stripHash(a){var i=a.indexOf("#");return i===-1?a:a.slice(0,i)}function getHashPath(){var a=window.location.href,i=a.indexOf("#");return i===-1?"":a.substring(i+1)}function pushHashPath(a){window.location.hash=a}function replaceHashPath(a){window.location.replace(stripHash(window.location.href)+"#"+a)}function createHashHistory(a){a===void 0&&(a={}),canUseDOM||invariant(!1);var i=window.history;supportsGoWithoutReloadUsingHash();var r=a,n=r.getUserConfirmation,s=n===void 0?getConfirmation:n,l=r.hashType,f=l===void 0?"slash":l,d=a.basename?stripTrailingSlash(addLeadingSlash$1(a.basename)):"",S=HashPathCoders[f],R=S.encodePath,N=S.decodePath;function B(){var U=N(getHashPath());return d&&(U=stripBasename$1(U,d)),createLocation(U)}var A=createTransitionManager();function I(U){_extends$2(Y,U),Y.length=i.length,A.notifyListeners(Y.location,Y.action)}var _=!1,E=null;function C(U,p){return U.pathname===p.pathname&&U.search===p.search&&U.hash===p.hash}function $(){var U=getHashPath(),p=R(U);if(U!==p)replaceHashPath(p);else{var x=B(),H=Y.location;if(!_&&C(H,x)||E===createPath(x))return;E=null,F(x)}}function F(U){if(_)_=!1,I();else{var p="POP";A.confirmTransitionTo(U,p,s,function(x){x?I({action:p,location:U}):M(U)})}}function M(U){var p=Y.location,x=k.lastIndexOf(createPath(p));x===-1&&(x=0);var H=k.lastIndexOf(createPath(U));H===-1&&(H=0);var ne=x-H;ne&&(_=!0,z(ne))}var g=getHashPath(),h=R(g);g!==h&&replaceHashPath(h);var m=B(),k=[createPath(m)];function T(U){var p=document.querySelector("base"),x="";return p&&p.getAttribute("href")&&(x=stripHash(window.location.href)),x+"#"+R(d+createPath(U))}function w(U,p){var x="PUSH",H=createLocation(U,void 0,void 0,Y.location);A.confirmTransitionTo(H,x,s,function(ne){if(ne){var ae=createPath(H),ie=R(d+ae),xe=getHashPath()!==ie;if(xe){E=ae,pushHashPath(ie);var Ue=k.lastIndexOf(createPath(Y.location)),qe=k.slice(0,Ue+1);qe.push(ae),k=qe,I({action:x,location:H})}else I()}})}function D(U,p){var x="REPLACE",H=createLocation(U,void 0,void 0,Y.location);A.confirmTransitionTo(H,x,s,function(ne){if(ne){var ae=createPath(H),ie=R(d+ae),xe=getHashPath()!==ie;xe&&(E=ae,replaceHashPath(ie));var Ue=k.indexOf(createPath(Y.location));Ue!==-1&&(k[Ue]=ae),I({action:x,location:H})}})}function z(U){i.go(U)}function J(){z(-1)}function K(){z(1)}var te=0;function le(U){te+=U,te===1&&U===1?window.addEventListener(HashChangeEvent$1,$):te===0&&window.removeEventListener(HashChangeEvent$1,$)}var fe=!1;function ve(U){U===void 0&&(U=!1);var p=A.setPrompt(U);return fe||(le(1),fe=!0),function(){return fe&&(fe=!1,le(-1)),p()}}function q(U){var p=A.appendListener(U);return le(1),function(){le(-1),p()}}var Y={length:i.length,action:"POP",location:m,createHref:T,push:w,replace:D,go:z,goBack:J,goForward:K,block:ve,listen:q};return Y}function clamp(a,i,r){return Math.min(Math.max(a,i),r)}function createMemoryHistory(a){a===void 0&&(a={});var i=a,r=i.getUserConfirmation,n=i.initialEntries,s=n===void 0?["/"]:n,l=i.initialIndex,f=l===void 0?0:l,d=i.keyLength,S=d===void 0?6:d,R=createTransitionManager();function N(T){_extends$2(k,T),k.length=k.entries.length,R.notifyListeners(k.location,k.action)}function B(){return Math.random().toString(36).substr(2,S)}var A=clamp(f,0,s.length-1),I=s.map(function(T){return typeof T=="string"?createLocation(T,void 0,B()):createLocation(T,void 0,T.key||B())}),_=createPath;function E(T,w){var D="PUSH",z=createLocation(T,w,B(),k.location);R.confirmTransitionTo(z,D,r,function(J){if(J){var K=k.index,te=K+1,le=k.entries.slice(0);le.length>te?le.splice(te,le.length-te,z):le.push(z),N({action:D,location:z,index:te,entries:le})}})}function C(T,w){var D="REPLACE",z=createLocation(T,w,B(),k.location);R.confirmTransitionTo(z,D,r,function(J){J&&(k.entries[k.index]=z,N({action:D,location:z}))})}
48function $(T){var w=clamp(k.index+T,0,k.entries.length-1),D="POP",z=k.entries[w];R.confirmTransitionTo(z,D,r,function(J){J?N({action:D,location:z,index:w}):N()})}function F(){$(-1)}function M(){$(1)}function g(T){var w=k.index+T;return w>=0&&w<k.entries.length}function h(T){return T===void 0&&(T=!1),R.setPrompt(T)}function m(T){return R.appendListener(T)}var k={length:I.length,action:"POP",location:I[A],index:A,entries:I,createHref:_,push:E,replace:C,go:$,goBack:F,goForward:M,canGo:g,block:h,listen:m};return k}var pathToRegexp$1={exports:{}},isarray,hasRequiredIsarray;function requireIsarray(){return hasRequiredIsarray||(hasRequiredIsarray=1,isarray=Array.isArray||function(a){return Object.prototype.toString.call(a)=="[object Array]"}),isarray}var hasRequiredPathToRegexp;function requirePathToRegexp(){if(hasRequiredPathToRegexp)return pathToRegexp$1.exports;hasRequiredPathToRegexp=1;var a=requireIsarray();pathToRegexp$1.exports=C,pathToRegexp$1.exports.parse=r,pathToRegexp$1.exports.compile=s,pathToRegexp$1.exports.tokensToFunction=d,pathToRegexp$1.exports.tokensToRegExp=E;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function r($,F){for(var M=[],g=0,h=0,m="",k=F&&F.delimiter||"/",T;(T=i.exec($))!=null;){var w=T[0],D=T[1],z=T.index;if(m+=$.slice(h,z),h=z+w.length,D){m+=D[1];continue}var J=$[h],K=T[2],te=T[3],le=T[4],fe=T[5],ve=T[6],q=T[7];m&&(M.push(m),m="");var Y=K!=null&&J!=null&&J!==K,U=ve==="+"||ve==="*",p=ve==="?"||ve==="*",x=K||k,H=le||fe,ne=K||(typeof M[M.length-1]=="string"?M[M.length-1]:"");M.push({name:te||g++,prefix:K||"",delimiter:x,optional:p,repeat:U,partial:Y,asterisk:!!q,pattern:H?R(H):q?".*":n(x,ne)})}return h<$.length&&(m+=$.substr(h)),m&&M.push(m),M}function n($,F){return!F||F.indexOf($)>-1?"[^"+S($)+"]+?":S(F)+"|(?:(?!"+S(F)+")[^"+S($)+"])+?"}function s($,F){return d(r($,F),F)}function l($){return encodeURI($).replace(/[\/?#]/g,function(F){return"%"+F.charCodeAt(0).toString(16).toUpperCase()})}function f($){return encodeURI($).replace(/[?#]/g,function(F){return"%"+F.charCodeAt(0).toString(16).toUpperCase()})}function d($,F){for(var M=new Array($.length),g=0;g<$.length;g++)typeof $[g]=="object"&&(M[g]=new RegExp("^(?:"+$[g].pattern+")$",B(F)));return function(h,m){for(var k="",T=h||{},w=m||{},D=w.pretty?l:encodeURIComponent,z=0;z<$.length;z++){var J=$[z];if(typeof J=="string"){k+=J;continue}var K=T[J.name],te;if(K==null)if(J.optional){J.partial&&(k+=J.prefix);continue}else throw new TypeError('Expected "'+J.name+'" to be defined');if(a(K)){if(!J.repeat)throw new TypeError('Expected "'+J.name+'" to not repeat, but received `'+JSON.stringify(K)+"`");if(K.length===0){if(J.optional)continue;throw new TypeError('Expected "'+J.name+'" to not be empty')}for(var le=0;le<K.length;le++){if(te=D(K[le]),!M[z].test(te))throw new TypeError('Expected all "'+J.name+'" to match "'+J.pattern+'", but received `'+JSON.stringify(te)+"`");k+=(le===0?J.prefix:J.delimiter)+te}continue}if(te=J.asterisk?f(K):D(K),!M[z].test(te))throw new TypeError('Expected "'+J.name+'" to match "'+J.pattern+'", but received "'+te+'"');k+=J.prefix+te}return k}}function S($){return $.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function R($){return $.replace(/([=!:$\/()])/g,"\\$1")}function N($,F){return $.keys=F,$}function B($){return $&&$.sensitive?"":"i"}function A($,F){var M=$.source.match(/\((?!\?)/g);if(M)for(var g=0;g<M.length;g++)F.push({name:g,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return N($,F)}function I($,F,M){for(var g=[],h=0;h<$.length;h++)g.push(C($[h],F,M).source);var m=new RegExp("(?:"+g.join("|")+")",B(M));return N(m,F)}function _($,F,M){return E(r($,M),F,M)}function E($,F,M){a(F)||(M=F||M,F=[]),M=M||{};for(var g=M.strict,h=M.end!==!1,m="",k=0;k<$.length;k++){var T=$[k];if(typeof T=="string")m+=S(T);else{var w=S(T.prefix),D="(?:"+T.pattern+")";F.push(T),T.repeat&&(D+="(?:"+w+D+")*"),T.optional?T.partial?D=w+"("+D+")?":D="(?:"+w+"("+D+"))?":D=w+"("+D+")",m+=D}}var z=S(M.delimiter||"/"),J=m.slice(-z.length)===z;return g||(m=(J?m.slice(0,-z.length):m)+"(?:"+z+"(?=$))?"),h?m+="$":m+=g&&J?"":"(?="+z+"|$)",N(new RegExp("^"+m,B(M)
48),F)}function C($,F,M){return a(F)||(M=F||M,F=[]),M=M||{},$ instanceof RegExp?A($,F):a($)?I($,F,M):_($,F,M)}return pathToRegexp$1.exports}var pathToRegexpExports=requirePathToRegexp();const pathToRegexp=getDefaultExportFromCjs(pathToRegexpExports);requireReactIs();function _objectWithoutPropertiesLoose$2(a,i){if(a==null)return{};var r={};for(var n in a)if({}.hasOwnProperty.call(a,n)){if(i.indexOf(n)!==-1)continue;r[n]=a[n]}return r}var MAX_SIGNED_31_BIT_INT=1073741823,commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function getUniqueId(){var a="__global_unique_id__";return commonjsGlobal[a]=(commonjsGlobal[a]||0)+1}function objectIs(a,i){return a===i?a!==0||1/a===1/i:a!==a&&i!==i}function createEventEmitter(a){var i=[];return{on:function(n){i.push(n)},off:function(n){i=i.filter(function(s){return s!==n})},get:function(){return a},set:function(n,s){a=n,i.forEach(function(l){return l(a,s)})}}}function onlyChild(a){return Array.isArray(a)?a[0]:a}function createReactContext(a,i){var r,n,s="__create-react-context-"+getUniqueId()+"__",l=(function(d){_inheritsLoose$2(S,d);function S(){for(var N,B=arguments.length,A=new Array(B),I=0;I<B;I++)A[I]=arguments[I];return N=d.call.apply(d,[this].concat(A))||this,N.emitter=createEventEmitter(N.props.value),N}var R=S.prototype;return R.getChildContext=function(){var B;return B={},B[s]=this.emitter,B},R.componentWillReceiveProps=function(B){if(this.props.value!==B.value){var A=this.props.value,I=B.value,_;objectIs(A,I)?_=0:(_=typeof i=="function"?i(A,I):MAX_SIGNED_31_BIT_INT,_|=0,_!==0&&this.emitter.set(B.value,_))}},R.render=function(){return this.props.children},S})(v.Component);l.childContextTypes=(r={},r[s]=PropTypes.object.isRequired,r);var f=(function(d){_inheritsLoose$2(S,d);function S(){for(var N,B=arguments.length,A=new Array(B),I=0;I<B;I++)A[I]=arguments[I];return N=d.call.apply(d,[this].concat(A))||this,N.observedBits=void 0,N.state={value:N.getValue()},N.onUpdate=function(_,E){var C=N.observedBits|0;(C&E)!==0&&N.setState({value:N.getValue()})},N}var R=S.prototype;return R.componentWillReceiveProps=function(B){var A=B.observedBits;this.observedBits=A??MAX_SIGNED_31_BIT_INT},R.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var B=this.props.observedBits;this.observedBits=B??MAX_SIGNED_31_BIT_INT},R.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},R.getValue=function(){return this.context[s]?this.context[s].get():a},R.render=function(){return onlyChild(this.props.children)(this.state.value)},S})(v.Component);return f.contextTypes=(n={},n[s]=PropTypes.object,n),{Provider:l,Consumer:f}}var createContext=v.createContext||createReactContext,createNamedContext=function(i){var r=createContext();return r.displayName=i,r},historyContext=createNamedContext("Router-History"),context=createNamedContext("Router"),Router=(function(a){_inheritsLoose$2(i,a),i.computeRootMatch=function(s){return{path:"/",url:"/",params:{},isExact:s==="/"}};function i(n){var s;return s=a.call(this,n)||this,s.state={location:n.history.location},s._isMounted=!1,s._pendingLocation=null,n.staticContext||(s.unlisten=n.history.listen(function(l){s._pendingLocation=l})),s}var r=i.prototype;return r.componentDidMount=function(){var s=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(l){s._isMounted&&s.setState({location:l})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return v.createElement(context.Provider,{value:{history:this.props.history,location:this.state.location,match:i.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},v.createElement(historyContext.Provider,{children:this.props.children||null,value:this.props.history}))},i})(v.Component);v.Component;var Lifecycle=(function(a){_inheritsLoose$2(i,a);function i(){return a.apply(this,arguments)||this}var r=i.prototype;return r.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},r.componentDidUpdate=function(s){this.props.onUpdate&&this.props.onUpdate.call(this,this,s)},r.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},r.render=function(){return null},i})(v.Component),cache={}
48,cacheLimit=1e4,cacheCount=0;function compilePath(a){if(cache[a])return cache[a];var i=pathToRegexp.compile(a);return cacheCount<cacheLimit&&(cache[a]=i,cacheCount++),i}function generatePath(a,i){return a===void 0&&(a="/"),i===void 0&&(i={}),a==="/"?a:compilePath(a)(i,{pretty:!0})}function Redirect(a){var i=a.computedMatch,r=a.to,n=a.push,s=n===void 0?!1:n;return v.createElement(context.Consumer,null,function(l){l||invariant(!1);var f=l.history,d=l.staticContext,S=s?f.push:f.replace,R=createLocation(i?typeof r=="string"?generatePath(r,i.params):_extends$2({},r,{pathname:generatePath(r.pathname,i.params)}):r);return d?(S(R),null):v.createElement(Lifecycle,{onMount:function(){S(R)},onUpdate:function(B,A){var I=createLocation(A.to);locationsAreEqual(I,_extends$2({},R,{key:I.key}))||S(R)},to:r})})}var cache$1={},cacheLimit$1=1e4,cacheCount$1=0;function compilePath$1(a,i){var r=""+i.end+i.strict+i.sensitive,n=cache$1[r]||(cache$1[r]={});if(n[a])return n[a];var s=[],l=pathToRegexp(a,s,i),f={regexp:l,keys:s};return cacheCount$1<cacheLimit$1&&(n[a]=f,cacheCount$1++),f}function matchPath(a,i){i===void 0&&(i={}),(typeof i=="string"||Array.isArray(i))&&(i={path:i});var r=i,n=r.path,s=r.exact,l=s===void 0?!1:s,f=r.strict,d=f===void 0?!1:f,S=r.sensitive,R=S===void 0?!1:S,N=[].concat(n);return N.reduce(function(B,A){if(!A&&A!=="")return null;if(B)return B;var I=compilePath$1(A,{end:l,strict:d,sensitive:R}),_=I.regexp,E=I.keys,C=_.exec(a);if(!C)return null;var $=C[0],F=C.slice(1),M=a===$;return l&&!M?null:{path:A,url:A==="/"&&$===""?"/":$,isExact:M,params:E.reduce(function(g,h,m){return g[h.name]=F[m],g},{})}},null)}function isEmptyChildren(a){return v.Children.count(a)===0}var Route=(function(a){_inheritsLoose$2(i,a);function i(){return a.apply(this,arguments)||this}var r=i.prototype;return r.render=function(){var s=this;return v.createElement(context.Consumer,null,function(l){l||invariant(!1);var f=s.props.location||l.location,d=s.props.computedMatch?s.props.computedMatch:s.props.path?matchPath(f.pathname,s.props):l.match,S=_extends$2({},l,{location:f,match:d}),R=s.props,N=R.children,B=R.component,A=R.render;return Array.isArray(N)&&isEmptyChildren(N)&&(N=null),v.createElement(context.Provider,{value:S},S.match?N?typeof N=="function"?N(S):N:B?v.createElement(B,S):A?A(S):null:typeof N=="function"?N(S):null)})},i})(v.Component);function addLeadingSlash(a){return a.charAt(0)==="/"?a:"/"+a}function addBasename(a,i){return a?_extends$2({},i,{pathname:addLeadingSlash(a)+i.pathname}):i}function stripBasename(a,i){if(!a)return i;var r=addLeadingSlash(a);return i.pathname.indexOf(r)!==0?i:_extends$2({},i,{pathname:i.pathname.substr(r.length)})}function createURL(a){return typeof a=="string"?a:createPath(a)}function staticHandler(a){return function(){invariant(!1)}}function noop(){}v.Component;var Switch=(function(a){_inheritsLoose$2(i,a);function i(){return a.apply(this,arguments)||this}var r=i.prototype;return r.render=function(){var s=this;return v.createElement(context.Consumer,null,function(l){l||invariant(!1);var f=s.props.location||l.location,d,S;return v.Children.forEach(s.props.children,function(R){if(S==null&&v.isValidElement(R)){d=R;var N=R.props.path||R.props.from;S=N?matchPath(f.pathname,_extends$2({},R.props,{path:N})):l.match}}),S?v.cloneElement(d,{location:f,computedMatch:S}):null})},i})(v.Component);function withRouter(a){var i="withRouter("+(a.displayName||a.name)+")",r=function(s){var l=s.wrappedComponentRef,f=_objectWithoutPropertiesLoose$2(s,["wrappedComponentRef"]);return v.createElement(context.Consumer,null,function(d){return d||invariant(!1),v.createElement(a,_extends$2({},f,d,{ref:l}))})};return r.displayName=i,r.WrappedComponent=a,hoistStatics(r,a)}var useContext=v.useContext;function useHistory(){return useContext(historyContext)}function useLocation(){return useContext(context).location}function useParams(){var a=useContext(context).match;return a?a.params:{}}function useRouteMatch(a){var i=useLocation(),r=useContext(context).match;return a?matchPath(i.pathname,a):r}var BrowserRouter=(function(a){_inheritsLoose$2(i,a);function i(){for(var n,s=arguments.length,l=new Array(s),f=0;f<s;f++)l[f]=arguments[f];return n=a.call.apply(a,[this].concat(l))||this,n.history=createBrowserHistory(n.props),n}
48var r=i.prototype;return r.render=function(){return v.createElement(Router,{history:this.history,children:this.props.children})},i})(v.Component);v.Component;var resolveToLocation=function(i,r){return typeof i=="function"?i(r):i},normalizeToLocation=function(i,r){return typeof i=="string"?createLocation(i,null,null,r):i},forwardRefShim=function(i){return i},forwardRef=v.forwardRef;typeof forwardRef>"u"&&(forwardRef=forwardRefShim);function isModifiedEvent(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}var LinkAnchor=forwardRef(function(a,i){var r=a.innerRef,n=a.navigate,s=a.onClick,l=_objectWithoutPropertiesLoose$2(a,["innerRef","navigate","onClick"]),f=l.target,d=_extends$2({},l,{onClick:function(R){try{s&&s(R)}catch(N){throw R.preventDefault(),N}!R.defaultPrevented&&R.button===0&&(!f||f==="_self")&&!isModifiedEvent(R)&&(R.preventDefault(),n())}});return forwardRefShim!==forwardRef?d.ref=i||r:d.ref=r,v.createElement("a",d)}),Link=forwardRef(function(a,i){var r=a.component,n=r===void 0?LinkAnchor:r,s=a.replace,l=a.to,f=a.innerRef,d=_objectWithoutPropertiesLoose$2(a,["component","replace","to","innerRef"]);return v.createElement(context.Consumer,null,function(S){S||invariant(!1);var R=S.history,N=normalizeToLocation(resolveToLocation(l,S.location),S.location),B=N?R.createHref(N):"",A=_extends$2({},d,{href:B,navigate:function(){var _=resolveToLocation(l,S.location),E=createPath(S.location)===createPath(normalizeToLocation(_)),C=s||E?R.replace:R.push;C(_)}});return forwardRefShim!==forwardRef?A.ref=i||f:A.innerRef=f,v.createElement(n,A)})}),forwardRefShim$1=function(i){return i},forwardRef$1=v.forwardRef;typeof forwardRef$1>"u"&&(forwardRef$1=forwardRefShim$1);function joinClassnames(){for(var a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];return i.filter(function(n){return n}).join(" ")}forwardRef$1(function(a,i){var r=a["aria-current"],n=r===void 0?"page":r,s=a.activeClassName,l=s===void 0?"active":s,f=a.activeStyle,d=a.className,S=a.exact,R=a.isActive,N=a.location,B=a.sensitive,A=a.strict,I=a.style,_=a.to,E=a.innerRef,C=_objectWithoutPropertiesLoose$2(a,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return v.createElement(context.Consumer,null,function($){$||invariant(!1);var F=N||$.location,M=normalizeToLocation(resolveToLocation(_,F),F),g=M.pathname,h=g&&g.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),m=h?matchPath(F.pathname,{path:h,exact:S,sensitive:B,strict:A}):null,k=!!(R?R(m,F):m),T=typeof d=="function"?d(k):d,w=typeof I=="function"?I(k):I;k&&(T=joinClassnames(T,l),w=_extends$2({},w,f));var D=_extends$2({"aria-current":k&&n||null,className:T,style:w,to:M},C);return forwardRefShim$1!==forwardRef$1?D.ref=i||E:D.innerRef=E,v.createElement(Link,D)})});function _typeof(a){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(a)}function toPrimitive(a,i){if(_typeof(a)!="object"||!a)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var n=r.call(a,i);if(_typeof(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}function toPropertyKey(a){var i=toPrimitive(a,"string");return _typeof(i)=="symbol"?i:i+""}function _assertThisInitialized$2(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _defineProperty(a,i,r){return(i=toPropertyKey(i))in a?Object.defineProperty(a,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[i]=r,a}function _objectWithoutProperties(a,i){if(a==null)return{};var r,n,s=_objectWithoutPropertiesLoose$2(a,i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);for(n=0;n<l.length;n++)r=l[n],i.indexOf(r)===-1&&{}.propertyIsEnumerable.call(a,r)&&(s[r]=a[r])}return s}function _classCallCheck$1(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(a,i){for(var r=0;r<i.length;r++){var n=i[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,toPropertyKey(n.key),n)}}function _createClass$1(a,i,r){return i&&_defineProperties$1(a.prototype,i
48),r&&_defineProperties$1(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}function _possibleConstructorReturn$1(a,i){if(i&&(_typeof(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$2(a)}function _getPrototypeOf$1(a){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},_getPrototypeOf$1(a)}function _inherits$1(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),i&&_setPrototypeOf$2(a,i)}function _arrayWithHoles(a){if(Array.isArray(a))return a}function _iterableToArrayLimit(a,i){var r=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(r!=null){var n,s,l,f,d=[],S=!0,R=!1;try{if(l=(r=r.call(a)).next,i===0){if(Object(r)!==r)return;S=!1}else for(;!(S=(n=l.call(r)).done)&&(d.push(n.value),d.length!==i);S=!0);}catch(N){R=!0,s=N}finally{try{if(!S&&r.return!=null&&(f=r.return(),Object(f)!==f))return}finally{if(R)throw s}}return d}}function _arrayLikeToArray$1(a,i){(i==null||i>a.length)&&(i=a.length);for(var r=0,n=Array(i);r<i;r++)n[r]=a[r];return n}function _unsupportedIterableToArray$1(a,i){if(a){if(typeof a=="string")return _arrayLikeToArray$1(a,i);var r={}.toString.call(a).slice(8,-1);return r==="Object"&&a.constructor&&(r=a.constructor.name),r==="Map"||r==="Set"?Array.from(a):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray$1(a,i):void 0}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
49In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(a,i){return _arrayWithHoles(a)||_iterableToArrayLimit(a,i)||_unsupportedIterableToArray$1(a,i)||_nonIterableRest()}function _arrayWithoutHoles$1(a){if(Array.isArray(a))return _arrayLikeToArray$1(a)}function _iterableToArray$1(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function _nonIterableSpread$1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
50In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray$1(a){return _arrayWithoutHoles$1(a)||_iterableToArray$1(a)||_unsupportedIterableToArray$1(a)||_nonIterableSpread$1()}const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);function commonjsRequire(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var isCheckBoxInput=a=>a.type==="checkbox",isFileInput=a=>a.type==="file",isDateObject=a=>a instanceof Date,isNullOrUndefined=a=>a==null;const isObjectType=a=>typeof a=="object";var isObject=a=>!isNullOrUndefined(a)&&!Array.isArray(a)&&isObjectType(a)&&!isDateObject(a),getEventValue=a=>isObject(a)&&a.target?isCheckBoxInput(a.target)?a.target.checked:isFileInput(a.target)?a.target.files:a.target.value:a;const FIELD_PATH_RE=/[.[\]'"]/;var stringToPath=a=>a.split(FIELD_PATH_RE).filter(Boolean);function getNullAncestorValue(a,i){const r=stringToPath(i);let n=a._formValues,s=a._defaultValues;for(let l=0;l<r.length-1;l++){const f=r[l];if(n=n==null?n:n[f],s=s==null?s:s[f],n===null||s===null)return null}}var isNameInFieldArray=(a,i)=>i.split(".").some((r,n,s)=>!isNaN(Number(r))&&a.has(s.slice(0,n).join("."))),isWeb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cloneObject(a){if(a===null||typeof a!="object")return a;
vendor: 8,985 bytes, line 50
50if(a instanceof Date)return new Date(a);const i=typeof Blob<"u"&&a instanceof Blob,r=typeof FileList<"u"&&a instanceof FileList;if(isWeb&&(i||r))return a;const n=Array.isArray(a);if(!n&&a.constructor!==Object)return a;const s=n?[]:Object.create(Object.getPrototypeOf(a));for(const l in a)Object.prototype.hasOwnProperty.call(a,l)&&(s[l]=cloneObject(a[l]));return s}const EVENTS={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},VALIDATION_MODE={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},INPUT_VALIDATION_RULES={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},REGISTER_VALIDATION_RULES=[INPUT_VALIDATION_RULES.required,INPUT_VALIDATION_RULES.min,INPUT_VALIDATION_RULES.max,INPUT_VALIDATION_RULES.minLength,INPUT_VALIDATION_RULES.maxLength,INPUT_VALIDATION_RULES.pattern,INPUT_VALIDATION_RULES.validate],FORM_ERROR_TYPE="form",ROOT_ERROR_TYPE="root",PROTOTYPE_KEYWORDS=["__proto__","constructor","prototype"],IS_KEY_RE=/^\w*$/;var isKey=a=>IS_KEY_RE.test(a),isUndefined=a=>a===void 0,get=(a,i,r)=>{if(!i||!isObject(a))return r;const n=isKey(i)?[i]:stringToPath(i);if(n.some(l=>PROTOTYPE_KEYWORDS.includes(l)))return r;const s=n.reduce((l,f)=>isNullOrUndefined(l)?void 0:l[f],a);return isUndefined(s)||s===a?isUndefined(a[i])?r:a[i]:s},isBoolean=a=>typeof a=="boolean",isFunction=a=>typeof a=="function",set=(a,i,r)=>{let n=-1;const s=isKey(i)?[i]:stringToPath(i),l=s.length,f=l-1;for(;++n<l;){const d=s[n];let S=r;if(n!==f){const R=a[d];S=isObject(R)||Array.isArray(R)?R:isNaN(+s[n+1])?{}:[]}if(PROTOTYPE_KEYWORDS.includes(d))return;a[d]=S,a=a[d]}};const HookFormControlContext=v.createContext(null);HookFormControlContext.displayName="HookFormControlContext";const useFormControlContext=()=>v.useContext(HookFormControlContext);var getProxyFormState=(a,i,r,n=!0)=>{const s={};for(const l in a)Object.defineProperty(s,l,{get:()=>{const f=l;return i._proxyFormState[f]!==VALIDATION_MODE.all&&(i._proxyFormState[f]=!n||VALIDATION_MODE.all),r&&(r[f]=!0),a[f]}});return s};const useIsomorphicLayoutEffect=isWeb?v.useLayoutEffect:v.useEffect;var isPlainObject=a=>{const i=a.constructor&&a.constructor.prototype;return isObject(i)&&i.hasOwnProperty("isPrototypeOf")},isPrimitive=a=>isNullOrUndefined(a)||!isObjectType(a);const isEmptyObjectWithCustomPrototype=(a,i)=>i.length===0&&!Array.isArray(a)&&!isPlainObject(a);function deepEqual(a,i,r=new WeakMap){if(a===i)return!0;if(isPrimitive(a)||isPrimitive(i))return Object.is(a,i);if(isDateObject(a)&&isDateObject(i))return Object.is(a.getTime(),i.getTime());const n=Object.keys(a),s=Object.keys(i);if(n.length!==s.length)return!1;if(isEmptyObjectWithCustomPrototype(a,n)||isEmptyObjectWithCustomPrototype(i,s))return Object.is(a,i);if(!n.length&&Array.isArray(a)!==Array.isArray(i))return!1;const l=r.get(a);if(l&&l.has(i))return!0;if(l)l.add(i);else{const f=new WeakSet;f.add(i),r.set(a,f)}for(const f of n){const d=a[f];if(!(f in i))return!1;if(f!=="ref"){const S=i[f];if(isDateObject(d)&&isDateObject(S)||(isObject(d)||Array.isArray(d))&&(isObject(S)||Array.isArray(S))?!deepEqual(d,S,r):!Object.is(d,S))return!1}}return!0}function useResyncOnReconnect(a){const i=v.useRef(!1),r=v.useRef(!1),n=v.useRef(void 0),s=v.useRef(0);s.current++,!r.current&&a&&(r.current=!0,n.current=cloneObject(a()));const l=v.useCallback((d,S,R)=>{if(d&&(i.current||r.current&&s.current>1)){const N=S();deepEqual(n.current,N)||R(N)}i.current=!0},[]),f=v.useCallback((d,S)=>{d&&(n.current=cloneObject(S()))},[]);return{resyncIfNeeded:l,snapshot:f}}function useFormState(a){const i=useFormControlContext(),{control:r=i,disabled:n,name:s,exact:l}=a||{},f=()=>({...r._formState,defaultValues:r._defaultValues}),[d,S]=v.useState(f),R=v.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),{resyncIfNeeded:N,snapshot:B}=useResyncOnReconnect(f);return useIsomorphicLayoutEffect(()=>{N(!n,f,S);const A=r._subscribe({name:s,formState:R.current,exact:l,callback:I=>{!n&&S({...r._formState,...I,defaultValues:r._defaultValues})}});return()=>{A(),B(!n,f)}},[r,s,n,l,N,B]),v.useEffect(()=>{R.current.isValid&&r._setValid(!0)},[r]),v.useMemo(()=>getProxyFormState(d,r,R.current,!1),[d,r])}var isString$1=a=>typeof a=="string",generateWatchOutput=(a,i,r,n,s)=>isString$1(a)?(n&&i.watch.add(a),get(r,a,s)):Array.isArray(a)?a.map(l=>(n&&i.watch.add(l),get(r,l,get(s,l)))):(n&&(i.watchAll=!0),r);function useWatch(a){const i=useFormControlContext(),{control:r=i,name:n,defaultValue:s,disabled:l,exact:f,compute:d}=a||{},S=v.useRef(s),R=v.useRef(d),N=v.useRef(r),B=v.useRef(n);R.current=d;const A=()=>{const w=r._getWatch(n,S.current);return R.current?R.current(w):w},[I,_]=v.useState(A),E=v.useRef(I),C=v.useCallback(w=>{const D=generateWatchOutput(n,r._names,w||r._formValues,!1,S.current);return R.current?R.current(D):D},[r._formValues,r._names,n]),$=v.useCallback(w=>{if(!l){const D=generateWatchOutput(n,r._names,w||r._formValues,!1,S.current);if(R.current){const z=R.current(D);deepEqual(z,E.current)||(_(z),E.current=z)}else _(D)}},[r._formValues,r._names,l,n]),{resyncIfNeeded:F,snapshot:M}=useResyncOnReconnect(A),g=v.useRef($);g.current=$;const h=v.useRef(C);h.current=C,useIsomorphicLayoutEffect(()=>{N.current!==r||!deepEqual(B.current,n)?(N.current=r,B.current=n,g.current()):F(!l,()=>h.current(),D=>{_(D),E.current=D});const w=r._subscribe({name:n,formState:{values:!0},exact:f,callback:D=>{g.current(D.values)}});return()=>{w(),M(!l,()=>h.current())}},[r,f,n,l,F,M]),v.useEffect(()=>r._removeUnmounted());const m=N.current!==r,k=B.current;return v.useMemo(()=>{if(l)return!1;const w=!m&&!deepEqual(k,n);return m||w},[l,m,n,k])?C():I}function useController(a){const i=useFormControlContext(),{name:r,disabled:n,control:s=i,shouldUnregister:l,defaultValue:f,exact:d=!0}=a,S=isNameInFieldArray(s._names.array,r),R=v.useMemo(()=>{const g=get(s._formValues,r,get(s._defaultValues,r,f));return isUndefined(g)?getNullAncestorValue(s,r):g},[s,r,f]),N=useWatch({control:s,name:r,defaultValue:R,exact:d}),B=useFormState({control:s,name:r,exact:d}),A=v.useRef(a),I=v.useRef(null),_=v.useRef(s.register(r,{...a.rules,value:N,...isBoolean(a.disabled)?{disabled:a.disabled}:{}}));A.current=a;const E=v.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get(B.errors,r)},isDirty:{enumerable:!0,get:()=>!!get(B.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!get(B.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!get(B.validatingFields,r)},error:{enumerable:!0,get:()=>get(B.errors,r)}}),[B,r]),C=v.useCallback(g=>{const h=getEventValue(g);return get(s._fields,r)||(_.current=s.register(r,{...A.current.rules,value:h})),_.current.onChange({target:{value:getEventValue(g),name:r},type:EVENTS.CHANGE})},[r,s]),$=v.useCallback(()=>_.current.onBlur({target:{value:get(s._formValues,r),name:r},type:EVENTS.BLUR}),[r,s._formValues]),F=v.useCallback(g=>{g&&(I.current={focus:()=>isFunction(g.focus)&&g.focus(),select:()=>isFunction(g.select)&&g.select(),setCustomValidity:m=>isFunction(g.setCustomValidity)&&g.setCustomValidity(m),reportValidity:()=>isFunction(g.reportValidity)&&g.reportValidity()});const h=get(s._fields,r);h&&h._f&&g&&(h._f.ref=I.current,h._f._c=!0)},[s._fields,r]),M=v.useMemo(()=>({name:r,value:N,...isBoolean(n)||B.disabled?{disabled:B.disabled||n}:{},onChange:C,onBlur:$,ref:F}),[r,n,B.disabled,C,$,F,N]);return v.useEffect(()=>{const g=s._options.shouldUnregister||l;_.current=s.register(r,{...A.current.rules,...isBoolean(A.current.disabled)?{disabled:A.current.disabled}:{}});const h=(m,k)=>{const T=get(s._fields,m);T&&T._f&&(T._f.mount=k,T._f._c=k)};if(h(r,!0),g){const m=cloneObject(get(l?s._defaultValues:s._options.values||s._defaultValues,r,get(s._options.defaultValues,r,A.current.defaultValue)));set(s._defaultValues,r,m),isUndefined(get(s._formValues,r))&&set(s._formValues,r,m)}if(!S&&s.register(r,{...A.current.rules,...isBoolean(A.current.disabled)?{disabled:A.current.disabled}:{}}),I.current){const m=get(s._fields,r);m&&m._f&&(m._f.ref=I.current)}return()=>{(S?g&&!s._state.action:g)?s.unregister(r):h(r,!1)}},[r,s,S,l]),v.useEffect(()=>{s._setDisabledField({disabled:n,name:r})},[n,r,s]),v.useMemo(()=>({field:M,formState:B,fieldState:E}),[M,B,E])}const Controller=a=>a.render(useController(a));var getValidationModes=a=>({isOnSubmit:!a||a===VALIDATION_MODE.onSubmit,isOnBlur:a===VALIDATION_MODE.onBlur,isOnChange:a===VALIDATION_MODE.onChange,isOnAll:a===VALIDATION_MODE.all,isOnTouch:a===VALIDATION_MODE.onTouched}),isWatched=(a,i,r)=>{if(r)return!1;if(i.watchAll||i.watch.has(a))return!0;for(const n of i.watch)if(a.startsWith(n)&&a.charAt(n.length)===".")return!0;return!1};const iterateFieldsByAction=(a,i,r)=>{for(const n of r||Object.keys(a)){if(n==="_f")continue;const s=r?get(a,n):a[n];if(s){const{_f:l}=s;if(l){if(l.refs&&l.refs[0]&&i(l.refs[0],l.name))return!0;
vendor: 4,373 bytes, line 50
50if(l.ref&&i(l.ref,l.name))return!0;if(iterateFieldsByAction(s,i))return!0}else if((isObject(s)||Array.isArray(s))&&iterateFieldsByAction(s,i))return!0}}};var updateFieldArrayRootError=(a,i,r)=>{const n=get(a,r),s=Array.isArray(n)?n:[];return set(s,ROOT_ERROR_TYPE,i[r]),set(a,r,s),a},isEmptyObject=a=>isObject(a)&&!Object.keys(a).length,isHTMLElement=a=>{if(!isWeb)return!1;const i=a?a.ownerDocument:0;return a instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},isRadioInput=a=>a.type==="radio",isRegex=a=>a instanceof RegExp,appendErrors=(a,i,r,n,s)=>i?{...r[a],types:{...r[a]&&r[a].types?r[a].types:{},[n]:s||!0}}:{};const defaultResult={value:!1,isValid:!1},validResult={value:!0,isValid:!0};var getCheckboxValue=a=>{if(!Array.isArray(a))return defaultResult;if(a.length>1){const r=a.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:r,isValid:!!r.length}}const i=a[0];return!i||!i.checked||i.disabled?defaultResult:!i.attributes||!("value"in i.attributes)||isUndefined(i.value)||i.value===""?validResult:{value:i.value,isValid:!0}};const defaultReturn={isValid:!1,value:null};var getRadioValue=a=>Array.isArray(a)?a.reduce((i,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:i,defaultReturn):defaultReturn;function getValidateError(a,i,r="validate"){if(isString$1(a)||Array.isArray(a)&&a.every(isString$1)||isBoolean(a)&&!a)return{type:r,message:isString$1(a)?a:"",ref:i}}var getValueAndMessage=a=>isObject(a)&&!isRegex(a)?a:{value:a,message:""},validateField=async(a,i,r,n,s,l)=>{const{ref:f,refs:d,required:S,maxLength:R,minLength:N,min:B,max:A,pattern:I,validate:_,name:E,valueAsNumber:C,mount:$,_c:F}=a._f,M=get(r,E);if(!$||i.has(E))return{};const g=d?d[0]:f,h=te=>{if(s&&g.reportValidity){const le=isBoolean(te)?"":te||"";d?d.forEach(fe=>isFunction(fe.setCustomValidity)&&fe.setCustomValidity(le)):g.setCustomValidity(le),g.reportValidity()}},m={},k=isRadioInput(f),T=isCheckBoxInput(f),w=k||T,D=(C||isFileInput(f))&&isUndefined(f.value)&&isUndefined(M)||isHTMLElement(f)&&f.value===""&&!F||M===""||Array.isArray(M)&&!M.length,z=appendErrors.bind(null,E,n,m),J=(te,le,fe,ve=INPUT_VALIDATION_RULES.maxLength,q=INPUT_VALIDATION_RULES.minLength)=>{const Y=te?le:fe;m[E]={type:te?ve:q,message:Y,ref:f,...z(te?ve:q,Y)}};if(l?!Array.isArray(M)||!M.length:S&&(!w&&(D||isNullOrUndefined(M))||isBoolean(M)&&!M||T&&!getCheckboxValue(d).isValid||k&&!getRadioValue(d).isValid)){const{value:te,message:le}=isString$1(S)?{value:!!S,message:S}:getValueAndMessage(S);if(te&&(m[E]={type:INPUT_VALIDATION_RULES.required,message:le,ref:g,...z(INPUT_VALIDATION_RULES.required,le)},!n))return h(le),m}if(!D&&(!isNullOrUndefined(B)||!isNullOrUndefined(A))){let te,le;const fe=getValueAndMessage(A),ve=getValueAndMessage(B);if(!isNullOrUndefined(M)&&!isDateObject(M)&&!isNaN(M)){const q=f.valueAsNumber||M&&+M;isNullOrUndefined(fe.value)||(te=q>fe.value),isNullOrUndefined(ve.value)||(le=q<ve.value)}else{const q=f.valueAsDate||new Date(M),Y=x=>new Date(new Date().toDateString()+" "+x),U=f.type=="time",p=f.type=="week";isString$1(fe.value)&&M&&(te=U?Y(M)>Y(fe.value):p?M>fe.value:q>new Date(fe.value)),isString$1(ve.value)&&M&&(le=U?Y(M)<Y(ve.value):p?M<ve.value:q<new Date(ve.value))}if((te||le)&&(J(!!te,fe.message,ve.message,INPUT_VALIDATION_RULES.max,INPUT_VALIDATION_RULES.min),!n))return h(m[E].message),m}if((R||N)&&!D&&(isString$1(M)||l&&Array.isArray(M))){const te=getValueAndMessage(R),le=getValueAndMessage(N),fe=!isNullOrUndefined(te.value)&&M.length>+te.value,ve=!isNullOrUndefined(le.value)&&M.length<+le.value;if((fe||ve)&&(J(fe,te.message,le.message),!n))return h(m[E].message),m}if(I&&!D&&isString$1(M)){const{value:te,message:le}=getValueAndMessage(I);if(isRegex(te)&&!M.match(te)&&(m[E]={type:INPUT_VALIDATION_RULES.pattern,message:le,ref:f,...z(INPUT_VALIDATION_RULES.pattern,le)},!n))return h(le),m}if(_){if(isFunction(_)){const te=await _(M,r),le=getValidateError(te,g);if(le&&(m[E]={...le,...z(INPUT_VALIDATION_RULES.validate,le.message)},!n))return h(le.message),m}else if(isObject(_)){let te={};for(const le in _){if(!isEmptyObject(te)&&!n)break;const fe=getValidateError(await _[le](M,r),g,le);fe&&(te={...fe,...z(le,fe.message)},n||h(fe.message),n&&(m[E]=te))}if(!isEmptyObject(te)&&(m[E]={ref:g,...te},!n))return m}}const K=m[E];return h(K?K.message:!0),m},convertToArrayPayload=a=>Array.isArray(a)?a:[a],compact=a=>
50Array.isArray(a)?a.filter(Boolean):[];function baseGet(a,i){const r=i.length-1;let n=0;for(;n<r;){if(isNullOrUndefined(a)){a=void 0;break}a=a[i[n]],n++}return a}function isEmptyArray(a){for(const i in a)if(a.hasOwnProperty(i)&&!isUndefined(a[i]))return!1;return!0}function unset(a,i){if(isString$1(i)&&Object.prototype.hasOwnProperty.call(a,i))return delete a[i],a;const r=Array.isArray(i)?i:isKey(i)?[i]:stringToPath(i);if(r.some(f=>PROTOTYPE_KEYWORDS.includes(String(f))))return a;const n=r.length===1?a:baseGet(a,r),s=r.length-1,l=r[s];return n&&delete n[l],s!==0&&(isObject(n)&&isEmptyObject(n)||Array.isArray(n)&&isEmptyArray(n))&&unset(a,r.slice(0,-1)),a}const HookFormContext=v.createContext(null);HookFormContext.displayName="HookFormContext";const useFormContext=()=>v.useContext(HookFormContext),FormProvider=({children:a,watch:i,getValues:r,getErrors:n,getFieldState:s,setError:l,clearErrors:f,setValue:d,setValues:S,trigger:R,formState:N,resetField:B,reset:A,resetDefaultValues:I,handleSubmit:_,unregister:E,control:C,register:$,setFocus:F,subscribe:M})=>{const g=v.useMemo(()=>({watch:i,getValues:r,getErrors:n,getFieldState:s,setError:l,clearErrors:f,setValue:d,setValues:S,trigger:R,formState:N,resetField:B,reset:A,resetDefaultValues:I,handleSubmit:_,unregister:E,control:C,register:$,setFocus:F,subscribe:M}),[f,C,N,n,s,r,_,$,A,I,B,l,F,d,S,M,R,E,i]);return v.createElement(HookFormContext.Provider,{value:g},v.createElement(HookFormControlContext.Provider,{value:g.control},a))};var createSubject=()=>{let a=[];return{get observers(){return a},next:s=>{for(const l of a)l.next&&l.next(s)},subscribe:s=>(a.push(s),{unsubscribe:()=>{a=a.filter(l=>l!==s)}}),unsubscribe:()=>{a=[]}}};function extractFormValues(a,i){const r=Array.isArray(a)?[]:{};for(const n in a)if(a.hasOwnProperty(n)){const s=a[n],l=i[n];s&&(isObject(s)||Array.isArray(s))&&l?r[n]=extractFormValues(s,l):a[n]&&(r[n]=l)}return r}const hasOwn=(a,i)=>a!==null&&isObjectType(a)&&Object.prototype.hasOwnProperty.call(a,i);var has=(a,i)=>{if(!i)return!1;let r=a;for(const n of isKey(i)?[i]:stringToPath(i)){if(!hasOwn(r,n))return hasOwn(a,i);r=r[n]}return!0},isMultipleSelect=a=>a.type==="select-multiple",isRadioOrCheckbox=a=>isRadioInput(a)||isCheckBoxInput(a),live=a=>isHTMLElement(a)&&a.isConnected;function isDirtyContainer(a){return Array.isArray(a)||isObject(a)}function collectDirtyFieldNames(a,i,r="",n=[]){for(const s in a){const l=r?`${r}.${s}`:s,f=a[s];isDirtyContainer(f)&&isDirtyContainer(get(i,l))?collectDirtyFieldNames(f,i,l,n):n.push(l)}return n}var objectHasFunction=a=>{for(const i in a)if(isFunction(a[i]))return!0;return!1};function isTraversable(a){return Array.isArray(a)||isObject(a)&&!objectHasFunction(a)}function isRegisteredLeaf(a){return!!(a&&"_f"in a)}function isEmptyDirtyContainer(a){return Array.isArray(a)?!a.some(i=>!isUndefined(i)):!Object.keys(a).length}function clearDirtyField(a,i){Array.isArray(a)?a[i]=void 0:delete a[i]}function markFieldsDirty(a,i={},r){for(const n in a){const s=a[n],l=r&&r[n];isTraversable(s)&&(!Array.isArray(s)||!isRegisteredLeaf(l))?(i[n]=Array.isArray(s)?[]:{},markFieldsDirty(s,i[n],l),isEmptyDirtyContainer(i[n])&&clearDirtyField(i,n)):isUndefined(s)||(i[n]=!0)}return i}function getDirtyFields(a,i,r,n){r||(r=markFieldsDirty(i,{},n));for(const s in a){const l=a[s],f=n&&n[s];isTraversable(l)&&(!Array.isArray(l)||!isRegisteredLeaf(f))?(isUndefined(i)||isPrimitive(r[s])?r[s]=markFieldsDirty(l,Array.isArray(l)?[]:{},f):getDirtyFields(l,isNullOrUndefined(i)?{}:i[s],r[s],f),isEmptyDirtyContainer(r[s])&&clearDirtyField(r,s)):deepEqual(l,i[s])?clearDirtyField(r,s):r[s]=!0}return r}var getFieldArrayItemNames=(a,i)=>{const r=i.split("."),n=[];let s=r[0];for(let l=1;l<r.length;s+="."+r[l++])!isNaN(+r[l])&&a.has(s)&&n.push(`${s}.${r[l]}`);return n},getFieldValueAs=(a,{valueAsNumber:i,valueAsDate:r,setValueAs:n})=>isUndefined(a)?a:i?a===""?NaN:a&&+a:r&&isString$1(a)?new Date(a):n?n(a):a;function getFieldValue(a){const i=a.ref;return isFileInput(i)?i.files:isRadioInput(i)?getRadioValue(a.refs).value:isMultipleSelect(i)?[...i.selectedOptions].map(({value:r})=>r):isCheckBoxInput(i)?getCheckboxValue(a.refs).value:getFieldValueAs(i.value,a)}var getResolverOptions=(a,i,r,n)=>{const s={};for(const l of a){const f=get(i,l);f&&set(s,l,f._f)}return{criteriaMode:r,names:[...a],fields:s,shouldUseNativeValidation:n}},getRuleValue=a=>isUndefined(a)?a:isRegex(a)?a.source:isObject(a)?isRegex(a.value)?a.value.source:a.value:a;const ASYNC_FUNCTION="AsyncFunction";var hasPromiseValidation=a=>{if(!a||!a.validate)return!1;if(isFunction(a.validate))return a.validate.constructor.name===ASYNC_FUNCTION;if(isObject(a.validate)){for(const i in a.validate)if(a.validate[i].constructor.name===ASYNC_FUNCTION)return!0}return!1},hasValidation=a=>a.mount&&(a.required||!isUndefined(a.required)&&a.required!==!1||!isUndefined(a.min)||!isUndefined(a.max)||!isUndefined(a.maxLength)||!isUndefined(a.minLength)||a.pattern||a.validate);function schemaErrorLookup(a,i,r){const n=get(a,r);if(n?.type||n?.message||Array.isArray(n))return{error:n,name:r};const s=r.split(".");for(;s.length;){const l=s.join("."),f=get(i,l),d=get(a,l);if(f&&!Array.isArray(f)&&r!==l)return{name:r};
vendor: 24,489 bytes, line 50
50if(d&&d.type)return{name:l,error:d};if(d&&d.root&&d.root.type)return{name:`${l}.root`,error:d.root};s.pop()}return{name:r}}var shouldRenderFormState=(a,i,r,n)=>{r(a);const s=Object.keys(a).filter(l=>l!=="name");return!s.length||n&&s.length>=Object.keys(i).length||s.find(l=>i[l]===(!n||VALIDATION_MODE.all))},shouldSubscribeByName=(a,i,r)=>!a||!i||a===i||convertToArrayPayload(a).some(n=>n&&(r?n===i||n.startsWith(i+"."):n.startsWith(i)||i.startsWith(n))),skipValidation=(a,i,r,n,s)=>s.isOnAll?!1:!r&&s.isOnTouch?!(i||a):(r?n.isOnBlur:s.isOnBlur)?!a:(r?n.isOnChange:s.isOnChange)?a:!0,unsetEmptyArray=(a,i)=>{const r=get(a,i);!compact(r).length&&!r?.root&&unset(a,i)};const defaultOptions$1={mode:VALIDATION_MODE.onSubmit,reValidateMode:VALIDATION_MODE.onChange,shouldFocusError:!0},updateDirtyFields=(a,i)=>{for(const r in a)r in i||delete a[r];Object.assign(a,i)},DEFAULT_FORM_STATE={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function createFormControl(a={}){let i={...defaultOptions$1,...a},r={...cloneObject(DEFAULT_FORM_STATE),isLoading:isFunction(i.defaultValues),errors:i.errors||{},disabled:i.disabled||!1},n={},s=isObject(i.defaultValues)||isObject(i.values)?cloneObject(i.defaultValues||i.values)||{}:{},l=i.shouldUnregister?{}:cloneObject(s),f={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set};const S={},R={};let N=0,B=getValidationModes(i.mode),A=getValidationModes(i.reValidateMode);const I={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},_={...I};let E={..._};const C=(...W)=>W.some(G=>_[G]||E[G]),$={array:createSubject(),state:createSubject()};let F=0,M=0,g=i.criteriaMode===VALIDATION_MODE.all;const h=(W,G)=>ce=>{clearTimeout(R[W]),R[W]=setTimeout(G,ce)},m=W=>{clearTimeout(R[W]),delete R[W],delete S[W]},k=W=>{m(W);const G=`${W}.`;for(const ce of Object.keys(S))ce.startsWith(G)&&m(ce)},T=async W=>{if(!f.keepIsValid&&!i.disabled&&(C("isValid")||W)){const G=++F;let ce;i.resolver?(ce=isEmptyObject((await Y()).errors),G===F&&w()):ce=await x({fields:n,onlyCheckValid:!0,eventType:EVENTS.VALID}),G===F&&ce!==r.isValid&&$.state.next({isValid:ce})}},w=(W,G)=>{!i.disabled&&C("isValidating","validatingFields")&&((W||d.mount).forEach(ce=>{ce&&(G?set(r.validatingFields,ce,G):unset(r.validatingFields,ce))}),$.state.next({validatingFields:r.validatingFields,isValidating:!isEmptyObject(r.validatingFields)}))},D=()=>{r.dirtyFields=getDirtyFields(s,l,void 0,n)},z=(W,G=[],ce,we,Ce=!0,De=!0)=>{if(we&&ce&&!i.disabled){f.action=!0;const Se=get(n,W);if(f.actionArrayLengths.has(W)||f.actionArrayLengths.set(W,Array.isArray(Se)?Se.length:0),De&&Array.isArray(Se)){const et=ce(Se,we.argA,we.argB);Ce&&set(n,W,et)}const He=get(r.errors,W);if(De&&Array.isArray(He)){const et=He.root,pt=ce(He,we.argA,we.argB)||He;et&&(pt.root=et),Ce&&set(r.errors,W,pt),unsetEmptyArray(r.errors,W)}const Ne=get(r.touchedFields,W),Ve=De&&Array.isArray(Ne);if(Ve){const et=ce(Ne,we.argA,we.argB);Ce&&set(r.touchedFields,W,et)}const rt=get(r.dirtyFields,W);if(De&&Array.isArray(rt)){const et=ce(rt,we.argA,we.argB)||rt;Ce&&set(r.dirtyFields,W,et)}C("dirtyFields")&&D(),$.state.next({name:W,isDirty:ne(W,G),dirtyFields:r.dirtyFields,...Ve&&{touchedFields:r.touchedFields},errors:r.errors,isValid:r.isValid})}else set(l,W,G)},J=(W,G)=>{set(r.errors,W,G),r.errors={...r.errors},$.state.next({errors:r.errors})},K=W=>{Object.keys(S).forEach(m);const G=!isEmptyObject(W);r.errors=W,$.state.next({errors:r.errors,...G?{isValid:!1}:{}}),!G&&f.mount&&T()},te=W=>{const G=isKey(W)?[W]:stringToPath(W);let ce=l,we=s;for(let Ce=0;Ce<G.length-1;Ce++){const De=G[Ce];if(ce=isNullOrUndefined(ce)?ce:ce[De],we=isNullOrUndefined(we)?we:we[De],ce===null&&we!==null)return!0}return!1},le=W=>{if(!f.actionArrayLengths.size)return!1;const G=isKey(W)?[W]:stringToPath(W);let ce=l,we="",Ce=-1,De=0;for(let Se=0;Se<G.length;Se++){if(isNullOrUndefined(ce))return!1;const He=G[Se];if(we=we?`${we}.${He}`:He,Array.isArray(ce)&&+He>=ce.length)return Ce===-1?!1:Se===Ce?+He<De:!0;if(f.actionArrayLengths.has(we)&&(Ce=Se+1,De=f.actionArrayLengths.get(we)),ce=ce[He],isUndefined(ce)&&Ce!==-1&&Se>Ce&&+G[Ce]<De)return!0}return!1},fe=(W,G,ce,we)=>{const Ce=get(n,W);if(Ce){if(te(W)||le(W))return;const De=isUndefined(get(l,W)),Se=get(l,W,isUndefined(ce)?get(s,W):ce);isUndefined(Se)||we&&we.defaultChecked||G?set(l,W,G?Se:getFieldValue(Ce._f)):xe(W,Se),f.mount&&!f.action&&(i.resolver&&C("isValidating","validatingFields")?Promise.resolve().then(()=>T()):T(),De&&r.isDirty&&C("isDirty")&&(ne()||(r.isDirty=!1,$.state.next({...r}))),a.shouldUnregister&&De&&!isUndefined(get(l,W))&&isWatched(W,d)&&(f.watch=!0))}},ve=(W,G,ce,we,Ce)=>{let De=!1,Se=!1;const He={name:W};if(!i.disabled||we===!0){if(!ce||we){const Ne=deepEqual(get(s,W),G);C("isDirty")&&(Se=r.isDirty,r.isDirty=He.isDirty=!Ne||ne(),De=Se!==He.isDirty),Se=!!get(r.dirtyFields,W),Ne!==r.isDirty?updateDirtyFields(r.dirtyFields,getDirtyFields(s,l,void 0,n)):Ne?unset(r.dirtyFields,W):set(r.dirtyFields,W,!0),He.dirtyFields=r.dirtyFields,De=De||C("dirtyFields")&&Se!==!Ne}if(ce){const Ne=get(r.touchedFields,W);Ne||(set(r.touchedFields,W,ce),He.touchedFields=r.touchedFields,De=De||C("touchedFields")&&Ne!==ce)}De&&Ce&&$.state.next(He)}return De?He:{}},q=(W,G,ce,we)=>{const Ce=get(r.errors,W),De=C("isValid")&&isBoolean(G)&&r.isValid!==G;if(i.delayError&&ce?(S[W]=h(W,()=>J(W,ce)),S[W](i.delayError)):(m(W),ce?set(r.errors,W,ce):unset(r.errors,W),r.errors={...r.errors}),(ce?!deepEqual(Ce,ce):Ce)||!isEmptyObject(we)||De){const Se={...we,...De&&isBoolean(G)?{isValid:G}:{},errors:r.errors,name:W};$.state.next(Se)}},Y=async W=>(w(W,!0),await i.resolver(l,i.context,getResolverOptions(W||d.mount,n,i.criteriaMode,i.shouldUseNativeValidation))),U=async W=>{const G=M,{errors:ce}=await Y(W);if(G!==M)return ce;if(w(W),W){for(const we of W){const Ce=get(ce,we);k(we);const De=d.array.has(we)&&isObject(Ce)&&!Object.keys(Ce).some(Ne=>!Number.isNaN(Number(Ne))),Se=get(n,we),He=isObject(Se)&&Object.keys(Se).some(Ne=>Ne!=="_f");De?updateFieldArrayRootError(r.errors,{[we]:Ce},we):Ce?.type||Ce?.message||Array.isArray(Ce)||isObject(Ce)&&He?set(r.errors,we,Ce):unset(r.errors,we)}r.errors={...r.errors}}else Object.keys(S).forEach(m),r.errors=ce;return ce},p=async({name:W,eventType:G})=>{if(i.validate){const ce=M,we=await i.validate({formValues:l,formState:r,name:W,eventType:G});if(ce!==M)return!0;if(isObject(we)){let Ce=!0;Te(FORM_ERROR_TYPE);for(const De in we){const Se=we[De];Se&&(Ce=!1,Oe(`${FORM_ERROR_TYPE}.${De}`,{message:isString$1(Se.message)?Se.message:"",type:Se.type||INPUT_VALIDATION_RULES.validate}))}return Ce}else return isString$1(we)||!we?(Oe(FORM_ERROR_TYPE,{message:we||"",type:INPUT_VALIDATION_RULES.validate}),!1):(Te(FORM_ERROR_TYPE),!0)}return!0},x=async({fields:W,onlyCheckValid:G,name:ce,eventType:we,context:Ce={valid:!0,runRootValidation:!1}})=>{const De=M;if(i.validate&&!Ce.runRootValidation&&(Ce.runRootValidation=!0,!await p({name:ce,eventType:we})&&(Ce.valid=!1,G)))return Ce.valid;for(const Se in W){const He=W[Se];if(He){const{_f:Ne,...Ve}=He;if(Ne){const rt=d.array.has(Ne.name),et=He._f&&hasPromiseValidation(He._f),pt=C("isValidating","validatingFields");et&&pt&&w([Ne.name],!0);const mt=await validateField(He,d.disabled,l,g,i.shouldUseNativeValidation&&!G,rt);if(De!==M)return Ce.valid;if(et&&pt&&w([Ne.name]),mt[Ne.name]&&(Ce.valid=!1,G)||(G||(m(Ne.name),get(mt,Ne.name)?rt?updateFieldArrayRootError(r.errors,mt,Ne.name):set(r.errors,Ne.name,mt[Ne.name]):unset(r.errors,Ne.name)),a.shouldUseNativeValidation&&mt[Ne.name]))break}!isEmptyObject(Ve)&&await x({context:Ce,onlyCheckValid:G,fields:Ve,name:Se,eventType:we})}}return Ce.valid},H=()=>{for(const W of d.unMount){const G=get(n,W);G&&(G._f.refs?G._f.refs.every(ce=>!live(ce)):!live(G._f.ref))&&Ye(W)}d.unMount=new Set},ne=(W,G)=>(W&&G&&set(l,W,G),!deepEqual(f.mount?l:s,s)),ae=(W,G,ce)=>generateWatchOutput(W,d,{...f.mount?l:isUndefined(G)||isString$1(W)?s:G},ce,G),ie=W=>compact(get(f.mount?l:s,W,i.shouldUnregister?get(s,W,[]):[])),xe=(W,G,ce={},we=!1,Ce=!1,De=!1)=>{const Se=get(n,W);let He=G;if(Se){const Ne=Se._f;Ne&&(!Ne.disabled&&set(l,W,getFieldValueAs(G,Ne)),He=isHTMLElement(Ne.ref)&&isNullOrUndefined(G)?"":G,isMultipleSelect(Ne.ref)?[...Ne.ref.options].forEach(Ve=>Ve.selected=He.includes(Ve.value)):Ne.refs?isCheckBoxInput(Ne.ref)?Ne.refs.forEach(Ve=>{(!Ve.defaultChecked||!Ve.disabled)&&(Array.isArray(He)?Ve.checked=!!He.find(rt=>rt===Ve.value):Ve.checked=He===Ve.value||!!He)}):Ne.refs.forEach(Ve=>Ve.checked=Ve.value===He):isFileInput(Ne.ref)?Ne.ref.value="":(Ne.ref.value=He,!Ne.ref.type&&!Ce&&!De&&$.state.next({name:W,values:we?l:cloneObject(l)})))}(ce.shouldDirty||ce.shouldTouch)&&ve(W,Se&&Se._f&&!Se._f.disabled&&(Se._f.valueAsNumber||Se._f.valueAsDate||Se._f.setValueAs)?getFieldValueAs(G,Se._f):He,ce.shouldTouch,ce.shouldDirty,!Ce),ce.shouldValidate&&V(W,{delayError:ce.delayError}),ce.shouldValidate&&Se&&Se._f&&Se._f.deps&&(!Array.isArray(Se._f.deps)||Se._f.deps.length>0)&&V(Se._f.deps)},Ue=(W,G,ce,we=!1,Ce=!1,De=!1)=>{d.array.has(W)&&$.array.next({name:W,values:we?l:cloneObject(l)});for(const Se in G){if(!G.hasOwnProperty(Se))continue;const He=G[Se],Ne=W+"."+Se,Ve=get(n,Ne);(d.array.has(W)||isObject(He)||Ve&&!Ve._f)&&!isDateObject(He)?Ue(Ne,He,ce,we,Ce,De):xe(Ne,He,ce,we,Ce,De)}},qe=(W,G,ce,we,Ce=!1)=>{const De=get(n,W),Se=d.array.has(W),He=we?G:cloneObject(G),Ne=get(l,W),Ve=deepEqual(Ne,He);if(Ve||set(l,W,He),Se)$.array.next({name:W,values:we?l:cloneObject(l)}),C("isDirty","dirtyFields")&&ce.shouldDirty&&(D(),Ce||$.state.next({name:W,dirtyFields:r.dirtyFields,isDirty:ne(W,He)})),ce.shouldValidate&&V(W,{delayError:ce.delayError});else{const rt=Array.isArray(He)&&!He.length||isEmptyObject(He),et=!Ve&&!Ce;!De||De._f||isNullOrUndefined(He)||rt?xe(W,He,ce,we,Ce,et):Ue(W,He,ce,we,Ce,et)}if(!Ve&&!Ce){const rt=isWatched(W,d),et=we?l:cloneObject(l);if($.state.next({...rt&&r,name:f.mount||rt?W:void 0,values:et}),!Se)for(const pt of getFieldArrayItemNames(d.array,W))$.state.next({name:pt,values:et})}},se=(W,G,ce={})=>qe(W,G,ce,!1),Q=(W,G={})=>{const ce=isFunction(W)?W(l):W;if(!deepEqual(l,ce)){l={...l,...ce};for(const we of d.mount)has(ce,we)&&qe(we,get(ce,we),G,!0,!0);$.state.next({...r,name:void 0,type:void 0,...N?{values:l}:{}}),G.shouldValidate&&T()}},L=async W=>{f.mount=!0;const G=W.target;let ce=G.name,we=!0;const Ce=get(n,ce),De=Se=>{we=Number.isNaN(Se)||isDateObject(Se)&&isNaN(Se.getTime())||deepEqual(Se,get(l,ce,Se))};if(Ce){let Se,He;const Ne=G.type?getFieldValue(Ce._f):getEventValue(W),Ve=W.type===EVENTS.BLUR||W.type===EVENTS.FOCUS_OUT,rt=!hasValidation(Ce._f)&&!i.validate&&!i.resolver&&!get(r.errors,ce)&&!Ce._f.deps,et=rt||skipValidation(Ve,get(r.touchedFields,ce),r.isSubmitted,A,B),pt=isWatched(ce,d,Ve);if(set(l,ce,cloneObject(Ne)),Ve){if(!G||!G.readOnly){Ce._f.onBlur&&Ce._f.onBlur(W);const Et=S[ce];Et&&Et(0)}}else Ce._f.onChange&&Ce._f.onChange(W);const mt=ve(ce,Ne,Ve),xt=!isEmptyObject(mt)||pt;if(!Ve&&$.state.next({name:ce,type:W.type,...N?{values:cloneObject(l)}:{}}),et)return(!rt||!r.isValid)&&C("isValid")&&(i.mode==="onBlur"?Ve&&T():Ve||T()),xt&&$.state.next({name:ce,...pt?{}:mt});if(!i.resolver&&i.validate&&await p({name:ce,eventType:W.type}),!Ve&&pt&&$.state.next({...r}),i.resolver){const Et=M,{errors:Bt}=await Y([ce]);if(Et!==M)return;if(w([ce]),De(Ne),!we){!isEmptyObject(mt)&&$.state.next(mt);return}const er=schemaErrorLookup(r.errors,n,ce),Kt=schemaErrorLookup(Bt,n,er.name||ce);Se=Kt.error,ce=Kt.name,He=isEmptyObject(Bt)}else{const Et=M;if(w([ce],!0),Se=(await validateField(Ce,d.disabled,l,g,i.shouldUseNativeValidation))[ce],Et!==M)return;if(w([ce]),De(Ne),we){if(Se)He=!1;else if(C("isValid")&&(He=await x({fields:n,onlyCheckValid:!0,name:ce,eventType:W.type}),Et!==M))return}}we&&(Ce._f.deps&&(!Array.isArray(Ce._f.deps)||Ce._f.deps.length>0)&&V(Ce._f.deps),q(ce,He,Se,mt))}},P=(W,G)=>{if(get(r.errors,G)&&W.focus)return W.focus(),1},V=async(W,G={})=>{let ce,we;const Ce=convertToArrayPayload(W);if(i.resolver){const De=M,Se=await U(isUndefined(W)?W:Ce);if(ce=isEmptyObject(Se),we=W?!Ce.some(He=>get(Se,He)):ce,De!==M)return we}else W?(we=(await Promise.all(Ce.map(async De=>{const Se=get(n,De);return await x({fields:Se&&Se._f?{[De]:Se}:Se,eventType:EVENTS.TRIGGER})}))).every(Boolean),!(!we&&!r.isValid)&&T()):we=ce=await x({fields:n,name:W,eventType:EVENTS.TRIGGER});if(G.delayError&&i.delayError&&isString$1(W)){const De=get(r.errors,W);De?(unset(r.errors,W),S[W]=h(W,()=>J(W,De)),S[W](i.delayError)):m(W)}if(G.shouldTouch)for(const De of W?Ce:d.mount)!d.array.has(De)&&set(r.touchedFields,De,!0);return $.state.next({...!isString$1(W)||C("isValid")&&ce!==r.isValid?{}:{name:W},...i.resolver||!W?{isValid:ce}:{},...G.shouldTouch&&C("touchedFields")?{touchedFields:r.touchedFields}:{},errors:r.errors}),G.shouldFocus&&!we&&iterateFieldsByAction(n,P,W?Ce:d.mount),we},ee=(W,G)=>{let ce={...f.mount?l:s};return G&&(ce=extractFormValues(G.dirtyFields?r.dirtyFields:r.touchedFields,ce)),isUndefined(W)?ce:isString$1(W)?get(ce,W):W.map(we=>get(ce,we))},oe=W=>isUndefined(W)?{...r.errors}:isString$1(W)?get(r.errors,W):W.map(G=>get(r.errors,G)),pe=(W,G)=>{const ce=G||r,we=get(ce.errors,W);return{invalid:!!we,isDirty:!!get(ce.dirtyFields,W),error:we,isValidating:!!get(ce.validatingFields,W),isTouched:!!get(ce.touchedFields,W)}},Te=W=>{const G=W?convertToArrayPayload(W):void 0;G?G.forEach(ce=>{k(ce),unset(r.errors,ce),$.state.next({name:ce,errors:r.errors})}):(Object.keys(S).forEach(m),r.errors={},$.state.next({errors:r.errors}))},Oe=(W,G,ce)=>{k(W);const we=(get(n,W,{_f:{}})._f||{}).ref,Ce=get(r.errors,W)||{},{ref:De,message:Se,type:He,types:Ne,...Ve}=Ce;set(r.errors,W,{...Ve,...G,ref:we}),$.state.next({name:W,errors:r.errors,isValid:!1}),ce&&ce.shouldFocus&&we&&we.focus&&we.focus()},Me=(W,G)=>{if(isFunction(W)){N++;const{unsubscribe:ce}=$.state.subscribe({next:Ce=>"values"in Ce&&W(Ce.values||ae(void 0,G),Ce)});let we=!1;return{unsubscribe:()=>{we||(we=!0,N--,ce())}}}return ae(W,G,!0)},Fe=W=>{var G;const ce=!!(!((G=W.formState)===null||G===void 0)&&G.values);ce&&N++;const{unsubscribe:we}=$.state.subscribe({next:De=>{if(shouldSubscribeByName(W.name,De.name,W.exact)&&shouldRenderFormState(De,W.formState||_,ue,W.reRenderRoot)){const Se={...l};W.callback({values:Se,...r,...De,defaultValues:s})}}});if(!ce)return we;let Ce=!1;return()=>{Ce||(Ce=!0,N--,we())}},ze=W=>(f.mount=!0,E={...E,...W.formState},Fe({...W,formState:{...I,...W.formState}})),Ye=(W,G={})=>{for(const ce of W?convertToArrayPayload(W):d.mount)d.mount.delete(ce),d.array.delete(ce),d.disabled.delete(ce),G.keepValue||(unset(n,ce),unset(l,ce)),G.keepError||(k(ce),unset(r.errors,ce)),!G.keepDirty&&unset(r.dirtyFields,ce),!G.keepTouched&&unset(r.touchedFields,ce),!G.keepIsValidating&&unset(r.validatingFields,ce),!i.shouldUnregister&&!G.keepDefaultValue&&unset(s,ce);N&&$.state.next({values:cloneObject(l)}),$.state.next({...r,...G.keepDirty?{}:{isDirty:ne()},...G.keepIsValidating?{}:{isValidating:!isEmptyObject(r.validatingFields)}}),!G.keepIsValid&&T()},Je=({disabled:W,name:G})=>{if(isBoolean(W)&&f.mount||W||d.disabled.has(G)){const Ce=d.disabled.has(G)!==!!W;W?d.disabled.add(G):d.disabled.delete(G),Ce&&f.mount&&!f.action&&T()}},nt=(W,G={})=>{let ce=get(n,W);const we=isBoolean(G.disabled)||isBoolean(i.disabled),Ce=!d.registerName.has(W)&&ce&&ce._f&&!ce._f.mount;if(set(n,W,{...ce||{},_f:{...ce&&ce._f?ce._f:{ref:{name:W}},name:W,mount:!0,...G}}),d.mount.add(W),ce&&ce._f){const De=get(n,W);for(const Se of REGISTER_VALIDATION_RULES)Se in G||delete De._f[Se]}return ce&&!Ce?Je({disabled:isBoolean(G.disabled)?G.disabled:i.disabled,name:W}):fe(W,!0,G.value),{...we?{disabled:G.disabled||i.disabled}:{},...i.progressive?{required:!!G.required,min:getRuleValue(G.min),max:getRuleValue(G.max),minLength:getRuleValue(G.minLength),maxLength:getRuleValue(G.maxLength),pattern:getRuleValue(G.pattern)}:{},name:W,onChange:L,onBlur:L,ref:De=>{if(De){d.registerName.add(W),nt(W,G),d.registerName.delete(W),ce=get(n,W);const Se=isUndefined(De.value)&&De.querySelectorAll&&De.querySelectorAll("input,select,textarea")[0]||De,He=isRadioOrCheckbox(Se),Ne=ce._f.refs||[];if(He?Ne.find(rt=>rt===Se):Se===ce._f.ref)return;const Ve={...ce._f};He?(Ve.refs=[...Ne.filter(live),Se,...Array.isArray(get(s,W))?[{}]:[]],Ve.ref={type:Se.type,name:W}):(Ve.ref=Se,delete Ve.refs),set(n,W,{_f:Ve}),fe(W,!1,void 0,Se)}else ce=get(n,W,{}),ce._f&&(ce._f.mount=!1),(i.shouldUnregister||G.shouldUnregister)&&!(isNameInFieldArray(d.array,W)&&f.action)&&d.unMount.add(W)}}},tt=()=>i.shouldFocusError&&!i.shouldUseNativeValidation&&iterateFieldsByAction(n,P,d.mount),ct=W=>{isBoolean(W)&&($.state.next({disabled:W}),iterateFieldsByAction(n,(G,ce)=>{const we=get(n,ce);we&&(G.disabled=we._f.disabled||W,Array.isArray(we._f.refs)&&we._f.refs.forEach(Ce=>{Ce.disabled=we._f.disabled||W}))},0))},lt=(W,G)=>async ce=>{let we,Ce;ce&&(ce.preventDefault&&ce.preventDefault(),ce.persist&&ce.persist());let De=cloneObject(l);if($.state.next({isSubmitting:!0}),i.resolver){const Se=M,{errors:He,values:Ne}=await Y();if(Se!==M)return;w(),Object.keys(S).forEach(m),r.errors=He,De=cloneObject(Ne)}else{const Se=M;if(await x({fields:n,eventType:EVENTS.SUBMIT}),Se!==M)return;unset(r.errors,ROOT_ERROR_TYPE)}if(d.disabled.size)for(const Se of d.disabled)unset(De,Se);if(isEmptyObject(r.errors)){$.state.next({errors:{}});try{we=await W(De,ce)}catch(Se){Ce=Se}}else G&&await G({...r.errors},ce),tt(),setTimeout(tt);if($.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(r.errors)&&!Ce,submitCount:r.submitCount+1,errors:r.errors}),Ce)throw Ce;return we},Ee=(W,G={})=>{get(n,W)&&(unset(r.validatingFields,W),isUndefined(G.defaultValue)?se(W,cloneObject(get(s,W))):(se(W,G.defaultValue),set(s,W,cloneObject(G.defaultValue))),G.keepTouched||unset(r.touchedFields,W),G.keepDirty||(unset(r.dirtyFields,W),r.isDirty=G.defaultValue?ne(W,cloneObject(get(s,W))):ne()),G.keepError||(k(W),unset(r.errors,W),T()),$.state.next({...r,isValidating:!isEmptyObject(r.validatingFields)}))},Re=(W,G={})=>{M++;const ce=W?cloneObject(W):s,we=cloneObject(ce),Ce=isEmptyObject(W),De=we,Se=n;if(Object.keys(S).forEach(m),G.keepDefaultValues||(s=ce),!G.keepValues){if(G.keepDirtyValues){const He=new Set([...d.mount,...collectDirtyFieldNames(getDirtyFields(s,l,void 0,Se),r.dirtyFields)]);for(const Ne of He){const Ve=get(r.dirtyFields,Ne),rt=get(l,Ne),et=get(De,Ne);Ve&&!isUndefined(rt)?set(De,Ne,rt):!Ve&&!isUndefined(et)&&se(Ne,et)}}else{if(isWeb&&isUndefined(W))for(const He of d.mount){const Ne=get(n,He);if(Ne&&Ne._f){const Ve=Array.isArray(Ne._f.refs)?Ne._f.refs[0]:Ne._f.ref;if(isHTMLElement(Ve)){const rt=Ve.closest("form");if(rt){rt.reset();break}}}}if(G.keepFieldsRef)for(const He of d.mount)se(He,get(De,He));else n={}}if(i.shouldUnregister){if(l=G.keepDefaultValues?cloneObject(s):{},G.keepFieldsRef)for(const He of d.mount)set(l,He,get(De,He))}else l=cloneObject(De);$.array.next({values:{...De}}),$.state.next({name:void 0,type:void 0,values:{...De}})}d={mount:G.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},f.mount=!_.isValid||!!G.keepIsValid||!!G.keepDirtyValues||!i.shouldUnregister&&!isEmptyObject(De),f.watch=!!i.shouldUnregister,f.keepIsValid=!!G.keepIsValid,f.action=!1,f.actionArrayLengths.clear(),G.keepErrors||(r.errors={}),$.state.next({submitCount:G.keepSubmitCount?r.submitCount:0,isDirty:Ce?!1:G.keepDirty?r.isDirty:G.keepValues?ne():!!(G.keepDefaultValues&&!deepEqual(W,s)),isSubmitted:G.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:Ce?{}:G.keepDirtyValues?G.keepDefaultValues&&l?getDirtyFields(s,l,void 0,Se):r.dirtyFields:G.keepDefaultValues&&W?getDirtyFields(s,W,void 0,Se):G.keepDirty?r.dirtyFields:G.keepValues?getDirtyFields(s,l,void 0,Se):{},touchedFields:G.keepTouched?r.touchedFields:{},...!G.keepIsValidating&&(r.isValidating||!isEmptyObject(r.validatingFields))?{validatingFields:{},isValidating:!1}:null,errors:G.keepErrors?r.errors:{},isSubmitSuccessful:G.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},Z=(W,G)=>Re(isFunction(W)?W(l):W,{...i.resetOptions,...G}),he=(W,G={})=>{const ce=get(n,W),we=ce&&ce._f;if(we){const Ce=we.refs?we.refs[0]:we.ref;Ce.focus&&setTimeout(()=>{Ce.focus(),G.shouldSelect&&isFunction(Ce.select)&&Ce.select()})}},ue=W=>{const{name:G,type:ce,values:we,...Ce}=W;r={...r,...Ce}};$.state.subscribe({next:ue});const de={control:{register:nt,unregister:Ye,getFieldState:pe,handleSubmit:lt,setError:Oe,_subscribe:Fe,_runSchema:Y,_updateIsValidating:w,_focusError:tt,_getWatch:ae,_getDirty:ne,_setValid:T,_setFieldArray:z,_setDisabledField:Je,_setErrors:K,_getFieldArray:ie,_reset:Re,_resetDefaultValues:()=>isFunction(i.defaultValues)&&i.defaultValues().then(W=>{Z(W,i.resetOptions),$.state.next({isLoading:!1})}),_removeUnmounted:H,_disableForm:ct,_subjects:$,_proxyFormState:_,get _fields(){return n},get _formValues(){return l},get _state(){return f},set _state(W){f=W},get _defaultValues(){return s},get _names(){return d},set _names(W){d=W},get _formState(){return r},get _options(){return i},set _options(W){i={...i,...W},B=getValidationModes(i.mode),A=getValidationModes(i.reValidateMode),g=i.criteriaMode===VALIDATION_MODE.all}},subscribe:ze,trigger:V,register:nt,handleSubmit:lt,watch:Me,setValue:se,setValues:Q,getValues:ee,getErrors:oe,reset:Z,resetField:Ee,resetDefaultValues:(W,G={})=>{if(s=cloneObject(W),!G.keepDirty){const ce=getDirtyFields(s,l,void 0,n);r.dirtyFields=ce,r.isDirty=!isEmptyObject(ce)}G.keepIsValid||T(),$.state.next({...r,defaultValues:s})},clearErrors:Te,unregister:Ye,setError:Oe,setFocus:he,getFieldState:pe};return{...de,formControl:de}}function useForm(a={}){const i=v.useRef(void 0),r=v.useRef(void 0),n=v.useRef(a.formControl),s=v.useRef(!!a.validate),[l,f]=v.useState(()=>({...cloneObject(DEFAULT_FORM_STATE),isLoading:isFunction(a.defaultValues),errors:a.errors||{},disabled:a.disabled||!1,defaultValues:isFunction(a.defaultValues)?void 0:a.defaultValues}));if(!i.current||a.formControl&&n.current!==a.formControl)if(n.current=a.formControl,a.formControl)i.current={...a.formControl,formState:l},a.defaultValues&&!isFunction(a.defaultValues)&&a.formControl.reset(a.defaultValues,a.resetOptions);else{const{formControl:B,...A}=createFormControl(a);i.current={...A,formState:l}}const d=i.current.control;d._options={...a,validate:a.validate};const S=()=>({...d._formState,defaultValues:d._defaultValues}),{resyncIfNeeded:R,snapshot:N}=useResyncOnReconnect(S);return useIsomorphicLayoutEffect(()=>{R(!0,S,f);const B=d._subscribe({formState:d._proxyFormState,callback:()=>f({...d._formState,defaultValues:d._defaultValues}),reRenderRoot:!0});return f(A=>({...A,isReady:!0})),d._formState.isReady=!0,()=>{B(),N(!0,S)}},[d,R,N]),v.useEffect(()=>d._disableForm(a.disabled),[d,a.disabled]),v.useEffect(()=>{a.mode&&(d._options.mode=a.mode),a.reValidateMode&&(d._options.reValidateMode=a.reValidateMode)},[d,a.mode,a.reValidateMode]),v.useEffect(()=>{a.errors&&(d._setErrors(a.errors),d._focusError())},[d,a.errors]),v.useEffect(()=>{var B;s.current&&!a.validate&&((B=i.current)===null||B===void 0||B.clearErrors(FORM_ERROR_TYPE)),s.current=!!a.validate},[a.validate]),v.useEffect(()=>{a.shouldUnregister&&d._subjects.state.next({values:d._getWatch()})},[d,a.shouldUnregister]),v.useEffect(()=>{if(d._proxyFormState.isDirty){const B=d._getDirty();B!==l.isDirty&&d._subjects.state.next({isDirty:B})}},[d,l.isDirty]),v.useEffect(()=>{var B;a.values&&!deepEqual(a.values,r.current)?(d._reset(a.values,{keepFieldsRef:!0,...d._options.resetOptions}),!((B=d._options.resetOptions)===null||B===void 0)&&B.keepIsValid||d._setValid(),r.current=a.values,f(A=>({...A}))):d._resetDefaultValues()},[d,a.values]),v.useEffect(()=>{d._state.mount||(d._setValid(),d._state.mount=!0),d._state.watch&&(d._state.watch=!1,d._subjects.state.next({...d._formState})),d._removeUnmounted()}),i.current.formState=v.useMemo(()=>getProxyFormState(l,d),[d,l]),i.current}var _excluded$1=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(a){for(var i=1;i<arguments.length;i++){var r=arguments[i];
vendor: 3,500 bytes, line 50
50for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},_extends$1.apply(this,arguments)}function _objectWithoutPropertiesLoose$1(a,i){if(a==null)return{};var r={},n=Object.keys(a),s,l;for(l=0;l<n.length;l++)s=n[l],!(i.indexOf(s)>=0)&&(r[s]=a[s]);return r}function _assertThisInitialized$1(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _inheritsLoose$1(a,i){a.prototype=Object.create(i.prototype),a.prototype.constructor=a,_setPrototypeOf$1(a,i)}function _setPrototypeOf$1(a,i){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},_setPrototypeOf$1(a,i)}var ReCAPTCHA=(function(a){_inheritsLoose$1(i,a);function i(){var n;return n=a.call(this)||this,n.handleExpired=n.handleExpired.bind(_assertThisInitialized$1(n)),n.handleErrored=n.handleErrored.bind(_assertThisInitialized$1(n)),n.handleChange=n.handleChange.bind(_assertThisInitialized$1(n)),n.handleRecaptchaRef=n.handleRecaptchaRef.bind(_assertThisInitialized$1(n)),n}var r=i.prototype;return r.getCaptchaFunction=function(s){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[s]:this.props.grecaptcha[s]:null},r.getValue=function(){var s=this.getCaptchaFunction("getResponse");return s&&this._widgetId!==void 0?s(this._widgetId):null},r.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},r.execute=function(){var s=this.getCaptchaFunction("execute");if(s&&this._widgetId!==void 0)return s(this._widgetId);this._executeRequested=!0},r.executeAsync=function(){var s=this;return new Promise(function(l,f){s.executionResolve=l,s.executionReject=f,s.execute()})},r.reset=function(){var s=this.getCaptchaFunction("reset");s&&this._widgetId!==void 0&&s(this._widgetId)},r.forceReset=function(){var s=this.getCaptchaFunction("reset");s&&s()},r.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},r.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},r.handleChange=function(s){this.props.onChange&&this.props.onChange(s),this.executionResolve&&(this.executionResolve(s),delete this.executionReject,delete this.executionResolve)},r.explicitRender=function(){var s=this.getCaptchaFunction("render");if(s&&this._widgetId===void 0){var l=document.createElement("div");this._widgetId=s(l,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(l)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},r.componentDidMount=function(){this.explicitRender()},r.componentDidUpdate=function(){this.explicitRender()},r.handleRecaptchaRef=function(s){this.captcha=s},r.render=function(){var s=this.props;s.sitekey,s.onChange,s.theme,s.type,s.tabindex,s.onExpired,s.onErrored,s.size,s.stoken,s.grecaptcha,s.badge,s.hl,s.isolated;var l=_objectWithoutPropertiesLoose$1(s,_excluded$1);return reactExports.createElement("div",_extends$1({},l,{ref:this.handleRecaptchaRef}))},i})(reactExports.Component);
50ReCAPTCHA.displayName="ReCAPTCHA";ReCAPTCHA.propTypes={sitekey:PropTypes.string.isRequired,onChange:PropTypes.func,grecaptcha:PropTypes.object,theme:PropTypes.oneOf(["dark","light"]),type:PropTypes.oneOf(["image","audio"]),tabindex:PropTypes.number,onExpired:PropTypes.func,onErrored:PropTypes.func,size:PropTypes.oneOf(["compact","normal","invisible"]),stoken:PropTypes.string,hl:PropTypes.string,badge:PropTypes.oneOf(["bottomright","bottomleft","inline"]),isolated:PropTypes.bool};ReCAPTCHA.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};function _extends(){return _extends=Object.assign||function(a){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(a,i){if(a==null)return{};var r={},n=Object.keys(a),s,l;for(l=0;l<n.length;l++)s=n[l],!(i.indexOf(s)>=0)&&(r[s]=a[s]);return r}function _inheritsLoose(a,i){a.prototype=Object.create(i.prototype),a.prototype.constructor=a,a.__proto__=i}var SCRIPT_MAP={},idCount=0;function makeAsyncScript(a,i){return i=i||{},function(n){var s=n.displayName||n.name||"Component",l=(function(d){_inheritsLoose(S,d);function S(N,B){var A;return A=d.call(this,N,B)||this,A.state={},A.__scriptURL="",A}var R=S.prototype;return R.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+idCount++),this.__scriptLoaderID},R.setupScriptURL=function(){return this.__scriptURL=typeof a=="function"?a():a,this.__scriptURL},R.asyncScriptLoaderHandleLoad=function(B){var A=this;this.setState(B,function(){return A.props.asyncScriptOnLoad&&A.props.asyncScriptOnLoad(A.state)})},R.asyncScriptLoaderTriggerOnScriptLoaded=function(){var B=SCRIPT_MAP[this.__scriptURL];if(!B||!B.loaded)throw new Error("Script is not loaded.");for(var A in B.observers)B.observers[A](B);delete window[i.callbackName]},R.componentDidMount=function(){var B=this,A=this.setupScriptURL(),I=this.asyncScriptLoaderGetScriptLoaderID(),_=i,E=_.globalName,C=_.callbackName,$=_.scriptId;if(E&&typeof window[E]<"u"&&(SCRIPT_MAP[A]={loaded:!0,observers:{}}),SCRIPT_MAP[A]){var F=SCRIPT_MAP[A];if(F&&(F.loaded||F.errored)){this.asyncScriptLoaderHandleLoad(F);return}F.observers[I]=function(k){return B.asyncScriptLoaderHandleLoad(k)};return}var M={};M[I]=function(k){return B.asyncScriptLoaderHandleLoad(k)},SCRIPT_MAP[A]={loaded:!1,observers:M};var g=document.createElement("script");g.src=A,g.async=!0;for(var h in i.attributes)g.setAttribute(h,i.attributes[h]);$&&(g.id=$);var m=function(T){if(SCRIPT_MAP[A]){var w=SCRIPT_MAP[A],D=w.observers;for(var z in D)T(D[z])&&delete D[z]}};C&&typeof window<"u"&&(window[C]=function(){return B.asyncScriptLoaderTriggerOnScriptLoaded()}),g.onload=function(){var k=SCRIPT_MAP[A];k&&(k.loaded=!0,m(function(T){return C?!1:(T(k),!0)}))},g.onerror=function(){var k=SCRIPT_MAP[A];k&&(k.errored=!0,m(function(T){return T(k),!0}))},document.body.appendChild(g)},R.componentWillUnmount=function(){var B=this.__scriptURL;if(i.removeOnUnmount===!0)for(var A=document.getElementsByTagName("script"),I=0;I<A.length;I+=1)A[I].src.indexOf(B)>-1&&A[I].parentNode&&A[I].parentNode.removeChild(A[I]);var _=SCRIPT_MAP[B];_&&(delete _.observers[this.asyncScriptLoaderGetScriptLoaderID()],i.removeOnUnmount===!0&&delete SCRIPT_MAP[B])},R.render=function(){var B=i.globalName,A=this.props;A.asyncScriptOnLoad;var I=A.forwardedRef,_=_objectWithoutPropertiesLoose(A,["asyncScriptOnLoad","forwardedRef"]);return B&&typeof window<"u"&&(_[B]=typeof window[B]<"u"?window[B]:void 0),_.ref=I,reactExports.createElement(n,_)},S})(reactExports.Component),f=reactExports.forwardRef(function(d,S){return reactExports.createElement(l,_extends({},d,{forwardedRef:S}))});return f.displayName="AsyncScriptLoader("+s+")",f.propTypes={asyncScriptOnLoad:PropTypes.func},hoistStatics(f,n)}}var callbackName="onloadcallback",globalName="grecaptcha";function getOptions(){return typeof window<"u"&&window.recaptchaOptions||{}}function getURL(){var a=getOptions(),i=a.useRecaptchaNet?"recaptcha.net":"www.google.com";return a.enterprise?"https://"+i+"/recaptcha/enterprise.js?onload="+callbackName+"&render=explicit":"https://"+i+"/recaptcha/api.js?onload="+callbackName+"&render=explicit"}const RecaptchaWrapper=makeAsyncScript(getURL,{callbackName,globalName,attributes:getOptions().nonce?{nonce:getOptions().nonce}:{}})(ReCAPTCHA);function _classCallCheck(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,i){for(var r=0;r<i.length;r++){var n=i[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}}function _createClass(a,i,r){return i&&_defineProperties(a.prototype,i
50),a}function _inherits(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),i&&_setPrototypeOf(a,i)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},_getPrototypeOf(a)}function _setPrototypeOf(a,i){return _setPrototypeOf=Object.setPrototypeOf||function(n,s){return n.__proto__=s,n},_setPrototypeOf(a,i)}function _isNativeReflectConstruct$7(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _assertThisInitialized(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _possibleConstructorReturn(a,i){return i&&(typeof i=="object"||typeof i=="function")?i:_assertThisInitialized(a)}function _createSuper$7(a){var i=_isNativeReflectConstruct$7();return function(){var n=_getPrototypeOf(a),s;if(i){var l=_getPrototypeOf(this).constructor;s=Reflect.construct(n,arguments,l)}else s=n.apply(this,arguments);return _possibleConstructorReturn(this,s)}}function _toConsumableArray(a){return _arrayWithoutHoles(a)||_iterableToArray(a)||_unsupportedIterableToArray(a)||_nonIterableSpread()}function _arrayWithoutHoles(a){if(Array.isArray(a))return _arrayLikeToArray(a)}function _iterableToArray(a){if(typeof Symbol<"u"&&Symbol.iterator in Object(a))return Array.from(a)}function _unsupportedIterableToArray(a,i){if(a){if(typeof a=="string")return _arrayLikeToArray(a,i);var r=Object.prototype.toString.call(a).slice(8,-1);if(r==="Object"&&a.constructor&&(r=a.constructor.name),r==="Map"||r==="Set")return Array.from(a);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(a,i)}}function _arrayLikeToArray(a,i){(i==null||i>a.length)&&(i=a.length);for(var r=0,n=new Array(i);r<i;r++)n[r]=a[r];return n}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
51In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zeroPad(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,r=String(a);if(i===0)return r;var n=r.match(/(.*?)([0-9]+)(.*)/),s=n?n[1]:"",l=n?n[3]:"",f=n?n[2]:r,d=f.length>=i?f:(_toConsumableArray(Array(i)).map(function(){return"0"}).join("")+f).slice(i*-1);return"".concat(s).concat(d).concat(l)}var timeDeltaFormatOptionsDefaults={daysInHours:!1,zeroPadTime:2};function calcTimeDelta(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=i.now,n=r===void 0?Date.now:r,s=i.precision,l=s===void 0?0:s,f=i.controlled,d=i.offsetTime,S=d===void 0?0:d,R=i.overtime,N;typeof a=="string"?N=new Date(a).getTime():a instanceof Date?N=a.getTime():N=a,f||(N+=S);var B=f?N:N-n(),A=Math.min(20,Math.max(0,l)),I=Math.round(parseFloat(((R?B:Math.max(0,B))/1e3).toFixed(A))*1e3),_=Math.abs(I)/1e3;return{total:I,days:Math.floor(_/(3600*24)),hours:Math.floor(_/3600%24),minutes:Math.floor(_/60%60),seconds:Math.floor(_%60),milliseconds:Number((_%1*1e3).toFixed()),completed:I<=0}}function formatTimeDelta(a,i){var r=a.days,n=a.hours,s=a.minutes,l=a.seconds,f=Object.assign(Object.assign({},timeDeltaFormatOptionsDefaults),i),d=f.daysInHours,S=f.zeroPadTime,R=f.zeroPadDays,N=R===void 0?S:R,B=Math.min(2,S),A=d?zeroPad(n+r*24,S):zeroPad(n,B);return{days:d?"":zeroPad(r,N),hours:A,minutes:zeroPad(s,B),seconds:zeroPad(l,B)}}var Countdown=(function(a){_inherits(r,a);var i=_createSuper$7(r);function r(){var n;return _classCallCheck(this,r),n=i.apply(this,arguments),n.state={count:n.props.count||3},n.startCountdown=function(){n.interval=window.setInterval(function(){var s=n.state.count-1;s===0?(n.stopCountdown(),n.props.onComplete&&n.props.onComplete()):n.setState(function(l){return{count:l.count-1}})},1e3)},n.stopCountdown=function(){clearInterval(n.interval)},n.addTime=function(s){n.stopCountdown(),n.setState(function(l){return{count:l.count+s}},n.startCountdown)},n}
51return _createClass(r,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?reactExports.cloneElement(this.props.children,{count:this.state.count}):null}}]),r})(reactExports.Component);Countdown.propTypes={count:propTypesExports.number,children:propTypesExports.element,onComplete:propTypesExports.func};var Countdown$1=(function(a){_inherits(r,a);var i=_createSuper$7(r);function r(n){var s;if(_classCallCheck(this,r),s=i.call(this,n),s.mounted=!1,s.initialTimestamp=s.calcOffsetStartTimestamp(),s.offsetStartTimestamp=s.props.autoStart?0:s.initialTimestamp,s.offsetTime=0,s.legacyMode=!1,s.legacyCountdownRef=null,s.tick=function(){var f=s.calcTimeDelta(),d=f.completed&&!s.props.overtime?void 0:s.props.onTick;s.setTimeDeltaState(f,void 0,d)},s.setLegacyCountdownRef=function(f){s.legacyCountdownRef=f},s.start=function(){if(!s.isStarted()){var f=s.offsetStartTimestamp;s.offsetStartTimestamp=0,s.offsetTime+=f?s.calcOffsetStartTimestamp()-f:0;var d=s.calcTimeDelta();s.setTimeDeltaState(d,"STARTED",s.props.onStart),!s.props.controlled&&(!d.completed||s.props.overtime)&&(s.clearTimer(),s.interval=window.setInterval(s.tick,s.props.intervalDelay))}},s.pause=function(){s.isPaused()||(s.clearTimer(),s.offsetStartTimestamp=s.calcOffsetStartTimestamp(),s.setTimeDeltaState(s.state.timeDelta,"PAUSED",s.props.onPause))},s.stop=function(){s.isStopped()||(s.clearTimer(),s.offsetStartTimestamp=s.calcOffsetStartTimestamp(),s.offsetTime=s.offsetStartTimestamp-s.initialTimestamp,s.setTimeDeltaState(s.calcTimeDelta(),"STOPPED",s.props.onStop))},s.isStarted=function(){return s.isStatus("STARTED")},s.isPaused=function(){return s.isStatus("PAUSED")},s.isStopped=function(){return s.isStatus("STOPPED")},s.isCompleted=function(){return s.isStatus("COMPLETED")},n.date){var l=s.calcTimeDelta();s.state={timeDelta:l,status:l.completed?"COMPLETED":"STOPPED"}}else s.legacyMode=!0;return s}return _createClass(r,[{key:"componentDidMount",value:function(){this.legacyMode||(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(s){this.legacyMode||this.props.date!==s.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var s=this.props,l=s.date,f=s.now,d=s.precision,S=s.controlled,R=s.overtime;return calcTimeDelta(l,{now:f,precision:d,controlled:S,offsetTime:this.offsetTime,overtime:R})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(s){this.legacyCountdownRef.addTime(s)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(s){return this.state.status===s}},{key:"setTimeDeltaState",value:function(s,l,f){var d=this;if(this.mounted){var S=s.completed&&!this.state.timeDelta.completed,R=s.completed&&l==="STARTED";S&&!this.props.overtime&&this.clearTimer();var N=function(){f&&f(d.state.timeDelta),d.props.onComplete&&(S||R)&&d.props.onComplete(s,R)};return this.setState(function(B){var A=l||B.status;return s.completed&&!d.props.overtime?A="COMPLETED":!l&&A==="COMPLETED"&&(A="STOPPED"),{timeDelta:s,status:A}},N)}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var s=this.props,l=s.daysInHours,f=s.zeroPadTime,d=s.zeroPadDays,S=this.state.timeDelta;return Object.assign(Object.assign({},S),{api:this.getApi(),props:this.props,formatted:formatTimeDelta(S,{daysInHours:l,zeroPadTime:f,zeroPadDays:d})})}},{key:"render",value:function(){if(this.legacyMode){var s=this.props,l=s.count,f=s.children,d=s.onComplete;return reactExports.createElement(Countdown,{ref:this.setLegacyCountdownRef,count:l,onComplete:d},f)}var S=this.props,R=S.className,N=S.overtime,B=S.children,A=S.renderer,I=this.getRenderProps();
51if(A)return A(I);if(B&&this.state.timeDelta.completed&&!N)return reactExports.cloneElement(B,{countdown:I});var _=I.formatted,E=_.days,C=_.hours,$=_.minutes,F=_.seconds;return reactExports.createElement("span",{className:R},I.total<0?"-":"",E,E?":":"",C,":",$,":",F)}}]),r})(reactExports.Component);Countdown$1.defaultProps=Object.assign(Object.assign({},timeDeltaFormatOptionsDefaults),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0});Countdown$1.propTypes={date:propTypesExports.oneOfType([propTypesExports.instanceOf(Date),propTypesExports.string,propTypesExports.number]),daysInHours:propTypesExports.bool,zeroPadTime:propTypesExports.number,zeroPadDays:propTypesExports.number,controlled:propTypesExports.bool,intervalDelay:propTypesExports.number,precision:propTypesExports.number,autoStart:propTypesExports.bool,overtime:propTypesExports.bool,className:propTypesExports.string,children:propTypesExports.element,renderer:propTypesExports.func,now:propTypesExports.func,onMount:propTypesExports.func,onStart:propTypesExports.func,onPause:propTypesExports.func,onStop:propTypesExports.func,onTick:propTypesExports.func,onComplete:propTypesExports.func};var matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,htmlEntities={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},unescapeHtmlEntity=function(i){return htmlEntities[i]},unescape$1=function(i){return i.replace(matchHtmlEntity,unescapeHtmlEntity)};function ownKeys$4(a,i){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);i&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,n)}return r}function _objectSpread$4(a){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$4(Object(r),!0).forEach(function(n){_defineProperty(a,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):ownKeys$4(Object(r)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(r,n))})}return a}var defaultOptions={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:unescape$1},i18nInstance,I18nContext=reactExports.createContext();function setDefaults(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};defaultOptions=_objectSpread$4(_objectSpread$4({},defaultOptions),a)}function getDefaults(){return defaultOptions}var ReportNamespaces=(function(){function a(){_classCallCheck$1(this,a),this.usedNamespaces={}}return _createClass$1(a,[{key:"addUsedNamespaces",value:function(r){var n=this;r.forEach(function(s){n.usedNamespaces[s]||(n.usedNamespaces[s]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),a})();function setI18n(a){i18nInstance=a}function getI18n(){return i18nInstance}var initReactI18next={type:"3rdParty",init:function(i){setDefaults(i.options.react),setI18n(i)}};function warn(){if(console&&console.warn){for(var a,i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];typeof r[0]=="string"&&(r[0]="react-i18next:: ".concat(r[0])),(a=console).warn.apply(a,r)}}var alreadyWarned={};function warnOnce(){for(var a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];typeof i[0]=="string"&&alreadyWarned[i[0]]||(typeof i[0]=="string"&&(alreadyWarned[i[0]]=new Date),warn.apply(void 0,i))}function loadNamespaces(a,i,r){a.loadNamespaces(i,function(){if(a.isInitialized)r();else{var n=function s(){setTimeout(function(){a.off("initialized",s)},0),r()};a.on("initialized",n)}})}function oldI18nextHasLoadedNamespace(a,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=i.languages[0],s=i.options?i.options.fallbackLng:!1,l=i.languages[i.languages.length-1];if(n.toLowerCase()==="cimode")return!0;var f=function(S,R){var N=i.services.backendConnector.state["".concat(S,"|").concat(R)];return N===-1||N===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!f(i.isLanguageChangingTo,a)?!1:!!(i.hasResourceBundle(n,a)||!i.services.backendConnector.backend||i.options.resources&&!i.options.partialBundledLanguages||f(n,a)&&(!s||f(l,a)))}function hasLoadedNamespace(a,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};
51if(!i.languages||!i.languages.length)return warnOnce("i18n.languages were undefined or empty",i.languages),!0;var n=i.options.ignoreJSONStructure!==void 0;return n?i.hasLoadedNamespace(a,{precheck:function(l,f){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&l.services.backendConnector.backend&&l.isLanguageChangingTo&&!f(l.isLanguageChangingTo,a))return!1}}):oldI18nextHasLoadedNamespace(a,i,r)}function ownKeys$3(a,i){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);i&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,n)}return r}function _objectSpread$3(a){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$3(Object(r),!0).forEach(function(n){_defineProperty(a,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):ownKeys$3(Object(r)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(r,n))})}return a}var usePrevious=function(i,r){var n=reactExports.useRef();return reactExports.useEffect(function(){n.current=i},[i,r]),n.current};function useTranslation(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=i.i18n,n=reactExports.useContext(I18nContext)||{},s=n.i18n,l=n.defaultNS,f=r||s||getI18n();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new ReportNamespaces),!f){warnOnce("You will need to pass in an i18next instance by using initReactI18next");var d=function(w){return Array.isArray(w)?w[w.length-1]:w},S=[d,{},!1];return S.t=d,S.i18n={},S.ready=!1,S}f.options.react&&f.options.react.wait!==void 0&&warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var R=_objectSpread$3(_objectSpread$3(_objectSpread$3({},getDefaults()),f.options.react),i),N=R.useSuspense,B=R.keyPrefix,A=a||l||f.options&&f.options.defaultNS;A=typeof A=="string"?[A]:A||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(A);var I=(f.isInitialized||f.initializedStoreOnce)&&A.every(function(T){return hasLoadedNamespace(T,f,R)});function _(){return f.getFixedT(null,R.nsMode==="fallback"?A:A[0],B)}var E=reactExports.useState(_),C=_slicedToArray(E,2),$=C[0],F=C[1],M=A.join(),g=usePrevious(M),h=reactExports.useRef(!0);reactExports.useEffect(function(){var T=R.bindI18n,w=R.bindI18nStore;h.current=!0,!I&&!N&&loadNamespaces(f,A,function(){h.current&&F(_)}),I&&g&&g!==M&&h.current&&F(_);function D(){h.current&&F(_)}return T&&f&&f.on(T,D),w&&f&&f.store.on(w,D),function(){h.current=!1,T&&f&&T.split(" ").forEach(function(z){return f.off(z,D)}),w&&f&&w.split(" ").forEach(function(z){return f.store.off(z,D)})}},[f,M]);var m=reactExports.useRef(!0);reactExports.useEffect(function(){h.current&&!m.current&&F(_),m.current=!1},[f,B]);var k=[$,f,I];if(k.t=$,k.i18n=f,k.ready=I,I||!I&&!N)return k;throw new Promise(function(T){loadNamespaces(f,A,function(){T()})})}var lib={},reactSwipe={},hasRequiredReactSwipe;function requireReactSwipe(){return hasRequiredReactSwipe||(hasRequiredReactSwipe=1,(function(a){(function(i,r){r(a,requireReact(),requirePropTypes())})(reactSwipe,function(i,r,n){Object.defineProperty(i,"__esModule",{value:!0}),i.setHasSupportToCaptureOption=_;var s=f(r),l=f(n);function f(F){return F&&F.__esModule?F:{default:F}}var d=Object.assign||function(F){for(var M=1;M<arguments.length;M++){var g=arguments[M];for(var h in g)Object.prototype.hasOwnProperty.call(g,h)&&(F[h]=g[h])}return F};function S(F,M){var g={};for(var h in F)M.indexOf(h)>=0||Object.prototype.hasOwnProperty.call(F,h)&&(g[h]=F[h]);return g}function R(F,M){if(!(F instanceof M))throw new TypeError("Cannot call a class as a function")}var N=(function(){function F(M,g){for(var h=0;h<g.length;h++){var m=g[h];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(M,m.key,m)}}return function(M,g,h){return g&&F(M.prototype,g),h&&F(M,h),M}})();function B(F,M){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:F}function A(F,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);F.prototype=Object.create(M&&M.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(F,M):F.__proto__=M)}var I=!1;function _(F){I=F}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){_(!0)}}))}catch{}function E(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return I?F:!1}function C(F){if("touches"in F){var M=F.touches[0],g=M.pageX,h=M.pageY;return{x:g,y:h}}var m=F.screenX,k=F.screenY;return{x:m,y:k}}var $=(function(F){A(M,F);function M(){var g;R(this,M);for(var h=arguments.length,m=Array(h),k=0;k<h;k++)m[k]=arguments[k];
51var T=B(this,(g=M.__proto__||Object.getPrototypeOf(M)).call.apply(g,[this].concat(m)));return T._handleSwipeStart=T._handleSwipeStart.bind(T),T._handleSwipeMove=T._handleSwipeMove.bind(T),T._handleSwipeEnd=T._handleSwipeEnd.bind(T),T._onMouseDown=T._onMouseDown.bind(T),T._onMouseMove=T._onMouseMove.bind(T),T._onMouseUp=T._onMouseUp.bind(T),T._setSwiperRef=T._setSwiperRef.bind(T),T}return N(M,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,E({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,E({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(h){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(h))}},{key:"_onMouseMove",value:function(h){this.mouseDown&&this._handleSwipeMove(h)}},{key:"_onMouseUp",value:function(h){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(h)}},{key:"_handleSwipeStart",value:function(h){var m=C(h),k=m.x,T=m.y;this.moveStart={x:k,y:T},this.props.onSwipeStart(h)}},{key:"_handleSwipeMove",value:function(h){if(this.moveStart){var m=C(h),k=m.x,T=m.y,w=k-this.moveStart.x,D=T-this.moveStart.y;this.moving=!0;var z=this.props.onSwipeMove({x:w,y:D},h);z&&h.cancelable&&h.preventDefault(),this.movePosition={deltaX:w,deltaY:D}}}},{key:"_handleSwipeEnd",value:function(h){this.props.onSwipeEnd(h);var m=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-m?this.props.onSwipeLeft(1,h):this.movePosition.deltaX>m&&this.props.onSwipeRight(1,h),this.movePosition.deltaY<-m?this.props.onSwipeUp(1,h):this.movePosition.deltaY>m&&this.props.onSwipeDown(1,h)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(h){this.swiper=h,this.props.innerRef(h)}},{key:"render",value:function(){var h=this.props;h.tagName;var m=h.className,k=h.style,T=h.children;h.allowMouseEvents,h.onSwipeUp,h.onSwipeDown,h.onSwipeLeft,h.onSwipeRight,h.onSwipeStart,h.onSwipeMove,h.onSwipeEnd,h.innerRef,h.tolerance;var w=S(h,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return s.default.createElement(this.props.tagName,d({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:m,style:k},w),T)}}]),M})(r.Component);$.displayName="ReactSwipe",$.propTypes={tagName:l.default.string,className:l.default.string,style:l.default.object,children:l.default.node,allowMouseEvents:l.default.bool,onSwipeUp:l.default.func,onSwipeDown:l.default.func,onSwipeLeft:l.default.func,onSwipeRight:l.default.func,onSwipeStart:l.default.func,onSwipeMove:l.default.func,onSwipeEnd:l.default.func,innerRef:l.default.func,tolerance:l.default.number.isRequired},$.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},i.default=$})})(reactSwipe)),reactSwipe}var hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,(function(a){(function(i,r){r(a,requireReactSwipe())})(lib,function(i,r){Object.defineProperty(i,"__esModule",{value:!0});var n=s(r);function s(l){return l&&l.__esModule?l:{default:l}}i.default=n.default})})(lib)),lib}var __spreadArray=function(a,i,r){if(r||arguments.length===2)for(var n=0,s=i.length,l;n<s;n++)(l||!(n in i))&&(l||(l=Array.prototype.slice.call(i,0,n)),l[n]=i[n]);return a.concat(l||Array.prototype.slice.call(i))},clipboardEvents=["onCopy","onCut","onPaste"],compositionEvents=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],focusEvents=["onFocus","onBlur"],formEvents=["onInput","onInvalid","onReset","onSubmit"],imageEvents=["onLoad","onError"],keyboardEvents=["onKeyDown","onKeyPress","onKeyUp"],mediaEvents=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],mou
51seEvents=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],dragEvents=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],selectionEvents=["onSelect"],touchEvents=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],pointerEvents=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],uiEvents=["onScroll"],wheelEvents=["onWheel"],animationEvents=["onAnimationStart","onAnimationEnd","onAnimationIteration"],transitionEvents=["onTransitionEnd"],otherEvents=["onToggle"],changeEvents=["onChange"],allEvents=__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],clipboardEvents,!0),compositionEvents,!0),focusEvents,!0),formEvents,!0),imageEvents,!0),keyboardEvents,!0),mediaEvents,!0),mouseEvents,!0),dragEvents,!0),selectionEvents,!0),touchEvents,!0),pointerEvents,!0),uiEvents,!0),wheelEvents,!0),animationEvents,!0),transitionEvents,!0),changeEvents,!0),otherEvents,!0);function makeEventProps(a,i){var r={};return allEvents.forEach(function(n){var s=a[n];s&&(i?r[n]=(function(l){return s(l,i(n))}):r[n]=s)}),r}function makeCancellablePromise(a){var i=!1,r=new Promise(function(n,s){a.then(function(l){return!i&&n(l)}).catch(function(l){return!i&&s(l)})});return{promise:r,cancel:function(){i=!0}}}function mergeRefs(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var r=a.filter(Boolean);if(r.length<=1){var n=r[0];return n||null}return function(l){r.forEach(function(f){typeof f=="function"?f(l):f&&(f.current=l)})}}var changedArray=function(a,i){return a===void 0&&(a=[]),i===void 0&&(i=[]),a.length!==i.length||a.some(function(r,n){return!Object.is(r,i[n])})},initialState={error:null},ErrorBoundary=(function(a){_inheritsLoose$2(i,a);function i(){for(var n,s=arguments.length,l=new Array(s),f=0;f<s;f++)l[f]=arguments[f];return n=a.call.apply(a,[this].concat(l))||this,n.state=initialState,n.updatedWithError=!1,n.resetErrorBoundary=function(){for(var d,S=arguments.length,R=new Array(S),N=0;N<S;N++)R[N]=arguments[N];n.props.onReset==null||(d=n.props).onReset.apply(d,R),n.reset()},n}i.getDerivedStateFromError=function(s){return{error:s}};var r=i.prototype;return r.reset=function(){this.updatedWithError=!1,this.setState(initialState)},r.componentDidCatch=function(s,l){var f,d;(f=(d=this.props).onError)==null||f.call(d,s,l)},r.componentDidUpdate=function(s){var l=this.state.error,f=this.props.resetKeys;if(l!==null&&!this.updatedWithError){this.updatedWithError=!0;return}if(l!==null&&changedArray(s.resetKeys,f)){var d,S;(d=(S=this.props).onResetKeysChange)==null||d.call(S,s.resetKeys,f),this.reset()}},r.render=function(){var s=this.state.error,l=this.props,f=l.fallbackRender,d=l.FallbackComponent,S=l.fallback;if(s!==null){var R={error:s,resetErrorBoundary:this.resetErrorBoundary};if(reactExports.isValidElement(S))return S;if(typeof f=="function")return f(R);if(d)return reactExports.createElement(d,R);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},i})(reactExports.Component),pdf$1={exports:{}},pdf=pdf$1.exports,hasRequiredPdf;function requirePdf(){return hasRequiredPdf||(hasRequiredPdf=1,(function(module,exports){(function(i,r){module.exports=r()})(pdf,function(){return(()=>{var __webpack_modules__=[,((a,i,r)=>{function n(Q){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(P){return typeof P}:n=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},n(Q)}Object.defineProperty(i,"__esModule",{value:!0}),i.StatTimer=i.RenderingCancelledException=i.PixelsPerInch=i.PageViewport=i.PDFDateString=i.LinkTarget=i.DOMStandardFontDataFactory=i.DOMSVGFactory=i.DOMCanvasFactory=i.DOMCMapReaderFactory=void 0,i.addLinkAttributes=Y,i.deprecated=xe,i.getFilenameFromUrl=x,i.getPdfFilenameFromUrl=H,i.getXfaPageViewport=se,i.isDataScheme=U,i.isPdfFile=p,i.isValidFetchUrl=ae,i.loadScript=ie;var s=d(r(2)),l=r(4),f=r(135);function d(Q){return Q&&Q.__esModule?Q:{default:Q}}function S(Q,L){var P=typeof Symbol<"u"&&Q[Symbol.iterator]||Q["@@iterator"];if(!P){if(Array.isArray(Q)||(P=R(Q))||L){P&&(Q=P);var V=0,ee=function(){};return{s:ee,n:function(){return V>=Q.length?{done:!0}:{done:!1,value:Q[V++]}},e:function(Me){throw Me},f:ee}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
52In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var oe=!0,pe=!1,Te;return{s:function(){P=P.call(Q)},n:function(){var Me=P.next();return oe=Me.done,Me},e:function(Me){pe=!0,Te=Me},f:function(){try{!oe&&P.return!=null&&P.return()}finally{if(pe)throw Te}}}}function R(Q,L){if(Q){if(typeof Q=="string")return N(Q,L);var P=Object.prototype.toString.call(Q).slice(8,-1);if(P==="Object"&&Q.constructor&&(P=Q.constructor.name),P==="Map"||P==="Set")return Array.from(Q);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return N(Q,L)}}function N(Q,L){(L==null||L>Q.length)&&(L=Q.length);for(var P=0,V=new Array(L);P<L;P++)V[P]=Q[P];return V}function B(Q,L,P,V,ee,oe,pe){try{var Te=Q[oe](pe),Oe=Te.value}catch(Me){P(Me);return}Te.done?L(Oe):Promise.resolve(Oe).then(V,ee)}function A(Q){return function(){var L=this,P=arguments;return new Promise(function(V,ee){var oe=Q.apply(L,P);function pe(Oe){B(oe,V,ee,pe,Te,"next",Oe)}function Te(Oe){B(oe,V,ee,pe,Te,"throw",Oe)}pe(void 0)})}}function I(Q,L){if(!(Q instanceof L))throw new TypeError("Cannot call a class as a function")}function _(Q,L){for(var P=0;P<L.length;P++){var V=L[P];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(Q,V.key,V
52)}}function E(Q,L,P){return L&&_(Q.prototype,L),P&&_(Q,P),Q}function C(Q,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");Q.prototype=Object.create(L&&L.prototype,{constructor:{value:Q,writable:!0,configurable:!0}}),L&&$(Q,L)}function $(Q,L){return $=Object.setPrototypeOf||function(V,ee){return V.__proto__=ee,V},$(Q,L)}function F(Q){var L=h();return function(){var V=m(Q),ee;if(L){var oe=m(this).constructor;ee=Reflect.construct(V,arguments,oe)}else ee=V.apply(this,arguments);return M(this,ee)}}function M(Q,L){if(L&&(n(L)==="object"||typeof L=="function"))return L;if(L!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g(Q)}function g(Q){if(Q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}function h(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function m(Q){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},m(Q)}var k="noopener noreferrer nofollow",T="http://www.w3.org/2000/svg",w={CSS:96,PDF:72,get PDF_TO_CSS_UNITS(){return(0,l.shadow)(this,"PDF_TO_CSS_UNITS",this.CSS/this.PDF)}};i.PixelsPerInch=w;var D=(function(Q){C(P,Q);var L=F(P);function P(){var V,ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=ee.ownerDocument,pe=oe===void 0?globalThis.document:oe;return I(this,P),V=L.call(this),V._document=pe,V}return E(P,[{key:"_createCanvas",value:function(ee,oe){var pe=this._document.createElement("canvas");return pe.width=ee,pe.height=oe,pe}}]),P})(f.BaseCanvasFactory);i.DOMCanvasFactory=D;function z(Q){return J.apply(this,arguments)}function J(){return J=A(s.default.mark(function Q(L){var P,V,ee=arguments;return s.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(P=ee.length>1&&ee[1]!==void 0?ee[1]:!1,!ae(L,document.baseURI)){pe.next=21;break}return pe.next=4,fetch(L);case 4:if(V=pe.sent,V.ok){pe.next=7;break}throw new Error(V.statusText);case 7:if(!P){pe.next=15;break}return pe.t1=Uint8Array,pe.next=11,V.arrayBuffer();case 11:pe.t2=pe.sent,pe.t0=new pe.t1(pe.t2),pe.next=20;break;case 15:return pe.t3=l.stringToBytes,pe.next=18,V.text();case 18:pe.t4=pe.sent,pe.t0=(0,pe.t3)(pe.t4);case 20:return pe.abrupt("return",pe.t0);case 21:return pe.abrupt("return",new Promise(function(Te,Oe){var Me=new XMLHttpRequest;Me.open("GET",L,!0),P&&(Me.responseType="arraybuffer"),Me.onreadystatechange=function(){if(Me.readyState===XMLHttpRequest.DONE){if(Me.status===200||Me.status===0){var Fe;if(P&&Me.response?Fe=new Uint8Array(Me.response):!P&&Me.responseText&&(Fe=(0,l.stringToBytes)(Me.responseText)),Fe){Te(Fe);return}}Oe(new Error(Me.statusText))}},Me.send(null)}));case 22:case"end":return pe.stop()}},Q)})),J.apply(this,arguments)}var K=(function(Q){C(P,Q);var L=F(P);function P(){return I(this,P),L.apply(this,arguments)}return E(P,[{key:"_fetchData",value:function(ee,oe){return z(ee,this.isCompressed).then(function(pe){return{cMapData:pe,compressionType:oe}})}}]),P})(f.BaseCMapReaderFactory);i.DOMCMapReaderFactory=K;var te=(function(Q){C(P,Q);var L=F(P);function P(){return I(this,P),L.apply(this,arguments)}return E(P,[{key:"_fetchData",value:function(ee){return z(ee,!0)}}]),P})(f.BaseStandardFontDataFactory);i.DOMStandardFontDataFactory=te;var le=(function(Q){C(P,Q);var L=F(P);function P(){return I(this,P),L.apply(this,arguments)}return E(P,[{key:"_createSVG",value:function(ee){return document.createElementNS(T,ee)}}]),P})(f.BaseSVGFactory);i.DOMSVGFactory=le;var fe=(function(){function Q(L){var P=L.viewBox,V=L.scale,ee=L.rotation,oe=L.offsetX,pe=oe===void 0?0:oe,Te=L.offsetY,Oe=Te===void 0?0:Te,Me=L.dontFlip,Fe=Me===void 0?!1:Me;I(this,Q),this.viewBox=P,this.scale=V,this.rotation=ee,this.offsetX=pe,this.offsetY=Oe;var ze=(P[2]+P[0])/2,Ye=(P[3]+P[1])/2,Je,nt,tt,ct;switch(ee%=360,ee<0&&(ee+=360),ee){case 180:Je=-1,nt=0,tt=0,ct=1;break;case 90:Je=0,nt=1,tt=1,ct=0;break;case 270:Je=0,nt=-1,tt=-1,ct=0;break;case 0:Je=1,nt=0,tt=0,ct=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}Fe&&(tt=-tt,ct=-ct);var lt,Ee,Re,Z;Je===0?(lt=Math.abs(Ye-P[1])*V+pe,Ee=Math.abs(ze-P[0])*V+Oe,Re=Math.abs(P[3]-P[1])*V,Z=Math.abs(P[2]-P[0])*V):(lt=Math.abs(ze-P[0])*V+pe,Ee=Math.abs(Ye-P[1])*V+Oe,Re=Math.abs(P[2]-P[0])*V,Z=Math.abs(P[3]-P[1])*V),this.transform=[Je*V,nt*V,tt*V,ct*V,lt-Je*V*ze-tt*V*Ye,Ee-nt*V*ze-ct*V*Ye],this.width=Re,this.height=Z}return E(Q,[{key:"clone",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=P.scale,ee=V===void 0?this.scale:V,oe=P.rotation,pe=oe===void 0?this.rotation:oe,Te=P.offsetX,Oe=Te===void 0?this.offsetX:Te,Me=P.offsetY,Fe=Me===void 0?this.offsetY:Me,ze=P.dontFlip,Ye=ze===void 0?!1:ze;return new Q({viewBox:this.viewBox.slice(),scale:ee,rotation:pe,offsetX:Oe,offsetY:Fe,dontFlip:Ye})}},{key:"convertToViewportPoint",value:function(P,V){return l.Util.applyTransform([P,V],this.transform)}},{key:"convertToViewportRectangle",value:function(P){var V=l.Util.applyTransform([P[0],P[1]],this.transform),ee=l.Util.applyTransform([P[2],P[3]],this.transform);return[V[0],V[1],ee[0],ee[1]]}},{key:"convertToPdfPoint",value:function(P,V){return l.Util.applyInverseTransform([P,V],this.transform)}}]),Q})();i.PageViewport=fe;var ve=(function(Q){C(P,Q);var L=F(P);function P(V,ee){var oe;return I(this,P),oe=L.call(this,V,"RenderingCancelledException"),oe.type=ee,oe}return P})(l.BaseException);i.RenderingCancelledException=ve;var q={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};i.LinkTarget=q;function Y(Q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=L.url,V=L.target,ee=L.rel,oe=L.enabled,pe=oe===void 0?!0:oe;(0,l.assert)(P&&typeof P=="string",'addLinkAttributes: A valid "url" parameter must provided.');var Te=(0,l.removeNullCharacters)(P);pe?Q.href=Q.title=Te:(Q.href="",Q.title="Disabled: ".concat(Te),Q.onclick=function(){return!1});var Oe="";switch(V){case q.NONE:break;case q.SELF:Oe="_self";break;case q.BLANK:Oe="_blank";break;case q.PARENT:Oe="_parent";break;case q.TOP:Oe="_top";break}Q.target=Oe,Q.rel=typeof ee=="string"?ee:k}function U(Q){for(var L=Q.length,P=0;P<L&&Q[P].trim()==="";)P++;return Q.substring(P,P+5).toLowerCase()==="data:"}function p(Q){return typeof Q=="string"&&/\.pdf$/i.test(Q)}function x(Q){var L=Q.indexOf("#"),P=Q.indexOf("?"),V=Math.min(L>0?L:Q.length,P>0?P:Q.length);return Q.substring(Q.lastIndexOf("/",V)+1,V)}function H(Q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"document.pdf";if(typeof Q!="string")return L;if(U(Q))return(0,l.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),L;var P=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,V=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,ee=P.exec(Q),oe=V.exec(ee[1])||V.exec(ee[2])||V.exec(ee[3]);if(oe&&(oe=oe[0],oe.includes("%")))try{oe=V.exec(decodeURIComponent(oe))[0]}catch{}return oe||L}var ne=(function(){function Q(){I(this,Q),this.started=Object.create(null),this.times=[]}return E(Q,[{key:"time",value:function(P){P in this.started&&(0,l.warn)("Timer is already running for ".concat(P)),this.started[P]=Date.now()}},{key:"timeEnd",value:function(P){P in this.started||(0,l.warn)("Timer has not been started for ".concat(P)),this.times.push({name:P,start:this.started[P],end:Date.now()}),delete this.started[P]}},{key:"toString",value:function(){var P=[],V=0,ee=S(this.times),oe;try{for(ee.s();!(oe=ee.n()).done;){var pe=oe.value,Te=pe.name;Te.length>V&&(V=Te.length)}}catch(Ye){ee.e(Ye)}finally{ee.f()}var Oe=S(this.times),Me;try{for(Oe.s();!(Me=Oe.n()).done;){var Fe=Me.value,ze=Fe.end-Fe.start;
52P.push("".concat(Fe.name.padEnd(V)," ").concat(ze,`ms
53`))}}catch(Ye){Oe.e(Ye)}finally{Oe.f()}return P.join("")}}]),Q})();i.StatTimer=ne;function ae(Q,L){try{var P=L?new URL(Q,L):new URL(Q),V=P.protocol;return V==="http:"||V==="https:"}catch{return!1}}function ie(Q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return new Promise(function(P,V){var ee=document.createElement("script");ee.src=Q,ee.onload=function(oe){L&&ee.remove(),P(oe)},ee.onerror=function(){V(new Error("Cannot load script at: ".concat(ee.src)))},(document.head||document.documentElement).appendChild(ee)})}function xe(Q){console.log("Deprecated API usage: "+Q)}var Ue,qe=(function(){function Q(){I(this,Q)}return E(Q,null,[{key:"toDateObject",value:function(P){if(!P||!(0,l.isString)(P))return null;Ue||(Ue=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var V=Ue.exec(P);if(!V)return null;var ee=parseInt(V[1],10),oe=parseInt(V[2],10);oe=oe>=1&&oe<=12?oe-1:0;var pe=parseInt(V[3],10);pe=pe>=1&&pe<=31?pe:1;var Te=parseInt(V[4],10);Te=Te>=0&&Te<=23?Te:0;var Oe=parseInt(V[5],10);Oe=Oe>=0&&Oe<=59?Oe:0;var Me=parseInt(V[6],10);Me=Me>=0&&Me<=59?Me:0;var Fe=V[7]||"Z",ze=parseInt(V[8],10);ze=ze>=0&&ze<=23?ze:0;var Ye=parseInt(V[9],10)||0;return Ye=Ye>=0&&Ye<=59?Ye:0,Fe==="-"?(Te+=ze,Oe+=Ye):Fe==="+"&&(Te-=ze,Oe-=Ye),new Date(Date.UTC(ee,oe,pe,Te,Oe,Me))}}]),Q})();i.PDFDateString=qe;function se(Q,L){var P=L.scale,V=P===void 0?1:P,ee=L.rotation,oe=ee===void 0?0:ee,pe=Q.attributes.style,Te=pe.width,Oe=pe.height,Me=[0,0,parseInt(Te),parseInt(Oe)];return new fe({viewBox:Me,scale:V,rotation:oe})}}),((a,i,r)=>{a.exports=r(3)}),((a,i,r)=>{a=r.nmd(a);function n(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(d){return typeof d}:n=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},n(l)}var s=(function(l){var f=Object.prototype,d=f.hasOwnProperty,S,R=typeof Symbol=="function"?Symbol:{},N=R.iterator||"@@iterator",B=R.asyncIterator||"@@asyncIterator",A=R.toStringTag||"@@toStringTag";function I(p,x,H){return Object.defineProperty(p,x,{value:H,enumerable:!0,configurable:!0,writable:!0}),p[x]}try{I({},"")}catch{I=function(H,ne,ae){return H[ne]=ae}}function _(p,x,H,ne){var ae=x&&x.prototype instanceof h?x:h,ie=Object.create(ae.prototype),xe=new q(ne||[]);return ie._invoke=te(p,H,xe),ie}l.wrap=_;function E(p,x,H){try{return{type:"normal",arg:p.call(x,H)}}catch(ne){return{type:"throw",arg:ne}}}var C="suspendedStart",$="suspendedYield",F="executing",M="completed",g={};function h(){}function m(){}function k(){}var T={};I(T,N,function(){return this});var w=Object.getPrototypeOf,D=w&&w(w(Y([])));D&&D!==f&&d.call(D,N)&&(T=D);var z=k.prototype=h.prototype=Object.create(T);m.prototype=k,I(z,"constructor",k),I(k,"constructor",m),m.displayName=I(k,A,"GeneratorFunction");function J(p){["next","throw","return"].forEach(function(x){I(p,x,function(H){return this._invoke(x,H)})})}l.isGeneratorFunction=function(p){var x=typeof p=="function"&&p.constructor;return x?x===m||(x.displayName||x.name)==="GeneratorFunction":!1},l.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,k):(p.__proto__=k,I(p,A,"GeneratorFunction")),p.prototype=Object.create(z),p},l.awrap=function(p){return{__await:p}};function K(p,x){function H(ie,xe,Ue,qe){var se=E(p[ie],p,xe);if(se.type==="throw")qe(se.arg);else{var Q=se.arg,L=Q.value;return L&&n(L)==="object"&&d.call(L,"__await")?x.resolve(L.__await).then(function(P){H("next",P,Ue,qe)},function(P){H("throw",P,Ue,qe)}):x.resolve(L).then(function(P){Q.value=P,Ue(Q)},function(P){return H("throw",P,Ue,qe)})}}var ne;function ae(ie,xe){function Ue(){return new x(function(qe,se){H(ie,xe,qe,se)})}return ne=ne?ne.then(Ue,Ue):Ue()}this._invoke=ae}J(K.prototype),I(K.prototype,B,function(){return this}),l.AsyncIterator=K,l.async=function(p,x,H,ne,ae){ae===void 0&&(ae=Promise);var ie=new K(_(p,x,H,ne),ae);return l.isGeneratorFunction(x)?ie:ie.next().then(function(xe){return xe.done?xe.value:ie.next()})};function te(p,x,H){var ne=C;return function(ie,xe){if(ne===F)throw new Error("Generator is already running");
53if(ne===M){if(ie==="throw")throw xe;return U()}for(H.method=ie,H.arg=xe;;){var Ue=H.delegate;if(Ue){var qe=le(Ue,H);if(qe){if(qe===g)continue;return qe}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(ne===C)throw ne=M,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);ne=F;var se=E(p,x,H);if(se.type==="normal"){if(ne=H.done?M:$,se.arg===g)continue;return{value:se.arg,done:H.done}}else se.type==="throw"&&(ne=M,H.method="throw",H.arg=se.arg)}}}function le(p,x){var H=p.iterator[x.method];if(H===S){if(x.delegate=null,x.method==="throw"){if(p.iterator.return&&(x.method="return",x.arg=S,le(p,x),x.method==="throw"))return g;x.method="throw",x.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var ne=E(H,p.iterator,x.arg);if(ne.type==="throw")return x.method="throw",x.arg=ne.arg,x.delegate=null,g;var ae=ne.arg;if(!ae)return x.method="throw",x.arg=new TypeError("iterator result is not an object"),x.delegate=null,g;if(ae.done)x[p.resultName]=ae.value,x.next=p.nextLoc,x.method!=="return"&&(x.method="next",x.arg=S);else return ae;return x.delegate=null,g}J(z),I(z,A,"Generator"),I(z,N,function(){return this}),I(z,"toString",function(){return"[object Generator]"});function fe(p){var x={tryLoc:p[0]};1 in p&&(x.catchLoc=p[1]),2 in p&&(x.finallyLoc=p[2],x.afterLoc=p[3]),this.tryEntries.push(x)}function ve(p){var x=p.completion||{};x.type="normal",delete x.arg,p.completion=x}function q(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(fe,this),this.reset(!0)}l.keys=function(p){var x=[];for(var H in p)x.push(H);return x.reverse(),function ne(){for(;x.length;){var ae=x.pop();if(ae in p)return ne.value=ae,ne.done=!1,ne}return ne.done=!0,ne}};function Y(p){if(p){var x=p[N];if(x)return x.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var H=-1,ne=function ae(){for(;++H<p.length;)if(d.call(p,H))return ae.value=p[H],ae.done=!1,ae;return ae.value=S,ae.done=!0,ae};return ne.next=ne}}return{next:U}}l.values=Y;function U(){return{value:S,done:!0}}return q.prototype={constructor:q,reset:function(x){if(this.prev=0,this.next=0,this.sent=this._sent=S,this.done=!1,this.delegate=null,this.method="next",this.arg=S,this.tryEntries.forEach(ve),!x)for(var H in this)H.charAt(0)==="t"&&d.call(this,H)&&!isNaN(+H.slice(1))&&(this[H]=S)},stop:function(){this.done=!0;var x=this.tryEntries[0],H=x.completion;if(H.type==="throw")throw H.arg;return this.rval},dispatchException:function(x){if(this.done)throw x;var H=this;function ne(se,Q){return xe.type="throw",xe.arg=x,H.next=se,Q&&(H.method="next",H.arg=S),!!Q}for(var ae=this.tryEntries.length-1;ae>=0;--ae){var ie=this.tryEntries[ae],xe=ie.completion;if(ie.tryLoc==="root")return ne("end");if(ie.tryLoc<=this.prev){var Ue=d.call(ie,"catchLoc"),qe=d.call(ie,"finallyLoc");if(Ue&&qe){if(this.prev<ie.catchLoc)return ne(ie.catchLoc,!0);if(this.prev<ie.finallyLoc)return ne(ie.finallyLoc)}else if(Ue){if(this.prev<ie.catchLoc)return ne(ie.catchLoc,!0)}else if(qe){if(this.prev<ie.finallyLoc)return ne(ie.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(x,H){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var ae=this.tryEntries[ne];if(ae.tryLoc<=this.prev&&d.call(ae,"finallyLoc")&&this.prev<ae.finallyLoc){var ie=ae;break}}ie&&(x==="break"||x==="continue")&&ie.tryLoc<=H&&H<=ie.finallyLoc&&(ie=null);var xe=ie?ie.completion:{};return xe.type=x,xe.arg=H,ie?(this.method="next",this.next=ie.finallyLoc,g):this.complete(xe)},complete:function(x,H){if(x.type==="throw")throw x.arg;return x.type==="break"||x.type==="continue"?this.next=x.arg:x.type==="return"?(this.rval=this.arg=x.arg,this.method="return",this.next="end"):x.type==="normal"&&H&&(this.next=H),g},finish:function(x){for(var H=this.tryEntries.length-1;H>=0;--H){var ne=this.tryEntries[H];if(ne.finallyLoc===x)return this.complete(ne.completion,ne.afterLoc),ve(ne),g}},catch:function(x){for(var H=this.tryEntries.length-1;H>=0;--H){var ne=this.tryEntries[H];if(ne.tryLoc===x){var ae=ne.completion;if(ae.type==="throw"){var ie=ae.arg;ve(ne)}return ie}}throw new Error("illegal catch attempt")},delegateYield:function(x,H,ne){return this.delegate={iterator:Y(x),resultName:H,nextLoc:ne},this.method==="next"&&(this.arg=S),g}},l})(n(a)==="object"?a.exports:{});try{regeneratorRuntime=s}catch{(typeof globalThis>"u"?"undefined":n(globalThis))==="object"?globalThis.regeneratorRuntime=s:Function("r","regeneratorRuntime = r")(s)}}),((a,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.VerbosityLevel=i.Util=i.UnknownErrorException=i.UnexpectedResponseException=i.UNSUPPORTED_FEATURES=i.TextRenderingMode=i.StreamType=i.Ren
vendor: 6,889 bytes, lines 53-56
53deringIntentFlag=i.PermissionFlag=i.PasswordResponses=i.PasswordException=i.PageActionEventType=i.OPS=i.MissingPDFException=i.IsLittleEndianCached=i.IsEvalSupportedCached=i.InvalidPDFException=i.ImageKind=i.IDENTITY_MATRIX=i.FormatError=i.FontType=i.FONT_IDENTITY_MATRIX=i.DocumentActionEventType=i.CMapCompressionType=i.BaseException=i.AnnotationType=i.AnnotationStateModelType=i.AnnotationReviewState=i.AnnotationReplyType=i.AnnotationMode=i.AnnotationMarkedState=i.AnnotationFlag=i.AnnotationFieldFlag=i.AnnotationBorderStyleType=i.AnnotationActionEventType=i.AbortException=void 0,i.arrayByteLength=G,i.arraysToBytes=ce,i.assert=Me,i.bytesToString=de,i.createObjectURL=br,i.createPromiseCapability=Fr,i.createValidAbsoluteUrl=Ye,i.escapeString=xt,i.getModificationDate=Tr,i.getVerbosityLevel=oe,i.info=pe,i.isArrayBuffer=en,i.isArrayEqual=sn,i.isAscii=Et,i.isBool=gr,i.isNum=Jr,i.isSameOrigin=Fe,i.isString=Zr,i.objectFromMap=De,i.objectSize=Ce,i.removeNullCharacters=me,i.setVerbosityLevel=ee,i.shadow=Je,i.string32=we,i.stringToBytes=W,i.stringToPDFString=mt,i.stringToUTF16BEString=Bt,i.stringToUTF8String=er,i.unreachable=Oe,i.utf8StringToString=Kt,i.warn=Te,r(5);function n(Pe,Ke){for(var Ae=0;Ae<Ke.length;Ae++){var je=Ke[Ae];je.enumerable=je.enumerable||!1,je.configurable=!0,"value"in je&&(je.writable=!0),Object.defineProperty(Pe,je.key,je)}}function s(Pe,Ke,Ae){return Ae&&n(Pe,Ae),Pe}function l(Pe){return S(Pe)||d(Pe)||_(Pe)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
54In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(Pe){if(typeof Symbol<"u"&&Pe[Symbol.iterator]!=null||Pe["@@iterator"]!=null)return Array.from(Pe)}function S(Pe){if(Array.isArray(Pe))return E(Pe)}function R(Pe,Ke){return A(Pe)||B(Pe,Ke)||_(Pe,Ke)||N()}function N(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
55In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B(Pe,Ke){var Ae=Pe==null?null:typeof Symbol<"u"&&Pe[Symbol.iterator]||Pe["@@iterator"];if(Ae!=null){var je=[],dt=!0,ht=!1,Pt,gt;try{for(Ae=Ae.call(Pe);!(dt=(Pt=Ae.next()).done)&&(je.push(Pt.value),!(Ke&&je.length===Ke));dt=!0);}catch($t){ht=!0,gt=$t}finally{try{!dt&&Ae.return!=null&&Ae.return()}finally{if(ht)throw gt}}return je}}function A(Pe){if(Array.isArray(Pe))return Pe}function I(Pe,Ke){var Ae=typeof Symbol<"u"&&Pe[Symbol.iterator]||Pe["@@iterator"];if(!Ae){if(Array.isArray(Pe)||(Ae=_(Pe))||Ke){Ae&&(Pe=Ae);var je=0,dt=function(){};return{s:dt,n:function(){return je>=Pe.length?{done:!0}:{done:!1,value:Pe[je++]}},e:function(Wt){throw Wt},f:dt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
56In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ht=!0,Pt=!1,gt;return{s:function(){Ae=Ae.call(Pe)},n:function(){var Wt=Ae.next();return ht=Wt.done,Wt},e:function(Wt){Pt=!0,gt=Wt},f:function(){try{!ht&&Ae.return!=null&&Ae.return()}finally{if(Pt)throw gt}}}}function _(Pe,Ke){if(Pe){if(typeof Pe=="string")return E(Pe,Ke);var Ae=Object.prototype.toString.call(Pe).slice(8,-1);if(Ae==="Object"&&Pe.constructor&&(Ae=Pe.constructor.name),Ae==="Map"||Ae==="Set")return Array.from(Pe);if(Ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ae))return E(Pe,Ke)}}function E(Pe,Ke){(Ke==null||Ke>Pe.length)&&(Ke=Pe.length);for(var Ae=0,je=new Array(Ke);Ae<Ke;Ae++)je[Ae]=Pe[Ae];return je}function C(Pe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(Ae){return typeof Ae}:C=function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},C(Pe)}function $(Pe,Ke){if(!(Pe instanceof Ke))throw new TypeError("Cannot call a class as a function")}function F(Pe,Ke){if(typeof Ke!="function"&&Ke!==null)throw new TypeError("Super expression must either be null or a function");Pe.prototype=Object.create(Ke&&Ke.prototype,{constructor:{value:Pe,writable:!0,configurable:!0}}),Ke&&M(Pe,Ke)}function M(Pe,Ke){return M=Object.setPrototypeOf||function(je,dt){return je.__proto__=dt,je},M(Pe,Ke)}function g(Pe){var Ke=k();return function(){var je=T(Pe),dt;if(Ke){var ht=T(this).constructor;dt=Reflect.construct(je,arguments,ht)}else dt=je.apply(this,arguments);return h(this,dt)}}function h(Pe,Ke){if(Ke&&(C(Ke)==="object"||typeof Ke=="function"))return Ke;if(Ke!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m(Pe)}function m(Pe){if(Pe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Pe}function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function T(Pe){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(Ae){return Ae.__proto__||Object.getPrototypeOf(Ae)},T(Pe)}var w=[1,0,0,1,0,0];i.IDENTITY_MATRIX=w;var D=[.001,0,0,.001,0,0];i.FONT_IDENTITY_MATRIX=D;var z={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};i.RenderingIntentFlag=z;var J={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};i.AnnotationMode=J;var K={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};i.PermissionFlag=K;var te={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};i.TextRenderingMode=te;var le={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};i.ImageKind=le;var fe={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};i.AnnotationType=fe;var ve={MARKED:"Marked",REVIEW:"Review"};i.AnnotationStateModelType=ve;var q={MARKED:"Marked",UNMARKED:"Unmarked"};i.AnnotationMarkedState=q;var Y={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};i.AnnotationReviewState=Y;var U={GROUP:"Group",REPLY:"R"};i.AnnotationReplyType=U;var p={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};i.AnnotationFlag=p;var x={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};i.AnnotationFieldFlag=x;
56var H={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};i.AnnotationBorderStyleType=H;var ne={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"};i.AnnotationActionEventType=ne;var ae={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};i.DocumentActionEventType=ae;var ie={O:"PageOpen",C:"PageClose"};i.PageActionEventType=ie;var xe={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};i.StreamType=xe;var Ue={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};i.FontType=Ue;var qe={ERRORS:0,WARNINGS:1,INFOS:5};i.VerbosityLevel=qe;var se={NONE:0,BINARY:1,STREAM:2};i.CMapCompressionType=se;var Q={depen
56dency: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};i.OPS=Q;var L={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",errorContentSubStream:"errorContentSubStream"};i.UNSUPPORTED_FEATURES=L;var P={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};i.PasswordResponses=P;var V=qe.WARNINGS;function ee(Pe){Number.isInteger(Pe)&&(V=Pe)}function oe(){return V}function pe(Pe){V>=qe.INFOS&&console.log("Info: ".concat(Pe))}function Te(Pe){V>=qe.WARNINGS&&console.log("Warning: ".concat(Pe))}function Oe(Pe){throw new Error(Pe)}function Me(Pe,Ke){Pe||Oe(Ke)}function Fe(Pe,Ke){var Ae;try{if(Ae=new URL(Pe),!Ae.origin||Ae.origin==="null")return!1}catch{return!1}var je=new URL(Ke,Ae);return Ae.origin===je.origin}function ze(Pe){if(!Pe)return!1;switch(Pe.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Ye(Pe){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Pe)return null;try{if(Ae&&typeof Pe=="string"){if(Ae.addDefaultProtocol&&Pe.startsWith("www.")){var je=Pe.match(/\./g);je&&je.length>=2&&(Pe="http://".concat(Pe))}if(Ae.tryConvertEncoding)try{Pe=er(Pe)}catch{}}var dt=Ke?new URL(Pe,Ke):new URL(Pe);if(ze(dt))return dt}catch{}return null}function Je(Pe,Ke,Ae){return Object.defineProperty(Pe,Ke,{value:Ae,enumerable:!0,configurable:!0,writable:!1}),Ae}var nt=(function(){function Ke(Ae,je){this.constructor===Ke&&Oe("Cannot initialize BaseException."),this.message=Ae,this.name=je}return Ke.prototype=new Error,Ke.constructor=Ke,Ke})();i.BaseException=nt;var tt=(function(Pe){F(Ae,Pe);var Ke=g(Ae);function Ae(je,dt){var ht;return $(this,Ae),ht=Ke.call(this,je,"PasswordException"),ht.code=dt,ht}return Ae})(nt);i.PasswordException=tt;var ct=(function(Pe){F(Ae,Pe);var Ke=g(Ae);function Ae(je,dt){var ht;return $(this,Ae),ht=Ke.call(this,je,"UnknownErrorException"),ht.details=dt,ht}return Ae})(nt);i.UnknownErrorException=ct;var lt=(function(Pe){F(Ae,Pe);var Ke=g(Ae);function Ae(je){return $(this,Ae),Ke.call(this,je,"InvalidPDFException")}return Ae})(nt);i.InvalidPDFException=lt;var Ee=(function(Pe){F(Ae,Pe);var Ke=g(Ae);function Ae(je){return $(this,Ae),Ke.call(this,je,"MissingPDFException")}return Ae})(nt);i.MissingPDFException=Ee;var Re=(function(Pe){F(Ae,Pe);var Ke=g(Ae);function Ae(je,dt){var ht;return $(this,Ae),ht=Ke.call(this,je,"UnexpectedResponseException"),ht.status=dt,ht}return Ae})(nt);i.UnexpectedResponseException=Re;var Z=(function(Pe){F(Ae,Pe);var Ke=g(Ae);function Ae(je){return $(this,Ae),Ke.call(this,je,"FormatError")}return Ae})(nt);i.FormatError=Z;var he=(function(Pe){F(Ae,Pe);var Ke=g(Ae);function Ae(je){return $(this,Ae),Ke.call(this,je,"AbortException")}return Ae})(nt);i.AbortException=he;var ue=/\x00+/g,ye=/[\x01-\x1F]/g;function me(Pe){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return typeof Pe!="string"?(Te("The argument for removeNullCharacters must be a string."),Pe):(Ke&&(Pe=Pe.replace(ye," ")),Pe.replace(ue,""))}function de(Pe){Me(Pe!==null&&C(Pe)==="object"&&Pe.length!==void 0,"Invalid argument for bytesToString");var Ke=Pe.length,Ae=8192;if(Ke<Ae)return String.fromCharCode.apply(null,Pe);for(var je=[],dt=0;dt<Ke;dt+=Ae){var ht=Math.min(dt+Ae,Ke),Pt=Pe.subarray(dt,ht);je.push(String.fromCharCode.apply(null,Pt))}return je.join("")}function W(Pe){Me(typeof Pe=="string","Invalid argument for stringToBytes");for(var Ke=Pe.length,Ae=new Uint8Array(Ke),je=0;je<Ke;++je)Ae[je]=Pe.charCodeAt(je)&255;return Ae}function G(Pe){return Pe.length!==void 0?Pe.length:(Me(Pe.byteLength!==void 0,"arrayByteLength - invalid argument."),Pe.byteLength)}function ce(Pe){var Ke=Pe.length;if(Ke===1&&Pe[0]instanceof Uint8Array)return Pe[0];for(var Ae=0,je=0;je<Ke;je++)Ae+=G(Pe[je]);for(var dt=0,ht=new Uint8Array(Ae),Pt=0;Pt<Ke;Pt++){var gt=Pe[Pt];gt instanceof Uint8Array||(typeof gt=="string"?gt=W(gt):gt=new Uint8Array(gt));var $t=gt.byteLength;ht.set(gt,dt),dt+=$t}return ht}function we(Pe){return String.fromCharCode(Pe>>24&255,Pe>>16&255,Pe>>8&255,Pe&255)}function Ce(Pe){return Object.keys(Pe).length}function De(Pe){var Ke=Object.create(null),Ae=I(Pe),je;try{for(Ae.s();!(je=Ae.n()).done;){var dt=R(je.value,2),ht=dt[0],Pt=dt[1];Ke[ht]=Pt}}catch(gt){Ae.e(gt)}finally{Ae.f()}return Ke}function Se(){var Pe=new Uint8Array(4);Pe[0]=1;var Ke=new Uint32Array(Pe.buffer,0,1);return Ke[0]===1}var He={get value(){return Je(this,"value",Se())}};i.IsLittleEndianCached=He;function Ne(){try{return new Function(""),!0}catch{return!1}}var Ve={get value(){return Je(this,"value",Ne())}};i.IsEvalSupportedCached=Ve;var rt=l(Array(256).keys()).map(function(Pe){return Pe.toString(16).padStart(2,"0")}),et=(function(){function Pe(){$(this,Pe)}return s(Pe,null,[{key:"makeHexColor",value:function(Ae,je,dt){return"#".concat(rt[Ae]).concat(rt[je]).concat(rt[dt])}},{key:"transform",value:function(Ae,je){return[Ae[0]*je[0]+Ae[2]*je[1],Ae[1]*je[0]+Ae[3]*je[1],Ae[0]*je[2]+Ae[2]*je[3],Ae[1]*je[2]+Ae[3]*je[3],Ae[0]*je[4]+Ae[2]*je[5]+Ae[4],Ae[1]*je[4]+Ae[3]*je[5]+Ae[5]]}},{key:"applyTransform",value:function(Ae,je){var dt=Ae[0]*je[0]+Ae[1]*je[2]+je[4],ht=Ae[0]*je[1]+Ae[1]*je[3]+je[5];return[dt,ht]}},{key:"applyInverseTransform",value:function(Ae,je){var dt=je[0]*je[3]-je[1]*je[2],ht=(Ae[0]*je[3]-Ae[1]*je[2]+je[2]*je[5]-je[4]*je[3])/dt,Pt=(-Ae[0]*je[1]+Ae[1]*je[0]+je[4]*je[1]-je[5]*je[0])/dt;return[ht,Pt]}},{key:"getAxialAlignedBoundingBox",value:function(Ae,je){var dt=Pe.applyTransform(Ae,je),ht=Pe.applyTransform(Ae.slice(2,4),je),Pt=Pe.applyTransform([Ae[0],Ae[3]],je),gt=Pe.applyTransform([Ae[2],Ae[1]],je);return[Math.min(dt[0],ht[0],Pt[0],gt[0]),Math.min(dt[1],ht[1],Pt[1],gt[1]),Math.max(dt[0],ht[0],Pt[0],gt[0]),Math.max(dt[1],ht[1],Pt[1],gt[1])]}},{key:"inverseTransform",value:function(Ae){var je=Ae[0]*Ae[3]-Ae[1]*Ae[2];return[Ae[3]/je,-Ae[1]/je,-Ae[2]/je,Ae[0]/je,(Ae[2]*Ae[5]-Ae[4]*Ae[3])/je,(Ae[4]*Ae[1]-Ae[5]*Ae[0])/je]}},{key:"apply3dTransform",value:function(Ae,je){return[Ae[0]*je[0]+Ae[1]*je[1]+Ae[2]*je[2],Ae[3]*je[0]+Ae[4]*je[1]+Ae[5]*je[2],Ae[6]*je[0]+Ae[7]*je[1]+Ae[8]*je[2]]}},{key:"singularValueDecompose2dScale",value:function(Ae){var je=[Ae[0],Ae[2],Ae[1],Ae[3]],dt=Ae[0]*je[0]+Ae[1]*je[2],ht=Ae[0]*je[1]+Ae[1]*je[3],Pt=Ae[2]*je[0]+Ae[3]*je[2],gt=Ae[2]*je[1]+Ae[3]*je[3],$t=(dt+gt)/2,Wt=Math.sqrt(Math.pow(dt+gt,2)-4*(dt*gt-Pt*ht))/2,fr=$t+Wt||1,Gt=$t-Wt||1;return[Math.sqrt(fr),Math.sqrt(Gt)]}},{key:"normalizeRect",value:function(Ae){var je=Ae.slice(0);return Ae[0]>Ae[2]&&(je[0]=Ae[2],je[2]=Ae[0]),Ae[1]>Ae[3]&&(je[1]=Ae[3],je[3]=Ae[1]),je}},{key:"intersect",value:function(Ae,je){function dt($t,Wt){return $t-Wt}var ht=[Ae[0],Ae[2],je[0],je[2]].sort(dt),Pt=[Ae[1],Ae[3],je[1],je[3]].sort(dt),gt=[];if(Ae=Pe.normalizeRect(Ae),je=Pe.normalizeRect(je),ht[0]===Ae[0]&&ht[1]===je[0]||ht[0]===je[0]&&ht[1]===Ae[0])gt[0]=ht[1],gt[2]=ht[2];else return null;if(Pt[0]===Ae[1]&&Pt[1]===je[1]||Pt[0]===je[1]&&Pt[1]===Ae[1])gt[1]=Pt[1],gt[3]=Pt[2];else return null;return gt}},{key:"bezierBoundingBox",value:function(Ae,je,dt,ht,Pt,gt,$t,Wt){for(var fr=[],Gt=[[],[]],jr,Sr,Mr,Mt,yn,or,$n,On,gn=0;gn<2;++gn){if(gn===0?(Sr=6*Ae-12*dt+6*Pt,jr=-3*Ae+9*dt-9*Pt+3*$t,Mr=3*dt-3*Ae):(Sr=6*je-12*ht+6*gt,jr=-3*je+9*ht-9*gt+3*Wt,Mr=3*ht-3*je),Math.abs(jr)<1e-12){if(Math.abs(Sr)<1e-12)continue;Mt=-Mr/Sr,0<Mt&&Mt<1&&fr.push(Mt);continue}
56$n=Sr*Sr-4*Mr*jr,On=Math.sqrt($n),!($n<0)&&(yn=(-Sr+On)/(2*jr),0<yn&&yn<1&&fr.push(yn),or=(-Sr-On)/(2*jr),0<or&&or<1&&fr.push(or))}for(var pr=fr.length,Ht,kr=pr;pr--;)Mt=fr[pr],Ht=1-Mt,Gt[0][pr]=Ht*Ht*Ht*Ae+3*Ht*Ht*Mt*dt+3*Ht*Mt*Mt*Pt+Mt*Mt*Mt*$t,Gt[1][pr]=Ht*Ht*Ht*je+3*Ht*Ht*Mt*ht+3*Ht*Mt*Mt*gt+Mt*Mt*Mt*Wt;return Gt[0][kr]=Ae,Gt[1][kr]=je,Gt[0][kr+1]=$t,Gt[1][kr+1]=Wt,Gt[0].length=Gt[1].length=kr+2,[Math.min.apply(Math,l(Gt[0])),Math.min.apply(Math,l(Gt[1])),Math.max.apply(Math,l(Gt[0])),Math.max.apply(Math,l(Gt[1]))]}}]),Pe})();i.Util=et;var pt=[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 mt(Pe){var Ke=Pe.length,Ae=[];if(Pe[0]==="þ"&&Pe[1]==="ÿ")for(var je=2;je<Ke;je+=2)Ae.push(String.fromCharCode(Pe.charCodeAt(je)<<8|Pe.charCodeAt(je+1)));else if(Pe[0]==="ÿ"&&Pe[1]==="þ")for(var dt=2;dt<Ke;dt+=2)Ae.push(String.fromCharCode(Pe.charCodeAt(dt+1)<<8|Pe.charCodeAt(dt)));else for(var ht=0;ht<Ke;++ht){var Pt=pt[Pe.charCodeAt(ht)];Ae.push(Pt?String.fromCharCode(Pt):Pe.charAt(ht))}return Ae.join("")}function xt(Pe){return Pe.replace(/([()\\\n\r])/g,function(Ke){return Ke===`
57`?"\\n":Ke==="\r"?"\\r":"\\".concat(Ke)})}function Et(Pe){return/^[\x00-\x7F]*$/.test(Pe)}function Bt(Pe){for(var Ke=["þÿ"],Ae=0,je=Pe.length;Ae<je;Ae++){var dt=Pe.charCodeAt(Ae);Ke.push(String.fromCharCode(dt>>8&255),String.fromCharCode(dt&255))}return Ke.join("")}function er(Pe){return decodeURIComponent(escape(Pe))}function Kt(Pe){return unescape(encodeURIComponent(Pe))}function gr(Pe){return typeof Pe=="boolean"}function Jr(Pe){return typeof Pe=="number"}function Zr(Pe){return typeof Pe=="string"}function en(Pe){return C(Pe)==="object"&&Pe!==null&&Pe.byteLength!==void 0}function sn(Pe,Ke){if(Pe.length!==Ke.length)return!1;for(var Ae=0,je=Pe.length;Ae<je;Ae++)if(Pe[Ae]!==Ke[Ae])return!1;return!0}function Tr(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Date,Ke=[Pe.getUTCFullYear().toString(),(Pe.getUTCMonth()+1).toString().padStart(2,"0"),Pe.getUTCDate().toString().padStart(2,"0"),Pe.getUTCHours().toString().padStart(2,"0"),Pe.getUTCMinutes().toString().padStart(2,"0"),Pe.getUTCSeconds().toString().padStart(2,"0")];return Ke.join("")}function Fr(){var Pe=Object.create(null),Ke=!1;return Object.defineProperty(Pe,"settled",{get:function(){return Ke}}),Pe.promise=new Promise(function(Ae,je){Pe.resolve=function(dt){Ke=!0,Ae(dt)},Pe.reject=function(dt){Ke=!0,je(dt)}}),Pe}function br(Pe){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(URL.createObjectURL&&typeof Blob<"u"&&!Ae)return URL.createObjectURL(new Blob([Pe],{type:Ke}));for(var je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",dt="data:".concat(Ke,";base64,"),ht=0,Pt=Pe.length;ht<Pt;ht+=3){var gt=Pe[ht]&255,$t=Pe[ht+1]&255,Wt=Pe[ht+2]&255,fr=gt>>2,Gt=(gt&3)<<4|$t>>4,jr=ht+1<Pt?($t&15)<<2|Wt>>6:64,Sr=ht+2<Pt?Wt&63:64;dt+=je[fr]+je[Gt]+je[jr]+je[Sr]}return dt}}),((a,i,r)=>{var n=r(6);(typeof globalThis>"u"||!globalThis._pdfjsCompatibilityChecked)&&((typeof globalThis>"u"||globalThis.Math!==Math)&&(globalThis=r(7)),globalThis._pdfjsCompatibilityChecked=!0,(function(){globalThis.btoa||!n.isNodeJS||(globalThis.btoa=function(l){return Buffer.from(l,"binary").toString("base64")})})(),(function(){globalThis.atob||!n.isNodeJS||(globalThis.atob=function(l){return Buffer.from(l,"base64").toString("binary")})})(),(function(){globalThis.DOMMatrix||!n.isNodeJS||(globalThis.DOMMatrix=r(69))})(),(function(){Object.fromEntries||r(70)})(),(function(){globalThis.Promise.allSettled||(globalThis.Promise=r(97))})(),(function(){globalThis.ReadableStream||!n.isNodeJS||(globalThis.ReadableStream=r(134).ReadableStream)})())}),((a,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.isNodeJS=void 0;function r(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(f){return typeof f}:r=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r(s)}var n=(typeof process>"u"?"undefined":r(process))==="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");i.isNodeJS=n}),((a,i,r)=>{r(8),a.exports=r(10)}),((a,i,r)=>{var n=r(9),s=r(10);n({global:!0},{globalThis:s})}),((a,i,r)=>{var n=r(10),s=r(11).f,l=r(47),f=r(50),d=r(41),S=r(57),R=r(68);a.exports=function(N,B){var A=N.target,I=N.global,_=N.stat,E,C,$,F,M,g;if(I?C=n:_?C=n[A]||d(A,{}):C=(n[A]||{}).prototype,C)for($ in B){if(M=B[$],N.noTargetGet?(g=s(C,$),F=g&&g.value):F=C[$],E=R(I?$:A+(_?".":"#")+$,N.forced),!E&&F!==void 0){if(typeof M==typeof F)continue;S(M,F)}(N.sham||F&&F.sham)&&l(M,"sham",!0),f(C,$,M,N)}}}),(a=>{var i=function(r){return r&&r.Math==Math&&r};a.exports=i(typeof globalThis=="object"&&globalThis)||i(typeof window=="object"&&window)||i(typeof self=="object"&&self)||i(typeof commonjsGlobal$1=="object"&&commonjsGlobal$1)||(function(){return this})()||Function("return this")()}),((a,i,r)=>{var n=r(12),s=r(14),l=r(15),f=r(16),d=r(17),S=r(22),R=r(42),N=r(45),B=Object.getOwnPropertyDescriptor;i.f=n?B:function(I,_){if(I=d(I),_=S(_),N)try{return B(I,_)}catch{}if(R(I,_))return f(!s(l.f,I,_),I[_])}}),((a,i,r)=>{var n=r(13);a.exports=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}}
57)[1]!=7})}),(a=>{a.exports=function(i){try{return!!i()}catch{return!0}}}),(a=>{var i=Function.prototype.call;a.exports=i.bind?i.bind(i):function(){return i.apply(i,arguments)}}),((a,i)=>{var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);i.f=s?function(f){var d=n(this,f);return!!d&&d.enumerable}:r}),(a=>{a.exports=function(i,r){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:r}}}),((a,i,r)=>{var n=r(18),s=r(21);a.exports=function(l){return n(s(l))}}),((a,i,r)=>{var n=r(10),s=r(19),l=r(13),f=r(20),d=n.Object,S=s("".split);a.exports=l(function(){return!d("z").propertyIsEnumerable(0)})?function(R){return f(R)=="String"?S(R,""):d(R)}:d}),(a=>{var i=Function.prototype,r=i.bind,n=i.call,s=r&&r.bind(n);a.exports=r?function(l){return l&&s(n,l)}:function(l){return l&&function(){return n.apply(l,arguments)}}}),((a,i,r)=>{var n=r(19),s=n({}.toString),l=n("".slice);a.exports=function(f){return l(s(f),8,-1)}}),((a,i,r)=>{var n=r(10),s=n.TypeError;a.exports=function(l){if(l==null)throw s("Can't call method on "+l);return l}}),((a,i,r)=>{var n=r(23),s=r(26);a.exports=function(l){var f=n(l,"string");return s(f)?f:f+""}}),((a,i,r)=>{var n=r(10),s=r(14),l=r(24),f=r(26),d=r(33),S=r(36),R=r(37),N=n.TypeError,B=R("toPrimitive");a.exports=function(A,I){if(!l(A)||f(A))return A;var _=d(A,B),E;if(_){if(I===void 0&&(I="default"),E=s(_,A,I),!l(E)||f(E))return E;throw N("Can't convert object to primitive value")}return I===void 0&&(I="number"),S(A,I)}}),((a,i,r)=>{var n=r(25);a.exports=function(s){return typeof s=="object"?s!==null:n(s)}}),(a=>{a.exports=function(i){return typeof i=="function"}}),((a,i,r)=>{var n=r(10),s=r(27),l=r(25),f=r(28),d=r(29),S=n.Object;a.exports=d?function(R){return typeof R=="symbol"}:function(R){var N=s("Symbol");return l(N)&&f(N.prototype,S(R))}}),((a,i,r)=>{var n=r(10),s=r(25),l=function(f){return s(f)?f:void 0};a.exports=function(f,d){return arguments.length<2?l(n[f]):n[f]&&n[f][d]}}),((a,i,r)=>{var n=r(19);a.exports=n({}.isPrototypeOf)}),((a,i,r)=>{var n=r(30);a.exports=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),((a,i,r)=>{var n=r(31),s=r(13);a.exports=!!Object.getOwnPropertySymbols&&!s(function(){var l=Symbol();return!String(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&n&&n<41})}),((a,i,r)=>{var n=r(10),s=r(32),l=n.process,f=n.Deno,d=l&&l.versions||f&&f.version,S=d&&d.v8,R,N;S&&(R=S.split("."),N=R[0]>0&&R[0]<4?1:+(R[0]+R[1])),!N&&s&&(R=s.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=s.match(/Chrome\/(\d+)/),R&&(N=+R[1]))),a.exports=N}),((a,i,r)=>{var n=r(27);a.exports=n("navigator","userAgent")||""}),((a,i,r)=>{var n=r(34);a.exports=function(s,l){var f=s[l];return f==null?void 0:n(f)}}),((a,i,r)=>{var n=r(10),s=r(25),l=r(35),f=n.TypeError;a.exports=function(d){if(s(d))return d;throw f(l(d)+" is not a function")}}),((a,i,r)=>{var n=r(10),s=n.String;a.exports=function(l){try{return s(l)}catch{return"Object"}}}),((a,i,r)=>{var n=r(10),s=r(14),l=r(25),f=r(24),d=n.TypeError;a.exports=function(S,R){var N,B;if(R==="string"&&l(N=S.toString)&&!f(B=s(N,S))||l(N=S.valueOf)&&!f(B=s(N,S))||R!=="string"&&l(N=S.toString)&&!f(B=s(N,S)))return B;throw d("Can't convert object to primitive value")}}),((a,i,r)=>{var n=r(10),s=r(38),l=r(42),f=r(44),d=r(30),S=r(29),R=s("wks"),N=n.Symbol,B=N&&N.for,A=S?N:N&&N.withoutSetter||f;a.exports=function(I){if(!l(R,I)||!(d||typeof R[I]=="string")){var _="Symbol."+I;d&&l(N,I)?R[I]=N[I]:S&&B?R[I]=B(_):R[I]=A(_)}return R[I]}}),((a,i,r)=>{var n=r(39),s=r(40);(a.exports=function(l,f){return s[l]||(s[l]=f!==void 0?f:{})})("versions",[]).push({version:"3.19.3",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),(a=>{a.exports=!1}),((a,i,r)=>{var n=r(10),s=r(41),l="__core-js_shared__",f=n[l]||s(l,{});a.exports=f}),((a,i,r)=>{var n=r(10),s=Object.defineProperty;a.exports=function(l,f){try{s(n,l,{value:f,configurable:!0,writable:!0})}catch{n[l]=f}return f}}),((a,i,r)=>{var n=r(19),s=r(43),l=n({}.hasOwnProperty);a.exports=Object.hasOwn||function(d,S){return l(s(d),S)}}),((a,i,r)=>{var n=r(10),s=r(21),l=n.Object;a.exports=function(f){return l(s(f))}}),((a,i,r)=>{var n=r(19),s=0,l=Math.random(),f=n(1 .toString);a.exports=function(d){return"Symbol("+(d===void 0?"":d)+")_"+f(++s+l,36)}}),((a,i,r)=>{var n=r(12),s=r(13),l=r(46);a.exports=!n&&!s(function(){return Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a!=7})}),((a,i,r)=>{var n=r(10),s=r(24),l=n.document,f=s(l)&&s(l.createElement);a.exports=function(d){return f?l.createElement(d):{}}}),((a,i,r)=>{var n=r(12),s=r(48),l=r(16);a.exports=n?function(f,d,S){return s.f(f,d,l(1,S))}:function(f,d,S){return f[d]=S,f}}),((a,i,r)=>{var n=r(10),s=r(12),l=r(45),f=r(49),d=r(22),S=n.TypeError,R=Object.defineProperty;i.f=s?R:function(B,A,I){if(f(B),A=d(A),f(I),l)try{return R(B,A,I)}catch{}if("get"in I||"set"in I)throw S("Accessors not supported");return"value"in I&&(B[A]=I.value),B}}),((a,i,r)=>{var n=r(10),s=r(24),l=n.String,f=n.TypeError;a.exports=function(d){if(s(d))return d;throw f(l(d)+" is not an object")}}),((a,i,r)=>{var n=r(10),s=r(25),l=r(42),f=r(47),d=r(41),S=r(51),R=r(52),N=r(56).CONFIGURABLE,B=R.get,A=R.enforce,I=String(String).split("String");(a.exports=function(_,E,C,$){var F=$?!!$.unsafe:!1,M=$?!!$.enumerable:!1,g=$?!!$.noTargetGet:!1,h=$&&$.name!==void 0?$.name:E,m;if(s(C)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!l(C,"name")||N&&C.name!==h)&&f(C,"name",h),m=A(C),m.source||(m.source=I.join(typeof h=="string"?h:""))),_===n){M?_[E]=C:d(E,C);return}else F?!g&&_[E]&&(M=!0):delete _[E];M?_[E]=C:f(_,E,C)})(Function.prototype,"toString",function(){return s(this)&&B(this).source||S(this)})}),((a,i,r)=>{var n=r(19),s=r(25),l=r(40),f=n(Function.toString);s(l.inspectSource)||(l.inspectSource=function(d){return f(d)}),a.exports=l.inspectSource}),((a,i,r)=>
57{var n=r(53),s=r(10),l=r(19),f=r(24),d=r(47),S=r(42),R=r(40),N=r(54),B=r(55),A="Object already initialized",I=s.TypeError,_=s.WeakMap,E,C,$,F=function(w){return $(w)?C(w):E(w,{})},M=function(w){return function(D){var z;if(!f(D)||(z=C(D)).type!==w)throw I("Incompatible receiver, "+w+" required");return z}};if(n||R.state){var g=R.state||(R.state=new _),h=l(g.get),m=l(g.has),k=l(g.set);E=function(w,D){if(m(g,w))throw new I(A);return D.facade=w,k(g,w,D),D},C=function(w){return h(g,w)||{}},$=function(w){return m(g,w)}}else{var T=N("state");B[T]=!0,E=function(w,D){if(S(w,T))throw new I(A);return D.facade=w,d(w,T,D),D},C=function(w){return S(w,T)?w[T]:{}},$=function(w){return S(w,T)}}a.exports={set:E,get:C,has:$,enforce:F,getterFor:M}}),((a,i,r)=>{var n=r(10),s=r(25),l=r(51),f=n.WeakMap;a.exports=s(f)&&/native code/.test(l(f))}),((a,i,r)=>{var n=r(38),s=r(44),l=n("keys");a.exports=function(f){return l[f]||(l[f]=s(f))}}),(a=>{a.exports={}}),((a,i,r)=>{var n=r(12),s=r(42),l=Function.prototype,f=n&&Object.getOwnPropertyDescriptor,d=s(l,"name"),S=d&&function(){}.name==="something",R=d&&(!n||n&&f(l,"name").configurable);a.exports={EXISTS:d,PROPER:S,CONFIGURABLE:R}}),((a,i,r)=>{var n=r(42),s=r(58),l=r(11),f=r(48);a.exports=function(d,S){for(var R=s(S),N=f.f,B=l.f,A=0;A<R.length;A++){var I=R[A];n(d,I)||N(d,I,B(S,I))}}}),((a,i,r)=>{var n=r(27),s=r(19),l=r(59),f=r(67),d=r(49),S=s([].concat);a.exports=n("Reflect","ownKeys")||function(N){var B=l.f(d(N)),A=f.f;return A?S(B,A(N)):B}}),((a,i,r)=>{var n=r(60),s=r(66),l=s.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(d){return n(d,l)}}),((a,i,r)=>{var n=r(19),s=r(42),l=r(17),f=r(61).indexOf,d=r(55),S=n([].push);a.exports=function(R,N){var B=l(R),A=0,I=[],_;for(_ in B)!s(d,_)&&s(B,_)&&S(I,_);for(;N.length>A;)s(B,_=N[A++])&&(~f(I,_)||S(I,_));return I}}),((a,i,r)=>{var n=r(17),s=r(62),l=r(64),f=function(d){return function(S,R,N){var B=n(S),A=l(B),I=s(N,A),_;if(d&&R!=R){for(;A>I;)if(_=B[I++],_!=_)return!0}else for(;A>I;I++)if((d||I in B)&&B[I]===R)return d||I||0;return!d&&-1}};a.exports={includes:f(!0),indexOf:f(!1)}}),((a,i,r)=>{var n=r(63),s=Math.max,l=Math.min;a.exports=function(f,d){var S=n(f);return S<0?s(S+d,0):l(S,d)}}),(a=>{var i=Math.ceil,r=Math.floor;a.exports=function(n){var s=+n;return s!==s||s===0?0:(s>0?r:i)(s)}}),((a,i,r)=>{var n=r(65);a.exports=function(s){return n(s.length)}}),((a,i,r)=>{var n=r(63),s=Math.min;a.exports=function(l){return l>0?s(n(l),9007199254740991):0}}),(a=>{a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),((a,i)=>{i.f=Object.getOwnPropertySymbols}),((a,i,r)=>{var n=r(13),s=r(25),l=/#|\.prototype\./,f=function(B,A){var I=S[d(B)];return I==N?!0:I==R?!1:s(A)?n(A):!!A},d=f.normalize=function(B){return String(B).replace(l,".").toLowerCase()},S=f.data={},R=f.NATIVE="N",N=f.POLYFILL="P";a.exports=f}),((a,i,r)=>{var n,s;function l(f){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(S){return typeof S}:l=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},l(f)}(function(f,d){l(i)==="object"?a.exports=d():(n=d,s=typeof n=="function"?n.call(i,r,i,a):n,s!==void 0&&(a.exports=s))})(void 0,function(){function f(g){var h=new C,m=Array.from(g);if(!m.every(function(qe){return!Number.isNaN(qe)}))throw TypeError('CSSMatrix: "'+g+'" must only have numbers.');if(m.length===16){var k=m[0],T=m[1],w=m[2],D=m[3],z=m[4],J=m[5],K=m[6],te=m[7],le=m[8],fe=m[9],ve=m[10],q=m[11],Y=m[12],U=m[13],p=m[14],x=m[15];h.m11=k,h.a=k,h.m21=z,h.c=z,h.m31=le,h.m41=Y,h.e=Y,h.m12=T,h.b=T,h.m22=J,h.d=J,h.m32=fe,h.m42=U,h.f=U,h.m13=w,h.m23=K,h.m33=ve,h.m43=p,h.m14=D,h.m24=te,h.m34=q,h.m44=x}else if(m.length===6){var H=m[0],ne=m[1],ae=m[2],ie=m[3],xe=m[4],Ue=m[5];h.m11=H,h.a=H,h.m12=ne,h.b=ne,h.m21=ae,h.c=ae,h.m22=ie,h.d=ie,h.m41=xe,h.e=xe,h.m42=Ue,h.f=Ue}else throw new TypeError("CSSMatrix: expecting an Array of 6/16 values.");return h}function d(g){var h=Object.keys(new C);if(l(g)==="object"&&h.every(function(m){return m in g}))return f([g.m11,g.m12,g.m13,g.m14,g.m21,g.m22,g.m23,g.m24,g.m31,g.m32,g.m33,g.m34,g.m41,g.m42,g.m43,g.m44]);throw TypeError('CSSMatrix: "'+g+'" is not a DOMMatrix / CSSMatrix / JSON compatible object.')}function S(g){if(typeof g!="string")throw TypeError('CSSMatrix: "'+g+'" is not a string.');
57var h=String(g).replace(/\s/g,""),m=new C,k='CSSMatrix: invalid transform string "'+g+'"';return h.split(")").filter(function(T){return T}).forEach(function(T){var w=T.split("("),D=w[0],z=w[1];if(!z)throw TypeError(k);var J=z.split(",").map(function(ie){return ie.includes("rad")?parseFloat(ie)*(180/Math.PI):parseFloat(ie)}),K=J[0],te=J[1],le=J[2],fe=J[3],ve=[K,te,le],q=[K,te,le,fe];if(D==="perspective"&&K&&[te,le].every(function(ie){return ie===void 0}))m.m34=-1/K;else if(D.includes("matrix")&&[6,16].includes(J.length)&&J.every(function(ie){return!Number.isNaN(+ie)})){var Y=J.map(function(ie){return Math.abs(ie)<1e-6?0:ie});m=m.multiply(f(Y))}else if(D==="translate3d"&&ve.every(function(ie){return!Number.isNaN(+ie)}))m=m.translate(K,te,le);else if(D==="translate"&&K&&le===void 0)m=m.translate(K,te||0,0);else if(D==="rotate3d"&&q.every(function(ie){return!Number.isNaN(+ie)})&&fe)m=m.rotateAxisAngle(K,te,le,fe);else if(D==="rotate"&&K&&[te,le].every(function(ie){return ie===void 0}))m=m.rotate(0,0,K);else if(D==="scale3d"&&ve.every(function(ie){return!Number.isNaN(+ie)})&&ve.some(function(ie){return ie!==1}))m=m.scale(K,te,le);else if(D==="scale"&&!Number.isNaN(K)&&K!==1&&le===void 0){var U=Number.isNaN(+te),p=U?K:te;m=m.scale(K,p,1)}else if(D==="skew"&&K&&le===void 0)m=m.skewX(K),m=te?m.skewY(te):m;else if(/[XYZ]/.test(D)&&K&&[te,le].every(function(ie){return ie===void 0})&&["translate","rotate","scale","skew"].some(function(ie){return D.includes(ie)}))if(["skewX","skewY"].includes(D))m=m[D](K);else{var x=D.replace(/[XYZ]/,""),H=D.replace(x,""),ne=["X","Y","Z"].indexOf(H),ae=[ne===0?K:0,ne===1?K:0,ne===2?K:0];m=m[x].apply(m,ae)}else throw TypeError(k)}),m}function R(g,h,m){var k=new C;return k.m41=g,k.e=g,k.m42=h,k.f=h,k.m43=m,k}function N(g,h,m){var k=new C,T=Math.PI/180,w=g*T,D=h*T,z=m*T,J=Math.cos(w),K=-Math.sin(w),te=Math.cos(D),le=-Math.sin(D),fe=Math.cos(z),ve=-Math.sin(z),q=te*fe,Y=-te*ve;k.m11=q,k.a=q,k.m12=Y,k.b=Y,k.m13=le;var U=K*le*fe+J*ve;k.m21=U,k.c=U;var p=J*fe-K*le*ve;return k.m22=p,k.d=p,k.m23=-K*te,k.m31=K*ve-J*le*fe,k.m32=K*fe+J*le*ve,k.m33=J*te,k}function B(g,h,m,k){var T=new C,w=k*(Math.PI/360),D=Math.sin(w),z=Math.cos(w),J=D*D,K=Math.sqrt(g*g+h*h+m*m),te=g,le=h,fe=m;K===0?(te=0,le=0,fe=1):(te/=K,le/=K,fe/=K);var ve=te*te,q=le*le,Y=fe*fe,U=1-2*(q+Y)*J;T.m11=U,T.a=U;var p=2*(te*le*J+fe*D*z);T.m12=p,T.b=p,T.m13=2*(te*fe*J-le*D*z);var x=2*(le*te*J-fe*D*z);T.m21=x,T.c=x;var H=1-2*(Y+ve)*J;return T.m22=H,T.d=H,T.m23=2*(le*fe*J+te*D*z),T.m31=2*(fe*te*J+le*D*z),T.m32=2*(fe*le*J-te*D*z),T.m33=1-2*(ve+q)*J,T}function A(g,h,m){var k=new C;return k.m11=g,k.a=g,k.m22=h,k.d=h,k.m33=m,k}function I(g){var h=new C,m=g*Math.PI/180,k=Math.tan(m);return h.m21=k,h.c=k,h}function _(g){var h=new C,m=g*Math.PI/180,k=Math.tan(m);return h.m12=k,h.b=k,h}function E(g,h){var m=h.m11*g.m11+h.m12*g.m21+h.m13*g.m31+h.m14*g.m41,k=h.m11*g.m12+h.m12*g.m22+h.m13*g.m32+h.m14*g.m42,T=h.m11*g.m13+h.m12*g.m23+h.m13*g.m33+h.m14*g.m43,w=h.m11*g.m14+h.m12*g.m24+h.m13*g.m34+h.m14*g.m44,D=h.m21*g.m11+h.m22*g.m21+h.m23*g.m31+h.m24*g.m41,z=h.m21*g.m12+h.m22*g.m22+h.m23*g.m32+h.m24*g.m42,J=h.m21*g.m13+h.m22*g.m23+h.m23*g.m33+h.m24*g.m43,K=h.m21*g.m14+h.m22*g.m24+h.m23*g.m34+h.m24*g.m44,te=h.m31*g.m11+h.m32*g.m21+h.m33*g.m31+h.m34*g.m41,le=h.m31*g.m12+h.m32*g.m22+h.m33*g.m32+h.m34*g.m42,fe=h.m31*g.m13+h.m32*g.m23+h.m33*g.m33+h.m34*g.m43,ve=h.m31*g.m14+h.m32*g.m24+h.m33*g.m34+h.m34*g.m44,q=h.m41*g.m11+h.m42*g.m21+h.m43*g.m31+h.m44*g.m41,Y=h.m41*g.m12+h.m42*g.m22+h.m43*g.m32+h.m44*g.m42,U=h.m41*g.m13+h.m42*g.m23+h.m43*g.m33+h.m44*g.m43,p=h.m41*g.m14+h.m42*g.m24+h.m43*g.m34+h.m44*g.m44;return f([m,k,T,w,D,z,J,K,te,le,fe,ve,q,Y,U,p])}var C=function(){for(var h=[],m=arguments.length;m--;)h[m]=arguments[m];var k=this;if(k.a=1,k.b=0,k.c=0,k.d=1,k.e=0,k.f=0,k.m11=1,k.m12=0,k.m13=0,k.m14=0,k.m21=0,k.m22=1,k.m23=0,k.m24=0,k.m31=0,k.m32=0,k.m33=1,k.m34=0,k.m41=0,k.m42=0,k.m43=0,k.m44=1,h&&h.length){var T=[16,6].some(function(w){return w===h.length})?h:h[0];return k.setMatrixValue(T)}return k},$={isIdentity:{configurable:!0},is2D:{configurable:!0}};$.isIdentity.set=function(g){this.isIdentity=g},$.isIdentity.get=function(){var g=this;return g.m11===1&&g.m12===0&&g.m13===0&&g.m14===0&&g.m21===0&&g.m22===1&&g.m23===0&&g.m24===0&&g.m31===0&&g.m32===0&&g.m33===1&&g.m34===0&&g.m41===0&&g.m42===0&&g.m43===0&&g.m44===1},$.is2D.get=function(){var g=this;return g.m31===0&&g.m32===0&&g.m33===1&&g.m34===0&&g.m43===0&&g.m44===1},$.is2D.set=function(g){this.is2D=g}
57,C.prototype.setMatrixValue=function(h){var m=this;return[Array,Float64Array,Float32Array].some(function(k){return h instanceof k})?f(h):typeof h=="string"&&h.length&&h!=="none"?S(h):l(h)==="object"?d(h):m},C.prototype.toArray=function(){var h=this,m=Math.pow(10,6),k;return h.is2D?k=[h.a,h.b,h.c,h.d,h.e,h.f]:k=[h.m11,h.m12,h.m13,h.m14,h.m21,h.m22,h.m23,h.m24,h.m31,h.m32,h.m33,h.m34,h.m41,h.m42,h.m43,h.m44],k.map(function(T){return Math.abs(T)<1e-6?0:(T*m>>0)/m})},C.prototype.toString=function(){var h=this,m=h.toArray(),k=h.is2D?"matrix":"matrix3d";return k+"("+m+")"},C.prototype.toJSON=function(){var h=this,m=h.is2D,k=h.isIdentity;return Object.assign({},h,{is2D:m,isIdentity:k})},C.prototype.multiply=function(h){return E(this,h)},C.prototype.translate=function(h,m,k){var T=h,w=m,D=k;return D===void 0&&(D=0),w===void 0&&(w=0),E(this,R(T,w,D))},C.prototype.scale=function(h,m,k){var T=h,w=m,D=k;return w===void 0&&(w=h),D===void 0&&(D=1),E(this,A(T,w,D))},C.prototype.rotate=function(h,m,k){var T=h,w=m,D=k;return w===void 0&&(w=0),D===void 0&&(D=T,T=0),E(this,N(T,w,D))},C.prototype.rotateAxisAngle=function(h,m,k,T){if([h,m,k,T].some(function(w){return Number.isNaN(w)}))throw new TypeError("CSSMatrix: expecting 4 values");return E(this,B(h,m,k,T))},C.prototype.skewX=function(h){return E(this,I(h))},C.prototype.skewY=function(h){return E(this,_(h))},C.prototype.transformPoint=function(h){var m=this,k=R(h.x,h.y,h.z);return k.m44=h.w||1,k=m.multiply(k),{x:k.m41,y:k.m42,z:k.m43,w:k.m44}},C.prototype.transform=function(h){var m=this,k=m.m11*h.x+m.m12*h.y+m.m13*h.z+m.m14*h.w,T=m.m21*h.x+m.m22*h.y+m.m23*h.z+m.m24*h.w,w=m.m31*h.x+m.m32*h.y+m.m33*h.z+m.m34*h.w,D=m.m41*h.x+m.m42*h.y+m.m43*h.z+m.m44*h.w;return{x:k/D,y:T/D,z:w/D,w:D}},Object.defineProperties(C.prototype,$),Object.assign(C,{Translate:R,Rotate:N,RotateAxisAngle:B,Scale:A,SkewX:I,SkewY:_,Multiply:E,fromArray:f,fromMatrix:d,fromString:S});var F="0.0.24",M=F;return Object.assign(C,{Version:M}),C})}),((a,i,r)=>{r(71),r(86);var n=r(96);a.exports=n.Object.fromEntries}),((a,i,r)=>{var n=r(17),s=r(72),l=r(77),f=r(52),d=r(78),S="Array Iterator",R=f.set,N=f.getterFor(S);a.exports=d(Array,"Array",function(B,A){R(this,{type:S,target:n(B),index:0,kind:A})},function(){var B=N(this),A=B.target,I=B.kind,_=B.index++;return!A||_>=A.length?(B.target=void 0,{value:void 0,done:!0}):I=="keys"?{value:_,done:!1}:I=="values"?{value:A[_],done:!1}:{value:[_,A[_]],done:!1}},"values"),l.Arguments=l.Array,s("keys"),s("values"),s("entries")}),((a,i,r)=>{var n=r(37),s=r(73),l=r(48),f=n("unscopables"),d=Array.prototype;d[f]==null&&l.f(d,f,{configurable:!0,value:s(null)}),a.exports=function(S){d[f][S]=!0}}),((a,i,r)=>{var n=r(49),s=r(74),l=r(66),f=r(55),d=r(76),S=r(46),R=r(54),N=">",B="<",A="prototype",I="script",_=R("IE_PROTO"),E=function(){},C=function(h){return B+I+N+h+B+"/"+I+N},$=function(h){h.write(C("")),h.close();var m=h.parentWindow.Object;return h=null,m},F=function(){var h=S("iframe"),m="java"+I+":",k;return h.style.display="none",d.appendChild(h),h.src=String(m),k=h.contentWindow.document,k.open(),k.write(C("document.F=Object")),k.close(),k.F},M,g=function(){try{M=new ActiveXObject("htmlfile")}catch{}g=typeof document<"u"?document.domain&&M?$(M):F():$(M);for(var h=l.length;h--;)delete g[A][l[h]];return g()};f[_]=!0,a.exports=Object.create||function(m,k){var T;return m!==null?(E[A]=n(m),T=new E,E[A]=null,T[_]=m):T=g(),k===void 0?T:s(T,k)}}),((a,i,r)=>{var n=r(12),s=r(48),l=r(49),f=r(17),d=r(75);a.exports=n?Object.defineProperties:function(R,N){l(R);for(var B=f(N),A=d(N),I=A.length,_=0,E;I>_;)s.f(R,E=A[_++],B[E]);return R}}),((a,i,r)=>{var n=r(60),s=r(66);a.exports=Object.keys||function(f){return n(f,s)}}),((a,i,r)=>{var n=r(27);a.exports=n("document","documentElement")}),(a=>{a.exports={}}),((a,i,r)=>{var n=r(9),s=r(14),l=r(39),f=r(56),d=r(25),S=r(79),R=r(81),N=r(84),B=r(83),A=r(47),I=r(50),_=r(37),E=r(77),C=r(80),$=f.PROPER,F=f.CONFIGURABLE,M=C.IteratorPrototype,g=C.BUGGY_SAFARI_ITERATORS,h=_("iterator"),m="keys",k="values",T="entries",w=function(){return this};a.exports=function(D,z,J,K,te,le,fe){S(J,z,K);var ve=function(xe){if(xe===te&&x)return x;if(!g&&xe in U)return U[xe];
vendor: 1,908 bytes, line 57
57switch(xe){case m:return function(){return new J(this,xe)};case k:return function(){return new J(this,xe)};case T:return function(){return new J(this,xe)}}return function(){return new J(this)}},q=z+" Iterator",Y=!1,U=D.prototype,p=U[h]||U["@@iterator"]||te&&U[te],x=!g&&p||ve(te),H=z=="Array"&&U.entries||p,ne,ae,ie;if(H&&(ne=R(H.call(new D)),ne!==Object.prototype&&ne.next&&(!l&&R(ne)!==M&&(N?N(ne,M):d(ne[h])||I(ne,h,w)),B(ne,q,!0,!0),l&&(E[q]=w))),$&&te==k&&p&&p.name!==k&&(!l&&F?A(U,"name",k):(Y=!0,x=function(){return s(p,this)})),te)if(ae={values:ve(k),keys:le?x:ve(m),entries:ve(T)},fe)for(ie in ae)(g||Y||!(ie in U))&&I(U,ie,ae[ie]);else n({target:z,proto:!0,forced:g||Y},ae);return(!l||fe)&&U[h]!==x&&I(U,h,x,{name:te}),E[z]=x,ae}}),((a,i,r)=>{var n=r(80).IteratorPrototype,s=r(73),l=r(16),f=r(83),d=r(77),S=function(){return this};a.exports=function(R,N,B,A){var I=N+" Iterator";return R.prototype=s(n,{next:l(+!A,B)}),f(R,I,!1,!0),d[I]=S,R}}),((a,i,r)=>{var n=r(13),s=r(25),l=r(73),f=r(81),d=r(50),S=r(37),R=r(39),N=S("iterator"),B=!1,A,I,_;[].keys&&(_=[].keys(),"next"in _?(I=f(f(_)),I!==Object.prototype&&(A=I)):B=!0);var E=A==null||n(function(){var C={};return A[N].call(C)!==C});E?A={}:R&&(A=l(A)),s(A[N])||d(A,N,function(){return this}),a.exports={IteratorPrototype:A,BUGGY_SAFARI_ITERATORS:B}}),((a,i,r)=>{var n=r(10),s=r(42),l=r(25),f=r(43),d=r(54),S=r(82),R=d("IE_PROTO"),N=n.Object,B=N.prototype;a.exports=S?N.getPrototypeOf:function(A){var I=f(A);if(s(I,R))return I[R];var _=I.constructor;return l(_)&&I instanceof _?_.prototype:I instanceof N?B:null}}),((a,i,r)=>{var n=r(13);a.exports=!n(function(){function s(){}return s.prototype.constructor=null,Object.getPrototypeOf(new s)!==s.prototype})}),((a,i,r)=>{var n=r(48).f,s=r(42),l=r(37),f=l("toStringTag");a.exports=function(d,S,R){d&&!s(d=R?d:d.prototype,f)&&n(d,f,{configurable:!0,value:S})}}),((a,i,r)=>{var n=r(19),s=r(49),l=r(85);
57a.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var f=!1,d={},S;try{S=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),S(d,[]),f=d instanceof Array}catch{}return function(N,B){return s(N),l(B),f?S(N,B):N.__proto__=B,N}})():void 0)}),((a,i,r)=>{var n=r(10),s=r(25),l=n.String,f=n.TypeError;a.exports=function(d){if(typeof d=="object"||s(d))return d;throw f("Can't set "+l(d)+" as a prototype")}}),((a,i,r)=>{var n=r(9),s=r(87),l=r(95);n({target:"Object",stat:!0},{fromEntries:function(d){var S={};return s(d,function(R,N){l(S,R,N)},{AS_ENTRIES:!0}),S}})}),((a,i,r)=>{var n=r(10),s=r(88),l=r(14),f=r(49),d=r(35),S=r(89),R=r(64),N=r(28),B=r(90),A=r(91),I=r(94),_=n.TypeError,E=function($,F){this.stopped=$,this.result=F},C=E.prototype;a.exports=function($,F,M){var g=M&&M.that,h=!!(M&&M.AS_ENTRIES),m=!!(M&&M.IS_ITERATOR),k=!!(M&&M.INTERRUPTED),T=s(F,g),w,D,z,J,K,te,le,fe=function(q){return w&&I(w,"normal",q),new E(!0,q)},ve=function(q){return h?(f(q),k?T(q[0],q[1],fe):T(q[0],q[1])):k?T(q,fe):T(q)};if(m)w=$;else{if(D=A($),!D)throw _(d($)+" is not iterable");if(S(D)){for(z=0,J=R($);J>z;z++)if(K=ve($[z]),K&&N(C,K))return K;return new E(!1)}w=B($,D)}for(te=w.next;!(le=l(te,w)).done;){try{K=ve(le.value)}catch(q){I(w,"throw",q)}if(typeof K=="object"&&K&&N(C,K))return K}return new E(!1)}}),((a,i,r)=>{var n=r(19),s=r(34),l=n(n.bind);a.exports=function(f,d){return s(f),d===void 0?f:l?l(f,d):function(){return f.apply(d,arguments)}}}),((a,i,r)=>{var n=r(37),s=r(77),l=n("iterator"),f=Array.prototype;a.exports=function(d){return d!==void 0&&(s.Array===d||f[l]===d)}}),((a,i,r)=>{var n=r(10),s=r(14),l=r(34),f=r(49),d=r(35),S=r(91),R=n.TypeError;a.exports=function(N,B){var A=arguments.length<2?S(N):B;if(l(A))return f(s(A,N));throw R(d(N)+" is not iterable")}}),((a,i,r)=>{var n=r(92),s=r(33),l=r(77),f=r(37),d=f("iterator");a.exports=function(S){if(S!=null)return s(S,d)||s(S,"@@iterator")||l[n(S)]}}),((a,i,r)=>{var n=r(10),s=r(93),l=r(25),f=r(20),d=r(37),S=d("toStringTag"),R=n.Object,N=f((function(){return arguments})())=="Arguments",B=function(A,I){try{return A[I]}catch{}};a.exports=s?f:function(A){var I,_,E;return A===void 0?"Undefined":A===null?"Null":typeof(_=B(I=R(A),S))=="string"?_:N?f(I):(E=f(I))=="Object"&&l(I.callee)?"Arguments":E}}),((a,i,r)=>{var n=r(37),s=n("toStringTag"),l={};l[s]="z",a.exports=String(l)==="[object z]"}),((a,i,r)=>{var n=r(14),s=r(49),l=r(33);a.exports=function(f,d,S){var R,N;s(f);try{if(R=l(f,"return"),!R){if(d==="throw")throw S;return S}R=n(R,f)}catch(B){N=!0,R=B}if(d==="throw")throw S;if(N)throw R;return s(R),S}}),((a,i,r)=>{var n=r(22),s=r(48),l=r(16);a.exports=function(f,d,S){var R=n(d);R in f?s.f(f,R,l(0,S)):f[R]=S}}),((a,i,r)=>{var n=r(10);a.exports=n}),((a,i,r)=>{r(98),r(71),r(105),r(107),r(129),r(130),r(131),r(132);var n=r(96);a.exports=n.Promise}),((a,i,r)=>{var n=r(9),s=r(10),l=r(28),f=r(81),d=r(84),S=r(57),R=r(73),N=r(47),B=r(16),A=r(99),I=r(101),_=r(87),E=r(102),C=r(37),$=r(104),F=C("toStringTag"),M=s.Error,g=[].push,h=function(T,w){var D=arguments.length>2?arguments[2]:void 0,z=l(m,this),J;d?J=d(new M(void 0),z?f(this):m):(J=z?this:R(m),N(J,F,"Error")),N(J,"message",E(w,"")),$&&N(J,"stack",A(J.stack,1)),I(J,D);var K=[];return _(T,g,{that:K}),N(J,"errors",K),J};d?d(h,M):S(h,M);var m=h.prototype=R(M.prototype,{constructor:B(1,h),message:B(1,""),name:B(1,"AggregateError")});n({global:!0},{AggregateError:h})}),((a,i,r)=>{var n=r(19),s=r(100),l=n("".replace),f=n("".split),d=n([].join),S=(function(A){return String(Error(A).stack)})("zxcasd"),R=/\n\s*at [^:]*:[^\n]*/,N=R.test(S),B=/@[^\n]*\n/.test(S)&&!/zxcasd/.test(S);a.exports=function(A,I){if(typeof A!="string")return A;if(N)for(;I--;)A=l(A,R,"");else if(B)return d(s(f(A,`
58`),I),`
59`);return A}}),((a,i,r)=>{var n=r(10),s=r(62),l=r(64),f=r(95),d=n.Array,S=Math.max;a.exports=function(R,N,B){for(var A=l(R),I=s(N,A),_=s(B===void 0?A:B,A),E=d(S(_-I,0)),C=0;I<_;I++,C++)f(E,C,R[I]);return E.length=C,E}}),((a,i,r)=>{var n=r(24),s=r(47);a.exports=function(l,f){n(f)&&"cause"in f&&s(l,"cause",f.cause)}}),((a,i,r)=>{var n=r(103);a.exports=function(s,l){return s===void 0?arguments.length<2?"":l:n(s)}}),((a,i,r)=>{var n=r(10),s=r(92),l=n.String;a.exports=function(f){if(s(f)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return l(f)}}),((a,i,r)=>{var n=r(13),s=r(16);a.exports=!n(function(){var l=Error("a");return"stack"in l?(Object.defineProperty(l,"stack",s(1,7)),l.stack!==7):!0})}),((a,i,r)=>{var n=r(93),s=r(50),l=r(106);n||s(Object.prototype,"toString",l,{unsafe:!0})}),((a,i,r)=>{var n=r(93),s=r(92);a.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}}),((a,i,r)=>{var n=r(9),s=r(39),l=r(10),f=r(27),d=r(14),S=r(108),R=r(50),N=r(109),B=r(84),A=r(83),I=r(110),_=r(34),E=r(25),C=r(24),$=r(111),F=r(51),M=r(87),g=r(112),h=r(113),m=r(116).set,k=r(121),T=r(124),w=r(126),D=r(125),z=r(127),J=r(52),K=r(68),te=r(37),le=r(128),fe=r(120),ve=r(31),q=te("species"),Y="Promise",U=J.getterFor(Y),p=J.set,x=J.getterFor(Y),H=S&&S.prototype,ne=S,ae=H,ie=l.TypeError,xe=l.document,Ue=l.process,qe=D.f,se=qe,Q=!!(xe&&xe.createEvent&&l.dispatchEvent),L=E(l.PromiseRejectionEvent),P="unhandledrejection",V="rejectionhandled",ee=0,oe=1,pe=2,Te=1,Oe=2,Me=!1,Fe,ze,Ye,Je,nt=K(Y,function(){var de=F(ne),W=de!==String(ne);if(!W&&ve===66||s&&!ae.finally)return!0;
vendor: 6,355 bytes, line 59
59if(ve>=51&&/native code/.test(de))return!1;var G=new ne(function(Ce){Ce(1)}),ce=function(Ce){Ce(function(){},function(){})},we=G.constructor={};return we[q]=ce,Me=G.then(function(){})instanceof ce,Me?!W&&le&&!L:!0}),tt=nt||!g(function(de){ne.all(de).catch(function(){})}),ct=function(de){var W;return C(de)&&E(W=de.then)?W:!1},lt=function(de,W){if(!de.notified){de.notified=!0;var G=de.reactions;k(function(){for(var ce=de.value,we=de.state==oe,Ce=0;G.length>Ce;){var De=G[Ce++],Se=we?De.ok:De.fail,He=De.resolve,Ne=De.reject,Ve=De.domain,rt,et,pt;try{Se?(we||(de.rejection===Oe&&he(de),de.rejection=Te),Se===!0?rt=ce:(Ve&&Ve.enter(),rt=Se(ce),Ve&&(Ve.exit(),pt=!0)),rt===De.promise?Ne(ie("Promise-chain cycle")):(et=ct(rt))?d(et,rt,He,Ne):He(rt)):Ne(ce)}catch(mt){Ve&&!pt&&Ve.exit(),Ne(mt)}}de.reactions=[],de.notified=!1,W&&!de.rejection&&Re(de)})}},Ee=function(de,W,G){var ce,we;Q?(ce=xe.createEvent("Event"),ce.promise=W,ce.reason=G,ce.initEvent(de,!1,!0),l.dispatchEvent(ce)):ce={promise:W,reason:G},!L&&(we=l["on"+de])?we(ce):de===P&&w("Unhandled promise rejection",G)},Re=function(de){d(m,l,function(){var W=de.facade,G=de.value,ce=Z(de),we;if(ce&&(we=z(function(){fe?Ue.emit("unhandledRejection",G,W):Ee(P,W,G)}),de.rejection=fe||Z(de)?Oe:Te,we.error))throw we.value})},Z=function(de){return de.rejection!==Te&&!de.parent},he=function(de){d(m,l,function(){var W=de.facade;fe?Ue.emit("rejectionHandled",W):Ee(V,W,de.value)})},ue=function(de,W,G){return function(ce){de(W,ce,G)}},ye=function(de,W,G){de.done||(de.done=!0,G&&(de=G),de.value=W,de.state=pe,lt(de,!0))},me=function(de,W,G){if(!de.done){de.done=!0,G&&(de=G);try{if(de.facade===W)throw ie("Promise can't be resolved itself");var ce=ct(W);ce?k(function(){var we={done:!1};try{d(ce,W,ue(me,we,de),ue(ye,we,de))}catch(Ce){ye(we,Ce,de)}}):(de.value=W,de.state=oe,lt(de,!1))}catch(we){ye({done:!1},we,de)}}};if(nt&&(ne=function(W){$(this,ae),_(W),d(Fe,this);var G=U(this);try{W(ue(me,G),ue(ye,G))}catch(ce){ye(G,ce)}},ae=ne.prototype,Fe=function(W){p(this,{type:Y,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:ee,value:void 0})},Fe.prototype=N(ae,{then:function(W,G){var ce=x(this),we=ce.reactions,Ce=qe(h(this,ne));return Ce.ok=E(W)?W:!0,Ce.fail=E(G)&&G,Ce.domain=fe?Ue.domain:void 0,ce.parent=!0,we[we.length]=Ce,ce.state!=ee&&lt(ce,!1),Ce.promise},catch:function(de){return this.then(void 0,de)}}),ze=function(){var de=new Fe,W=U(de);this.promise=de,this.resolve=ue(me,W),this.reject=ue(ye,W)},D.f=qe=function(de){return de===ne||de===Ye?new ze(de):se(de)},!s&&E(S)&&H!==Object.prototype)){Je=H.then,Me||(R(H,"then",function(W,G){var ce=this;return new ne(function(we,Ce){d(Je,ce,we,Ce)}).then(W,G)},{unsafe:!0}),R(H,"catch",ae.catch,{unsafe:!0}));try{delete H.constructor}catch{}B&&B(H,ae)}n({global:!0,wrap:!0,forced:nt},{Promise:ne}),A(ne,Y,!1,!0),I(Y),Ye=f(Y),n({target:Y,stat:!0,forced:nt},{reject:function(W){var G=qe(this);return d(G.reject,void 0,W),G.promise}}),n({target:Y,stat:!0,forced:s||nt},{resolve:function(W){return T(s&&this===Ye?ne:this,W)}}),n({target:Y,stat:!0,forced:tt},{all:function(W){var G=this,ce=qe(G),we=ce.resolve,Ce=ce.reject,De=z(function(){var Se=_(G.resolve),He=[],Ne=0,Ve=1;M(W,function(rt){var et=Ne++,pt=!1;Ve++,d(Se,G,rt).then(function(mt){pt||(pt=!0,He[et]=mt,--Ve||we(He))},Ce)}),--Ve||we(He)});return De.error&&Ce(De.value),ce.promise},race:function(W){var G=this,ce=qe(G),we=ce.reject,Ce=z(function(){var De=_(G.resolve);M(W,function(Se){d(De,G,Se).then(ce.resolve,we)})});return Ce.error&&we(Ce.value),ce.promise}})}),((a,i,r)=>{var n=r(10);a.exports=n.Promise}),((a,i,r)=>{var n=r(50);a.exports=function(s,l,f){for(var d in l)n(s,d,l[d],f);return s}}),((a,i,r)=>{var n=r(27),s=r(48),l=r(37),f=r(12),d=l("species");a.exports=function(S){var R=n(S),N=s.f;f&&R&&!R[d]&&N(R,d,{configurable:!0,get:function(){return this}})}}),((a,i,r)=>{var n=r(10),s=r(28),l=n.TypeError;a.exports=function(f,d){if(s(d,f))return f;throw l("Incorrect invocation")}}),((a,i,r)=>{var n=r(37),s=n("iterator"),l=!1;try{var f=0,d={next:function(){return{done:!!f++}},return:function(){l=!0}};d[s]=function(){return this},Array.from(d,function(){throw 2})}catch{}a.exports=function(S,R){if(!R&&!l)return!1;var N=!1;try{var B={};B[s]=function(){return{next:function(){return{done:N=!0}}}},S(B)}catch{}return N}}),((a,i,r)=>{var n=r(49),s=r(114),l=r(37),f=l("species");a.exports=function(d,S){var R=n(d).constructor,N;return R===void 0||(N=n(R)[f])==null?S:s(N)}}),((a,i,r)=>{var n=r(10),s=r(115),l=r(35),f=n.TypeError;a.exports=function(d){if(s(d))return d;throw f(l(d)+" is not a constructor")}}),((a,i,r)=>{var n=r(19),s=r(13),l=r(25),f=r(92),d=r(27),S=r(51),R=function(){},N=[],B=d("Reflect","construct"),A=/^\s*(?:class|function)\b/,I=n(A.exec),_=!A.exec(R),E=function($){if(!l($))return!1;try{return B(R,N,$),!0}catch{return!1}},C=function($){if(!l($))return!1;switch(f($)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return _||!!I(A,S($))};a.exports=!B||s(function(){var $;return E(E.call)||!E(Object)||!E(function(){$=!0})||$})?C:E}),((a,i,r)=>{var n=r(10),s=r(117),l=r(88),f=r(25),d=r(42),S=r(13),R=r(76),N=r(118),B=r(46),A=r(119),I=r(120),_=n.setImmediate,E=n.clearImmediate,C=n.process,$=n.Dispatch,F=n.Function,M=n.MessageChannel,g=n.String,h=0,m={},k="onreadystatechange",T,w,D,z;try{T=n.location}catch{}var J=function(fe){if(d(m,fe)){var ve=m[fe];delete m[fe],ve()}},K=function(fe){return function(){J(fe)}},te=function(fe){J(fe.data)},le=function(fe){n.postMessage(g(fe),T.protocol+"//"+T.host)};(!_||!E)&&(_=function(ve){var q=N(arguments,1);return m[++h]=function(){s(f(ve)?ve:F(ve),void 0,q)},w(h),h},E=function(ve){delete m[ve]},I?w=function(fe){C.nextTick(K(fe))}:$&&$.now?w=function(fe){$.now(K(fe))}:M&&!A?(D=new M,z=D.port2,D.port1.onmessage=te,w=l(z.postMessage,z)):n.addEventListener&&f(n.postMessage)&&!n.importScripts&&T&&T.protocol!=="file:"&&!S(le)?(w=le,n.addEventListener("message",te,!1)):k in B("script")?w=function(fe){R.appendChild(B("script"))[k]=function(){R.removeChild(this),J(fe)}}:w=function(fe){setTimeout(K(fe),0)}),a.exports={set:_,clear:E}}),(a=>{var i=Function.prototype,r=i.apply,n=i.bind,s=i.call;a.exports=typeof Reflect=="object"&&Reflect.apply||(n?s.bind(r):function(){return s.apply(r,arguments)})}),((a,i,r)=>{var n=r(19);a.exports=n([].slice)}),((a,i,r)=>{var n=r(32);
59a.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)}),((a,i,r)=>{var n=r(20),s=r(10);a.exports=n(s.process)=="process"}),((a,i,r)=>{var n=r(10),s=r(88),l=r(11).f,f=r(116).set,d=r(119),S=r(122),R=r(123),N=r(120),B=n.MutationObserver||n.WebKitMutationObserver,A=n.document,I=n.process,_=n.Promise,E=l(n,"queueMicrotask"),C=E&&E.value,$,F,M,g,h,m,k,T;C||($=function(){var w,D;for(N&&(w=I.domain)&&w.exit();F;){D=F.fn,F=F.next;try{D()}catch(z){throw F?g():M=void 0,z}}M=void 0,w&&w.enter()},!d&&!N&&!R&&B&&A?(h=!0,m=A.createTextNode(""),new B($).observe(m,{characterData:!0}),g=function(){m.data=h=!h}):!S&&_&&_.resolve?(k=_.resolve(void 0),k.constructor=_,T=s(k.then,k),g=function(){T($)}):N?g=function(){I.nextTick($)}:(f=s(f,n),g=function(){f($)})),a.exports=C||function(w){var D={fn:w,next:void 0};M&&(M.next=D),F||(F=D,g()),M=D}}),((a,i,r)=>{var n=r(32),s=r(10);a.exports=/ipad|iphone|ipod/i.test(n)&&s.Pebble!==void 0}),((a,i,r)=>{var n=r(32);a.exports=/web0s(?!.*chrome)/i.test(n)}),((a,i,r)=>{var n=r(49),s=r(24),l=r(125);a.exports=function(f,d){if(n(f),s(d)&&d.constructor===f)return d;var S=l.f(f),R=S.resolve;return R(d),S.promise}}),((a,i,r)=>{var n=r(34),s=function(l){var f,d;this.promise=new l(function(S,R){if(f!==void 0||d!==void 0)throw TypeError("Bad Promise constructor");f=S,d=R}),this.resolve=n(f),this.reject=n(d)};a.exports.f=function(l){return new s(l)}}),((a,i,r)=>{var n=r(10);a.exports=function(s,l){var f=n.console;f&&f.error&&(arguments.length==1?f.error(s):f.error(s,l))}}),(a=>{a.exports=function(i){try{return{error:!1,value:i()}}catch(r){return{error:!0,value:r}}}}),(a=>{a.exports=typeof window=="object"}),((a,i,r)=>{var n=r(9),s=r(14),l=r(34),f=r(125),d=r(127),S=r(87);n({target:"Promise",stat:!0},{allSettled:function(N){var B=this,A=f.f(B),I=A.resolve,_=A.reject,E=d(function(){var C=l(B.resolve),$=[],F=0,M=1;S(N,function(g){var h=F++,m=!1;M++,s(C,B,g).then(function(k){m||(m=!0,$[h]={status:"fulfilled",value:k},--M||I($))},function(k){m||(m=!0,$[h]={status:"rejected",reason:k},--M||I($))})}),--M||I($)});return E.error&&_(E.value),A.promise}})}),((a,i,r)=>{var n=r(9),s=r(34),l=r(27),f=r(14),d=r(125),S=r(127),R=r(87),N="No one promise resolved";n({target:"Promise",stat:!0},{any:function(A){var I=this,_=l("AggregateError"),E=d.f(I),C=E.resolve,$=E.reject,F=S(function(){var M=s(I.resolve),g=[],h=0,m=1,k=!1;R(A,function(T){var w=h++,D=!1;
59m++,f(M,I,T).then(function(z){D||k||(k=!0,C(z))},function(z){D||k||(D=!0,g[w]=z,--m||$(new _(g,N)))})}),--m||$(new _(g,N))});return F.error&&$(F.value),E.promise}})}),((a,i,r)=>{var n=r(9),s=r(39),l=r(108),f=r(13),d=r(27),S=r(25),R=r(113),N=r(124),B=r(50),A=!!l&&f(function(){l.prototype.finally.call({then:function(){}},function(){})});if(n({target:"Promise",proto:!0,real:!0,forced:A},{finally:function(_){var E=R(this,d("Promise")),C=S(_);return this.then(C?function($){return N(E,_()).then(function(){return $})}:_,C?function($){return N(E,_()).then(function(){throw $})}:_)}}),!s&&S(l)){var I=d("Promise").prototype.finally;l.prototype.finally!==I&&B(l.prototype,"finally",I,{unsafe:!0})}}),((a,i,r)=>{var n=r(133).charAt,s=r(103),l=r(52),f=r(78),d="String Iterator",S=l.set,R=l.getterFor(d);f(String,"String",function(N){S(this,{type:d,string:s(N),index:0})},function(){var B=R(this),A=B.string,I=B.index,_;return I>=A.length?{value:void 0,done:!0}:(_=n(A,I),B.index+=_.length,{value:_,done:!1})})}),((a,i,r)=>{var n=r(19),s=r(63),l=r(103),f=r(21),d=n("".charAt),S=n("".charCodeAt),R=n("".slice),N=function(B){return function(A,I){var _=l(f(A)),E=s(I),C=_.length,$,F;return E<0||E>=C?B?"":void 0:($=S(_,E),$<55296||$>56319||E+1===C||(F=S(_,E+1))<56320||F>57343?B?d(_,E):$:B?R(_,E,E+2):($-55296<<10)+(F-56320)+65536)}};a.exports={codeAt:N(!1),charAt:N(!0)}}),(function(a,i){(function(r,n){n(i)})(this,function(r){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:function(u){return"Symbol("+u+")"};function s(){}function l(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof commonjsGlobal$1<"u")return commonjsGlobal$1}var f=l();function d(u){return typeof u=="object"&&u!==null||typeof u=="function"}var S=s,R=Promise,N=Promise.prototype.then,B=Promise.resolve.bind(R),A=Promise.reject.bind(R);function I(u){return new R(u)}function _(u){return B(u)}function E(u){return A(u)}function C(u,b,X){return N.call(u,b,X)}function $(u,b,X){C(C(u,b,X),void 0,S)}function F(u,b){$(u,b)}function M(u,b){$(u,void 0,b)}function g(u,b,X){return C(u,b,X)}function h(u){C(u,void 0,S)}var m=(function(){var u=f&&f.queueMicrotask;if(typeof u=="function")return u;var b=_(void 0);return function(X){return C(b,X)}})();function k(u,b,X){if(typeof u!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(u,b,X)}function T(u,b,X){try{return _(k(u,b,X))}catch(be){return E(be)}}var w=16384,D=(function(){function u(){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(u.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0}),u.prototype.push=function(b){var X=this._back,be=X;X._elements.length===w-1&&(be={_elements:[],_next:void 0}),X._elements.push(b),be!==X&&(this._back=be,X._next=be),++this._size},u.prototype.shift=function(){var b=this._front,X=b,be=this._cursor,Be=be+1,Ze=b._elements,at=Ze[be];return Be===w&&(X=b._next,Be=0),--this._size,this._cursor=Be,b!==X&&(this._front=X),Ze[be]=void 0,at},u.prototype.forEach=function(b){for(var X=this._cursor,be=this._front,Be=be._elements;(X!==Be.length||be._next!==void 0)&&!(X===Be.length&&(be=be._next,Be=be._elements,X=0,Be.length===0));)b(Be[X]),++X},u.prototype.peek=function(){var b=this._front,X=this._cursor;return b._elements[X]},u})();function z(u,b){u._ownerReadableStream=b,b._reader=u,b._state==="readable"?le(u):b._state==="closed"?ve(u):fe(u,b._storedError)}function J(u,b){var X=u._ownerReadableStream;return zr(X,b)}function K(u){u._ownerReadableStream._state==="readable"?q(u,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):Y(u,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),u._ownerReadableStream._reader=void 0,u._ownerReadableStream=void 0}function te(u){return new TypeError("Cannot "+u+" a stream using a released reader")}function le(u){u._closedPromise=I(function(b,X){u._closedPromise_resolve=b,u._closedPromise_reject=X})}function fe(u,b){le(u),q(u,b)}function ve(u){le(u),U(u)}function q(u,b){u._closedPromise_reject!==void 0&&(h(u._closedPromise),u._closedPromise_reject(b),u._closedPromise_resolve=void 0,u._closedPromise_reject=void 0)}function Y(u,b){fe(u,b)}function U(u){u._closedPromise_resolve!==void 0&&(u._closedPromise_resolve(void 0),u._closedPromise_resolve=void 0,u._closedPromise_reject=void 0)}var p=n("[[AbortSteps]]"),x=n("[[ErrorSteps]]"),H=n("[[CancelSteps]]"),ne=n("[[PullSteps]]"),ae=Number.isFinite||function(u){return typeof u=="number"&&isFinite(u)},ie=Math.trunc||function(u){return u<0?Math.ceil(u):Math.floor(u)};function xe(u){return typeof u=="object"||typeof u=="function"}function Ue(u,b){if(u!==void 0&&!xe(u))throw new TypeError(b+" is not an object.")}function qe(u,b){if(typeof u!="function")throw new TypeError(b+" is not a function.")}function se(u){return typeof u=="object"&&u!==null||typeof u=="function"}function Q(u,b){if(!se(u))throw new TypeError(b+" is not an object.")}
59function L(u,b,X){if(u===void 0)throw new TypeError("Parameter "+b+" is required in '"+X+"'.")}function P(u,b,X){if(u===void 0)throw new TypeError(b+" is required in '"+X+"'.")}function V(u){return Number(u)}function ee(u){return u===0?0:u}function oe(u){return ee(ie(u))}function pe(u,b){var X=0,be=Number.MAX_SAFE_INTEGER,Be=Number(u);if(Be=ee(Be),!ae(Be))throw new TypeError(b+" is not a finite number");if(Be=oe(Be),Be<X||Be>be)throw new TypeError(b+" is outside the accepted range of "+X+" to "+be+", inclusive");return!ae(Be)||Be===0?0:Be}function Te(u,b){if(!Vr(u))throw new TypeError(b+" is not a ReadableStream.")}function Oe(u){return new Je(u)}function Me(u,b){u._reader._readRequests.push(b)}function Fe(u,b,X){var be=u._reader,Be=be._readRequests.shift();X?Be._closeSteps():Be._chunkSteps(b)}function ze(u){return u._reader._readRequests.length}function Ye(u){var b=u._reader;return!(b===void 0||!nt(b))}var Je=(function(){function u(b){if(L(b,1,"ReadableStreamDefaultReader"),Te(b,"First parameter"),An(b))throw new TypeError("This stream has already been locked for exclusive reading by another reader");z(this,b),this._readRequests=new D}return Object.defineProperty(u.prototype,"closed",{get:function(){return nt(this)?this._closedPromise:E(ct("closed"))},enumerable:!1,configurable:!0}),u.prototype.cancel=function(b){return b===void 0&&(b=void 0),nt(this)?this._ownerReadableStream===void 0?E(te("cancel")):J(this,b):E(ct("cancel"))},u.prototype.read=function(){if(!nt(this))return E(ct("read"));if(this._ownerReadableStream===void 0)return E(te("read from"));var b,X,be=I(function(Ze,at){b=Ze,X=at}),Be={_chunkSteps:function(Ze){return b({value:Ze,done:!1})},_closeSteps:function(){return b({value:void 0,done:!0})},_errorSteps:function(Ze){return X(Ze)}};return tt(this,Be),be},u.prototype.releaseLock=function(){if(!nt(this))throw ct("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");K(this)}},u})();Object.defineProperties(Je.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof n.toStringTag=="symbol"&&Object.defineProperty(Je.prototype,n.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function nt(u){return!d(u)||!Object.prototype.hasOwnProperty.call(u,"_readRequests")?!1:u instanceof Je}function tt(u,b){var X=u._ownerReadableStream;X._disturbed=!0,X._state==="closed"?b._closeSteps():X._state==="errored"?b._errorSteps(X._storedError):X._readableStreamController[ne](b)}function ct(u){return new TypeError("ReadableStreamDefaultReader.prototype."+u+" can only be used on a ReadableStreamDefaultReader")}var lt,Ee;typeof n.asyncIterator=="symbol"&&(Ee=(lt={},lt[n.asyncIterator]=function(){return this},lt),Object.defineProperty(Ee,n.asyncIterator,{enumerable:!1}));var Re=(function(){function u(b,X){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=b,this._preventCancel=X}return u.prototype.next=function(){var b=this,X=function(){return b._nextSteps()};return this._ongoingPromise=this._ongoingPromise?g(this._ongoingPromise,X,X):X(),this._ongoingPromise},u.prototype.return=function(b){var X=this,be=function(){return X._returnSteps(b)};return this._ongoingPromise?g(this._ongoingPromise,be,be):be()},u.prototype._nextSteps=function(){var b=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var X=this._reader;if(X._ownerReadableStream===void 0)return E(te("iterate"));var be,Be,Ze=I(function(vt,Ot){be=vt,Be=Ot}),at={_chunkSteps:function(vt){b._ongoingPromise=void 0,m(function(){return be({value:vt,done:!1})})},_closeSteps:function(){b._ongoingPromise=void 0,b._isFinished=!0,K(X),be({value:void 0,done:!0})},_errorSteps:function(vt){b._ongoingPromise=void 0,b._isFinished=!0,K(X),Be(vt)}};return tt(X,at),Ze},u.prototype._returnSteps=function(b){if(this._isFinished)return Promise.resolve({value:b,done:!0});this._isFinished=!0;var X=this._reader;if(X._ownerReadableStream===void 0)return E(te("finish iterating"));if(!this._preventCancel){var be=J(X,b);return K(X),g(be,function(){return{value:b,done:!0}})}return K(X),_({value:b,done:!0})},u})(),Z={next:function(){return ue(this)?this._asyncIteratorImpl.next():E(ye("next"))},return:function(u){return ue(this)?this._asyncIteratorImpl.return(u):E(ye("return"))}};Ee!==void 0&&Object.setPrototypeOf(Z,Ee);function he(u,b){var X=Oe(u),be=new Re(X,b),Be=Object.create(Z);return Be._asyncIteratorImpl=be,Be}function ue(u){if(!d(u)||!Object.prototype.hasOwnProperty.call(u,"_asyncIteratorImpl"))return!1;try{return u._asyncIteratorImpl instanceof Re}catch{return!1}}function ye(u){return new TypeError("ReadableStreamAsyncIterator."+u+" can only be used on a ReadableSteamAsyncIterator")}var me=Number.isNaN||function(u){return u!==u};function de(u){return u.slice()}function W(u,b,X,be,Be){new Uint8Array(u).set(new Uint8Array(X,be,Be),b)}function G(u){return u}function ce(u){return!1}
59function we(u,b,X){if(u.slice)return u.slice(b,X);var be=X-b,Be=new ArrayBuffer(be);return W(Be,0,u,b,be),Be}function Ce(u){return!(typeof u!="number"||me(u)||u<0)}function De(u){var b=we(u.buffer,u.byteOffset,u.byteOffset+u.byteLength);return new Uint8Array(b)}function Se(u){var b=u._queue.shift();return u._queueTotalSize-=b.size,u._queueTotalSize<0&&(u._queueTotalSize=0),b.value}function He(u,b,X){if(!Ce(X)||X===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");u._queue.push({value:b,size:X}),u._queueTotalSize+=X}function Ne(u){var b=u._queue.peek();return b.value}function Ve(u){u._queue=new D,u._queueTotalSize=0}var rt=(function(){function u(){throw new TypeError("Illegal constructor")}return Object.defineProperty(u.prototype,"view",{get:function(){if(!mt(this))throw Mr("view");return this._view},enumerable:!1,configurable:!0}),u.prototype.respond=function(b){if(!mt(this))throw Mr("respond");if(L(b,1,"respond"),b=pe(b,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");ce(this._view.buffer),Wt(this._associatedReadableByteStreamController,b)},u.prototype.respondWithNewView=function(b){if(!mt(this))throw Mr("respondWithNewView");if(L(b,1,"respondWithNewView"),!ArrayBuffer.isView(b))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");ce(b.buffer),fr(this._associatedReadableByteStreamController,b)},u})();Object.defineProperties(rt.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),typeof n.toStringTag=="symbol"&&Object.defineProperty(rt.prototype,n.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var et=(function(){function u(){throw new TypeError("Illegal constructor")}return Object.defineProperty(u.prototype,"byobRequest",{get:function(){if(!pt(this))throw Mt("byobRequest");return gt(this)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"desiredSize",{get:function(){if(!pt(this))throw Mt("desiredSize");return $t(this)},enumerable:!1,configurable:!0}),u.prototype.close=function(){if(!pt(this))throw Mt("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var b=this._controlledReadableByteStream._state;if(b!=="readable")throw new TypeError("The stream (in "+b+" state) is not in the readable state and cannot be closed");dt(this)},u.prototype.enqueue=function(b){if(!pt(this))throw Mt("enqueue");if(L(b,1,"enqueue"),!ArrayBuffer.isView(b))throw new TypeError("chunk must be an array buffer view");if(b.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(b.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var X=this._controlledReadableByteStream._state;if(X!=="readable")throw new TypeError("The stream (in "+X+" state) is not in the readable state and cannot be enqueued to");ht(this,b)},u.prototype.error=function(b){if(b===void 0&&(b=void 0),!pt(this))throw Mt("error");Pt(this,b)},u.prototype[H]=function(b){Et(this),Ve(this);var X=this._cancelAlgorithm(b);return je(this),X},u.prototype[ne]=function(b){var X=this._controlledReadableByteStream;if(this._queueTotalSize>0){var be=this._queue.shift();this._queueTotalSize-=be.byteLength,Zr(this);var Be=new Uint8Array(be.buffer,be.byteOffset,be.byteLength);b._chunkSteps(Be);return}var Ze=this._autoAllocateChunkSize;if(Ze!==void 0){var at=void 0;try{at=new ArrayBuffer(Ze)}catch(Ot){b._errorSteps(Ot);return}var vt={buffer:at,bufferByteLength:Ze,byteOffset:0,byteLength:Ze,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(vt)}Me(X,b),xt(this)},u})();Object.defineProperties(et.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof n.toStringTag=="symbol"&&Object.defineProperty(et.prototype,n.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function pt(u){return!d(u)||!Object.prototype.hasOwnProperty.call(u,"_controlledReadableByteStream")?!1:u instanceof et}function mt(u){return!d(u)||!Object.prototype.hasOwnProperty.call(u,"_associatedReadableByteStreamController")?!1:u instanceof rt}function xt(u){var b=Ae(u);if(b){if(u._pulling){u._pullAgain=!0;return}u._pulling=!0;var X=u._pullAlgorithm();$(X,function(){u._pulling=!1,u._pullAgain&&(u._pullAgain=!1,xt(u))},function(be){Pt(u,be)})}}function Et(u){en(u),u._pendingPullIntos=new D}function Bt(u,b){var X=!1;u._state==="closed"&&(X=!0);var be=er(b);b.readerType==="default"?Fe(u,be,X):$n(u,be,X)}function er(u){var b=u.bytesFilled,X=u.elementSize;return new u.viewConstructor(u.buffer,u.byteOffset,b/X)}function Kt(u,b,X,be){u._queue.push({buffer:b,byteOffset:X,byteLength:be}),u._queueTotalSize+=be}function gr(u,b){var X=b.elementSize,be=b.bytesFilled-b.bytesFilled%X,Be=Math.min(u._queueTotalSize,b.byteLength-b.bytesFilled),Ze=b.bytesFilled+Be,at=Ze-Ze%X,vt=Be,Ot
59=!1;at>be&&(vt=at-b.bytesFilled,Ot=!0);for(var It=u._queue;vt>0;){var Ft=It.peek(),Lt=Math.min(vt,Ft.byteLength),ar=b.byteOffset+b.bytesFilled;W(b.buffer,ar,Ft.buffer,Ft.byteOffset,Lt),Ft.byteLength===Lt?It.shift():(Ft.byteOffset+=Lt,Ft.byteLength-=Lt),u._queueTotalSize-=Lt,Jr(u,Lt,b),vt-=Lt}return Ot}function Jr(u,b,X){X.bytesFilled+=b}function Zr(u){u._queueTotalSize===0&&u._closeRequested?(je(u),ya(u._controlledReadableByteStream)):xt(u)}function en(u){u._byobRequest!==null&&(u._byobRequest._associatedReadableByteStreamController=void 0,u._byobRequest._view=null,u._byobRequest=null)}function sn(u){for(;u._pendingPullIntos.length>0;){if(u._queueTotalSize===0)return;var b=u._pendingPullIntos.peek();gr(u,b)&&(Ke(u),Bt(u._controlledReadableByteStream,b))}}function Tr(u,b,X){var be=u._controlledReadableByteStream,Be=1;b.constructor!==DataView&&(Be=b.constructor.BYTES_PER_ELEMENT);var Ze=b.constructor,at=b.buffer,vt={buffer:at,bufferByteLength:at.byteLength,byteOffset:b.byteOffset,byteLength:b.byteLength,bytesFilled:0,elementSize:Be,viewConstructor:Ze,readerType:"byob"};if(u._pendingPullIntos.length>0){u._pendingPullIntos.push(vt),or(be,X);return}if(be._state==="closed"){var Ot=new Ze(vt.buffer,vt.byteOffset,0);X._closeSteps(Ot);return}if(u._queueTotalSize>0){if(gr(u,vt)){var It=er(vt);Zr(u),X._chunkSteps(It);return}if(u._closeRequested){var Ft=new TypeError("Insufficient bytes to fill elements in the given buffer");Pt(u,Ft),X._errorSteps(Ft);return}}u._pendingPullIntos.push(vt),or(be,X),xt(u)}function Fr(u,b){var X=u._controlledReadableByteStream;if(gn(X))for(;On(X)>0;){var be=Ke(u);Bt(X,be)}}function br(u,b,X){if(Jr(u,b,X),!(X.bytesFilled<X.elementSize)){Ke(u);var be=X.bytesFilled%X.elementSize;if(be>0){var Be=X.byteOffset+X.bytesFilled,Ze=we(X.buffer,Be-be,Be);Kt(u,Ze,0,Ze.byteLength)}X.bytesFilled-=be,Bt(u._controlledReadableByteStream,X),sn(u)}}function Pe(u,b){var X=u._pendingPullIntos.peek();en(u);var be=u._controlledReadableByteStream._state;be==="closed"?Fr(u):br(u,b,X),xt(u)}function Ke(u){var b=u._pendingPullIntos.shift();return b}function Ae(u){var b=u._controlledReadableByteStream;if(b._state!=="readable"||u._closeRequested||!u._started)return!1;if(Ye(b)&&ze(b)>0||gn(b)&&On(b)>0)return!0;var X=$t(u);return X>0}function je(u){u._pullAlgorithm=void 0,u._cancelAlgorithm=void 0}function dt(u){var b=u._controlledReadableByteStream;if(!(u._closeRequested||b._state!=="readable")){if(u._queueTotalSize>0){u._closeRequested=!0;return}if(u._pendingPullIntos.length>0){var X=u._pendingPullIntos.peek();if(X.bytesFilled>0){var be=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Pt(u,be),be}}je(u),ya(b)}}function ht(u,b){var X=u._controlledReadableByteStream;if(!(u._closeRequested||X._state!=="readable")){var be=b.buffer,Be=b.byteOffset,Ze=b.byteLength,at=be;if(u._pendingPullIntos.length>0){var vt=u._pendingPullIntos.peek();ce(vt.buffer),vt.buffer=vt.buffer}if(en(u),Ye(X))if(ze(X)===0)Kt(u,at,Be,Ze);else{u._pendingPullIntos.length>0&&Ke(u);var Ot=new Uint8Array(at,Be,Ze);Fe(X,Ot,!1)}else gn(X)?(Kt(u,at,Be,Ze),sn(u)):Kt(u,at,Be,Ze);xt(u)}}function Pt(u,b){var X=u._controlledReadableByteStream;X._state==="readable"&&(Et(u),Ve(u),je(u),oo(X,b))}function gt(u){if(u._byobRequest===null&&u._pendingPullIntos.length>0){var b=u._pendingPullIntos.peek(),X=new Uint8Array(b.buffer,b.byteOffset+b.bytesFilled,b.byteLength-b.bytesFilled),be=Object.create(rt.prototype);Sr(be,u,X),u._byobRequest=be}return u._byobRequest}function $t(u){var b=u._controlledReadableByteStream._state;return b==="errored"?null:b==="closed"?0:u._strategyHWM-u._queueTotalSize}function Wt(u,b){var X=u._pendingPullIntos.peek(),be=u._controlledReadableByteStream._state;if(be==="closed"){if(b!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(b===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(X.bytesFilled+b>X.byteLength)throw new RangeError("bytesWritten out of range")}X.buffer=X.buffer,Pe(u,b)}function fr(u,b){var X=u._pendingPullIntos.peek(),be=u._controlledReadableByteStream._state;if(be==="closed"){if(b.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(b.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(X.byteOffset+X.bytesFilled!==b.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");
59if(X.bufferByteLength!==b.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(X.bytesFilled+b.byteLength>X.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");var Be=b.byteLength;X.buffer=b.buffer,Pe(u,Be)}function Gt(u,b,X,be,Be,Ze,at){b._controlledReadableByteStream=u,b._pullAgain=!1,b._pulling=!1,b._byobRequest=null,b._queue=b._queueTotalSize=void 0,Ve(b),b._closeRequested=!1,b._started=!1,b._strategyHWM=Ze,b._pullAlgorithm=be,b._cancelAlgorithm=Be,b._autoAllocateChunkSize=at,b._pendingPullIntos=new D,u._readableStreamController=b;var vt=X();$(_(vt),function(){b._started=!0,xt(b)},function(Ot){Pt(b,Ot)})}function jr(u,b,X){var be=Object.create(et.prototype),Be=function(){},Ze=function(){return _(void 0)},at=function(){return _(void 0)};b.start!==void 0&&(Be=function(){return b.start(be)}),b.pull!==void 0&&(Ze=function(){return b.pull(be)}),b.cancel!==void 0&&(at=function(Ot){return b.cancel(Ot)});var vt=b.autoAllocateChunkSize;if(vt===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");Gt(u,be,Be,Ze,at,X,vt)}function Sr(u,b,X){u._associatedReadableByteStreamController=b,u._view=X}function Mr(u){return new TypeError("ReadableStreamBYOBRequest.prototype."+u+" can only be used on a ReadableStreamBYOBRequest")}function Mt(u){return new TypeError("ReadableByteStreamController.prototype."+u+" can only be used on a ReadableByteStreamController")}function yn(u){return new pr(u)}function or(u,b){u._reader._readIntoRequests.push(b)}function $n(u,b,X){var be=u._reader,Be=be._readIntoRequests.shift();X?Be._closeSteps(b):Be._chunkSteps(b)}function On(u){return u._reader._readIntoRequests.length}function gn(u){var b=u._reader;return!(b===void 0||!Ht(b))}var pr=(function(){function u(b){if(L(b,1,"ReadableStreamBYOBReader"),Te(b,"First parameter"),An(b))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!pt(b._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");z(this,b),this._readIntoRequests=new D}return Object.defineProperty(u.prototype,"closed",{get:function(){return Ht(this)?this._closedPromise:E(bn("closed"))},enumerable:!1,configurable:!0}),u.prototype.cancel=function(b){return b===void 0&&(b=void 0),Ht(this)?this._ownerReadableStream===void 0?E(te("cancel")):J(this,b):E(bn("cancel"))},u.prototype.read=function(b){if(!Ht(this))return E(bn("read"));if(!ArrayBuffer.isView(b))return E(new TypeError("view must be an array buffer view"));if(b.byteLength===0)return E(new TypeError("view must have non-zero byteLength"));if(b.buffer.byteLength===0)return E(new TypeError("view's buffer must have non-zero byteLength"));if(ce(b.buffer),this._ownerReadableStream===void 0)return E(te("read from"));var X,be,Be=I(function(at,vt){X=at,be=vt}),Ze={_chunkSteps:function(at){return X({value:at,done:!1})},_closeSteps:function(at){return X({value:at,done:!0})},_errorSteps:function(at){return be(at)}};return kr(this,b,Ze),Be},u.prototype.releaseLock=function(){if(!Ht(this))throw bn("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");K(this)}},u})();Object.defineProperties(pr.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof n.toStringTag=="symbol"&&Object.defineProperty(pr.prototype,n.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function Ht(u){return!d(u)||!Object.prototype.hasOwnProperty.call(u,"_readIntoRequests")?!1:u instanceof pr}function kr(u,b,X){var be=u._ownerReadableStream;be._disturbed=!0,be._state==="errored"?X._errorSteps(be._storedError):Tr(be._readableStreamController,b,X)}function bn(u){return new TypeError("ReadableStreamBYOBReader.prototype."+u+" can only be used on a ReadableStreamBYOBReader")}function Wn(u,b){var X=u.highWaterMark;if(X===void 0)return b;if(me(X)||X<0)throw new RangeError("Invalid highWaterMark");return X}function aa(u){var b=u.size;return b||function(){return 1}}function In(u,b){Ue(u,b);var X=u?.highWaterMark,be=u?.size;return{highWaterMark:X===void 0?void 0:V(X),size:be===void 0?void 0:Si(be,b+" has member 'size' that")}}function Si(u,b){return qe(u,b),function(X){return V(u(X))}}function Da(u,b){Ue(u,b);var X=u?.abort,be=u?.close,Be=u?.start,Ze=u?.type,at=u?.write;return{abort:X===void 0?void 0:Vn(X,u,b+" has member 'abort' that"),close:be===void 0?void 0:Xi(be,u,b+" has member 'close' that"),start:Be===void 0?void 0:Na(Be,u,b+" has member 'start' that"),write:at===void 0?void 0:Nt(at,u,b+" has member 'write' that"),type:Ze}}function Vn(u,b,X){return qe(u,X),function(be){return T(u,b,[be])}}function Xi(u,b,X){return qe(u,X),function(){return T(u,b,[])}}function Na(u,b,X){return qe(u,X),function(be){return k(u,b,[be])}}function Nt(u,b,X){return qe(u,X),function(be,Be){return T(u,b,[be,Be])}}function Ua(u,b){if(!_r(u))throw new TypeError(b+" is not a WritableStream.")}function _i(u){if(typeof u!="object"||u===null)return!1;try{return typeof u.aborted=="boolean"}catch{return!1}}var ja=typeof AbortController=="function";function wi(){if(ja)return new AbortController}var Fn=(function(){function u(b,X){b===void 0&&(b={}),X===void 0&&(X={}),b===void 0?b=null:Q(b,"First parameter");var be=In(X,"Second parameter"),Be=Da(b,"First parameter");zn(this);var Ze=Be.type;if(Ze!==void 0)throw new RangeError("Invalid type is specified");var at=aa(be),vt=Wn(be,1);la(this,Be,vt,at)}return Object.defineProperty(u.prototype,"locked",{get:function(){if(!_r(this))throw fa("locked");return wr(this)}
59,enumerable:!1,configurable:!0}),u.prototype.abort=function(b){return b===void 0&&(b=void 0),_r(this)?wr(this)?E(new TypeError("Cannot abort a stream that already has a writer")):Lr(this,b):E(fa("abort"))},u.prototype.close=function(){return _r(this)?wr(this)?E(new TypeError("Cannot close a stream that already has a writer")):ge(this)?E(new TypeError("Cannot close an already-closing stream")):Mn(this):E(fa("close"))},u.prototype.getWriter=function(){if(!_r(this))throw fa("getWriter");return Ba(this)},u})();Object.defineProperties(Fn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),typeof n.toStringTag=="symbol"&&Object.defineProperty(Fn.prototype,n.toStringTag,{value:"WritableStream",configurable:!0});function Ba(u){return new nr(u)}function $a(u,b,X,be,Be,Ze){Be===void 0&&(Be=1),Ze===void 0&&(Ze=function(){return 1});var at=Object.create(Fn.prototype);zn(at);var vt=Object.create(Sn.prototype);return Er(at,vt,u,b,X,be,Be,Ze),at}function zn(u){u._state="writable",u._storedError=void 0,u._writer=void 0,u._writableStreamController=void 0,u._writeRequests=new D,u._inFlightWriteRequest=void 0,u._closeRequest=void 0,u._inFlightCloseRequest=void 0,u._pendingAbortRequest=void 0,u._backpressure=!1}function _r(u){return!d(u)||!Object.prototype.hasOwnProperty.call(u,"_writableStreamController")?!1:u instanceof Fn}function wr(u){return u._writer!==void 0}function Lr(u,b){var X;if(u._state==="closed"||u._state==="errored")return _(void 0);u._writableStreamController._abortReason=b,(X=u._writableStreamController._abortController)===null||X===void 0||X.abort();var be=u._state;if(be==="closed"||be==="errored")return _(void 0);if(u._pendingAbortRequest!==void 0)return u._pendingAbortRequest._promise;var Be=!1;be==="erroring"&&(Be=!0,b=void 0);var Ze=I(function(at,vt){u._pendingAbortRequest={_promise:void 0,_resolve:at,_reject:vt,_reason:b,_wasAlreadyErroring:Be}});return u._pendingAbortRequest._promise=Ze,Be||Wa(u,b),Ze}function Mn(u){var b=u._state;if(b==="closed"||b==="errored")return E(new TypeError("The stream (in "+b+" state) is not in the writable state and cannot be closed"));var X=I(function(Be,Ze){var at={_resolve:Be,_reject:Ze};u._closeRequest=at}),be=u._writer;
59return be!==void 0&&u._backpressure&&b==="writable"&&to(be),qa(u._writableStreamController),X}function Hn(u){var b=I(function(X,be){var Be={_resolve:X,_reject:be};u._writeRequests.push(Be)});return b}function Br(u,b){var X=u._state;if(X==="writable"){Wa(u,b);return}ia(u)}function Wa(u,b){var X=u._writableStreamController;u._state="erroring",u._storedError=b;var be=u._writer;be!==void 0&&Wr(be,b),!ke(u)&&X._started&&ia(u)}function ia(u){u._state="errored",u._writableStreamController[x]();var b=u._storedError;if(u._writeRequests.forEach(function(Be){Be._reject(b)}),u._writeRequests=new D,u._pendingAbortRequest===void 0){Ct(u);return}var X=u._pendingAbortRequest;if(u._pendingAbortRequest=void 0,X._wasAlreadyErroring){X._reject(b),Ct(u);return}var be=u._writableStreamController[p](X._reason);$(be,function(){X._resolve(),Ct(u)},function(Be){X._reject(Be),Ct(u)})}function Gn(u){u._inFlightWriteRequest._resolve(void 0),u._inFlightWriteRequest=void 0}function Ai(u,b){u._inFlightWriteRequest._reject(b),u._inFlightWriteRequest=void 0,Br(u,b)}function Pi(u){u._inFlightCloseRequest._resolve(void 0),u._inFlightCloseRequest=void 0;var b=u._state;b==="erroring"&&(u._storedError=void 0,u._pendingAbortRequest!==void 0&&(u._pendingAbortRequest._resolve(),u._pendingAbortRequest=void 0)),u._state="closed";var X=u._writer;X!==void 0&&xo(X)}function $e(u,b){u._inFlightCloseRequest._reject(b),u._inFlightCloseRequest=void 0,u._pendingAbortRequest!==void 0&&(u._pendingAbortRequest._reject(b),u._pendingAbortRequest=void 0),Br(u,b)}function ge(u){return!(u._closeRequest===void 0&&u._inFlightCloseRequest===void 0)}function ke(u){return!(u._inFlightWriteRequest===void 0&&u._inFlightCloseRequest===void 0)}function Qe(u){u._inFlightCloseRequest=u._closeRequest,u._closeRequest=void 0}function it(u){u._inFlightWriteRequest=u._writeRequests.shift()}function Ct(u){u._closeRequest!==void 0&&(u._closeRequest._reject(u._storedError),u._closeRequest=void 0);var b=u._writer;b!==void 0&&eo(b,u._storedError)}function Vt(u,b){var X=u._writer;X!==void 0&&b!==u._backpressure&&(b?Us(X):to(X)),u._backpressure=b}var nr=(function(){function u(b){if(L(b,1,"WritableStreamDefaultWriter"),Ua(b,"First parameter"),wr(b))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=b,b._writer=this;var X=b._state;if(X==="writable")!ge(b)&&b._backpressure?Ci(this):Oo(this),Ei(this);else if(X==="erroring")Xa(this,b._storedError),Ei(this);else if(X==="closed")Oo(this),Ro(this);else{var be=b._storedError;Xa(this,be),Co(this,be)}}return Object.defineProperty(u.prototype,"closed",{get:function(){return $r(this)?this._closedPromise:E(Yn("closed"))},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"desiredSize",{get:function(){if(!$r(this))throw Yn("desiredSize");if(this._ownerWritableStream===void 0)throw Ya("desiredSize");return sa(this)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"ready",{get:function(){return $r(this)?this._readyPromise:E(Yn("ready"))},enumerable:!1,configurable:!0}),u.prototype.abort=function(b){return b===void 0&&(b=void 0),$r(this)?this._ownerWritableStream===void 0?E(Ya("abort")):Va(this,b):E(Yn("abort"))},u.prototype.close=function(){if(!$r(this))return E(Yn("close"));var b=this._ownerWritableStream;return b===void 0?E(Ya("close")):ge(b)?E(new TypeError("Cannot close an already-closing stream")):qn(this)},u.prototype.releaseLock=function(){if(!$r(this))throw Yn("releaseLock");var b=this._ownerWritableStream;b!==void 0&&Ha(this)},u.prototype.write=function(b){return b===void 0&&(b=void 0),$r(this)?this._ownerWritableStream===void 0?E(Ya("write to")):Ki(this,b):E(Yn("write"))},u})();Object.defineProperties(nr.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),typeof n.toStringTag=="symbol"&&Object.defineProperty(nr.prototype,n.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function $r(u){return!d(u)||!Object.prototype.hasOwnProperty.call(u,"_ownerWritableStream")?!1:u instanceof nr}function Va(u,b){var X=u._ownerWritableStream;return Lr(X,b)}function qn(u){var b=u._ownerWritableStream;return Mn(b)}function oa(u){var b=u._ownerWritableStream,X=b._state;return ge(b)||X==="closed"?_(void 0):X==="errored"?E(b._storedError):qn(u)}function za(u,b){u._closedPromiseState==="pending"?eo(u,b):Ns(u,b)}function Wr(u,b){u._readyPromiseState==="pending"?Io(u,b):Fo(u,b)}function sa(u){var b=u._ownerWritableStream,X=b._state;return X==="errored"||X==="erroring"?null:X==="closed"?0:ki(b._writableStreamController)}function Ha(u){var b=u._ownerWritableStream,X=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Wr(u,X),za(u,X),b._writer=void 0,u._ownerWritableStream=void 0}function Ki(u,b){var X=u._ownerWritableStream,be=X._writableStreamController,Be=Ls(be,b);if(X!==u._ownerWritableStream)return E(Ya("write to"));var Ze=X._state;if(Ze==="errored")return E(X._storedError);if(ge(X)||Ze==="closed")return E(new TypeError("The stream is closing or closed and cannot be written to"));if(Ze==="erroring")return E(X._storedError);var at=Hn(X);return Qi(be,b,Be),at}var Ga={},Sn=(function(){function u(){throw new TypeError("Illegal constructor")}return Object.defineProperty(u.prototype,"abortReason",{get:function(){if(!Ti(this))throw Zi("abortReason");return this._abortReason}
59,enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"signal",{get:function(){if(!Ti(this))throw Zi("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal},enumerable:!1,configurable:!0}),u.prototype.error=function(b){if(b===void 0&&(b=void 0),!Ti(this))throw Zi("error");var X=this._controlledWritableStream._state;X==="writable"&&Eo(this,b)},u.prototype[p]=function(b){var X=this._abortAlgorithm(b);return ua(this),X},u.prototype[x]=function(){Ve(this)},u})();Object.defineProperties(Sn.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof n.toStringTag=="symbol"&&Object.defineProperty(Sn.prototype,n.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function Ti(u){return!d(u)||!Object.prototype.hasOwnProperty.call(u,"_controlledWritableStream")?!1:u instanceof Sn}function Er(u,b,X,be,Be,Ze,at,vt){b._controlledWritableStream=u,u._writableStreamController=b,b._queue=void 0,b._queueTotalSize=void 0,Ve(b),b._abortReason=void 0,b._abortController=wi(),b._started=!1,b._strategySizeAlgorithm=vt,b._strategyHWM=at,b._writeAlgorithm=be,b._closeAlgorithm=Be,b._abortAlgorithm=Ze;var Ot=Ji(b);Vt(u,Ot);var It=X(),Ft=_(It);$(Ft,function(){b._started=!0,Ln(b)},function(Lt){b._started=!0,Br(u,Lt)})}function la(u,b,X,be){var Be=Object.create(Sn.prototype),Ze=function(){},at=function(){return _(void 0)},vt=function(){return _(void 0)},Ot=function(){return _(void 0)};b.start!==void 0&&(Ze=function(){return b.start(Be)}),b.write!==void 0&&(at=function(It){return b.write(It,Be)}),b.close!==void 0&&(vt=function(){return b.close()}),b.abort!==void 0&&(Ot=function(It){return b.abort(It)}),Er(u,Be,Ze,at,vt,Ot,X,be)}function ua(u){u._writeAlgorithm=void 0,u._closeAlgorithm=void 0,u._abortAlgorithm=void 0,u._strategySizeAlgorithm=void 0}function qa(u){He(u,Ga,0),Ln(u)}function Ls(u,b){try{return u._strategySizeAlgorithm(b)}catch(X){return ca(u,X),1}}function ki(u){return u._strategyHWM-u._queueTotalSize}function Qi(u,b,X){try{He(u,b,X)}catch(Ze){ca(u,Ze);return}var be=u._controlledWritableStream;if(!ge(be)&&be._state==="writable"){var Be=Ji(u);Vt(be,Be)}Ln(u)}function Ln(u){var b=u._controlledWritableStream;if(u._started&&b._inFlightWriteRequest===void 0){var X=b._state;if(X==="erroring"){ia(b);return}if(u._queue.length!==0){var be=Ne(u);be===Ga?ko(u):Ds(u,be)}}}function ca(u,b){u._controlledWritableStream._state==="writable"&&Eo(u,b)}function ko(u){var b=u._controlledWritableStream;Qe(b),Se(u);var X=u._closeAlgorithm();ua(u),$(X,function(){Pi(b)},function(be){$e(b,be)})}function Ds(u,b){var X=u._controlledWritableStream;it(X);var be=u._writeAlgorithm(b);$(be,function(){Gn(X);var Be=X._state;if(Se(u),!ge(X)&&Be==="writable"){var Ze=Ji(u);Vt(X,Ze)}Ln(u)},function(Be){X._state==="writable"&&ua(u),Ai(X,Be)})}function Ji(u){var b=ki(u);return b<=0}function Eo(u,b){var X=u._controlledWritableStream;ua(u),Wa(X,b)}function fa(u){return new TypeError("WritableStream.prototype."+u+" can only be used on a WritableStream")}function Zi(u){return new TypeError("WritableStreamDefaultController.prototype."+u+" can only be used on a WritableStreamDefaultController")}function Yn(u){return new TypeError("WritableStreamDefaultWriter.prototype."+u+" can only be used on a WritableStreamDefaultWriter")}function Ya(u){return new TypeError("Cannot "+u+" a stream using a released writer")}function Ei(u){u._closedPromise=I(function(b,X){u._closedPromise_resolve=b,u._closedPromise_reject=X,u._closedPromiseState="pending"})}function Co(u,b){Ei(u),eo(u,b)}function Ro(u){Ei(u),xo(u)}function eo(u,b){u._closedPromise_reject!==void 0&&(h(u._closedPromise),u._closedPromise_reject(b),u._closedPromise_resolve=void 0,u._closedPromise_reject=void 0,u._closedPromiseState="rejected")}function Ns(u,b){Co(u,b)}function xo(u){u._closedPromise_resolve!==void 0&&(u._closedPromise_resolve(void 0),u._closedPromise_resolve=void 0,u._closedPromise_reject=void 0,u._closedPromiseState="resolved")}function Ci(u){u._readyPromise=I(function(b,X){u._readyPromise_resolve=b,u._readyPromise_reject=X}),u._readyPromiseState="pending"}function Xa(u,b){Ci(u),Io(u,b)}function Oo(u){Ci(u),to(u)}function Io(u,b){u._readyPromise_reject!==void 0&&(h(u._readyPromise),u._readyPromise_reject(b),u._readyPromise_resolve=void 0,u._readyPromise_reject=void 0,u._readyPromiseState="rejected")}function Us(u){Ci(u)}function Fo(u,b){Xa(u,b)}function to(u){u._readyPromise_resolve!==void 0&&(u._readyPromise_resolve(void 0),u._readyPromise_resolve=void 0,u._readyPromise_reject=void 0,u._readyPromiseState="fulfilled")}var Mo=typeof DOMException<"u"?DOMException:void 0;function js(u){if(!(typeof u=="function"||typeof u=="object"))return!1;try{return new u,!0}catch{return!1}}function Bs(){var u=function(X,be){this.message=X||"",this.name=be||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return u.prototype=Object.create(Error.prototype),Object.defineProperty(u.prototype,"constructor",{value:u,writable:!0,configurable:!0}),u}var $s=js(Mo)?Mo:Bs();function Lo(u,b,X,be,Be,Ze){var at=Oe(u),vt=Ba(b);u._disturbed=!0;var Ot=!1,It=_(void 0);return I(function(Ft,Lt){var ar;if(Ze!==void 0){if(ar=function(){var At=new $s("Aborted","AbortError"),Dt=[];be||Dt.push(function(){return b._state==="writable"?Lr(b,At):_(void 0)}),Be||Dt.push(function(){return u._state==="readable"?zr(u,At):_(void 0)}),lr(function(){return Promise.all(Dt.map(function(Qt){return Qt()}))},!0,At)},Ze.aborted){ar();return}Ze.addEventListener("abort",ar)}function Hr(){return I(function(At,Dt){function Qt(ln){ln?At():C(Aa(),Qt,Dt)}Qt(!1)})}function Aa(){return Ot?_(!0):C(vt._readyPromise,function(){return I(function(At,Dt){tt(at,{_chunkSteps:function(Qt){It=C(Ki(vt,Qt),void 0,s),At(!1)},_closeSteps:function(){return At(!0)},_errorSteps:Dt})})})}if(Yt(u,at._closedPromise,function(At){be?ur(!0,At):lr(function(){return Lr(b,At)},!0,At)}),Yt(b,vt._closedPromise,function(At){Be?ur(!0,At):lr(function(){return zr(u,At)},!0,At)}),rn(u,at._closedPromise,function(){X?ur():lr(function(){return oa(vt)})}),ge(b)||b._state==="closed"){var Nn=new TypeError("the destination writable stream closed before all data could be piped to it");Be?ur(!0,Nn):lr(function(){return zr(u,Nn)},!0,Nn)}h(Hr());function Gr(){var At=It;return C(It,function(){return At!==It?Gr():void 0})}function Yt(At,Dt,Qt){At._state==="errored"?Qt(At._storedError):M(Dt,Qt)}function rn(At,Dt,Qt){At._state==="closed"?Qt():F(Dt,Qt)}function lr(At,Dt,Qt){if(Ot)return;Ot=!0,b._state==="writable"&&!ge(b)?F(Gr(),ln):ln();function ln(){$(At(),function(){return zt(Dt,Qt)},function(Cr){return zt(!0,Cr)})}}function ur(At,Dt){Ot||(Ot=!0,b._state==="writable"&&!ge(b)?F(Gr(),function(){return zt(At,Dt)}):zt(At,Dt))}function zt(At,Dt){Ha(vt),K(at),Ze!==void 0&&Ze.removeEventListener("abort",ar),At?Lt(Dt):Ft(void 0)}})}var da=(function(){function u(){throw new TypeError("Illegal constructor")}return Object.defineProperty(u.prototype,"desiredSize",{get:function(){if(!ha(this))throw Ja("desiredSize");return Ri(this)}
59,enumerable:!1,configurable:!0}),u.prototype.close=function(){if(!ha(this))throw Ja("close");if(!ma(this))throw new TypeError("The stream is not in a state that permits close");pa(this)},u.prototype.enqueue=function(b){if(b===void 0&&(b=void 0),!ha(this))throw Ja("enqueue");if(!ma(this))throw new TypeError("The stream is not in a state that permits enqueue");return Qa(this,b)},u.prototype.error=function(b){if(b===void 0&&(b=void 0),!ha(this))throw Ja("error");wn(this,b)},u.prototype[H]=function(b){Ve(this);var X=this._cancelAlgorithm(b);return Ka(this),X},u.prototype[ne]=function(b){var X=this._controlledReadableStream;if(this._queue.length>0){var be=Se(this);this._closeRequested&&this._queue.length===0?(Ka(this),ya(X)):_n(this),b._chunkSteps(be)}else Me(X,b),_n(this)},u})();Object.defineProperties(da.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof n.toStringTag=="symbol"&&Object.defineProperty(da.prototype,n.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function ha(u){return!d(u)||!Object.prototype.hasOwnProperty.call(u,"_controlledReadableStream")?!1:u instanceof da}function _n(u){var b=Do(u);if(b){if(u._pulling){u._pullAgain=!0;return}u._pulling=!0;var X=u._pullAlgorithm();$(X,function(){u._pulling=!1,u._pullAgain&&(u._pullAgain=!1,_n(u))},function(be){wn(u,be)})}}function Do(u){var b=u._controlledReadableStream;if(!ma(u)||!u._started)return!1;if(An(b)&&ze(b)>0)return!0;var X=Ri(u);return X>0}function Ka(u){u._pullAlgorithm=void 0,u._cancelAlgorithm=void 0,u._strategySizeAlgorithm=void 0}function pa(u){if(ma(u)){var b=u._controlledReadableStream;u._closeRequested=!0,u._queue.length===0&&(Ka(u),ya(b))}}function Qa(u,b){if(ma(u)){var X=u._controlledReadableStream;if(An(X)&&ze(X)>0)Fe(X,b,!1);else{var be=void 0;try{be=u._strategySizeAlgorithm(b)}catch(Be){throw wn(u,Be),Be}try{He(u,b,be)}catch(Be){throw wn(u,Be),Be}}_n(u)}}function wn(u,b){var X=u._controlledReadableStream;X._state==="readable"&&(Ve(u),Ka(u),oo(X,b))}function Ri(u){var b=u._controlledReadableStream._state;return b==="errored"?null:b==="closed"?0:u._strategyHWM-u._queueTotalSize}function va(u){return!Do(u)}function ma(u){var b=u._controlledReadableStream._state;return!u._closeRequested&&b==="readable"}function No(u,b,X,be,Be,Ze,at){b._controlledReadableStream=u,b._queue=void 0,b._queueTotalSize=void 0,Ve(b),b._started=!1,b._closeRequested=!1,b._pullAgain=!1,b._pulling=!1,b._strategySizeAlgorithm=at,b._strategyHWM=Ze,b._pullAlgorithm=be,b._cancelAlgorithm=Be,u._readableStreamController=b;var vt=X();$(_(vt),function(){b._started=!0,_n(b)},function(Ot){wn(b,Ot)})}function Ws(u,b,X,be){var Be=Object.create(da.prototype),Ze=function(){},at=function(){return _(void 0)},vt=function(){return _(void 0)};b.start!==void 0&&(Ze=function(){return b.start(Be)}),b.pull!==void 0&&(at=function(){return b.pull(Be)}),b.cancel!==void 0&&(vt=function(Ot){return b.cancel(Ot)}),No(u,Be,Ze,at,vt,X,be)}function Ja(u){return new TypeError("ReadableStreamDefaultController.prototype."+u+" can only be used on a ReadableStreamDefaultController")}function Uo(u,b){return pt(u._readableStreamController)?ei(u):Za(u)}function Za(u,b){var X=Oe(u),be=!1,Be=!1,Ze=!1,at=!1,vt,Ot,It,Ft,Lt,ar=I(function(Yt){Lt=Yt});function Hr(){if(be)return Be=!0,_(void 0);be=!0;var Yt={_chunkSteps:function(rn){m(function(){Be=!1;var lr=rn,ur=rn;Ze||Qa(It._readableStreamController,lr),at||Qa(Ft._readableStreamController,ur),be=!1,Be&&Hr()})},_closeSteps:function(){be=!1,Ze||pa(It._readableStreamController),at||pa(Ft._readableStreamController),(!Ze||!at)&&Lt(void 0)},_errorSteps:function(){be=!1}};return tt(X,Yt),_(void 0)}function Aa(Yt){if(Ze=!0,vt=Yt,at){var rn=de([vt,Ot]),lr=zr(u,rn);Lt(lr)}return ar}function Nn(Yt){if(at=!0,Ot=Yt,Ze){var rn=de([vt,Ot]),lr=zr(u,rn);Lt(lr)}return ar}function Gr(){}return It=io(Gr,Hr,Aa),Ft=io(Gr,Hr,Nn),M(X._closedPromise,function(Yt){wn(It._readableStreamController,Yt),wn(Ft._readableStreamController,Yt),(!Ze||!at)&&Lt(void 0)}),[It,Ft]}function ei(u){var b=Oe(u),X=!1,be=!1,Be=!1,Ze=!1,at=!1,vt,Ot,It,Ft,Lt,ar=I(function(zt){Lt=zt});function Hr(zt){M(zt._closedPromise,function(At){zt===b&&(Pt(It._readableStreamController,At),Pt(Ft._readableStreamController,At),(!
59Ze||!at)&&Lt(void 0))})}function Aa(){Ht(b)&&(K(b),b=Oe(u),Hr(b));var zt={_chunkSteps:function(At){m(function(){be=!1,Be=!1;var Dt=At,Qt=At;if(!Ze&&!at)try{Qt=De(At)}catch(ln){Pt(It._readableStreamController,ln),Pt(Ft._readableStreamController,ln),Lt(zr(u,ln));return}Ze||ht(It._readableStreamController,Dt),at||ht(Ft._readableStreamController,Qt),X=!1,be?Gr():Be&&Yt()})},_closeSteps:function(){X=!1,Ze||dt(It._readableStreamController),at||dt(Ft._readableStreamController),It._readableStreamController._pendingPullIntos.length>0&&Wt(It._readableStreamController,0),Ft._readableStreamController._pendingPullIntos.length>0&&Wt(Ft._readableStreamController,0),(!Ze||!at)&&Lt(void 0)},_errorSteps:function(){X=!1}};tt(b,zt)}function Nn(zt,At){nt(b)&&(K(b),b=yn(u),Hr(b));var Dt=At?Ft:It,Qt=At?It:Ft,ln={_chunkSteps:function(Cr){m(function(){be=!1,Be=!1;var un=At?at:Ze,cn=At?Ze:at;if(cn)un||fr(Dt._readableStreamController,Cr);else{var si=void 0;try{si=De(Cr)}catch(li){Pt(Dt._readableStreamController,li),Pt(Qt._readableStreamController,li),Lt(zr(u,li));return}un||fr(Dt._readableStreamController,Cr),ht(Qt._readableStreamController,si)}X=!1,be?Gr():Be&&Yt()})},_closeSteps:function(Cr){X=!1;var un=At?at:Ze,cn=At?Ze:at;un||dt(Dt._readableStreamController),cn||dt(Qt._readableStreamController),Cr!==void 0&&(un||fr(Dt._readableStreamController,Cr),!cn&&Qt._readableStreamController._pendingPullIntos.length>0&&Wt(Qt._readableStreamController,0)),(!un||!cn)&&Lt(void 0)},_errorSteps:function(){X=!1}};kr(b,zt,ln)}function Gr(){if(X)return be=!0,_(void 0);X=!0;var zt=gt(It._readableStreamController);return zt===null?Aa():Nn(zt._view,!1),_(void 0)}function Yt(){if(X)return Be=!0,_(void 0);X=!0;var zt=gt(Ft._readableStreamController);return zt===null?Aa():Nn(zt._view,!0),_(void 0)}function rn(zt){if(Ze=!0,vt=zt,at){var At=de([vt,Ot]),Dt=zr(u,At);Lt(Dt)}return ar}function lr(zt){if(at=!0,Ot=zt,Ze){var At=de([vt,Ot]),Dt=zr(u,At);Lt(Dt)}return ar}function ur(){}return It=Wo(ur,Gr,rn),Ft=Wo(ur,Yt,lr),Hr(b),[It,Ft]}function Vs(u,b){Ue(u,b);var X=u,be=X?.autoAllocateChunkSize,Be=X?.cancel,Ze=X?.pull,at=X?.start,vt=X?.type;return{autoAllocateChunkSize:be===void 0?void 0:pe(be,b+" has member 'autoAllocateChunkSize' that"),cancel:Be===void 0?void 0:xi(Be,X,b+" has member 'cancel' that"),pull:Ze===void 0?void 0:zs(Ze,X,b+" has member 'pull' that"),start:at===void 0?void 0:jo(at,X,b+" has member 'start' that"),type:vt===void 0?void 0:ro(vt,b+" has member 'type' that")}}function xi(u,b,X){return qe(u,X),function(be){return T(u,b,[be])}}function zs(u,b,X){return qe(u,X),function(be){return T(u,b,[be])}}function jo(u,b,X){return qe(u,X),function(be){return k(u,b,[be])}}function ro(u,b){if(u=""+u,u!=="bytes")throw new TypeError(b+" '"+u+"' is not a valid enumeration value for ReadableStreamType");return u}function no(u,b){Ue(u,b);var X=u?.mode;return{mode:X===void 0?void 0:Bo(X,b+" has member 'mode' that")}}function Bo(u,b){if(u=""+u,u!=="byob")throw new TypeError(b+" '"+u+"' is not a valid enumeration value for ReadableStreamReaderMode");return u}function $o(u,b){Ue(u,b);var X=u?.preventCancel;return{preventCancel:!!X}}function ao(u,b){Ue(u,b);var X=u?.preventAbort,be=u?.preventCancel,Be=u?.preventClose,Ze=u?.signal;return Ze!==void 0&&Hs(Ze,b+" has member 'signal' that"),{preventAbort:!!X,preventCancel:!!be,preventClose:!!Be,signal:Ze}}function Hs(u,b){if(!_i(u))throw new TypeError(b+" is not an AbortSignal.")}function Gs(u,b){Ue(u,b);var X=u?.readable;P(X,"readable","ReadableWritablePair"),Te(X,b+" has member 'readable' that");var be=u?.writable;return P(be,"writable","ReadableWritablePair"),Ua(be,b+" has member 'writable' that"),{readable:X,writable:be}}var Dn=(function(){function u(b,X){b===void 0&&(b={}),X===void 0&&(X={}),b===void 0?b=null:Q(b,"First parameter");var be=In(X,"Second parameter"),Be=Vs(b,"First parameter");if(Dr(this),Be.type==="bytes"){if(be.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");var Ze=Wn(be,0);jr(this,Be,Ze)}else{var at=aa(be),Ze=Wn(be,1);Ws(this,Be,Ze,at)}}return Object.defineProperty(u.prototype,"locked",{get:function(){if(!Vr(this))throw Pn("locked");return An(this)}
59,enumerable:!1,configurable:!0}),u.prototype.cancel=function(b){return b===void 0&&(b=void 0),Vr(this)?An(this)?E(new TypeError("Cannot cancel a stream that already has a reader")):zr(this,b):E(Pn("cancel"))},u.prototype.getReader=function(b){if(b===void 0&&(b=void 0),!Vr(this))throw Pn("getReader");var X=no(b,"First parameter");return X.mode===void 0?Oe(this):yn(this)},u.prototype.pipeThrough=function(b,X){if(X===void 0&&(X={}),!Vr(this))throw Pn("pipeThrough");L(b,1,"pipeThrough");var be=Gs(b,"First parameter"),Be=ao(X,"Second parameter");if(An(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(wr(be.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var Ze=Lo(this,be.writable,Be.preventClose,Be.preventAbort,Be.preventCancel,Be.signal);return h(Ze),be.readable},u.prototype.pipeTo=function(b,X){if(X===void 0&&(X={}),!Vr(this))return E(Pn("pipeTo"));if(b===void 0)return E("Parameter 1 is required in 'pipeTo'.");if(!_r(b))return E(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var be;try{be=ao(X,"Second parameter")}catch(Be){return E(Be)}return An(this)?E(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):wr(b)?E(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Lo(this,b,be.preventClose,be.preventAbort,be.preventCancel,be.signal)},u.prototype.tee=function(){if(!Vr(this))throw Pn("tee");var b=Uo(this);return de(b)},u.prototype.values=function(b){if(b===void 0&&(b=void 0),!Vr(this))throw Pn("values");var X=$o(b,"First parameter");return he(this,X.preventCancel)},u})();Object.defineProperties(Dn.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),typeof n.toStringTag=="symbol"&&Object.defineProperty(Dn.prototype,n.toStringTag,{value:"ReadableStream",configurable:!0}),typeof n.asyncIterator=="symbol"&&Object.defineProperty(Dn.prototype,n.asyncIterator,{value:Dn.prototype.values,writable:!0,configurable:!0});function io(u,b,X,be,Be){be===void 0&&(be=1),Be===void 0&&(Be=function(){return 1});var Ze=Object.create(Dn.prototype);Dr(Ze);var at=Object.create(da.prototype);return No(Ze,at,u,b,X,be,Be),Ze}function Wo(u,b,X){var be=Object.create(Dn.prototype);Dr(be);var Be=Object.create(et.prototype);return Gt(be,Be,u,b,X,0,void 0),be}function Dr(u){u._state="readable",u._reader=void 0,u._storedError=void 0,u._disturbed=!1}function Vr(u){return!d(u)||!Object.prototype.hasOwnProperty.call(u,"_readableStreamController")?!1:u instanceof Dn}function An(u){return u._reader!==void 0}function zr(u,b){if(u._disturbed=!0,u._state==="closed")return _(void 0);if(u._state==="errored")return E(u._storedError);ya(u);var X=u._reader;X!==void 0&&Ht(X)&&(X._readIntoRequests.forEach(function(Be){Be._closeSteps(void 0)}),X._readIntoRequests=new D);var be=u._readableStreamController[H](b);return g(be,s)}function ya(u){u._state="closed";var b=u._reader;b!==void 0&&(U(b),nt(b)&&(b._readRequests.forEach(function(X){X._closeSteps()}),b._readRequests=new D))}function oo(u,b){u._state="errored",u._storedError=b;var X=u._reader;X!==void 0&&(q(X,b),nt(X)?(X._readRequests.forEach(function(be){be._errorSteps(b)}),X._readRequests=new D):(X._readIntoRequests.forEach(function(be){be._errorSteps(b)}),X._readIntoRequests=new D))}function Pn(u){return new TypeError("ReadableStream.prototype."+u+" can only be used on a ReadableStream")}function Vo(u,b){Ue(u,b);var X=u?.highWaterMark;return P(X,"highWaterMark","QueuingStrategyInit"),{highWaterMark:V(X)}}var zo=function(u){return u.byteLength};Object.defineProperty(zo,"name",{value:"size",configurable:!0});var Tn=(function(){function u(b){L(b,1,"ByteLengthQueuingStrategy"),b=Vo(b,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=b.highWaterMark}return Object.defineProperty(u.prototype,"highWaterMark",{get:function(){if(!ga(this))throw Oi("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}
59,enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"size",{get:function(){if(!ga(this))throw Oi("size");return zo},enumerable:!1,configurable:!0}),u})();Object.defineProperties(Tn.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof n.toStringTag=="symbol"&&Object.defineProperty(Tn.prototype,n.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function Oi(u){return new TypeError("ByteLengthQueuingStrategy.prototype."+u+" can only be used on a ByteLengthQueuingStrategy")}function ga(u){return!d(u)||!Object.prototype.hasOwnProperty.call(u,"_byteLengthQueuingStrategyHighWaterMark")?!1:u instanceof Tn}var Ii=function(){return 1};Object.defineProperty(Ii,"name",{value:"size",configurable:!0});var ti=(function(){function u(b){L(b,1,"CountQueuingStrategy"),b=Vo(b,"First parameter"),this._countQueuingStrategyHighWaterMark=b.highWaterMark}return Object.defineProperty(u.prototype,"highWaterMark",{get:function(){if(!Xn(this))throw ri("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"size",{get:function(){if(!Xn(this))throw ri("size");return Ii},enumerable:!1,configurable:!0}),u})();Object.defineProperties(ti.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof n.toStringTag=="symbol"&&Object.defineProperty(ti.prototype,n.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function ri(u){return new TypeError("CountQueuingStrategy.prototype."+u+" can only be used on a CountQueuingStrategy")}function Xn(u){return!d(u)||!Object.prototype.hasOwnProperty.call(u,"_countQueuingStrategyHighWaterMark")?!1:u instanceof ti}function so(u,b){Ue(u,b);var X=u?.flush,be=u?.readableType,Be=u?.start,Ze=u?.transform,at=u?.writableType;return{flush:X===void 0?void 0:Ho(X,u,b+" has member 'flush' that"),readableType:be,start:Be===void 0?void 0:Fi(Be,u,b+" has member 'start' that"),transform:Ze===void 0?void 0:Go(Ze,u,b+" has member 'transform' that"),writableType:at}}function Ho(u,b,X){return qe(u,X),function(be){return T(u,b,[be])}}function Fi(u,b,X){return qe(u,X),function(be){return k(u,b,[be])}}function Go(u,b,X){return qe(u,X),function(be,Be){return T(u,b,[be,Be])}}var ni=(function(){function u(b,X,be){b===void 0&&(b={}),X===void 0&&(X={}),be===void 0&&(be={}),b===void 0&&(b=null);var Be=In(X,"Second parameter"),Ze=In(be,"Third parameter"),at=so(b,"First parameter");if(at.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(at.writableType!==void 0)throw new RangeError("Invalid writableType specified");var vt=Wn(Ze,0),Ot=aa(Ze),It=Wn(Be,1),Ft=aa(Be),Lt,ar=I(function(Hr){Lt=Hr});qo(this,ar,It,Ft,vt,Ot),Ys(this,at),at.start!==void 0?Lt(at.start(this._transformStreamController)):Lt(void 0)}return Object.defineProperty(u.prototype,"readable",{get:function(){if(!lo(this))throw wa("readable");return this._readable},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"writable",{get:function(){if(!lo(this))throw wa("writable");return this._writable},enumerable:!1,configurable:!0}),u})();Object.defineProperties(ni.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof n.toStringTag=="symbol"&&Object.defineProperty(ni.prototype,n.toStringTag,{value:"TransformStream",configurable:!0});function qo(u,b,X,be,Be,Ze){function at(){return b}function vt(ar){return co(u,ar)}function Ot(ar){return Mi(u,ar)}function It(){return oi(u)}u._writable=$a(at,vt,It,Ot,X,be);function Ft(){return Ko(u)}function Lt(ar){return ii(u,ar),_(void 0)}u._readable=io(at,Ft,Lt,Be,Ze),u._backpressure=void 0,u._backpressureChangePromise=void 0,u._backpressureChangePromise_resolve=void 0,tn(u,!0),u._transformStreamController=void 0}function lo(u){return!d(u)||!Object.prototype.hasOwnProperty.call(u,"_transformStreamController")?!1:u instanceof ni}function ai(u,b){wn(u._readable._readableStreamController,b),ii(u,b)}function ii(u,b){Sa(u._transformStreamController),ca(u._writable._writableStreamController,b),u._backpressure&&tn(u,!1)}function tn(u,b){u._backpressureChangePromise!==void 0&&u._backpressureChangePromise_resolve(),u._backpressureChangePromise=I(function(X){u._backpressureChangePromise_resolve=X}),u._backpressure=b}var Kn=(function(){function u(){throw new TypeError("Illegal constructor")}return Object.defineProperty(u.prototype,"desiredSize",{get:function(){if(!ba(this))throw _a("desiredSize");var b=this._controlledTransformStream._readable._readableStreamController;return Ri(b)}
59,enumerable:!1,configurable:!0}),u.prototype.enqueue=function(b){if(b===void 0&&(b=void 0),!ba(this))throw _a("enqueue");Yo(this,b)},u.prototype.error=function(b){if(b===void 0&&(b=void 0),!ba(this))throw _a("error");Xo(this,b)},u.prototype.terminate=function(){if(!ba(this))throw _a("terminate");qt(this)},u})();Object.defineProperties(Kn.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof n.toStringTag=="symbol"&&Object.defineProperty(Kn.prototype,n.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function ba(u){return!d(u)||!Object.prototype.hasOwnProperty.call(u,"_controlledTransformStream")?!1:u instanceof Kn}function qs(u,b,X,be){b._controlledTransformStream=u,u._transformStreamController=b,b._transformAlgorithm=X,b._flushAlgorithm=be}function Ys(u,b){var X=Object.create(Kn.prototype),be=function(Ze){try{return Yo(X,Ze),_(void 0)}catch(at){return E(at)}},Be=function(){return _(void 0)};b.transform!==void 0&&(be=function(Ze){return b.transform(Ze,X)}),b.flush!==void 0&&(Be=function(){return b.flush(X)}),qs(u,X,be,Be)}function Sa(u){u._transformAlgorithm=void 0,u._flushAlgorithm=void 0}function Yo(u,b){var X=u._controlledTransformStream,be=X._readable._readableStreamController;if(!ma(be))throw new TypeError("Readable side is not in a state that permits enqueue");try{Qa(be,b)}catch(Ze){throw ii(X,Ze),X._readable._storedError}var Be=va(be);Be!==X._backpressure&&tn(X,!0)}function Xo(u,b){ai(u._controlledTransformStream,b)}function uo(u,b){var X=u._transformAlgorithm(b);return g(X,void 0,function(be){throw ai(u._controlledTransformStream,be),be})}function qt(u){var b=u._controlledTransformStream,X=b._readable._readableStreamController;pa(X);var be=new TypeError("TransformStream terminated");ii(b,be)}function co(u,b){var X=u._transformStreamController;if(u._backpressure){var be=u._backpressureChangePromise;return g(be,function(){var Be=u._writable,Ze=Be._state;if(Ze==="erroring")throw Be._storedError;return uo(X,b)})}return uo(X,b)}function Mi(u,b){return ai(u,b),_(void 0)}function oi(u){var b=u._readable,X=u._transformStreamController,be=X._flushAlgorithm();return Sa(X),g(be,function(){if(b._state==="errored")throw b._storedError;pa(b._readableStreamController)},function(Be){throw ai(u,Be),b._storedError})}function Ko(u){return tn(u,!1),u._backpressureChangePromise}function _a(u){return new TypeError("TransformStreamDefaultController.prototype."+u+" can only be used on a TransformStreamDefaultController")}function wa(u){return new TypeError("TransformStream.prototype."+u+" can only be used on a TransformStream")}r.ByteLengthQueuingStrategy=Tn,r.CountQueuingStrategy=ti,r.ReadableByteStreamController=et,r.ReadableStream=Dn,r.ReadableStreamBYOBReader=pr,r.ReadableStreamBYOBRequest=rt,r.ReadableStreamDefaultController=da,r.ReadableStreamDefaultReader=Je,r.TransformStream=ni,r.TransformStreamDefaultController=Kn,r.WritableStream=Fn,r.WritableStreamDefaultController=Sn,r.WritableStreamDefaultWriter=nr,Object.defineProperty(r,"__esModule",{value:!0})})}),((a,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BaseStandardFontDataFactory=i.BaseSVGFactory=i.BaseCanvasFactory=i.BaseCMapReaderFactory=void 0;var n=l(r(2)),s=r(4);function l(E){return E&&E.__esModule?E:{default:E}}function f(E,C,$,F,M,g,h){try{var m=E[g](h),k=m.value}catch(T){$(T);return}m.done?C(k):Promise.resolve(k).then(F,M)}function d(E){return function(){var C=this,$=arguments;return new Promise(function(F,M){var g=E.apply(C,$);function h(k){f(g,F,M,h,m,"next",k)}function m(k){f(g,F,M,h,m,"throw",k)}h(void 0)})}}function S(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function R(E,C){for(var $=0;$<C.length;$++){var F=C[$];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(E,F.key,F)}}function N(E,C,$){return C&&R(E.prototype,C),E}var B=(function(){function E(){S(this,E),this.constructor===E&&(0,s.unreachable)("Cannot initialize BaseCanvasFactory.")}return N(E,[{key:"create",value:function($,F){if($<=0||F<=0)throw new Error("Invalid canvas size");var M=this._createCanvas($,F);return{canvas:M,context:M.getContext("2d")}}},{key:"reset",value:function($,F,M){if(!$.canvas)throw new Error("Canvas is not specified");if(F<=0||M<=0)throw new Error("Invalid canvas size");$.canvas.width=F,$.canvas.height=M}},{key:"destroy",value:function($){if(!$.canvas)throw new Error("Canvas is not specified");$.canvas.width=0,$.canvas.height=0,$.canvas=null,$.context=null}},{key:"_createCanvas",value:function($,F){(0,s.unreachable)("Abstract method `_createCanvas` called.")}}]),E})();i.BaseCanvasFactory=B;var A=(function(){function E(C){var $=C.baseUrl,F=$===void 0?null:$,M=C.isCompressed,g=M===void 0?!1:M;S(this,E),this.constructor===E&&(0,s.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=F,this.isCompressed=g}return N(E,[{key:"fetch",value:(function(){var C=d(n.default.mark(function F(M){var g=this,h,m,k;return n.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(h=M.name,this.baseUrl){w.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(h){w.next=5;break}throw new Error("CMap name must be specified.");case 5:return m=this.baseUrl+h+(this.isCompressed?".bcmap":""),k=this.isCompressed?s.CMapCompressionType.BINARY:s.CMapCompressionType.NONE,w.abrupt("return",this._fetchData(m,k).catch(function(D){throw new Error("Unable to load ".concat(g.isCompressed?"binary ":"","CMap at: ").concat(m))}));case 8:case"end":return w.stop()}},F,this)}));function $(F){return C.apply(this,arguments)}return $})()},{key:"_fetchData",value:function($,F){(0,s.unreachable)("Abstract method `_fetchData` called.")}}]),E})();i.BaseCMapReaderFactory=A;var I=(function(){function E(C){var $=C.baseUrl,F=$===void 0?null:$;S(this,E),this.constructor===E&&(0,s.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=F}return N(E,[{key:"fetch",value:(function(){var C=d(n.default.mark(function F(M){var g,h;return n.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(g=M.filename,this.baseUrl){k.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(g){k.next=5;break}throw new Error("Font filename must be specified.");case 5:return h="".concat(this.baseUrl).concat(g),k.abrupt("return",this._fetchData(h).catch(function(T){throw new Error("Unable to load font data at: ".concat(h))}));case 7:case"end":return k.stop()}},F,this)}));function $(F){return C.apply(this,arguments)}return $})()},{key:"_fetchData",value:function($){(0,s.unreachable)("Abstract method `_fetchData` called.")}}]),E})();i.BaseStandardFontDataFactory=I;var _=(function(){function E(){S(this,E),this.constructor===E&&(0,s.unreachable)("Cannot initialize BaseSVGFactory.")}return N(E,[{key:"create",value:function($,F){if($<=0||F<=0)throw new Error("Invalid SVG dimensions");var M=this._createSVG("svg:svg");return M.setAttribute("version","1.1"),M.setAttribute("width","".concat($,"px")),M.setAttribute("height","".concat(F,"px")),M.setAttribute("preserveAspectRatio","none"),M.setAttribute("viewBox","0 0 ".concat($," ").concat(F)),M}},{key:"createElement",value:function($){if(typeof $!="string")throw new Error("Invalid SVG element type");return this._createSVG($)}},{key:"_createSVG",value:function($){(0,s.unreachable)("Abstract method `_createSVG` called.")}}]),E})();i.BaseSVGFactory=_}),((__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=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__(137),_node_utils=__w_pdfjs_require__(138),_annotation_storage=__w_pdfjs_require__(139),_canvas=__w_pdfjs_require__(140),_worker_options=__w_pdfjs_require__(142),_is_node=__w_pdfjs_require__(6),_message_handler=__w_pdfjs_require__(143),_metadata=__w_pdfjs_require__(144),_optional_content_config=__w_pdfjs_require__(145),_transport_stream=__w_pdfjs_require__(146),_xfa_text=__w_pdfjs_require__(147);function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _classPrivateFieldInitSpec(a,i,r){_checkPrivateRedeclaration(a,i),i.set(a,r)}function _checkPrivateRedeclaration(a,i){if(i.has(a))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldSet(a,i,r){var n=_classExtractFieldDescriptor(a,i,"set");return _classApplyDescriptorSet(a,n,r),r}function _classApplyDescriptorSet(a,i,r){if(i.set)i.set.call(a,r);else{if(!i.writable)throw new TypeError("attempted to set read only private field");i.value=r}}function _classPrivateFieldGet(a,i){var r=_classExtractFieldDescriptor(a,i,"get");return _classApplyDescriptorGet(a,r)}function _classExtractFieldDescriptor(a,i,r){if(!i.has(a))throw new TypeError("attempted to "+r+" private field on non-instance");return i.get(a)}function _classApplyDescriptorGet(a,i){return i.get?i.get.call(a):i.value}function _toConsumableArray(a){return _arrayWithoutHoles(a)||_iterableToArray(a)||_unsupportedIterableToArray(a)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
60In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function _arrayWithoutHoles(a){if(Array.isArray(a))return _arrayLikeToArray(a)}function _createForOfIteratorHelper(a,i){var r=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!r){if(Array.isArray(a)||(r=_unsupportedIterableToArray(a))||i){r&&(a=r);var n=0,s=function(){};return{s,n:function(){return n>=a.length?{done:!0}:{done:!1,value:a[n++]}},e:function(R){throw R},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
61In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,f=!1,d;return{s:function(){r=r.call(a)},n:function(){var R=r.next();return l=R.done,R},e:function(R){f=!0,d=R},f:function(){try{!l&&r.return!=null&&r.return()}finally{if(f)throw d}}}}function _classCallCheck(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,i){for(var r=0;r<i.length;r++){var n=i[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}}function _createClass(a,i,r){return i&&_defineProperties(a.prototype,i
61),r&&_defineProperties(a,r),a}function asyncGeneratorStep(a,i,r,n,s,l,f){try{var d=a[l](f),S=d.value}catch(R){r(R);return}d.done?i(S):Promise.resolve(S).then(n,s)}function _asyncToGenerator(a){return function(){var i=this,r=arguments;return new Promise(function(n,s){var l=a.apply(i,r);function f(S){asyncGeneratorStep(l,n,s,f,d,"next",S)}function d(S){asyncGeneratorStep(l,n,s,f,d,"throw",S)}f(void 0)})}}function _slicedToArray(a,i){return _arrayWithHoles(a)||_iterableToArrayLimit(a,i)||_unsupportedIterableToArray(a,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
62In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(a,i){if(a){if(typeof a=="string")return _arrayLikeToArray(a,i);var r=Object.prototype.toString.call(a).slice(8,-1);if(r==="Object"&&a.constructor&&(r=a.constructor.name),r==="Map"||r==="Set")return Array.from(a);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(a,i)}}function _arrayLikeToArray(a,i){(i==null||i>a.length)&&(i=a.length);for(var r=0,n=new Array(i);r<i;r++)n[r]=a[r];return n}function _iterableToArrayLimit(a,i){var r=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(r!=null){var n=[],s=!0,l=!1,f,d;try{for(r=r.call(a);!(s=(f=r.next()).done)&&(n.push(f.value),!(i&&n.length===i));s=!0);}catch(S){l=!0,d=S}finally{try{!s&&r.return!=null&&r.return()}finally{if(l)throw d}}return n}}function _arrayWithHoles(a){if(Array.isArray(a))return a}function _typeof(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(r){return typeof r}:_typeof=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof(a)}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;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;var createPDFNetworkStream;function setPDFNetworkStreamFactory(a){createPDFNetworkStream=a}function getDocument(a){var i=new PDFDocumentLoadingTask,r;if(typeof a=="string"||a instanceof URL)r={url:a};else if((0,_util.isArrayBuffer)(a))r={data:a};else if(a instanceof PDFDataRangeTransport)r={range:a};else{if(_typeof(a)!=="object")throw new Error("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.");if(!a.url&&!a.data&&!a.range)throw new Error("Invalid parameter object: need either .data, .range or .url");r=a}var n=Object.create(null),s=null,l=null;for(var f in r){var d=r[f];switch(f){case"url":if(typeof window<"u")try{n[f]=new URL(d,window.location).href;continue}catch(N){(0,_util.warn)('Cannot create valid URL: "'.concat(N,'".'))}else if(typeof d=="string"||d instanceof URL){n[f]=d.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":s=d;continue;case"worker":l=d;continue;case"data":if(_is_node.isNodeJS&&typeof Buffer<"u"&&d instanceof Buffer)n[f]=new Uint8Array(d);else{if(d instanceof Uint8Array)break;if(typeof d=="string")n[f]=(0,_util.stringToBytes)(d);else if(_typeof(d)==="object"&&d!==null&&!isNaN(d.length))n[f]=new Uint8Array(d);else if((0,_util.isArrayBuffer)(d))n[f]=new Uint8Array(d);else throw new Error("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.")}continue}n[f]=d}if(n.rangeChunkSize=n.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,n.CMapReaderFactory=n.CMapReaderFactory||DefaultCMapReaderFactory,n.StandardFontDataFactory=n.StandardFontDataFactory||DefaultStandardFontDataFactory,n.ignoreErrors=n.stopAtErrors!==!0,n.fontExtraProperties=n.fontExtraProperties===!0,n.pdfBug=n.pdfBug===!0,n.enableXfa=n.enableXfa===!0,(typeof n.docBaseUrl!="string"||(0,_display_utils.isDataScheme)(n.docBaseUrl))&&(n.docBaseUrl=null),Number.isInteger(n.maxImageSize)||(n.maxImageSize=-1),typeof n.useWorkerFetch!="boolean"&&(n.useWorkerFetch=n.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&n.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),typeof n.isEvalSupported!="boolean"&&(n.isEvalSupported=!0),typeof n.disableFontFace!="boolean"&&(n.disableFontFace=_is_node.isNodeJS),typeof n.useSystemFonts!="boolean"&&(n.useSystemFonts=!_is_node.isNodeJS&&!n.disableFontFace),typeof n.ownerDocument>"u"&&(n.ownerDocument=globalThis.document),typeof n.disableRange!="boolean"&&(n.disableRange=!1),typeof n.disableStream!="boolean"&&(n.disableStream=!1),typeof n.disableAutoFetch!="boolean"&&(n.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(n.verbosity),!l){var S={verbosity:n.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};l=S.port?PDFWorker.fromPort(S):new PDFWorker(S),i._worker=l}var R=i.docId;return l.promise.then(function(){if(i.destroyed)throw new Error("Loading aborted");var N=_fetchDocument(l,n,s,R),B=new Promise(function(A){var I;s?I=new _transport_stream.PDFDataTransportStream({length:n.length,initialData:n.initialData,progressiveDone:n.progressiveDone,contentDispositionFilename:n.contentDispositionFilename,disableRange:n.disableRange,disableStream:n.disableStream},s):n.data||(I=createPDFNetworkStream({url:n.url,length:n.length,httpHeaders:n.httpHeaders,withCredentials:n.withCredentials,rangeChunkSize:n.rangeChunkSize,disableRange:n.disableRange,disableStream:n.disableStream})),A(I)});return Promise.all([N,B]).then(function(A){var I=_slicedToArray(A,2),_=I[0],E=I[1];if(i.destroyed)throw new Error("Loading aborted");var C=new _message_handler.MessageHandler(R,_,l.port),$=new WorkerTransport(C,i,E,n);i._transport=$,C.send("Ready",null)})}).catch(i._capability.reject),i}function _fetchDocument(a,i,r,n){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return _fetchDocument2=_asyncToGenerator(_regenerator.default.mark(function a(i,r,n,s){var l;return _regenerator.default.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!i.destroyed){d.next=2;break}throw new Error("Worker was destroyed");case 2:return n&&(r.length=n.length,r.initialData=n.initialData,r.progressiveDone=n.progressiveDone,r.contentDispositionFilename=n.contentDispositionFilename),d.next=5,i.messageHandler.sendWithProm
62ise("GetDocRequest",{docId:s,apiVersion:"2.12.313",source:{data:r.data,url:r.url,password:r.password,disableAutoFetch:r.disableAutoFetch,rangeChunkSize:r.rangeChunkSize,length:r.length},maxImageSize:r.maxImageSize,disableFontFace:r.disableFontFace,docBaseUrl:r.docBaseUrl,ignoreErrors:r.ignoreErrors,isEvalSupported:r.isEvalSupported,fontExtraProperties:r.fontExtraProperties,enableXfa:r.enableXfa,useSystemFonts:r.useSystemFonts,cMapUrl:r.useWorkerFetch?r.cMapUrl:null,standardFontDataUrl:r.useWorkerFetch?r.standardFontDataUrl:null});case 5:if(l=d.sent,!i.destroyed){d.next=8;break}throw new Error("Worker was destroyed");case 8:return d.abrupt("return",l);case 9:case"end":return d.stop()}},a)})),_fetchDocument2.apply(this,arguments)}var PDFDocumentLoadingTask=(function(){function a(){_classCallCheck(this,a),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d".concat(a.idCounters.doc++),this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(a,[{key:"promise",get:function(){return this._capability.promise}},{key:"destroy",value:(function(){var i=_asyncToGenerator(_regenerator.default.mark(function n(){var s;return _regenerator.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return this.destroyed=!0,f.next=3,(s=this._transport)===null||s===void 0?void 0:s.destroy();case 3:this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null);case 5:case"end":return f.stop()}},n,this)}));function r(){return i.apply(this,arguments)}return r})()}],[{key:"idCounters",get:function(){return(0,_util.shadow)(this,"idCounters",{doc:0})}}]),a})();exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;var PDFDataRangeTransport=(function(){function a(i,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;_classCallCheck(this,a),this.length=i,this.initialData=r,this.progressiveDone=n,this.contentDispositionFilename=s,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(a,[{key:"addRangeListener",value:function(r){this._rangeListeners.push(r)}},{key:"addProgressListener",value:function(r){this._progressListeners.push(r)}},{key:"addProgressiveReadListener",value:function(r){this._progressiveReadListeners.push(r)}},{key:"addProgressiveDoneListener",value:function(r){this._progressiveDoneListeners.push(r)}},{key:"onDataRange",value:function(r,n){var s=_createForOfIteratorHelper(this._rangeListeners),l;try{for(s.s();!(l=s.n()).done;){var f=l.value;f(r,n)}}catch(d){s.e(d)}finally{s.f()}}},{key:"onDataProgress",value:function(r,n){var s=this;this._readyCapability.promise.then(function(){var l=_createForOfIteratorHelper(s._progressListeners),f;try{for(l.s();!(f=l.n()).done;){var d=f.value;d(r,n)}}catch(S){l.e(S)}finally{l.f()}})}},{key:"onDataProgressiveRead",value:function(r){var n=this;this._readyCapability.promise.then(function(){var s=_createForOfIteratorHelper(n._progressiveReadListeners),l;try{for(s.s();!(l=s.n()).done;){var f=l.value;f(r)}}catch(d){s.e(d)}finally{s.f()}})}},{key:"onDataProgressiveDone",value:function(){var r=this;this._readyCapability.promise.then(function(){var n=_createForOfIteratorHelper(r._progressiveDoneListeners),s;try{for(n.s();!(s=n.n()).done;){var l=s.value;l()}}catch(f){n.e(f)}finally{n.f()}})}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(r,n){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),a})();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=(function(){function a(i,r){var n=this;_classCallCheck(this,a),this._pdfInfo=i,this._transport=r,Object.defineProperty(this,"fingerprint",{get:function(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:(function(){var s=_asyncToGenerator(_regenerator.default.mark(function f(){return _regenerator.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return(0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),S.abrupt("return",n.stats||{streamTypes:{},fontTypes:{}});case 2:case"end":return S.stop()}},f)}));function l(){return s.apply(this,arguments)}return l})()})}return _createClass(a,[{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:"stats",get:function(){return this._transport.stats}},{key:"isPureXfa",get:function(){return!!this._transport._htmlForXfa}},{key:"allXfaHtml",get:function(){return this._transport._htmlForXfa}},{key:"getPage",value:function(r){return this._transport.getPage(r)}},{key:"getPageIndex",value:function(r){return this._transport.getPageIndex(r)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(r){return this._transport.getDestination(r)}},{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:"cleanup",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this._transport.startCleanup(r||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()}}]),a})();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=(function(){function a(i,r,n,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;_classCallCheck(this,a),this._pageIndex=i,this._pageInfo=r,this._ownerDocument=s,this._transport=n,this._stats=l?new _display_utils.StatTimer:null,this._pdfBug=l,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}return _createClass(a,[{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 r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.scale,s=r.rotation,l=s===void 0?this.rotate:s,f=r.offsetX,d=f===void 0?0:f,S=r.offsetY,R=S===void 0?0:S,N=r.dontFlip,B=N===void 0?!1:N;return new _display_utils.PageViewport({viewBox:this.view,scale:n,rotation:l,offsetX:d,offsetY:R,dontFlip:B})}},{key:"getAnnotations",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.intent,s=n===void 0?"display":n,l=this._transport.getRenderingIntent
62(s),f=this._annotationPromises.get(l.cacheKey);return f||(f=this._transport.getAnnotations(this._pageIndex,l.renderingIntent),this._annotationPromises.set(l.cacheKey,f),f=f.then(function(d){var S=_createForOfIteratorHelper(d),R;try{var N=function(){var A=R.value;A.titleObj!==void 0&&Object.defineProperty(A,"title",{get:function(){return(0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),A.titleObj.str}}),A.contentsObj!==void 0&&Object.defineProperty(A,"contents",{get:function(){return(0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),A.contentsObj.str}})};for(S.s();!(R=S.n()).done;)N()}catch(B){S.e(B)}finally{S.f()}return d})),f}},{key:"getJSActions",value:function(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}},{key:"getXfa",value:(function(){var i=_asyncToGenerator(_regenerator.default.mark(function n(){var s;return _regenerator.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",((s=this._transport._htmlForXfa)===null||s===void 0?void 0:s.children[this._pageIndex])||null);case 1:case"end":return f.stop()}},n,this)}));function r(){return i.apply(this,arguments)}return r})()},{key:"render",value:function(r){var n,s,l=this,f,d=r.canvasContext,S=r.viewport,R=r.intent,N=R===void 0?"display":R,B=r.annotationMode,A=B===void 0?_util.AnnotationMode.ENABLE:B,I=r.transform,_=I===void 0?null:I,E=r.imageLayer,C=E===void 0?null:E,$=r.canvasFactory,F=$===void 0?null:$,M=r.background,g=M===void 0?null:M,h=r.optionalContentConfigPromise,m=h===void 0?null:h,k=r.annotationCanvasMap,T=k===void 0?null:k;((n=arguments[0])===null||n===void 0?void 0:n.renderInteractiveForms)!==void 0&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),arguments[0].renderInteractiveForms===!0&&A===_util.AnnotationMode.ENABLE&&(A=_util.AnnotationMode.ENABLE_FORMS)),((s=arguments[0])===null||s===void 0?void 0:s.includeAnnotationStorage)!==void 0&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),arguments[0].includeAnnotationStorage===!0&&A===_util.AnnotationMode.ENABLE&&(A=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");var w=this._transport.getRenderingIntent(N,A);this.pendingCleanup=!1,m||(m=this._transport.getOptionalContentConfig());var D=this._intentStates.get(w.cacheKey);D||(D=Object.create(null),this._intentStates.set(w.cacheKey,D)),D.streamReaderCancelTimeout&&(clearTimeout(D.streamReaderCancelTimeout),D.streamReaderCancelTimeout=null);var z=F||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),J=!!(w.renderingIntent&_util.RenderingIntentFlag.PRINT);D.displayReadyCapability||(D.displayReadyCapability=(0,_util.createPromiseCapability)(),D.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(w));var K=function(ve){D.renderTasks.delete(te),(l.cleanupAfterRender||J)&&(l.pendingCleanup=!0),l._tryCleanup(),ve?(te.capability.reject(ve),l._abortOperatorList({intentState:D,reason:ve instanceof Error?ve:new Error(ve)})):te.capability.resolve(),l._stats&&(l._stats.timeEnd("Rendering"),l._stats.timeEnd("Overall"))},te=new InternalRenderTask({callback:K,params:{canvasContext:d,viewport:S,transform:_,imageLayer:C,background:g},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:T,operatorList:D.operatorList,pageIndex:this._pageIndex,canvasFactory:z,useRequestAnimationFrame:!J,pdfBug:this._pdfBug});((f=D).renderTasks||(f.renderTasks=new Set)).add(te);var le=te.task;return Promise.all([D.displayReadyCapability.promise,m]).then(function(fe){var ve=_slicedToArray(fe,2),q=ve[0],Y=ve[1];if(l.pendingCleanup){K();return}l._stats&&l._stats.time("Rendering"),te.initializeGraphics({transparency:q,optionalContentConfig:Y}),te.operatorListChanged()}).catch(K),le}},{key:"getOperatorList",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.intent,s=n===void 0?"display":n,l=r.annotationMode,f=l===void 0?_util.AnnotationMode.ENABLE:l;function d(){R.operatorList.lastChunk&&(R.opListReadCapability.resolve(R.operatorList),R.renderTasks.delete(N))}
62var S=this._transport.getRenderingIntent(s,f,!0),R=this._intentStates.get(S.cacheKey);R||(R=Object.create(null),this._intentStates.set(S.cacheKey,R));var N;if(!R.opListReadCapability){var B;N=Object.create(null),N.operatorListChanged=d,R.opListReadCapability=(0,_util.createPromiseCapability)(),((B=R).renderTasks||(B.renderTasks=new Set)).add(N),R.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(S)}return R.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.normalizeWhitespace,s=n===void 0?!1:n,l=r.disableCombineTextItems,f=l===void 0?!1:l,d=r.includeMarkedContent,S=d===void 0?!1:d,R=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:s===!0,combineTextItems:f!==!0,includeMarkedContent:S===!0},{highWaterMark:R,size:function(B){return B.items.length}})}},{key:"getTextContent",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then(function(s){return _xfa_text.XfaText.textContent(s)});var n=this.streamTextContent(r);return new Promise(function(s,l){function f(){d.read().then(function(R){var N,B=R.value,A=R.done;if(A){s(S);return}Object.assign(S.styles,B.styles),(N=S.items).push.apply(N,_toConsumableArray(B.items)),f()},l)}var d=n.getReader(),S={items:[],styles:Object.create(null)};f()})}},{key:"getStructTree",value:function(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex))}},{key:"_destroy",value:function(){this.destroyed=!0;var r=[],n=_createForOfIteratorHelper(this._intentStates.values()),s;try{for(n.s();!(s=n.n()).done;){var l=s.value;if(this._abortOperatorList({intentState:l,reason:new Error("Page was destroyed."),force:!0}),!l.opListReadCapability){var f=_createForOfIteratorHelper(l.renderTasks),d;try{for(f.s();!(d=f.n()).done;){var S=d.value;r.push(S.completed),S.cancel()}}catch(R){f.e(R)}finally{f.f()}}}}catch(R){n.e(R)}finally{n.f()}return this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(r)}},{key:"cleanup",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.pendingCleanup=!0,this._tryCleanup(r)}},{key:"_tryCleanup",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.pendingCleanup)return!1;var n=_createForOfIteratorHelper(this._intentStates.values()),s;try{for(n.s();!(s=n.n()).done;){var l=s.value,f=l.renderTasks,d=l.operatorList;if(f.size>0||!d.lastChunk)return!1}}catch(S){n.e(S)}finally{n.f()}return this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,r&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}},{key:"_startRenderPage",value:function(r,n){var s=this._intentStates.get(n);s&&(this._stats&&this._stats.timeEnd("Page Request"),s.displayReadyCapability&&s.displayReadyCapability.resolve(r))}},{key:"_renderPageChunk",value:function(r,n){for(var s=0,l=r.length;s<l;s++)n.operatorList.fnArray.push(r.fnArray[s]),n.operatorList.argsArray.push(r.argsArray[s]);n.operatorList.lastChunk=r.lastChunk;var f=_createForOfIteratorHelper(n.renderTasks),d;try{for(f.s();!(d=f.n()).done;){var S=d.value;S.operatorListChanged()}}catch(R){f.e(R)}finally{f.f()}r.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(r){var n=this,s=r.renderingIntent,l=r.cacheKey,f=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:s,cacheKey:l,annotationStorage:s&_util.RenderingIntentFlag.ANNOTATIONS_STORAGE?this._transport.annotationStorage.serializable:null}),d=f.getReader(),S=this._intentStates.get(l);S.streamReader=d;var R=function N(){d.read().then(function(B){var A=B.value,I=B.done;if(I){S.streamReader=null;return}n._transport.destroyed||(n._renderPageChunk(A,S),N())}
62,function(B){if(S.streamReader=null,!n._transport.destroyed){if(S.operatorList){S.operatorList.lastChunk=!0;var A=_createForOfIteratorHelper(S.renderTasks),I;try{for(A.s();!(I=A.n()).done;){var _=I.value;_.operatorListChanged()}}catch(E){A.e(E)}finally{A.f()}n._tryCleanup()}if(S.displayReadyCapability)S.displayReadyCapability.reject(B);else if(S.opListReadCapability)S.opListReadCapability.reject(B);else throw B}})};R()}},{key:"_abortOperatorList",value:function(r){var n=this,s=r.intentState,l=r.reason,f=r.force,d=f===void 0?!1:f;if(s.streamReader){if(!d){if(s.renderTasks.size>0)return;if(l instanceof _display_utils.RenderingCancelledException){s.streamReaderCancelTimeout=setTimeout(function(){n._abortOperatorList({intentState:s,reason:l,force:!0}),s.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT);return}}if(s.streamReader.cancel(new _util.AbortException(l.message)).catch(function(){}),s.streamReader=null,!this._transport.destroyed){var S=_createForOfIteratorHelper(this._intentStates),R;try{for(S.s();!(R=S.n()).done;){var N=_slicedToArray(R.value,2),B=N[0],A=N[1];if(A===s){this._intentStates.delete(B);break}}}catch(I){S.e(I)}finally{S.f()}this.cleanup()}}}},{key:"stats",get:function(){return this._stats}}]),a})();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=(function(){function a(){_classCallCheck(this,a),this._listeners=[],this._deferred=Promise.resolve()}return _createClass(a,[{key:"postMessage",value:function(r,n){var s=this;function l(d){if(globalThis.structuredClone)return globalThis.structuredClone(d,n);function S(N){if(typeof N=="function"||_typeof(N)==="symbol"||N instanceof URL)throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(N?.toString()));if(_typeof(N)!=="object"||N===null)return N;if(R.has(N))return R.get(N);var B,A;if((B=N.buffer)&&(0,_util.isArrayBuffer)(B))return n!=null&&n.includes(B)?A=new N.constructor(B,N.byteOffset,N.byteLength):A=new N.constructor(N),R.set(N,A),A;if(N instanceof Map){A=new Map,R.set(N,A);var I=_createForOfIteratorHelper(N),_;
62try{for(I.s();!(_=I.n()).done;){var E=_slicedToArray(_.value,2),C=E[0],$=E[1];A.set(C,S($))}}catch(w){I.e(w)}finally{I.f()}return A}if(N instanceof Set){A=new Set,R.set(N,A);var F=_createForOfIteratorHelper(N),M;try{for(F.s();!(M=F.n()).done;){var g=M.value;A.add(S(g))}}catch(w){F.e(w)}finally{F.f()}return A}A=Array.isArray(N)?[]:Object.create(null),R.set(N,A);for(var h in N){for(var m,k=void 0,T=N;!(k=Object.getOwnPropertyDescriptor(T,h));)T=Object.getPrototypeOf(T);typeof k.value>"u"||typeof k.value=="function"&&!((m=N.hasOwnProperty)!==null&&m!==void 0&&m.call(N,h))||(A[h]=S(k.value))}return A}var R=new WeakMap;return S(d)}var f={data:l(r)};this._deferred.then(function(){var d=_createForOfIteratorHelper(s._listeners),S;try{for(d.s();!(S=d.n()).done;){var R=S.value;R.call(s,f)}}catch(N){d.e(N)}finally{d.f()}})}},{key:"addEventListener",value:function(r,n){this._listeners.push(n)}},{key:"removeEventListener",value:function(r,n){var s=this._listeners.indexOf(n);this._listeners.splice(s,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),a})();exports.LoopbackPort=LoopbackPort;var PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};{if(_is_node.isNodeJS&&typeof commonjsRequire=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if((typeof document>"u"?"undefined":_typeof(document))==="object"){var _document,_document$currentScri,pdfjsFilePath=(_document=document)===null||_document===void 0||(_document$currentScri=_document.currentScript)===null||_document$currentScri===void 0?void 0:_document$currentScri.src;pdfjsFilePath&&(PDFWorkerUtil.fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.createCDNWrapper=function(a){var i='importScripts("'.concat(a,'");');return URL.createObjectURL(new Blob([i]))}}var PDFWorker=(function(){function PDFWorker(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.name,r=i===void 0?null:i,n=a.port,s=n===void 0?null:n,l=a.verbosity,f=l===void 0?(0,_util.getVerbosityLevel)():l;if(_classCallCheck(this,PDFWorker),s&&PDFWorker._workerPorts.has(s))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=r,this.destroyed=!1,this.verbosity=f,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,s){PDFWorker._workerPorts.set(s,this),this._initializeFromPort(s);return}this._initialize()}return _createClass(PDFWorker,[{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(i){this._port=i,this._messageHandler=new _message_handler.MessageHandler("main","worker",i),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var i=this;if(typeof Worker<"u"&&!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){var r=PDFWorker.workerSrc;try{(0,_util.isSameOrigin)(window.location.href,r)||(r=PDFWorkerUtil.createCDNWrapper(new URL(r,window.location).href));var n=new Worker(r),s=new _message_handler.MessageHandler("main","worker",n),l=function(){n.removeEventListener("error",f),s.destroy(),n.terminate(),i.destroyed?i._readyCapability.reject(new Error("Worker was destroyed")):i._setupFakeWorker()},f=function(){i._webWorker||l()};n.addEventListener("error",f),s.on("test",function(S){if(n.removeEventListener("error",f),i.destroyed){l();return}S?(i._messageHandler=s,i._port=n,i._webWorker=n,i._readyCapability.resolve(),s.send("configure",{verbosity:i.verbosity})):(i._setupFakeWorker(),s.destroy(),n.terminate())}),s.on("ready",function(S){if(n.removeEventListener("error",f),i.destroyed){l();return}try{d()}catch{i._setupFakeWorker()}});var d=function(){var R=new Uint8Array([255]);try{s.send("test",R,[R.buffer])}catch{(0,_util.warn)("Cannot use postMessage transfers."),R[0]=0,s.send("test",R)}};d();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var i=this;PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then(function(r){if(i.destroyed){
vendor: 5,899 bytes, line 62
62i._readyCapability.reject(new Error("Worker was destroyed"));return}var n=new LoopbackPort;i._port=n;var s="fake".concat(PDFWorkerUtil.fakeWorkerId++),l=new _message_handler.MessageHandler(s+"_worker",s,n);r.setup(l,n);var f=new _message_handler.MessageHandler(s,s+"_worker",n);i._messageHandler=f,i._readyCapability.resolve(),f.send("configure",{verbosity:i.verbosity})}).catch(function(r){i._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(r.message,'".')))})}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker._workerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}}],[{key:"_workerPorts",get:function(){return(0,_util.shadow)(this,"_workerPorts",new WeakMap)}},{key:"fromPort",value:function(i){if(!(i!=null&&i.port))throw new Error("PDFWorker.fromPort - invalid method signature.");return this._workerPorts.has(i.port)?this._workerPorts.get(i.port):new PDFWorker(i)}},{key:"workerSrc",get:function(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}},{key:"_mainThreadWorkerMessageHandler",get:function(){try{var i;return((i=globalThis.pdfjsWorker)===null||i===void 0?void 0:i.WorkerMessageHandler)||null}catch{return null}}},{key:"_setupFakeWorkerGlobal",get:function get(){var _this11=this,loader=(function(){var _ref15=_asyncToGenerator(_regenerator.default.mark(function _callee4(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap(function _callee4$(_context4){for(;;)switch(_context4.prev=_context4.next){case 0:if(mainWorkerMessageHandler=_this11._mainThreadWorkerMessageHandler,!mainWorkerMessageHandler){_context4.next=3;break}return _context4.abrupt("return",mainWorkerMessageHandler);case 3:if(!(_is_node.isNodeJS&&typeof commonjsRequire=="function")){_context4.next=6;break}return worker=eval("require")(_this11.workerSrc),_context4.abrupt("return",worker.WorkerMessageHandler);case 6:return _context4.next=8,(0,_display_utils.loadScript)(_this11.workerSrc);case 8:return _context4.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context4.stop()}},_callee4)}));return function a(){return _ref15.apply(this,arguments)}})();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}]),PDFWorker})();exports.PDFWorker=PDFWorker,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};var _docStats=new WeakMap,_pageCache=new WeakMap,_pagePromises=new WeakMap,_metadataPromise=new WeakMap,WorkerTransport=(function(){function a(i,r,n,s){_classCallCheck(this,a),_classPrivateFieldInitSpec(this,_docStats,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,_pageCache,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_pagePromises,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_metadataPromise,{writable:!0,value:null}),this.messageHandler=i,this.loadingTask=r,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:r.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:s.ownerDocument,styleElement:s.styleElement}),this._params=s,s.useWorkerFetch||(this.CMapReaderFactory=new s.CMapReaderFactory({baseUrl:s.cMapUrl,isCompressed:s.cMapPacked}),this.StandardFontDataFactory=new s.StandardFontDataFactory({baseUrl:s.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(a,[{key:"annotationStorage",get:function(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}},{key:"stats",get:function(){return _classPrivateFieldGet(this,_docStats)}},{key:"getRenderingIntent",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_util.AnnotationMode.ENABLE,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=_util.RenderingIntentFlag.DISPLAY,f="";switch(r){case"any":l=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":l=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)("getRenderingIntent - invalid intent: ".concat(r))}switch(n){case _util.AnnotationMode.DISABLE:l+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:l+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:l+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,f=this.annotationStorage.lastModified;break;default:(0,_util.warn)("getRenderingIntent - invalid annotationMode: ".concat(n))}return s&&(l+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:l,cacheKey:"".concat(l,"_").concat(f)}}},{key:"destroy",value:function(){var r=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 n=[],s=_createForOfIteratorHelper(_classPrivateFieldGet(this,_pageCache).values()),l;try{for(s.s();!(l=s.n()).done;){var f=l.value;n.push(f._destroy())}}catch(S){s.e(S)}finally{s.f()}_classPrivateFieldGet(this,_pageCache).clear(),_classPrivateFieldGet(this,_pagePromises).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();
62var d=this.messageHandler.sendWithPromise("Terminate",null);return n.push(d),Promise.all(n).then(function(){r.commonObjs.clear(),r.fontLoader.clear(),_classPrivateFieldSet(r,_metadataPromise,null),r._getFieldObjectsPromise=null,r._hasJSActionsPromise=null,r._networkStream&&r._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),r.messageHandler&&(r.messageHandler.destroy(),r.messageHandler=null),r.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var r=this,n=this.messageHandler,s=this.loadingTask;n.on("GetReader",function(l,f){(0,_util.assert)(r._networkStream,"GetReader - no `IPDFStream` instance available."),r._fullReader=r._networkStream.getFullReader(),r._fullReader.onProgress=function(d){r._lastProgress={loaded:d.loaded,total:d.total}},f.onPull=function(){r._fullReader.read().then(function(d){var S=d.value,R=d.done;if(R){f.close();return}(0,_util.assert)((0,_util.isArrayBuffer)(S),"GetReader - expected an ArrayBuffer."),f.enqueue(new Uint8Array(S),1,[S])}).catch(function(d){f.error(d)})},f.onCancel=function(d){r._fullReader.cancel(d),f.ready.catch(function(S){if(!r.destroyed)throw S})}}),n.on("ReaderHeadersReady",function(l){var f=(0,_util.createPromiseCapability)(),d=r._fullReader;return d.headersReady.then(function(){if(!d.isStreamingSupported||!d.isRangeSupported){if(r._lastProgress){var S;(S=s.onProgress)===null||S===void 0||S.call(s,r._lastProgress)}d.onProgress=function(R){var N;(N=s.onProgress)===null||N===void 0||N.call(s,{loaded:R.loaded,total:R.total})}}f.resolve({isStreamingSupported:d.isStreamingSupported,isRangeSupported:d.isRangeSupported,contentLength:d.contentLength})},f.reject),f.promise}),n.on("GetRangeReader",function(l,f){(0,_util.assert)(r._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var d=r._networkStream.getRangeReader(l.begin,l.end);if(!d){f.close();return}f.onPull=function(){d.read().then(function(S){var R=S.value,N=S.done;if(N){f.close();return}(0,_util.assert)((0,_util.isArrayBuffer)(R),"GetRangeReader - expected an ArrayBuffer."),f.enqueue(new Uint8Array(R),1,[R])}).catch(function(S){f.error(S)})},f.onCancel=function(S){d.cancel(S),f.ready.catch(function(R){if(!r.destroyed)throw R})}}),n.on("GetDoc",function(l){var f=l.pdfInfo;r._numPages=f.numPages,r._htmlForXfa=f.htmlForXfa,delete f.htmlForXfa,s._capability.resolve(new PDFDocumentProxy(f,r))}),n.on("DocException",function(l){var f;switch(l.name){case"PasswordException":f=new _util.PasswordException(l.message,l.code);break;case"InvalidPDFException":f=new _util.InvalidPDFException(l.message);break;case"MissingPDFException":f=new _util.MissingPDFException(l.message);break;case"UnexpectedResponseException":f=new _util.UnexpectedResponseException(l.message,l.status);break;case"UnknownErrorException":f=new _util.UnknownErrorException(l.message,l.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}s._capability.reject(f)}),n.on("PasswordRequest",function(l){if(r._passwordCapability=(0,_util.createPromiseCapability)(),s.onPassword){var f=function(S){r._passwordCapability.resolve({password:S})};try{s.onPassword(f,l.code)}catch(d){r._passwordCapability.reject(d)}}else r._passwordCapability.reject(new _util.PasswordException(l.message,l.code));return r._passwordCapability.promise}),n.on("DataLoaded",function(l){var f;(f=s.onProgress)===null||f===void 0||f.call(s,{loaded:l.length,total:l.length}),r.downloadInfoCapability.resolve(l)}),n.on("StartRenderPage",function(l){if(!r.destroyed){var f=_classPrivateFieldGet(r,_pageCache).get(l.pageIndex);f._startRenderPage(l.transparency,l.cacheKey)}}),n.on("commonobj",function(l){var f,d=_slicedToArray(l,3),S=d[0],R=d[1],N=d[2];if(!r.destroyed&&!r.commonObjs.has(S))switch(R){case"Font":var B=r._params;if("error"in N){var A=N.error;(0,_util.warn)("Error during font loading: ".concat(A)),r.commonObjs.resolve(S,A);break}var I=null;B.pdfBug&&(f=globalThis.FontInspector)!==null&&f!==void 0&&f.enabled&&(I={registerFont:function(C,$){globalThis.FontInspector.fontAdded(C,$)}});var _=new _font_loader.FontFaceObject(N,{isEvalSupported:B.isEvalSupported,disableFontFace:B.disableFontFace,ignoreErrors:B.ignoreErrors,onUnsupportedFeature:r._onUnsupportedFeature.bind(r),fontRegistry:I});
62r.fontLoader.bind(_).catch(function(E){return n.sendWithPromise("FontFallback",{id:S})}).finally(function(){!B.fontExtraProperties&&_.data&&(_.data=null),r.commonObjs.resolve(S,_)});break;case"FontPath":case"Image":r.commonObjs.resolve(S,N);break;default:throw new Error("Got unknown common object type ".concat(R))}}),n.on("obj",function(l){var f,d=_slicedToArray(l,4),S=d[0],R=d[1],N=d[2],B=d[3];if(!r.destroyed){var A=_classPrivateFieldGet(r,_pageCache).get(R);if(!A.objs.has(S))switch(N){case"Image":A.objs.resolve(S,B);var I=8e6;(B==null||(f=B.data)===null||f===void 0?void 0:f.length)>I&&(A.cleanupAfterRender=!0);break;case"Pattern":A.objs.resolve(S,B);break;default:throw new Error("Got unknown object type ".concat(N))}}}),n.on("DocProgress",function(l){var f;r.destroyed||(f=s.onProgress)===null||f===void 0||f.call(s,{loaded:l.loaded,total:l.total})}),n.on("DocStats",function(l){r.destroyed||_classPrivateFieldSet(r,_docStats,Object.freeze({streamTypes:Object.freeze(l.streamTypes),fontTypes:Object.freeze(l.fontTypes)}))}),n.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),n.on("FetchBuiltInCMap",function(l){return r.destroyed?Promise.reject(new Error("Worker was destroyed.")):r.CMapReaderFactory?r.CMapReaderFactory.fetch(l):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))}),n.on("FetchStandardFontData",function(l){return r.destroyed?Promise.reject(new Error("Worker was destroyed.")):r.StandardFontDataFactory?r.StandardFontDataFactory.fetch(l):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))})}},{key:"_onUnsupportedFeature",value:function(r){var n,s,l=r.featureId;this.destroyed||(n=(s=this.loadingTask).onUnsupportedFeature)===null||n===void 0||n.call(s,l)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(r){var n=this;if(!Number.isInteger(r)||r<=0||r>this._numPages)return Promise.reject(new Error("Invalid page request"));var s=r-1,l=_classPrivateFieldGet(this,_pagePromises).get(s);if(l)return l;var f=this.messageHandler.sendWithPromise("GetPage",{pageIndex:s}).then(function(d){if(n.destroyed)throw new Error("Transport destroyed");var S=new PDFPageProxy(s,d,n,n._params.ownerDocument,n._params.pdfBug);return _classPrivateFieldGet(n,_pageCache).set(s,S),S});return _classPrivateFieldGet(this,_pagePromises).set(s,f),f}},{key:"getPageIndex",value:function(r){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:r})}},{key:"getAnnotations",value:function(r,n){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:r,intent:n})}},{key:"saveDocument",value:function(){var r,n,s=this;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:(r=(n=this._fullReader)===null||n===void 0?void 0:n.filename)!==null&&r!==void 0?r:null}).finally(function(){s.annotationStorage.resetModified()})}},{key:"getFieldObjects",value:function(){return this._getFieldObjectsPromise||(this._getFieldObjectsPromise=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(r){return typeof r!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:r})}},{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.sendWithProm
62ise("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(r){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:r})}},{key:"getStructTree",value:function(r){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:r})}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getOptionalContentConfig",value:function(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(function(r){return new _optional_content_config.OptionalContentConfig(r)})}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var r=this;return _classPrivateFieldGet(this,_metadataPromise)||_classPrivateFieldSet(this,_metadataPromise,this.messageHandler.sendWithPromise("GetMetadata",null).then(function(n){var s,l,f,d;return{info:n[0],metadata:n[1]?new _metadata.Metadata(n[1]):null,contentDispositionFilename:(s=(l=r._fullReader)===null||l===void 0?void 0:l.filename)!==null&&s!==void 0?s:null,contentLength:(f=(d=r._fullReader)===null||d===void 0?void 0:d.contentLength)!==null&&f!==void 0?f:null}}))}},{key:"getMarkInfo",value:function(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}},{key:"startCleanup",value:(function(){var i=_asyncToGenerator(_regenerator.default.mark(function n(){var s,l,f,d,S,R=arguments;return _regenerator.default.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return s=R.length>0&&R[0]!==void 0?R[0]:!1,B.next=3,this.messageHandler.sendWithPromise("Cleanup",null);case 3:if(!this.destroyed){B.next=5;break}return B.abrupt("return");case 5:l=_createForOfIteratorHelper(_classPrivateFieldGet(this,_pageCache).values()),B.prev=6,l.s();case 8:if((f=l.n()).done){B.next=15;break}if(d=f.value,S=d.cleanup(),S){B.next=13;break}throw new Error("startCleanup: Page ".concat(d.pageNumber," is currently rendering."));case 13:B.next=8;break;case 15:B.next=20;break;case 17:B.prev=17,B.t0=B.catch(6),l.e(B.t0);case 20:return B.prev=20,l.f(),B.finish(20);case 23:this.commonObjs.clear(),s||this.fontLoader.clear(),_classPrivateFieldSet(this,_metadataPromise,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null;case 28:case"end":return B.stop()}},n,this,[[6,17,20,23]])}));function r(){return i.apply(this,arguments)}return r})()},{key:"loadingParams",get:function(){var r=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:r.disableAutoFetch,enableXfa:r.enableXfa})}}]),a})(),PDFObjects=(function(){function a(){_classCallCheck(this,a),this._objs=Object.create(null)}return _createClass(a,[{key:"_ensureObj",value:function(r){return this._objs[r]?this._objs[r]:this._objs[r]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(n)return this._ensureObj(r).capability.promise.then(n),null;var s=this._objs[r];if(!s||!s.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(r,"."));return s.data}},{key:"has",value:function(r){var n=this._objs[r];return n?.resolved||!1}},{key:"resolve",value:function(r,n){var s=this._ensureObj(r);s.resolved=!0,s.data=n,s.capability.resolve(n)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),a})(),RenderTask=(function(){function a(i){_classCallCheck(this,a),this._internalRenderTask=i,this.onContinue=null}return _createClass(a,[{key:"promise",get:function(){return this._internalRenderTask.capability.promise}},{key:"cancel",value:function(){this._internalRenderTask.cancel()}}]),a})();exports.RenderTask=RenderTask;var InternalRenderTask=(function(){function a(i){var r=i.callback,n=i.params,s=i.objs,l=i.commonObjs,f=i.annotationCanvasMap,d=i.operatorList,S=i.pageIndex,R=i.canvasFactory,N=i.useRequestAnimationFrame,B=N===void 0?!1:N,A=i.pdfBug,I=A===void 0?!1:A;_classCallCheck(this,a),this.callback=r,this.params=n,this.objs=s,this.commonObjs=l,this.annotationCanvasMap=f,this.operatorListIdx=null,this.operatorList=d,this._pageIndex=S,this.canvasFactory=R,this._pdfBug=I,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=B===!0&&typeof window<"u",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=n.canvasContext.canvas}
62return _createClass(a,[{key:"completed",get:function(){return this.capability.promise.catch(function(){})}},{key:"initializeGraphics",value:function(r){var n,s=r.transparency,l=s===void 0?!1:s,f=r.optionalContentConfig;if(!this.cancelled){if(this._canvas){if(a.canvasInUse.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");a.canvasInUse.add(this._canvas)}this._pdfBug&&(n=globalThis.StepperManager)!==null&&n!==void 0&&n.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var d=this.params,S=d.canvasContext,R=d.viewport,N=d.transform,B=d.imageLayer,A=d.background;this.gfx=new _canvas.CanvasGraphics(S,this.commonObjs,this.objs,this.canvasFactory,B,f,this.annotationCanvasMap),this.gfx.beginDrawing({transform:N,viewport:R,transparency:l,background:A}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&a.canvasInUse.delete(this._canvas),this.callback(r||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()}},{key:"_continue",value:function(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var r=this;this._useRequestAnimationFrame?window.requestAnimationFrame(function(){r._nextBound().catch(r._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}},{key:"_next",value:(function(){var i=_asyncToGenerator(_regenerator.default.mark(function n(){return _regenerator.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!this.cancelled){l.next=2;break}return l.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&&a.canvasInUse.delete(this._canvas),this.callback()));case 4:case"end":return l.stop()}},n,this)}));function r(){return i.apply(this,arguments)}return r})()}],[{key:"canvasInUse",get:function(){return(0,_util.shadow)(this,"canvasInUse",new WeakSet)}}]),a})(),version="2.12.313";exports.version=version;var build="a2ae56f39";exports.build=build}),((a,i,r)=>{function n(w){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(z){return typeof z}:n=function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},n(w)}Object.defineProperty(i,"__esModule",{value:!0}),i.FontLoader=i.FontFaceObject=void 0;var s=f(r(2)),l=r(4);function f(w){return w&&w.__esModule?w:{default:w}}function d(w,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(D&&D.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),D&&S(w,D)}function S(w,D){return S=Object.setPrototypeOf||function(J,K){return J.__proto__=K,J},S(w,D)}function R(w){var D=A();return function(){var J=I(w),K;if(D){var te=I(this).constructor;K=Reflect.construct(J,arguments,te)}else K=J.apply(this,arguments);return N(this,K)}}function N(w,D){if(D&&(n(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(w)}function B(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}
62function I(w){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(z){return z.__proto__||Object.getPrototypeOf(z)},I(w)}function _(w,D,z,J,K,te,le){try{var fe=w[te](le),ve=fe.value}catch(q){z(q);return}fe.done?D(ve):Promise.resolve(ve).then(J,K)}function E(w){return function(){var D=this,z=arguments;return new Promise(function(J,K){var te=w.apply(D,z);function le(ve){_(te,J,K,le,fe,"next",ve)}function fe(ve){_(te,J,K,le,fe,"throw",ve)}le(void 0)})}}function C(w,D){var z=typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(!z){if(Array.isArray(w)||(z=$(w))||D){z&&(w=z);var J=0,K=function(){};return{s:K,n:function(){return J>=w.length?{done:!0}:{done:!1,value:w[J++]}},e:function(q){throw q},f:K}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
63In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var te=!0,le=!1,fe;return{s:function(){z=z.call(w)},n:function(){var q=z.next();return te=q.done,q},e:function(q){le=!0,fe=q},f:function(){try{!te&&z.return!=null&&z.return()}finally{if(le)throw fe}}}}function $(w,D){if(w){if(typeof w=="string")return F(w,D);var z=Object.prototype.toString.call(w).slice(8,-1);if(z==="Object"&&w.constructor&&(z=w.constructor.name),z==="Map"||z==="Set")return Array.from(w);if(z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return F(w,D)}}function F(w,D){(D==null||D>w.length)&&(D=w.length);for(var z=0,J=new Array(D);z<D;z++)J[z]=w[z];return J}function M(w,D){if(!(w instanceof D))throw new TypeError("Cannot call a class as a function")}function g(w,D){for(var z=0;z<D.length;z++){var J=D[z];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(w,J.key,J)}}function h(w,D,z){return D&&g(w.prototype,D),w}var m=(function(){function w(D){var z=D.docId,J=D.onUnsupportedFeature,K=D.ownerDocument,te=K===void 0?globalThis.document:K;D.styleElement,M(this,w),this.constructor===w&&(0,l.unreachable)("Cannot initialize BaseFontLoader."),this.docId=z,this._onUnsupportedFeature=J,this._document=te,this.nativeFontFaces=[],this.styleElement=null}return h(w,[{key:"addNativeFontFace",value:function(z){this.nativeFontFaces.push(z),this._document.fonts.add(z)}},{key:"insertRule",value:function(z){var J=this.styleElement;J||(J=this.styleElement=this._document.createElement("style"),J.id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),this._document.documentElement.getElementsByTagName("head")[0].appendChild(J));var K=J.sheet;K.insertRule(z,K.cssRules.length)}},{key:"clear",value:function(){var z=C(this.nativeFontFaces),J;try{for(z.s();!(J=z.n()).done;){var K=J.value;this._document.fonts.delete(K)}}catch(te){z.e(te)}finally{z.f()}this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:(function(){var D=E(s.default.mark(function J(K){var te=this,le,fe;return s.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(!(K.attached||K.missingFile)){q.next=2;break}return q.abrupt("return");case 2:if(K.attached=!0,!this.isFontLoadingAPISupported){q.next=19;break}if(le=K.createNativeFontFace(),!le){q.next=18;break}return this.addNativeFontFace(le),q.prev=7,q.next=10,le.loaded;case 10:q.next=18;break;case 12:throw q.prev=12,q.t0=q.catch(7),this._onUnsupportedFeature({featureId:l.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,l.warn)("Failed to load font '".concat(le.family,"': '").concat(q.t0,"'.")),K.disableFontFace=!0,q.t0;case 18:return q.abrupt("return");case 19:if(fe=K.createFontFaceRule(),!fe){q.next=26;break}if(this.insertRule(fe),!this.isSyncFontLoadingSupported){q.next=24;break}return q.abrupt("return");case 24:return q.next=26,new Promise(function(Y){var U=te._queueLoadingCallback(Y);te._prepareFontLoadEvent([fe],[K],U)});case 26:case"end":return q.stop()}},J,this,[[7,12]])}));function z(J){return D.apply(this,arguments)}return z})()},{key:"_queueLoadingCallback",value:function(z){(0,l.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"isFontLoadingAPISupported",get:function(){var z,J=!!((z=this._document)!==null&&z!==void 0&&z.fonts);return(0,l.shadow)(this,"isFontLoadingAPISupported",J)}},{key:"isSyncFontLoadingSupported",get:function(){(0,l.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,l.unreachable)("Abstract method `_loadTestFont`.")}},{key:"_prepareFontLoadEvent",value:function(z,J,K){(0,l.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}]),w})(),k;i.FontLoader=k,i.FontLoader=k=(function(w){d(z,w);var D=R(z);function z(J){var K;return M(this,z),K=D.call(this,J),K.loadingContext={requests:[],nextRequestId:0},K.loadTestFontId=0,K}
63return h(z,[{key:"isSyncFontLoadingSupported",get:function(){var K=!1;if(typeof navigator>"u")K=!0;else{var te=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);te?.[1]>=14&&(K=!0)}return(0,l.shadow)(this,"isSyncFontLoadingSupported",K)}},{key:"_queueLoadingCallback",value:function(K){function te(){for((0,l.assert)(!fe.done,"completeRequest() cannot be called twice."),fe.done=!0;le.requests.length>0&&le.requests[0].done;){var ve=le.requests.shift();setTimeout(ve.callback,0)}}var le=this.loadingContext,fe={id:"pdfjs-font-loading-".concat(le.nextRequestId++),done:!1,complete:te,callback:K};return le.requests.push(fe),fe}},{key:"_loadTestFont",get:function(){var K=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,l.shadow)(this,"_loadTestFont",K())}},{key:"_prepareFontLoadEvent",value:function(K,te,le){function fe(Fe,ze){return Fe.charCodeAt(ze)<<24|Fe.charCodeAt(ze+1)<<16|Fe.charCodeAt(ze+2)<<8|Fe.charCodeAt(ze+3)&255}function ve(Fe,ze,Ye,Je){var nt=Fe.substring(0,ze),tt=Fe.substring(ze+Ye);return nt+Je+tt}var q,Y,U=this._document.createElement("canvas");U.width=1,U.height=1;var p=U.getContext("2d"),x=0;function H(Fe,ze){if(x++,x>30){(0,l.warn)("Load test font never loaded."),ze();return}p.font="30px "+Fe,p.fillText(".",0,20);var Ye=p.getImageData(0,0,1,1);if(Ye.data[3]>0){ze();return}setTimeout(H.bind(null,Fe,ze))}var ne="lt".concat(Date.now()).concat(this.loadTestFontId++),ae=this._loadTestFont,ie=976;ae=ve(ae,ie,ne.length,ne);var xe=16,Ue=1482184792,qe=fe(ae,xe);for(q=0,Y=ne.length-3;q<Y;q+=4)qe=qe-Ue+fe(ne,q)|0;q<ne.length&&(qe=qe-Ue+fe(ne+"XXX",q)|0),ae=ve(ae,xe,4,(0,l.string32)(qe));var se="url(data:font/opentype;base64,".concat(btoa(ae),");"),Q='@font-face {font-family:"'.concat(ne,'";src:').concat(se,"}");this.insertRule(Q);var L=[],P=C(te),V;try{for(P.s();!(V=P.n()).done;){var ee=V.value;L.push(ee.loadedName)}}catch(Fe){P.e(Fe)}finally{P.f()}L.push(ne);var oe=this._document.createElement("div");oe.style.visibility="hidden",oe.style.width=oe.style.height="10px",oe.style.position="absolute",oe.style.top=oe.style.left="0px";for(var pe=0,Te=L;pe<Te.length;pe++){var Oe=Te[pe],Me=this._document.createElement("span");Me.textContent="Hi",Me.style.fontFamily=Oe,oe.appendChild(Me)}this._document.body.appendChild(oe),H(ne,function(){oe.remove(),le.complete()})}}]),z})(m);var T=(function(){function w(D,z){var J=z.isEvalSupported,K=J===void 0?!0:J,te=z.disableFontFace,le=te===void 0?!1:te,fe=z.ignoreErrors,ve=fe===void 0?!1:fe,q=z.onUnsupportedFeature,Y=z.fontRegistry,U=Y===void 0?null:Y;M(this,w),this.compiledGlyphs=Object.create(null);for(var p in D)this[p]=D[p];this.isEvalSupported=K!==!1,this.disableFontFace=le===!0,this.ignoreErrors=ve===!0,this._onUnsupportedFeature=q,this.fontRegistry=U}return h(w,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var z;if(!this.cssFontInfo)z=new FontFace(this.loadedName,this.data,{});else{var J={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(J.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),z=new FontFace(this.cssFontInfo.fontFamily,this.data,J)}return this.fontRegistry&&this.fontRegistry.registerFont(this),z}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var z=(0,l.bytesToString)(this.data),J="url(data:".concat(this.mimetype,";base64,").concat(btoa(z),");"),K;if(!this.cssFontInfo)K='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(J,"}");else{var te="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(te+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),K='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(te,"src:").concat(J,"}")}return this.fontRegistry&&this.fontRegistry.registerFont(this,J),K}},{key:"getPathGenerator",value:function(z,J){if(this.compiledGlyphs[J]!==void 0)return this.compiledGlyphs[J];var K;try{K=z.get(this.loadedName+"_path_"+J)}catch(Y){if(!this.ignoreErrors)throw Y;return this._onUnsupportedFeature({featureId:l.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,l.warn)('getPathGenerator - ignoring character: "'.concat(Y,'".')),this.compiledGlyphs[J]=function(U,p){}}if(this.isEvalSupported&&l.IsEvalSupportedCached.value){var te=[],le=C(K),fe;try{for(le.s();!(fe=le.n()).done;){var ve=fe.value,q=ve.args!==void 0?ve.args.join(","):"";te.push("c.",ve.cmd,"(",q,`);
64`)}}catch(Y){le.e(Y)}finally{le.f()}return this.compiledGlyphs[J]=new Function("c","size",te.join(""))}return this.compiledGlyphs[J]=function(Y,U){var p=C(K),x;try{for(p.s();!(x=p.n()).done;){var H=x.value;H.cmd==="scale"&&(H.args=[U,-U]),Y[H.cmd].apply(Y,H.args)}}catch(ne){p.e(ne)}finally{p.f()}}}}]),w})();i.FontFaceObject=T}),((a,i,r)=>{function n(h){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(k){return typeof k}:n=function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},n(h)}Object.defineProperty(i,"__esModule",{value:!0}),i.NodeStandardFontDataFactory=i.NodeCanvasFactory=i.NodeCMapReaderFactory=void 0;var s=r(135),l=r(6),f=r(4);function d(h,m){for(var k=0;k<m.length;k++){var T=m[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(h,T.key,T)}}function S(h,m,k){return m&&d(h.prototype,m),h}function R(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),m&&N(h,m)}
64function N(h,m){return N=Object.setPrototypeOf||function(T,w){return T.__proto__=w,T},N(h,m)}function B(h){var m=_();return function(){var T=E(h),w;if(m){var D=E(this).constructor;w=Reflect.construct(T,arguments,D)}else w=T.apply(this,arguments);return A(this,w)}}function A(h,m){if(m&&(n(m)==="object"||typeof m=="function"))return m;if(m!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return I(h)}function I(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function E(h){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)},E(h)}function C(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}var $=function h(){C(this,h),(0,f.unreachable)("Not implemented: NodeCanvasFactory")};i.NodeCanvasFactory=$;var F=function h(){C(this,h),(0,f.unreachable)("Not implemented: NodeCMapReaderFactory")};i.NodeCMapReaderFactory=F;var M=function h(){C(this,h),(0,f.unreachable)("Not implemented: NodeStandardFontDataFactory")};if(i.NodeStandardFontDataFactory=M,l.isNodeJS){var g=function(m){return new Promise(function(k,T){var w=require$$5;w.readFile(m,function(D,z){if(D||!z){T(new Error(D));return}k(new Uint8Array(z))})})};i.NodeCanvasFactory=$=(function(h){R(k,h);var m=B(k);function k(){return C(this,k),m.apply(this,arguments)}return S(k,[{key:"_createCanvas",value:function(w,D){var z=require$$5;return z.createCanvas(w,D)}}]),k})(s.BaseCanvasFactory),i.NodeCMapReaderFactory=F=(function(h){R(k,h);var m=B(k);function k(){return C(this,k),m.apply(this,arguments)}return S(k,[{key:"_fetchData",value:function(w,D){return g(w).then(function(z){return{cMapData:z,compressionType:D}})}}]),k})(s.BaseCMapReaderFactory),i.NodeStandardFontDataFactory=M=(function(h){R(k,h);var m=B(k);function k(){return C(this,k),m.apply(this,arguments)}return S(k,[{key:"_fetchData",value:function(w){return g(w)}}]),k})(s.BaseStandardFontDataFactory)}}),((a,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.AnnotationStorage=void 0;var n=r(4);function s(_,E){return R(_)||S(_,E)||f(_,E)||l()}function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
65In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(_,E){if(_){if(typeof _=="string")return d(_,E);var C=Object.prototype.toString.call(_).slice(8,-1);if(C==="Object"&&_.constructor&&(C=_.constructor.name),C==="Map"||C==="Set")return Array.from(_);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return d(_,E)}}function d(_,E){(E==null||E>_.length)&&(E=_.length);for(var C=0,$=new Array(E);C<E;C++)$[C]=_[C];return $}function S(_,E){var C=_==null?null:typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(C!=null){var $=[],F=!0,M=!1,g,h;try{for(C=C.call(_);!(F=(g=C.next()).done)&&($.push(g.value),!(E&&$.length===E));F=!0);}catch(m){M=!0,h=m}finally{try{!F&&C.return!=null&&C.return()}finally{if(M)throw h}}return $}}function R(_){if(Array.isArray(_))return _}function N(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function B(_,E){for(var C=0;C<E.length;C++){var $=E[C];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(_,$.key,$)}}function A(_,E,C){return E&&B(_.prototype,E),_}var I=(function(){function _(){N(this,_),this._storage=new Map,this._timeStamp=Date.now(),this._modified=!1,this.onSetModified=null,this.onResetModified=null}return A(_,[{key:"getValue",value:function(C,$){var F=this._storage.get(C);return F===void 0?$:Object.assign($,F)}},{key:"setValue",value:function(C,$){var F=this._storage.get(C),M=!1;if(F!==void 0)for(var g=0,h=Object.entries($);g<h.length;g++){var m=s(h[g],2),k=m[0],T=m[1];F[k]!==T&&(M=!0,F[k]=T)}else M=!0,this._storage.set(C,$);M&&(this._timeStamp=Date.now(),this._setModified())}},{key:"getAll",value:function(){return this._storage.size>0?(0,n.objectFromMap)(this._storage):null}},{key:"size",get:function(){return this._storage.size}},{key:"_setModified",value:function(){this._modified||(this._modified=!0,typeof this.onSetModified=="function"&&this.onSetModified())}},{key:"resetModified",value:function(){this._modified&&(this._modified=!1,typeof this.onResetModified=="function"&&this.onResetModified())}},{key:"serializable",get:function(){return this._storage.size>0?this._storage:null}},{key:"lastModified",get:function(){return this._timeStamp.toString()}}]),_})();i.AnnotationStorage=I}),((a,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CanvasGraphics=void 0;var n=r(4),s=r(141),l=r(1);function f(se){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(L){return typeof L}:f=function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},f(se)}function d(se,Q){var L=typeof Symbol<"u"&&se[Symbol.iterator]||se["@@iterator"];if(!L){if(Array.isArray(se)||(L=I(se))||Q){L&&(se=L);var P=0,V=function(){};return{s:V,n:function(){return P>=se.length?{done:!0}:{done:!1,value:se[P++]}},e:function(Oe){throw Oe},f:V}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
66In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ee=!0,oe=!1,pe;return{s:function(){L=L.call(se)},n:function(){var Oe=L.next();return ee=Oe.done,Oe},e:function(Oe){oe=!0,pe=Oe},f:function(){try{!ee&&L.return!=null&&L.return()}finally{if(oe)throw pe}}}}function S(se,Q){if(!(se instanceof Q))throw new TypeError("Cannot call a class as a function")}function R(se,Q){for(var L=0;L<Q.length;L++){var P=Q[L];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(se,P.ke
66y,P)}}function N(se,Q,L){return Q&&R(se.prototype,Q),se}function B(se,Q){return C(se)||E(se,Q)||I(se,Q)||A()}function A(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
67In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I(se,Q){if(se){if(typeof se=="string")return _(se,Q);var L=Object.prototype.toString.call(se).slice(8,-1);if(L==="Object"&&se.constructor&&(L=se.constructor.name),L==="Map"||L==="Set")return Array.from(se);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return _(se,Q)}}function _(se,Q){(Q==null||Q>se.length)&&(Q=se.length);for(var L=0,P=new Array(Q);L<Q;L++)P[L]=se[L];return P}function E(se,Q){var L=se==null?null:typeof Symbol<"u"&&se[Symbol.iterator]||se["@@iterator"];if(L!=null){var P=[],V=!0,ee=!1,oe,pe;try{for(L=L.call(se);!(V=(oe=L.next()).done)&&(P.push(oe.value),!(Q&&P.length===Q));V=!0);}catch(Te){ee=!0,pe=Te}finally{try{!V&&L.return!=null&&L.return()}finally{if(ee)throw pe}}return P}}function C(se){if(Array.isArray(se))return se}var $=16,F=100,M=4096,g=15,h=10,m=1e3,k=16,T=1.000001;function w(se,Q){if(se._removeMirroring)throw new Error("Context is already forwarding operations.");se.__originalSave=se.save,se.__originalRestore=se.restore,se.__originalRotate=se.rotate,se.__originalScale=se.scale,se.__originalTranslate=se.translate,se.__originalTransform=se.transform,se.__originalSetTransform=se.setTransform,se.__originalResetTransform=se.resetTransform,se.__originalClip=se.clip,se.__originalMoveTo=se.moveTo,se.__originalLineTo=se.lineTo,se.__originalBezierCurveTo=se.bezierCurveTo,se.__originalRect=se.rect,se.__originalClosePath=se.closePath,se.__originalBeginPath=se.beginPath,se._removeMirroring=function(){se.save=se.__originalSave,se.restore=se.__originalRestore,se.rotate=se.__originalRotate,se.scale=se.__originalScale,se.translate=se.__originalTranslate,se.transform=se.__originalTransform,se.setTransform=se.__originalSetTransform,se.resetTransform=se.__originalResetTransform,se.clip=se.__originalClip,se.moveTo=se.__originalMoveTo,se.lineTo=se.__originalLineTo,se.bezierCurveTo=se.__originalBezierCurveTo,se.rect=se.__originalRect,se.closePath=se.__originalClosePath,se.beginPath=se.__originalBeginPath,delete se._removeMirroring},se.save=function(){Q.save(),this.__originalSave()},se.restore=function(){Q.restore(),this.__originalRestore()},se.translate=function(P,V){Q.translate(P,V),this.__originalTranslate(P,V)},se.scale=function(P,V){Q.scale(P,V),this.__originalScale(P,V)},se.transform=function(P,V,ee,oe,pe,Te){Q.transform(P,V,ee,oe,pe,Te),this.__originalTransform(P,V,ee,oe,pe,Te)},se.setTransform=function(P,V,ee,oe,pe,Te){Q.setTransform(P,V,ee,oe,pe,Te),this.__originalSetTransform(P,V,ee,oe,pe,Te)},se.resetTransform=function(){Q.resetTransform(),this.__originalResetTransform()},se.rotate=function(P){Q.rotate(P),this.__originalRotate(P)},se.clip=function(P){Q.clip(P),this.__originalClip(P)},se.moveTo=function(L,P){Q.moveTo(L,P),this.__originalMoveTo(L,P)},se.lineTo=function(L,P){Q.lineTo(L,P),this.__originalLineTo(L,P)},se.bezierCurveTo=function(L,P,V,ee,oe,pe){Q.bezierCurveTo(L,P,V,ee,oe,pe),this.__originalBezierCurveTo(L,P,V,ee,oe,pe)},se.rect=function(L,P,V,ee){Q.rect(L,P,V,ee),this.__originalRect(L,P,V,ee)},se.closePath=function(){Q.closePath(),this.__originalClosePath()},se.beginPath=function(){Q.beginPath(),this.__originalBeginPath()}}function D(se){if(!se.mozCurrentTransform){se._originalSave=se.save,se._originalRestore=se.restore,se._originalRotate=se.rotate,se._originalScale=se.scale,se._originalTranslate=se.translate,se._originalTransform=se.transform,se._originalSetTransform=se.setTransform,se._originalResetTransform=se.resetTransform,se._transformMatrix=se._transformMatrix||[1,0,0,1,0,0],se._transformStack=[];try{var Q=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(se),"lineWidth");se._setLineWidth=Q.set,se._getLineWidth=Q.get,Object.defineProperty(se,"lineWidth",{set:function(P){this._setLineWidth(P*T)},get:function(){return this._getLineWidth()}})}catch{}Object.defineProperty(se,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(se,"mozCurrentTransformInverse",{get:function(){var P=B(this._transformMatrix,6),V=P[0],ee=P[1],oe=P[2],pe=P[3],Te=P[4],Oe=P[5],Me=V*pe-ee*oe,Fe=ee*oe-V*pe;return[pe/Me,ee/Fe,oe/Fe,V/Me,(pe*Te-oe*Oe)/Fe,(ee*Te-V*Oe)/Me]}}),se.save=function(){var P=this._transformMatrix;this._transformStack.push(P),this._transformMatrix=P.slice(0,6),this._originalSave()},se.restore=function(){var P=this._transformStack.pop();P&&(this._transformMatrix=P,this._originalRestore())},se.translate=function(P,V){var ee=this._transformMatrix;ee[4]=ee[0]*P+ee[2]*V+ee[4],ee[5]=ee[1]*P+ee[3]*V+ee[5],this._originalTranslate(P,V)},se.scale=function(P,V){var ee=this._transformMatrix;ee[0]*=P,ee[1]*=P,ee[2]*=V,ee[3]*=V,this._originalScale(P,V)},se.transform=function(P,V,ee,oe,pe,Te){var Oe=this._transformMatrix;this._transformMatrix=[Oe[0]*P+Oe[2]*V,Oe[1]*P+Oe[3]*V,Oe[0]*ee+Oe[2]*oe,Oe[1]*ee+Oe[3]*oe,Oe[0]*pe+Oe[2]*Te+Oe[4],Oe[1]*pe+Oe[3]*Te+Oe[5]],se._originalTransform(P,V,ee,oe,pe,Te)},se.setTransform=function(P,V,ee,oe,pe,Te){this._transformMatrix=[P,V,ee,oe,pe,Te],se._originalSetTransform(P,V,ee,oe,pe,Te)},se.resetTransform=function(){this._transformMatrix=[1,0,0,1,0,0],se._originalResetTransform()},se.rotate=function(P){var V=Math.cos(P),ee=Math.sin(P),oe=this._transformMatrix;this._transformMatrix=[oe[0]*V+oe[2]*ee,oe[1]*V+oe[3]*ee,oe[0]*-ee+oe[2]*V,oe[1]*-ee+oe[3]*V,oe[4],oe[5]],this._originalRotate(P)}}}var z=(function(){function se(Q){S(this,se),this.canvasFactory=Q,this.cache=Object.create(null)}return N(se,[{key:"getCanvas",value:function(L,P,V,ee){var oe;return this.cache[L]!==void 0?(oe=this.cache[L],this.canvasFactory.reset(oe,P,V),oe.context.setTransform(1,0,0,1,0,0)):(oe=this.canvasFactory.create(P,V),this.cache[L]=oe),ee&&D(oe.context),oe}},{key:"clear",value:function(){for(var L in this.cache){var P=this.cache[L];this.canvasFactory.destroy(P),delete this.cache[L]}}}]),se})();function J(se){var Q=1e3,L=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),P=se.width,V=se.height,ee=P+1,oe,pe,Te,Oe,Me=new 
vendor: 4,055 bytes, line 67
67Uint8Array(ee*(V+1)),Fe=P+7&-8,ze=se.data,Ye=new Uint8Array(Fe*V),Je=0;for(oe=0,pe=ze.length;oe<pe;oe++)for(var nt=ze[oe],tt=128;tt>0;)Ye[Je++]=nt&tt?0:255,tt>>=1;var ct=0;for(Je=0,Ye[Je]!==0&&(Me[0]=1,++ct),Te=1;Te<P;Te++)Ye[Je]!==Ye[Je+1]&&(Me[Te]=Ye[Je]?2:1,++ct),Je++;for(Ye[Je]!==0&&(Me[Te]=2,++ct),oe=1;oe<V;oe++){Je=oe*Fe,Oe=oe*ee,Ye[Je-Fe]!==Ye[Je]&&(Me[Oe]=Ye[Je]?1:8,++ct);var lt=(Ye[Je]?4:0)+(Ye[Je-Fe]?8:0);for(Te=1;Te<P;Te++)lt=(lt>>2)+(Ye[Je+1]?4:0)+(Ye[Je-Fe+1]?8:0),L[lt]&&(Me[Oe+Te]=L[lt],++ct),Je++;if(Ye[Je-Fe]!==Ye[Je]&&(Me[Oe+Te]=Ye[Je]?2:4,++ct),ct>Q)return null}for(Je=Fe*(V-1),Oe=oe*ee,Ye[Je]!==0&&(Me[Oe]=8,++ct),Te=1;Te<P;Te++)Ye[Je]!==Ye[Je+1]&&(Me[Oe+Te]=Ye[Je]?4:8,++ct),Je++;if(Ye[Je]!==0&&(Me[Oe+Te]=4,++ct),ct>Q)return null;var Ee=new Int32Array([0,ee,-1,0,-ee,0,0,0,1]),Re=[];for(oe=0;ct&&oe<=V;oe++){for(var Z=oe*ee,he=Z+P;Z<he&&!Me[Z];)Z++;if(Z!==he){var ue=[Z%ee,oe],ye=Z,me=Me[Z];do{var de=Ee[me];do Z+=de;while(!Me[Z]);var W=Me[Z];W!==5&&W!==10?(me=W,Me[Z]=0):(me=W&51*me>>4,Me[Z]&=me>>2|me<<2),ue.push(Z%ee,Z/ee|0),Me[Z]||--ct}while(ye!==Z);Re.push(ue),--oe}}var G=function(we){we.save(),we.scale(1/P,-1/V),we.translate(0,-V),we.beginPath();for(var Ce=0,De=Re.length;Ce<De;Ce++){var Se=Re[Ce];we.moveTo(Se[0],Se[1]);for(var He=2,Ne=Se.length;He<Ne;He+=2)we.lineTo(Se[He],Se[He+1])}we.fill(),we.beginPath(),we.restore()};return G}var K=(function(){function se(Q,L){S(this,se),this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=n.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=n.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,Q,L])}return N(se,[{key:"clone",value:function(){var L=Object.create(this);return L.clipBox=this.clipBox.slice(),L}},{key:"setCurrentPoint",value:function(L,P){this.x=L,this.y=P}},{key:"updatePathMinMax",value:function(L,P,V){var ee=n.Util.applyTransform([P,V],L),oe=B(ee,2);P=oe[0],V=oe[1],this.minX=Math.min(this.minX,P),this.minY=Math.min(this.minY,V),this.maxX=Math.max(this.maxX,P),this.maxY=Math.max(this.maxY,V)}},{key:"updateCurvePathMinMax",value:function(L,P,V,ee,oe,pe,Te,Oe,Me){var Fe=n.Util.bezierBoundingBox(P,V,ee,oe,pe,Te,Oe,Me);this.updatePathMinMax(L,Fe[0],Fe[1]),this.updatePathMinMax(L,Fe[2],Fe[3])}},{key:"getPathBoundingBox",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s.PathType.FILL,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,V=[this.minX,this.minY,this.maxX,this.maxY];if(L===s.PathType.STROKE){P||(0,n.unreachable)("Stroke bounding box must include transform.");var ee=n.Util.singularValueDecompose2dScale(P),oe=ee[0]*this.lineWidth/2,pe=ee[1]*this.lineWidth/2;V[0]-=oe,V[1]-=pe,V[2]+=oe,V[3]+=pe}return V}},{key:"updateClipFromPath",value:function(){var L=n.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(L||[0,0,0,0])}},{key:"startNewPathAndClipBox",value:function(L){this.clipBox=L,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}},{key:"getClippedPathBoundingBox",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s.PathType.FILL,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return n.Util.intersect(this.clipBox,this.getPathBoundingBox(L,P))}}]),se})();function te(se,Q){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(typeof ImageData<"u"&&Q instanceof ImageData){se.putImageData(Q,0,0);return}var P=Q.height,V=Q.width,ee=P%k,oe=(P-ee)/k,pe=ee===0?oe:oe+1,Te=se.createImageData(V,k),Oe=0,Me,Fe=Q.data,ze=Te.data,Ye,Je,nt,tt,ct,lt,Ee,Re;if(L)switch(L.length){case 1:ct=L[0],lt=L[0],Ee=L[0],Re=L[0];break;case 4:ct=L[0],lt=L[1],Ee=L[2],Re=L[3];break}if(Q.kind===n.ImageKind.GRAYSCALE_1BPP){var Z=Fe.byteLength,he=new 
67Uint32Array(ze.buffer,0,ze.byteLength>>2),ue=he.length,ye=V+7>>3,me=4294967295,de=n.IsLittleEndianCached.value?4278190080:255;if(Re&&Re[0]===255&&Re[255]===0){var W=[de,me];me=W[0],de=W[1]}for(Ye=0;Ye<pe;Ye++){for(nt=Ye<oe?k:ee,Me=0,Je=0;Je<nt;Je++){for(var G=Z-Oe,ce=0,we=G>ye?V:G*8-7,Ce=we&-8,De=0,Se=0;ce<Ce;ce+=8)Se=Fe[Oe++],he[Me++]=Se&128?me:de,he[Me++]=Se&64?me:de,he[Me++]=Se&32?me:de,he[Me++]=Se&16?me:de,he[Me++]=Se&8?me:de,he[Me++]=Se&4?me:de,he[Me++]=Se&2?me:de,he[Me++]=Se&1?me:de;for(;ce<we;ce++)De===0&&(Se=Fe[Oe++],De=128),he[Me++]=Se&De?me:de,De>>=1}for(;Me<ue;)he[Me++]=0;se.putImageData(Te,0,Ye*k)}}else if(Q.kind===n.ImageKind.RGBA_32BPP){var He=!!(ct||lt||Ee);for(Je=0,tt=V*k*4,Ye=0;Ye<oe;Ye++){if(ze.set(Fe.subarray(Oe,Oe+tt)),Oe+=tt,He)for(var Ne=0;Ne<tt;Ne+=4)ct&&(ze[Ne+0]=ct[ze[Ne+0]]),lt&&(ze[Ne+1]=lt[ze[Ne+1]]),Ee&&(ze[Ne+2]=Ee[ze[Ne+2]]);se.putImageData(Te,0,Je),Je+=k}if(Ye<pe){if(tt=V*ee*4,ze.set(Fe.subarray(Oe,Oe+tt)),He)for(var Ve=0;Ve<tt;Ve+=4)ct&&(ze[Ve+0]=ct[ze[Ve+0]]),lt&&(ze[Ve+1]=lt[ze[Ve+1]]),Ee&&(ze[Ve+2]=Ee[ze[Ve+2]]);se.putImageData(Te,0,Je)}}else if(Q.kind===n.ImageKind.RGB_24BPP){var rt=!!(ct||lt||Ee);for(nt=k,tt=V*nt,Ye=0;Ye<pe;Ye++){for(Ye>=oe&&(nt=ee,tt=V*nt),Me=0,Je=tt;Je--;)ze[Me++]=Fe[Oe++],ze[Me++]=Fe[Oe++],ze[Me++]=Fe[Oe++],ze[Me++]=255;if(rt)for(var et=0;et<Me;et+=4)ct&&(ze[et+0]=ct[ze[et+0]]),lt&&(ze[et+1]=lt[ze[et+1]]),Ee&&(ze[et+2]=Ee[ze[et+2]]);se.putImageData(Te,0,Ye*k)}}else throw new Error("bad image kind: ".concat(Q.kind))}function le(se,Q){for(var L=Q.height,P=Q.width,V=L%k,ee=(L-V)/k,oe=V===0?ee:ee+1,pe=se.createImageData(P,k),Te=0,Oe=Q.data,Me=pe.data,Fe=0;Fe<oe;Fe++){for(var ze=Fe<ee?k:V,Ye=3,Je=0;Je<ze;Je++)for(var nt=void 0,tt=0,ct=0;ct<P;ct++)tt||(nt=Oe[Te++],tt=128),Me[Ye]=nt&tt?0:255,Ye+=4,tt>>=1;se.putImageData(pe,0,Fe*k)}}function fe(se,Q){for(var L=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],P=0,V=L.length;P<V;P++){var ee=L[P];se[ee]!==void 0&&(Q[ee]=se[ee])}se.setLineDash!==void 0&&(Q.setLineDash(se.getLineDash()),Q.lineDashOffset=se.lineDashOffset)}function ve(se){se.strokeStyle="#000000",se.fillStyle="#000000",se.fillRule="nonzero",se.globalAlpha=1,se.lineWidth=1,se.lineCap="butt",se.lineJoin="miter",se.miterLimit=10,se.globalCompositeOperation="source-over",se.font="10px sans-serif",se.setLineDash!==void 0&&(se.setLineDash([]),se.lineDashOffset=0)}function q(se,Q,L,P){for(var V=se.length,ee=3;ee<V;ee+=4){var oe=se[ee];if(oe===0)se[ee-3]=Q,se[ee-2]=L,se[ee-1]=P;else if(oe<255){var pe=255-oe;se[ee-3]=se[ee-3]*oe+Q*pe>>8,se[ee-2]=se[ee-2]*oe+L*pe>>8,se[ee-1]=se[ee-1]*oe+P*pe>>8}}}function Y(se,Q,L){for(var P=se.length,V=1/255,ee=3;ee<P;ee+=4){var oe=L?L[se[ee]]:se[ee];Q[ee]=Q[ee]*oe*V|0}}function U(se,Q,L){for(var P=se.length,V=3;V<P;V+=4){var ee=se[V-3]*77+se[V-2]*152+se[V-1]*28;Q[V]=L?Q[V]*L[ee>>8]>>8:Q[V]*ee>>16}}function p(se,Q,L,P,V,ee,oe,pe,Te,Oe,Me){var Fe=!!ee,ze=Fe?ee[0]:0,Ye=Fe?ee[1]:0,Je=Fe?ee[2]:0,nt;V==="Luminosity"?nt=U:nt=Y;for(var tt=1048576,ct=Math.min(P,Math.ceil(tt/L)),lt=0;lt<P;lt+=ct){var Ee=Math.min(ct,P-lt),Re=se.getImageData(pe-Oe,lt+(Te-Me),L,Ee),Z=Q.getImageData(pe,lt+Te,L,Ee);Fe&&q(Re.data,ze,Ye,Je),nt(Re.data,Z.data,oe),Q.putImageData(Z,pe,lt+Te)}}function x(se,Q,L,P){var V=P[0],ee=P[1],oe=P[2]-V,pe=P[3]-ee;oe===0||pe===0||(p(Q.context,L,oe,pe,Q.subtype,Q.backdrop,Q.transferMap,V,ee,Q.offsetX,Q.offsetY),se.save(),se.globalAlpha=1,se.globalCompositeOperation="source-over",se.setTransform(1,0,0,1,0,0),se.drawImage(L.canvas,0,0),se.restore())}function H(se,Q){var L=n.Util.singularValueDecompose2dScale(se);L[0]=Math.fround(L[0]),L[1]=Math.fround(L[1]);var P=Math.fround((globalThis.devicePixelRatio||1)*l.PixelsPerInch.PDF_TO_CSS_UNITS);return Q!==void 0?Q:L[0]<=P||L[1]<=P}var ne=["butt","round","square"],ae=["miter","round","bevel"],ie={},xe={},Ue=(function(){function se(Q,L,P,V,ee,oe,pe){S(this,se),this.ctx=Q,this.current=new K(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=L,this.objs=P,this.canvasFactory=V,this.imageLayer=ee,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=oe,this.cachedCanvases=new z(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=pe,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,Q&&D(Q),this._cachedGetSinglePixelWidth=null}return N(se,[{key:"beginDrawing",value:function(L){var P=L.transform,V=L.viewport,ee=L.transparency,oe=ee===void 0?!1:ee,pe=L.background,Te=pe===void 0?null:pe,Oe=this.ctx.canvas.width,Me=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=Te||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,Oe,Me),this.ctx.restore(
vendor: 12,391 bytes, line 67
67),oe){var Fe=this.cachedCanvases.getCanvas("transparent",Oe,Me,!0);this.compositeCtx=this.ctx,this.transparentCanvas=Fe.canvas,this.ctx=Fe.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),ve(this.ctx),P&&(this.ctx.transform.apply(this.ctx,P),this.outputScaleX=P[0],this.outputScaleY=P[0]),this.ctx.transform.apply(this.ctx,V.transform),this.viewportScale=V.scale,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(L,P,V,ee){var oe=L.argsArray,pe=L.fnArray,Te=P||0,Oe=oe.length;if(Oe===Te)return Te;for(var Me=Oe-Te>h&&typeof V=="function",Fe=Me?Date.now()+g:0,ze=0,Ye=this.commonObjs,Je=this.objs,nt;;){if(ee!==void 0&&Te===ee.nextBreakPoint)return ee.breakIt(Te,V),Te;if(nt=pe[Te],nt!==n.OPS.dependency)this[nt].apply(this,oe[Te]);else{var tt=d(oe[Te]),ct;try{for(tt.s();!(ct=tt.n()).done;){var lt=ct.value,Ee=lt.startsWith("g_")?Ye:Je;if(!Ee.has(lt))return Ee.get(lt,V),Te}}catch(Re){tt.e(Re)}finally{tt.f()}}if(Te++,Te===Oe)return Te;if(Me&&++ze>h){if(Date.now()>Fe)return V(),Te;ze=0}}}},{key:"endDrawing",value:function(){for(;this.stateStack.length||this.current.activeSMask!==null;)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(L,P){for(var V=L.width,ee=L.height,oe=Math.max(Math.hypot(P[0],P[1]),1),pe=Math.max(Math.hypot(P[2],P[3]),1),Te=V,Oe=ee,Me="prescale1",Fe,ze;oe>2&&Te>1||pe>2&&Oe>1;){var Ye=Te,Je=Oe;oe>2&&Te>1&&(Ye=Math.ceil(Te/2),oe/=Te/Ye),pe>2&&Oe>1&&(Je=Math.ceil(Oe/2),pe/=Oe/Je),Fe=this.cachedCanvases.getCanvas(Me,Ye,Je),ze=Fe.context,ze.clearRect(0,0,Ye,Je),ze.drawImage(L,0,0,Te,Oe,0,0,Ye,Je),L=Fe.canvas,Te=Ye,Oe=Je,Me=Me==="prescale1"?"prescale2":"prescale1"}return{img:L,paintWidth:Te,paintHeight:Oe}}},{key:"_createMaskCanvas",value:function(L){var P=this.ctx,V=L.width,ee=L.height,oe=this.current.fillColor,pe=this.current.patternFill,Te=this.cachedCanvases.getCanvas("maskCanvas",V,ee),Oe=Te.context;le(Oe,L);var Me=P.mozCurrentTransform,Fe=n.Util.transform(Me,[1/V,0,0,-1/ee,0,0]);Fe=n.Util.transform(Fe,[1,0,0,1,0,-ee]);var ze=n.Util.applyTransform([0,0],Fe),Ye=n.Util.applyTransform([V,ee],Fe),Je=n.Util.normalizeRect([ze[0],ze[1],Ye[0],Ye[1]]),nt=Math.ceil(Je[2]-Je[0]),tt=Math.ceil(Je[3]-Je[1]),ct=this.cachedCanvases.getCanvas("fillCanvas",nt,tt,!0),lt=ct.context,Ee=Math.min(ze[0],Ye[0]),Re=Math.min(ze[1],Ye[1]);lt.translate(-Ee,-Re),lt.transform.apply(lt,Fe);var Z=this._scaleImage(Te.canvas,lt.mozCurrentTransformInverse);lt.imageSmoothingEnabled=H(lt.mozCurrentTransform,L.interpolate),lt.drawImage(Z.img,0,0,Z.img.width,Z.img.height,0,0,V,ee),lt.globalCompositeOperation="source-in";var he=n.Util.transform(lt.mozCurrentTransformInverse,[1,0,0,1,-Ee,-Re]);return lt.fillStyle=pe?oe.getPattern(P,this,he,s.PathType.FILL):oe,lt.fillRect(0,0,V,ee),{canvas:ct.canvas,offsetX:Math.round(Ee),offsetY:Math.round(Re)}}},{key:"setLineWidth",value:function(L){this.current.lineWidth=L,this.ctx.lineWidth=L}},{key:"setLineCap",value:function(L){this.ctx.lineCap=ne[L]}},{key:"setLineJoin",value:function(L){this.ctx.lineJoin=ae[L]}},{key:"setMiterLimit",value:function(L){this.ctx.miterLimit=L}},{key:"setDash",value:function(L,P){var V=this.ctx;V.setLineDash!==void 0&&(V.setLineDash(L),V.lineDashOffset=P)}},{key:"setRenderingIntent",value:function(L){}},{key:"setFlatness",value:function(L){}},{key:"setGState",value:function(L){for(var P=0,V=L.length;P<V;P++){var ee=L[P],oe=ee[0],pe=ee[1];switch(oe){case"LW":this.setLineWidth(pe);break;case"LC":this.setLineCap(pe);break;case"LJ":this.setLineJoin(pe);break;case"ML":this.setMiterLimit(pe);break;case"D":this.setDash(pe[0],pe[1]);break;case"RI":this.setRenderingIntent(pe);break;case"FL":this.setFlatness(pe);break;case"Font":this.setFont(pe[0],pe[1]);break;case"CA":this.current.strokeAlpha=ee[1];break;case"ca":this.current.fillAlpha=ee[1],this.ctx.globalAlpha=ee[1];break;case"BM":this.ctx.globalCompositeOperation=pe;break;case"SMask":this.current.activeSMask=pe?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.current.transferMaps=pe}}}},{key:"checkSMaskState",value:function(){var L=!!this.suspendedCtx;this.current.activeSMask&&!L?this.beginSMaskMode():!this.current.activeSMask&&L&&this.endSMaskMode()}},{key:"beginSMaskMode",value:function(){if(this.suspendedCtx)throw new Error("beginSMaskMode called while already in smask mode");var L=this.ctx.canvas.width,P=this.ctx.canvas.height,V="smaskGroupAt"+this.groupLevel,ee=this.cachedCanvases.getCanvas(V,L,P,!0);this.suspendedCtx=this.ctx,this.ctx=ee.context;var oe=this.ctx;oe.setTransform.apply(oe,this.suspendedCtx.mozCurrentTransform),fe(this.suspendedCtx,oe),w(oe,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}},{key:"endSMaskMode",value:function(){if(!this.suspendedCtx)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),fe(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.current.activeSMask=null,this.suspendedCtx=null}},{key:"compose",value:function(L){if(this.current.activeSMask){L?(L[0]=Math.floor(L[0]),L[1]=Math.floor(L[1]),L[2]=Math.ceil(L[2]),L[3]=Math.ceil(L[3])):L=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];var P=this.current.activeSMask,V=this.suspendedCtx;x(V,P,this.ctx,L),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}}},{key:"save",value:function(){this.ctx.save();var L=this.current;this.stateStack.push(L),this.current=L.clone()}},{key:"restore",value:function(){this.stateStack.length===0&&this.current.activeSMask&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)}},{key:"transform",value:function(L,P,V,ee,oe,pe){this.ctx.transform(L,P,V,ee,oe,pe),this._cachedGetSinglePixelWidth=null}},{key:"constructPath",value:function(L,P){for(var V=this.ctx,ee=this.current,oe=ee.x,pe=ee.y,Te,Oe,Me=0,Fe=0,ze=L.length;Me<ze;Me++)switch(L[Me]|0){case n.OPS.rectangle:oe=P[Fe++],pe=P[Fe++];var Ye=P[Fe++],Je=P[Fe++],nt=oe+Ye,tt=pe+Je;V.moveTo(oe,pe),Ye===0||Je===0?V.lineTo(nt,tt):(V.lineTo(nt,pe),V.lineTo(nt,tt),V.lineTo(oe,tt)),ee.updatePathMinMax(V.mozCurrentTransform,oe,pe),ee.updatePathMinMax(V.mozCurrentTransform,nt,tt),V.closePath();break;case n.OPS.moveTo:oe=P[Fe++],pe=P[Fe++],V.moveTo(oe,pe),ee.updatePathMinMax(V.mozCurrentTransform,oe,pe);break;case n.OPS.lineTo:oe=P[Fe++],pe=P[Fe++],V.lineTo(oe,pe),ee.updatePathMinMax(V.mozCurrentTransform,oe,pe);break;case n.OPS.curveTo:Te=oe,Oe=pe,oe=P[Fe+4],pe=P[Fe+5],V.bezierCurveTo(P[Fe],P[Fe+1],P[Fe+2],P[Fe+3],oe,pe),ee.updateCurvePathMinMax(V.mozCurrentTransform,Te,Oe,P[Fe],P[Fe+1],P[Fe+2],P[Fe+3],oe,pe),Fe+=6;break;case n.OPS.curveTo2:Te=oe,Oe=pe,V.bezierCurveTo(oe,pe,P[Fe],P[Fe+1],P[Fe+2],P[Fe+3]),ee.updateCurvePathMinMax(V.mozCurrentTransform,Te,Oe,oe,pe,P[Fe],P[Fe+1],P[Fe+2],P[Fe+3]),oe=P[Fe+2],pe=P[Fe+3],Fe+=4;break;case n.OPS.curveTo3:Te=oe,Oe=pe,oe=P[Fe+2],pe=P[Fe+3],V.bezierCurveTo(P[Fe],P[Fe+1],oe,pe,oe,pe),ee.updateCurvePathMinMax(V.mozCurrentTransform,Te,Oe,P[Fe],P[Fe+1],oe,pe,oe,pe),Fe+=4;break;case n.OPS.closePath:V.closePath();break}ee.setCurrentPoint(oe,pe)}},{key:"closePath",value:function(){this.ctx.closePath()}},{key:"stroke",value:function(L){L=typeof L<"u"?L:!0;var P=this.ctx,V=this.current.strokeColor;if(P.globalAlpha=this.current.strokeAlpha,this.contentVisible)if(f(V)==="object"&&V!==null&&V!==void 0&&V.getPattern){var ee=this.getSinglePixelWidth();P.save(),P.strokeStyle=V.getPattern(P,this,P.mozCurrentTransformInverse,s.PathType.STROKE),P.lineWidth=Math.max(ee,this.current.lineWidth),P.stroke(),P.restore()}else{var oe=this.getSinglePixelWidth();oe<0&&-oe>=this.current.lineWidth?(P.save(),P.resetTransform(),P.lineWidth=Math.round(this._combinedScaleFactor),P.stroke(),P.restore()):(P.lineWidth=Math.max(oe,this.current.lineWidth),P.stroke())}L&&this.consumePath(this.current.getClippedPathBoundingBox()),P.globalAlpha=this.current.fillAlpha}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"fill",value:function(L){L=typeof L<"u"?L:!0;var P=this.ctx,V=this.current.fillColor,ee=this.current.patternFill,oe=!1;ee&&(P.save(),P.fillStyle=V.getPattern(P,this,P.mozCurrentTransformInverse,s.PathType.FILL),oe=!0);var pe=this.current.getClippedPathBoundingBox();this.contentVisible&&pe!==null&&(this.pendingEOFill?(P.fill("evenodd"),this.pendingEOFill=!1):P.fill()),oe&&P.restore(),L&&this.consumePath(pe)}},{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=ie}},{key:"eoClip",value:function(){this.pendingClip=xe}},{key:"beginText",value:function(){this.current.textMatrix=n.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 L=this.pendingTextPaths,P=this.ctx;if(L===void 0){P.beginPath();return}P.save(),P.beginPath();for(var V=0;V<L.length;V++){var ee=L[V];P.setTransform.apply(P,ee.transform),P.translate(ee.x,ee.y),ee.addToPath(P,ee.fontSize)}P.restore(),P.clip(),P.beginPath(),delete this.pendingTextPaths}},{key:"setCharSpacing",value:function(L){this.current.charSpacing=L}},{key:"setWordSpacing",value:function(L){this.current.wordSpacing=L}},{key:"setHScale",value:function(L){this.current.textHScale=L/100}},{key:"setLeading",value:function(L){this.current.leading=-L}},{key:"setFont",value:function(L,P){var V=this.commonObjs.get(L),ee=this.current;if(!V)throw new Error("Can't find font for ".concat(L));if(ee.fontMatrix=V.fontMatrix||n.FONT_IDENTITY_MATRIX,(ee.fontMatrix[0]===0||ee.fontMatrix[3]===0)&&(0,n.warn)("Invalid font matrix for font "+L),P<0?(P=-P,ee.fontDirection=-1):ee.fontDirection=1,this.current.font=V,this.current.fontSize=P,!V.isType3Font){var oe=V.loadedName||"sans-serif",pe="normal";V.black?pe="900":V.bold&&(pe="bold");var Te=V.italic?"italic":"normal",Oe='"'.concat(oe,'", ').concat(V.fallbackName),Me=P;P<$?Me=$:P>F&&(Me=F),this.current.fontSizeScale=P/Me,this.ctx.font="".concat(Te," ").concat(pe," ").concat(Me,"px ").concat(Oe)}}},{key:"setTextRenderingMode",value:function(L){this.current.textRenderingMode=L}},{key:"setTextRise",value:function(L){this.current.textRise=L}},{key:"moveText",value:function(L,P){this.current.x=this.current.lineX+=L,this.current.y=this.current.lineY+=P}},{key:"setLeadingMoveText",value:function(L,P){this.setLeading(-P),this.moveText(L,P)}},{key:"setTextMatrix",value:function(L,P,V,ee,oe,pe){this.current.textMatrix=[L,P,V,ee,oe,pe],this.current.textMatrixScale=Math.hypot(L,P),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(L,P,V,ee,oe){var pe=this.ctx,Te=this.current,Oe=Te.font,Me=Te.textRenderingMode,Fe=Te.fontSize/Te.fontSizeScale,ze=Me&n.TextRenderingMode.FILL_STROKE_MASK,Ye=!!(Me&n.TextRenderingMode.ADD_TO_PATH_FLAG),Je=Te.patternFill&&!Oe.missingFile,nt;if((Oe.disableFontFace||Ye||Je)&&(nt=Oe.getPathGenerator(this.commonObjs,L)),Oe.disableFontFace||Je?(pe.save(),pe.translate(P,V),pe.beginPath(),nt(pe,Fe),ee&&pe.setTransform.apply(pe,ee),(ze===n.TextRenderingMode.FILL||ze===n.TextRenderingMode.FILL_STROKE)&&pe.fill(),(ze===n.TextRenderingMode.STROKE||ze===n.TextRenderingMode.FILL_STROKE)&&(oe&&(pe.resetTransform(),pe.lineWidth=Math.round(this._combinedScaleFactor)),pe.stroke()),pe.restore(
67)):((ze===n.TextRenderingMode.FILL||ze===n.TextRenderingMode.FILL_STROKE)&&pe.fillText(L,P,V),(ze===n.TextRenderingMode.STROKE||ze===n.TextRenderingMode.FILL_STROKE)&&(oe?(pe.save(),pe.moveTo(P,V),pe.resetTransform(),pe.lineWidth=Math.round(this._combinedScaleFactor),pe.strokeText(L,0,0),pe.restore()):pe.strokeText(L,P,V))),Ye){var tt=this.pendingTextPaths||(this.pendingTextPaths=[]);tt.push({transform:pe.mozCurrentTransform,x:P,y:V,fontSize:Fe,addToPath:nt})}}},{key:"isFontSubpixelAAEnabled",get:function(){var L=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10),P=L.context;P.scale(1.5,1),P.fillText("I",0,10);for(var V=P.getImageData(0,0,10,10).data,ee=!1,oe=3;oe<V.length;oe+=4)if(V[oe]>0&&V[oe]<255){ee=!0;break}return(0,n.shadow)(this,"isFontSubpixelAAEnabled",ee)}},{key:"showText",value:function(L){var P=this.current,V=P.font;if(V.isType3Font)return this.showType3Text(L);var ee=P.fontSize;if(ee!==0){var oe=this.ctx,pe=P.fontSizeScale,Te=P.charSpacing,Oe=P.wordSpacing,Me=P.fontDirection,Fe=P.textHScale*Me,ze=L.length,Ye=V.vertical,Je=Ye?1:-1,nt=V.defaultVMetrics,tt=ee*P.fontMatrix[0],ct=P.textRenderingMode===n.TextRenderingMode.FILL&&!V.disableFontFace&&!P.patternFill;oe.save(),oe.transform.apply(oe,P.textMatrix),oe.translate(P.x,P.y+P.textRise),Me>0?oe.scale(Fe,-1):oe.scale(Fe,1);var lt;if(P.patternFill){oe.save();var Ee=P.fillColor.getPattern(oe,this,oe.mozCurrentTransformInverse,s.PathType.FILL);lt=oe.mozCurrentTransform,oe.restore(),oe.fillStyle=Ee}var Re=P.lineWidth,Z=!1,he=P.textMatrixScale;if(he===0||Re===0){var ue=P.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;(ue===n.TextRenderingMode.STROKE||ue===n.TextRenderingMode.FILL_STROKE)&&(this._cachedGetSinglePixelWidth=null,Re=this.getSinglePixelWidth(),Z=Re<0)}else Re/=he;pe!==1&&(oe.scale(pe,pe),Re/=pe),oe.lineWidth=Re;var ye=0,me;for(me=0;me<ze;++me){var de=L[me];if((0,n.isNum)(de)){ye+=Je*de*ee/1e3;continue}var W=!1,G=(de.isSpace?Oe:0)+Te,ce=de.fontChar,we=de.accent,Ce=void 0,De=void 0,Se=de.width;if(Ye){var He=de.vmetric||nt,Ne=-(de.vmetric?He[1]:Se*.5)*tt,Ve=He[2]*tt;Se=He?-He[0]:Se,Ce=Ne/pe,De=(ye+Ve)/pe}else Ce=ye/pe,De=0;if(V.remeasure&&Se>0){var rt=oe.measureText(ce).width*1e3/ee*pe;if(Se<rt&&this.isFontSubpixelAAEnabled){var et=Se/rt;W=!0,oe.save(),oe.scale(et,1),Ce/=et}else Se!==rt&&(Ce+=(Se-rt)/2e3*ee/pe)}if(this.contentVisible&&(de.isInFont||V.missingFile)){if(ct&&!we)oe.fillText(ce,Ce,De);else if(this.paintChar(ce,Ce,De,lt,Z),we){var pt=Ce+ee*we.offset.x/pe,mt=De-ee*we.offset.y/pe;this.paintChar(we.fontChar,pt,mt,lt,Z)}}var xt=void 0;Ye?xt=Se*tt-G*Me:xt=Se*tt+G*Me,ye+=xt,W&&oe.restore()}Ye?P.y-=ye:P.x+=ye*Fe,oe.restore(),this.compose()}}},{key:"showType3Text",value:function(L){var P=this.ctx,V=this.current,ee=V.font,oe=V.fontSize,pe=V.fontDirection,Te=ee.vertical?1:-1,Oe=V.charSpacing,Me=V.wordSpacing,Fe=V.textHScale*pe,ze=V.fontMatrix||n.FONT_IDENTITY_MATRIX,Ye=L.length,Je=V.textRenderingMode===n.TextRenderingMode.INVISIBLE,nt,tt,ct,lt;if(!(Je||oe===0)){for(this._cachedGetSinglePixelWidth=null,P.save(),P.transform.apply(P,V.textMatrix),P.translate(V.x,V.y),P.scale(Fe,pe),nt=0;nt<Ye;++nt){if(tt=L[nt],(0,n.isNum)(tt)){lt=Te*tt*oe/1e3,this.ctx.translate(lt,0),V.x+=lt*Fe;continue}var Ee=(tt.isSpace?Me:0)+Oe,Re=ee.charProcOperatorList[tt.operatorListId];if(!Re){(0,n.warn)('Type3 character "'.concat(tt.operatorListId,'" is not available.'));continue}this.contentVisible&&(this.processingType3=tt,this.save(),P.scale(oe,oe),P.transform.apply(P,ze),this.executeOperatorList(Re),this.restore());var Z=n.Util.applyTransform([tt.width,0],ze);ct=Z[0]*oe+Ee,P.translate(ct,0),V.x+=ct*Fe}P.restore(),this.processingType3=null}}},{key:"setCharWidth",value:function(L,P){}},{key:"setCharWidthAndBounds",value:function(L,P,V,ee,oe,pe){this.ctx.rect(V,ee,oe-V,pe-ee),this.clip(),this.endPath()}},{key:"getColorN_Pattern",value:function(L){var P=this,V;if(L[0]==="TilingPattern"){var ee=L[1],oe=this.baseTransform||this.ctx.mozCurrentTransform.slice(),pe={createCanvasGraphics:function(Oe){return new se(Oe,P.commonObjs,P.objs,P.canvasFactory)}};V=new s.TilingPattern(L,ee,this.ctx,pe,oe)}else V=this._getPattern(L[1],L[2]);return V}},{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(L,P,V){var ee=n.Util.makeHexColor(L,P,V);this.ctx.strokeStyle=ee,this.current.strokeColor=ee}},{key:"setFillRGBColor",value:function(L,P,V){var ee=n.Util.makeHexColor(L,P,V);this.ctx.fillStyle=ee,this.current.fillColor=ee,this.current.patternFill=!1}},{key:"_getPattern",value:function(L){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,V;return this.cachedPatterns.has(L)?V=this.cachedPatterns.get(L):(V=(0,s.getShadingPattern)(this.objs.get(L)),this.cachedPatterns.set(L,V)),P&&(V.matrix=P),V}},{key:"shadingFill",value:function(L){if(this.contentVisible){var P=this.ctx;this.save();var V=this._getPattern(L);P.fillStyle=V.getPattern(P,this,P.mozCurrentTransformInverse,s.PathType.SHADING);var ee=P.mozCurrentTransformInverse;if(ee){var oe=P.canvas,pe=oe.width,Te=oe.height,Oe=n.Util.applyTransform([0,0],ee),Me=n.Util.applyTransform([0,Te],ee),Fe=n.Util.applyTransform([pe,0],ee),ze=n.Util.applyTransform([pe,Te],ee),Ye=Math.min(Oe[0],Me[0],Fe[0],ze[0]),Je=Math.min(Oe[1],Me[1],Fe[1],ze[1]),nt=Math.max(Oe[0],Me[0],Fe[0],ze[0]),tt=M
vendor: 8,000 bytes, line 67
67ath.max(Oe[1],Me[1],Fe[1],ze[1]);this.ctx.fillRect(Ye,Je,nt-Ye,tt-Je)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}}},{key:"beginInlineImage",value:function(){(0,n.unreachable)("Should not call beginInlineImage")}},{key:"beginImageData",value:function(){(0,n.unreachable)("Should not call beginImageData")}},{key:"paintFormXObjectBegin",value:function(L,P){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(L)&&L.length===6&&this.transform.apply(this,L),this.baseTransform=this.ctx.mozCurrentTransform,P)){var V=P[2]-P[0],ee=P[3]-P[1];this.ctx.rect(P[0],P[1],V,ee),this.current.updatePathMinMax(this.ctx.mozCurrentTransform,P[0],P[1]),this.current.updatePathMinMax(this.ctx.mozCurrentTransform,P[2],P[3]),this.clip(),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}},{key:"beginGroup",value:function(L){if(this.contentVisible){this.save();var P=this.suspendedCtx;this.current.activeSMask&&(this.suspendedCtx=null,this.current.activeSMask=null);var V=this.ctx;L.isolated||(0,n.info)("TODO: Support non-isolated groups."),L.knockout&&(0,n.warn)("Knockout groups not supported.");var ee=V.mozCurrentTransform;if(L.matrix&&V.transform.apply(V,L.matrix),!L.bbox)throw new Error("Bounding box is required.");var oe=n.Util.getAxialAlignedBoundingBox(L.bbox,V.mozCurrentTransform),pe=[0,0,V.canvas.width,V.canvas.height];oe=n.Util.intersect(oe,pe)||[0,0,0,0];var Te=Math.floor(oe[0]),Oe=Math.floor(oe[1]),Me=Math.max(Math.ceil(oe[2])-Te,1),Fe=Math.max(Math.ceil(oe[3])-Oe,1),ze=1,Ye=1;Me>M&&(ze=Me/M,Me=M),Fe>M&&(Ye=Fe/M,Fe=M),this.current.startNewPathAndClipBox([0,0,Me,Fe]);var Je="groupAt"+this.groupLevel;L.smask&&(Je+="_smask_"+this.smaskCounter++%2);var nt=this.cachedCanvases.getCanvas(Je,Me,Fe,!0),tt=nt.context;tt.scale(1/ze,1/Ye),tt.translate(-Te,-Oe),tt.transform.apply(tt,ee),L.smask?this.smaskStack.push({canvas:nt.canvas,context:tt,offsetX:Te,offsetY:Oe,scaleX:ze,scaleY:Ye,subtype:L.smask.subtype,backdrop:L.smask.backdrop,transferMap:L.smask.transferMap||null,startTransformInverse:null}):(V.setTransform(1,0,0,1,0,0),V.translate(Te,Oe),V.scale(ze,Ye),V.save()),fe(V,tt),this.ctx=tt,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push({ctx:V,suspendedCtx:P}),this.groupLevel++}}},{key:"endGroup",value:function(L){if(this.contentVisible){this.groupLevel--;var P=this.ctx,V=this.groupStack.pop(),ee=V.ctx,oe=V.suspendedCtx;if(this.ctx=ee,this.ctx.imageSmoothingEnabled=!1,oe&&(this.suspendedCtx=oe),L.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();var pe=this.ctx.mozCurrentTransform;this.restore(),this.ctx.save(),this.ctx.setTransform.apply(this.ctx,pe);var Te=n.Util.getAxialAlignedBoundingBox([0,0,P.canvas.width,P.canvas.height],pe);this.ctx.drawImage(P.canvas,0,0),this.ctx.restore(),this.compose(Te)}}}},{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(L,P,V,ee,oe){if(this.save(),Array.isArray(P)&&P.length===4){var pe=P[2]-P[0],Te=P[3]-P[1];if(oe&&this.annotationCanvasMap){V=V.slice(),V[4]-=P[0],V[5]-=P[1],P=P.slice(),P[0]=P[1]=0,P[2]=pe,P[3]=Te;var Oe=n.Util.singularValueDecompose2dScale(this.ctx.mozCurrentTransform),Me=B(Oe,2),Fe=Me[0],ze=Me[1],Ye=this.viewportScale,Je=Math.ceil(pe*this.outputScaleX*Ye),nt=Math.ceil(Te*this.outputScaleY*Ye);this.annotationCanvas=this.canvasFactory.create(Je,nt);var tt=this.annotationCanvas,ct=tt.canvas,lt=tt.context;ct.style.width="calc(".concat(pe,"px * var(--viewport-scale-factor))"),ct.style.height="calc(".concat(Te,"px * var(--viewport-scale-factor))"),this.annotationCanvasMap.set(L,ct),this.annotationCanvas.savedCtx=this.ctx,this.ctx=lt,this.ctx.setTransform(Fe,0,0,-ze,0,Te*ze),D(this.ctx),ve(this.ctx)}else ve(this.ctx),this.ctx.rect(P[0],P[1],pe,Te),this.clip(),this.endPath()}this.current=new K(this.ctx.canvas.width,this.ctx.canvas.height),this.transform.apply(this,V),this.transform.apply(this,ee)}},{key:"endAnnotation",value:function(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas),this.restore()}},{key:"paintImageMaskXObject",value:function(L){if(this.contentVisible){var P=this.ctx,V=L.width,ee=L.height,oe=this.processingType3;if(oe&&oe.compiled===void 0&&(V<=m&&ee<=m?oe.compiled=J({data:L.data,width:V,height:ee}):oe.compiled=null),oe!=null&&oe.compiled){oe.compiled(P);return}var pe=this._createMaskCanvas(L),Te=pe.canvas;P.save(),P.setTransform(1,0,0,1,0,0),P.drawImage(Te,pe.offsetX,pe.offsetY),P.restore(),this.compose()}}},{key:"paintImageMaskXObjectRepeat",value:function(L,P){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,oe=arguments.length>4?arguments[4]:void 0,pe=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){var Te=this.ctx;Te.save();var Oe=Te.mozCurrentTransform;Te.transform(P,V,ee,oe,0,0);var Me=this._createMaskCanvas(L);Te.setTransform(1,0,0,1,0,0);for(var Fe=0,ze=pe.length;Fe<ze;Fe+=2){var Ye=n.Util.transform(Oe,[P,V,ee,oe,pe[Fe],pe[Fe+1]]),Je=n.Util.applyTransform([0,0],Ye),nt=B(Je,2),tt=nt[0],ct=nt[1];Te.drawImage(Me.canvas,tt,ct)}Te.restore(),this.compose()}}},{key:"paintImageMaskXObjectGroup",value:function(L){if(this.contentVisible){for(var P=this.ctx,V=this.current.fillColor,ee=this.current.patternFill,oe=0,pe=L.length;oe<pe;oe++){var Te=L[oe],Oe=Te.width,Me=Te.height,Fe=this.cachedCanvases.getCanvas("maskCanvas",Oe,Me),ze=Fe.context;ze.save(),le(ze,Te),ze.globalCompositeOperation="source-in",ze.fillStyle=ee?V.getPattern(ze,this,P.mozCurrentTransformInverse,s.PathType.FILL):V,ze.fillRect(0,0,Oe,Me),ze.restore(),P.save(),P.transform.apply(P,Te.transform),P.scale(1,-1),P.drawImage(Fe.canvas,0,0,Oe,Me,0,-1,1,1),P.restore()}this.compose()}}},{key:"paintImageXObject",value:function(L){if(this.contentVisible){var P=L.startsWith("g_")?this.commonObjs.get(L):this.objs.get(L);if(!P){(0,n.warn)("Dependent image isn't ready yet");return}this.paintInlineImageXObject(P)}}},{key:"paintImageXObjectRepeat",value:function(L,P,V,ee){if(this.contentVisible){var oe=L.startsWith("g_")?this.commonObjs.get(L):this.objs.get(L);if(!oe){(0,n.warn)("Dependent image isn't ready yet");return}for(var pe=oe.width,Te=oe.height,Oe=[],Me=0,Fe=ee.length;Me<Fe;Me+=2)Oe.push({transform:[P,0,0,V,ee[Me],ee[Me+1]],x:0,y:0,w:pe,h:Te});this.paintInlineImageXObjectGroup(oe,Oe)}}},{key:"paintInlineImageXObject",value:function(L){if(this.contentVisible){var P=L.width,V=L.height,ee=this.ctx;this.save(),ee.scale(1/P,-1/V);var oe;if(typeof HTMLElement=="function"&&L instanceof HTMLElement||!L.data)oe=L;else{var pe=this.cachedCanvases.getCanvas("inlineImage",P,V),Te=pe.context;te(Te,L,this.current.transferMaps),oe=pe.canvas}var Oe=this._scaleImage(oe,ee.mozCurrentTransformInverse);if(ee.imageSmoothingEnabled=H(ee.mozCurrentTransform,L.interpolate),ee.drawImage(Oe.img,0,0,Oe.paintWidth,Oe.paintHeight,0,-V,P,V),this.imageLayer){var Me=this.getCanvasPosition(0,-V);this.imageLayer.appendImage({imgData:L,left:Me[0],top:Me[1],width:P/ee.mozCurrentTransformInverse[0],height:V/ee.mozCurrentTransformInverse[3]})}this.compose(),this.restore()}}},{key:"paintInlineImageXObjectGroup",value:function(L,P){if(this.contentVisible){var V=this.ctx,ee=L.width,oe=L.height,pe=this.cachedCanvases.getCanvas("inlineImage",ee,oe),Te=pe.context;te(Te,L,this.current.transferMaps);for(var Oe=0,Me=P.length;Oe<Me;Oe++){var Fe=P[Oe];if(V.save(),V.transform.apply(V,Fe.transform),V.scale(1,-1),V.drawImage(pe.canvas,Fe.x,Fe.y,Fe.w,Fe.h,0,-1,1,1),this.imageLayer){var ze=this.getCanvasPosition(Fe.x,Fe.y);this.imageLayer.appendImage({imgData:L,left:ze[0],top:ze[1],width:ee,height:oe})}
67V.restore()}this.compose()}}},{key:"paintSolidColorImageMask",value:function(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}},{key:"markPoint",value:function(L){}},{key:"markPointProps",value:function(L,P){}},{key:"beginMarkedContent",value:function(L){this.markedContentStack.push({visible:!0})}},{key:"beginMarkedContentProps",value:function(L,P){L==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(P)}):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(L){this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(L);var P=this.ctx;this.pendingClip&&(this.pendingClip===xe?P.clip("evenodd"):P.clip(),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),P.beginPath()}},{key:"getSinglePixelWidth",value:function(){if(this._cachedGetSinglePixelWidth===null){var L=this.ctx.mozCurrentTransform,P=Math.abs(L[0]*L[3]-L[2]*L[1]),V=Math.pow(L[0],2)+Math.pow(L[2],2),ee=Math.pow(L[1],2)+Math.pow(L[3],2),oe=Math.sqrt(Math.max(V,ee))/P;V!==ee&&this._combinedScaleFactor*oe>1?this._cachedGetSinglePixelWidth=-(this._combinedScaleFactor*oe):P>Number.EPSILON?this._cachedGetSinglePixelWidth=oe:this._cachedGetSinglePixelWidth=1}return this._cachedGetSinglePixelWidth}},{key:"getCanvasPosition",value:function(L,P){var V=this.ctx.mozCurrentTransform;return[V[0]*L+V[2]*P+V[4],V[1]*L+V[3]*P+V[5]]}},{key:"isContentVisible",value:function(){for(var L=this.markedContentStack.length-1;L>=0;L--)if(!this.markedContentStack[L].visible)return!1;return!0}}]),se})();i.CanvasGraphics=Ue;for(var qe in n.OPS)Ue.prototype[qe]!==void 0&&(Ue.prototype[n.OPS[qe]]=Ue.prototype[qe])}),((a,i,r)=>{function n(K){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(le){return typeof le}:n=function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},n(K)}Object.defineProperty(i,"__esModule",{value:!0}),i.TilingPattern=i.PathType=void 0,i.getShadingPattern=D;var s=r(4);function l(K,te){var le=typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(!le){if(Array.isArray(K)||(le=f(K))||te){le&&(K=le);var fe=0,ve=function(){};return{s:ve,n:function(){return fe>=K.length?{done:!0}:{done:!1,value:K[fe++]}},e:function(x){throw x},f:ve}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
68In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var q=!0,Y=!1,U;return{s:function(){le=le.call(K)},n:function(){var x=le.next();return q=x.done,x},e:function(x){Y=!0,U=x},f:function(){try{!q&&le.return!=null&&le.return()}finally{if(Y)throw U}}}}function f(K,te){if(K){if(typeof K=="string")return d(K,te);var le=Object.prototype.toString.call(K).slice(8,-1);if(le==="Object"&&K.constructor&&(le=K.constructor.name),le==="Map"||le==="Set")return Array.from(K);if(le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(le))return d(K,te)}}function d(K,te){(te==null||te>K.length)&&(te=K.length);for(var le=0,fe=new Array(te);le<te;le++)fe[le]=K[le];return fe}function S(K,te){if(typeof te!="function"&&te!==null)throw new TypeError("Super expression must either be null or a function");K.prototype=Object.create(te&&te.prototype,{constructor:{value:K,writable:!0,configurable:!0}}),te&&R(K,te)}function R(K,te){return R=Object.setPrototypeOf||function(fe,ve){return fe.__proto__=ve,fe},R(K,te)}function N(K){var te=I();return function(){var fe=_(K),ve;if(te){var q=_(this).constructor;ve=Reflect.construct(fe,arguments,q)}else ve=fe.apply(this,arguments);return B(this,ve)}}function B(K,te){if(te&&(n(te)==="object"||typeof te=="function"))return te;if(te!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(K)}function A(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}function I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _(K){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(le){return le.__proto__||Object.getPrototypeOf(le)},_(K)}function E(K,te){if(!(K instanceof te))throw new TypeError("Cannot call a class as a function")}function C(K,te){for(var le=0;le<te.length;le++){var fe=te[le];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(K,fe.key,fe)}}function $(K,te,le){return te&&C(K.prototype,te),le&&C(K,le),K}var F={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};i.PathType=F;function M(K,te){if(!(!te||typeof Path2D>"u")){var le=te[2]-te[0],fe=te[3]-te[1],ve=new Path2D;ve.rect(te[0],te[1],le,fe),K.clip(ve)}}var g=(function(){function K(){E(this,K),this.constructor===K&&(0,s.unreachable)("Cannot initialize BaseShadingPattern.")}return $(K,[{key:"getPattern",value:function(){(0,s.unreachable)("Abstract method `getPattern` called.")}}]),K})(),h=(function(K){S(le,K);var te=N(le);function le(fe){var ve;return E(this,le),ve=te.call(this),ve._type=fe[1],ve._bbox=fe[2],ve._colorStops=fe[3],ve._p0=fe[4],ve._p1=fe[5],ve._r0=fe[6],ve._r1=fe[7],ve.matrix=null,ve}return $(le,[{key:"_createGradient",value:function(ve){var q;this._type==="axial"?q=ve.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(q=ve.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));var Y=l(this._colorStops),U;try{for(Y.s();!(U=Y.n()).done;){var p=U.value;q.addColorStop(p[0],p[1])}}catch(x){Y.e(x)}finally{Y.f()}return q}},{key:"getPattern",value:function(ve,q,Y,U){var p;if(U===F.STROKE||U===F.FILL){var x=q.current.getClippedPathBoundingBox(U,ve.mozCurrentTransform)||[0,0,0,0],H=Math.ceil(x[2]-x[0])||1,ne=Math.ceil(x[3]-x[1])||1,ae=q.cachedCanvases.getCanvas("pattern",H,ne,!0),ie=ae.context;ie.clearRect(0,0,ie.canvas.width,ie.canvas.height),ie.beginPath(),ie.rect(0,0,ie.canvas.width,ie.canvas.height),ie.translate(-x[0],-x[1]),Y=s.Util.transform(Y,[1,0,0,1,x[0],x[1]]),ie.transform.apply(ie,q.baseTransform),this.matrix&&ie.transform.apply(ie,this.matrix
68),M(ie,this._bbox),ie.fillStyle=this._createGradient(ie),ie.fill(),p=ve.createPattern(ae.canvas,"no-repeat");var xe=new DOMMatrix(Y);try{p.setTransform(xe)}catch(Ue){(0,s.warn)('RadialAxialShadingPattern.getPattern: "'.concat(Ue?.message,'".'))}}else M(ve,this._bbox),p=this._createGradient(ve);return p}}]),le})(g);function m(K,te,le,fe,ve,q,Y,U){var p=te.coords,x=te.colors,H=K.data,ne=K.width*4,ae;p[le+1]>p[fe+1]&&(ae=le,le=fe,fe=ae,ae=q,q=Y,Y=ae),p[fe+1]>p[ve+1]&&(ae=fe,fe=ve,ve=ae,ae=Y,Y=U,U=ae),p[le+1]>p[fe+1]&&(ae=le,le=fe,fe=ae,ae=q,q=Y,Y=ae);var ie=(p[le]+te.offsetX)*te.scaleX,xe=(p[le+1]+te.offsetY)*te.scaleY,Ue=(p[fe]+te.offsetX)*te.scaleX,qe=(p[fe+1]+te.offsetY)*te.scaleY,se=(p[ve]+te.offsetX)*te.scaleX,Q=(p[ve+1]+te.offsetY)*te.scaleY;if(!(xe>=Q))for(var L=x[q],P=x[q+1],V=x[q+2],ee=x[Y],oe=x[Y+1],pe=x[Y+2],Te=x[U],Oe=x[U+1],Me=x[U+2],Fe=Math.round(xe),ze=Math.round(Q),Ye,Je,nt,tt,ct,lt,Ee,Re,Z=Fe;Z<=ze;Z++){if(Z<qe){var he=void 0;Z<xe?he=0:he=(xe-Z)/(xe-qe),Ye=ie-(ie-Ue)*he,Je=L-(L-ee)*he,nt=P-(P-oe)*he,tt=V-(V-pe)*he}else{var ue=void 0;Z>Q?ue=1:qe===Q?ue=0:ue=(qe-Z)/(qe-Q),Ye=Ue-(Ue-se)*ue,Je=ee-(ee-Te)*ue,nt=oe-(oe-Oe)*ue,tt=pe-(pe-Me)*ue}var ye=void 0;Z<xe?ye=0:Z>Q?ye=1:ye=(xe-Z)/(xe-Q),ct=ie-(ie-se)*ye,lt=L-(L-Te)*ye,Ee=P-(P-Oe)*ye,Re=V-(V-Me)*ye;for(var me=Math.round(Math.min(Ye,ct)),de=Math.round(Math.max(Ye,ct)),W=ne*Z+me*4,G=me;G<=de;G++)ye=(Ye-G)/(Ye-ct),ye<0?ye=0:ye>1&&(ye=1),H[W++]=Je-(Je-lt)*ye|0,H[W++]=nt-(nt-Ee)*ye|0,H[W++]=tt-(tt-Re)*ye|0,H[W++]=255}}function k(K,te,le){var fe=te.coords,ve=te.colors,q,Y;switch(te.type){case"lattice":var U=te.verticesPerRow,p=Math.floor(fe.length/U)-1,x=U-1;for(q=0;q<p;q++)for(var H=q*U,ne=0;ne<x;ne++,H++)m(K,le,fe[H],fe[H+1],fe[H+U],ve[H],ve[H+1],ve[H+U]),m(K,le,fe[H+U+1],fe[H+1],fe[H+U],ve[H+U+1],ve[H+1],ve[H+U]);break;case"triangles":for(q=0,Y=fe.length;q<Y;q+=3)m(K,le,fe[q],fe[q+1],fe[q+2],ve[q],ve[q+1],ve[q+2]);break;default:throw new Error("illegal figure")}}var T=(function(K){S(le,K);var te=N(le);function le(fe){var ve;return E(this,le),ve=te.call(this),ve._coords=fe[2],ve._colors=fe[3],ve._figures=fe[4],ve._bounds=fe[5],ve._bbox=fe[7],ve._background=fe[8],ve.matrix=null,ve}return $(le,[{key:"_createMeshCanvas",value:function(ve,q,Y){var U=1.1,p=3e3,x=2,H=Math.floor(this._bounds[0]),ne=Math.floor(this._bounds[1]),ae=Math.ceil(this._bounds[2])-H,ie=Math.ceil(this._bounds[3])-ne,xe=Math.min(Math.ceil(Math.abs(ae*ve[0]*U)),p),Ue=Math.min(Math.ceil(Math.abs(ie*ve[1]*U)),p),qe=ae/xe,se=ie/Ue,Q={coords:this._coords,colors:this._colors,offsetX:-H,offsetY:-ne,scaleX:1/qe,scaleY:1/se},L=xe+x*2,P=Ue+x*2,V=Y.getCanvas("mesh",L,P,!1),ee=V.context,oe=ee.createImageData(xe,Ue);if(q)for(var pe=oe.data,Te=0,Oe=pe.length;Te<Oe;Te+=4)pe[Te]=q[0],pe[Te+1]=q[1],pe[Te+2]=q[2],pe[Te+3]=255;var Me=l(this._figures),Fe;try{for(Me.s();!(Fe=Me.n()).done;){var ze=Fe.value;k(oe,ze,Q)}}catch(Je){Me.e(Je)}finally{Me.f()}ee.putImageData(oe,x,x);var Ye=V.canvas;return{canvas:Ye,offsetX:H-x*qe,offsetY:ne-x*se,scaleX:qe,scaleY:se}}},{key:"getPattern",value:function(ve,q,Y,U){M(ve,this._bbox);var p;if(U===F.SHADING)p=s.Util.singularValueDecompose2dScale(ve.mozCurrentTransform);else if(p=s.Util.singularValueDecompose2dScale(q.baseTransform),this.matrix){var x=s.Util.singularValueDecompose2dScale(this.matrix);p=[p[0]*x[0],p[1]*x[1]]}var H=this._createMeshCanvas(p,U===F.SHADING?null:this._background,q.cachedCanvases);return U!==F.SHADING&&(ve.setTransform.apply(ve,q.baseTransform),this.matrix&&ve.transform.apply(ve,this.matrix)),ve.translate(H.offsetX,H.offsetY),ve.scale(H.scaleX,H.scaleY),ve.createPattern(H.canvas,"no-repeat")}}]),le})(g),w=(function(K){S(le,K);var te=N(le);function le(){return E(this,le),te.apply(this,arguments)}return $(le,[{key:"getPattern",value:function(){return"hotpink"}}]),le})(g);function D(K){switch(K[0]){case"RadialAxial":return new h(K);case"Mesh":return new T(K);case"Dummy":return new w}throw new Error("Unknown IR type: ".concat(K[0]))}var z={COLORED:1,UNCOLORED:2},J=(function(){function K(te,le,fe,ve,q){E(this,K),this.operatorList=te[2],this.matrix=te[3]||[1,0,0,1,0,0],this.bbox=te[4],this.xstep=te[5],this.ystep=te[6],this.paintType=te[7],this.tilingType=te[8],this.color=le,this.ctx=fe,this.canvasGraphicsFactory=ve,this.baseTransform=q}return $(K,[{key:"createPatternCanvas",value:function(le){var fe=this.operatorList,ve=this.bbox,q=this.xstep,Y=this.ystep,U=this.paintType,p=this.tilingType,x=this.color,H=this.canvasGraphicsFactory;(0,s.info)("TilingType: "+p);var ne=ve[0],ae=ve[1],ie=ve[2],xe=ve[3],Ue=s.Util.singularValueDecompose2dScale(this.matrix
68),qe=s.Util.singularValueDecompose2dScale(this.baseTransform),se=[Ue[0]*qe[0],Ue[1]*qe[1]],Q=this.getSizeAndScale(q,this.ctx.canvas.width,se[0]),L=this.getSizeAndScale(Y,this.ctx.canvas.height,se[1]),P=le.cachedCanvases.getCanvas("pattern",Q.size,L.size,!0),V=P.context,ee=H.createCanvasGraphics(V);ee.groupLevel=le.groupLevel,this.setFillAndStrokeStyleToContext(ee,U,x);var oe=ne,pe=ae,Te=ie,Oe=xe;return ne<0&&(oe=0,Te+=Math.abs(ne)),ae<0&&(pe=0,Oe+=Math.abs(ae)),V.translate(-(Q.scale*oe),-(L.scale*pe)),ee.transform(Q.scale,0,0,L.scale,0,0),this.clipBbox(ee,oe,pe,Te,Oe),ee.baseTransform=ee.ctx.mozCurrentTransform.slice(),ee.executeOperatorList(fe),ee.endDrawing(),{canvas:P.canvas,scaleX:Q.scale,scaleY:L.scale,offsetX:oe,offsetY:pe}}},{key:"getSizeAndScale",value:function(le,fe,ve){le=Math.abs(le);var q=Math.max(K.MAX_PATTERN_SIZE,fe),Y=Math.ceil(le*ve);return Y>=q?Y=q:ve=Y/le,{scale:ve,size:Y}}},{key:"clipBbox",value:function(le,fe,ve,q,Y){var U=q-fe,p=Y-ve;le.ctx.rect(fe,ve,U,p),le.clip(),le.endPath()}},{key:"setFillAndStrokeStyleToContext",value:function(le,fe,ve){var q=le.ctx,Y=le.current;switch(fe){case z.COLORED:var U=this.ctx;q.fillStyle=U.fillStyle,q.strokeStyle=U.strokeStyle,Y.fillColor=U.fillStyle,Y.strokeColor=U.strokeStyle;break;case z.UNCOLORED:var p=s.Util.makeHexColor(ve[0],ve[1],ve[2]);q.fillStyle=p,q.strokeStyle=p,Y.fillColor=p,Y.strokeColor=p;break;default:throw new s.FormatError("Unsupported paint type: ".concat(fe))}}},{key:"getPattern",value:function(le,fe,ve,q){var Y=ve;q!==F.SHADING&&(Y=s.Util.transform(Y,fe.baseTransform),this.matrix&&(Y=s.Util.transform(Y,this.matrix)));var U=this.createPatternCanvas(fe),p=new DOMMatrix(Y);p=p.translate(U.offsetX,U.offsetY),p=p.scale(1/U.scaleX,1/U.scaleY);var x=le.createPattern(U.canvas,"repeat");try{x.setTransform(p)}catch(H){(0,s.warn)('TilingPattern.getPattern: "'.concat(H?.message,'".'))}return x}}],[{key:"MAX_PATTERN_SIZE",get:function(){return(0,s.shadow)(this,"MAX_PATTERN_SIZE",3e3)}}]),K})();i.TilingPattern=J}),((a,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.GlobalWorkerOptions=void 0;var r=Object.create(null);i.GlobalWorkerOptions=r,r.workerPort=r.workerPort===void 0?null:r.workerPort,r.workerSrc=r.workerSrc===void 0?"":r.workerSrc}),((a,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.MessageHandler=void 0;var n=l(r(2)),s=r(4);function l(C){return C&&C.__esModule?C:{default:C}}function f(C,$,F,M,g,h,m){try{var k=C[h](m),T=k.value}catch(w){F(w);return}k.done?$(T):Promise.resolve(T).then(M,g)}function d(C){return function(){var $=this,F=arguments;return new Promise(function(M,g){var h=C.apply($,F);function m(T){f(h,M,g,m,k,"next",T)}function k(T){f(h,M,g,m,k,"throw",T)}m(void 0)})}}function S(C,$){if(!(C instanceof $))throw new TypeError("Cannot call a class as a function")}function R(C,$){for(var F=0;F<$.length;F++){var M=$[F];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(C,M.key,M)}}function N(C,$,F){return $&&R(C.prototype,$),C}function B(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?B=function(F){return typeof F}:B=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},B(C)}var A={DATA:1,ERROR:2},I={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function _(C){if(!(C instanceof Error||B(C)==="object"&&C!==null))return(0,s.warn)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),C;switch(C.name){case"AbortException":return new s.AbortException(C.message);case"MissingPDFException":return new s.MissingPDFException(C.message);case"PasswordException":return new s.PasswordException(C.message,C.code);case"UnexpectedResponseException":return new s.UnexpectedResponseException(C.message,C.status);case"UnknownErrorException":return new s.UnknownErrorException(C.message,C.details);default:return new s.UnknownErrorException(C.message,C.toString())}}var E=(function(){function C($,F,M){var g=this;S(this,C),this.sourceName=$,this.targetName=F,this.comObj=M,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(h){var m=h.data;if(m.targetName===g.sourceName){if(m.stream){g._processStreamMessage(m);return}if(m.callback){var k=m.callbackId,T=g.callbackCapabilities[k];if(!T)throw new Error("Cannot resolve callback ".concat(k));if(delete g.callbackCapabilities[k],m.callback===A.DATA)T.resolve(m.data);else if(m.callback===A.ERROR)T.reject(_(m.reason));else throw new Error("Unexpected callback case");return}var w=g.actionHandler[m.action];if(!w)throw new Error("Unknown action from worker: ".concat(m.action));if(m.callbackId){var D=g.sourceName,z=m.sourceName;new Promise(function(J){J(w(m.data))}).then(function(J){M.postMessage({sourceName:D,targetName:z,callback:A.DATA,callbackId:m.callbackId,data:J})},function(J){M.postMessage({sourceName:D,targetName:z,callback:A.ERROR,callbackId:m.callbackId,reason:_(J)})});return}if(m.streamId){g._createStreamSink(m);return}w(m.data)}},M.addEventListener("message",this._onComObjOnMessage)}return N(C,[{key:"on",value:function(F,M){var g=this.actionHandler;if(g[F])throw new Error('There is already an actionName called "'.concat(F,'"'));g[F]=M}},{key:"send",value:function(F,M,g){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:F,data:M},g)}}
vendor: 4,690 bytes, line 68
68,{key:"sendWithPromise",value:function(F,M,g){var h=this.callbackId++,m=(0,s.createPromiseCapability)();this.callbackCapabilities[h]=m;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:F,callbackId:h,data:M},g)}catch(k){m.reject(k)}return m.promise}},{key:"sendWithStream",value:function(F,M,g,h){var m=this,k=this.streamId++,T=this.sourceName,w=this.targetName,D=this.comObj;return new ReadableStream({start:function(J){var K=(0,s.createPromiseCapability)();return m.streamControllers[k]={controller:J,startCall:K,pullCall:null,cancelCall:null,isClosed:!1},D.postMessage({sourceName:T,targetName:w,action:F,streamId:k,data:M,desiredSize:J.desiredSize},h),K.promise},pull:function(J){var K=(0,s.createPromiseCapability)();return m.streamControllers[k].pullCall=K,D.postMessage({sourceName:T,targetName:w,stream:I.PULL,streamId:k,desiredSize:J.desiredSize}),K.promise},cancel:function(J){(0,s.assert)(J instanceof Error,"cancel must have a valid reason");var K=(0,s.createPromiseCapability)();return m.streamControllers[k].cancelCall=K,m.streamControllers[k].isClosed=!0,D.postMessage({sourceName:T,targetName:w,stream:I.CANCEL,streamId:k,reason:_(J)}),K.promise}},g)}},{key:"_createStreamSink",value:function(F){var M=F.streamId,g=this.sourceName,h=F.sourceName,m=this.comObj,k=this,T=this.actionHandler[F.action],w={enqueue:function(z){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,K=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var te=this.desiredSize;this.desiredSize-=J,te>0&&this.desiredSize<=0&&(this.sinkCapability=(0,s.createPromiseCapability)(),this.ready=this.sinkCapability.promise),m.postMessage({sourceName:g,targetName:h,stream:I.ENQUEUE,streamId:M,chunk:z},K)}},close:function(){this.isCancelled||(this.isCancelled=!0,m.postMessage({sourceName:g,targetName:h,stream:I.CLOSE,streamId:M}),delete k.streamSinks[M])},error:function(z){(0,s.assert)(z instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,m.postMessage({sourceName:g,targetName:h,stream:I.ERROR,streamId:M,reason:_(z)}))},sinkCapability:(0,s.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:F.desiredSize,ready:null};w.sinkCapability.resolve(),w.ready=w.sinkCapability.promise,this.streamSinks[M]=w,new Promise(function(D){D(T(F.data,w))}).then(function(){m.postMessage({sourceName:g,targetName:h,stream:I.START_COMPLETE,streamId:M,success:!0})},function(D){m.postMessage({sourceName:g,targetName:h,stream:I.START_COMPLETE,streamId:M,reason:_(D)})})}},{key:"_processStreamMessage",value:function(F){var M=F.streamId,g=this.sourceName,h=F.sourceName,m=this.comObj,k=this.streamControllers[M],T=this.streamSinks[M];switch(F.stream){case I.START_COMPLETE:F.success?k.startCall.resolve():k.startCall.reject(_(F.reason));break;case I.PULL_COMPLETE:F.success?k.pullCall.resolve():k.pullCall.reject(_(F.reason));break;case I.PULL:if(!T){m.postMessage({sourceName:g,targetName:h,stream:I.PULL_COMPLETE,streamId:M,success:!0});break}T.desiredSize<=0&&F.desiredSize>0&&T.sinkCapability.resolve(),T.desiredSize=F.desiredSize,new Promise(function(w){w(T.onPull&&T.onPull())}).then(function(){m.postMessage({sourceName:g,targetName:h,stream:I.PULL_COMPLETE,streamId:M,success:!0})},function(w){m.postMessage({sourceName:g,targetName:h,stream:I.PULL_COMPLETE,streamId:M,reason:_(w)})});break;case I.ENQUEUE:if((0,s.assert)(k,"enqueue should have stream controller"),k.isClosed)break;k.controller.enqueue(F.chunk);break;case I.CLOSE:if((0,s.assert)(k,"close should have stream controller"),k.isClosed)break;k.isClosed=!0,k.controller.close(),this._deleteStreamController(k,M);break;case I.ERROR:(0,s.assert)(k,"error should have stream controller"),k.controller.error(_(F.reason)),this._deleteStreamController(k,M);break;case I.CANCEL_COMPLETE:F.success?k.cancelCall.resolve():k.cancelCall.reject(_(F.reason)),this._deleteStreamController(k,M);break;case I.CANCEL:if(!T)break;new Promise(function(w){w(T.onCancel&&T.onCancel(_(F.reason)))}).then(function(){m.postMessage({sourceName:g,targetName:h,stream:I.CANCEL_COMPLETE,streamId:M,success:!0})},function(w){m.postMessage({sourceName:g,targetName:h,stream:I.CANCEL_COMPLETE,streamId:M,reason:_(w)})}),T.sinkCapability.reject(_(F.reason)),T.isCancelled=!0,delete this.streamSinks[M];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:(function(){var $=d(n.default.mark(function M(g,h){return n.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,Promise.allSettled([g.startCall&&g.startCall.promise,g.pullCall&&g.pullCall.promise,g.cancelCall&&g.cancelCall.promise]);
68case 2:delete this.streamControllers[h];case 3:case"end":return k.stop()}},M,this)}));function F(M,g){return $.apply(this,arguments)}return F})()},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),C})();i.MessageHandler=E}),((a,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Metadata=void 0;var n=r(4);function s($,F){if(!($ instanceof F))throw new TypeError("Cannot call a class as a function")}function l($,F){for(var M=0;M<F.length;M++){var g=F[M];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty($,g.key,g)}}function f($,F,M){return F&&l($.prototype,F),$}function d($,F,M){S($,F),F.set($,M)}function S($,F){if(F.has($))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R($,F){var M=A($,F,"get");return N($,M)}function N($,F){return F.get?F.get.call($):F.value}function B($,F,M){var g=A($,F,"set");return I($,g,M),M}function A($,F,M){if(!F.has($))throw new TypeError("attempted to "+M+" private field on non-instance");return F.get($)}function I($,F,M){if(F.set)F.set.call($,M);else{if(!F.writable)throw new TypeError("attempted to set read only private field");F.value=M}}var _=new WeakMap,E=new WeakMap,C=(function(){function $(F){var M=F.parsedData,g=F.rawData;s(this,$),d(this,_,{writable:!0,value:void 0}),d(this,E,{writable:!0,value:void 0}),B(this,_,M),B(this,E,g)}return f($,[{key:"getRaw",value:function(){return R(this,E)}},{key:"get",value:function(M){var g;return(g=R(this,_).get(M))!==null&&g!==void 0?g:null}},{key:"getAll",value:function(){return(0,n.objectFromMap)(R(this,_))}},{key:"has",value:function(M){return R(this,_).has(M)}}]),$})();i.Metadata=C}),((a,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.OptionalContentConfig=void 0;var n=r(4);function s(A,I){var _=typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(!_){if(Array.isArray(A)||(_=l(A))||I){_&&(A=_);var E=0,C=function(){};return{s:C,n:function(){return E>=A.length?{done:!0}:{done:!1,value:A[E++]}},e:function(h){throw h},f:C}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
69In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var $=!0,F=!1,M;return{s:function(){_=_.call(A)},n:function(){var h=_.next();return $=h.done,h},e:function(h){F=!0,M=h},f:function(){try{!$&&_.return!=null&&_.return()}finally{if(F)throw M}}}}function l(A,I){if(A){if(typeof A=="string")return f(A,I);var _=Object.prototype.toString.call(A).slice(8,-1);if(_==="Object"&&A.constructor&&(_=A.constructor.name),_==="Map"||_==="Set")return Array.from(A);
69if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return f(A,I)}}function f(A,I){(I==null||I>A.length)&&(I=A.length);for(var _=0,E=new Array(I);_<I;_++)E[_]=A[_];return E}function d(A,I){for(var _=0;_<I.length;_++){var E=I[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(A,E.key,E)}}function S(A,I,_){return I&&d(A.prototype,I),A}function R(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}var N=function A(I,_){R(this,A),this.visible=!0,this.name=I,this.intent=_},B=(function(){function A(I){if(R(this,A),this.name=null,this.creator=null,this._order=null,this._groups=new Map,I!==null){this.name=I.name,this.creator=I.creator,this._order=I.order;var _=s(I.groups),E;try{for(_.s();!(E=_.n()).done;){var C=E.value;this._groups.set(C.id,new N(C.name,C.intent))}}catch(D){_.e(D)}finally{_.f()}if(I.baseState==="OFF"){var $=s(this._groups),F;try{for($.s();!(F=$.n()).done;){var M=F.value;M.visible=!1}}catch(D){$.e(D)}finally{$.f()}}var g=s(I.on),h;try{for(g.s();!(h=g.n()).done;){var m=h.value;this._groups.get(m).visible=!0}}catch(D){g.e(D)}finally{g.f()}var k=s(I.off),T;try{for(k.s();!(T=k.n()).done;){var w=T.value;this._groups.get(w).visible=!1}}catch(D){k.e(D)}finally{k.f()}}}return S(A,[{key:"_evaluateVisibilityExpression",value:function(_){var E=_.length;if(E<2)return!0;for(var C=_[0],$=1;$<E;$++){var F=_[$],M=void 0;if(Array.isArray(F))M=this._evaluateVisibilityExpression(F);else if(this._groups.has(F))M=this._groups.get(F).visible;else return(0,n.warn)("Optional content group not found: ".concat(F)),!0;switch(C){case"And":if(!M)return!1;break;case"Or":if(M)return!0;break;case"Not":return!M;default:return!0}}return C==="And"}},{key:"isVisible",value:function(_){if(this._groups.size===0)return!0;if(!_)return(0,n.warn)("Optional content group not defined."),!0;if(_.type==="OCG")return this._groups.has(_.id)?this._groups.get(_.id).visible:((0,n.warn)("Optional content group not found: ".concat(_.id)),!0);if(_.type==="OCMD"){if(_.expression)return this._evaluateVisibilityExpression(_.expression);if(!_.policy||_.policy==="AnyOn"){var E=s(_.ids),C;try{for(E.s();!(C=E.n()).done;){var $=C.value;if(!this._groups.has($))return(0,n.warn)("Optional content group not found: ".concat($)),!0;if(this._groups.get($).visible)return!0}}catch(z){E.e(z)}finally{E.f()}return!1}else if(_.policy==="AllOn"){var F=s(_.ids),M;try{for(F.s();!(M=F.n()).done;){var g=M.value;if(!this._groups.has(g))return(0,n.warn)("Optional content group not found: ".concat(g)),!0;if(!this._groups.get(g).visible)return!1}}catch(z){F.e(z)}finally{F.f()}return!0}else if(_.policy==="AnyOff"){var h=s(_.ids),m;try{for(h.s();!(m=h.n()).done;){var k=m.value;if(!this._groups.has(k))return(0,n.warn)("Optional content group not found: ".concat(k)),!0;if(!this._groups.get(k).visible)return!0}}catch(z){h.e(z)}finally{h.f()}return!1}else if(_.policy==="AllOff"){var T=s(_.ids),w;try{for(T.s();!(w=T.n()).done;){var D=w.value;if(!this._groups.has(D))return(0,n.warn)("Optional content group not found: ".concat(D)),!0;if(this._groups.get(D).visible)return!1}}catch(z){T.e(z)}finally{T.f()}return!0}return(0,n.warn)("Unknown optional content policy ".concat(_.policy,".")),!0}return(0,n.warn)("Unknown group type ".concat(_.type,".")),!0}},{key:"setVisibility",value:function(_){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!this._groups.has(_)){(0,n.warn)("Optional content group not found: ".concat(_));return}this._groups.get(_).visible=!!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,n.objectFromMap)(this._groups):null}},{key:"getGroup",value:function(_){return this._groups.get(_)||null}}]),A})();i.OptionalContentConfig=B}),((a,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.PDFDataTransportStream=void 0;var n=f(r(2)),s=r(4),l=r(1);function f(F){return F&&F.__esModule?F:{default:F}}function d(F,M,g,h,m,k,T){try{var w=F[k](T),D=w.value}catch(z){g(z);return}w.done?M(D):Promise.resolve(D).then(h,m)}function S(F){return function(){var M=this,g=arguments;return new Promise(function(h,m){var k=F.apply(M,g);function T(D){d(k,h,m,T,w,"next",D)}function w(D){d(k,h,m,T,w,"throw",D)}T(void 0)})}}function R(F,M){var g=typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(!g){if(Array.isArray(F)||(g=N(F))||M){g&&(F=g);var h=0,m=function(){};return{s:m,n:function(){return h>=F.length?{done:!0}:{done:!1,value:F[h++]}},e:function(z){throw z},f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
70In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k=!0,T=!1,w;return{s:function(){g=g.call(F)},n:function(){var z=g.next();return k=z.done,z},e:function(z){T=!0,w=z},f:function(){try{!k&&g.return!=null&&g.return()}finally{if(T)throw w}}}}function N(F,M){if(F){if(typeof F=="string")return B(F,M);var g=Object.prototype.toString.call(F).slice(8,-1);if(g==="Object"&&F.constructor&&(g=F.constructor.name),g==="Map"||g==="Set")return Array.from(F);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return B(F,M)}}function B(F,M){(M==null||M>F.length)&&(M=F.length);for(var g=0,h=new Array(M);g<M;g++)h[g]=F[g];return h}function A(F,M){if(!(F instanceof M))throw new TypeError("Cannot call a class as a function")}function I(F,M){for(var g=0;g<M.length;g++){var h=M[g];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(F,h.key,h)}}function _(F,M,g){return M&&I(F.prototype,M),F}var E=(function(){function F(M,g){var h=this;A(this,F),(0,s.assert)(g,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=M.progressiveDone||!1,this._contentDispositionFilename=M.contentDispositionFilename||null;var m=M.initialData;if(m?.length>0){var k=new Uint8Array(m).buffer;this._queuedChunks.push(k)}this._pdfDataRangeTransport=g,this._isStreamingSupported=!M.disableStream,this._isRangeSupported=!M.disableRange,this._contentLength=M.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(function(T,w){h._onReceiveData({begin:T,chunk:w})}),this._pdfDataRangeTransport.addProgressListener(function(T,w){h._onProgress({loaded:T,total:w})}),this._pdfDataRangeTransport.addProgressiveReadListener(function(T){h._onReceiveData({chunk:T})}),this._pdfDataRangeTransport.addProgressiveDoneListener(function(){h._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}return _(F,[{key:"_onReceiveData",value:function(g){var h=new Uint8Array(g.chunk).buffer;if(g.begin===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(h):this._queuedChunks.push(h);else{var m=this._rangeReaders.some(function(k){return k._begin!==g.begin?!1:(k._enqueue(h),!0)});(0,s.assert)(m,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_progressiveDataLength",get:function(){var g,h;return(g=(h=this._fullRequestReader)===null||h===void 0?void 0:h._loaded)!==null&&g!==void 0?g:0}},{key:"_onProgress",value:function(g){if(g.total===void 0){var h=this._rangeReaders[0];h!=null&&h.onProgress&&h.onProgress({loaded:g.loaded})}else{var m=this._fullRequestReader;m!=null&&m.onProgress&&m.onProgress({loaded:g.loaded,total:g.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(g){var h=this._rangeReaders.indexOf(g);h>=0&&this._rangeReaders.splice(h,1)}},{key:"getFullReader",value:function(){(0,s.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var g=this._queuedChunks;return this._queuedChunks=null,new C(this,g,this._progressiveDone,this._contentDispositionFilename)}},{key:"getRangeReader",value:function(g,h){if(h<=this._progressiveDataLength)return null;var m=new $(this,g,h);return this._pdfDataRangeTransport.requestDataRange(g,h),this._rangeReaders.push(m),m}},{key:"cancelAllRequests",value:function(g){this._fullRequestReader&&this._fullRequestReader.cancel(g);var h=R(this._rangeReaders.slice(0)),m;try{for(h.s();!(m=h.n()).done;){var k=m.value;k.cancel(g)}}catch(T){h.e(T)}finally{h.f()}this._pdfDataRangeTransport.abort()}}]),F})();i.PDFDataTransportStream=E;var C=(function(){function F(M,g){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;A(this,F),this._stream=M,this._done=h||!1,this._filename=(0,l.isPdfFile)(m)?m:null,this._queuedChunks=g||[],this._loaded=0;var k=R(this._queuedChunks),T;try{for(k.s();!(T=k.n()).done;){var w=T.value;this._loaded+=w.byteLength}}catch(D){k.e(D)}finally{k.f()}
70this._requests=[],this._headersReady=Promise.resolve(),M._fullRequestReader=this,this.onProgress=null}return _(F,[{key:"_enqueue",value:function(g){if(!this._done){if(this._requests.length>0){var h=this._requests.shift();h.resolve({value:g,done:!1})}else this._queuedChunks.push(g);this._loaded+=g.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 M=S(n.default.mark(function h(){var m,k;return n.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(!(this._queuedChunks.length>0)){w.next=3;break}return m=this._queuedChunks.shift(),w.abrupt("return",{value:m,done:!1});case 3:if(!this._done){w.next=5;break}return w.abrupt("return",{value:void 0,done:!0});case 5:return k=(0,s.createPromiseCapability)(),this._requests.push(k),w.abrupt("return",k.promise);case 8:case"end":return w.stop()}},h,this)}));function g(){return M.apply(this,arguments)}return g})()},{key:"cancel",value:function(g){this._done=!0;var h=R(this._requests),m;try{for(h.s();!(m=h.n()).done;){var k=m.value;k.resolve({value:void 0,done:!0})}}catch(T){h.e(T)}finally{h.f()}this._requests.length=0}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}}]),F})(),$=(function(){function F(M,g,h){A(this,F),this._stream=M,this._begin=g,this._end=h,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return _(F,[{key:"_enqueue",value:function(g){if(!this._done){if(this._requests.length===0)this._queuedChunk=g;else{var h=this._requests.shift();h.resolve({value:g,done:!1});var m=R(this._requests),k;try{for(m.s();!(k=m.n()).done;){var T=k.value;T.resolve({value:void 0,done:!0})}}catch(w){m.e(w)}finally{m.f()}this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(function(){var M=S(n.default.mark(function h(){var m,k;return n.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(!this._queuedChunk){w.next=4;break}return m=this._queuedChunk,this._queuedChunk=null,w.abrupt("return",{value:m,done:!1});case 4:if(!this._done){w.next=6;break}return w.abrupt("return",{value:void 0,done:!0});case 6:return k=(0,s.createPromiseCapability)(),this._requests.push(k),w.abrupt("return",k.promise);case 9:case"end":return w.stop()}},h,this)}));function g(){return M.apply(this,arguments)}return g})()},{key:"cancel",value:function(g){this._done=!0;var h=R(this._requests),m;try{for(h.s();!(m=h.n()).done;){var k=m.value;k.resolve({value:void 0,done:!0})}}catch(T){h.e(T)}finally{h.f()}this._requests.length=0,this._stream._removeRangeReader(this)}}]),F})()}),((a,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.XfaText=void 0;function r(R,N){var B=typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(!B){if(Array.isArray(R)||(B=n(R))||N){B&&(R=B);var A=0,I=function(){};return{s:I,n:function(){return A>=R.length?{done:!0}:{done:!1,value:R[A++]}},e:function(F){throw F},f:I}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
71In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _=!0,E=!1,C;return{s:function(){B=B.call(R)},n:function(){var F=B.next();return _=F.done,F},e:function(F){E=!0,C=F},f:function(){try{!_&&B.return!=null&&B.return()}finally{if(E)throw C}}}}function n(R,N){if(R){if(typeof R=="string")return s(R,N);var B=Object.prototype.toString.call(R).slice(8,-1);if(B==="Object"&&R.constructor&&(B=R.constructor.name),B==="Map"||B==="Set")return Array.from(R);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return s(R,N)}}function s(R,N){(N==null||N>R.length)&&(N=R.length);for(var B=0,A=new Array(N);B<N;B++)A[B]=R[B];return A}function l(R,N){if(!(R instanceof N))throw new TypeError("Cannot call a class as a function")}function f(R,N){for(var B=0;B<N.length;B++){var A=N[B];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(R,A.key,A)}}function d(R,N,B){return B&&f(R,B),R}var S=(function(){function R(){l(this,R)}return d(R,null,[{key:"textContent",value:function(B){var A=[],I={items:A,styles:Object.create(null)};function _(E){var C;if(E){var $=null,F=E.name;if(F==="#text")$=E.value;else if(R.shouldBuildText(F))E!=null&&(C=E.attributes)!==null&&C!==void 0&&C.textContent?$=E.attributes.textContent:E.value&&($=E.value);else return;if($!==null&&A.push({str:$}),!!E.children){var M=r(E.children),g;try{for(M.s();!(g=M.n()).done;){var h=g.value;_(h)}}catch(m){M.e(m)}finally{M.f()}}}}return _(B),I}},{key:"shouldBuildText",value:function(B){return!(B==="textarea"||B==="input"||B==="option"||B==="select")}}]),R})();i.XfaText=S}),((a,i,r)=>{function n(Ee){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(Z){return typeof Z}:n=function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},n(Ee)}Object.defineProperty(i,"__esModule",{value:!0}),i.AnnotationLayer=void 0;var s=r(4),l=r(1),f=r(139),d=r(149),S=r(150);function R(Ee,Re,Z){return N(Ee,Re),Z}function N(Ee,Re){if(Ee!==Re)throw new TypeError("Private static access of wrong provenance")}function B(Ee,Re,Z){return typeof Reflect<"u"&&Reflect.get?B=Reflect.get:B=function(ue,ye,me){var de=A(ue,ye);if(de){var W=Object.getOwnPropertyDescriptor(de,ye);return W.get?W.get.call(me):W.value}},B(Ee,Re,Z||Ee)}function A(Ee,Re){for(;!Object.prototype.hasOwnProperty.call(Ee,Re)&&(Ee=T(Ee),Ee!==null););return Ee}function I(Ee,Re,Z){return Re in Ee?Object.defineProperty(Ee,Re,{value:Z,enumerable:!0,configurable:!0,writable:!0}):Ee[Re]=Z,Ee}function _(Ee){return $(Ee)||C(Ee)||J(Ee)||E()}function E(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
72In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C(Ee){if(typeof Symbol<"u"&&Ee[Symbol.iterator]!=null||Ee["@@iterator"]!=null)return Array.from(Ee)}function $(Ee){if(Array.isArray(Ee))return K(Ee)}function F(Ee,Re){if(typeof Re!="function"&&Re!==null)throw new TypeError("Super expression must either be null or a function");Ee.prototype=Object.create(Re&&Re.prototype,{constructor:{value:Ee,writable:!0,configurable:!0}}),Re&&M(Ee,Re)}
72function M(Ee,Re){return M=Object.setPrototypeOf||function(he,ue){return he.__proto__=ue,he},M(Ee,Re)}function g(Ee){var Re=k();return function(){var he=T(Ee),ue;if(Re){var ye=T(this).constructor;ue=Reflect.construct(he,arguments,ye)}else ue=he.apply(this,arguments);return h(this,ue)}}function h(Ee,Re){if(Re&&(n(Re)==="object"||typeof Re=="function"))return Re;if(Re!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m(Ee)}function m(Ee){if(Ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ee}function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function T(Ee){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},T(Ee)}function w(Ee,Re){var Z=typeof Symbol<"u"&&Ee[Symbol.iterator]||Ee["@@iterator"];if(!Z){if(Array.isArray(Ee)||(Z=J(Ee))||Re){Z&&(Ee=Z);var he=0,ue=function(){};return{s:ue,n:function(){return he>=Ee.length?{done:!0}:{done:!1,value:Ee[he++]}},e:function(G){throw G},f:ue}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
73In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye=!0,me=!1,de;return{s:function(){Z=Z.call(Ee)},n:function(){var G=Z.next();return ye=G.done,G},e:function(G){me=!0,de=G},f:function(){try{!ye&&Z.return!=null&&Z.return()}finally{if(me)throw de}}}}function D(Ee,Re){return le(Ee)||te(Ee,Re)||J(Ee,Re)||z()}function z(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
74In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J(Ee,Re){if(Ee){if(typeof Ee=="string")return K(Ee,Re);var Z=Object.prototype.toString.call(Ee).slice(8,-1);if(Z==="Object"&&Ee.constructor&&(Z=Ee.constructor.name),Z==="Map"||Z==="Set")return Array.from(Ee);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return K(Ee,Re)}}function K(Ee,Re){(Re==null||Re>Ee.length)&&(Re=Ee.length);for(var Z=0,he=new Array(Re);Z<Re;Z++)he[Z]=Ee[Z];return he}function te(Ee,Re){var Z=Ee==null?null:typeof Symbol<"u"&&Ee[Symbol.iterator]||Ee["@@iterator"];if(Z!=null){var he=[],ue=!0,ye=!1,me,de;try{for(Z=Z.call(Ee);!(ue=(me=Z.next()).done)&&(he.push(me.value),!(Re&&he.length===Re));ue=!0);}catch(W){ye=!0,de=W}finally{try{!ue&&Z.return!=null&&Z.return()}finally{if(ye)throw de}}return he}}function le(Ee){if(Array.isArray(Ee))return Ee}function fe(Ee,Re){if(!(Ee instanceof Re))throw new TypeError("Cannot call a class as a function")}function ve(Ee,Re){for(var Z=0;Z<Re.length;Z++){var he=Re[Z];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(Ee,he.key,he)}}function q(Ee,Re,Z){return Re&&ve(Ee.prototype,Re),Z&&ve(Ee,Z),Ee}var Y=1e3,U=new WeakSet,p=(function(){function Ee(){fe(this,Ee)}return q(Ee,null,[{key:"create",value:function(Z){var he=Z.data.annotationType;switch(he){case s.AnnotationType.LINK:return new H(Z);case s.AnnotationType.TEXT:return new ne(Z);case s.AnnotationType.WIDGET:var ue=Z.data.fieldType;switch(ue){case"Tx":return new ie(Z);case"Btn":return Z.data.radioButton?new Ue(Z):Z.data.checkBox?new xe(Z):new qe(Z);case"Ch":return new se(Z)}return new ae(Z);case s.AnnotationType.POPUP:return new Q(Z);case s.AnnotationType.FREETEXT:return new P(Z);case s.AnnotationType.LINE:return new V(Z);case s.AnnotationType.SQUARE:return new ee(Z);case s.AnnotationType.CIRCLE:return new oe(Z);case s.AnnotationType.POLYLINE:return new pe(Z);case s.AnnotationType.CARET:return new Oe(Z);case s.AnnotationType.INK:return new Me(Z);case s.AnnotationType.POLYGON:return new Te(Z);case s.AnnotationType.HIGHLIGHT:return new Fe(Z);case s.AnnotationType.UNDERLINE:return new ze(Z);case s.AnnotationType.SQUIGGLY:return new Ye(Z);case s.AnnotationType.STRIKEOUT:return new Je(Z);case s.AnnotationType.STAMP:return new nt(Z);case s.AnnotationType.FILEATTACHMENT:return new tt(Z);default:return new x(Z)}}}]),Ee})(),x=(function(){function Ee(Re){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he=Z.isRenderable,ue=he===void 0?!1:he,ye=Z.ignoreBorder,me=ye===void 0?!1:ye,de=Z.createQuadrilaterals,W=de===void 0?!1:de;fe(this,Ee),this.isRenderable=ue,this.data=Re.data,this.layer=Re.layer,this.page=Re.page,this.viewport=Re.viewport,this.linkService=Re.linkService,this.downloadManager=Re.downloadManager,this.imageResourcesPath=Re.imageResourcesPath,this.renderForms=Re.renderForms,this.svgFactory=Re.svgFactory,this.annotationStorage=Re.annotationStorage,this.enableScripting=Re.enableScripting,this.hasJSActions=Re.hasJSActions,this._fieldObjects=Re.fieldObjects,this._mouseState=Re.mouseState,ue&&(this.container=this._createContainer(me)),W&&(this.quadrilaterals=this._createQuadrilaterals(me))}return q(Ee,[{key:"_createContainer",value:function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,he=this.data,ue=this.page,ye=this.viewport,me=document.createElement("section"),de=he.rect[2]-he.rect[0],W=he.rect[3]-he.rect[1];me.setAttribute("data-annotation-id",he.id);var G=s.Util.normalizeRect([he.rect[0],ue.view[3]-he.rect[1]+ue.view[1],he.rect[2],ue.view[3]-he.rect[3]+ue.view[1]]);if(he.hasOwnCanvas){var ce=ye.transform.slice(),we=s.Util.singularValueDecompose2dScale(ce),Ce=D(we,2),De=Ce[0],Se=Ce[1];
74de=Math.ceil(de*De),W=Math.ceil(W*Se),G[0]*=De,G[1]*=Se;for(var He=0;He<4;He++)ce[He]=Math.sign(ce[He]);me.style.transform="matrix(".concat(ce.join(","),")")}else me.style.transform="matrix(".concat(ye.transform.join(","),")");if(me.style.transformOrigin="".concat(-G[0],"px ").concat(-G[1],"px"),!Z&&he.borderStyle.width>0){me.style.borderWidth="".concat(he.borderStyle.width,"px"),he.borderStyle.style!==s.AnnotationBorderStyleType.UNDERLINE&&(de-=2*he.borderStyle.width,W-=2*he.borderStyle.width);var Ne=he.borderStyle.horizontalCornerRadius,Ve=he.borderStyle.verticalCornerRadius;if(Ne>0||Ve>0){var rt="".concat(Ne,"px / ").concat(Ve,"px");me.style.borderRadius=rt}switch(he.borderStyle.style){case s.AnnotationBorderStyleType.SOLID:me.style.borderStyle="solid";break;case s.AnnotationBorderStyleType.DASHED:me.style.borderStyle="dashed";break;case s.AnnotationBorderStyleType.BEVELED:(0,s.warn)("Unimplemented border style: beveled");break;case s.AnnotationBorderStyleType.INSET:(0,s.warn)("Unimplemented border style: inset");break;case s.AnnotationBorderStyleType.UNDERLINE:me.style.borderBottomStyle="solid";break}var et=he.borderColor||he.color||null;et?me.style.borderColor=s.Util.makeHexColor(he.color[0]|0,he.color[1]|0,he.color[2]|0):me.style.borderWidth=0}return me.style.left="".concat(G[0],"px"),me.style.top="".concat(G[1],"px"),he.hasOwnCanvas?me.style.width=me.style.height="auto":(me.style.width="".concat(de,"px"),me.style.height="".concat(W,"px")),me}},{key:"_createQuadrilaterals",value:function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.data.quadPoints)return null;var he=[],ue=this.data.rect,ye=w(this.data.quadPoints),me;try{for(ye.s();!(me=ye.n()).done;){var de=me.value;this.data.rect=[de[2].x,de[2].y,de[1].x,de[1].y],he.push(this._createContainer(Z))}}catch(W){ye.e(W)}finally{ye.f()}return this.data.rect=ue,he}},{key:"_createPopup",value:function(Z,he){var ue=this.container;this.quadrilaterals&&(Z=Z||this.quadrilaterals,ue=this.quadrilaterals[0]),Z||(Z=document.createElement("div"),Z.style.height=ue.style.height,Z.style.width=ue.style.width,ue.appendChild(Z));var ye=new L({container:ue,trigger:Z,color:he.color,titleObj:he.titleObj,modificationDate:he.modificationDate,contentsObj:he.contentsObj,richText:he.richText,hideWrapper:!0}),me=ye.render();me.style.left=ue.style.width,ue.appendChild(me)}},{key:"_renderQuadrilaterals",value:function(Z){var he=w(this.quadrilaterals),ue;try{for(he.s();!(ue=he.n()).done;){var ye=ue.value;ye.className=Z}}catch(me){he.e(me)}finally{he.f()}return this.quadrilaterals}},{key:"render",value:function(){(0,s.unreachable)("Abstract method `AnnotationElement.render` called")}},{key:"_getElementsByName",value:function(Z){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,ue=[];if(this._fieldObjects){var ye=this._fieldObjects[Z];if(ye){var me=w(ye),de;try{for(me.s();!(de=me.n()).done;){var W=de.value,G=W.page,ce=W.id,we=W.exportValues;if(G!==-1&&ce!==he){var Ce=typeof we=="string"?we:null,De=document.getElementById(ce);if(De&&!U.has(De)){(0,s.warn)("_getElementsByName - element not allowed: ".concat(ce));continue}ue.push({id:ce,exportValue:Ce,domElement:De})}}}catch(et){me.e(et)}finally{me.f()}}return ue}var Se=w(document.getElementsByName(Z)),He;try{for(Se.s();!(He=Se.n()).done;){var Ne=He.value,Ve=Ne.id,rt=Ne.exportValue;Ve!==he&&U.has(Ne)&&ue.push({id:Ve,exportValue:rt,domElement:Ne})}}catch(et){Se.e(et)}finally{Se.f()}return ue}}],[{key:"platform",get:function(){var Z=typeof navigator<"u"?navigator.platform:"";return(0,s.shadow)(this,"platform",{isWin:Z.includes("Win"),isMac:Z.includes("Mac")})}}]),Ee})(),H=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;fe(this,Z);var ye=!!(he.data.url||he.data.dest||he.data.action||he.data.isTooltipOnly||he.data.resetForm||he.data.actions&&(he.data.actions.Action||he.data.actions["Mouse Up"]||he.data.actions["Mouse Down"]));return Re.call(this,he,{isRenderable:ye,ignoreBorder:!!(ue!=null&&ue.ignoreBorder),createQuadrilaterals:!0})}return q(Z,[{key:"render",value:function(){var ue=this.data,ye=this.linkService,me=document.createElement("a");if(ue.url){var de;ye.addLinkAttributes||(0,s.warn)("LinkAnnotationElement.render - missing `addLinkAttributes`-method on the `linkService`-instance."),(de=ye.addLinkAttributes)===null||de===void 0||de.call(ye,me,ue.url,ue.newWindow)}else if(ue.action)this._bindNamedAction(me,ue.action);
74else if(ue.dest)this._bindLink(me,ue.dest);else{var W=!1;ue.actions&&(ue.actions.Action||ue.actions["Mouse Up"]||ue.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(W=!0,this._bindJSAction(me,ue)),ue.resetForm?this._bindResetFormAction(me,ue.resetForm):W||this._bindLink(me,"")}return this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map(function(G,ce){var we=ce===0?me:me.cloneNode();return G.appendChild(we),G}):(this.container.className="linkAnnotation",this.container.appendChild(me),this.container)}},{key:"_bindLink",value:function(ue,ye){var me=this;ue.href=this.linkService.getDestinationHash(ye),ue.onclick=function(){return ye&&me.linkService.goToDestination(ye),!1},(ye||ye==="")&&(ue.className="internalLink")}},{key:"_bindNamedAction",value:function(ue,ye){var me=this;ue.href=this.linkService.getAnchorUrl(""),ue.onclick=function(){return me.linkService.executeNamedAction(ye),!1},ue.className="internalLink"}},{key:"_bindJSAction",value:function(ue,ye){var me=this;ue.href=this.linkService.getAnchorUrl("");for(var de=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]),W=function(){var De=ce[G],Se=de.get(De);if(!Se)return"continue";ue[Se]=function(){var He;return(He=me.linkService.eventBus)===null||He===void 0||He.dispatch("dispatcheventinsandbox",{source:me,detail:{id:ye.id,name:De}}),!1}},G=0,ce=Object.keys(ye.actions);G<ce.length;G++)var we=W();ue.onclick||(ue.onclick=function(){return!1}),ue.className="internalLink"}},{key:"_bindResetFormAction",value:function(ue,ye){var me=this,de=ue.onclick;if(de||(ue.href=this.linkService.getAnchorUrl("")),ue.className="internalLink",!this._fieldObjects){(0,s.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),de||(ue.onclick=function(){return!1});return}ue.onclick=function(){de&&de();var W=ye.fields,G=ye.refs,ce=ye.include,we=[];if(W.length!==0||G.length!==0){var Ce=new Set(G),De=w(W),Se;try{for(De.s();!(Se=De.n()).done;){var He=Se.value,Ne=me._fieldObjects[He]||[],Ve=w(Ne),rt;try{for(Ve.s();!(rt=Ve.n()).done;){var et=rt.value.id;Ce.add(et)}}catch(ht){Ve.e(ht)}finally{Ve.f()}}}catch(ht){De.e(ht)}finally{De.f()}for(var pt=0,mt=Object.values(me._fieldObjects);pt<mt.length;pt++){var xt=mt[pt],Et=w(xt),Bt;try{for(Et.s();!(Bt=Et.n()).done;){var er=Bt.value;Ce.has(er.id)===ce&&we.push(er)}}catch(ht){Et.e(ht)}finally{Et.f()}}}else for(var Kt=0,gr=Object.values(me._fieldObjects);Kt<gr.length;Kt++){var Jr=gr[Kt];we.push.apply(we,_(Jr))}for(var Zr=me.annotationStorage,en=[],sn=0,Tr=we;sn<Tr.length;sn++){var Fr=Tr[sn],br=Fr.id;switch(en.push(br),Fr.type){case"text":{var Pe=Fr.defaultValue||"";Zr.setValue(br,{value:Pe,valueAsString:Pe});break}case"checkbox":case"radiobutton":{var Ke=Fr.defaultValue===Fr.exportValues;Zr.setValue(br,{value:Ke});break}case"combobox":case"listbox":{var Ae=Fr.defaultValue||"";Zr.setValue(br,{value:Ae});break}default:continue}var je=document.getElementById(br);!je||!U.has(je)||je.dispatchEvent(new Event("resetform"))}if(me.enableScripting){var dt;(dt=me.linkService.eventBus)===null||dt===void 0||dt.dispatch("dispatcheventinsandbox",{source:me,detail:{id:"app",ids:en,name:"ResetForm"}})}return!1}}}]),Z})(x),ne=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue,ye,me;fe(this,Z);var de=!!(he.data.hasPopup||(ue=he.data.titleObj)!==null&&ue!==void 0&&ue.str||(ye=he.data.contentsObj)!==null&&ye!==void 0&&ye.str||(me=he.data.richText)!==null&&me!==void 0&&me.str);return Re.call(this,he,{isRenderable:de})}return q(Z,[{key:"render",value:function(){this.container.className="textAnnotation";var ue=document.createElement("img");return ue.style.height=this.container.style.height,ue.style.width=this.container.style.width,ue.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",ue.alt="[{{type}} Annotation]",ue.dataset.l10nId="text_annotation_type",ue.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(ue,this.data),this.container.appendChild(ue),this.container}}]),Z})(x),ae=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(){return fe(this,Z),Re.apply(this,arguments)}return q(Z,[{key:"render",value:function(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}}
74,{key:"_getKeyModifier",value:function(ue){var ye=x.platform,me=ye.isWin,de=ye.isMac;return me&&ue.ctrlKey||de&&ue.metaKey}},{key:"_setEventListener",value:function(ue,ye,me,de){var W=this;ye.includes("mouse")?ue.addEventListener(ye,function(G){var ce;(ce=W.linkService.eventBus)===null||ce===void 0||ce.dispatch("dispatcheventinsandbox",{source:W,detail:{id:W.data.id,name:me,value:de(G),shift:G.shiftKey,modifier:W._getKeyModifier(G)}})}):ue.addEventListener(ye,function(G){var ce;(ce=W.linkService.eventBus)===null||ce===void 0||ce.dispatch("dispatcheventinsandbox",{source:W,detail:{id:W.data.id,name:me,value:G.target.checked}})})}},{key:"_setEventListeners",value:function(ue,ye,me){var de=w(ye),W;try{for(de.s();!(W=de.n()).done;){var G,ce=D(W.value,2),we=ce[0],Ce=ce[1];(Ce==="Action"||(G=this.data.actions)!==null&&G!==void 0&&G[Ce])&&this._setEventListener(ue,we,Ce,me)}}catch(De){de.e(De)}finally{de.f()}}},{key:"_setBackgroundColor",value:function(ue){var ye=this.data.backgroundColor||null;ue.style.backgroundColor=ye===null?"transparent":s.Util.makeHexColor(ye[0],ye[1],ye[2])}},{key:"_dispatchEventFromSandbox",value:function(ue,ye){for(var me=this,de=function(Se,He,Ne){var Ve=Ne.detail[Se];Ne.target.style[He]=d.ColorConverters["".concat(Ve[0],"_HTML")](Ve.slice(1))},W={display:function(Se){var He=Se.detail.display%2===1;Se.target.style.visibility=He?"hidden":"visible",me.annotationStorage.setValue(me.data.id,{hidden:He,print:Se.detail.display===0||Se.detail.display===3})},print:function(Se){me.annotationStorage.setValue(me.data.id,{print:Se.detail.print})},hidden:function(Se){Se.target.style.visibility=Se.detail.hidden?"hidden":"visible",me.annotationStorage.setValue(me.data.id,{hidden:Se.detail.hidden})},focus:function(Se){setTimeout(function(){return Se.target.focus({preventScroll:!1})},0)},userName:function(Se){Se.target.title=Se.detail.userName},readonly:function(Se){Se.detail.readonly?Se.target.setAttribute("readonly",""):Se.target.removeAttribute("readonly")},required:function(Se){Se.detail.required?Se.target.setAttribute("required",""):Se.target.removeAttribute("required")},bgColor:function(Se){de("bgColor","backgroundColor",Se)},fillColor:function(Se){de("fillColor","backgroundColor",Se)},fgColor:function(Se){de("fgColor","color",Se)},textColor:function(Se){de("textColor","color",Se)},borderColor:function(Se){de("borderColor","borderColor",Se)},strokeColor:function(Se){de("strokeColor","borderColor",Se)}},G=0,ce=Object.keys(ye.detail);G<ce.length;G++){var we=ce[G],Ce=ue[we]||W[we];Ce&&Ce(ye)}}}]),Z})(x),ie=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){fe(this,Z);var ue=he.renderForms||!he.data.hasAppearance&&!!he.data.fieldValue;return Re.call(this,he,{isRenderable:ue})}return q(Z,[{key:"setPropertyOnSiblings",value:function(ue,ye,me,de){var W=this.annotationStorage,G=w(this._getElementsByName(ue.name,ue.id)),ce;try{for(G.s();!(ce=G.n()).done;){var we=ce.value;we.domElement&&(we.domElement[ye]=me),W.setValue(we.id,I({},de,me))}}catch(Ce){G.e(Ce)}finally{G.f()}}},{key:"render",value:function(){var ue=this,ye=this.annotationStorage,me=this.data.id;this.container.className="textWidgetAnnotation";var de=null;if(this.renderForms){var W=ye.getValue(me,{value:this.data.fieldValue,valueAsString:this.data.fieldValue}),G=W.valueAsString||W.value||"",ce={userValue:null,formattedValue:null,beforeInputSelectionRange:null,beforeInputValue:null};this.data.multiLine?(de=document.createElement("textarea"),de.textContent=G):(de=document.createElement("input"),de.type="text",de.setAttribute("value",G)),U.add(de),de.disabled=this.data.readOnly,de.name=this.data.fieldName,de.tabIndex=Y,ce.userValue=G,de.setAttribute("id",me),de.addEventListener("input",function(Ne){ye.setValue(me,{value:Ne.target.value}),ue.setPropertyOnSiblings(de,"value",Ne.target.value,"value")}),de.addEventListener("resetform",function(Ne){var Ve=ue.data.defaultFieldValue||"";de.value=ce.userValue=Ve,delete ce.formattedValue});var we=function(Ve){ce.formattedValue&&(Ve.target.value=ce.formattedValue),Ve.target.scrollLeft=0,ce.beforeInputSelectionRange=null};if(this.enableScripting&&this.hasJSActions){var Ce;de.addEventListener("focus",function(Ne){ce.userValue&&(Ne.target.value=ce.userValue)}),de.addEventListener("updatefromsandbox",function(Ne){var Ve={value:function(et){ce.userValue=et.detail.value||"",ye.setValue(me,{value:ce.userValue.toString()}),ce.formattedValue||(et.target.value=ce.userValue)},valueAsString:function(et){ce.formattedValue=et.detail.valueAsString||"",et.target!==document.activeElement&&(et.target.value=ce.formattedValue),ye.setValue(me,{formattedValue:ce.formattedValue})},selRange:function(et){var pt=D(et.detail.selRange,2),mt=pt[0],xt=pt[1];mt>=0&&xt<et.target.value.length&&et.target.setSelectionRange(mt,xt)}};ue._dispatchEventFromSandbox(Ve,Ne)}),de.addEventListener("keydown",function(Ne){var Ve;ce.beforeInputValue=Ne.target.value;var rt=-1;Ne.key==="Escape"?rt=0:Ne.key==="Enter"?rt=2:Ne.key==="Tab"&&(rt=3),rt!==-1&&(ce.userValue=Ne.target.value,(Ve=ue.linkService.eventBus)===null||Ve===void 0||Ve.dispatch("dispatcheventinsandbox",{source:ue,detail
74:{id:me,name:"Keystroke",value:Ne.target.value,willCommit:!0,commitKey:rt,selStart:Ne.target.selectionStart,selEnd:Ne.target.selectionEnd}}))});var De=we;we=null,de.addEventListener("blur",function(Ne){if(ue._mouseState.isDown){var Ve;ce.userValue=Ne.target.value,(Ve=ue.linkService.eventBus)===null||Ve===void 0||Ve.dispatch("dispatcheventinsandbox",{source:ue,detail:{id:me,name:"Keystroke",value:Ne.target.value,willCommit:!0,commitKey:1,selStart:Ne.target.selectionStart,selEnd:Ne.target.selectionEnd}})}De(Ne)}),de.addEventListener("mousedown",function(Ne){ce.beforeInputValue=Ne.target.value,ce.beforeInputSelectionRange=null}),de.addEventListener("keyup",function(Ne){Ne.target.selectionStart===Ne.target.selectionEnd&&(ce.beforeInputSelectionRange=null)}),de.addEventListener("select",function(Ne){ce.beforeInputSelectionRange=[Ne.target.selectionStart,Ne.target.selectionEnd]}),(Ce=this.data.actions)!==null&&Ce!==void 0&&Ce.Keystroke&&de.addEventListener("input",function(Ne){var Ve,rt=-1,et=-1;if(ce.beforeInputSelectionRange){var pt=D(ce.beforeInputSelectionRange,2);rt=pt[0],et=pt[1]}(Ve=ue.linkService.eventBus)===null||Ve===void 0||Ve.dispatch("dispatcheventinsandbox",{source:ue,detail:{id:me,name:"Keystroke",value:ce.beforeInputValue,change:Ne.data,willCommit:!1,selStart:rt,selEnd:et}})}),this._setEventListeners(de,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],function(Ne){return Ne.target.value})}if(we&&de.addEventListener("blur",we),this.data.maxLen!==null&&(de.maxLength=this.data.maxLen),this.data.comb){var Se=this.data.rect[2]-this.data.rect[0],He=Se/this.data.maxLen;de.classList.add("comb"),de.style.letterSpacing="calc(".concat(He,"px - 1ch)")}}else de=document.createElement("div"),de.textContent=this.data.fieldValue,de.style.verticalAlign="middle",de.style.display="table-cell";return this._setTextStyle(de),this._setBackgroundColor(de),this.container.appendChild(de),this.container}},{key:"_setTextStyle",value:function(ue){var ye=["left","center","right"],me=this.data.defaultAppearanceData,de=me.fontSize,W=me.fontColor,G=ue.style;de&&(G.fontSize="".concat(de,"px")),G.color=s.Util.makeHexColor(W[0],W[1],W[2]),this.data.textAlignment!==null&&(G.textAlign=ye[this.data.textAlignment])}}]),Z})(ae),xe=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){return fe(this,Z),Re.call(this,he,{isRenderable:he.renderForms})}return q(Z,[{key:"render",value:function(){var ue=this,ye=this.annotationStorage,me=this.data,de=me.id,W=ye.getValue(de,{value:me.exportValue===me.fieldValue}).value;typeof W=="string"&&(W=W!=="Off",ye.setValue(de,{value:W})),this.container.className="buttonWidgetAnnotation checkBox";var G=document.createElement("input");return U.add(G),G.disabled=me.readOnly,G.type="checkbox",G.name=me.fieldName,W&&G.setAttribute("checked",!0),G.setAttribute("id",de),G.setAttribute("exportValue",me.exportValue),G.tabIndex=Y,G.addEventListener("change",function(ce){var we=ce.target,Ce=we.name,De=we.checked,Se=w(ue._getElementsByName(Ce,de)),He;try{for(Se.s();!(He=Se.n()).done;){var Ne=He.value,Ve=De&&Ne.exportValue===me.exportValue;Ne.domElement&&(Ne.domElement.checked=Ve),ye.setValue(Ne.id,{value:Ve})}}catch(rt){Se.e(rt)}finally{Se.f()}ye.setValue(de,{value:De})}),G.addEventListener("resetform",function(ce){var we=me.defaultFieldValue||"Off";ce.target.checked=we===me.exportValue}),this.enableScripting&&this.hasJSActions&&(G.addEventListener("updatefromsandbox",function(ce){var we={value:function(De){De.target.checked=De.detail.value!=="Off",ye.setValue(de,{value:De.target.checked})}};ue._dispatchEventFromSandbox(we,ce)}),this._setEventListeners(G,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],function(ce){return ce.target.checked})),this._setBackgroundColor(G),this.container.appendChild(G),this.container}}]),Z})(ae),Ue=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){return fe(this,Z),Re.call(this,he,{isRenderable:he.renderForms})}return q(Z,[{key:"render",value:function(){var ue=this;this.container.className="buttonWidgetAnnotation radioButton";var ye=this.annotationStorage,me=this.data,de=me.id,W=ye.getValue(de,{value:me.fieldValue===me.buttonValue}).value;typeof W=="string"&&(W=W!==me.buttonValue,ye.setValue(de,{value:W}));var G=document.createElement("input");if(U.add(G),G.disabled=me.readOnly,G.type="radio",G.name=me.fieldName,W&&G.setAttribute("checked",!0),G.setAttribute("id",de),G.tabIndex=Y,G.addEventListener("change",function(we){var 
74Ce=we.target,De=Ce.name,Se=Ce.checked,He=w(ue._getElementsByName(De,de)),Ne;try{for(He.s();!(Ne=He.n()).done;){var Ve=Ne.value;ye.setValue(Ve.id,{value:!1})}}catch(rt){He.e(rt)}finally{He.f()}ye.setValue(de,{value:Se})}),G.addEventListener("resetform",function(we){var Ce=me.defaultFieldValue;we.target.checked=Ce!=null&&Ce===me.buttonValue}),this.enableScripting&&this.hasJSActions){var ce=me.buttonValue;G.addEventListener("updatefromsandbox",function(we){var Ce={value:function(Se){var He=ce===Se.detail.value,Ne=w(ue._getElementsByName(Se.target.name)),Ve;try{for(Ne.s();!(Ve=Ne.n()).done;){var rt=Ve.value,et=He&&rt.id===de;rt.domElement&&(rt.domElement.checked=et),ye.setValue(rt.id,{value:et})}}catch(pt){Ne.e(pt)}finally{Ne.f()}}};ue._dispatchEventFromSandbox(Ce,we)}),this._setEventListeners(G,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],function(we){return we.target.checked})}return this._setBackgroundColor(G),this.container.appendChild(G),this.container}}]),Z})(ae),qe=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){return fe(this,Z),Re.call(this,he,{ignoreBorder:he.data.hasAppearance})}return q(Z,[{key:"render",value:function(){var ue=B(T(Z.prototype),"render",this).call(this);return ue.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(ue.title=this.data.alternativeText),ue}}]),Z})(H),se=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){return fe(this,Z),Re.call(this,he,{isRenderable:he.renderForms})}return q(Z,[{key:"render",value:function(){var ue=this;this.container.className="choiceWidgetAnnotation";var ye=this.annotationStorage,me=this.data.id;ye.getValue(me,{value:this.data.fieldValue.length>0?this.data.fieldValue[0]:void 0});var de=this.data.defaultAppearanceData.fontSize;de||(de=9);var W="calc(".concat(de,"px * var(--zoom-factor))"),G=document.createElement("select");U.add(G),G.disabled=this.data.readOnly,G.name=this.data.fieldName,G.setAttribute("id",me),G.tabIndex=Y,G.style.fontSize="".concat(de,"px"),this.data.combo||(G.size=this.data.options.length,this.data.multiSelect&&(G.multiple=!0)),G.addEventListener("resetform",function(Ne){var Ve=ue.data.defaultFieldValue,rt=w(G.options),et;try{for(rt.s();!(et=rt.n()).done;){var pt=et.value;pt.selected=pt.value===Ve}}catch(mt){rt.e(mt)}finally{rt.f()}});var ce=w(this.data.options),we;try{for(ce.s();!(we=ce.n()).done;){var Ce=we.value,De=document.createElement("option");De.textContent=Ce.displayValue,De.value=Ce.exportValue,this.data.combo&&(De.style.fontSize=W),this.data.fieldValue.includes(Ce.exportValue)&&De.setAttribute("selected",!0),G.appendChild(De)}}catch(Ne){ce.e(Ne)}finally{ce.f()}var Se=function(Ve,rt){var et=rt?"value":"textContent",pt=Ve.target.options;return Ve.target.multiple?Array.prototype.filter.call(pt,function(mt){return mt.selected}).map(function(mt){return mt[et]}):pt.selectedIndex===-1?null:pt[pt.selectedIndex][et]},He=function(Ve){var rt=Ve.target.options;return Array.prototype.map.call(rt,function(et){return{displayValue:et.textContent,exportValue:et.value}})};return this.enableScripting&&this.hasJSActions?(G.addEventListener("updatefromsandbox",function(Ne){var Ve={value:function(et){var pt=et.detail.value,mt=new Set(Array.isArray(pt)?pt:[pt]),xt=w(G.options),Et;try{for(xt.s();!(Et=xt.n()).done;){var Bt=Et.value;Bt.selected=mt.has(Bt.value)}}catch(er){xt.e(er)}finally{xt.f()}ye.setValue(me,{value:Se(et,!0)})},multipleSelection:function(et){G.multiple=!0},remove:function(et){var pt=G.options,mt=et.detail.remove;if(pt[mt].selected=!1,G.remove(mt),pt.length>0){var xt=Array.prototype.findIndex.call(pt,function(Et){return Et.selected});xt===-1&&(pt[0].selected=!0)}ye.setValue(me,{value:Se(et,!0),items:He(et)})},clear:function(et){for(;G.length!==0;)G.remove(0);ye.setValue(me,{value:null,items:[]})},insert:function(et){var pt=et.detail.insert,mt=pt.index,xt=pt.displayValue,Et=pt.exportValue,Bt=document.createElement("option");Bt.textContent=xt,Bt.value=Et,G.insertBefore(Bt,G.children[mt]),ye.setValue(me,{value:Se(et,!0),items:He(et)})},items:function(et){for(var pt=et.detail.items;G.length!==0;)G.remove(0);var mt=w(pt),xt;
74try{for(mt.s();!(xt=mt.n()).done;){var Et=xt.value,Bt=Et.displayValue,er=Et.exportValue,Kt=document.createElement("option");Kt.textContent=Bt,Kt.value=er,G.appendChild(Kt)}}catch(gr){mt.e(gr)}finally{mt.f()}G.options.length>0&&(G.options[0].selected=!0),ye.setValue(me,{value:Se(et,!0),items:He(et)})},indices:function(et){var pt=new Set(et.detail.indices),mt=w(et.target.options),xt;try{for(mt.s();!(xt=mt.n()).done;){var Et=xt.value;Et.selected=pt.has(Et.index)}}catch(Bt){mt.e(Bt)}finally{mt.f()}ye.setValue(me,{value:Se(et,!0)})},editable:function(et){et.target.disabled=!et.detail.editable}};ue._dispatchEventFromSandbox(Ve,Ne)}),G.addEventListener("input",function(Ne){var Ve,rt=Se(Ne,!0),et=Se(Ne,!1);ye.setValue(me,{value:rt}),(Ve=ue.linkService.eventBus)===null||Ve===void 0||Ve.dispatch("dispatcheventinsandbox",{source:ue,detail:{id:me,name:"Keystroke",value:et,changeEx:rt,willCommit:!0,commitKey:1,keyDown:!1}})}),this._setEventListeners(G,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],function(Ne){return Ne.target.checked})):G.addEventListener("input",function(Ne){ye.setValue(me,{value:Se(Ne)})}),this._setBackgroundColor(G),this.container.appendChild(G),this.container}}]),Z})(ae),Q=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue,ye,me;fe(this,Z);var de=!!((ue=he.data.titleObj)!==null&&ue!==void 0&&ue.str||(ye=he.data.contentsObj)!==null&&ye!==void 0&&ye.str||(me=he.data.richText)!==null&&me!==void 0&&me.str);return Re.call(this,he,{isRenderable:de})}return q(Z,[{key:"render",value:function(){var ue=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",ue.includes(this.data.parentType))return this.container;var ye='[data-annotation-id="'.concat(this.data.parentId,'"]'),me=this.layer.querySelectorAll(ye);if(me.length===0)return this.container;var de=new L({container:this.container,trigger:Array.from(me),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),W=this.page,G=s.Util.normalizeRect([this.data.parentRect[0],W.view[3]-this.data.parentRect[1]+W.view[1],this.data.parentRect[2],W.view[3]-this.data.parentRect[3]+W.view[1]]),ce=G[0]+this.data.parentRect[2]-this.data.parentRect[0],we=G[1];return this.container.style.transformOrigin="".concat(-ce,"px ").concat(-we,"px"),this.container.style.left="".concat(ce,"px"),this.container.style.top="".concat(we,"px"),this.container.appendChild(de.render()),this.container}}]),Z})(x),L=(function(){function Ee(Re){fe(this,Ee),this.container=Re.container,this.trigger=Re.trigger,this.color=Re.color,this.titleObj=Re.titleObj,this.modificationDate=Re.modificationDate,this.contentsObj=Re.contentsObj,this.richText=Re.richText,this.hideWrapper=Re.hideWrapper||!1,this.pinned=!1}return q(Ee,[{key:"render",value:function(){var Z,he,ue=.7,ye=document.createElement("div");ye.className="popupWrapper",this.hideElement=this.hideWrapper?ye:this.container,this.hideElement.hidden=!0;var me=document.createElement("div");me.className="popup";var de=this.color;if(de){var W=ue*(255-de[0])+de[0],G=ue*(255-de[1])+de[1],ce=ue*(255-de[2])+de[2];me.style.backgroundColor=s.Util.makeHexColor(W|0,G|0,ce|0)}var we=document.createElement("h1");we.dir=this.titleObj.dir,we.textContent=this.titleObj.str,me.appendChild(we);
74var Ce=l.PDFDateString.toDateObject(this.modificationDate);if(Ce){var De=document.createElement("span");De.className="popupDate",De.textContent="{{date}}, {{time}}",De.dataset.l10nId="annotation_date_string",De.dataset.l10nArgs=JSON.stringify({date:Ce.toLocaleDateString(),time:Ce.toLocaleTimeString()}),me.appendChild(De)}if((Z=this.richText)!==null&&Z!==void 0&&Z.str&&(!((he=this.contentsObj)!==null&&he!==void 0&&he.str)||this.contentsObj.str===this.richText.str))S.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:me}),me.lastChild.className="richText popupContent";else{var Se=this._formatContents(this.contentsObj);me.appendChild(Se)}Array.isArray(this.trigger)||(this.trigger=[this.trigger]);var He=w(this.trigger),Ne;try{for(He.s();!(Ne=He.n()).done;){var Ve=Ne.value;Ve.addEventListener("click",this._toggle.bind(this)),Ve.addEventListener("mouseover",this._show.bind(this,!1)),Ve.addEventListener("mouseout",this._hide.bind(this,!1))}}catch(rt){He.e(rt)}finally{He.f()}return me.addEventListener("click",this._hide.bind(this,!0)),ye.appendChild(me),ye}},{key:"_formatContents",value:function(Z){var he=Z.str,ue=Z.dir,ye=document.createElement("p");ye.className="popupContent",ye.dir=ue;for(var me=he.split(/(?:\r\n?|\n)/),de=0,W=me.length;de<W;++de){var G=me[de];ye.appendChild(document.createTextNode(G)),de<W-1&&ye.appendChild(document.createElement("br"))}return ye}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Z&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;Z&&(this.pinned=!1),!this.hideElement.hidden&&!this.pinned&&(this.hideElement.hidden=!0,this.container.style.zIndex-=1)}}]),Ee})(),P=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue,ye,me;fe(this,Z);var de=!!(he.data.hasPopup||(ue=he.data.titleObj)!==null&&ue!==void 0&&ue.str||(ye=he.data.contentsObj)!==null&&ye!==void 0&&ye.str||(me=he.data.richText)!==null&&me!==void 0&&me.str);return Re.call(this,he,{isRenderable:de,ignoreBorder:!0})}return q(Z,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),Z})(x),V=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue,ye,me;fe(this,Z);var de=!!(he.data.hasPopup||(ue=he.data.titleObj)!==null&&ue!==void 0&&ue.str||(ye=he.data.contentsObj)!==null&&ye!==void 0&&ye.str||(me=he.data.richText)!==null&&me!==void 0&&me.str);return Re.call(this,he,{isRenderable:de,ignoreBorder:!0})}return q(Z,[{key:"render",value:function(){this.container.className="lineAnnotation";var ue=this.data,ye=ue.rect[2]-ue.rect[0],me=ue.rect[3]-ue.rect[1],de=this.svgFactory.create(ye,me),W=this.svgFactory.createElement("svg:line");return W.setAttribute("x1",ue.rect[2]-ue.lineCoordinates[0]),W.setAttribute("y1",ue.rect[3]-ue.lineCoordinates[1]),W.setAttribute("x2",ue.rect[2]-ue.lineCoordinates[2]),W.setAttribute("y2",ue.rect[3]-ue.lineCoordinates[3]),W.setAttribute("stroke-width",ue.borderStyle.width||1),W.setAttribute("stroke","transparent"),W.setAttribute("fill","transparent"),de.appendChild(W),this.container.append(de),this._createPopup(W,ue),this.container}}]),Z})(x),ee=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue,ye,me;fe(this,Z);var de=!!(he.data.hasPopup||(ue=he.data.titleObj)!==null&&ue!==void 0&&ue.str||(ye=he.data.contentsObj)!==null&&ye!==void 0&&ye.str||(me=he.data.richText)!==null&&me!==void 0&&me.str);return Re.call(this,he,{isRenderable:de,ignoreBorder:!0})}return q(Z,[{key:"render",value:function(){this.container.className="squareAnnotation";var ue=this.data,ye=ue.rect[2]-ue.rect[0],me=ue.rect[3]-ue.rect[1],de=this.svgFactory.create(ye,me),W=ue.borderStyle.width,G=this.svgFactory.createElement("svg:rect");return G.setAttribute("x",W/2),G.setAttribute("y",W/2),G.setAttribute("width",ye-W),G.setAttribute("height",me-W),G.setAttribute("stroke-width",W||1),G.setAttribute("stroke","transparent"),G.setAttribute("fill","transparent"),de.appendChild(G),this.container.append(de),this._createPopup(G,ue),this.container}}
vendor: 6,733 bytes, line 74
74]),Z})(x),oe=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue,ye,me;fe(this,Z);var de=!!(he.data.hasPopup||(ue=he.data.titleObj)!==null&&ue!==void 0&&ue.str||(ye=he.data.contentsObj)!==null&&ye!==void 0&&ye.str||(me=he.data.richText)!==null&&me!==void 0&&me.str);return Re.call(this,he,{isRenderable:de,ignoreBorder:!0})}return q(Z,[{key:"render",value:function(){this.container.className="circleAnnotation";var ue=this.data,ye=ue.rect[2]-ue.rect[0],me=ue.rect[3]-ue.rect[1],de=this.svgFactory.create(ye,me),W=ue.borderStyle.width,G=this.svgFactory.createElement("svg:ellipse");return G.setAttribute("cx",ye/2),G.setAttribute("cy",me/2),G.setAttribute("rx",ye/2-W/2),G.setAttribute("ry",me/2-W/2),G.setAttribute("stroke-width",W||1),G.setAttribute("stroke","transparent"),G.setAttribute("fill","transparent"),de.appendChild(G),this.container.append(de),this._createPopup(G,ue),this.container}}]),Z})(x),pe=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue,ye,me,de;fe(this,Z);var W=!!(he.data.hasPopup||(ue=he.data.titleObj)!==null&&ue!==void 0&&ue.str||(ye=he.data.contentsObj)!==null&&ye!==void 0&&ye.str||(me=he.data.richText)!==null&&me!==void 0&&me.str);return de=Re.call(this,he,{isRenderable:W,ignoreBorder:!0}),de.containerClassName="polylineAnnotation",de.svgElementName="svg:polyline",de}return q(Z,[{key:"render",value:function(){this.container.className=this.containerClassName;var ue=this.data,ye=ue.rect[2]-ue.rect[0],me=ue.rect[3]-ue.rect[1],de=this.svgFactory.create(ye,me),W=[],G=w(ue.vertices),ce;try{for(G.s();!(ce=G.n()).done;){var we=ce.value,Ce=we.x-ue.rect[0],De=ue.rect[3]-we.y;W.push(Ce+","+De)}}catch(He){G.e(He)}finally{G.f()}W=W.join(" ");var Se=this.svgFactory.createElement(this.svgElementName);return Se.setAttribute("points",W),Se.setAttribute("stroke-width",ue.borderStyle.width||1),Se.setAttribute("stroke","transparent"),Se.setAttribute("fill","transparent"),de.appendChild(Se),this.container.append(de),this._createPopup(Se,ue),this.container}}]),Z})(x),Te=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue;return fe(this,Z),ue=Re.call(this,he),ue.containerClassName="polygonAnnotation",ue.svgElementName="svg:polygon",ue}return Z})(pe),Oe=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue,ye,me;fe(this,Z);var de=!!(he.data.hasPopup||(ue=he.data.titleObj)!==null&&ue!==void 0&&ue.str||(ye=he.data.contentsObj)!==null&&ye!==void 0&&ye.str||(me=he.data.richText)!==null&&me!==void 0&&me.str);return Re.call(this,he,{isRenderable:de,ignoreBorder:!0})}return q(Z,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),Z})(x),Me=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue,ye,me,de;fe(this,Z);var W=!!(he.data.hasPopup||(ue=he.data.titleObj)!==null&&ue!==void 0&&ue.str||(ye=he.data.contentsObj)!==null&&ye!==void 0&&ye.str||(me=he.data.richText)!==null&&me!==void 0&&me.str);return de=Re.call(this,he,{isRenderable:W,ignoreBorder:!0}),de.containerClassName="inkAnnotation",de.svgElementName="svg:polyline",de}return q(Z,[{key:"render",value:function(){this.container.className=this.containerClassName;var ue=this.data,ye=ue.rect[2]-ue.rect[0],me=ue.rect[3]-ue.rect[1],de=this.svgFactory.create(ye,me),W=w(ue.inkLists),G;try{for(W.s();!(G=W.n()).done;){var ce=G.value,we=[],Ce=w(ce),De;try{for(Ce.s();!(De=Ce.n()).done;){var Se=De.value,He=Se.x-ue.rect[0],Ne=ue.rect[3]-Se.y;we.push("".concat(He,",").concat(Ne))}}catch(rt){Ce.e(rt)}finally{Ce.f()}we=we.join(" ");var Ve=this.svgFactory.createElement(this.svgElementName);Ve.setAttribute("points",we),Ve.setAttribute("stroke-width",ue.borderStyle.width||1),Ve.setAttribute("stroke","transparent"),Ve.setAttribute("fill","transparent"),this._createPopup(Ve,ue),de.appendChild(Ve)}}catch(rt){W.e(rt)}finally{W.f()}return this.container.append(de),this.container}}]),Z})(x),Fe=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue,ye,me;fe(this,Z);var de=!!(he.data.hasPopup||(ue=he.data.titleObj)!==null&&ue!==void 0&&ue.str||(ye=he.data.contentsObj)!==null&&ye!==void 0&&ye.str||(me=he.data.richText)!==null&&me!==void 0&&me.str);return Re.call(this,he,{isRenderable:de,ignoreBorder:!0,createQuadrilaterals:!0})}return q(Z,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}]),Z})(x),ze=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue,ye,me;fe(this,Z);var de=!!(he.data.hasPopup||(ue=he.data.titleObj)!==null&&ue!==void 0&&ue.str||(ye=he.data.contentsObj)!==null&&ye!==void 0&&ye.str||(me=he.data.richText)!==null&&me!==void 0&&me.str);return Re.call(this,he,{isRenderable:de,ignoreBorder:!0,createQuadrilaterals:!0})}return q(Z,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}]),Z})(x),Ye=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue,ye,me;fe(this,Z);var de=!!(he.data.hasPopup||(ue=he.data.titleObj)!==null&&ue!==void 0&&ue.str||(ye=he.data.contentsObj)!==null&&ye!==void 0&&ye.str||(me=he.data.richText)!==null&&me!==void 0&&me.str);return Re.call(this,he,{isRenderable:de,ignoreBorder:!0,createQuadrilaterals:!0})}return q(Z,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}]),Z})(x),Je=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue,ye,me;fe(this,Z);var de=!!(he.data.hasPopup||(ue=he.data.titleObj)!==null&&ue!==void 0&&ue.str||(ye=he.data.contentsObj)!==null&&ye!==void 0&&ye.str||(me=he.data.richText)!==null&&me!==void 0&&me.str);return Re.call(this,he,{isRenderable:de,ignoreBorder:!0,createQuadrilaterals:!0})}return q(Z,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}]),Z})(x),nt=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue,ye,me;fe(this,Z);var de=!!(he.data.hasPopup||(ue=he.data.titleObj)!==null&&ue!==void 0&&ue.str||(ye=he.data.contentsObj)!==null&&ye!==void 0&&ye.str||(me=he.data.richText)!==null&&me!==void 0&&me.str);return Re.call(this,he,{isRenderable:de,ignoreBorder:!0})}return q(Z,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}
74]),Z})(x),tt=(function(Ee){F(Z,Ee);var Re=g(Z);function Z(he){var ue,ye;fe(this,Z),ye=Re.call(this,he,{isRenderable:!0});var me=ye.data.file,de=me.filename,W=me.content;return ye.filename=(0,l.getFilenameFromUrl)(de),ye.content=W,(ue=ye.linkService.eventBus)===null||ue===void 0||ue.dispatch("fileattachmentannotation",{source:m(ye),id:(0,s.stringToPDFString)(de),filename:de,content:W}),ye}return q(Z,[{key:"render",value:function(){var ue,ye;this.container.className="fileAttachmentAnnotation";var me=document.createElement("div");return me.style.height=this.container.style.height,me.style.width=this.container.style.width,me.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&((ue=this.data.titleObj)!==null&&ue!==void 0&&ue.str||(ye=this.data.contentsObj)!==null&&ye!==void 0&&ye.str||this.data.richText)&&this._createPopup(me,this.data),this.container.appendChild(me),this.container}},{key:"_download",value:function(){var ue;(ue=this.downloadManager)===null||ue===void 0||ue.openOrDownloadData(this.container,this.content,this.filename)}}]),Z})(x),ct=(function(){function Ee(){fe(this,Ee)}return q(Ee,null,[{key:"render",value:function(Z){var he=[],ue=[],ye=w(Z.annotations),me;try{for(ye.s();!(me=ye.n()).done;){var de=me.value;if(de){if(de.annotationType===s.AnnotationType.POPUP){ue.push(de);continue}he.push(de)}}}catch(Ve){ye.e(Ve)}finally{ye.f()}ue.length&&he.push.apply(he,ue);for(var W=Z.div,G=0,ce=he;G<ce.length;G++){var we=ce[G],Ce=p.create({data:we,layer:W,page:Z.page,viewport:Z.viewport,linkService:Z.linkService,downloadManager:Z.downloadManager,imageResourcesPath:Z.imageResourcesPath||"",renderForms:Z.renderForms!==!1,svgFactory:new l.DOMSVGFactory,annotationStorage:Z.annotationStorage||new f.AnnotationStorage,enableScripting:Z.enableScripting,hasJSActions:Z.hasJSActions,fieldObjects:Z.fieldObjects,mouseState:Z.mouseState||{isDown:!1}});if(Ce.isRenderable){var De=Ce.render();if(we.hidden&&(De.style.visibility="hidden"),Array.isArray(De)){var Se=w(De),He;try{for(Se.s();!(He=Se.n()).done;){var Ne=He.value;W.appendChild(Ne)}}catch(Ve){Se.e(Ve)}finally{Se.f()}}else Ce instanceof Q?W.prepend(De):W.appendChild(De)}}R(this,Ee,lt).call(this,W,Z.annotationCanvasMap)}},{key:"update",value:function(Z){var he=Z.page,ue=Z.viewport,ye=Z.annotations,me=Z.annotationCanvasMap,de=Z.div,W=ue.transform,G="matrix(".concat(W.join(","),")"),ce,we,Ce=w(ye),De;try{for(Ce.s();!(De=Ce.n()).done;){var Se=De.value,He=de.querySelectorAll('[data-annotation-id="'.concat(Se.id,'"]'));if(He){var Ne=w(He),Ve;try{for(Ne.s();!(Ve=Ne.n()).done;){var rt=Ve.value;if(Se.hasOwnCanvas){var et=s.Util.normalizeRect([Se.rect[0],he.view[3]-Se.rect[1]+he.view[1],Se.rect[2],he.view[3]-Se.rect[3]+he.view[1]]);if(!we){ce=Math.abs(W[0]||W[1]);for(var pt=W.slice(),mt=0;mt<4;mt++)pt[mt]=Math.sign(pt[mt]);we="matrix(".concat(pt.join(","),")")}var xt=et[0]*ce,Et=et[1]*ce;rt.style.left="".concat(xt,"px"),rt.style.top="".concat(Et,"px"),rt.style.transformOrigin="".concat(-xt,"px ").concat(-Et,"px"),rt.style.transform=we}else rt.style.transform=G}}catch(Bt){Ne.e(Bt)}finally{Ne.f()}}}}catch(Bt){Ce.e(Bt)}finally{Ce.f()}R(this,Ee,lt).call(this,de,me),de.hidden=!1}}]),Ee})();i.AnnotationLayer=ct;function lt(Ee,Re){if(Re){var Z=w(Re),he;try{for(Z.s();!(he=Z.n()).done;){var ue=D(he.value,2),ye=ue[0],me=ue[1],de=Ee.querySelector('[data-annotation-id="'.concat(ye,'"]'));if(de){var W=de.firstChild;W.nodeName==="CANVAS"?de.replaceChild(me,W):de.insertBefore(me,W)}}}catch(G){Z.e(G)}finally{Z.f()}Re.clear()}}}),((a,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ColorConverters=void 0;function r(I,_){return d(I)||f(I,_)||s(I,_)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
75In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(I,_){if(I){if(typeof I=="string")return l(I,_);var E=Object.prototype.toString.call(I).slice(8,-1);if(E==="Object"&&I.constructor&&(E=I.constructor.name),E==="Map"||E==="Set")return Array.from(I);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return l(I,_)}}function l(I,_){(_==null||_>I.length)&&(_=I.length);for(var E=0,C=new Array(_);E<_;E++)C[E]=I[E];return C}function f(I,_){var E=I==null?null:typeof Symbol<"u"&&I[Symbol.iterator]||I["@@iterator"];if(E!=null){var C=[],$=!0,F=!1,M,g;try{for(E=E.call(I);!($=(M=E.next()).done)&&(C.push(M.value),!(_&&C.length===_));
75$=!0);}catch(h){F=!0,g=h}finally{try{!$&&E.return!=null&&E.return()}finally{if(F)throw g}}return C}}function d(I){if(Array.isArray(I))return I}function S(I,_){if(!(I instanceof _))throw new TypeError("Cannot call a class as a function")}function R(I,_){for(var E=0;E<_.length;E++){var C=_[E];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(I,C.key,C)}}function N(I,_,E){return E&&R(I,E),I}function B(I){return Math.floor(Math.max(0,Math.min(1,I))*255).toString(16).padStart(2,"0")}var A=(function(){function I(){S(this,I)}return N(I,null,[{key:"CMYK_G",value:function(E){var C=r(E,4),$=C[0],F=C[1],M=C[2],g=C[3];return["G",1-Math.min(1,.3*$+.59*M+.11*F+g)]}},{key:"G_CMYK",value:function(E){var C=r(E,1),$=C[0];return["CMYK",0,0,0,1-$]}},{key:"G_RGB",value:function(E){var C=r(E,1),$=C[0];return["RGB",$,$,$]}},{key:"G_HTML",value:function(E){var C=r(E,1),$=C[0],F=B($);return"#".concat(F).concat(F).concat(F)}},{key:"RGB_G",value:function(E){var C=r(E,3),$=C[0],F=C[1],M=C[2];return["G",.3*$+.59*F+.11*M]}},{key:"RGB_HTML",value:function(E){var C=r(E,3),$=C[0],F=C[1],M=C[2],g=B($),h=B(F),m=B(M);return"#".concat(g).concat(h).concat(m)}},{key:"T_HTML",value:function(){return"#00000000"}},{key:"CMYK_RGB",value:function(E){var C=r(E,4),$=C[0],F=C[1],M=C[2],g=C[3];return["RGB",1-Math.min(1,$+g),1-Math.min(1,M+g),1-Math.min(1,F+g)]}},{key:"CMYK_HTML",value:function(E){return this.RGB_HTML(this.CMYK_RGB(E))}},{key:"RGB_CMYK",value:function(E){var C=r(E,3),$=C[0],F=C[1],M=C[2],g=1-$,h=1-F,m=1-M,k=Math.min(g,h,m);return["CMYK",g,h,m,k]}}]),I})();i.ColorConverters=A}),((a,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.XfaLayer=void 0;var n=r(4),s=r(147);function l(C,$){return S(C)||d(C,$)||N(C,$)||f()}function f(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
76In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(C,$){var F=C==null?null:typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(F!=null){var M=[],g=!0,h=!1,m,k;try{for(F=F.call(C);!(g=(m=F.next()).done)&&(M.push(m.value),!($&&M.length===$));g=!0);}catch(T){h=!0,k=T}finally{try{!g&&F.return!=null&&F.return()}finally{if(h)throw k}}return M}}function S(C){if(Array.isArray(C))return C}function R(C,$){var F=typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(!F){if(Array.isArray(C)||(F=N(C))||$){F&&(C=F);var M=0,g=function(){};return{s:g,n:function(){return M>=C.length?{done:!0}:{done:!1,value:C[M++]}},e:function(w){throw w},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
77In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var h=!0,m=!1,k;return{s:function(){F=F.call(C)},n:function(){var w=F.next();return h=w.done,w},e:function(w){m=!0,k=w},f:function(){try{!h&&F.return!=null&&F.return()}finally{if(m)throw k}}}}function N(C,$){if(C){if(typeof C=="string")return B(C,$);var F=Object.prototype.toString.call(C).slice(8,-1);if(F==="Object"&&C.constructor&&(F=C.constructor.name),F==="Map"||F==="Set")return Array.from(C);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return B(C,$)}}function B(C,$){($==null||$>C.length)&&($=C.length);for(var F=0,M=new Array($);F<$;F++)M[F]=C[F];return M}function A(C,$){if(!(C instanceof $))throw new TypeError("Cannot call a class as a function")}function I(C,$){for(var F=0;F<$.length;F++){var M=$[F];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(C,M.key,M)}}function _(C,$,F){return F&&I(C,F),C}var E=(function(){function C(){A(this,C)}return _(C,null,[{key:"setupStorage",value:function(F,M,g,h,m){var k=h.getValue(M,{value:null});switch(g.name){case"textarea":if(k.value!==null&&(F.textContent=k.value),m==="print")break;F.addEventListener("input",function(z){h.setValue(M,{value:z.target.value})});break;case"input":if(g.attributes.type==="radio"||g.attributes.type==="checkbox"){if(k.value===g.attributes.xfaOn?F.setAttribute("checked",!0):k.value===g.attributes.xfaOff&&F.removeAttribute("checked"),m==="print")break;F.addEventListener("change",function(z){h.setValue(M,{value:z.target.checked?z.target.getAttribute("xfaOn"):z.target.getAttribute("xfaOff")})})}else{if(k.value!==null&&F.setAttribute("value",k.value),m==="print")break;F.addEventListener("input",function(z){h.setValue(M,{value:z.target.value})})}break;case"select":if(k.value!==null){var T=R(g.children),w;try{for(T.s();!(w=T.n()).done;){var D=w.value;D.attributes.value===k.value&&(D.attributes.selected=!0)}}catch(z){T.e(z)}finally{T.f()}}F.addEventListener("input",function(z){var J=z.target.options,K=J.selectedIndex===-1?"":J[J.selectedIndex].value;h.setValue(M,{value:K})});break}}},{key:"setAttributes",value:function(F){var M=F.html,g=F.element,h=F.storage,m=h===void 0?null:h,k=F.intent,T=F.linkService,w=g.attributes,D=M instanceof HTMLAnchorElement;w.type==="radio"&&(w.name="".concat(w.name,"-").concat(k));for(var z=0,J=Object.entries(w);z<J.length;z++){var K=l(J[z],2),te=K[0],le=K[1];if(!(le==null||te==="dataId"))if(te!=="style")if(te==="textContent")M.textContent=le;else if(te==="class")le.length&&M.setAttribute(te,le.join(" "));else{if(D&&(te==="href"||te==="newWindow"))continue;M.setAttribute(te,le)}else Object.assign(M.style,le)}if(D){var fe;T.addLinkAttributes||(0,n.warn)("XfaLayer.setAttribute - missing `addLinkAttributes`-method on the `linkService`-instance."),(fe=T.addLinkAttributes)===null||fe===void 0||fe.call(T,M,w.href,w.newWindow)}m&&w.dataId&&this.setupStorage(M,w.dataId,g,m)}},{key:"render",value:function(F){var M=F.annotationStorage,g=F.linkService,h=F.xfaHtml,m=F.intent||"display",k=document.createElement(h.name);h.attributes&&this.setAttributes({html:k,element:h,intent:m,linkService:g});var T=[[h,-1,k]],w=F.div;if(w.appendChild(k),F.viewport){var D="matrix(".concat(F.viewport.transform.join(","),")");w.style.transform=D}m!=="richText"&&w.setAttribute("class","xfaLayer xfaFont");for(var z=[];T.length>0;){var J,K=l(T[T.length-1],3),te=K[0],le=K[1],fe=K[2];if(le+1===te.children.length){T.pop();continue}var ve=te.children[++T[T.length-1][1]];if(ve!==null){var q=ve.name;if(q==="#text"){var Y=document.createTextNode(ve.value);z.push(Y),fe.appendChild(Y);continue}var U=void 0;if(ve!=null&&(J=ve.attributes)!==null&&J!==void 0&&J.xmlns?U=document.createElementNS(ve.attributes.xmlns,q):U=document.createElement(q),fe.appendChild(U),ve.attributes&&this.setAttributes({html:U,element:ve,storage:M,intent:m,linkService:g}),ve.children&&ve.children.length>0)T.push([ve,-1,U]);else if(ve.value){var p=document.createTextNode(ve.value);s.XfaText.shouldBuildText(q)&&z.push(p),U.appendChild(p)}}}var x=R(w.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea")),H;try{for(x.s();!(H=x.n()).done;){var ne=H.value;ne.setAttribute("readOnly",!0)}}catch(ae){x.e(ae)}finally{x.f()}return{textDivs:z}}},{key:"update",value:function(F){var M="matrix(".concat(F.viewport.transform.join(","),")");F.div.style.transform=M,F.div.hidden=!1}}]),C})();i.XfaLayer=E}),((a,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.renderTextLayer=k;var n=r(4);function s(T,w){if(!(T instanceof w))throw new TypeError("Cannot call a class as a function")}function l(T,w){for(var D=0;D<w.length;D++){var z=w[D];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(T,z.key,z)}}function f(T,w,D){return w&&l(T.prototype,w),T}function d(T,w){var D=typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];
77if(!D){if(Array.isArray(T)||(D=S(T))||w){D&&(T=D);var z=0,J=function(){};return{s:J,n:function(){return z>=T.length?{done:!0}:{done:!1,value:T[z++]}},e:function(ve){throw ve},f:J}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
78In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var K=!0,te=!1,le;return{s:function(){D=D.call(T)},n:function(){var ve=D.next();return K=ve.done,ve},e:function(ve){te=!0,le=ve},f:function(){try{!K&&D.return!=null&&D.return()}finally{if(te)throw le}}}}function S(T,w){if(T){if(typeof T=="string")return R(T,w);var D=Object.prototype.toString.call(T).slice(8,-1);if(D==="Object"&&T.constructor&&(D=T.constructor.name),D==="Map"||D==="Set")return Array.from(T);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return R(T,w)}}function R(T,w){(w==null||w>T.length)&&(w=T.length);for(var D=0,z=new Array(w);D<w;D++)z[D]=T[D];return z}var N=1e5,B=30,A=.8,I=new Map,_=/^\s+$/g;function E(T,w){var D=I.get(T);if(D)return D;w.save(),w.font="".concat(B,"px ").concat(T);var z=w.measureText(""),J=z.fontBoundingBoxAscent,K=Math.abs(z.fontBoundingBoxDescent);if(J){w.restore();var te=J/(J+K);return I.set(T,te),te}w.strokeStyle="red",w.clearRect(0,0,B,B),w.strokeText("g",0,0);var le=w.getImageData(0,0,B,B).data;K=0;for(var fe=le.length-1-3;fe>=0;fe-=4)if(le[fe]>0){K=Math.ceil(fe/4/B);break}w.clearRect(0,0,B,B),w.strokeText("A",0,B),le=w.getImageData(0,0,B,B).data,J=0;for(var ve=0,q=le.length;ve<q;ve+=4)if(le[ve]>0){J=B-Math.floor(ve/4/B);break}if(w.restore(),J){var Y=J/(J+K);return I.set(T,Y),Y}return I.set(T,A),A}function C(T,w,D,z){var J=document.createElement("span"),K=T._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:w.str!=="",hasEOL:w.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1}:{angle:0,canvasWidth:0,hasText:w.str!=="",hasEOL:w.hasEOL};T._textDivs.push(J);var te=n.Util.transform(T._viewport.transform,w.transform),le=Math.atan2(te[1],te[0]),fe=D[w.fontName];fe.vertical&&(le+=Math.PI/2);var ve=Math.hypot(te[2],te[3]),q=ve*E(fe.fontFamily,z),Y,U;le===0?(Y=te[4],U=te[5]-q):(Y=te[4]+q*Math.sin(le),U=te[5]-q*Math.cos(le)),J.style.left="".concat(Y,"px"),J.style.top="".concat(U,"px"),J.style.fontSize="".concat(ve,"px"),J.style.fontFamily=fe.fontFamily,J.setAttribute("role","presentation"),J.textContent=w.str,J.dir=w.dir,T._fontInspectorEnabled&&(J.dataset.fontName=w.fontName),le!==0&&(K.angle=le*(180/Math.PI));var p=!1;if(w.str.length>1||T._enhanceTextSelection&&_.test(w.str))p=!0;else if(w.str!==" "&&w.transform[0]!==w.transform[3]){var x=Math.abs(w.transform[0]),H=Math.abs(w.transform[3]);x!==H&&Math.max(x,H)/Math.min(x,H)>1.5&&(p=!0)}if(p&&(fe.vertical?K.canvasWidth=w.height*T._viewport.scale:K.canvasWidth=w.width*T._viewport.scale),T._textDivProperties.set(J,K),T._textContentStream&&T._layoutText(J),T._enhanceTextSelection&&K.hasText){var ne=1,ae=0;le!==0&&(ne=Math.cos(le),ae=Math.sin(le));var ie=(fe.vertical?w.height:w.width)*T._viewport.scale,xe=ve,Ue,qe;le!==0?(Ue=[ne,ae,-ae,ne,Y,U],qe=n.Util.getAxialAlignedBoundingBox([0,0,ie,xe],Ue)):qe=[Y,U,Y+ie,U+xe],T._bounds.push({left:qe[0],top:qe[1],right:qe[2],bottom:qe[3],div:J,size:[ie,xe],m:Ue})}}function $(T){if(!T._canceled){var w=T._textDivs,D=T._capability,z=w.length;if(z>N){T._renderingDone=!0,D.resolve();return}if(!T._textContentStream)for(var J=0;J<z;J++)T._layoutText(w[J]);T._renderingDone=!0,D.resolve()}}function F(T,w,D){for(var z=0,J=0;J<D;J++){var K=T[w++];K>0&&(z=z?Math.min(K,z):K)}return z}function M(T){for(var w=T._bounds,D=T._viewport,z=g(D.width,D.height,w),J=0;J<z.length;J++){var K=w[J].div,te=T._textDivProperties.get(K);if(te.angle===0){te.paddingLeft=w[J].left-z[J].left,te.paddingTop=w[J].top-z[J].top,te.paddingRight=z[J].right-w[J].right,te.paddingBottom=z[J].bottom-w[J].bottom,T._textDivProperties.set(K,te);continue}for(var le=z[J],fe=w[J],ve=fe.m,q=ve[0],Y=ve[1],U=[[0,0],[0,fe.size[1]],[fe.size[0],0],fe.size],p=new Float64Array(64),x=0,H=U.length;x<H;x++){var ne=n.Util.applyTransform(U[x],ve);p[x+0]=q&&(le.left-ne[0])/q,p[x+4]=Y&&(le.top-ne[1])/Y,p[x+8]=q&&(le.right-ne[0])/q,p[x+12]=Y&&(le.bottom-ne[1])/Y,p[x+16]=Y&&(le.left-ne[0])/-Y,p[x+20]=q&&(le.top-ne[1])/q,p[x+24]=Y&&(le.right-ne[0])/-Y,p[x+28]=q&&(le.bottom-ne[1])/q,p[x+32]=q&&(le.left-ne[0])/-q,p[x+36]=Y&&(le.top-ne[1])/-Y,p[x+40]=q&&(le.right-ne[0])/-q,p[x+44]=Y&&(le.bottom-ne[1])/-Y,p[x+48]=Y&&(le.left-ne[0])/Y,p[x+52]=q&&(le.top-ne[1])/-q,p[x+56]=Y&&(le.right-ne[0])/Y,p[x+60]=q&&(le.bottom-ne[1])/-q}var ae=1+Math.min(Math.abs(q),Math.abs(Y));
78te.paddingLeft=F(p,32,16)/ae,te.paddingTop=F(p,48,16)/ae,te.paddingRight=F(p,0,16)/ae,te.paddingBottom=F(p,16,16)/ae,T._textDivProperties.set(K,te)}}function g(T,w,D){var z=D.map(function(p,x){return{x1:p.left,y1:p.top,x2:p.right,y2:p.bottom,index:x,x1New:void 0,x2New:void 0}});h(T,z);var J=new Array(D.length),K=d(z),te;try{for(K.s();!(te=K.n()).done;){var le=te.value,fe=le.index;J[fe]={left:le.x1New,top:0,right:le.x2New,bottom:0}}}catch(p){K.e(p)}finally{K.f()}D.map(function(p,x){var H=J[x],ne=z[x];ne.x1=p.top,ne.y1=T-H.right,ne.x2=p.bottom,ne.y2=T-H.left,ne.index=x,ne.x1New=void 0,ne.x2New=void 0}),h(w,z);var ve=d(z),q;try{for(ve.s();!(q=ve.n()).done;){var Y=q.value,U=Y.index;J[U].top=Y.x1New,J[U].bottom=Y.x2New}}catch(p){ve.e(p)}finally{ve.f()}return J}function h(T,w){w.sort(function(Q,L){return Q.x1-L.x1||Q.index-L.index});var D={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},z=[{start:-1/0,end:1/0,boundary:D}],J=d(w),K;try{for(J.s();!(K=J.n()).done;){for(var te=K.value,le=0;le<z.length&&z[le].end<=te.y1;)le++;for(var fe=z.length-1;fe>=0&&z[fe].start>=te.y2;)fe--;var ve=void 0,q=void 0,Y=void 0,U=void 0,p=-1/0;for(Y=le;Y<=fe;Y++){ve=z[Y],q=ve.boundary;var x=void 0;q.x2>te.x1?x=q.index>te.index?q.x1New:te.x1:q.x2New===void 0?x=(q.x2+te.x1)/2:x=q.x2New,x>p&&(p=x)}for(te.x1New=p,Y=le;Y<=fe;Y++)ve=z[Y],q=ve.boundary,q.x2New===void 0?q.x2>te.x1?q.index>te.index&&(q.x2New=q.x2):q.x2New=p:q.x2New>p&&(q.x2New=Math.max(p,q.x2));var H=[],ne=null;for(Y=le;Y<=fe;Y++){ve=z[Y],q=ve.boundary;var ae=q.x2>te.x2?q:te;ne===ae?H[H.length-1].end=ve.end:(H.push({start:ve.start,end:ve.end,boundary:ae}),ne=ae)}for(z[le].start<te.y1&&(H[0].start=te.y1,H.unshift({start:z[le].start,end:te.y1,boundary:z[le].boundary})),te.y2<z[fe].end&&(H[H.length-1].end=te.y2,H.push({start:te.y2,end:z[fe].end,boundary:z[fe].boundary})),Y=le;Y<=fe;Y++)if(ve=z[Y],q=ve.boundary,q.x2New===void 0){var ie=!1;for(U=le-1;!ie&&U>=0&&z[U].start>=q.y1;U--)ie=z[U].boundary===q;for(U=fe+1;!ie&&U<z.length&&z[U].end<=q.y2;U++)ie=z[U].boundary===q;for(U=0;!ie&&U<H.length;U++)ie=H[U].boundary===q;ie||(q.x2New=p)}Array.prototype.splice.apply(z,[le,fe-le+1].concat(H))}}catch(Q){J.e(Q)}finally{J.f()}for(var xe=0,Ue=z;xe<Ue.length;xe++){var qe=Ue[xe],se=qe.boundary;se.x2New===void 0&&(se.x2New=Math.max(T,se.x2))}}var m=(function(){function T(w){var D,z=this,J=w.textContent,K=w.textContentStream,te=w.container,le=w.viewport,fe=w.textDivs,ve=w.textContentItemsStr,q=w.enhanceTextSelection;s(this,T),this._textContent=J,this._textContentStream=K,this._container=te,this._document=te.ownerDocument,this._viewport=le,this._textDivs=fe||[],this._textContentItemsStr=ve||[],this._enhanceTextSelection=!!q,this._fontInspectorEnabled=!!((D=globalThis.FontInspector)!==null&&D!==void 0&&D.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,n.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(function(){z._enhanceTextSelection||(z._textDivProperties=null),z._layoutTextCtx&&(z._layoutTextCtx.canvas.width=0,z._layoutTextCtx.canvas.height=0,z._layoutTextCtx=null)}).catch(function(){})}return f(T,[{key:"promise",get:function(){return this._capability.promise}},{key:"cancel",value:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new n.AbortException("TextLayer task cancelled.")).catch(function(){}),this._reader=null),this._renderTimer!==null&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}},{key:"_processItems",value:function(D,z){for(var J=0,K=D.length;J<K;J++){if(D[J].str===void 0){if(D[J].type==="beginMarkedContentProps"||D[J].type==="beginMarkedContent"){var te=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),D[J].id!==null&&this._container.setAttribute("id","".concat(D[J].id)),te.appendChild(this._container)}else D[J].type==="endMarkedContent"&&(this._container=this._container.parentNode);continue}this._textContentItemsStr.push(D[J].str),C(this,D[J],z,this._layoutTextCtx)}}},{key:"_layoutText",value:function(D){var z=this._textDivProperties.get(D),J="";if(z.canvasWidth!==0&&z.hasText){var K=D.style,te=K.fontSize,le=K.fontFamily;(te!==this._layoutTextLastFontSize||le!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font="".concat(te," ").concat(le),this._layoutTextLastFontSize=te,this._layoutTextLastFontFamily=le);var fe=this._layoutTextCtx.measureText(D.textContent),ve=fe.width;if(ve>0){var q=z.canvasWidth/ve;this._enhanceTextSelection&&(z.scale=q),J="scaleX(".concat(q,")")}}if(z.angle!==0&&(J="rotate(".concat(z.angle,"deg) ").concat(J)),J.length>0&&(this._enhanceTextSelection&&(z.originalTransform=J),D.style.transform=J),z.hasText&&this._container.appendChild(D),z.hasEOL){var Y=document.createElement("br");Y.setAttribute("role","presentation"),this._container.appendChild(Y)}}},{key:"_render",value:function(){var D=this,z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,J=(0,n.createPromiseCapability)(),K=Object.create(null),te=this._document.createElement("canvas");if(te.height=te.width=B,te.mozOpaque=!0,this._layoutTextCtx=te.getContext("2d",{alpha:!1}),this._textContent){var le=this._textContent.items,fe=this._textContent.styles;this._processItems(le,fe),J.resolve()}else if(this._textContentStream){var ve=function q(){D._reader.read().then(function(Y){var U=Y.value,p=Y.done;if(p){J.resolve();return}Object.assign(K,U.styles),D._processItems(U.items,K),q()},J.reject)};this._reader=this._textContentStream.getReader(),ve()}else throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');J.promise.then(function(){K=null,z?D._renderTimer=setTimeout(function(){$(D),D._renderTimer=null},z):$(D)},this._capability.reject)}},{key:"expandTextDivs",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!this._enhanceTextSelection||!this._renderingDone)){this._bounds!==null&&(M(this),this._bounds=null);for(var z=[],J=[],K=0,te=this._textDivs.length;K<te;K++){var le=this._textDivs[K],fe=this._textDivProperties.get(le);fe.hasText&&(D?(z.length=0,J.length=0,fe.originalTransform&&z.pu
78sh(fe.originalTransform),fe.paddingTop>0?(J.push("".concat(fe.paddingTop,"px")),z.push("translateY(".concat(-fe.paddingTop,"px)"))):J.push(0),fe.paddingRight>0?J.push("".concat(fe.paddingRight/fe.scale,"px")):J.push(0),fe.paddingBottom>0?J.push("".concat(fe.paddingBottom,"px")):J.push(0),fe.paddingLeft>0?(J.push("".concat(fe.paddingLeft/fe.scale,"px")),z.push("translateX(".concat(-fe.paddingLeft/fe.scale,"px)"))):J.push(0),le.style.padding=J.join(" "),z.length&&(le.style.transform=z.join(" "))):(le.style.padding=null,le.style.transform=fe.originalTransform))}}}}]),T})();function k(T){var w=new m({textContent:T.textContent,textContentStream:T.textContentStream,container:T.container,viewport:T.viewport,textDivs:T.textDivs,textContentItemsStr:T.textContentItemsStr,enhanceTextSelection:T.enhanceTextSelection});return w._render(T.timeout),w}}),((a,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.SVGGraphics=void 0;var n=r(4),s=r(1),l=r(6);function f(q){return R(q)||S(q)||E(q)||d()}function d(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
79In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S(q){if(typeof Symbol<"u"&&q[Symbol.iterator]!=null||q["@@iterator"]!=null)return Array.from(q)}function R(q){if(Array.isArray(q))return C(q)}function N(q,Y){return I(q)||A(q,Y)||E(q,Y)||B()}function B(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
80In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A(q,Y){var U=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(U!=null){var p=[],x=!0,H=!1,ne,ae;try{for(U=U.call(q);!(x=(ne=U.next()).done)&&(p.push(ne.value),!(Y&&p.length===Y));x=!0);}catch(ie){H=!0,ae=ie}finally{try{!x&&U.return!=null&&U.return()}finally{if(H)throw ae}}return p}}function I(q){if(Array.isArray(q))return q}function _(q,Y){var U=typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(!U){if(Array.isArray(q)||(U=E(q))||Y){U&&(q=U);var p=0,x=function(){};return{s:x,n:function(){return p>=q.length?{done:!0}:{done:!1,value:q[p++]}},e:function(xe){throw xe},f:x}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
81In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,ne=!1,ae;return{s:function(){U=U.call(q)},n:function(){var xe=U.next();return H=xe.done,xe},e:function(xe){ne=!0,ae=xe},f:function(){try{!H&&U.return!=null&&U.return()}finally{if(ne)throw ae}}}}function E(q,Y){if(q){if(typeof q=="string")return C(q,Y);var U=Object.prototype.toString.call(q).slice(8,-1);if(U==="Object"&&q.constructor&&(U=q.constructor.name),U==="Map"||U==="Set")return Array.from(q);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return C(q,Y)}}function C(q,Y){(Y==null||Y>q.length)&&(Y=q.length);for(var U=0,p=new Array(Y);U<Y;U++)p[U]=q[U];return p}function $(q,Y){for(var U=0;U<Y.length;U++){var p=Y[U];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(q,p.key,p)}}function F(q,Y,U){return Y&&$(q.prototype,Y),q}function M(q,Y){if(!(q instanceof Y))throw new TypeError("Cannot call a class as a function")}var g=function q(){M(this,q),(0,n.unreachable)("Not implemented: SVGGraphics")};i.SVGGraphics=g;{var h=function(Y){var U=[],p=[],x=_(Y),H;try{for(x.s();!(H=x.n()).done;){var ne=H.value;if(ne.fn==="save"){U.push({fnId:92,fn:"group",items:[]}),p.push(U),U=U[U.length-1].items;continue}ne.fn==="restore"?U=p.pop():U.push(ne)}}catch(ae){x.e(ae)}finally{x.f()}return U},m=function(Y){if(Number.isInteger(Y))return Y.toString();var U=Y.toFixed(10),p=U.length-1;if(U[p]!=="0")return U;do p--;while(U[p]==="0");return U.substring(0,U[p]==="."?p:p+1)},k=function(Y){if(Y[4]===0&&Y[5]===0){if(Y[1]===0&&Y[2]===0)return Y[0]===1&&Y[3]===1?"":"scale(".concat(m(Y[0])," ").concat(m(Y[3]),")");if(Y[0]===Y[3]&&Y[1]===-Y[2]){var U=Math.acos(Y[0])*180/Math.PI;return"rotate(".concat(m(U),")")}}else if(Y[0]===1&&Y[1]===0&&Y[2]===0&&Y[3]===1)return"translate(".concat(m(Y[4])," ").concat(m(Y[5]),")");return"matrix(".concat(m(Y[0])," ").concat(m(Y[1])," ").concat(m(Y[2])," ").concat(m(Y[3])," ").concat(m(Y[4])," ")+"".concat(m(Y[5]),")")},T={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},w="http://www.w3.org/XML/1998/namespace",D="http://www.w3.org/1999/xlink",z=["butt","round","square"],J=["miter","round","bevel"],K=(function(){for(var q=new Uint8Array([137,80,78,71,13,10,26,10]),Y=12,U=new Int32Array(256),p=0;p<256;p++){for(var x=p,H=0;H<8;H++)x&1?x=3988292384^x>>1&2147483647:x=x>>1&2147483647;U[p]=x}function ne(se,Q,L){for(var P=-1,V=Q;V<L;V++){var ee=(P^se[V])&255,oe=U[ee];P=P>>>8^oe}return P^-1}function ae(se,Q,L,P){var V=P,ee=Q.length;L[V]=ee>>24&255,L[V+1]=ee>>16&255,L[V+2]=ee>>8&255,L[V+3]=ee&255,V+=4,L[V]=se.charCodeAt(0)&255,L[V+1]=se.charCodeAt(1)&255,L[V+2]=se.charCodeAt(2)&25
815,L[V+3]=se.charCodeAt(3)&255,V+=4,L.set(Q,V),V+=Q.length;var oe=ne(L,P+4,V);L[V]=oe>>24&255,L[V+1]=oe>>16&255,L[V+2]=oe>>8&255,L[V+3]=oe&255}function ie(se,Q,L){for(var P=1,V=0,ee=Q;ee<L;++ee)P=(P+(se[ee]&255))%65521,V=(V+P)%65521;return V<<16|P}function xe(se){if(!l.isNodeJS)return Ue(se);try{var Q;parseInt(process.versions.node)>=8?Q=se:Q=Buffer.from(se);var L=require$$5.deflateSync(Q,{level:9});return L instanceof Uint8Array?L:new Uint8Array(L)}catch(P){(0,n.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+P)}return Ue(se)}function Ue(se){var Q=se.length,L=65535,P=Math.ceil(Q/L),V=new Uint8Array(2+Q+P*5+4),ee=0;V[ee++]=120,V[ee++]=156;for(var oe=0;Q>L;)V[ee++]=0,V[ee++]=255,V[ee++]=255,V[ee++]=0,V[ee++]=0,V.set(se.subarray(oe,oe+L),ee),ee+=L,oe+=L,Q-=L;V[ee++]=1,V[ee++]=Q&255,V[ee++]=Q>>8&255,V[ee++]=~Q&65535&255,V[ee++]=(~Q&65535)>>8&255,V.set(se.subarray(oe),ee),ee+=se.length-oe;var pe=ie(se,0,se.length);return V[ee++]=pe>>24&255,V[ee++]=pe>>16&255,V[ee++]=pe>>8&255,V[ee++]=pe&255,V}function qe(se,Q,L,P){var V=se.width,ee=se.height,oe,pe,Te,Oe=se.data;switch(Q){case n.ImageKind.GRAYSCALE_1BPP:pe=0,oe=1,Te=V+7>>3;break;case n.ImageKind.RGB_24BPP:pe=2,oe=8,Te=V*3;break;case n.ImageKind.RGBA_32BPP:pe=6,oe=8,Te=V*4;break;default:throw new Error("invalid format")}for(var Me=new Uint8Array((1+Te)*ee),Fe=0,ze=0,Ye=0;Ye<ee;++Ye)Me[Fe++]=0,Me.set(Oe.subarray(ze,ze+Te),Fe),ze+=Te,Fe+=Te;if(Q===n.ImageKind.GRAYSCALE_1BPP&&P){Fe=0;for(var Je=0;Je<ee;Je++){Fe++;for(var nt=0;nt<Te;nt++)Me[Fe++]^=255}}var tt=new Uint8Array([V>>24&255,V>>16&255,V>>8&255,V&255,ee>>24&255,ee>>16&255,ee>>8&255,ee&255,oe,pe,0,0,0]),ct=xe(Me),lt=q.length+Y*3+tt.length+ct.length,Ee=new Uint8Array(lt),Re=0;return Ee.set(q,Re),Re+=q.length,ae("IHDR",tt,Ee,Re),Re+=Y+tt.length,ae("IDATA",ct,Ee,Re),Re+=Y+ct.length,ae("IEND",new Uint8Array(0),Ee,Re),(0,n.createObjectURL)(Ee,"image/png",L)}return function(Q,L,P){var V=Q.kind===void 0?n.ImageKind.GRAYSCALE_1BPP:Q.kind;return qe(Q,V,L,P)}})(),te=(function(){function q(){M(this,q),this.fontSizeScale=1,this.fontWeight=T.fontWeight,this.fontSize=0,this.textMatrix=n.IDENTITY_MATRIX,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=n.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=T.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 F(q,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(U,p){this.x=U,this.y=p}}]),q})(),le=0,fe=0,ve=0;i.SVGGraphics=g=(function(){function q(Y,U){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;M(this,q),this.svgFactory=new s.DOMSVGFactory,this.current=new te,this.transformMatrix=n.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=Y,this.objs=U,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!p,this._operatorIdMapping=[];for(var x in n.OPS)this._operatorIdMapping[n.OPS[x]]=x}return F(q,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var U=this.current;this.extraStack.push(U),this.current=U.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(U){this.save(),this.executeOpTree(U),this.restore()}},{key:"loadDependencies",value:function(U){for(var p=this,x=U.fnArray,H=U.argsArray,ne=0,ae=x.length;ne<ae;ne++)if(x[ne]===n.OPS.dependency){var ie=_(H[ne]),xe;try{var Ue=function(){var se=xe.value,Q=se.startsWith("g_")?p.commonObjs:p.objs,L=new Promise(function(P){Q.get(se,P)});p.current.dependencies.push(L)};for(ie.s();!(xe=ie.n()).done;)Ue()}catch(qe){ie.e(qe)}finally{ie.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(U,p,x,H,ne,ae){var ie=[U,p,x,H,ne,ae];this.transformMatrix=n.Util.transform(this.transformMatrix,ie),this.tgrp=null}},{key:"getSVG",value:function(U,p){var x=this;this.viewport=p;var H=this._initialize(p);return this.loadDependencies(U).then(function(){return x.transformMatrix=n.IDENTITY_MATRIX,x.executeOpTree(x.convertOpList(U)),H})}},{key:"convertOpList",value:function(U){for(var p=this._operatorIdMapping,x=U.argsArray,H=U.fnArray,ne=[],ae=0,ie=H.length;ae<ie;ae++){var xe=H[ae];ne.push({fnId:xe,fn:p[xe],args:x[ae]})}return h(ne)}},{key:"executeOpTree",value:function(U){var p=_(U),x;try{for(p.s();!(x=p.n()).done;){var H=x.value,ne=H.fn,ae=H.fnId,ie=H.args;switch(ae|0){case n.OPS.beginText:this.beginText();break;case n.OPS.dependency:break;
vendor: 20,911 bytes, lines 81-82
81case n.OPS.setLeading:this.setLeading(ie);break;case n.OPS.setLeadingMoveText:this.setLeadingMoveText(ie[0],ie[1]);break;case n.OPS.setFont:this.setFont(ie);break;case n.OPS.showText:this.showText(ie[0]);break;case n.OPS.showSpacedText:this.showText(ie[0]);break;case n.OPS.endText:this.endText();break;case n.OPS.moveText:this.moveText(ie[0],ie[1]);break;case n.OPS.setCharSpacing:this.setCharSpacing(ie[0]);break;case n.OPS.setWordSpacing:this.setWordSpacing(ie[0]);break;case n.OPS.setHScale:this.setHScale(ie[0]);break;case n.OPS.setTextMatrix:this.setTextMatrix(ie[0],ie[1],ie[2],ie[3],ie[4],ie[5]);break;case n.OPS.setTextRise:this.setTextRise(ie[0]);break;case n.OPS.setTextRenderingMode:this.setTextRenderingMode(ie[0]);break;case n.OPS.setLineWidth:this.setLineWidth(ie[0]);break;case n.OPS.setLineJoin:this.setLineJoin(ie[0]);break;case n.OPS.setLineCap:this.setLineCap(ie[0]);break;case n.OPS.setMiterLimit:this.setMiterLimit(ie[0]);break;case n.OPS.setFillRGBColor:this.setFillRGBColor(ie[0],ie[1],ie[2]);break;case n.OPS.setStrokeRGBColor:this.setStrokeRGBColor(ie[0],ie[1],ie[2]);break;case n.OPS.setStrokeColorN:this.setStrokeColorN(ie);break;case n.OPS.setFillColorN:this.setFillColorN(ie);break;case n.OPS.shadingFill:this.shadingFill(ie[0]);break;case n.OPS.setDash:this.setDash(ie[0],ie[1]);break;case n.OPS.setRenderingIntent:this.setRenderingIntent(ie[0]);break;case n.OPS.setFlatness:this.setFlatness(ie[0]);break;case n.OPS.setGState:this.setGState(ie[0]);break;case n.OPS.fill:this.fill();break;case n.OPS.eoFill:this.eoFill();break;case n.OPS.stroke:this.stroke();break;case n.OPS.fillStroke:this.fillStroke();break;case n.OPS.eoFillStroke:this.eoFillStroke();break;case n.OPS.clip:this.clip("nonzero");break;case n.OPS.eoClip:this.clip("evenodd");break;case n.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case n.OPS.paintImageXObject:this.paintImageXObject(ie[0]);break;case n.OPS.paintInlineImageXObject:this.paintInlineImageXObject(ie[0]);break;case n.OPS.paintImageMaskXObject:this.paintImageMaskXObject(ie[0]);break;case n.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(ie[0],ie[1]);break;case n.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case n.OPS.closePath:this.closePath();break;case n.OPS.closeStroke:this.closeStroke();break;case n.OPS.closeFillStroke:this.closeFillStroke();break;case n.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case n.OPS.nextLine:this.nextLine();break;case n.OPS.transform:this.transform(ie[0],ie[1],ie[2],ie[3],ie[4],ie[5]);break;case n.OPS.constructPath:this.constructPath(ie[0],ie[1]);break;case n.OPS.endPath:this.endPath();break;case 92:this.group(H.items);break;default:(0,n.warn)("Unimplemented operator ".concat(ne));break}}}catch(xe){p.e(xe)}finally{p.f()}}},{key:"setWordSpacing",value:function(U){this.current.wordSpacing=U}},{key:"setCharSpacing",value:function(U){this.current.charSpacing=U}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(U,p,x,H,ne,ae){var ie=this.current;ie.textMatrix=ie.lineMatrix=[U,p,x,H,ne,ae],ie.textMatrixScale=Math.hypot(U,p),ie.x=ie.lineX=0,ie.y=ie.lineY=0,ie.xcoords=[],ie.ycoords=[],ie.tspan=this.svgFactory.createElement("svg:tspan"),ie.tspan.setAttributeNS(null,"font-family",ie.fontFamily),ie.tspan.setAttributeNS(null,"font-size","".concat(m(ie.fontSize),"px")),ie.tspan.setAttributeNS(null,"y",m(-ie.y)),ie.txtElement=this.svgFactory.createElement("svg:text"),ie.txtElement.appendChild(ie.tspan)}},{key:"beginText",value:function(){var U=this.current;U.x=U.lineX=0,U.y=U.lineY=0,U.textMatrix=n.IDENTITY_MATRIX,U.lineMatrix=n.IDENTITY_MATRIX,U.textMatrixScale=1,U.tspan=this.svgFactory.createElement("svg:tspan"),U.txtElement=this.svgFactory.createElement("svg:text"),U.txtgrp=this.svgFactory.createElement("svg:g"),U.xcoords=[],U.ycoords=[]}},{key:"moveText",value:function(U,p){var x=this.current;x.x=x.lineX+=U,x.y=x.lineY+=p,x.xcoords=[],x.ycoords=[],x.tspan=this.svgFactory.createElement("svg:tspan"),x.tspan.setAttributeNS(null,"font-family",x.fontFamily),x.tspan.setAttributeNS(null,"font-size","".concat(m(x.fontSize),"px")),x.tspan.setAttributeNS(null,"y",m(-x.y))}},{key:"showText",value:function(U){var p=this.current,x=p.font,H=p.fontSize;if(H!==0){var ne=p.fontSizeScale,ae=p.charSpacing,ie=p.wordSpacing,xe=p.fontDirection,Ue=p.textHScale*xe,qe=x.vertical,se=qe?1:-1,Q=x.defaultVMetrics,L=H*p.fontMatrix[0],P=0,V=_(U),ee;try{for(V.s();!(ee=V.n()).done;){var oe=ee.value;if(oe===null){P+=xe*ie;continue}else if((0,n.isNum)(oe)){P+=se*oe*H/1e3;continue}var pe=(oe.isSpace?ie:0)+ae,Te=oe.fontChar,Oe=void 0,Me=void 0,Fe=oe.width;if(qe){var ze=void 0,Ye=oe.vmetric||Q;ze=oe.vmetric?Ye[1]:Fe*.5,ze=-ze*L;var Je=Ye[2]*L;Fe=Ye?-Ye[0]:Fe,Oe=ze/ne,Me=(P+Je)/ne}else Oe=P/ne,Me=0;(oe.isInFont||x.missingFile)&&(p.xcoords.push(p.x+Oe),qe&&p.ycoords.push(-p.y+Me),p.tspan.textContent+=Te);var nt=void 0;qe?nt=Fe*L-pe*xe:nt=Fe*L+pe*xe,P+=nt}}catch(Ee){V.e(Ee)}finally{V.f()}p.tspan.setAttributeNS(null,"x",p.xcoords.map(m).join(" ")),qe?p.tspan.setAttributeNS(null,"y",p.ycoords.map(m).join(" ")):p.tspan.setAttributeNS(null,"y",m(-p.y)),qe?p.y-=P:p.x+=P*Ue,p.tspan.setAttributeNS(null,"font-family",p.fontFamily),p.tspan.setAttributeNS(null,"font-size","".concat(m(p.fontSize),"px")),p.fontStyle!==T.fontStyle&&p.tspan.setAttributeNS(null,"font-style",p.fontStyle),p.fontWeight!==T.fontWeight&&p.tspan.setAttributeNS(null,"font-weight",p.fontWeight);var tt=p.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;if(tt===n.TextRenderingMode.FILL||tt===n.TextRenderingMode.FILL_STROKE?(p.fillColor!==T.fillColor&&p.tspan.setAttributeNS(null,"fill",p.fillColor),p.fillAlpha<1&&p.tspan.setAttributeNS(null,"fill-opacity",p.fillAlpha)):p.textRenderingMode===n.TextRenderingMode.ADD_TO_PATH?p.tspan.setAttributeNS(null,"fill","transparent"):p.tspan.setAttributeNS(null,"fill","none"),tt===n.TextRenderingMode.STROKE||tt===n.TextRenderingMode.FILL_STROKE){var ct=1/(p.textMatrixScale||1);this._setStrokeAttributes(p.tspan,ct)}var lt=p.textMatrix;p.textRise!==0&&(lt=lt.slice(),lt[5]+=p.textRise),p.txtElement.setAttributeNS(null,"transform","".concat(k(lt)," scale(").concat(m(Ue),", -1)")),p.txtElement.setAttributeNS(w,"xml:space","preserve"),p.txtElement.appendChild(p.tspan),p.txtgrp.appendChild(p.txtElement),this._ensureTransformGroup().appendChild(p.txtElement)}}},{key:"setLeadingMoveText",value:function(U,p){this.setLeading(-p),this.moveText(U,p)}},{key:"addFontStyle",value:function(U){if(!U.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 p=(0,n.createObjectURL)(U.data,U.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(U.loadedName,'";')+" src: url(".concat(p,`); }
82`)}},{key:"setFont",value:function(U){var p=this.current,x=this.commonObjs.get(U[0]),H=U[1];p.font=x,this.embedFonts&&!x.missingFile&&!this.embeddedFonts[x.loadedName]&&(this.addFontStyle(x),this.embeddedFonts[x.loadedName]=x),p.fontMatrix=x.fontMatrix||n.FONT_IDENTITY_MATRIX;var ne="normal";x.black?ne="900":x.bold&&(ne="bold");var ae=x.italic?"italic":"normal";H<0?(H=-H,p.fontDirection=-1):p.fontDirection=1,p.fontSize=H,p.fontFamily=x.loadedName,p.fontWeight=ne,p.fontStyle=ae,p.tspan=this.svgFactory.createElement("svg:tspan"),p.tspan.setAttributeNS(null,"y",m(-p.y)),p.xcoords=[],p.ycoords=[]}},{key:"endText",value:function(){var U,p=this.current;p.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG&&(U=p.txtElement)!==null&&U!==void 0&&U.hasChildNodes()&&(p.element=p.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(U){U>0&&(this.current.lineWidth=U)}},{key:"setLineCap",value:function(U){this.current.lineCap=z[U]}},{key:"setLineJoin",value:function(U){this.current.lineJoin=J[U]}},{key:"setMiterLimit",value:function(U){this.current.miterLimit=U}},{key:"setStrokeAlpha",value:function(U){this.current.strokeAlpha=U}},{key:"setStrokeRGBColor",value:function(U,p,x){this.current.strokeColor=n.Util.makeHexColor(U,p,x)}},{key:"setFillAlpha",value:function(U){this.current.fillAlpha=U}},{key:"setFillRGBColor",value:function(U,p,x){this.current.fillColor=n.Util.makeHexColor(U,p,x),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(U){this.current.strokeColor=this._makeColorN_Pattern(U)}},{key:"setFillColorN",value:function(U){this.current.fillColor=this._makeColorN_Pattern(U)}},{key:"shadingFill",value:function(U){var p=this.viewport.width,x=this.viewport.height,H=n.Util.inverseTransform(this.transformMatrix),ne=n.Util.applyTransform([0,0],H),ae=n.Util.applyTransform([0,x],H),ie=n.Util.applyTransform([p,0],H),xe=n.Util.applyTransform([p,x],H),Ue=Math.min(ne[0],ae[0],ie[0],xe[0]),qe=Math.min(ne[1],ae[1],ie[1],xe[1]),se=Math.max(ne[0],ae[0],ie[0],xe[0]),Q=Math.max(ne[1],ae[1],ie[1],xe[1]),L=this.svgFactory.createElement("svg:rect");L.setAttributeNS(null,"x",Ue),L.setAttributeNS(null,"y",qe),L.setAttributeNS(null,"width",se-Ue),L.setAttributeNS(null,"height",Q-qe),L.setAttributeNS(null,"fill",this._makeShadingPattern(U)),this.current.fillAlpha<1&&L.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(L)}},{key:"_makeColorN_Pattern",value:function(U){return U[0]==="TilingPattern"?this._makeTilingPattern(U):this._makeShadingPattern(U)}},{key:"_makeTilingPattern",value:function(U){var p=U[1],x=U[2],H=U[3]||n.IDENTITY_MATRIX,ne=N(U[4],4),ae=ne[0],ie=ne[1],xe=ne[2],Ue=ne[3],qe=U[5],se=U[6],Q=U[7],L="shading".concat(ve++),P=n.Util.normalizeRect([].concat(f(n.Util.applyTransform([ae,ie],H)),f(n.Util.applyTransform([xe,Ue],H)))),V=N(P,4),ee=V[0],oe=V[1],pe=V[2],Te=V[3],Oe=n.Util.singularValueDecompose2dScale(H),Me=N(Oe,2),Fe=Me[0],ze=Me[1],Ye=qe*Fe,Je=se*ze,nt=this.svgFactory.createElement("svg:pattern");nt.setAttributeNS(null,"id",L),nt.setAttributeNS(null,"patternUnits","userSpaceOnUse"),nt.setAttributeNS(null,"width",Ye),nt.setAttributeNS(null,"height",Je),nt.setAttributeNS(null,"x","".concat(ee)),nt.setAttributeNS(null,"y","".concat(oe));var tt=this.svg,ct=this.transformMatrix,lt=this.current.fillColor,Ee=this.current.strokeColor,Re=this.svgFactory.create(pe-ee,Te-oe);if(this.svg=Re,this.transformMatrix=H,Q===2){var Z=n.Util.makeHexColor.apply(n.Util,f(p));this.current.fillColor=Z,this.current.strokeColor=Z}return this.executeOpTree(this.convertOpList(x)),this.svg=tt,this.transformMatrix=ct,this.current.fillColor=lt,this.current.strokeColor=Ee,nt.appendChild(Re.childNodes[0]),this.defs.appendChild(nt),"url(#".concat(L,")")}},{key:"_makeShadingPattern",value:function(U){switch(typeof U=="string"&&(U=this.objs.get(U)),U[0]){case"RadialAxial":var p="shading".concat(ve++),x=U[3],H;switch(U[1]){case"axial":var ne=U[4],ae=U[5];H=this.svgFactory.createElement("svg:linearGradient"),H.setAttributeNS(null,"id",p),H.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),H.setAttributeNS(null,"x1",ne[0]),H.setAttributeNS(null,"y1",ne[1]),H.setAttributeNS(null,"x2",ae[0]),H.setAttributeNS(null,"y2",ae[1]);break;case"radial":var ie=U[4],xe=U[5],Ue=U[6],qe=U[7];H=this.svgFactory.createElement("svg:radialGradient"),H.setAttributeNS(null,"id",p),H.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),H.setAttributeNS(null,"cx",xe[0]),H.setAttributeNS(null,"cy",xe[1]),H.setAttributeNS(null,"r",qe),H.setAttributeNS(null,"fx",ie[0]),H.setAttributeNS(null,"fy",ie[1]),H.setAttributeNS(null,"fr",Ue);break;default:throw new Error("Unknown RadialAxial type: ".concat(U[1]))}var se=_(x),Q;try{for(se.s();!(Q=se.n()).done;){var L=Q.value,P=this.svgFactory.createElement("svg:stop");P.setAttributeNS(null,"offset",L[0]),P.setAttributeNS(null,"stop-color",L[1]),H.appendChild(P)}}catch(V){se.e(V)}finally{se.f()}return this.defs.appendChild(H),"url(#".concat(p,")");case"Mesh":return(0,n.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(U[0]))}}},{key:"setDash",value:function(U,p){this.current.dashArray=U,this.current.dashPhase=p}},{key:"constructPath",value:function(U,p){var x=this.current,H=x.x,ne=x.y,ae=[],ie=0,xe=_(U),Ue;try{for(xe.s();!(Ue=xe.n()).done;){var qe=Ue.value;switch(qe|0){case n.OPS.rectangle:H=p[ie++],ne=p[ie++];var se=p[ie++],Q=p[ie++],L=H+se,P=ne+Q;ae.push("M",m(H),m(ne),"L",m(L),m(ne),"L",m(L),m(P),"L",m(H),m(P),"Z");break;case n.OPS.moveTo:H=p[ie++],ne=p[ie++],ae.push("M",m(H),m(ne));break;case n.OPS.lineTo:H=p[ie++],ne=p[ie++],ae.push("L",m(H),m(ne));break;case n.OPS.curveTo:H=p[ie+4],ne=p[ie+5],ae.push("C",m(p[ie]),m(p[ie+1]),m(p[ie+2]),m(p[ie+3]),m(H),m(ne)),ie+=6;break;case n.OPS.curveTo2:ae.push("C",m(H),m(ne),m(p[ie]),m(p[ie+1]),m(p[ie+2]),m(p[ie+3])),H=p[ie+2],ne=p[ie+3],ie+=4;break;case n.OPS.curveTo3:H=p[ie+2],ne=p[ie+3],ae.push("C",m(p[ie]),m(p[ie+1]),m(H),m(ne),m(H),m(ne)),ie+=4;break;case n.OPS.closePath:ae.push("Z");break}}}catch(V){xe.e(V)}finally{xe.f()}ae=ae.join(" "),x.path&&U.length>0&&U[0]!==n.OPS.rectangle&&U[0]!==n.OPS.moveTo?ae=x.path.getAttributeNS(null,"d")+ae:(x.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(x.path)),x.path.setAttributeNS(null,"d",ae),x.path.setAttributeNS(null,"fill","none"),x.element=x.path,x.setCurrentPoint(H,ne)}},{key:"endPath",value:function(){var U=this.current;if(U.path=null,!!this.pendingClip){if(!U.element){this.pendingClip=null;return}var p="clippath".concat(le++),x=this.svgFactory.createElement("svg:clipPath");x.setAttributeNS(null,"id",p),x.setAttributeNS(null,"transform",k(this.transformMatrix));var H=U.element.cloneNode(!0);if(this.pendingClip==="evenodd"?H.setAttributeNS(null,"clip-rule","evenodd"):H.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,x.appendChild(H),this.defs.appendChild(x),U.activeClipUrl){U.clipGroup=null;var ne=_(this.extraStack),ae;try{for(ne.s();!(ae=ne.n()).done;){var ie=ae.value;ie.clipGroup=null}}catch(xe){ne.e(xe)}finally{ne.f()}x.setAttributeNS(null,"clip-path",U.activeClipUrl)}U.activeClipUrl="url(#".concat(p,")"),this.tgrp=null}}},{key:"clip",value:function(U){this.pendingClip=U}},{key:"closePath",value:function(){var U=this.current;if(U.path){var p="".concat(U.path.getAttributeNS(null,"d"),"Z");U.path.setAttributeNS(null,"d",p)}}},{key:"setLeading",value:function(U){this.current.leading=-U}},{key:"setTextRise",value:function(U){this.current.textRise=U}},{key:"setTextRenderingMode",value:function(U){this.current.textRenderingMode=U}},{key:"setHScale",value:function(U){this.current.textHScale=U/100}},{key:"setRenderingIntent",value:function(U){}},{key:"setFlatness",value:function(U){}},{key:"setGState",value:function(U){var p=_(U),x;try{for(p.s();!(x=p.n()).done;){var H=N(x.value,2),ne=H[0],ae=H[1];switch(ne){case"LW":this.setLineWidth(ae);break;case"LC":this.setLineCap(ae);break;case"LJ":this.setLineJoin(ae);break;case"ML":this.setMiterLimit(ae);break;case"D":this.setDash(ae[0],ae[1]);break;case"RI":this.setRenderingIntent(ae);break;case"FL":this.setFlatness(ae);break;case"Font":this.setFont(ae);break;case"CA":this.setStrokeAlpha(ae);break;case"ca":this.setFillAlpha(ae);break;default:(0,n.warn)("Unimplemented graphic state operator ".concat(ne));break}}}catch(ie){p.e(ie)}finally{p.f()}}},{key:"fill",value:function(){var U=this.current;U.element&&(U.element.setAttributeNS(null,"fill",U.fillColor),U.element.setAttributeNS(null,"fill-opacity",U.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var U=this.current;U.element&&(this._setStrokeAttributes(U.element),U.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(U){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,x=this.current,H=x.dashArray;p!==1&&H.length>0&&(H=H.map(function(ne){return p*ne})),U.setAttributeNS(null,"stroke",x.strokeColor),U.setAttributeNS(null,"stroke-opacity",x.strokeAlpha),U.setAttributeNS(null,"stroke-miterlimit",m(x.miterLimit)),U.setAttributeNS(null,"stroke-linecap",x.lineCap),U.setAttributeNS(null,"stroke-linejoin",x.lineJoin),U.setAttributeNS(null,"stroke-width",m(p*x.lineWidth)+"px"),U.setAttributeNS(null,"stroke-dasharray",H.map(m).join(" ")),U.setAttributeNS(null,"stroke-dashoffset",m(p*x.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 U=this.svgFactory.createElement("svg:rect");U.setAttributeNS(null,"x","0"),U.setAttributeNS(null,"y","0"),U.setAttributeNS(null,"width","1px"),U.setAttributeNS(null,"height","1px"),U.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(U)}},{key:"paintImageXObject",value:function(U){var p=U.startsWith("g_")?this.commonObjs.get(U):this.objs.get(U);if(!p){(0,n.warn)("Dependent image with object ID ".concat(U," is not ready yet"));return}this.paintInlineImageXObject(p)}},{key:"paintInlineImageXObject",value:function(U,p){var x=U.width,H=U.height,ne=K(U,this.forceDataSchema,!!p),ae=this.svgFactory.createElement("svg:rect");ae.setAttributeNS(null,"x","0"),ae.setAttributeNS(null,"y","0"),ae.setAttributeNS(null,"width",m(x)),ae.setAttributeNS(null,"height",m(H)),this.current.element=ae,this.clip("nonzero");var ie=this.svgFactory.createElement("svg:image");ie.setAttributeNS(D,"xlink:href",ne),ie.setAttributeNS(null,"x","0"),ie.setAttributeNS(null,"y",m(-H)),ie.setAttributeNS(null,"width",m(x)+"px"),ie.setAttributeNS(null,"height",m(H)+"px"),ie.setAttributeNS(null,"transform","scale(".concat(m(1/x)," ").concat(m(-1/H),")")),p?p.appendChild(ie):this._ensureTransformGroup().appendChild(ie)}},{key:"paintImageMaskXObject",value:function(U){var p=this.current,x=U.width,H=U.height,ne=p.fillColor;p.maskId="mask".concat(fe++);var ae=this.svgFactory.createElement("svg:mask");ae.setAttributeNS(null,"id",p.maskId);var ie=this.svgFactory.createElement("svg:rect");ie.setAttributeNS(null,"x","0"),ie.setAttributeNS(null,"y","0"),ie.setAttributeNS(null,"width",m(x)),ie.setAttributeNS(null,"height",m(H)),ie.setAttributeNS(null,"fill",ne),ie.setAttributeNS(null,"mask","url(#".concat(p.maskId,")")),this.defs.appendChild(ae),this._ensureTransformGroup().appendChild(ie),this.paintInlineImageXObject(U,ae)}},{key:"paintFormXObjectBegin",value:function(U,p){if(Array.isArray(U)&&U.length===6&&this.transform(U[0],U[1],U[2],U[3],U[4],U[5]),p){var x=p[2]-p[0],H=p[3]-p[1],ne=this.svgFactory.createElement("svg:rect");ne.setAttributeNS(null,"x",p[0]),ne.setAttributeNS(null,"y",p[1]),ne.setAttributeNS(null,"width",m(x)),ne.setAttributeNS(null,"height",m(H)),this.current.element=ne,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(U){var p=this.svgFactory.create(U.width,U.height),x=this.svgFactory.createElement("svg:defs");p.appendChild(x),this.defs=x;var H=this.svgFactory.createElement("svg:g");return H.setAttributeNS(null,"transform",k(U.transform)),p.appendChild(H),this.svg=H,p}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var U=this.svgFactory.createElement("svg:g");U.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(U),this.current.clipGroup=U}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",k(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),q})()}}),((a,i,r)=>{function n(p){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(H){return typeof H}:n=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},n(p)}Object.defineProperty(i,"__esModule",{value:!0}),i.PDFNodeStream=void 0;var s=d(r(2)),l=r(4),f=r(154);function d(p){return p&&p.__esModule?p:{default:p}}function S(p,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(x&&x.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),x&&R(p,x)}
82function R(p,x){return R=Object.setPrototypeOf||function(ne,ae){return ne.__proto__=ae,ne},R(p,x)}function N(p){var x=I();return function(){var ne=_(p),ae;if(x){var ie=_(this).constructor;ae=Reflect.construct(ne,arguments,ie)}else ae=ne.apply(this,arguments);return B(this,ae)}}function B(p,x){if(x&&(n(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(p)}function A(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _(p){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)},_(p)}function E(p,x,H,ne,ae,ie,xe){try{var Ue=p[ie](xe),qe=Ue.value}catch(se){H(se);return}Ue.done?x(qe):Promise.resolve(qe).then(ne,ae)}function C(p){return function(){var x=this,H=arguments;return new Promise(function(ne,ae){var ie=p.apply(x,H);function xe(qe){E(ie,ne,ae,xe,Ue,"next",qe)}function Ue(qe){E(ie,ne,ae,xe,Ue,"throw",qe)}xe(void 0)})}}function $(p,x){var H=typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(!H){if(Array.isArray(p)||(H=F(p))||x){H&&(p=H);var ne=0,ae=function(){};return{s:ae,n:function(){return ne>=p.length?{done:!0}:{done:!1,value:p[ne++]}},e:function(se){throw se},f:ae}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
83In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ie=!0,xe=!1,Ue;return{s:function(){H=H.call(p)},n:function(){var se=H.next();return ie=se.done,se},e:function(se){xe=!0,Ue=se},f:function(){try{!ie&&H.return!=null&&H.return()}finally{if(xe)throw Ue}}}}function F(p,x){if(p){if(typeof p=="string")return M(p,x);var H=Object.prototype.toString.call(p).slice(8,-1);if(H==="Object"&&p.constructor&&(H=p.constructor.name),H==="Map"||H==="Set")return Array.from(p);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return M(p,x)}}function M(p,x){(x==null||x>p.length)&&(x=p.length);for(var H=0,ne=new Array(x);H<x;H++)ne[H]=p[H];return ne}function g(p,x){if(!(p instanceof x))throw new TypeError("Cannot call a class as a function")}function h(p,x){for(var H=0;H<x.length;H++){var ne=x[H];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(p,ne.key,ne)}}function m(p,x,H){return x&&h(p.prototype,x),p}var k=require$$5,T=require$$5,w=require$$5,D=require$$5,z=/^file:\/\/\/[a-zA-Z]:\//;function J(p){var x=D.parse(p);return x.protocol==="file:"||x.host?x:/^[a-z]:[/\\]/i.test(p)?D.parse("file:///".concat(p)):(x.host||(x.protocol="file:"),x)}var K=(function(){function p(x){g(this,p),this.source=x,this.url=J(x.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&x.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return m(p,[{key:"_progressiveDataLength",get:function(){var H,ne;return(H=(ne=this._fullRequestReader)===null||ne===void 0?void 0:ne._loaded)!==null&&H!==void 0?H:0}},{key:"getFullReader",value:function(){return(0,l.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new Y(this):new ve(this),this._fullRequestReader}},{key:"getRangeReader",value:function(H,ne){if(ne<=this._progressiveDataLength)return null;var ae=this.isFsUrl?new U(this,H,ne):new q(this,H,ne);return this._rangeRequestReaders.push(ae),ae}},{key:"cancelAllRequests",value:function(H){this._fullRequestReader&&this._fullRequestReader.cancel(H);var ne=$(this._rangeRequestReaders.slice(0)),ae;try{for(ne.s();!(ae=ne.n()).done;){var ie=ae.value;ie.cancel(H)}}catch(xe){ne.e(xe)}finally{ne.f()}}}]),p})();i.PDFNodeStream=K;var te=(function(){function p(x){g(this,p),this._url=x.url,this._done=!1,this._storedError=null,this.onProgress=null;var H=x.source;this._contentLength=H.length,this._loaded=0,this._filename=null,this._disableRange=H.disableRange||!1,this._rangeChunkSize=H.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!H.disableStream,this._isRangeSupported=!H.disableRange,this._readableStream=null,this._readCapability=(0,l.createPromiseCapability)(),this._headersCapability=(0,l.createPromiseCapability)()}return m(p,[{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 x=C(s.default.mark(function ne(){var ae,ie;return s.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,this._readCapability.promise;case 2:if(!this._done){Ue.next=4;break}return Ue.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){Ue.next=6;break}throw this._storedError;case 6:if(ae=this._readableStream.read(),ae!==null){Ue.next=10;break}return this._readCapability=(0,l.createPromiseCapability)(),Ue.abrupt("return",this.read());case 10:return this._loaded+=ae.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),ie=new Uint8Array(ae).buffer,Ue.abrupt("return",{value:ie,done:!1});case 14:case"end":return Ue.stop()}},ne,this)}));function H(){return x.apply(this,arguments)}return H})()},{key:"cancel",value:function(H){if(!this._readableStream){this._error(H);return}this._readableStream.destroy(H)}},{key:"_error",value:function(H){this._storedError=H,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(H){var ne=this;this._readableStream=H,H.on("readable",function(){ne._readCapability.resolve()}),H.on("end",function(){H.destroy(),ne._done=!0,ne._readCapability.resolve()}),H.on("error",function(ae){ne._error(ae)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new l.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}]),p})(),le=(function(){function p(x){g(this,p),this._url=x.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,l.createPromiseCapability)();var H=x.source;this._isStreamingSupported=!H.disableStream}return m(p,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(function(){var x=C(s.default.mark(function ne(){var ae,ie;return s.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,this._readCapability.promise;case 2:if(!this._done){Ue.next=4;break}return Ue.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){Ue.next=6;break}throw this._storedError;case 6:if(ae=this._readableStream.read(),ae!==null){Ue.next=10;break}return this._readCapability=(0,l.createPromiseCapability)(),Ue.abrupt("return",this.read());case 10:return this._loaded+=ae.length,this.onProgress&&this.onProgress({loaded:this._loaded}),ie=new Uint8Array(ae).buffer,Ue.abrupt("return",{value:ie,done:!1});case 14:case"end":return Ue.stop()}},ne,this)}));function H(){return x.apply(this,arguments)}return H})()},{key:"cancel",value:function(H){if(!this._readableStream){this._error(H);return}this._readableStream.destroy(H)}},{key:"_error",value:function(H){this._storedError=H,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(H){var ne=this;this._readableStream=H,H.on("readable",function(){ne._readCapability.resolve()}),H.on("end",function(){H.destroy(),ne._done=!0,ne._readCapability.resolve()}),H.on("error",function(ae){ne._error(ae)}),this._storedError&&this._readableStream.destroy(this._storedError)}}]),p})();function fe(p,x){return{protocol:p.protocol,auth:p.auth,host:p.hostname,port:p.port,path:p.path,method:"GET",headers:x}}var ve=(function(p){S(H,p);var x=N(H);function H(ne){var ae;g(this,H),ae=x.call(this,ne);var ie=function(Ue){if(Ue.statusCode===404){var qe=new l.MissingPDFException('Missing PDF "'.concat(ae._url,'".'));ae._storedError=qe,ae._headersCapability.reject(qe);return}ae._headersCapability.resolve(),ae._setReadableStream(Ue);var se=function(ee){return ae._readableStream.headers[ee.toLowerCase()]},Q=(0,f.validateRangeRequestCapabilities)({getResponseHeader:se,isHttp:ne.isHttp,rangeChunkSize:ae._rangeChunkSize,disableRange:ae._disableRange}),L=Q.allowRangeRequests,P=Q.suggestedLength;ae._isRangeSupported=L,ae._contentLength=P||ae._contentLength,ae._filename=(0,f.extractFilenameFromHeader)(se)};return ae._request=null,ae._url.protocol==="http:"?ae._request=T.request(fe(ae._url,ne.httpHeaders),ie):ae._request=w.request(fe(ae._url,ne.httpHeaders),ie),ae._request.on("error",function(xe){ae._storedError=xe,ae._headersCapability.reject(xe)}),ae._request.end(),ae}return H})(te),q=(function(p){S(H,p);var x=N(H);function H(ne,ae,ie){var xe;g(this,H),xe=x.call(this,ne),xe._httpHeaders={};for(var Ue in ne.httpHeaders){var qe=ne.httpHeaders[Ue];typeof qe>"u"||(xe._httpHeaders[Ue]=qe)}xe._httpHeaders.Range="bytes=".concat(ae,"-").concat(ie-1);var se=function(L){if(L.statusCode===404){var P=new l.MissingPDFException('Missing PDF "'.concat(xe._url,'".'));xe._storedError=P;return}xe._setReadableStream(L)};return xe._request=null,xe._url.protocol==="http:"?xe._request=T.request(fe(xe._url,xe._httpHeaders),se):xe._request=w.request(fe(xe._url,xe._httpHeaders),se),xe._request.on("error",function(Q){xe._storedError=Q}),xe._request.end(),xe}return H})(le),Y=(function(p){S(H,p);var x=N(H);function H(ne){var ae;g(this,H),ae=x.call(this,ne);var ie=decodeURIComponent(ae._url.path);return z.test(ae._url.href)&&(ie=ie.replace(/^\//,"")),k.lstat(ie,function(xe,Ue){if(xe){xe.code==="ENOENT"&&(xe=new l.MissingPDFException('Missing PDF "'.concat(ie,'".'))),ae._storedError=xe,ae._headersCapability.reject(xe);return}ae._contentLength=Ue.size,ae._setReadableStream(k.createReadStream(ie)),ae._headersCapability.resolve()}),ae}return H})(te),U=(function(p){S(H,p);var x=N(H);function H(ne,ae,ie){var xe;g(this,H),xe=x.call(this,ne);var Ue=decodeURIComponent(xe._url.path);return z.test(xe._url.href)&&(Ue=Ue.replace(/^\//,"")),xe._setReadableStream(k.createReadStream(Ue,{start:ae,end:ie-1})),xe}return H})(le)}),((a,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.createResponseStatusError=S,i.extractFilenameFromHeader=d,i.validateRangeRequestCapabilities=f,i.validateResponseStatus=R;var n=r(4),s=r(155),l=r(1);function f(N){var B=N.getResponseHeader,A=N.isHttp,I=N.rangeChunkSize,_=N.disableRange;(0,n.assert)(I>0,"Range chunk size must be larger than zero");var E={allowRangeRequests:!1,suggestedLength:void 0},C=parseInt(B("Content-Length"),10);if(!Number.isInteger(C)||(E.suggestedLength=C,C<=2*I)||_||!A||B("Accept-Ranges")!=="bytes")return E;var $=B("Content-Encoding")||"identity";return $!=="identity"||(E.allowRangeRequests=!0),E}
83function d(N){var B=N("Content-Disposition");if(B){var A=(0,s.getFilenameFromContentDispositionHeader)(B);if(A.includes("%"))try{A=decodeURIComponent(A)}catch{}if((0,l.isPdfFile)(A))return A}return null}function S(N,B){return N===404||N===0&&B.startsWith("file:")?new n.MissingPDFException('Missing PDF "'+B+'".'):new n.UnexpectedResponseException("Unexpected server response (".concat(N,') while retrieving PDF "').concat(B,'".'),N)}function R(N){return N===200||N===206}}),((a,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.getFilenameFromContentDispositionHeader=N;var n=r(4);function s(B,A){return R(B)||S(B,A)||f(B,A)||l()}function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
84In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(B,A){if(B){if(typeof B=="string")return d(B,A);var I=Object.prototype.toString.call(B).slice(8,-1);if(I==="Object"&&B.constructor&&(I=B.constructor.name),I==="Map"||I==="Set")return Array.from(B);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return d(B,A)}}function d(B,A){(A==null||A>B.length)&&(A=B.length);for(var I=0,_=new Array(A);I<A;I++)_[I]=B[I];return _}function S(B,A){var I=B==null?null:typeof Symbol<"u"&&B[Symbol.iterator]||B["@@iterator"];if(I!=null){var _=[],E=!0,C=!1,$,F;try{for(I=I.call(B);!(E=($=I.next()).done)&&(_.push($.value),!(A&&_.length===A));E=!0);}catch(M){C=!0,F=M}finally{try{!E&&I.return!=null&&I.return()}finally{if(C)throw F}}return _}}function R(B){if(Array.isArray(B))return B}function N(B){var A=!0,I=$("filename\\*","i").exec(B);if(I){I=I[1];var _=h(I);return _=unescape(_),_=m(_),_=k(_),M(_)}if(I=g(B),I){var E=k(I);return M(E)}if(I=$("filename","i").exec(B),I){I=I[1];var C=h(I);return C=k(C),M(C)}function $(T,w){return new RegExp("(?:^|;)\\s*"+T+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',w)}function F(T,w){if(T){if(!/^[\x00-\xFF]+$/.test(w))return w;try{var D=new TextDecoder(T,{fatal:!0}),z=(0,n.stringToBytes)(w);w=D.decode(z),A=!1}catch{if(/^utf-?8$/i.test(T))try{w=decodeURIComponent(escape(w)),A=!1}catch{}}}return w}function M(T){return A&&/[\x80-\xff]/.test(T)&&(T=F("utf-8",T),A&&(T=F("iso-8859-1",T))),T}function g(T){for(var w=[],D,z=$("filename\\*((?!0\\d)\\d+)(\\*?)","ig");(D=z.exec(T))!==null;){var J=D,K=s(J,4),te=K[1],le=K[2],fe=K[3];if(te=parseInt(te,10),te in w){if(te===0)break;continue}w[te]=[le,fe]}for(var ve=[],q=0;q<w.length&&q in w;++q){var Y=s(w[q],2),U=Y[0],p=Y[1];p=h(p),U&&(p=unescape(p),q===0&&(p=m(p))),ve.push(p)}return ve.join("")}function h(T){if(T.startsWith('"')){for(var w=T.slice(1).split('\\"'),D=0;D<w.length;++D){var z=w[D].indexOf('"');z!==-1&&(w[D]=w[D].slice(0,z),w.length=D+1),w[D]=w[D].replace(/\\(.)/g,"$1")}T=w.join('"')}return T}function m(T){var w=T.indexOf("'");if(w===-1)return T;var D=T.slice(0,w),z=T.slice(w+1),J=z.replace(/^[^']*'/,"");return F(D,J)}function k(T){return!T.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(T)?T:T.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(w,D,z,J){if(z==="q"||z==="Q")return J=J.replace(/_/g," "),J=J.replace(/=([0-9a-fA-F]{2})/g,function(K,te){return String.fromCharCode(parseInt(te,16))}),F(D,J);try{J=atob(J)}catch{}return F(D,J)})}return""}}),((a,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.PDFNetworkStream=void 0;var n=f(r(2)),s=r(4),l=r(154);function f(m){return m&&m.__esModule?m:{default:m}}function d(m,k,T,w,D,z,J){try{var K=m[z](J),te=K.value}catch(le){T(le);return}K.done?k(te):Promise.resolve(te).then(w,D)}function S(m){return function(){var k=this,T=arguments;return new Promise(function(w,D){var z=m.apply(k,T);function J(te){d(z,w,D,J,K,"next",te)}function K(te){d(z,w,D,J,K,"throw",te)}J(void 0)})}}function R(m,k){var T=typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(!T){if(Array.isArray(m)||(T=N(m))||k){T&&(m=T);var w=0,D=function(){};return{s:D,n:function(){return w>=m.length?{done:!0}:{done:!1,value:m[w++]}},e:function(le){throw le},f:D}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
85In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,J=!1,K;return{s:function(){T=T.call(m)},n:function(){var le=T.next();return z=le.done,le},e:function(le){J=!0,K=le},f:function(){try{!z&&T.return!=null&&T.return()}finally{if(J)throw K}}}}function N(m,k){if(m){if(typeof m=="string")return B(m,k);var T=Object.prototype.toString.call(m).slice(8,-1);
85if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(m);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return B(m,k)}}function B(m,k){(k==null||k>m.length)&&(k=m.length);for(var T=0,w=new Array(k);T<k;T++)w[T]=m[T];return w}function A(m,k){if(!(m instanceof k))throw new TypeError("Cannot call a class as a function")}function I(m,k){for(var T=0;T<k.length;T++){var w=k[T];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(m,w.key,w)}}function _(m,k,T){return k&&I(m.prototype,k),m}var E=200,C=206;function $(m){var k=m.response;if(typeof k!="string")return k;var T=(0,s.stringToBytes)(k);return T.buffer}var F=(function(){function m(k){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};A(this,m),this.url=k,this.isHttp=/^https?:/i.test(k),this.httpHeaders=this.isHttp&&T.httpHeaders||Object.create(null),this.withCredentials=T.withCredentials||!1,this.getXhr=T.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return _(m,[{key:"requestRange",value:function(T,w,D){var z={begin:T,end:w};for(var J in D)z[J]=D[J];return this.request(z)}},{key:"requestFull",value:function(T){return this.request(T)}},{key:"request",value:function(T){var w=this.getXhr(),D=this.currXhrId++,z=this.pendingRequests[D]={xhr:w};w.open("GET",this.url),w.withCredentials=this.withCredentials;for(var J in this.httpHeaders){var K=this.httpHeaders[J];typeof K>"u"||w.setRequestHeader(J,K)}return this.isHttp&&"begin"in T&&"end"in T?(w.setRequestHeader("Range","bytes=".concat(T.begin,"-").concat(T.end-1)),z.expectedStatus=C):z.expectedStatus=E,w.responseType="arraybuffer",T.onError&&(w.onerror=function(te){T.onError(w.status)}),w.onreadystatechange=this.onStateChange.bind(this,D),w.onprogress=this.onProgress.bind(this,D),z.onHeadersReceived=T.onHeadersReceived,z.onDone=T.onDone,z.onError=T.onError,z.onProgress=T.onProgress,w.send(null),D}},{key:"onProgress",value:function(T,w){var D,z=this.pendingRequests[T];z&&((D=z.onProgress)===null||D===void 0||D.call(z,w))}},{key:"onStateChange",value:function(T,w){var D=this.pendingRequests[T];if(D){var z=D.xhr;if(z.readyState>=2&&D.onHeadersReceived&&(D.onHeadersReceived(),delete D.onHeadersReceived),z.readyState===4&&T in this.pendingRequests){if(delete this.pendingRequests[T],z.status===0&&this.isHttp){var J;(J=D.onError)===null||J===void 0||J.call(D,z.status);return}var K=z.status||E,te=K===E&&D.expectedStatus===C;if(!te&&K!==D.expectedStatus){var le;(le=D.onError)===null||le===void 0||le.call(D,z.status);return}var fe=$(z);if(K===C){var ve=z.getResponseHeader("Content-Range"),q=/bytes (\d+)-(\d+)\/(\d+)/.exec(ve);D.onDone({begin:parseInt(q[1],10),chunk:fe})}else if(fe)D.onDone({begin:0,chunk:fe});else{var Y;(Y=D.onError)===null||Y===void 0||Y.call(D,z.status)}}}}},{key:"getRequestXhr",value:function(T){return this.pendingRequests[T].xhr}},{key:"isPendingRequest",value:function(T){return T in this.pendingRequests}},{key:"abortRequest",value:function(T){var w=this.pendingRequests[T].xhr;delete this.pendingRequests[T],w.abort()}}]),m})(),M=(function(){function m(k){A(this,m),this._source=k,this._manager=new F(k.url,{httpHeaders:k.httpHeaders,withCredentials:k.withCredentials}),this._rangeChunkSize=k.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return _(m,[{key:"_onRangeRequestReaderClosed",value:function(T){var w=this._rangeRequestReaders.indexOf(T);w>=0&&this._rangeRequestReaders.splice(w,1)}},{key:"getFullReader",value:function(){return(0,s.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new g(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(T,w){var D=new h(this._manager,T,w);return D.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(D),D}},{key:"cancelAllRequests",value:function(T){var w;(w=this._fullRequestReader)===null||w===void 0||w.cancel(T);var D=R(this._rangeRequestReaders.slice(0)),z;try{for(D.s();!(z=D.n()).done;){var J=z.value;J.cancel(T)}}catch(K){D.e(K)}finally{D.f()}}}]),m})();i.PDFNetworkStream=M;var g=(function(){function m(k,T){A(this,m),this._manager=k;var w={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=T.url,this._fullRequestId=k.requestFull(w),this._headersReceivedCapability=(0,s.createPromiseCapability)(),this._disableRange=T.disableRange||!1,this._contentLength=T.length,this._rangeChunkSize=T.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return _(m,[{key:"_onHeadersReceived",value:function(){var T=this._fullRequestId,w=this._manager.getRequestXhr(T),D=function(le){return w.getResponseHeader(le)},z=(0,l.validateRangeRequestCapabilities)({getResponseHeader:D,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),J=z.allowRangeRequests,K=z.suggestedLength;J&&(this._isRangeSupported=!0),this._contentLength=K||this._contentLength,this._filename=(0,l.extractFilenameFromHeader)(D),this._isRangeSupported&&this._manager.abortRequest
85(T),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(T){if(T)if(this._requests.length>0){var w=this._requests.shift();w.resolve({value:T.chunk,done:!1})}else this._cachedChunks.push(T.chunk);if(this._done=!0,!(this._cachedChunks.length>0)){var D=R(this._requests),z;try{for(D.s();!(z=D.n()).done;){var J=z.value;J.resolve({value:void 0,done:!0})}}catch(K){D.e(K)}finally{D.f()}this._requests.length=0}}},{key:"_onError",value:function(T){this._storedError=(0,l.createResponseStatusError)(T,this._url),this._headersReceivedCapability.reject(this._storedError);var w=R(this._requests),D;try{for(w.s();!(D=w.n()).done;){var z=D.value;z.reject(this._storedError)}}catch(J){w.e(J)}finally{w.f()}this._requests.length=0,this._cachedChunks.length=0}},{key:"_onProgress",value:function(T){var w;(w=this.onProgress)===null||w===void 0||w.call(this,{loaded:T.loaded,total:T.lengthComputable?T.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 k=S(n.default.mark(function w(){var D,z;return n.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(!this._storedError){K.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){K.next=5;break}return D=this._cachedChunks.shift(),K.abrupt("return",{value:D,done:!1});case 5:if(!this._done){K.next=7;break}return K.abrupt("return",{value:void 0,done:!0});case 7:return z=(0,s.createPromiseCapability)(),this._requests.push(z),K.abrupt("return",z.promise);case 10:case"end":return K.stop()}},w,this)}));function T(){return k.apply(this,arguments)}return T})()},{key:"cancel",value:function(T){this._done=!0,this._headersReceivedCapability.reject(T);var w=R(this._requests),D;try{for(w.s();!(D=w.n()).done;){var z=D.value;z.resolve({value:void 0,done:!0})}}catch(J){w.e(J)}finally{w.f()}this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}]),m})(),h=(function(){function m(k,T,w){A(this,m),this._manager=k;var D={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=k.url,this._requestId=k.requestRange(T,w,D),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}return _(m,[{key:"_close",value:function(){var T;(T=this.onClosed)===null||T===void 0||T.call(this,this)}},{key:"_onDone",value:function(T){var w=T.chunk;if(this._requests.length>0){var D=this._requests.shift();D.resolve({value:w,done:!1})}else this._queuedChunk=w;this._done=!0;var z=R(this._requests),J;try{for(z.s();!(J=z.n()).done;){var K=J.value;K.resolve({value:void 0,done:!0})}}catch(te){z.e(te)}finally{z.f()}this._requests.length=0,this._close()}},{key:"_onError",value:function(T){this._storedError=(0,l.createResponseStatusError)(T,this._url);var w=R(this._requests),D;try{for(w.s();!(D=w.n()).done;){var z=D.value;z.reject(this._storedError)}}catch(J){w.e(J)}finally{w.f()}this._requests.length=0,this._queuedChunk=null}},{key:"_onProgress",value:function(T){if(!this.isStreamingSupported){var w;(w=this.onProgress)===null||w===void 0||w.call(this,{loaded:T.loaded})}}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(function(){var k=S(n.default.mark(function w(){var D,z;return n.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(!this._storedError){K.next=2;break}throw this._storedError;case 2:if(this._queuedChunk===null){K.next=6;break}return D=this._queuedChunk,this._queuedChunk=null,K.abrupt("return",{value:D,done:!1});case 6:if(!this._done){K.next=8;break}return K.abrupt("return",{value:void 0,done:!0});case 8:return z=(0,s.createPromiseCapability)(),this._requests.push(z),K.abrupt("return",z.promise);case 11:case"end":return K.stop()}},w,this)}));function T(){return k.apply(this,arguments)}return T})()},{key:"cancel",value:function(T){this._done=!0;var w=R(this._requests),D;try{for(w.s();!(D=w.n()).done;){var z=D.value;z.resolve({value:void 0,done:!0})}}catch(J){w.e(J)}finally{w.f()}this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest
85(this._requestId),this._close()}}]),m})()}),((a,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.PDFFetchStream=void 0;var n=f(r(2)),s=r(4),l=r(154);function f(g){return g&&g.__esModule?g:{default:g}}function d(g,h,m,k,T,w,D){try{var z=g[w](D),J=z.value}catch(K){m(K);return}z.done?h(J):Promise.resolve(J).then(k,T)}function S(g){return function(){var h=this,m=arguments;return new Promise(function(k,T){var w=g.apply(h,m);function D(J){d(w,k,T,D,z,"next",J)}function z(J){d(w,k,T,D,z,"throw",J)}D(void 0)})}}function R(g,h){var m=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!m){if(Array.isArray(g)||(m=N(g))||h){m&&(g=m);var k=0,T=function(){};return{s:T,n:function(){return k>=g.length?{done:!0}:{done:!1,value:g[k++]}},e:function(K){throw K},f:T}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
86In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,D=!1,z;return{s:function(){m=m.call(g)},n:function(){var K=m.next();return w=K.done,K},e:function(K){D=!0,z=K},f:function(){try{!w&&m.return!=null&&m.return()}finally{if(D)throw z}}}}function N(g,h){if(g){if(typeof g=="string")return B(g,h);var m=Object.prototype.toString.call(g).slice(8,-1);if(m==="Object"&&g.constructor&&(m=g.constructor.name),m==="Map"||m==="Set")return Array.from(g);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return B(g,h)}}function B(g,h){(h==null||h>g.length)&&(h=g.length);for(var m=0,k=new Array(h);m<h;m++)k[m]=g[m];return k}function A(g,h){if(!(g instanceof h))throw new TypeError("Cannot call a class as a function")}function I(g,h){for(var m=0;m<h.length;m++){var k=h[m];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}function _(g,h,m){return h&&I(g.prototype,h),g}function E(g,h,m){return{method:"GET",headers:g,signal:m?.signal,mode:"cors",credentials:h?"include":"same-origin",redirect:"follow"}}function C(g){var h=new Headers;for(var m in g){var k=g[m];typeof k>"u"||h.append(m,k)}return h}var $=(function(){function g(h){A(this,g),this.source=h,this.isHttp=/^https?:/i.test(h.url),this.httpHeaders=this.isHttp&&h.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return _(g,[{key:"_progressiveDataLength",get:function(){var m,k;return(m=(k=this._fullRequestReader)===null||k===void 0?void 0:k._loaded)!==null&&m!==void 0?m:0}},{key:"getFullReader",value:function(){return(0,s.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new F(this),this._fullRequestReader}},{key:"getRangeReader",value:function(m,k){if(k<=this._progressiveDataLength)return null;var T=new M(this,m,k);return this._rangeRequestReaders.push(T),T}},{key:"cancelAllRequests",value:function(m){this._fullRequestReader&&this._fullRequestReader.cancel(m);var k=R(this._rangeRequestReaders.slice(0)),T;try{for(k.s();!(T=k.n()).done;){var w=T.value;w.cancel(m)}}catch(D){k.e(D)}finally{k.f()}}}]),g})();i.PDFFetchStream=$;var F=(function(){function g(h){var m=this;A(this,g),this._stream=h,this._reader=null,this._loaded=0,this._filename=null;var k=h.source;this._withCredentials=k.withCredentials||!1,this._contentLength=k.length,this._headersCapability=(0,s.createPromiseCapability)(),this._disableRange=k.disableRange||!1,this._rangeChunkSize=k.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),typeof AbortController<"u"&&(this._abortController=new AbortController),this._isStreamingSupported=!k.disableStream,this._isRangeSupported=!k.disableRange,this._headers=C(this._stream.httpHeaders);var T=k.url;fetch(T,E(this._headers,this._withCredentials,this._abortController)).then(function(w){if(!(0,l.validateResponseStatus)(w.status))throw(0,l.createResponseStatusError)(w.status,T);m._reader=w.body.getReader(),m._headersCapability.resolve();var D=function(le){return w.headers.get(le)},z=(0,l.validateRangeRequestCapabilities)({getResponseHeader:D,isHttp:m._stream.isHttp,rangeChunkSize:m._rangeChunkSize,disableRange:m._disableRange}),J=z.allowRangeRequests,K=z.suggestedLength;m._isRangeSupported=J,m._contentLength=K||m._contentLength,m._filename=(0,l.extractFilenameFromHeader)(D),!m._isStreamingSupported&&m._isRangeSupported&&m.cancel(new s.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return _(g,[{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 h=S(n.default.mark(function k(){var T,w,D,z;return n.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,this._headersCapability.promise;case 2:return K.next=4,this._reader.read();case 4:if(T=K.sent,w=T.value,D=T.done,!D){K.next=9;break}return K.abrupt("return",{value:w,done:D});case 9:return this._loaded+=w.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),z=new Uint8Array(w).buffer,K.abrupt("return",{value:z,done:!1});case 13:case"end":return K.stop()}},k,this)}));function m(){return h.apply(this,arguments)}return m})()},{key:"cancel",value:function(m){this._reader&&this._reader.cancel(m),this._abortController&&this._abortController.abort()}}]),g})(),M=(function(){function g(h,m,k){var T=this;A(this,g),this._stream=h,this._reader=null,this._loaded=0;var w=h.source;this._withCredentials=w.withCredentials||!1,this._readCapability=(0,s.createPromiseCapability)(),this._isStreamingSupported=!w.disableStream,typeof AbortController<"u"&&(this._abortController=new AbortController),this._headers=C(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(m,"-").concat(k-1));var D=w.url;fetch(D,E(this._headers,this._withCredentials,this._abortController)).then(function(z){if(!(0,l.validateResponseStatus)(z.status))throw(0,l.createResponseStatusError)(z.status,D);T._readCapability.resolve(),T._reader=z.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}return _(g,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(function(){var h=S(n.default.mark(function k(){var T,w,D,z;return n.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,this._readCapability.promise;case 2:return K.next=4,this._reader.read();case 4:if(T=K.sent,w=T.value,D=T.done,!D){K.next=9;break}return K.abrupt("return",{value:w,done:D});case 9:return this._loaded+=w.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),z=new Uint8Array(w).buffer,K.abrupt("return",{value:z,done:!1});case 13:case"end":return K.stop()}},k,this)}));function m(){return h.apply(this,arguments)}return m})()},{key:"cancel",value:function(m){this._reader&&this._reader.cancel(m),this._abortController&&this._abortController.abort()}}]),g})()})],__webpack_module_cache__={};function __w_pdfjs_require__(a){var i=__webpack_module_cache__[a];if(i!==void 0)return i.exports;var r=__webpack_module_cache__[a]={id:a,loaded:!1,exports:{}};
86return __webpack_modules__[a].call(r.exports,r,r.exports,__w_pdfjs_require__),r.loaded=!0,r.exports}__w_pdfjs_require__.nmd=a=>(a.paths=[],a.children||(a.children=[]),a);var __webpack_exports__={};return(()=>{var a=__webpack_exports__;Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"AnnotationLayer",{enumerable:!0,get:function(){return s.AnnotationLayer}}),Object.defineProperty(a,"AnnotationMode",{enumerable:!0,get:function(){return r.AnnotationMode}}),Object.defineProperty(a,"CMapCompressionType",{enumerable:!0,get:function(){return r.CMapCompressionType}}),Object.defineProperty(a,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(a,"InvalidPDFException",{enumerable:!0,get:function(){return r.InvalidPDFException}}),Object.defineProperty(a,"LinkTarget",{enumerable:!0,get:function(){return i.LinkTarget}}),Object.defineProperty(a,"LoopbackPort",{enumerable:!0,get:function(){return n.LoopbackPort}}),Object.defineProperty(a,"MissingPDFException",{enumerable:!0,get:function(){return r.MissingPDFException}}),Object.defineProperty(a,"OPS",{enumerable:!0,get:function(){return r.OPS}}),Object.defineProperty(a,"PDFDataRangeTransport",{enumerable:!0,get:function(){return n.PDFDataRangeTransport}}),Object.defineProperty(a,"PDFDateString",{enumerable:!0,get:function(){return i.PDFDateString}}),Object.defineProperty(a,"PDFWorker",{enumerable:!0,get:function(){return n.PDFWorker}}),Object.defineProperty(a,"PasswordResponses",{enumerable:!0,get:function(){return r.PasswordResponses}}),Object.defineProperty(a,"PermissionFlag",{enumerable:!0,get:function(){return r.PermissionFlag}}),Object.defineProperty(a,"PixelsPerInch",{enumerable:!0,get:function(){return i.PixelsPerInch}}),Object.defineProperty(a,"RenderingCancelledException",{enumerable:!0,get:function(){return i.RenderingCancelledException}}),Object.defineProperty(a,"SVGGraphics",{enumerable:!0,get:function(){return S.SVGGraphics}}),Object.defineProperty(a,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return r.UNSUPPORTED_FEATURES}}),Object.defineProperty(a,"UnexpectedResponseException",{enumerable:!0,get:function(){return r.UnexpectedResponseException}}),Object.defineProperty(a,"Util",{enumerable:!0,get:function(){return r.Util}}),Object.defineProperty(a,"VerbosityLevel",{enumerable:!0,get:function(){return r.VerbosityLevel}}),Object.defineProperty(a,"XfaLayer",{enumerable:!0,get:function(){return R.XfaLayer}}),Object.defineProperty(a,"addLinkAttributes",{enumerable:!0,get:function(){return i.addLinkAttributes}}),Object.defineProperty(a,"build",{enumerable:!0,get:function(){return n.build}}),Object.defineProperty(a,"createObjectURL",{enumerable:!0,get:function(){return r.createObjectURL}}),Object.defineProperty(a,"createPromiseCapability",{enumerable:!0,get:function(){return r.createPromiseCapability}}),Object.defineProperty(a,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return r.createValidAbsoluteUrl}}),Object.defineProperty(a,"getDocument",{enumerable:!0,get:function(){return n.getDocument}}),Object.defineProperty(a,"getFilenameFromUrl",{enumerable:!0,get:function(){return i.getFilenameFromUrl}}),Object.defineProperty(a,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return i.getPdfFilenameFromUrl}}),Object.defineProperty(a,"getXfaPageViewport",{enumerable:!0,get:function(){return i.getXfaPageViewport}}),Object.defineProperty(a,"isPdfFile",{enumerable:!0,get:function(){return i.isPdfFile}}),Object.defineProperty(a,"loadScript",{enumerable:!0,get:function(){return i.loadScript}}),Object.defineProperty(a,"removeNullCharacters",{enumerable:!0,get:function(){return r.removeNullCharacters}}),Object.defineProperty(a,"renderTextLayer",{enumerable:!0,get:function(){return d.renderTextLayer}}),Object.defineProperty(a,"shadow",{enumerable:!0,get:function(){return r.shadow}}),Object.defineProperty(a,"version",{enumerable:!0,get:function(){return n.version}});var i=__w_pdfjs_require__(1),r=__w_pdfjs_require__(4),n=__w_pdfjs_require__(136),s=__w_pdfjs_require__(148),l=__w_pdfjs_require__(142),f=__w_pdfjs_require__(6),d=__w_pdfjs_require__(151),S=__w_pdfjs_require__(152),R=__w_pdfjs_require__(150);if(f.isNodeJS){var N=__w_pdfjs_require__(153),B=N.PDFNodeStream;(0,n.setPDFNetworkStreamFactory)(function(C){return new B(C)})}else{var A=__w_pdfjs_require__(156),I=A.PDFNetworkStream,_=__w_pdfjs_require__(157),E=_.PDFFetchStream;(0,n.setPDFNetworkStreamFactory)(function(C){return(0,i.isValidFetchUrl)(C.url)?new E(C):new I(C)})}})(),__webpack_exports__})()})})(pdf$1)),pdf$1.exports}var pdfExports=requirePdf();function mergeClassNames(){return Array.prototype.slice.call(arguments).reduce(function(a,i){return a.concat(i)}
86,[]).filter(function(a){return typeof a=="string"}).join(" ")}const DocumentContext=reactExports.createContext(null);function Message(a){var i=a.children,r=a.type;return v.createElement("div",{className:"react-pdf__message react-pdf__message--".concat(r)},i)}Message.propTypes={children:PropTypes.node,type:PropTypes.oneOf(["error","loading","no-data"]).isRequired};var DEFAULT_LINK_REL="noopener noreferrer nofollow",LinkService=(function(){function a(){_classCallCheck$1(this,a),this.externalLinkTarget=null,this.externalLinkRel=null}return _createClass$1(a,[{key:"setDocument",value:function(r){this.pdfDocument=r}},{key:"setViewer",value:function(r){this.pdfViewer=r}},{key:"setExternalLinkRel",value:function(r){this.externalLinkRel=r}},{key:"setExternalLinkTarget",value:function(r){this.externalLinkTarget=r}},{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(r){this.pdfViewer.currentPageNumber=r}},{key:"rotation",get:function(){return 0},set:function(r){}},{key:"goToDestination",value:function(r){var n=this;new Promise(function(s){typeof r=="string"?n.pdfDocument.getDestination(r).then(s):Array.isArray(r)?s(r):r.then(s)}).then(function(s){invariant(Array.isArray(s));var l=s[0];new Promise(function(f){l instanceof Object?n.pdfDocument.getPageIndex(l).then(function(d){f(d)}).catch(function(){invariant(!1)}):typeof l=="number"?f(l):invariant(!1)}).then(function(f){var d=f+1;invariant(d>=1&&d<=n.pagesCount),n.pdfViewer.scrollPageIntoView({dest:r,pageIndex:f,pageNumber:d})})})}},{key:"navigateTo",value:function(r){this.goToDestination(r)}},{key:"goToPage",value:function(){}},{key:"addLinkAttributes",value:function(r,n,s){r.href=n,r.rel=this.externalLinkRel||DEFAULT_LINK_REL,r.target=s?"_blank":this.externalLinkTarget||""}},{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}}]),a})(),PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},isBrowser=typeof window<"u";function isDefined(a){return typeof a<"u"}function isProvided(a){return isDefined(a)&&a!==null}function isString(a){return typeof a=="string"}function isArrayBuffer(a){return a instanceof ArrayBuffer}function isBlob(a){return invariant(isBrowser),a instanceof Blob}function isFile$1(a){return invariant(isBrowser),a instanceof File}function isDataURI(a){return isString(a)&&/^data:/.test(a)}function dataURItoByteString(a){invariant(isDataURI(a));var i=a.split(","),r=_slicedToArray(i,2),n=r[0],s=r[1],l=n.split(";");return l.indexOf("base64")!==-1?atob(s):unescape(s)}function getPixelRatio(){return isBrowser&&window.devicePixelRatio||1}function cancelRunningTask(a){a&&a.cancel&&a.cancel()}function makePageCallback(a,i){return Object.defineProperty(a,"width",{get:function(){return this.view[2]*i},configurable:!0}),Object.defineProperty(a,"height",{get:function(){return this.view[3]*i},configurable:!0}),Object.defineProperty(a,"originalWidth",{get:function(){return this.view[2]},configurable:!0}),Object.defineProperty(a,"originalHeight",{get:function(){return this.view[3]},configurable:!0}),a}function isCancelException(a){return a.name==="RenderingCancelledException"}function loadFromFile(a){return new Promise(function(i,r){var n=new FileReader;return n.onload=function(){return i(new Uint8Array(n.result))},n.onerror=function(s){switch(s.target.error.code){case s.target.error.NOT_FOUND_ERR:return r(new Error("Error while reading a file: File not found."));case s.target.error.NOT_READABLE_ERR:return r(new Error("Error while reading a file: File not readable."));case s.target.error.SECURITY_ERR:return r(new Error("Error while reading a file: Security error."));case s.target.error.ABORT_ERR:return r(new Error("Error while reading a file: Aborted."));default:return r(new Error("Error while reading a file."))}},n.readAsArrayBuffer(a),null})}var eventProps=(function(){var a={};return[].concat(_toConsumableArray$1(mouseEvents),_toConsumableArray$1(touchEvents),_toConsumableArray$1(keyboardEvents)).forEac
86h(function(i){a[i]=PropTypes.func}),a})(),fileTypes=[PropTypes.string,PropTypes.instanceOf(ArrayBuffer),PropTypes.shape({data:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),httpHeaders:PropTypes.object,range:PropTypes.object,url:PropTypes.string,withCredentials:PropTypes.bool})];typeof File<"u"&&fileTypes.push(PropTypes.instanceOf(File));typeof Blob<"u"&&fileTypes.push(PropTypes.instanceOf(Blob));var isClassName=PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string)]),isFile=PropTypes.oneOfType(fileTypes),isLinkService=PropTypes.instanceOf(LinkService);PropTypes.oneOf(["_self","_blank","_parent","_top"]);var isPage=PropTypes.shape({_transport:PropTypes.shape({fontLoader:PropTypes.object.isRequired}).isRequired,commonObjs:PropTypes.shape({_objs:PropTypes.object.isRequired}).isRequired,getAnnotations:PropTypes.func.isRequired,getTextContent:PropTypes.func.isRequired,getViewport:PropTypes.func.isRequired,render:PropTypes.func.isRequired}),isPageIndex=function a(i,r,n){var s=i[r],l=i.pageNumber,f=i.pdf;if(!isDefined(f))return null;if(isDefined(s)){if(typeof s!="number")return new Error("`".concat(r,"` of type `").concat(_typeof(s),"` supplied to `").concat(n,"`, expected `number`."));if(s<0)return new Error("Expected `".concat(r,"` to be greater or equal to 0."));var d=f.numPages;if(s+1>d)return new Error("Expected `".concat(r,"` to be less or equal to ").concat(d-1,"."))}else if(!isDefined(l))return new Error("`".concat(r,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(n,"`."));return null},isPageNumber=function a(i,r,n){var s=i[r],l=i.pageIndex,f=i.pdf;if(!isDefined(f))return null;if(isDefined(s)){if(typeof s!="number")return new Error("`".concat(r,"` of type `").concat(_typeof(s),"` supplied to `").concat(n,"`, expected `number`."));if(s<1)return new Error("Expected `".concat(r,"` to be greater or equal to 1."));var d=f.numPages;if(s>d)return new Error("Expected `".concat(r,"` to be less or equal to ").concat(d,"."))}else if(!isDefined(l))return new Error("`".concat(r,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(n,"`."));return null},isPdf=PropTypes.oneOfType([PropTypes.shape({getDestination:PropTypes.func.isRequired,getOutline:PropTypes.func.isRequired,getPage:PropTypes.func.isRequired,numPages:PropTypes.number.isRequired}),PropTypes.bool]),isRef=PropTypes.oneOfType([PropTypes.func,PropTypes.shape({current:PropTypes.any})]),isRenderMode=PropTypes.oneOf(["canvas","none","svg"]),isRotate=PropTypes.oneOf([0,90,180,270]),_excluded=["url"];function ownKeys$2(a,i){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);i&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,n)}return r}function _objectSpread$2(a){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$2(Object(r),!0).forEach(function(n){_defineProperty(a,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):ownKeys$2(Object(r)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(r,n))})}return a}function _createSuper$6(a){var i=_isNativeReflectConstruct$6();return function(){var n=_getPrototypeOf$1(a),s;if(i){var l=_getPrototypeOf$1(this).constructor;s=Reflect.construct(n,arguments,l)}else s=n.apply(this,arguments);return _possibleConstructorReturn$1(this,s)}}function _isNativeReflectConstruct$6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var PDFDataRangeTransport=pdfExports.PDFDataRangeTransport,Document=(function(a){_inherits$1(r,a);var i=_createSuper$6(r);function r(){var n;_classCallCheck$1(this,r);for(var s=arguments.length,l=new Array(s),f=0;f<s;f++)l[f]=arguments[f];return n=i.call.apply(i,[this].concat(l)),_defineProperty(_assertThisInitialized$2(n),"state",{pdf:null}),_defineProperty(_assertThisInitialized$2(n),"viewer",{scrollPageIntoView:function(S){var R=S.dest,N=S.pageIndex,B=S.pageNumber,A=n.props.onItemClick;if(A){A({dest:R,pageIndex:N,pageNumber:B});return}var I=n.pages[N];if(I){I.scrollIntoView();return}}}),_defineProperty(_assertThisInitialized$2(n),"linkService",new LinkService),_defineProperty(_assertThisInitialized$2(n),"loadDocument",function(){cancelRunningTask(n.runningTask),n.loadingTask&&n.loadingTask.destroy();var d=makeCancellablePromise(n.findDocumentSource());n.runningTask=d,d.promise.then(function(S){if(n.onSourceSuccess(),!!S){n.setState(function(_){return _.pdf?{pdf:null}:null});var R=n.props,N=R.options,B=R.onLoadProgress,A=R.onPassword;n.loadingTask=pdfExports.getDocument(_objectSpread$2(_objectSpread$2({},S),N)),n.loadingTask.onPassword=A,B&&(n.loadingTask.onProgress=B);var I=makeCancellablePromise(n.loadingTask.promise);n.runningTask=I,I.promise.then(function(_){n.setState(function(E){return E.pdf&&E.pdf.fingerprint===_.fingerprint?null:{pdf:_}},n.onLoadSuccess)}).catch(function(_){n.onLoadError(_)})}}).catch(function(S){n.onSourceError(S)})}),_defineProperty(_assertThisInitialized$2(n),"setupLinkService",function(){var d=n.props,S=d.externalLinkRel,R=d.externalLinkTarget;n.linkService.setViewer(n.viewer),n.linkService.setExternalLinkRel(S),n.linkService.setExternalLinkTarget(R)}),_defineProperty(_assertThisInitialized$2(n),"onSourceSuccess",function(){var d=n.props.onSourceSuccess;d&&d()}),_defineProperty(_assertThisInitialized$2(n),"onSourceError",function(d){var S=n.props.onSourceError;S&&S(d)}),_defineProperty(_assertThisInitialized$2(n),"onLoadSuccess",function(){var d=n.props.onLoadSuccess,S=n.state.pdf;d&&d(S),n.pages=new Array(S.numPages),n.linkService.setDocument(S)}),_defineProperty(_assertThisInitialized$2(n),"onLoadError",function(d){n.setState({pdf:!1});var S=n.props.onLoadError;S&&S(d)}),_defineProperty(_assertThisInitialized$2(n),"findDocumentSource",function(){return new Promise(function(d){var S=n.props.file;if(S||d(null),typeof S=="string"){if(isDataURI(S)){var R=dataURItoByteString(S);d({data:R})}d({url:S})}if(S instanceof PDFDataRangeTransport&&d({range:S}),isArrayBuffer(S)&&d({data:S}
86),isBrowser&&(isBlob(S)||isFile$1(S))){loadFromFile(S).then(function(I){d({data:I})});return}if(invariant(_typeof(S)==="object"),invariant(S.url||S.data||S.range),typeof S.url=="string"&&isDataURI(S.url)){var N=S.url,B=_objectWithoutProperties(S,_excluded),A=dataURItoByteString(N);d(_objectSpread$2({data:A},B))}d(S)})}),_defineProperty(_assertThisInitialized$2(n),"registerPage",function(d,S){n.pages[d]=S}),_defineProperty(_assertThisInitialized$2(n),"unregisterPage",function(d){delete n.pages[d]}),n}return _createClass$1(r,[{key:"componentDidMount",value:function(){this.loadDocument(),this.setupLinkService()}},{key:"componentDidUpdate",value:function(s){var l=this.props.file;l!==s.file&&this.loadDocument()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask),this.loadingTask&&this.loadingTask.destroy()}},{key:"childContext",get:function(){var s=this.linkService,l=this.registerPage,f=this.unregisterPage,d=this.props,S=d.imageResourcesPath,R=d.renderMode,N=d.rotate,B=this.state.pdf;return{imageResourcesPath:S,linkService:s,pdf:B,registerPage:l,renderMode:R,rotate:N,unregisterPage:f}}},{key:"eventProps",get:function(){var s=this;return makeEventProps(this.props,function(){return s.state.pdf})}},{key:"renderChildren",value:function(){var s=this.props.children;return v.createElement(DocumentContext.Provider,{value:this.childContext},s)}},{key:"renderContent",value:function(){var s=this.props.file,l=this.state.pdf;if(!s){var f=this.props.noData;return v.createElement(Message,{type:"no-data"},typeof f=="function"?f():f)}if(l===null){var d=this.props.loading;return v.createElement(Message,{type:"loading"},typeof d=="function"?d():d)}if(l===!1){var S=this.props.error;return v.createElement(Message,{type:"error"},typeof S=="function"?S():S)}return this.renderChildren()}},{key:"render",value:function(){var s=this.props,l=s.className,f=s.inputRef;return v.createElement("div",_extends$2({className:mergeClassNames("react-pdf__Document",l),ref:f},this.eventProps),this.renderContent())}}]),r})(reactExports.PureComponent);Document.defaultProps={error:"Failed to load PDF file.",loading:"Loading PDF…",noData:"No PDF file specified.",onPassword:function a(i,r){switch(r){case PasswordResponses.NEED_PASSWORD:{var n=prompt("Enter the password to open this PDF file.");i(n);break}case PasswordResponses.INCORRECT_PASSWORD:{var s=prompt("Invalid password. Please try again.");i(s);break}}}};var isFunctionOrNode$1=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);Document.propTypes=_objectSpread$2(_objectSpread$2({},eventProps),{},{children:PropTypes.node,className:isClassName,error:isFunctionOrNode$1,externalLinkRel:PropTypes.string,externalLinkTarget:PropTypes.string,file:isFile,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode$1,noData:isFunctionOrNode$1,onItemClick:PropTypes.func,onLoadError:PropTypes.func,onLoadProgress:PropTypes.func,onLoadSuccess:PropTypes.func,onPassword:PropTypes.func,onSourceError:PropTypes.func,onSourceSuccess:PropTypes.func,rotate:PropTypes.number});var isDestination=PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.any)]);PropTypes.shape({dest:isDestination,items:PropTypes.arrayOf(PropTypes.shape({dest:isDestination,title:PropTypes.string})),title:PropTypes.string}).isRequired,PropTypes.func,isPdf.isRequired;function ownKeys$1(a,i){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);i&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,n)}return r}function _objectSpread$1(a){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$1(Object(r),!0).forEach(function(n){_defineProperty(a,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):ownKeys$1(Object(r)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(r,n))})}return a}_objectSpread$1({className:isClassName,inputRef:isRef,onItemClick:PropTypes.func,onLoadError:PropTypes.func,onLoadSuccess:PropTypes.func,pdf:isPdf},eventProps);const PageContext=reactExports.createContext(null);
86function _createSuper$5(a){var i=_isNativeReflectConstruct$5();return function(){var n=_getPrototypeOf$1(a),s;if(i){var l=_getPrototypeOf$1(this).constructor;s=Reflect.construct(n,arguments,l)}else s=n.apply(this,arguments);return _possibleConstructorReturn$1(this,s)}}function _isNativeReflectConstruct$5(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var ANNOTATION_MODE=pdfExports.AnnotationMode,PageCanvasInternal=(function(a){_inherits$1(r,a);var i=_createSuper$5(r);function r(){var n;_classCallCheck$1(this,r);for(var s=arguments.length,l=new Array(s),f=0;f<s;f++)l[f]=arguments[f];return n=i.call.apply(i,[this].concat(l)),_defineProperty(_assertThisInitialized$2(n),"canvasElement",reactExports.createRef()),_defineProperty(_assertThisInitialized$2(n),"onRenderSuccess",function(){n.renderer=null;var d=n.props,S=d.onRenderSuccess,R=d.page,N=d.scale;S&&S(makePageCallback(R,N))}),_defineProperty(_assertThisInitialized$2(n),"onRenderError",function(d){if(!isCancelException(d)){var S=n.props.onRenderError;S&&S(d)}}),_defineProperty(_assertThisInitialized$2(n),"drawPageOnCanvas",function(){var d=n.canvasElement.current;if(!d)return null;var S=_assertThisInitialized$2(n),R=S.renderViewport,N=S.viewport,B=n.props,A=B.canvasBackground,I=B.page,_=B.renderForms;d.width=R.width,d.height=R.height,d.style.width="".concat(Math.floor(N.width),"px"),d.style.height="".concat(Math.floor(N.height),"px");var E={annotationMode:_?ANNOTATION_MODE.ENABLE_FORMS:ANNOTATION_MODE.ENABLE,get canvasContext(){return d.getContext("2d")},viewport:R};return A&&(E.background=A),n.cancelRenderingTask(),n.renderer=I.render(E),n.renderer.promise.then(n.onRenderSuccess).catch(n.onRenderError)}),n}return _createClass$1(r,[{key:"componentDidMount",value:function(){this.drawPageOnCanvas()}},{key:"componentDidUpdate",value:function(s){var l=this.props,f=l.canvasBackground,d=l.page,S=l.renderForms;(f!==s.canvasBackground||S!==s.renderForms)&&(d.cleanup(),this.drawPageOnCanvas())}},{key:"componentWillUnmount",value:function(){this.cancelRenderingTask();var s=this.canvasElement.current;s&&(s.width=0,s.height=0)}},{key:"cancelRenderingTask",value:function(){this.renderer&&(this.renderer.cancel(),this.renderer=null)}},{key:"renderViewport",get:function(){var s=this.props,l=s.page,f=s.rotate,d=s.scale,S=getPixelRatio();return l.getViewport({scale:d*S,rotation:f})}},{key:"viewport",get:function(){var s=this.props,l=s.page,f=s.rotate,d=s.scale;return l.getViewport({scale:d,rotation:f})}},{key:"render",value:function(){var s=this.props.canvasRef;return v.createElement("canvas",{className:"react-pdf__Page__canvas",dir:"ltr",ref:mergeRefs(s,this.canvasElement),style:{display:"block",userSelect:"none"}})}}]),r})(reactExports.PureComponent);PageCanvasInternal.propTypes={canvasBackground:PropTypes.string,canvasRef:isRef,onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,page:isPage.isRequired,renderForms:PropTypes.bool,rotate:isRotate,scale:PropTypes.number.isRequired};function PageCanvas(a){return v.createElement(PageContext.Consumer,null,function(i){return v.createElement(PageCanvasInternal,_extends$2({},i,a))})}function _createSuper$4(a){var i=_isNativeReflectConstruct$4();return function(){var n=_getPrototypeOf$1(a),s;if(i){var l=_getPrototypeOf$1(this).constructor;s=Reflect.construct(n,arguments,l)}else s=n.apply(this,arguments);return _possibleConstructorReturn$1(this,s)}}function _isNativeReflectConstruct$4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var PageSVGInternal=(function(a){_inherits$1(r,a);var i=_createSuper$4(r);function r(){var n;_classCallCheck$1(this,r);for(var s=arguments.length,l=new Array(s),f=0;f<s;f++)l[f]=arguments[f];return n=i.call.apply(i,[this].concat(l)),_defineProperty(_assertThisInitialized$2(n),"state",{svg:null}),_defineProperty(_assertThisInitialized$2(n),"onRenderSuccess",function(){n.renderer=null;var d=n.props,S=d.onRenderSuccess,R=d.page,N=d.scale;S&&S(makePageCallback(R,N))}),_defineProperty(_assertThisInitialized$2(n),"onRenderError",function(d){if(!isCancelException(d)){var S=n.props.onRenderError;S&&S(d)}}),_defineProperty(_assertThisInitialized$2(n),"renderSVG",function(){var d=n.props.page;return n.renderer=d.getOperatorList(),n.renderer.then(function(S){var R=new pdfExports.SVGGraphics(d.commonObjs,d.objs);n.renderer=R.getSVG(S,n.viewport).then(function(N){n.setState({svg:N},n.onRenderSuccess)}).catch(n.onRenderError)}).catch(n.onRenderError)}),_defineProperty(_assertThisInitialized$2(n),"drawPageOnContainer",function(d){var S=n.state.svg;if(!(!d||!S)){d.firstElementChild||d.appendChild(S);var R=n.viewport,N=R.width,B=R.height;S.setAttribute("width",N),S.setAttribute("height",B)}}),n}
86return _createClass$1(r,[{key:"componentDidMount",value:function(){this.renderSVG()}},{key:"viewport",get:function(){var s=this.props,l=s.page,f=s.rotate,d=s.scale;return l.getViewport({scale:d,rotation:f})}},{key:"render",value:function(){var s=this,l=this.viewport,f=l.width,d=l.height;return v.createElement("div",{className:"react-pdf__Page__svg",ref:function(R){return s.drawPageOnContainer(R)},style:{display:"block",backgroundColor:"white",overflow:"hidden",width:f,height:d,userSelect:"none"}})}}]),r})(reactExports.PureComponent);PageSVGInternal.propTypes={onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number.isRequired};function PageSVG(a){return v.createElement(PageContext.Consumer,null,function(i){return v.createElement(PageSVGInternal,_extends$2({},i,a))})}function _createSuper$3(a){var i=_isNativeReflectConstruct$3();return function(){var n=_getPrototypeOf$1(a),s;if(i){var l=_getPrototypeOf$1(this).constructor;s=Reflect.construct(n,arguments,l)}else s=n.apply(this,arguments);return _possibleConstructorReturn$1(this,s)}}function _isNativeReflectConstruct$3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var TextLayerItemInternal=(function(a){_inherits$1(r,a);var i=_createSuper$3(r);function r(){var n;_classCallCheck$1(this,r);for(var s=arguments.length,l=new Array(s),f=0;f<s;f++)l[f]=arguments[f];return n=i.call.apply(i,[this].concat(l)),_defineProperty(_assertThisInitialized$2(n),"itemElement",reactExports.createRef()),_defineProperty(_assertThisInitialized$2(n),"getElementWidth",function(d){var S=_assertThisInitialized$2(n),R=S.sideways;return d.getBoundingClientRect()[R?"height":"width"]}),n}return _createClass$1(r,[{key:"componentDidMount",value:function(){this.alignTextItem()}},{key:"componentDidUpdate",value:function(){this.alignTextItem()}},{key:"unrotatedViewport",get:function(){var s=this.props,l=s.page,f=s.scale;return l.getViewport({scale:f})}},{key:"rotate",get:function(){var s=this.props,l=s.page,f=s.rotate;return f-l.rotate}},{key:"sideways",get:function(){var s=this.rotate;return s%180!==0}},{key:"defaultSideways",get:function(){var s=this.unrotatedViewport.rotation;return s%180!==0}},{key:"fontSize",get:function(){var s=this.props.transform,l=this.defaultSideways,f=_slicedToArray(s,2),d=f[0],S=f[1];return l?S:d}},{key:"top",get:function(){var s=this.props.transform,l=this.unrotatedViewport,f=this.defaultSideways,d=_slicedToArray(s,6),S=d[2],R=d[3],N=d[4],B=d[5],A=_slicedToArray(l.viewBox,4),I=A[1],_=A[3];return f?N+S+I:_-(B+R)}},{key:"left",get:function(){var s=this.props.transform,l=this.unrotatedViewport,f=this.defaultSideways,d=_slicedToArray(s,6),S=d[4],R=d[5],N=_slicedToArray(l.viewBox,1),B=N[0];return f?R-B:S-B}},{key:"getFontData",value:function(s){var l=this.props.page;return new Promise(function(f){l.commonObjs.get(s,f)})}},{key:"alignTextItem",value:function(){var s=this,l=this.itemElement.current;if(l){l.style.transform="";var f=this.props,d=f.fontName,S=f.scale,R=f.width;l.style.fontFamily="".concat(d,", sans-serif"),this.getFontData(d).then(function(N){var B=N?N.fallbackName:"sans-serif";l.style.fontFamily="".concat(d,", ").concat(B);var A=R*S,I=s.getElementWidth(l),_="scaleX(".concat(A/I,")"),E=N?N.ascent:0;E&&(_+=" translateY(".concat((1-E)*100,"%)")),l.style.transform=_,l.style.WebkitTransform=_})}}},{key:"render",value:function(){var s=this.fontSize,l=this.top,f=this.left,d=this.props,S=d.customTextRenderer,R=d.scale,N=d.str;return v.createElement("span",{ref:this.itemElement,style:{height:"1em",fontFamily:"sans-serif",fontSize:"".concat(s*R,"px"),position:"absolute",top:"".concat(l*R,"px"),left:"".concat(f*R,"px"),transformOrigin:"left bottom",whiteSpace:"pre",pointerEvents:"all"}},S?S(this.props):N)}}]),r})(reactExports.PureComponent);TextLayerItemInternal.propTypes={customTextRenderer:PropTypes.func,fontName:PropTypes.string.isRequired,itemIndex:PropTypes.number.isRequired,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number,str:PropTypes.string.isRequired,transform:PropTypes.arrayOf(PropTypes.number).isRequired,width:PropTypes.number.isRequired};function TextLayerItem(a){return v.createElement(PageContext.Consumer,null,function(i){return v.createElement(TextLayerItemInternal,_extends$2({},i,a))})}
86function _createSuper$2(a){var i=_isNativeReflectConstruct$2();return function(){var n=_getPrototypeOf$1(a),s;if(i){var l=_getPrototypeOf$1(this).constructor;s=Reflect.construct(n,arguments,l)}else s=n.apply(this,arguments);return _possibleConstructorReturn$1(this,s)}}function _isNativeReflectConstruct$2(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var TextLayerInternal=(function(a){_inherits$1(r,a);var i=_createSuper$2(r);function r(){var n;_classCallCheck$1(this,r);for(var s=arguments.length,l=new Array(s),f=0;f<s;f++)l[f]=arguments[f];return n=i.call.apply(i,[this].concat(l)),_defineProperty(_assertThisInitialized$2(n),"state",{textItems:null}),_defineProperty(_assertThisInitialized$2(n),"loadTextItems",function(){var d=n.props.page,S=makeCancellablePromise(d.getTextContent());n.runningTask=S,S.promise.then(function(R){var N=R.items;n.setState({textItems:N},n.onLoadSuccess)}).catch(function(R){n.onLoadError(R)})}),_defineProperty(_assertThisInitialized$2(n),"onLoadSuccess",function(){var d=n.props.onGetTextSuccess,S=n.state.textItems;d&&d(S)}),_defineProperty(_assertThisInitialized$2(n),"onLoadError",function(d){n.setState({textItems:!1});var S=n.props.onGetTextError;S&&S(d)}),n}return _createClass$1(r,[{key:"componentDidMount",value:function(){var s=this.props.page;invariant(s),this.loadTextItems()}},{key:"componentDidUpdate",value:function(s){var l=this.props.page;s.page&&l!==s.page&&this.loadTextItems()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask)}},{key:"unrotatedViewport",get:function(){var s=this.props,l=s.page,f=s.scale;return l.getViewport({scale:f})}},{key:"rotate",get:function(){var s=this.props,l=s.page,f=s.rotate;return f-l.rotate}},{key:"renderTextItems",value:function(){var s=this.state.textItems;return s?s.map(function(l,f){return v.createElement(TextLayerItem,_extends$2({key:f,itemIndex:f},l))}):null}},{key:"render",value:function(){var s=this.unrotatedViewport,l=this.rotate;return v.createElement("div",{className:"react-pdf__Page__textContent",style:{position:"absolute",top:"50%",left:"50%",width:"".concat(s.width,"px"),height:"".concat(s.height,"px"),color:"transparent",transform:"translate(-50%, -50%) rotate(".concat(l,"deg)"),WebkitTransform:"translate(-50%, -50%) rotate(".concat(l,"deg)"),pointerEvents:"none"}},this.renderTextItems())}}]),r})(reactExports.PureComponent);TextLayerInternal.propTypes={onGetTextError:PropTypes.func,onGetTextSuccess:PropTypes.func,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number};function TextLayer(a){return v.createElement(PageContext.Consumer,null,function(i){return v.createElement(TextLayerInternal,_extends$2({},i,a))})}function _createSuper$1(a){var i=_isNativeReflectConstruct$1();return function(){var n=_getPrototypeOf$1(a),s;if(i){var l=_getPrototypeOf$1(this).constructor;s=Reflect.construct(n,arguments,l)}else s=n.apply(this,arguments);return _possibleConstructorReturn$1(this,s)}}function _isNativeReflectConstruct$1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var AnnotationLayerInternal=(function(a){_inherits$1(r,a);var i=_createSuper$1(r);function r(){var n;_classCallCheck$1(this,r);for(var s=arguments.length,l=new Array(s),f=0;f<s;f++)l[f]=arguments[f];return n=i.call.apply(i,[this].concat(l)),_defineProperty(_assertThisInitialized$2(n),"state",{annotations:null}),_defineProperty(_assertThisInitialized$2(n),"layerElement",reactExports.createRef()),_defineProperty(_assertThisInitialized$2(n),"loadAnnotations",function(){var d=n.props.page,S=makeCancellablePromise(d.getAnnotations());n.runningTask=S,S.promise.then(function(R){n.setState({annotations:R},n.onLoadSuccess)}).catch(function(R){n.onLoadError(R)})}),_defineProperty(_assertThisInitialized$2(n),"onLoadSuccess",function(){var d=n.props.onGetAnnotationsSuccess,S=n.state.annotations;d&&d(S)}),_defineProperty(_assertThisInitialized$2(n),"onLoadError",function(d){n.setState({annotations:!1});var S=n.props.onGetAnnotationsError;S&&S(d)}),_defineProperty(_assertThisInitialized$2(n),"onRenderSuccess",function(){var d=n.props.onRenderAnnotationLayerSuccess;d&&d()}),_defineProperty(_assertThisInitialized$2(n),"onRenderError",function(d){var S=n.props.onRenderAnnotationLayerError;S&&S(d)}),n}
86return _createClass$1(r,[{key:"componentDidMount",value:function(){var s=this.props.page;invariant(s),this.loadAnnotations()}},{key:"componentDidUpdate",value:function(s){var l=this.props,f=l.page,d=l.renderForms;(s.page&&f!==s.page||d!==s.renderForms)&&this.loadAnnotations()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask)}},{key:"viewport",get:function(){var s=this.props,l=s.page,f=s.rotate,d=s.scale;return l.getViewport({scale:d,rotation:f})}},{key:"renderAnnotationLayer",value:function(){var s=this.state.annotations;if(s){var l=this.props,f=l.imageResourcesPath,d=l.linkService,S=l.page,R=l.renderForms,N=this.viewport.clone({dontFlip:!0}),B={annotations:s,div:this.layerElement.current,imageResourcesPath:f,linkService:d,page:S,renderForms:R,viewport:N};this.layerElement.current.innerHTML="";try{pdfExports.AnnotationLayer.render(B),this.onRenderSuccess()}catch(A){this.onRenderError(A)}}}},{key:"render",value:function(){return v.createElement("div",{className:"react-pdf__Page__annotations annotationLayer",ref:this.layerElement},this.renderAnnotationLayer())}}]),r})(reactExports.PureComponent);AnnotationLayerInternal.propTypes={imageResourcesPath:PropTypes.string,linkService:isLinkService.isRequired,onGetAnnotationsError:PropTypes.func,onGetAnnotationsSuccess:PropTypes.func,onRenderAnnotationLayerError:PropTypes.func,onRenderAnnotationLayerSuccess:PropTypes.func,page:isPage,renderForms:PropTypes.bool,rotate:isRotate,scale:PropTypes.number};var AnnotationLayer=function a(i){return v.createElement(DocumentContext.Consumer,null,function(r){return v.createElement(PageContext.Consumer,null,function(n){return v.createElement(AnnotationLayerInternal,_extends$2({},r,n,i))})})};function ownKeys(a,i){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);i&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(a){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?ownKeys(Object(r),!0).forEach(function(n){_defineProperty(a,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(r,n))})}return a}function _createSuper(a){var i=_isNativeReflectConstruct();return function(){var n=_getPrototypeOf$1(a),s;if(i){var l=_getPrototypeOf$1(this).constructor;s=Reflect.construct(n,arguments,l)}else s=n.apply(this,arguments);return _possibleConstructorReturn$1(this,s)}}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var defaultScale=1,PageInternal=(function(a){_inherits$1(r,a);var i=_createSuper(r);function r(){var n;_classCallCheck$1(this,r);for(var s=arguments.length,l=new Array(s),f=0;f<s;f++)l[f]=arguments[f];return n=i.call.apply(i,[this].concat(l)),_defineProperty(_assertThisInitialized$2(n),"state",{page:null}),_defineProperty(_assertThisInitialized$2(n),"pageElement",reactExports.createRef()),_defineProperty(_assertThisInitialized$2(n),"onLoadSuccess",function(){var d=n.props,S=d.onLoadSuccess,R=d.registerPage,N=n.state.page;S&&S(makePageCallback(N,n.scale)),R&&R(n.pageIndex,n.pageElement.current)}),_defineProperty(_assertThisInitialized$2(n),"onLoadError",function(d){n.setState({page:!1});var S=n.props.onLoadError;S&&S(d)}),_defineProperty(_assertThisInitialized$2(n),"loadPage",function(){var d=n.props.pdf,S=n.getPageNumber();if(S){n.setState(function(N){return N.page?{page:null}:null});var R=makeCancellablePromise(d.getPage(S));n.runningTask=R,R.promise.then(function(N){n.setState({page:N},n.onLoadSuccess)}).catch(function(N){n.onLoadError(N)})}}),n}return _createClass$1(r,[{key:"componentDidMount",value:function(){var s=this.props.pdf;invariant(s),this.loadPage()}},{key:"componentDidUpdate",value:function(s){var l=this.props.pdf;if(s.pdf&&l!==s.pdf||this.getPageNumber()!==this.getPageNumber(s)){var f=this.props.unregisterPage;f&&f(this.getPageIndex(s)),this.loadPage()}}},{key:"componentWillUnmount",value:function(){var s=this.props.unregisterPage;s&&s(this.pageIndex),cancelRunningTask(this.runningTask)}},{key:"childContext",get:function(){var s=this.state.page;if(!s)return{};
86var l=this.props,f=l.canvasBackground,d=l.customTextRenderer,S=l.onGetAnnotationsError,R=l.onGetAnnotationsSuccess,N=l.onGetTextError,B=l.onGetTextSuccess,A=l.onRenderAnnotationLayerError,I=l.onRenderAnnotationLayerSuccess,_=l.onRenderError,E=l.onRenderSuccess,C=l.renderForms,$=l.renderInteractiveForms;return{canvasBackground:f,customTextRenderer:d,onGetAnnotationsError:S,onGetAnnotationsSuccess:R,onGetTextError:N,onGetTextSuccess:B,onRenderAnnotationLayerError:A,onRenderAnnotationLayerSuccess:I,onRenderError:_,onRenderSuccess:E,page:s,renderForms:C??$,rotate:this.rotate,scale:this.scale}}},{key:"getPageIndex",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return isProvided(s.pageNumber)?s.pageNumber-1:isProvided(s.pageIndex)?s.pageIndex:null}},{key:"getPageNumber",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return isProvided(s.pageNumber)?s.pageNumber:isProvided(s.pageIndex)?s.pageIndex+1:null}},{key:"pageIndex",get:function(){return this.getPageIndex()}},{key:"pageNumber",get:function(){return this.getPageNumber()}},{key:"rotate",get:function(){var s=this.props.rotate;if(isProvided(s))return s;var l=this.state.page;return l?l.rotate:null}},{key:"scale",get:function(){var s=this.state.page;if(!s)return null;var l=this.props,f=l.scale,d=l.width,S=l.height,R=this.rotate,N=1,B=f===null?defaultScale:f;if(d||S){var A=s.getViewport({scale:1,rotation:R});N=d?d/A.width:S/A.height}return B*N}},{key:"eventProps",get:function(){var s=this;return makeEventProps(this.props,function(){var l=s.state.page;return l&&makePageCallback(l,s.scale)})}},{key:"pageKey",get:function(){var s=this.state.page;return"".concat(s.pageIndex,"@").concat(this.scale,"/").concat(this.rotate)}},{key:"pageKeyNoScale",get:function(){var s=this.state.page;return"".concat(s.pageIndex,"/").concat(this.rotate)}},{key:"renderMainLayer",value:function(){var s=this.props,l=s.canvasRef,f=s.renderMode;switch(f){case"none":return null;case"svg":return v.createElement(PageSVG,{key:"".concat(this.pageKeyNoScale,"_svg")});case"canvas":default:return v.createElement(PageCanvas,{key:"".concat(this.pageKey,"_canvas"),canvasRef:l})}}},{key:"renderTextLayer",value:function(){var s=this.props.renderTextLayer;return s?v.createElement(TextLayer,{key:"".concat(this.pageKey,"_text")}):null}},{key:"renderAnnotationLayer",value:function(){var s=this.props.renderAnnotationLayer;return s?v.createElement(AnnotationLayer,{key:"".concat(this.pageKey,"_annotations")}):null}},{key:"renderChildren",value:function(){var s=this.props.children;return v.createElement(PageContext.Provider,{value:this.childContext},this.renderMainLayer(),this.renderTextLayer(),this.renderAnnotationLayer(),s)}},{key:"renderContent",value:function(){var s=this.pageNumber,l=this.props.pdf,f=this.state.page;if(!s){var d=this.props.noData;return v.createElement(Message,{type:"no-data"},typeof d=="function"?d():d)}if(l===null||f===null){var S=this.props.loading;return v.createElement(Message,{type:"loading"},typeof S=="function"?S():S)}if(l===!1||f===!1){var R=this.props.error;return v.createElement(Message,{type:"error"},typeof R=="function"?R():R)}return this.renderChildren()}},{key:"render",value:function(){var s=this.pageNumber,l=this.props,f=l.className,d=l.inputRef;return v.createElement("div",_extends$2({className:mergeClassNames("react-pdf__Page",f),"data-page-number":s,ref:mergeRefs(d,this.pageElement),style:{position:"relative"}},this.eventProps),this.renderContent())}}]),r})(reactExports.PureComponent);PageInternal.defaultProps={error:"Failed to load the page.",loading:"Loading page…",noData:"No page specified.",renderAnnotationLayer:!0,renderForms:!1,renderMode:"canvas",renderTextLayer:!0,scale:defaultScale};var isFunctionOrNode=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);PageInternal.propTypes=_objectSpread(_objectSpread({},eventProps),{},{canvasBackground:PropTypes.string,children:PropTypes.node,className:isClassName,customTextRenderer:PropTypes.func,error:isFunctionOrNode,height:PropTypes.number,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode,noData:isFunctionOrNode,onGetTextError:PropTypes.func,onGetTextSuccess:PropTypes.func,onLoadError:PropTypes.func,onLoadSuccess:PropTypes.func,onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,pageIndex:isPageIndex,pageNumber:isPageNumber,pdf:isPdf,registerPage:PropTypes.func,renderAnnotationLayer:PropTypes.bool,renderForms:PropTypes.bool,renderInteractiveForms:PropTypes.bool,renderMode:isRenderMode,renderTextLayer:PropTypes.bool,rotate:isRotate,scale:PropTypes.number,unregisterPage:PropTypes.func,width:PropTypes.number});function Page(a,i){return v.createElement(DocumentContext.Consumer,null,function(r){return v.createElement(PageInternal,_extends$2({ref:i},r,a))})}const Page$1=v.forwardRef(Page);pdfExports.GlobalWorkerOptions.workerSrc="pdf.worker.js";export{_createClass$1 as $,Page$1 as A,pdfExports as B,Controller as C,Document as D,ErrorBoundary as E,FormProvider as F,_typeof as G,requireLib$1 as H,require$$5 as I,hoistStatics as J,commonjsRequire as K,Link as L,ReactJsxRuntimeNS as M,useRouteMatch as N,RecaptchaWrapper as O,PropTypes as P,get as Q,Redirect as R,set as S,Countdown$1 as T,Route as U,generatePath as V,Switch as W,withRouter as X,createBrowserHistory as Y,BrowserRouter as Z,_extends$2 as _,reactExports as a,_inherits$1 as a0,_classCallCheck$1 as a1,_possibleConstructorReturn$1 as a2,_defineProperty as a3,_getPrototypeOf$1 as a4,initReactI18next as a5,jsxRuntimeExports as b,_objectWithoutPropertiesLoose$2 as c,getAugmentedNamespace as d,requireReactDom as e,_inheritsLoose$2 as f,getDefaultExportFromCjs as g,_assertThisInitialized$2 as h,commonjsGlobal$1 as i,j,_arrayWithHoles as k,_iterableToArray$1 as l,_unsupportedIterableToArray$1 as m,_nonIterableRest as n,useLocation as o,useHistory as p,appendErrors as q,requireReact as r,useForm as s,useTranslation as t,useParams as u,v,matchPath as w,useWatch as x,useFormContext as y,requireLib as z};
87//# sourceMappingURL=vendor-B7LJOUx9.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.