PageSourceSearch

https://unstuck-pathway-finder.lovable.app/assets/index-CA7b3Ucy.js

js unstuck-pathway-finder.lovable.app collected 2026-10-03 03:50:59 UTC 1,036,180 bytes, 384 lines download raw bytes

1var r6=Object.defineProperty;var qy=e=>{throw TypeError(e)};var i6=(e,t,n)=>t in e?r6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qt=(e,t,n)=>i6(e,typeof t!="symbol"?t+"":t,n),Lg=(e,t,n)=>t.has(e)||qy("Cannot "+n);var _e=(e,t,n)=>(Lg(e,t,"read from private field"),n?n.call(e):t.get(e)),Bt=(e,t,n)=>t.has(e)?qy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_t=(e,t,n,r)=>(Lg(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ur=(e,t,n)=>(Lg(e,t,"access private method"),n);var af=(e,t,n,r)=>({set _(i){_t(e,t,i,n)},get _(){return _e(e,t,r)}});function s6(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var bF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}
vendor: 12,025 bytes, lines 1-25
1var Mx={exports:{}},i0={},Bx={exports:{}},kt={};/**
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 ph=Symbol.for("react.element"),o6=Symbol.for("react.portal"),a6=Symbol.for("react.fragment"),l6=Symbol.for("react.strict_mode"),c6=Symbol.for("react.profiler"),u6=Symbol.for("react.provider"),d6=Symbol.for("react.context"),h6=Symbol.for("react.forward_ref"),f6=Symbol.for("react.suspense"),p6=Symbol.for("react.memo"),g6=Symbol.for("react.lazy"),Hy=Symbol.iterator;function m6(e){return e===null||typeof e!="object"?null:(e=Hy&&e[Hy]||e["@@iterator"],typeof e=="function"?e:null)}var Ux={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zx=Object.assign,qx={};function uu(e,t,n){this.props=e,this.context=t,this.refs=qx,this.updater=n||Ux}uu.prototype.isReactComponent={};uu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};uu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Hx(){}Hx.prototype=uu.prototype;function Tv(e,t,n){this.props=e,this.context=t,this.refs=qx,this.updater=n||Ux}var Rv=Tv.prototype=new Hx;Rv.constructor=Tv;zx(Rv,uu.prototype);Rv.isPureReactComponent=!0;var Wy=Array.isArray,Wx=Object.prototype.hasOwnProperty,jv={current:null},Vx={key:!0,ref:!0,__self:!0,__source:!0};function Gx(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Wx.call(t,r)&&!Vx.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:ph,type:e,key:s,ref:o,props:i,_owner:jv.current}}function v6(e,t){return{$$typeof:ph,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ov(e){return typeof e=="object"&&e!==null&&e.$$typeof===ph}function y6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Vy=/\/+/g;function Tg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?y6(""+e.key):t.toString(36)}function Gf(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ph:case o6:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Tg(o,0):r,Wy(i)?(n="",e!=null&&(n=e.replace(Vy,"$&/")+"/"),Gf(i,t,n,"",function(c){return c})):i!=null&&(Ov(i)&&(i=v6(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Vy,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Wy(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Tg(s,a);o+=Gf(s,t,n,l,i)}else if(l=m6(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Tg(s,a++),o+=Gf(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function lf(e,t,n){if(e==null)return e;var r=[],i=0;return Gf(e,r,"","",function(s){return t.call(n,s,i++)}),r}function w6(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Tr={current:null},$f={transition:null},b6={ReactCurrentDispatcher:Tr,ReactCurrentBatchConfig:$f,ReactCurrentOwner:jv};function $x(){throw Error("act(...) is not supported in production builds of React.")}kt.Children={map:lf,forEach:function(e,t,n){lf(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return lf(e,function(){t++}),t},toArray:function(e){return lf(e,function(t){return t})||[]},only:function(e){if(!Ov(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};kt.Component=uu;kt.Fragment=a6;kt.Profiler=c6;kt.PureComponent=Tv;kt.StrictMode=l6;kt.Suspense=f6;kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b6;kt.act=$x;kt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=zx({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=jv.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Wx.call(t,l)&&!Vx.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:ph,type:e.type,key:i,ref:s,props:r,_owner:o}};kt.createContext=function(e){return e={$$typeof:d6,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:u6,_context:e},e.Consumer=e};kt.createElement=Gx;kt.createFactory=function(e){var t=Gx.bind(null,e);return t.type=e,t};kt.createRef=function(){return{current:null}};kt.forwardRef=function(e){return{$$typeof:h6,render:e}};kt.isValidElement=Ov;kt.lazy=function(e){return{$$typeof:g6,_payload:{_status:-1,_result:e},_init:w6}};kt.memo=function(e,t){return{$$typeof:p6,type:e,compare:t===void 0?null:t}};kt.startTransition=function(e){var t=$f.transition;$f.transition={};try{e()}finally{$f.transition=t}};kt.unstable_act=$x;kt.useCallback=function(e,t){return Tr.current.useCallback(e,t)};kt.useContext=function(e){return Tr.current.useContext(e)};kt.useDebugValue=function(){};kt.useDeferredValue=function(e){return Tr.current.useDeferredValue(e)};kt.useEffect=function(e,t){return Tr.current.useEffect(e,t)};kt.useId=function(){return Tr.current.useId()};kt.useImperativeHandle=function(e,t,n){return Tr.current.useImperativeHandle(e,t,n)};kt.useInsertionEffect=function(e,t){return Tr.current.useInsertionEffect(e,t)};kt.useLayoutEffect=function(e,t){return Tr.current.useLayoutEffect(e,t)};kt.useMemo=function(e,t){return Tr.current.useMemo(e,t)};kt.useReducer=function(e,t,n){return Tr.current.useReducer(e,t,n)};kt.useRef=function(e){return Tr.current.useRef(e)};kt.useState=function(e){return Tr.current.useState(e)};kt.useSyncExternalStore=function(e,t,n){return Tr.current.useSyncExternalStore(e,t,n)};kt.useTransition=function(){return Tr.current.useTransition()};kt.version="18.3.1";Bx.exports=kt;var W=Bx.exports;const Pe=Fx(W),x6=s6({__proto__:null,default:Pe},[W]);/**
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 _6=W,A6=Symbol.for("react.element"),S6=Symbol.for("react.fragment"),k6=Object.prototype.hasOwnProperty,N6=_6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,E6={key:!0,ref:!0,__self:!0,__source:!0};function Kx(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)k6.call(t,r)&&!E6.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:A6,type:e,key:s,ref:o,props:i,_owner:N6.current}}i0.Fragment=S6;i0.jsx=Kx;i0.jsxs=Kx;Mx.exports=i0;var k=Mx.exports,Qx={exports:{}},pi={},Yx={exports:{}},Xx={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(U,te){var fe=U.length;U.push(te);e:for(;0<fe;){var ae=fe-1>>>1,P=U[ae];if(0<i(P,te))U[ae]=te,U[fe]=P,fe=ae;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var te=U[0],fe=U.pop();if(fe!==te){U[0]=fe;e:for(var ae=0,P=U.length,B=P>>>1;ae<B;){var Q=2*(ae+1)-1,Z=U[Q],ee=Q+1,le=U[ee];if(0>i(Z,fe))ee<P&&0>i(le,Z)?(U[ae]=le,U[ee]=fe,ae=ee):(U[ae]=Z,U[Q]=fe,ae=Q);else if(ee<P&&0>i(le,fe))U[ae]=le,U[ee]=fe,ae=ee;else break e}}return te}function i(U,te){var fe=U.sortIndex-te.sortIndex;return fe!==0?fe:U.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],d=1,g=null,p=3,h=!1,b=!1,w=!1,_=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(U){for(var te=n(c);te!==null;){if(te.callback===null)r(c);else if(te.startTime<=U)r(c),te.sortIndex=te.expirationTime,t(l,te);else break;te=n(c)}}function N(U){if(w=!1,A(U),!b)if(n(l)!==null)b=!0,oe(I);else{var te=n(c);te!==null&&ue(N,te.startTime-U)}}function I(U,te){b=!1,w&&(w=!1,v(M),M=-1),h=!0;var fe=p;try{for(A(te),g=n(l);g!==null&&(!(g.expirationTime>te)||U&&!L());){var ae=g.callback;if(typeof ae=="function"){g.callback=null,p=g.priorityLevel;var P=ae(g.expirationTime<=te);te=e.unstable_now(),typeof P=="function"?g.callback=P:g===n(l)&&r(l),A(te)}else r(l);g=n(l)}if(g!==null)var B=!0;else{var Q=n(c);Q!==null&&ue(N,Q.startTime-te),B=!1}return B}finally{g=null,p=fe,h=!1}}var $=!1,K=null,M=-1,D=5,X=-1;function L(){return!(e.unstable_now()-X<D)}function j(){if(K!==null){var U=e.unstable_now();X=U;var te=!0;try{te=K(!0,U)}finally{te?Y():($=!1,K=null)}}else $=!1}var Y;if(typeof x=="function")Y=function(){x(j)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,se=q.port2;q.port1.onmessage=j,Y=function(){se.postMessage(null)}}else Y=function(){_(j,0)};function oe(U){K=U,$||($=!0,Y())}function ue(U,te){M=_(function(){U(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_continueExecution=function(){b||h||(b=!0,oe(I))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(U){switch(p){case 1:case 2:case 3:var te=3;break;default:te=p}var fe=p;p=te;try{return U()}finally{p=fe}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,te){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var fe=p;p=U;try{return te()}finally{p=fe}},e.unstable_scheduleCallback=function(U,te,fe){var ae=e.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?ae+fe:ae):fe=ae,U){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=fe+P,U={id:d++,callback:te,priorityLevel:U,startTime:fe,expirationTime:P,sortIndex:-1},fe>ae?(U.sortIndex=fe,t(c,U),n(l)===null&&U===n(c)&&(w?(v(M),M=-1):w=!0,ue(N,fe-ae))):(U.sortIndex=P,t(l,U),b||h||(b=!0,oe(I))),U},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(U){var te=p;return function(){var fe=p;p=te;try{return U.apply(this,arguments)}finally{p=fe}}}})(Xx);Yx.exports=Xx;
vendor: 4,229 bytes, lines 25-33
25var C6=Yx.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var P6=W,fi=C6;function Ee(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Jx=new Set,Pd={};function kl(e,t){Jc(e,t),Jc(e+"Capture",t)}function Jc(e,t){for(Pd[e]=t,e=0;e<t.length;e++)Jx.add(t[e])}var co=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vm=Object.prototype.hasOwnProperty,L6=/^[: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]*$/,Gy={},$y={};function T6(e){return Vm.call($y,e)?!0:Vm.call(Gy,e)?!1:L6.test(e)?$y[e]=!0:(Gy[e]=!0,!1)}function R6(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function j6(e,t,n,r){if(t===null||typeof t>"u"||R6(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 Rr(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var ir={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ir[e]=new Rr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ir[t]=new Rr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ir[e]=new Rr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ir[e]=new Rr(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){ir[e]=new Rr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ir[e]=new Rr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ir[e]=new Rr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ir[e]=new Rr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ir[e]=new Rr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Iv=/[\-:]([a-z])/g;function Dv(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
33-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(Iv,Dv);ir[t]=new Rr(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(Iv,Dv);ir[t]=new Rr(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(Iv,Dv);ir[t]=new Rr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ir[e]=new Rr(e,1,!1,e.toLowerCase(),null,!1,!1)});ir.xlinkHref=new Rr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ir[e]=new Rr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Fv(e,t,n,r){var i=ir.hasOwnProperty(t)?ir[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(j6(t,n,i,r)&&(n=null),r||i===null?T6(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var mo=P6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,cf=Symbol.for("react.element"),pc=Symbol.for("react.portal"),gc=Symbol.for("react.fragment"),Mv=Symbol.for("react.strict_mode"),Gm=Symbol.for("react.profiler"),Zx=Symbol.for("react.provider"),e3=Symbol.for("react.context"),Bv=Symbol.for("react.forward_ref"),$m=Symbol.for("react.suspense"),Km=Symbol.for("react.suspense_list"),Uv=Symbol.for("react.memo"),Uo=Symbol.for("react.lazy"),t3=Symbol.for("react.offscreen"),Ky=Symbol.iterator;function Hu(e){return e===null||typeof e!="object"?null:(e=Ky&&e[Ky]||e["@@iterator"],typeof e=="function"?e:null)}var pn=Object.assign,Rg;function rd(e){if(Rg===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Rg=t&&t[1]||""}return`
34`+Rg+e}var jg=!1;function Og(e,t){if(!e||jg)return"";jg=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
35`),s=r.stack.split(`
36`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
37`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{jg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?rd(e):""}function O6(e){switch(e.tag){case 5:return rd(e.type);case 16:return rd("Lazy");case 13:return rd("Suspense");case 19:return rd("SuspenseList");case 0:case 2:case 15:return e=Og(e.type,!1),e;case 11:return e=Og(e.type.render,!1),e;case 1:return e=Og(e.type,!0),e;default:return""}}function Qm(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 gc:return"Fragment";case pc:return"Portal";case Gm:return"Profiler";case Mv:return"StrictMode";case $m:return"Suspense";case Km:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case e3:return(e.displayName||"Context")+".Consumer";case Zx:return(e._context.displayName||"Context")+".Provider";case Bv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Uv:return t=e.displayName||null,t!==null?t:Qm(e.type)||"Memo";case Uo:t=e._payload,e=e._init;try{return Qm(e(t))}catch{}}return null}function I6(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 Qm(t);case 8:return t===Mv?"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 ga(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function n3(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function D6(e){var t=n3(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function uf(e){e._valueTracker||(e._valueTracker=D6(e))}function r3(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=n3(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gp(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 Ym(e,t){var n=t.checked;return pn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ga(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function i3(e,t){t=t.checked,t!=null&&Fv(e,"checked",t,!1)}function Xm(e,t){i3(e,t);var n=ga(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Jm(e,t.type,n):t.hasOwnProperty("defaultValue")&&Jm(e,t.type,ga(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}
vendor: 4,187 bytes, line 37
37function Yy(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Jm(e,t,n){(t!=="number"||gp(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var id=Array.isArray;function Ec(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ga(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Zm(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ee(91));return pn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xy(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Ee(92));if(id(n)){if(1<n.length)throw Error(Ee(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ga(n)}}function s3(e,t){var n=ga(t.value),r=ga(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Jy(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function o3(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 e1(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?o3(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var df,a3=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(df=df||document.createElement("div"),df.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=df.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ld(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dd={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},F6=["Webkit","ms","Moz","O"];Object.keys(dd).forEach(function(e){F6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),dd[t]=dd[e]})});function l3(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||dd.hasOwnProperty(e)&&dd[e]?(""+t).trim():t+"px"}function c3(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=l3(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var M6=pn({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 t1(e,t){if(t){if(M6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ee(62))}}function n1(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";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 r1=null;function zv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var i1=null,Cc=null,Pc=null;function Zy(e){if(e=vh(e)){if(typeof i1!="function")throw Error(Ee(280));var t=e.stateNode;t&&(t=c0(t),i1(e.stateNode,e.type,t))}}function u3(e){Cc?Pc?Pc.push(e):Pc=[e]:Cc=e}function d3(){if(Cc){var e=Cc,t=Pc;if(Pc=Cc=null,Zy(e),t)for(e=0;e<t.length;e++)Zy(t[e])}}function h3(e,t){return e(t)}function f3(){}var Ig=!1;function p3(e,t,n){if(Ig)return e(t,n);Ig=!0;try{return h3(e,t,n)}finally{Ig=!1,(Cc!==null||Pc!==null)&&(f3(),d3())}}function Td(e,t){var n=e.stateNode;if(n===null)return null;var r=c0(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Ee(231,t,typeof n));return n}var s1=!1;if(co)try{var Wu={};Object.defineProperty(Wu,"passive",{get:function(){s1=!0}}),window.addEventListener("test",Wu,Wu),window.removeEventListener("test",Wu,Wu)}catch{s1=!1}function B6(e,t,n,r,i,s,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var hd=!1,mp=null,vp=!1,o1=null,U6={onError:function(e){hd=!0,mp=e}};function z6(e,t,n,r,i,s,o,a,l){hd=!1,mp=null,B6.apply(U6,arguments)}function q6(e,t,n,r,i,s,o,a,l){if(z6.apply(this,arguments),hd){if(hd){var c=mp;hd=!1,mp=null}else throw Error(Ee(198));vp||(vp=!0,o1=c)}}function Nl(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function g3(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 ew(e){if(Nl(e)!==e)throw Error(Ee(188))}function H6(e){var t=e.alternate;if(!t){if(t=Nl(e),t===null)throw Error(Ee(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return ew(i),e;if(s===r)return ew(i),t;s=s.sibling}throw Error(Ee(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(Ee(189))}}if(n.alternate!==r)throw Error(Ee(190))}if(n.tag!==3)throw Error(Ee(188));return n.stateNode.current===n?e:t}function m3(e){return e=H6(e),e!==null?v3(e):null}function v3(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=v3(e);if(t!==null)return t;e=e.sibling}return null}var y3=fi.unstable_scheduleCallback,tw=fi.unstable_cancelCallback,W6=fi.unstable_shouldYield,V6=fi.unstable_requestPaint,kn=fi.unstable_now,G6=fi.unstable_getCurrentPriorityLevel,qv=fi.unstable_ImmediatePriority,w3=fi.unstable_UserBlockingPriority,yp=fi.unstable_NormalPriority,$6=fi.unstable_LowPriority,b3=fi.unstable_IdlePriority,s0=null,Cs=null;function K6(e){if(Cs&&typeof Cs.onCommitFiberRoot=="function")try{Cs.onCommitFiberRoot(s0,e,void 0,(e.current.flags&128)===128)}catch{}}var Xi=Math.clz32?Math.clz32:X6,Q6=Math.log,Y6=Math.LN2;function X6(e){return e>>>=0,e===0?32:31-(Q6(e)/Y6|0)|0}var hf=64,ff=4194304;function sd(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 wp(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=sd(a):(s&=o,s!==0&&(r=sd(s)))}else o=n&~i,o!==0?r=sd(o):s!==0&&(r=sd(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Xi(t),i=1<<n,r|=e[n],t&=~i;return r}function J6(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 Z6(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Xi(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=J6(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function a1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function x3(){var e=hf;return hf<<=1,!(hf&4194240)&&(hf=64),e}function Dg(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gh(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xi(t),e[t]=n}function eN(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Xi(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Hv(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Xi(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Wt=0;function _3(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}
vendor: 11,350 bytes, line 37
37var A3,Wv,S3,k3,N3,l1=!1,pf=[],ra=null,ia=null,sa=null,Rd=new Map,jd=new Map,qo=[],tN="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 nw(e,t){switch(e){case"focusin":case"focusout":ra=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":sa=null;break;case"pointerover":case"pointerout":Rd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jd.delete(t.pointerId)}}function Vu(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=vh(t),t!==null&&Wv(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function nN(e,t,n,r,i){switch(t){case"focusin":return ra=Vu(ra,e,t,n,r,i),!0;case"dragenter":return ia=Vu(ia,e,t,n,r,i),!0;case"mouseover":return sa=Vu(sa,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Rd.set(s,Vu(Rd.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,jd.set(s,Vu(jd.get(s)||null,e,t,n,r,i)),!0}return!1}function E3(e){var t=el(e.target);if(t!==null){var n=Nl(t);if(n!==null){if(t=n.tag,t===13){if(t=g3(n),t!==null){e.blockedOn=t,N3(e.priority,function(){S3(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Kf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=c1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);r1=r,n.target.dispatchEvent(r),r1=null}else return t=vh(n),t!==null&&Wv(t),e.blockedOn=n,!1;t.shift()}return!0}function rw(e,t,n){Kf(e)&&n.delete(t)}function rN(){l1=!1,ra!==null&&Kf(ra)&&(ra=null),ia!==null&&Kf(ia)&&(ia=null),sa!==null&&Kf(sa)&&(sa=null),Rd.forEach(rw),jd.forEach(rw)}function Gu(e,t){e.blockedOn===t&&(e.blockedOn=null,l1||(l1=!0,fi.unstable_scheduleCallback(fi.unstable_NormalPriority,rN)))}function Od(e){function t(i){return Gu(i,e)}if(0<pf.length){Gu(pf[0],e);for(var n=1;n<pf.length;n++){var r=pf[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ra!==null&&Gu(ra,e),ia!==null&&Gu(ia,e),sa!==null&&Gu(sa,e),Rd.forEach(t),jd.forEach(t),n=0;n<qo.length;n++)r=qo[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<qo.length&&(n=qo[0],n.blockedOn===null);)E3(n),n.blockedOn===null&&qo.shift()}var Lc=mo.ReactCurrentBatchConfig,bp=!0;function iN(e,t,n,r){var i=Wt,s=Lc.transition;Lc.transition=null;try{Wt=1,Vv(e,t,n,r)}finally{Wt=i,Lc.transition=s}}function sN(e,t,n,r){var i=Wt,s=Lc.transition;Lc.transition=null;try{Wt=4,Vv(e,t,n,r)}finally{Wt=i,Lc.transition=s}}function Vv(e,t,n,r){if(bp){var i=c1(e,t,n,r);if(i===null)Gg(e,t,r,xp,n),nw(e,r);else if(nN(i,e,t,n,r))r.stopPropagation();else if(nw(e,r),t&4&&-1<tN.indexOf(e)){for(;i!==null;){var s=vh(i);if(s!==null&&A3(s),s=c1(e,t,n,r),s===null&&Gg(e,t,r,xp,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Gg(e,t,r,null,n)}}var xp=null;function c1(e,t,n,r){if(xp=null,e=zv(r),e=el(e),e!==null)if(t=Nl(e),t===null)e=null;else if(n=t.tag,n===13){if(e=g3(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return xp=e,null}function C3(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(G6()){case qv:return 1;case w3:return 4;case yp:case $6:return 16;case b3:return 536870912;default:return 16}default:return 16}}var Jo=null,Gv=null,Qf=null;function P3(){if(Qf)return Qf;var e,t=Gv,n=t.length,r,i="value"in Jo?Jo.value:Jo.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Qf=i.slice(e,1<r?1-r:void 0)}function Yf(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 gf(){return!0}function iw(){return!1}function gi(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?gf:iw,this.isPropagationStopped=iw,this}return pn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=gf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gf)},persist:function(){},isPersistent:gf}),t}var du={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$v=gi(du),mh=pn({},du,{view:0,detail:0}),oN=gi(mh),Fg,Mg,$u,o0=pn({},mh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kv,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!==$u&&($u&&e.type==="mousemove"?(Fg=e.screenX-$u.screenX,Mg=e.screenY-$u.screenY):Mg=Fg=0,$u=e),Fg)},movementY:function(e){return"movementY"in e?e.movementY:Mg}}),sw=gi(o0),aN=pn({},o0,{dataTransfer:0}),lN=gi(aN),cN=pn({},mh,{relatedTarget:0}),Bg=gi(cN),uN=pn({},du,{animationName:0,elapsedTime:0,pseudoElement:0}),dN=gi(uN),hN=pn({},du,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fN=gi(hN),pN=pn({},du,{data:0}),ow=gi(pN),gN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mN={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"},vN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yN(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=vN[e])?!!t[e]:!1}function Kv(){return yN}var wN=pn({},mh,{key:function(e){if(e.key){var t=gN[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Yf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mN[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kv,charCode:function(e){return e.type==="keypress"?Yf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Yf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),bN=gi(wN),xN=pn({},o0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),aw=gi(xN),_N=pn({},mh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kv}),AN=gi(_N),SN=pn({},du,{propertyName:0,elapsedTime:0,pseudoElement:0}),kN=gi(SN),NN=pn({},o0,{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}),EN=gi(NN),CN=[9,13,27,32],Qv=co&&"CompositionEvent"in window,fd=null;co&&"documentMode"in document&&(fd=document.documentMode);var PN=co&&"TextEvent"in window&&!fd,L3=co&&(!Qv||fd&&8<fd&&11>=fd),lw=" ",cw=!1;function T3(e,t){switch(e){case"keyup":return CN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function R3(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mc=!1;function LN(e,t){switch(e){case"compositionend":return R3(t);case"keypress":return t.which!==32?null:(cw=!0,lw);case"textInput":return e=t.data,e===lw&&cw?null:e;default:return null}}function TN(e,t){if(mc)return e==="compositionend"||!Qv&&T3(e,t)?(e=P3(),Qf=Gv=Jo=null,mc=!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 L3&&t.locale!=="ko"?null:t.data;default:return null}}var RN={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 uw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!RN[e.type]:t==="textarea"}function j3(e,t,n,r){u3(r),t=_p(t,"onChange"),0<t.length&&(n=new $v("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var pd=null,Id=null;function jN(e){W3(e,0)}function a0(e){var t=wc(e);if(r3(t))return e}function ON(e,t){if(e==="change")return t}var O3=!1;if(co){var Ug;if(co){var zg="oninput"in document;if(!zg){var dw=document.createElement("div");dw.setAttribute("oninput","return;"),zg=typeof dw.oninput=="function"}Ug=zg}else Ug=!1;O3=Ug&&(!document.documentMode||9<document.documentMode)}function hw(){pd&&(pd.detachEvent("onpropertychange",I3),Id=pd=null)}function I3(e){if(e.propertyName==="value"&&a0(Id)){var t=[];j3(t,Id,e,zv(e)),p3(jN,t)}}function IN(e,t,n){e==="focusin"?(hw(),pd=t,Id=n,pd.attachEvent("onpropertychange",I3)):e==="focusout"&&hw()}function DN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return a0(Id)}function FN(e,t){if(e==="click")return a0(t)}function MN(e,t){if(e==="input"||e==="change")return a0(t)}function BN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zi=typeof Object.is=="function"?Object.is:BN;function Dd(e,t){if(Zi(e,t))return!0;
vendor: 4,808 bytes, line 37
37if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Vm.call(t,i)||!Zi(e[i],t[i]))return!1}return!0}function fw(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pw(e,t){var n=fw(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fw(n)}}function D3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?D3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function F3(){for(var e=window,t=gp();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gp(e.document)}return t}function Yv(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 UN(e){var t=F3(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&D3(n.ownerDocument.documentElement,n)){if(r!==null&&Yv(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=pw(n,s);var o=pw(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var zN=co&&"documentMode"in document&&11>=document.documentMode,vc=null,u1=null,gd=null,d1=!1;function gw(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;d1||vc==null||vc!==gp(r)||(r=vc,"selectionStart"in r&&Yv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),gd&&Dd(gd,r)||(gd=r,r=_p(u1,"onSelect"),0<r.length&&(t=new $v("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vc)))}function mf(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var yc={animationend:mf("Animation","AnimationEnd"),animationiteration:mf("Animation","AnimationIteration"),animationstart:mf("Animation","AnimationStart"),transitionend:mf("Transition","TransitionEnd")},qg={},M3={};co&&(M3=document.createElement("div").style,"AnimationEvent"in window||(delete yc.animationend.animation,delete yc.animationiteration.animation,delete yc.animationstart.animation),"TransitionEvent"in window||delete yc.transitionend.transition);function l0(e){if(qg[e])return qg[e];if(!yc[e])return e;var t=yc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in M3)return qg[e]=t[n];return e}var B3=l0("animationend"),U3=l0("animationiteration"),z3=l0("animationstart"),q3=l0("transitionend"),H3=new Map,mw="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 _a(e,t){H3.set(e,t),kl(t,[e])}for(var Hg=0;Hg<mw.length;Hg++){var Wg=mw[Hg],qN=Wg.toLowerCase(),HN=Wg[0].toUpperCase()+Wg.slice(1);_a(qN,"on"+HN)}_a(B3,"onAnimationEnd");_a(U3,"onAnimationIteration");_a(z3,"onAnimationStart");_a("dblclick","onDoubleClick");_a("focusin","onFocus");_a("focusout","onBlur");_a(q3,"onTransitionEnd");Jc("onMouseEnter",["mouseout","mouseover"]);Jc("onMouseLeave",["mouseout","mouseover"]);Jc("onPointerEnter",["pointerout","pointerover"]);Jc("onPointerLeave",["pointerout","pointerover"]);kl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,770 bytes, line 37
37kl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));kl("onBeforeInput",["compositionend","keypress","textInput","paste"]);kl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));kl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));kl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var od="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(" "),WN=new Set("cancel close invalid load scroll toggle".split(" ").concat(od));function vw(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,q6(r,t,void 0,e),e.currentTarget=null}function W3(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;vw(i,a,c),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;vw(i,a,c),s=l}}}if(vp)throw e=o1,vp=!1,o1=null,e}function rn(e,t){var n=t[m1];n===void 0&&(n=t[m1]=new Set);var r=e+"__bubble";n.has(r)||(V3(t,e,2,!1),n.add(r))}function Vg(e,t,n){var r=0;t&&(r|=4),V3(n,e,r,t)}var vf="_reactListening"+Math.random().toString(36).slice(2);function Fd(e){if(!e[vf]){e[vf]=!0,Jx.forEach(function(n){n!=="selectionchange"&&(WN.has(n)||Vg(n,!1,e),Vg(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vf]||(t[vf]=!0,Vg("selectionchange",!1,t))}}function V3(e,t,n,r){switch(C3(t)){case 1:var i=iN;break;case 4:i=sN;break;default:i=Vv}n=i.bind(null,t,n,e),i=void 0,!s1||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Gg(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=el(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}p3(function(){var c=s,d=zv(n),g=[];e:{var p=H3.get(e);if(p!==void 0){var h=$v,b=e;switch(e){case"keypress":if(Yf(n)===0)break e;case"keydown":case"keyup":h=bN;break;case"focusin":b="focus",h=Bg;break;case"focusout":b="blur",h=Bg;break;case"beforeblur":case"afterblur":h=Bg;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=sw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=lN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=AN;break;case B3:case U3:case z3:h=dN;break;case q3:h=kN;break;case"scroll":h=oN;break;case"wheel":h=EN;break;case"copy":case"cut":case"paste":h=fN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=aw}var w=(t&4)!==0,_=!w&&e==="scroll",v=w?p!==null?p+"Capture":null:p;w=[];for(var x=c,A;x!==null;){A=x;var N=A.stateNode;if(A.tag===5&&N!==null&&(A=N,v!==null&&(N=Td(x,v),N!=null&&w.push(Md(x,N,A)))),_)break;x=x.return}0<w.length&&(p=new h(p,b,null,n,d),g.push({event:p,listeners:w}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==r1&&(b=n.relatedTarget||n.fromElement)&&(el(b)||b[uo]))break e;if((h||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,h?(b=n.relatedTarget||n.toElement,h=c,b=b?el(b):null,b!==null&&(_=Nl(b),b!==_||b.tag!==5&&b.tag!==6)&&(b=null)):(h=null,b=c),h!==b)){if(w=sw,N="onMouseLeave",v="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(w=aw,N="onPointerLeave",v="onPointerEnter",x="pointer"),_=h==null?p:wc(h),A=b==null?p:wc(b),p=new w(N,x+"leave",h,n,d),p.target=_,p.relatedTarget=A,N=null,el(d)===c&&(w=new w(v,x+"enter",b,n,d),w.target=A,w.relatedTarget=_,N=w),_=N,h&&b)t:{for(w=h,v=b,x=0,A=w;A;A=Xl(A))x++;for(A=0,N=v;N;N=Xl(N))A++;for(;0<x-A;)w=Xl(w),x--;for(;0<A-x;)v=Xl(v),A--;for(;x--;){if(w===v||v!==null&&w===v.alternate)break t;w=Xl(w),v=Xl(v)}w=null}else w=null;h!==null&&yw(g,p,h,w,!1),b!==null&&_!==null&&yw(g,_,b,w,!0)}}
vendor: 4,660 bytes, lines 37-38
37e:{if(p=c?wc(c):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var I=ON;else if(uw(p))if(O3)I=MN;else{I=DN;var $=IN}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(I=FN);if(I&&(I=I(e,c))){j3(g,I,n,d);break e}$&&$(e,p,c),e==="focusout"&&($=p._wrapperState)&&$.controlled&&p.type==="number"&&Jm(p,"number",p.value)}switch($=c?wc(c):window,e){case"focusin":(uw($)||$.contentEditable==="true")&&(vc=$,u1=c,gd=null);break;case"focusout":gd=u1=vc=null;break;case"mousedown":d1=!0;break;case"contextmenu":case"mouseup":case"dragend":d1=!1,gw(g,n,d);break;case"selectionchange":if(zN)break;case"keydown":case"keyup":gw(g,n,d)}var K;if(Qv)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else mc?T3(e,n)&&(M="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&(L3&&n.locale!=="ko"&&(mc||M!=="onCompositionStart"?M==="onCompositionEnd"&&mc&&(K=P3()):(Jo=d,Gv="value"in Jo?Jo.value:Jo.textContent,mc=!0)),$=_p(c,M),0<$.length&&(M=new ow(M,e,null,n,d),g.push({event:M,listeners:$}),K?M.data=K:(K=R3(n),K!==null&&(M.data=K)))),(K=PN?LN(e,n):TN(e,n))&&(c=_p(c,"onBeforeInput"),0<c.length&&(d=new ow("onBeforeInput","beforeinput",null,n,d),g.push({event:d,listeners:c}),d.data=K))}W3(g,t)})}function Md(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _p(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Td(e,n),s!=null&&r.unshift(Md(e,s,i)),s=Td(e,t),s!=null&&r.push(Md(e,s,i))),e=e.return}return r}function Xl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yw(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=Td(n,s),l!=null&&o.unshift(Md(n,l,a))):i||(l=Td(n,s),l!=null&&o.push(Md(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var VN=/\r\n?/g,GN=/\u0000|\uFFFD/g;function ww(e){return(typeof e=="string"?e:""+e).replace(VN,`
38`).replace(GN,"")}function yf(e,t,n){if(t=ww(t),ww(e)!==t&&n)throw Error(Ee(425))}function Ap(){}var h1=null,f1=null;function p1(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 g1=typeof setTimeout=="function"?setTimeout:void 0,$N=typeof clearTimeout=="function"?clearTimeout:void 0,bw=typeof Promise=="function"?Promise:void 0,KN=typeof queueMicrotask=="function"?queueMicrotask:typeof bw<"u"?function(e){return bw.resolve(null).then(e).catch(QN)}:g1;function QN(e){setTimeout(function(){throw e})}function $g(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Od(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Od(t)}function oa(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 xw(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var hu=Math.random().toString(36).slice(2),ks="__reactFiber$"+hu,Bd="__reactProps$"+hu,uo="__reactContainer$"+hu,m1="__reactEvents$"+hu,YN="__reactListeners$"+hu,XN="__reactHandles$"+hu;function el(e){var t=e[ks];if(t)return t;for(var n=e.parentNode;n;){if(t=n[uo]||n[ks]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xw(e);e!==null;){if(n=e[ks])return n;e=xw(e)}return t}e=n,n=e.parentNode}return null}function vh(e){return e=e[ks]||e[uo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function wc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ee(33))}function c0(e){return e[Bd]||null}var v1=[],bc=-1;function Aa(e){return{current:e}}function on(e){0>bc||(e.current=v1[bc],v1[bc]=null,bc--)}function Zt(e,t){bc++,v1[bc]=e.current,e.current=t}var ma={},wr=Aa(ma),Ur=Aa(!1),pl=ma;function Zc(e,t){var n=e.type.contextTypes;if(!n)return ma;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function zr(e){return e=e.childContextTypes,e!=null}function Sp(){on(Ur),on(wr)}
vendor: 15,528 bytes, line 38
38function _w(e,t,n){if(wr.current!==ma)throw Error(Ee(168));Zt(wr,t),Zt(Ur,n)}function G3(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Ee(108,I6(e)||"Unknown",i));return pn({},n,r)}function kp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ma,pl=wr.current,Zt(wr,e),Zt(Ur,Ur.current),!0}function Aw(e,t,n){var r=e.stateNode;if(!r)throw Error(Ee(169));n?(e=G3(e,t,pl),r.__reactInternalMemoizedMergedChildContext=e,on(Ur),on(wr),Zt(wr,e)):on(Ur),Zt(Ur,n)}var ro=null,u0=!1,Kg=!1;function $3(e){ro===null?ro=[e]:ro.push(e)}function JN(e){u0=!0,$3(e)}function Sa(){if(!Kg&&ro!==null){Kg=!0;var e=0,t=Wt;try{var n=ro;for(Wt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ro=null,u0=!1}catch(i){throw ro!==null&&(ro=ro.slice(e+1)),y3(qv,Sa),i}finally{Wt=t,Kg=!1}}return null}var xc=[],_c=0,Np=null,Ep=0,Si=[],ki=0,gl=null,oo=1,ao="";function Ka(e,t){xc[_c++]=Ep,xc[_c++]=Np,Np=e,Ep=t}function K3(e,t,n){Si[ki++]=oo,Si[ki++]=ao,Si[ki++]=gl,gl=e;var r=oo;e=ao;var i=32-Xi(r)-1;r&=~(1<<i),n+=1;var s=32-Xi(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,oo=1<<32-Xi(t)+i|n<<i|r,ao=s+e}else oo=1<<s|n<<i|r,ao=e}function Xv(e){e.return!==null&&(Ka(e,1),K3(e,1,0))}function Jv(e){for(;e===Np;)Np=xc[--_c],xc[_c]=null,Ep=xc[--_c],xc[_c]=null;for(;e===gl;)gl=Si[--ki],Si[ki]=null,ao=Si[--ki],Si[ki]=null,oo=Si[--ki],Si[ki]=null}var di=null,li=null,cn=!1,Yi=null;function Q3(e,t){var n=Ei(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Sw(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,di=e,li=oa(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,di=e,li=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=gl!==null?{id:oo,overflow:ao}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ei(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,di=e,li=null,!0):!1;default:return!1}}function y1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function w1(e){if(cn){var t=li;if(t){var n=t;if(!Sw(e,t)){if(y1(e))throw Error(Ee(418));t=oa(n.nextSibling);var r=di;t&&Sw(e,t)?Q3(r,n):(e.flags=e.flags&-4097|2,cn=!1,di=e)}}else{if(y1(e))throw Error(Ee(418));e.flags=e.flags&-4097|2,cn=!1,di=e}}}function kw(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;di=e}function wf(e){if(e!==di)return!1;if(!cn)return kw(e),cn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!p1(e.type,e.memoizedProps)),t&&(t=li)){if(y1(e))throw Y3(),Error(Ee(418));for(;t;)Q3(e,t),t=oa(t.nextSibling)}if(kw(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ee(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){li=oa(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}li=null}}else li=di?oa(e.stateNode.nextSibling):null;return!0}function Y3(){for(var e=li;e;)e=oa(e.nextSibling)}function eu(){li=di=null,cn=!1}function Zv(e){Yi===null?Yi=[e]:Yi.push(e)}var ZN=mo.ReactCurrentBatchConfig;function Ku(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Ee(309));var r=n.stateNode}if(!r)throw Error(Ee(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(Ee(284));if(!n._owner)throw Error(Ee(290,e))}return e}function bf(e,t){throw e=Object.prototype.toString.call(t),Error(Ee(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Nw(e){var t=e._init;return t(e._payload)}function X3(e){function t(v,x){if(e){var A=v.deletions;A===null?(v.deletions=[x],v.flags|=16):A.push(x)}}function n(v,x){if(!e)return null;for(;x!==null;)t(v,x),x=x.sibling;return null}function r(v,x){for(v=new Map;x!==null;)x.key!==null?v.set(x.key,x):v.set(x.index,x),x=x.sibling;return v}function i(v,x){return v=ua(v,x),v.index=0,v.sibling=null,v}function s(v,x,A){return v.index=A,e?(A=v.alternate,A!==null?(A=A.index,A<x?(v.flags|=2,x):A):(v.flags|=2,x)):(v.flags|=1048576,x)}function o(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,x,A,N){return x===null||x.tag!==6?(x=tm(A,v.mode,N),x.return=v,x):(x=i(x,A),x.return=v,x)}function l(v,x,A,N){var I=A.type;return I===gc?d(v,x,A.props.children,N,A.key):x!==null&&(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Uo&&Nw(I)===x.type)?(N=i(x,A.props),N.ref=Ku(v,x,A),N.return=v,N):(N=rp(A.type,A.key,A.props,null,v.mode,N),N.ref=Ku(v,x,A),N.return=v,N)}function c(v,x,A,N){return x===null||x.tag!==4||x.stateNode.containerInfo!==A.containerInfo||x.stateNode.implementation!==A.implementation?(x=nm(A,v.mode,N),x.return=v,x):(x=i(x,A.children||[]),x.return=v,x)}function d(v,x,A,N,I){return x===null||x.tag!==7?(x=hl(A,v.mode,N,I),x.return=v,x):(x=i(x,A),x.return=v,x)}function g(v,x,A){if(typeof x=="string"&&x!==""||typeof x=="number")return x=tm(""+x,v.mode,A),x.return=v,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case cf:return A=rp(x.type,x.key,x.props,null,v.mode,A),A.ref=Ku(v,null,x),A.return=v,A;case pc:return x=nm(x,v.mode,A),x.return=v,x;case Uo:var N=x._init;return g(v,N(x._payload),A)}if(id(x)||Hu(x))return x=hl(x,v.mode,A,null),x.return=v,x;bf(v,x)}return null}function p(v,x,A,N){var I=x!==null?x.key:null;if(typeof A=="string"&&A!==""||typeof A=="number")return I!==null?null:a(v,x,""+A,N);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case cf:return A.key===I?l(v,x,A,N):null;case pc:return A.key===I?c(v,x,A,N):null;case Uo:return I=A._init,p(v,x,I(A._payload),N)}if(id(A)||Hu(A))return I!==null?null:d(v,x,A,N,null);bf(v,A)}return null}function h(v,x,A,N,I){if(typeof N=="string"&&N!==""||typeof N=="number")return v=v.get(A)||null,a(x,v,""+N,I);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case cf:return v=v.get(N.key===null?A:N.key)||null,l(x,v,N,I);case pc:return v=v.get(N.key===null?A:N.key)||null,c(x,v,N,I);case Uo:var $=N._init;return h(v,x,A,$(N._payload),I)}if(id(N)||Hu(N))return v=v.get(A)||null,d(x,v,N,I,null);bf(x,N)}return null}function b(v,x,A,N){for(var I=null,$=null,K=x,M=x=0,D=null;K!==null&&M<A.length;M++){K.index>M?(D=K,K=null):D=K.sibling;var X=p(v,K,A[M],N);if(X===null){K===null&&(K=D);break}e&&K&&X.alternate===null&&t(v,K),x=s(X,x,M),$===null?I=X:$.sibling=X,$=X,K=D}if(M===A.length)return n(v,K),cn&&Ka(v,M),I;if(K===null){for(;M<A.length;M++)K=g(v,A[M],N),K!==null&&(x=s(K,x,M),$===null?I=K:$.sibling=K,$=K);return cn&&Ka(v,M),I}for(K=r(v,K);M<A.length;M++)D=h(K,v,M,A[M],N),D!==null&&(e&&D.alternate!==null&&K.delete(D.key===null?M:D.key),x=s(D,x,M),$===null?I=D:$.sibling=D,$=D);return e&&K.forEach(function(L){return t(v,L)}),cn&&Ka(v,M),I}function w(v,x,A,N){var I=Hu(A);if(typeof I!="function")throw Error(Ee(150));if(A=I.call(A),A==null)throw Error(Ee(151));for(var $=I=null,K=x,M=x=0,D=null,X=A.next();K!==null&&!X.done;M++,X=A.next()){K.index>M?(D=K,K=null):D=K.sibling;var L=p(v,K,X.value,N);if(L===null){K===null&&(K=D);break}e&&K&&L.alternate===null&&t(v,K),x=s(L,x,M),$===null?I=L:$.sibling=L,$=L,K=D}if(X.done)return n(v,K),cn&&Ka(v,M),I;if(K===null){for(;!X.done;M++,X=A.next())X=g(v,X.value,N),X!==null&&(x=s(X,x,M),$===null?I=X:$.sibling=X,$=X);return cn&&Ka(v,M),I}for(K=r(v,K);!X.done;M++,X=A.next())X=h(K,v,M,X.value,N),X!==null&&(e&&X.alternate!==null&&K.delete(X.key===null?M:X.key),x=s(X,x,M),$===null?I=X:$.sibling=X,$=X);return e&&K.forEach(function(j){return t(v,j)}),cn&&Ka(v,M),I}function _(v,x,A,N){if(typeof A=="object"&&A!==null&&A.type===gc&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case cf:e:{for(var I=A.key,$=x;$!==null;){if($.key===I){if(I=A.type,I===gc){if($.tag===7){n(v,$.sibling),x=i($,A.props.children),x.return=v,v=x;break e}}else if($.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Uo&&Nw(I)===$.type){n(v,$.sibling),x=i($,A.props),x.ref=Ku(v,$,A),x.return=v,v=x;break e}n(v,$);break}else t(v,$);$=$.sibling}A.type===gc?(x=hl(A.props.children,v.mode,N,A.key),x.return=v,v=x):(N=rp(A.type,A.key,A.props,null,v.mode,N),N.ref=Ku(v,x,A),N.return=v,v=N)}return o(v);case pc:e:{for($=A.key;x!==null;){if(x.key===$)if(x.tag===4&&x.stateNode.containerInfo===A.containerInfo&&x.stateNode.implementation===A.implementation){n(v,x.sibling),x=i(x,A.children||[]),x.return=v,v=x;break e}else{n(v,x);break}else t(v,x);x=x.sibling}x=nm(A,v.mode,N),x.return=v,v=x}return o(v);case Uo:return $=A._init,_(v,x,$(A._payload),N)}if(id(A))return b(v,x,A,N);if(Hu(A))return w(v,x,A,N);bf(v,A)}return typeof A=="string"&&A!==""||typeof A=="number"?(A=""+A,x!==null&&x.tag===6?(n(v,x.sibling),x=i(x,A),x.return=v,v=x):(n(v,x),x=tm(A,v.mode,N),x.return=v,v=x),o(v)):n(v,x)}return _}var tu=X3(!0),J3=X3(!1),Cp=Aa(null),Pp=null,Ac=null,e2=null;function t2(){e2=Ac=Pp=null}function n2(e){var t=Cp.current;on(Cp),e._currentValue=t}function b1(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Tc(e,t){Pp=e,e2=Ac=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Mr=!0),e.firstContext=null)}function Pi(e){var t=e._currentValue;if(e2!==e)if(e={context:e,memoizedValue:t,next:null},Ac===null){if(Pp===null)throw Error(Ee(308));Ac=e,Pp.dependencies={lanes:0,firstContext:e}}else Ac=Ac.next=e;return t}var tl=null;function r2(e){tl===null?tl=[e]:tl.push(e)}function Z3(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,r2(t)):(n.next=i.next,i.next=n),t.interleaved=n,ho(e,r)}function ho(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var zo=!1;function i2(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function e_(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 lo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function aa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ot&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ho(e,n)}return i=r.interleaved,i===null?(t.next=t,r2(r)):(t.next=i.next,i.next=t),r.interleaved=t,ho(e,n)}function Xf(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hv(e,n)}}function Ew(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Lp(e,t,n,r){var i=e.updateQueue;zo=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(s!==null){var g=i.baseState;o=0,d=c=l=null,a=s;do{var p=a.lane,h=a.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,w=a;switch(p=t,h=n,w.tag){case 1:if(b=w.payload,typeof b=="function"){g=b.call(h,g,p);break e}g=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=w.payload,p=typeof b=="function"?b.call(h,g,p):b,p==null)break e;g=pn({},g,p);break e;case 2:zo=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=h,l=g):d=d.next=h,o|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(l=g),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);vl|=o,e.lanes=o,e.memoizedState=g}}function Cw(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Ee(191,i));i.call(r)}}}var yh={},Ps=Aa(yh),Ud=Aa(yh),zd=Aa(yh);function nl(e){if(e===yh)throw Error(Ee(174));return e}function s2(e,t){switch(Zt(zd,t),Zt(Ud,e),Zt(Ps,yh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:e1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=e1(t,e)}on(Ps),Zt(Ps,t)}function nu(){on(Ps),on(Ud),on(zd)}function t_(e){nl(zd.current);var t=nl(Ps.current),n=e1(t,e.type);t!==n&&(Zt(Ud,e),Zt(Ps,n))}function o2(e){Ud.current===e&&(on(Ps),on(Ud))}var hn=Aa(0);function Tp(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 Qg=[];function a2(){for(var e=0;e<Qg.length;e++)Qg[e]._workInProgressVersionPrimary=null;Qg.length=0}var Jf=mo.ReactCurrentDispatcher,Yg=mo.ReactCurrentBatchConfig,ml=0,fn=null,Un=null,Vn=null,Rp=!1,md=!1,qd=0,eE=0;function dr(){throw Error(Ee(321))}function l2(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Zi(e[n],t[n]))return!1;return!0}function c2(e,t,n,r,i,s){if(ml=s,fn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Jf.current=e===null||e.memoizedState===null?iE:sE,e=n(r,i),md){s=0;do{if(md=!1,qd=0,25<=s)throw Error(Ee(301));s+=1,Vn=Un=null,t.updateQueue=null,Jf.current=oE,e=n(r,i)}while(md)}if(Jf.current=jp,t=Un!==null&&Un.next!==null,ml=0,Vn=Un=fn=null,Rp=!1,t)throw Error(Ee(300));return e}function u2(){var e=qd!==0;return qd=0,e}function ws(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vn===null?fn.memoizedState=Vn=e:Vn=Vn.next=e,Vn}function Li(){if(Un===null){var e=fn.alternate;e=e!==null?e.memoizedState:null}else e=Un.next;var t=Vn===null?fn.memoizedState:Vn.next;if(t!==null)Vn=t,Un=e;else{if(e===null)throw Error(Ee(310));Un=e,e={memoizedState:Un.memoizedState,baseState:Un.baseState,baseQueue:Un.baseQueue,queue:Un.queue,next:null},Vn===null?fn.memoizedState=Vn=e:Vn=Vn.next=e}return Vn}function Hd(e,t){return typeof t=="function"?t(e):t}function Xg(e){var t=Li(),n=t.queue;if(n===null)throw Error(Ee(311));n.lastRenderedReducer=e;var r=Un,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;
vendor: 1,719 bytes, line 38
38i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,c=s;do{var d=c.lane;if((ml&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var g={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=g,o=r):l=l.next=g,fn.lanes|=d,vl|=d}c=c.next}while(c!==null&&c!==s);l===null?o=r:l.next=a,Zi(r,t.memoizedState)||(Mr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,fn.lanes|=s,vl|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Jg(e){var t=Li(),n=t.queue;if(n===null)throw Error(Ee(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Zi(s,t.memoizedState)||(Mr=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function n_(){}function r_(e,t){var n=fn,r=Li(),i=t(),s=!Zi(r.memoizedState,i);if(s&&(r.memoizedState=i,Mr=!0),r=r.queue,d2(o_.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Vn!==null&&Vn.memoizedState.tag&1){if(n.flags|=2048,Wd(9,s_.bind(null,n,r,i,t),void 0,null),$n===null)throw Error(Ee(349));ml&30||i_(n,t,i)}return i}function i_(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fn.updateQueue,t===null?(t={lastEffect:null,stores:null},fn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function s_(e,t,n,r){t.value=n,t.getSnapshot=r,a_(t)&&l_(e)}function o_(e,t,n){return n(function(){a_(t)&&l_(e)}
vendor: 4,549 bytes, line 38
38)}function a_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zi(e,n)}catch{return!0}}function l_(e){var t=ho(e,1);t!==null&&Ji(t,e,1,-1)}function Pw(e){var t=ws();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hd,lastRenderedState:e},t.queue=e,e=e.dispatch=rE.bind(null,fn,e),[t.memoizedState,e]}function Wd(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=fn.updateQueue,t===null?(t={lastEffect:null,stores:null},fn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function c_(){return Li().memoizedState}function Zf(e,t,n,r){var i=ws();fn.flags|=e,i.memoizedState=Wd(1|t,n,void 0,r===void 0?null:r)}function d0(e,t,n,r){var i=Li();r=r===void 0?null:r;var s=void 0;if(Un!==null){var o=Un.memoizedState;if(s=o.destroy,r!==null&&l2(r,o.deps)){i.memoizedState=Wd(t,n,s,r);return}}fn.flags|=e,i.memoizedState=Wd(1|t,n,s,r)}function Lw(e,t){return Zf(8390656,8,e,t)}function d2(e,t){return d0(2048,8,e,t)}function u_(e,t){return d0(4,2,e,t)}function d_(e,t){return d0(4,4,e,t)}function h_(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 f_(e,t,n){return n=n!=null?n.concat([e]):null,d0(4,4,h_.bind(null,t,e),n)}function h2(){}function p_(e,t){var n=Li();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&l2(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function g_(e,t){var n=Li();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&l2(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function m_(e,t,n){return ml&21?(Zi(n,t)||(n=x3(),fn.lanes|=n,vl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Mr=!0),e.memoizedState=n)}function tE(e,t){var n=Wt;Wt=n!==0&&4>n?n:4,e(!0);var r=Yg.transition;Yg.transition={};try{e(!1),t()}finally{Wt=n,Yg.transition=r}}function v_(){return Li().memoizedState}function nE(e,t,n){var r=ca(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},y_(e))w_(t,n);else if(n=Z3(e,t,n,r),n!==null){var i=Lr();Ji(n,e,r,i),b_(n,t,r)}}function rE(e,t,n){var r=ca(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(y_(e))w_(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Zi(a,o)){var l=t.interleaved;l===null?(i.next=i,r2(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Z3(e,t,i,r),n!==null&&(i=Lr(),Ji(n,e,r,i),b_(n,t,r))}}function y_(e){var t=e.alternate;return e===fn||t!==null&&t===fn}function w_(e,t){md=Rp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function b_(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hv(e,n)}}var jp={readContext:Pi,useCallback:dr,useContext:dr,useEffect:dr,useImperativeHandle:dr,useInsertionEffect:dr,useLayoutEffect:dr,useMemo:dr,useReducer:dr,useRef:dr,useState:dr,useDebugValue:dr,useDeferredValue:dr,useTransition:dr,useMutableSource:dr,useSyncExternalStore:dr,useId:dr,unstable_isNewReconciler:!1},iE={readContext:Pi,useCallback:function(e,t){return ws().memoizedState=[e,t===void 0?null:t],e},useContext:Pi,useEffect:Lw,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zf(4194308,4,h_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zf(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zf(4,2,e,t)},useMemo:function(e,t){var n=ws();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ws();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=nE.bind(null,fn,e),[r.memoizedState,e]},useRef:function(e){var t=ws();return e={current:e},t.memoizedState=e},useState:Pw,useDebugValue:h2,useDeferredValue:function(e){return ws().memoizedState=e},useTransition:function(){var e=Pw(!1),t=e[0];return e=tE.bind(null,e[1]),ws().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fn,i=ws();if(cn){if(n===void 0)throw Error(Ee(407));n=n()}else{if(n=t(),$n===null)throw Error(Ee(349));ml&30||i_(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Lw(o_.bind(null,r,s,e),[e]),r.flags|=2048,Wd(9,s_.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=ws(),t=$n.identifierPrefix;
vendor: 5,428 bytes, lines 38-40
38if(cn){var n=ao,r=oo;n=(r&~(1<<32-Xi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qd++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=eE++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sE={readContext:Pi,useCallback:p_,useContext:Pi,useEffect:d2,useImperativeHandle:f_,useInsertionEffect:u_,useLayoutEffect:d_,useMemo:g_,useReducer:Xg,useRef:c_,useState:function(){return Xg(Hd)},useDebugValue:h2,useDeferredValue:function(e){var t=Li();return m_(t,Un.memoizedState,e)},useTransition:function(){var e=Xg(Hd)[0],t=Li().memoizedState;return[e,t]},useMutableSource:n_,useSyncExternalStore:r_,useId:v_,unstable_isNewReconciler:!1},oE={readContext:Pi,useCallback:p_,useContext:Pi,useEffect:d2,useImperativeHandle:f_,useInsertionEffect:u_,useLayoutEffect:d_,useMemo:g_,useReducer:Jg,useRef:c_,useState:function(){return Jg(Hd)},useDebugValue:h2,useDeferredValue:function(e){var t=Li();return Un===null?t.memoizedState=e:m_(t,Un.memoizedState,e)},useTransition:function(){var e=Jg(Hd)[0],t=Li().memoizedState;return[e,t]},useMutableSource:n_,useSyncExternalStore:r_,useId:v_,unstable_isNewReconciler:!1};function Vi(e,t){if(e&&e.defaultProps){t=pn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function x1(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:pn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var h0={isMounted:function(e){return(e=e._reactInternals)?Nl(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Lr(),i=ca(e),s=lo(r,i);s.payload=t,n!=null&&(s.callback=n),t=aa(e,s,i),t!==null&&(Ji(t,e,i,r),Xf(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Lr(),i=ca(e),s=lo(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=aa(e,s,i),t!==null&&(Ji(t,e,i,r),Xf(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Lr(),r=ca(e),i=lo(n,r);i.tag=2,t!=null&&(i.callback=t),t=aa(e,i,r),t!==null&&(Ji(t,e,r,n),Xf(t,e,r))}};function Tw(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Dd(n,r)||!Dd(i,s):!0}function x_(e,t,n){var r=!1,i=ma,s=t.contextType;return typeof s=="object"&&s!==null?s=Pi(s):(i=zr(t)?pl:wr.current,r=t.contextTypes,s=(r=r!=null)?Zc(e,i):ma),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=h0,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Rw(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&h0.enqueueReplaceState(t,t.state,null)}function _1(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},i2(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Pi(s):(s=zr(t)?pl:wr.current,i.context=Zc(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(x1(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&h0.enqueueReplaceState(i,i.state,null),Lp(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ru(e,t){try{var n="",r=t;do n+=O6(r),r=r.return;while(r);var i=n}catch(s){i=`
39Error generating stack: `+s.message+`
40`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Zg(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function A1(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var aE=typeof WeakMap=="function"?WeakMap:Map;function __(e,t,n){n=lo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ip||(Ip=!0,j1=r),A1(e,t)},n}function A_(e,t,n){n=lo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){A1(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){A1(e,t),typeof r!="function"&&(la===null?la=new Set([this]):la.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function jw(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new aE;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=xE.bind(null,e,t,n),t.then(e,e))}function Ow(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 Iw(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=lo(-1,1),t.tag=2,aa(n,t,1))),n.lanes|=1),e)}var lE=mo.ReactCurrentOwner,Mr=!1;function Er(e,t,n,r){t.child=e===null?J3(t,null,n,r):tu(t,e.child,n,r)}function Dw(e,t,n,r,i){n=n.render;var s=t.ref;return Tc(t,i),r=c2(e,t,n,r,s,i),n=u2(),e!==null&&!Mr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fo(e,t,i)):(cn&&n&&Xv(t),t.flags|=1,Er(e,t,r,i
vendor: 9,716 bytes, line 40
40),t.child)}function Fw(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!b2(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,S_(e,t,s,r,i)):(e=rp(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Dd,n(o,r)&&e.ref===t.ref)return fo(e,t,i)}return t.flags|=1,e=ua(s,r),e.ref=t.ref,e.return=t,t.child=e}function S_(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Dd(s,r)&&e.ref===t.ref)if(Mr=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Mr=!0);else return t.lanes=e.lanes,fo(e,t,i)}return S1(e,t,n,r,i)}function k_(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Zt(kc,si),si|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Zt(kc,si),si|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Zt(kc,si),si|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,Zt(kc,si),si|=r;return Er(e,t,i,n),t.child}function N_(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function S1(e,t,n,r,i){var s=zr(n)?pl:wr.current;return s=Zc(t,s),Tc(t,i),n=c2(e,t,n,r,s,i),r=u2(),e!==null&&!Mr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fo(e,t,i)):(cn&&r&&Xv(t),t.flags|=1,Er(e,t,n,i),t.child)}function Mw(e,t,n,r,i){if(zr(n)){var s=!0;kp(t)}else s=!1;if(Tc(t,i),t.stateNode===null)ep(e,t),x_(t,n,r),_1(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Pi(c):(c=zr(n)?pl:wr.current,c=Zc(t,c));var d=n.getDerivedStateFromProps,g=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&Rw(t,o,r,c),zo=!1;var p=t.memoizedState;o.state=p,Lp(t,r,o,i),l=t.memoizedState,a!==r||p!==l||Ur.current||zo?(typeof d=="function"&&(x1(t,n,d,r),l=t.memoizedState),(a=zo||Tw(t,n,a,r,p,l,c))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,e_(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Vi(t.type,a),o.props=c,g=t.pendingProps,p=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Pi(l):(l=zr(n)?pl:wr.current,l=Zc(t,l));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==g||p!==l)&&Rw(t,o,r,l),zo=!1,p=t.memoizedState,o.state=p,Lp(t,r,o,i);var b=t.memoizedState;a!==g||p!==b||Ur.current||zo?(typeof h=="function"&&(x1(t,n,h,r),b=t.memoizedState),(c=zo||Tw(t,n,c,r,p,b,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,b,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,b,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),o.props=r,o.state=b,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return k1(e,t,n,r,s,i)}function k1(e,t,n,r,i,s){N_(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Aw(t,n,!1),fo(e,t,s);r=t.stateNode,lE.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=tu(t,e.child,null,s),t.child=tu(t,null,a,s)):Er(e,t,a,s),t.memoizedState=r.state,i&&Aw(t,n,!0),t.child}function E_(e){var t=e.stateNode;t.pendingContext?_w(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_w(e,t.context,!1),s2(e,t.containerInfo)}function Bw(e,t,n,r,i){return eu(),Zv(i),t.flags|=256,Er(e,t,n,r),t.child}var N1={dehydrated:null,treeContext:null,retryLane:0};function E1(e){return{baseLanes:e,cachePool:null,transitions:null}}function C_(e,t,n){var r=t.pendingProps,i=hn.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Zt(hn,i&1),e===null)return w1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=g0(o,r,0,null),e=hl(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=E1(n),t.memoizedState=N1,e):f2(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return cE(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ua(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=ua(a,s):(s=hl(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?E1(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=N1,r}return s=e.child,e=s.sibling,r=ua(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function f2(e,t){return t=g0({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function xf(e,t,n,r){return r!==null&&Zv(r),tu(t,e.child,null,n),e=f2(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cE(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Zg(Error(Ee(422))),xf(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=g0({mode:"visible",children:r.children},i,0,null),s=hl(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&tu(t,e.child,null,o),t.child.memoizedState=E1(o),t.memoizedState=N1,s);if(!(t.mode&1))return xf(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(Ee(419)),r=Zg(s,r,void 0),xf(e,t,o,r)}if(a=(o&e.childLanes)!==0,Mr||a){if(r=$n,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,ho(e,i),Ji(r,e,i,-1))}return w2(),r=Zg(Error(Ee(421))),xf(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=_E.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,li=oa(i.nextSibling),di=t,cn=!0,Yi=null,e!==null&&(Si[ki++]=oo,Si[ki++]=ao,Si[ki++]=gl,oo=e.id,ao=e.overflow,gl=t),t=f2(t,r.children),t.flags|=4096,t)}function Uw(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),b1(e.return,t,n)}function em(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function P_(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Er(e,t,r.children,n),r=hn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Uw(e,n,t);else if(e.tag===19)Uw(e,n,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}r&=1}if(Zt(hn,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Tp(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),em(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Tp(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}em(t,!0,n,null,s);break;case"together":em(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ep(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function fo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),vl|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ee(153));if(t.child!==null){for(e=t.child,n=ua(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ua(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}
vendor: 4,342 bytes, line 40
40function uE(e,t,n){switch(t.tag){case 3:E_(t),eu();break;case 5:t_(t);break;case 1:zr(t.type)&&kp(t);break;case 4:s2(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Zt(Cp,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Zt(hn,hn.current&1),t.flags|=128,null):n&t.child.childLanes?C_(e,t,n):(Zt(hn,hn.current&1),e=fo(e,t,n),e!==null?e.sibling:null);Zt(hn,hn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return P_(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Zt(hn,hn.current),r)break;return null;case 22:case 23:return t.lanes=0,k_(e,t,n)}return fo(e,t,n)}var L_,C1,T_,R_;L_=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};C1=function(){};T_=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,nl(Ps.current);var s=null;switch(n){case"input":i=Ym(e,i),r=Ym(e,r),s=[];break;case"select":i=pn({},i,{value:void 0}),r=pn({},r,{value:void 0}),s=[];break;case"textarea":i=Zm(e,i),r=Zm(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ap)}t1(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Pd.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Pd.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&rn("scroll",e),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};R_=function(e,t,n,r){n!==r&&(t.flags|=4)};function Qu(e,t){if(!cn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function dE(e,t,n){var r=t.pendingProps;switch(Jv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hr(t),null;case 1:return zr(t.type)&&Sp(),hr(t),null;case 3:return r=t.stateNode,nu(),on(Ur),on(wr),a2(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wf(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Yi!==null&&(D1(Yi),Yi=null))),C1(e,t),hr(t),null;case 5:o2(t);var i=nl(zd.current);if(n=t.type,e!==null&&t.stateNode!=null)T_(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Ee(166));return hr(t),null}if(e=nl(Ps.current),wf(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ks]=t,r[Bd]=s,e=(t.mode&1)!==0,n){case"dialog":rn("cancel",r),rn("close",r);break;case"iframe":case"object":case"embed":rn("load",r);break;case"video":case"audio":for(i=0;i<od.length;i++)rn(od[i],r);break;case"source":rn("error",r);break;case"img":case"image":case"link":rn("error",r),rn("load",r);break;case"details":rn("toggle",r);break;
vendor: 29,212 bytes, line 40
40case"input":Qy(r,s),rn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},rn("invalid",r);break;case"textarea":Xy(r,s),rn("invalid",r)}t1(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&yf(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&yf(r.textContent,a,e),i=["children",""+a]):Pd.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&rn("scroll",r)}switch(n){case"input":uf(r),Yy(r,s,!0);break;case"textarea":uf(r),Jy(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Ap)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=o3(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ks]=t,e[Bd]=r,L_(e,t,!1,!1),t.stateNode=e;e:{switch(o=n1(n,r),n){case"dialog":rn("cancel",e),rn("close",e),i=r;break;case"iframe":case"object":case"embed":rn("load",e),i=r;break;case"video":case"audio":for(i=0;i<od.length;i++)rn(od[i],e);i=r;break;case"source":rn("error",e),i=r;break;case"img":case"image":case"link":rn("error",e),rn("load",e),i=r;break;case"details":rn("toggle",e),i=r;break;case"input":Qy(e,r),i=Ym(e,r),rn("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=pn({},r,{value:void 0}),rn("invalid",e);break;case"textarea":Xy(e,r),i=Zm(e,r),rn("invalid",e);break;default:i=r}t1(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?c3(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&a3(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ld(e,l):typeof l=="number"&&Ld(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Pd.hasOwnProperty(s)?l!=null&&s==="onScroll"&&rn("scroll",e):l!=null&&Fv(e,s,l,o))}switch(n){case"input":uf(e),Yy(e,r,!1);break;case"textarea":uf(e),Jy(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ga(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Ec(e,!!r.multiple,s,!1):r.defaultValue!=null&&Ec(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ap)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return hr(t),null;case 6:if(e&&t.stateNode!=null)R_(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Ee(166));if(n=nl(zd.current),nl(Ps.current),wf(t)){if(r=t.stateNode,n=t.memoizedProps,r[ks]=t,(s=r.nodeValue!==n)&&(e=di,e!==null))switch(e.tag){case 3:yf(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&yf(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ks]=t,t.stateNode=r}return hr(t),null;case 13:if(on(hn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(cn&&li!==null&&t.mode&1&&!(t.flags&128))Y3(),eu(),t.flags|=98560,s=!1;else if(s=wf(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(Ee(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Ee(317));s[ks]=t}else eu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;hr(t),s=!1}else Yi!==null&&(D1(Yi),Yi=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||hn.current&1?zn===0&&(zn=3):w2())),t.updateQueue!==null&&(t.flags|=4),hr(t),null);case 4:return nu(),C1(e,t),e===null&&Fd(t.stateNode.containerInfo),hr(t),null;case 10:return n2(t.type._context),hr(t),null;case 17:return zr(t.type)&&Sp(),hr(t),null;case 19:if(on(hn),s=t.memoizedState,s===null)return hr(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Qu(s,!1);else{if(zn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Tp(e),o!==null){for(t.flags|=128,Qu(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Zt(hn,hn.current&1|2),t.child}e=e.sibling}s.tail!==null&&kn()>iu&&(t.flags|=128,r=!0,Qu(s,!1),t.lanes=4194304)}else{if(!r)if(e=Tp(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qu(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!cn)return hr(t),null}else 2*kn()-s.renderingStartTime>iu&&n!==1073741824&&(t.flags|=128,r=!0,Qu(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=kn(),t.sibling=null,n=hn.current,Zt(hn,r?n&1|2:n&1),t):(hr(t),null);case 22:case 23:return y2(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?si&1073741824&&(hr(t),t.subtreeFlags&6&&(t.flags|=8192)):hr(t),null;case 24:return null;case 25:return null}throw Error(Ee(156,t.tag))}function hE(e,t){switch(Jv(t),t.tag){case 1:return zr(t.type)&&Sp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nu(),on(Ur),on(wr),a2(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return o2(t),null;case 13:if(on(hn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ee(340));eu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return on(hn),null;case 4:return nu(),null;case 10:return n2(t.type._context),null;case 22:case 23:return y2(),null;case 24:return null;default:return null}}var _f=!1,yr=!1,fE=typeof WeakSet=="function"?WeakSet:Set,Me=null;function Sc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xn(e,t,r)}else n.current=null}function P1(e,t,n){try{n()}catch(r){xn(e,t,r)}}var zw=!1;function pE(e,t){if(h1=bp,e=F3(),Yv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,d=0,g=e,p=null;t:for(;;){for(var h;g!==n||i!==0&&g.nodeType!==3||(a=o+i),g!==s||r!==0&&g.nodeType!==3||(l=o+r),g.nodeType===3&&(o+=g.nodeValue.length),(h=g.firstChild)!==null;)p=g,g=h;for(;;){if(g===e)break t;if(p===n&&++c===i&&(a=o),p===s&&++d===r&&(l=o),(h=g.nextSibling)!==null)break;g=p,p=g.parentNode}g=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(f1={focusedElem:e,selectionRange:n},bp=!1,Me=t;Me!==null;)if(t=Me,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Me=e;else for(;Me!==null;){t=Me;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var w=b.memoizedProps,_=b.memoizedState,v=t.stateNode,x=v.getSnapshotBeforeUpdate(t.elementType===t.type?w:Vi(t.type,w),_);v.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var A=t.stateNode.containerInfo;A.nodeType===1?A.textContent="":A.nodeType===9&&A.documentElement&&A.removeChild(A.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ee(163))}}catch(N){xn(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,Me=e;break}Me=t.return}return b=zw,zw=!1,b}function vd(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&P1(t,n,s)}i=i.next}while(i!==r)}}function f0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function L1(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function j_(e){var t=e.alternate;t!==null&&(e.alternate=null,j_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ks],delete t[Bd],delete t[m1],delete t[YN],delete t[XN])),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 O_(e){return e.tag===5||e.tag===3||e.tag===4}function qw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||O_(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 T1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ap));else if(r!==4&&(e=e.child,e!==null))for(T1(e,t,n),e=e.sibling;e!==null;)T1(e,t,n),e=e.sibling}function R1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(R1(e,t,n),e=e.sibling;e!==null;)R1(e,t,n),e=e.sibling}var tr=null,Qi=!1;function Oo(e,t,n){for(n=n.child;n!==null;)I_(e,t,n),n=n.sibling}function I_(e,t,n){if(Cs&&typeof Cs.onCommitFiberUnmount=="function")try{Cs.onCommitFiberUnmount(s0,n)}catch{}switch(n.tag){case 5:yr||Sc(n,t);case 6:var r=tr,i=Qi;tr=null,Oo(e,t,n),tr=r,Qi=i,tr!==null&&(Qi?(e=tr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):tr.removeChild(n.stateNode));break;case 18:tr!==null&&(Qi?(e=tr,n=n.stateNode,e.nodeType===8?$g(e.parentNode,n):e.nodeType===1&&$g(e,n),Od(e)):$g(tr,n.stateNode));break;case 4:r=tr,i=Qi,tr=n.stateNode.containerInfo,Qi=!0,Oo(e,t,n),tr=r,Qi=i;break;case 0:case 11:case 14:case 15:if(!yr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&P1(n,t,o),i=i.next}while(i!==r)}Oo(e,t,n);break;case 1:if(!yr&&(Sc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){xn(n,t,a)}Oo(e,t,n);break;case 21:Oo(e,t,n);break;case 22:n.mode&1?(yr=(r=yr)||n.memoizedState!==null,Oo(e,t,n),yr=r):Oo(e,t,n);break;default:Oo(e,t,n)}}function Hw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fE),t.forEach(function(r){var i=AE.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function qi(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:tr=a.stateNode,Qi=!1;break e;case 3:tr=a.stateNode.containerInfo,Qi=!0;break e;case 4:tr=a.stateNode.containerInfo,Qi=!0;break e}a=a.return}if(tr===null)throw Error(Ee(160));I_(s,o,i),tr=null,Qi=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){xn(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)D_(t,e),t=t.sibling}function D_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(qi(t,e),gs(e),r&4){try{vd(3,e,e.return),f0(3,e)}catch(w){xn(e,e.return,w)}try{vd(5,e,e.return)}catch(w){xn(e,e.return,w)}}break;case 1:qi(t,e),gs(e),r&512&&n!==null&&Sc(n,n.return);break;case 5:if(qi(t,e),gs(e),r&512&&n!==null&&Sc(n,n.return),e.flags&32){var i=e.stateNode;try{Ld(i,"")}catch(w){xn(e,e.return,w)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&i3(i,s),n1(a,o);var c=n1(a,s);for(o=0;o<l.length;o+=2){var d=l[o],g=l[o+1];d==="style"?c3(i,g):d==="dangerouslySetInnerHTML"?a3(i,g):d==="children"?Ld(i,g):Fv(i,d,g,c)}switch(a){case"input":Xm(i,s);break;case"textarea":s3(i,s);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?Ec(i,!!s.multiple,h,!1):p!==!!s.multiple&&(s.defaultValue!=null?Ec(i,!!s.multiple,s.defaultValue,!0):Ec(i,!!s.multiple,s.multiple?[]:"",!1))}i[Bd]=s}catch(w){xn(e,e.return,w)}}break;case 6:if(qi(t,e),gs(e),r&4){if(e.stateNode===null)throw Error(Ee(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(w){xn(e,e.return,w)}}break;case 3:if(qi(t,e),gs(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Od(t.containerInfo)}catch(w){xn(e,e.return,w)}break;case 4:qi(t,e),gs(e);break;case 13:qi(t,e),gs(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(m2=kn())),r&4&&Hw(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(yr=(c=yr)||d,qi(t,e),yr=c):qi(t,e),gs(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(Me=e,d=e.child;d!==null;){for(g=Me=d;Me!==null;){switch(p=Me,h=p.child,p.tag){case 0:case 11:case 14:case 15:vd(4,p,p.return);break;case 1:Sc(p,p.return);var b=p.stateNode;if(typeof b.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(w){xn(r,n,w)}}break;case 5:Sc(p,p.return);break;case 22:if(p.memoizedState!==null){Vw(g);continue}}h!==null?(h.return=p,Me=h):Vw(g)}d=d.sibling}e:for(d=null,g=e;;){if(g.tag===5){if(d===null){d=g;try{i=g.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=g.stateNode,l=g.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=l3("display",o))}catch(w){xn(e,e.return,w)}}}else if(g.tag===6){if(d===null)try{g.stateNode.nodeValue=c?"":g.memoizedProps}catch(w){xn(e,e.return,w)}}else if((g.tag!==22&&g.tag!==23||g.memoizedState===null||g===e)&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break e;for(;g.sibling===null;){if(g.return===null||g.return===e)break e;d===g&&(d=null),g=g.return}d===g&&(d=null),g.sibling.return=g.return,g=g.sibling}}break;case 19:qi(t,e),gs(e),r&4&&Hw(e);break;case 21:break;default:qi(t,e),gs(e)}}function gs(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(O_(n)){var r=n;break e}n=n.return}throw Error(Ee(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Ld(i,""),r.flags&=-33);var s=qw(e);R1(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=qw(e);T1(e,a,o);break;default:throw Error(Ee(161))}}catch(l){xn(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gE(e,t,n){Me=e,F_(e)}function F_(e,t,n){for(var r=(e.mode&1)!==0;Me!==null;){var i=Me,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||_f;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||yr;a=_f;var c=yr;if(_f=o,(yr=l)&&!c)for(Me=i;Me!==null;)o=Me,l=o.child,o.tag===22&&o.memoizedState!==null?Gw(i):l!==null?(l.return=o,Me=l):Gw(i);for(;s!==null;)Me=s,F_(s),s=s.sibling;Me=i,_f=a,yr=c}Ww(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,Me=s):Ww(e)}}function Ww(e){for(;Me!==null;){var t=Me;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:yr||f0(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!yr)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Vi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Cw(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Cw(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var g=d.dehydrated;g!==null&&Od(g)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ee(163))}yr||t.flags&512&&L1(t)}catch(p){xn(t,t.return,p)}}if(t===e){Me=null;break}if(n=t.sibling,n!==null){n.return=t.return,Me=n;break}Me=t.return}}function Vw(e){for(;Me!==null;){var t=Me;if(t===e){Me=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Me=n;break}Me=t.return}}function Gw(e){for(;Me!==null;){var t=Me;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{f0(4,t)}catch(l){xn(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){xn(t,i,l)}}var s=t.return;try{L1(t)}catch(l){xn(t,s,l)}break;case 5:var o=t.return;try{L1(t)}catch(l){xn(t,o,l)}}}catch(l){xn(t,t.return,l)}if(t===e){Me=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Me=a;break}Me=t.return}}var mE=Math.ceil,Op=mo.ReactCurrentDispatcher,p2=mo.ReactCurrentOwner,Ci=mo.ReactCurrentBatchConfig,Ot=0,$n=null,On=null,rr=0,si=0,kc=Aa(0),zn=0,Vd=null,vl=0,p0=0,g2=0,yd=null,Fr=null,m2=0,iu=1/0,eo=null,Ip=!1,j1=null,la=null,Af=!1,Zo=null,Dp=0,wd=0,O1=null,tp=-1,np=0;function Lr(){return Ot&6?kn():tp!==-1?tp:tp=kn()}function ca(e){return e.mode&1?Ot&2&&rr!==0?rr&-rr:ZN.transition!==null?(np===0&&(np=x3()),np):(e=Wt,e!==0||(e=window.event,e=e===void 0?16:C3(e.type)),e):1}function Ji(e,t,n,r){if(50<wd)throw wd=0,O1=null,Error(Ee(185));gh(e,n,r),(!(Ot&2)||e!==$n)&&(e===$n&&(!(Ot&2)&&(p0|=n),zn===4&&Ho(e,rr)),qr(e,r),n===1&&Ot===0&&!(t.mode&1)&&(iu=kn()+500,u0&&Sa()))}function qr(e,t){var n=e.callbackNode;Z6(e,t);var r=wp(e,e===$n?rr:0);if(r===0)n!==null&&tw(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&tw(n),t===1)e.tag===0?JN($w.bind(null,e)):$3($w.bind(null,e)),KN(function(){!(Ot&6)&&Sa()}),n=null;else{switch(_3(r)){case 1:n=qv;break;case 4:n=w3;break;case 16:n=yp;break;case 536870912:n=b3;break;default:n=yp}n=V_(n,M_.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function M_(e,t){if(tp=-1,np=0,Ot&6)throw Error(Ee(327));var n=e.callbackNode;if(Rc()&&e.callbackNode!==n)return null;var r=wp(e,e===$n?rr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Fp(e,r);else{t=r;var i=Ot;Ot|=2;var s=U_();($n!==e||rr!==t)&&(eo=null,iu=kn()+500,dl(e,t));do try{wE();break}catch(a){B_(e,a)}while(!0);t2(),Op.current=s,Ot=i,On!==null?t=0:($n=null,rr=0,t=zn)}if(t!==0){if(t===2&&(i=a1(e),i!==0&&(r=i,t=I1(e,i))),t===1)throw n=Vd,dl(e,0),Ho(e,r),qr(e,kn()),n;if(t===6)Ho(e,r);else{if(i=e.current.alternate,!(r&30)&&!vE(i)&&(t=Fp(e,r),t===2&&(s=a1(e),s!==0&&(r=s,t=I1(e,s))),t===1))throw n=Vd,dl(e,0),Ho(e,r),qr(e,kn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Ee(345));case 2:Qa(e,Fr,eo);break;case 3:if(Ho(e,r),(r&130023424)===r&&(t=m2+500-kn(),10<t)){if(wp(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Lr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=g1(Qa.bind(null,e,Fr,eo),t);break}Qa(e,Fr,eo);break;case 4:if(Ho(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Xi(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=kn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*mE(r/1960))-r,10<r){e.timeoutHandle=g1(Qa.bind(null,e,Fr,eo),r);break}Qa(e,Fr,eo);break;case 5:Qa(e,Fr,eo);break;default:throw Error(Ee(329))}}}return qr(e,kn()),e.callbackNode===n?M_.bind(null,e):null}function I1(e,t){var n=yd;return e.current.memoizedState.isDehydrated&&(dl(e,t).flags|=256),e=Fp(e,t),e!==2&&(t=Fr,Fr=n,t!==null&&D1(t)),e}function D1(e){Fr===null?Fr=e:Fr.push.apply(Fr,e)}function vE(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Zi(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Ho(e,t){for(t&=~g2,t&=~p0,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Xi(t),r=1<<n;e[n]=-1,t&=~r}}function $w(e){if(Ot&6)throw Error(Ee(327));Rc();var t=wp(e,0);if(!(t&1))return qr(e,kn()),null;var n=Fp(e,t);if(e.tag!==0&&n===2){var r=a1(e);r!==0&&(t=r,n=I1(e,r))}if(n===1)throw n=Vd,dl(e,0),Ho(e,t),qr(e,kn()),n;if(n===6)throw Error(Ee(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qa(e,Fr,eo),qr(e,kn()),null}function v2(e,t){var n=Ot;Ot|=1;try{return e(t)}finally{Ot=n,Ot===0&&(iu=kn()+500,u0&&Sa())}}function yl(e){Zo!==null&&Zo.tag===0&&!(Ot&6)&&Rc();var t=Ot;Ot|=1;var n=Ci.transition,r=Wt;try{if(Ci.transition=null,Wt=1,e)return e()}finally{Wt=r,Ci.transition=n,Ot=t,!(Ot&6)&&Sa()}}function y2(){si=kc.current,on(kc)}function dl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,$N(n)),On!==null)for(n=On.return;n!==null;){var r=n;switch(Jv(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Sp();break;case 3:nu(),on(Ur),on(wr),a2();break;case 5:o2(r);break;case 4:nu();break;case 13:on(hn);break;case 19:on(hn);break;case 10:n2(r.type._context);break;case 22:case 23:y2()}n=n.return}if($n=e,On=e=ua(e.current,null),rr=si=t,zn=0,Vd=null,g2=p0=vl=0,Fr=yd=null,tl!==null){for(t=0;t<tl.length;t++)if(n=tl[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}tl=null}return e}function B_(e,t){do{var n=On;try{if(t2(),Jf.current=jp,Rp){for(var r=fn.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Rp=!1}if(ml=0,Vn=Un=fn=null,md=!1,qd=0,p2.current=null,n===null||n.return===null){zn=1,Vd=t,On=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=rr,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,g=d.tag;if(!(d.mode&1)&&(g===0||g===11||g===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=Ow(o);if(h!==null){h.flags&=-257,Iw(h,o,a,s,t),h.mode&1&&jw(s,c,t),t=h,l=c;var b=t.updateQueue;if(b===null){var w=new Set;w.add(l),t.updateQueue=w}else b.add(l);break e}else{if(!(t&1)){jw(s,c,t),w2();break e}l=Error(Ee(426))}}else if(cn&&a.mode&1){var _=Ow(o);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Iw(_,o,a,s,t),Zv(ru(l,a));break e}}s=l=ru(l,a),zn!==4&&(zn=2),yd===null?yd=[s]:yd.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var v=__(s,l,t);Ew(s,v);break e;case 1:a=l;var x=s.type,A=s.stateNode;if(!(s.flags&128)&&(typeof x.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(la===null||!la.has(A)))){s.flags|=65536,t&=-t,s.lanes|=t;var N=A_(s,a,t);Ew(s,N);break e}}s=s.return}while(s!==null)}q_(n)}catch(I){t=I,On===n&&n!==null&&(On=n=n.return);continue}break}while(!0)}function U_(){var e=Op.current;return Op.current=jp,e===null?jp:e}function w2(){(zn===0||zn===3||zn===2)&&(zn=4),$n===null||!(vl&268435455)&&!(p0&268435455)||Ho($n,rr)}function Fp(e,t){var n=Ot;Ot|=2;var r=U_();($n!==e||rr!==t)&&(eo=null,dl(e,t));do try{yE();break}catch(i){B_(e,i)}while(!0);if(t2(),Ot=n,Op.current=r,On!==null)throw Error(Ee(261));return $n=null,rr=0,zn}function yE(){for(;On!==null;)z_(On)}function wE(){for(;On!==null&&!W6();)z_(On)}function z_(e){var t=W_(e.alternate,e,si);e.memoizedProps=e.pendingProps,t===null?q_(e):On=t,p2.current=null}function q_(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=hE(n,t),n!==null){n.flags&=32767,On=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{zn=6,On=null;return}}else if(n=dE(n,t,si),n!==null){On=n;return}if(t=t.sibling,t!==null){On=t;return}On=t=e}while(t!==null);zn===0&&(zn=5)}function Qa(e,t,n){var r=Wt,i=Ci.transition;try{Ci.transition=null,Wt=1,bE(e,t,n,r)}finally{Ci.transition=i,Wt=r}return null}function bE(e,t,n,r){do Rc();while(Zo!==null);if(Ot&6)throw Error(Ee(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Ee(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(eN(e,s),e===$n&&(On=$n=null,rr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Af||(Af=!0,V_(yp,function(){return Rc(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Ci.transition,Ci.transition=null;var o=Wt;Wt=1;var a=Ot;Ot|=4,p2.current=null,pE(e,n),D_(n,e),UN(f1),bp=!!h1,f1=h1=null,e.current=n,gE(n),V6(),Ot=a,Wt=o,Ci.transition=s}else e.current=n;if(Af&&(Af=!1,Zo=e,Dp=i),s=e.pendingLanes,s===0&&(la=null),K6(n.stateNode),qr(e,kn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ip)throw Ip=!1,e=j1,j1=null,e;return Dp&1&&e.tag!==0&&Rc(),s=e.pendingLanes,s&1?e===O1?wd++:(wd=0,O1=e):wd=0,Sa(),null}function Rc(){if(Zo!==null){var e=_3(Dp),t=Ci.transition,n=Wt;try{if(Ci.transition=null,Wt=16>e?16:e,Zo===null)var r=!1;else{if(e=Zo,Zo=null,Dp=0,Ot&6)throw Error(Ee(331));var i=Ot;for(Ot|=4,Me=e.current;Me!==null;){var s=Me,o=s.child;if(Me.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(Me=c;Me!==null;){var d=Me;switch(d.tag){case 0:case 11:case 15:vd(8,d,s)}var g=d.child;if(g!==null)g.return=d,Me=g;else for(;Me!==null;){d=Me;var p=d.sibling,h=d.return;if(j_(d),d===c){Me=null;break}if(p!==null){p.return=h,Me=p;break}Me=h}}}var b=s.alternate;if(b!==null){var w=b.child;if(w!==null){b.child=null;do{var _=w.sibling;w.sibling=null,w=_}while(w!==null)}}Me=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,Me=o;else e:for(;Me!==null;){if(s=Me,s.flags&2048)switch(s.tag){case 0:case 11:case 15:vd(9,s,s.return)}var v=s.sibling;if(v!==null){v.return=s.return,Me=v;break e}Me=s.return}}var x=e.current;for(Me=x;Me!==null;){o=Me;var A=o.child;if(o.subtreeFlags&2064&&A!==null)A.return=o,Me=A;else e:for(o=x;Me!==null;){if(a=Me,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:f0(9,a)}}catch(I){xn(a,a.return,I)}if(a===o){Me=null;break e}var N=a.sibling;if(N!==null){N.return=a.return,Me=N;break e}Me=a.return}}if(Ot=i,Sa(),Cs&&typeof Cs.onPostCommitFiberRoot=="function")try{Cs.onPostCommitFiberRoot(s0,e)}catch{}r=!0}return r}finally{Wt=n,Ci.transition=t}}return!1}function Kw(e,t,n){t=ru(n,t),t=__(e,t,1),e=aa(e,t,1),t=Lr(),e!==null&&(gh(e,1,t),qr(e,t))}function xn(e,t,n){if(e.tag===3)Kw(e,e,n);else for(;t!==null;){if(t.tag===3){Kw(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(la===null||!la.has(r))){e=ru(n,e),e=A_(t,e,1),t=aa(t,e,1),e=Lr(),t!==null&&(gh(t,1,e),qr(t,e));break}}t=t.return}}function xE(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Lr(),e.pingedLanes|=e.suspendedLanes&n,$n===e&&(rr&n)===n&&(zn===4||zn===3&&(rr&130023424)===rr&&500>kn()-m2?dl(e,0):g2|=n),qr(e,t)}function H_(e,t){t===0&&(e.mode&1?(t=ff,ff<<=1,!(ff&130023424)&&(ff=4194304)):t=1);var n=Lr();e=ho(e,t),e!==null&&(gh(e,t,n),qr(e,n))}function _E(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),H_(e,n)}function AE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ee(314))}r!==null&&r.delete(t),H_(e,n)}var W_;W_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ur.current)Mr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Mr=!1,uE(e,t,n);Mr=!!(e.flags&131072)}else Mr=!1,cn&&t.flags&1048576&&K3(t,Ep,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ep(e,t),e=t.pendingProps;var i=Zc(t,wr.current);Tc(t,n),i=c2(null,t,r,e,i,n);var s=u2();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zr(r)?(s=!0,kp(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i2(t),i.updater=h0,t.stateNode=i,i._reactInternals=t,_1(t,r,e,n),t=k1(null,t,r,!0,s,n)):(t.tag=0,cn&&s&&Xv(t),Er(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ep(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=kE(r),e=Vi(r,e),i){case 0:t=S1(null,t,r,e,n);break e;case 1:t=Mw(null,t,r,e,n);break e;case 11:t=Dw(null,t,r,e,n);break e;case 14:t=Fw(null,t,r,Vi(r.type,e),n);break e}throw Error(Ee(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vi(r,i),S1(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vi(r,i),Mw(e,t,r,i,n);case 3:e:{if(E_(t),e===null)throw Error(Ee(387));
vendor: 4,377 bytes, line 40
40r=t.pendingProps,s=t.memoizedState,i=s.element,e_(e,t),Lp(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=ru(Error(Ee(423)),t),t=Bw(e,t,r,n,i);break e}else if(r!==i){i=ru(Error(Ee(424)),t),t=Bw(e,t,r,n,i);break e}else for(li=oa(t.stateNode.containerInfo.firstChild),di=t,cn=!0,Yi=null,n=J3(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(eu(),r===i){t=fo(e,t,n);break e}Er(e,t,r,n)}t=t.child}return t;case 5:return t_(t),e===null&&w1(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,p1(r,i)?o=null:s!==null&&p1(r,s)&&(t.flags|=32),N_(e,t),Er(e,t,o,n),t.child;case 6:return e===null&&w1(t),null;case 13:return C_(e,t,n);case 4:return s2(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tu(t,null,r,n):Er(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vi(r,i),Dw(e,t,r,i,n);case 7:return Er(e,t,t.pendingProps,n),t.child;case 8:return Er(e,t,t.pendingProps.children,n),t.child;case 12:return Er(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,Zt(Cp,r._currentValue),r._currentValue=o,s!==null)if(Zi(s.value,o)){if(s.children===i.children&&!Ur.current){t=fo(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=lo(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),b1(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(Ee(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),b1(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Er(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Tc(t,n),i=Pi(i),r=r(i),t.flags|=1,Er(e,t,r,n),t.child;case 14:return r=t.type,i=Vi(r,t.pendingProps),i=Vi(r.type,i),Fw(e,t,r,i,n);case 15:return S_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vi(r,i),ep(e,t),t.tag=1,zr(r)?(e=!0,kp(t)):e=!1,Tc(t,n),x_(t,r,i),_1(t,r,i,n),k1(null,t,r,!0,e,n);case 19:return P_(e,t,n);case 22:return k_(e,t,n)}throw Error(Ee(156,t.tag))};function V_(e,t){return y3(e,t)}function SE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ei(e,t,n,r){return new SE(e,t,n,r)}function b2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kE(e){if(typeof e=="function")return b2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bv)return 11;if(e===Uv)return 14}return 2}function ua(e,t){var n=e.alternate;return n===null?(n=Ei(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function rp(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")b2(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case gc:return hl(n.children,i,s,t);case Mv:o=8,i|=8;break;case Gm:return e=Ei(12,n,t,i|2),e.elementType=Gm,e.lanes=s,e;case $m:return e=Ei(13,n,t,i),e.elementType=$m,e.lanes=s,e;case Km:return e=Ei(19,n,t,i),e.elementType=Km,e.lanes=s,e;case t3:return g0(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zx:o=10;break e;case e3:o=9;break e;case Bv:o=11;break e;
vendor: 5,997 bytes, line 40
40case Uv:o=14;break e;case Uo:o=16,r=null;break e}throw Error(Ee(130,e==null?e:typeof e,""))}return t=Ei(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function hl(e,t,n,r){return e=Ei(7,e,r,t),e.lanes=n,e}function g0(e,t,n,r){return e=Ei(22,e,r,t),e.elementType=t3,e.lanes=n,e.stateNode={isHidden:!1},e}function tm(e,t,n){return e=Ei(6,e,null,t),e.lanes=n,e}function nm(e,t,n){return t=Ei(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function NE(e,t,n,r,i){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=Dg(0),this.expirationTimes=Dg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dg(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function x2(e,t,n,r,i,s,o,a,l){return e=new NE(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ei(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},i2(s),e}function EE(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:pc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function G_(e){if(!e)return ma;e=e._reactInternals;e:{if(Nl(e)!==e||e.tag!==1)throw Error(Ee(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(zr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ee(171))}if(e.tag===1){var n=e.type;if(zr(n))return G3(e,n,t)}return t}function $_(e,t,n,r,i,s,o,a,l){return e=x2(n,r,!0,e,i,s,o,a,l),e.context=G_(null),n=e.current,r=Lr(),i=ca(n),s=lo(r,i),s.callback=t??null,aa(n,s,i),e.current.lanes=i,gh(e,i,r),qr(e,r),e}function m0(e,t,n,r){var i=t.current,s=Lr(),o=ca(i);return n=G_(n),t.context===null?t.context=n:t.pendingContext=n,t=lo(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=aa(i,t,o),e!==null&&(Ji(e,i,o,s),Xf(e,i,o)),o}function Mp(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 Qw(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _2(e,t){Qw(e,t),(e=e.alternate)&&Qw(e,t)}function CE(){return null}var K_=typeof reportError=="function"?reportError:function(e){console.error(e)};function A2(e){this._internalRoot=e}v0.prototype.render=A2.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ee(409));m0(e,t,null,null)};v0.prototype.unmount=A2.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yl(function(){m0(null,e,null,null)}),t[uo]=null}};function v0(e){this._internalRoot=e}v0.prototype.unstable_scheduleHydration=function(e){if(e){var t=k3();e={blockedOn:null,target:e,priority:t};for(var n=0;n<qo.length&&t!==0&&t<qo[n].priority;n++);qo.splice(n,0,e),n===0&&E3(e)}};function S2(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function y0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Yw(){}function PE(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=Mp(o);s.call(c)}}var o=$_(t,r,e,0,null,!1,!1,"",Yw);return e._reactRootContainer=o,e[uo]=o.current,Fd(e.nodeType===8?e.parentNode:e),yl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=Mp(l);a.call(c)}}var l=x2(e,0,!1,null,null,!1,!1,"",Yw);return e._reactRootContainer=l,e[uo]=l.current,Fd(e.nodeType===8?e.parentNode:e),yl(function(){m0(t,l,n,r)}),l}function w0(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Mp(o);a.call(l)}}m0(t,o,e,i)}else o=PE(n,t,e,i,r);return Mp(o)}A3=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=sd(t.pendingLanes);n!==0&&(Hv(t,n|1),qr(t,kn()),!(Ot&6)&&(iu=kn()+500,Sa()))}break;case 13:yl(function(){var r=ho(e,1);if(r!==null){var i=Lr();Ji(r,e,1,i)}}),_2(e,1)}};Wv=function(e){if(e.tag===13){var t=ho(e,134217728);if(t!==null){var n=Lr();Ji(t,e,134217728,n)}_2(e,134217728)}};S3=function(e){if(e.tag===13){var t=ca(e),n=ho(e,t);if(n!==null){var r=Lr();Ji(n,e,t,r)}_2(e,t)}};k3=function(){return Wt};N3=function(e,t){var n=Wt;try{return Wt=e,t()}finally{Wt=n}};i1=function(e,t,n){switch(t){case"input":if(Xm(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=c0(r);if(!i)throw Error(Ee(90));r3(r),Xm(r,i)}}}break;case"textarea":s3(e,n);break;case"select":t=n.value,t!=null&&Ec(e,!!n.multiple,t,!1)}};h3=v2;f3=yl;var LE={usingClientEntryPoint:!1,Events:[vh,wc,c0,u3,d3,v2]},Yu={findFiberByHostInstance:el,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},TE={bundleType:Yu.bundleType,version:Yu.version,rendererPackageName:Yu.rendererPackageName,rendererConfig:Yu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=m3(e),e===null?null:e.stateNode},findFiberByHostInstance:Yu.findFiberByHostInstance||CE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sf.isDisabled&&Sf.supportsFiber)try{s0=Sf.inject(TE),Cs=Sf}catch{}}pi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=LE;pi.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S2(t))throw Error(Ee(200));return EE(e,t,null,n)};pi.createRoot=function(e,t){if(!S2(e))throw Error(Ee(299));var n=!1,r="",i=K_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=x2(e,1,!1,null,null,n,!1,r,i),e[uo]=t.current,Fd(e.nodeType===8?e.parentNode:e),new A2(t)};pi.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(Ee(188)):(e=Object.keys(e).join(","),Error(Ee(268,e)));return e=m3(t),e=e===null?null:e.stateNode,e};pi.flushSync=function(e){return yl(e)};pi.hydrate=function(e,t,n){if(!y0(t))throw Error(Ee(200));return w0(null,e,t,!0,n)};pi.hydrateRoot=function(e,t,n){if(!S2(e))throw Error(Ee(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=K_;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=$_(t,null,e,1,n??null,i,!1,s,o),e[uo]=t.current,Fd(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new v0(t)};pi.render=function(e,t,n){if(!y0(t))throw Error(Ee(200));return w0(null,e,t,!1,n)};pi.unmountComponentAtNode=function(e){if(!y0(e))throw Error(Ee(40));return e._reactRootContainer?(yl(function(){w0(null,null,e,!1,function(){e._reactRootContainer=null,e[uo]=null})}),!0):!1};pi.unstable_batchedUpdates=v2;pi.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!y0(n))throw Error(Ee(200));if(e==null||e._reactInternals===void 0)throw Error(Ee(38));return w0(e,t,n,!1,r)};pi.version="18.3.1-next-f1338f8080-20240426";function Q_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Q_)}catch(e){console.error(e)}}Q_(),Qx.exports=pi;var wh=Qx.exports;const Y_=Fx(wh);var X_,Xw=wh;X_=Xw.createRoot,Xw.hydrateRoot;const RE=1,jE=1e6;let rm=0;function OE(){return rm=(rm+1)%Number.MAX_SAFE_INTEGER,rm.toString()}const im=new Map,Jw=e=>{if(im.has(e))return;const t=setTimeout(()=>{im.delete(e),bd({type:"REMOVE_TOAST",toastId:e})},jE);im.set(e,t)},IE=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,RE)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Jw(n):e.toasts.forEach(r=>{Jw(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ip=[];let sp={toasts:[]};function bd(e){sp=IE(sp,e),ip.forEach(t=>{t(sp)})}function DE({...e}){const t=OE(),n=i=>bd({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>bd({type:"DISMISS_TOAST",toastId:t});return bd({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function FE(){const[e,t]=W.useState(sp);return W.useEffect(()=>(ip.push(t),()=>{const n=ip.indexOf(t);n>-1&&ip.splice(n,1)}),[e]),{...e,toast:DE,dismiss:n=>bd({type:"DISMISS_TOAST",toastId:n})}}function Nn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function ME(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function J_(...e){return t=>e.forEach(n=>ME(n,t))}function Ti(...e){return W.useCallback(J_(...e),e)}function BE(e,t=[]){let n=[];function r(s,o){const a=W.createContext(o),l=n.length;n=[...n,o];function c(g){const{scope:p,children:h,...b}=g,w=(p==null?void 0:p[e][l])||a,_=W.useMemo(()=>b,Object.values(b));return k.jsx(w.Provider,{value:_,children:h})}function d(g,p){const h=(p==null?void 0:p[e][l])||a,b=W.useContext(h);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${g}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,d]}const i=()=>{const s=n.map(o=>W.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return W.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,UE(i,...t)]}function UE(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:c}
vendor: 10,619 bytes, line 40
40)=>{const g=l(s)[`__scope${c}`];return{...a,...g}},{});return W.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var Gd=W.forwardRef((e,t)=>{const{children:n,...r}=e,i=W.Children.toArray(n),s=i.find(zE);if(s){const o=s.props.children,a=i.map(l=>l===s?W.Children.count(o)>1?W.Children.only(null):W.isValidElement(o)?o.props.children:null:l);return k.jsx(F1,{...r,ref:t,children:W.isValidElement(o)?W.cloneElement(o,void 0,a):null})}return k.jsx(F1,{...r,ref:t,children:n})});Gd.displayName="Slot";var F1=W.forwardRef((e,t)=>{const{children:n,...r}=e;if(W.isValidElement(n)){const i=HE(n);return W.cloneElement(n,{...qE(r,n.props),ref:t?J_(t,i):i})}return W.Children.count(n)>1?W.Children.only(null):null});F1.displayName="SlotClone";var Z_=({children:e})=>k.jsx(k.Fragment,{children:e});function zE(e){return W.isValidElement(e)&&e.type===Z_}function qE(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...a)=>{s(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function HE(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function WE(e){const t=e+"CollectionProvider",[n,r]=BE(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=h=>{const{scope:b,children:w}=h,_=Pe.useRef(null),v=Pe.useRef(new Map).current;return k.jsx(i,{scope:b,itemMap:v,collectionRef:_,children:w})};o.displayName=t;const a=e+"CollectionSlot",l=Pe.forwardRef((h,b)=>{const{scope:w,children:_}=h,v=s(a,w),x=Ti(b,v.collectionRef);return k.jsx(Gd,{ref:x,children:_})});l.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",g=Pe.forwardRef((h,b)=>{const{scope:w,children:_,...v}=h,x=Pe.useRef(null),A=Ti(b,x),N=s(c,w);return Pe.useEffect(()=>(N.itemMap.set(x,{ref:x,...v}),()=>void N.itemMap.delete(x))),k.jsx(Gd,{[d]:"",ref:A,children:_})});g.displayName=c;function p(h){const b=s(e+"CollectionConsumer",h);return Pe.useCallback(()=>{const _=b.collectionRef.current;if(!_)return[];const v=Array.from(_.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((N,I)=>v.indexOf(N.ref.current)-v.indexOf(I.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:l,ItemSlot:g},p,r]}function k2(e,t=[]){let n=[];function r(s,o){const a=W.createContext(o),l=n.length;n=[...n,o];const c=g=>{var v;const{scope:p,children:h,...b}=g,w=((v=p==null?void 0:p[e])==null?void 0:v[l])||a,_=W.useMemo(()=>b,Object.values(b));return k.jsx(w.Provider,{value:_,children:h})};c.displayName=s+"Provider";function d(g,p){var w;const h=((w=p==null?void 0:p[e])==null?void 0:w[l])||a,b=W.useContext(h);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[c,d]}const i=()=>{const s=n.map(o=>W.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return W.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,VE(i,...t)]}function VE(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const g=l(s)[`__scope${c}`];return{...a,...g}},{});return W.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var GE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],qn=GE.reduce((e,t)=>{const n=W.forwardRef((r,i)=>{const{asChild:s,...o}=r,a=s?Gd:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(a,{...o,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function e4(e,t){e&&wh.flushSync(()=>e.dispatchEvent(t))}function Rs(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e}),W.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function $E(e,t=globalThis==null?void 0:globalThis.document){const n=Rs(e);W.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var KE="DismissableLayer",M1="dismissableLayer.update",QE="dismissableLayer.pointerDownOutside",YE="dismissableLayer.focusOutside",Zw,t4=W.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N2=W.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=e,c=W.useContext(t4),[d,g]=W.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=W.useState({}),b=Ti(t,K=>g(K)),w=Array.from(c.layers),[_]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=w.indexOf(_),x=d?w.indexOf(d):-1,A=c.layersWithOutsidePointerEventsDisabled.size>0,N=x>=v,I=JE(K=>{const M=K.target,D=[...c.branches].some(X=>X.contains(M));!N||D||(i==null||i(K),o==null||o(K),K.defaultPrevented||a==null||a())},p),$=ZE(K=>{const M=K.target;[...c.branches].some(X=>X.contains(M))||(s==null||s(K),o==null||o(K),K.defaultPrevented||a==null||a())},p);return $E(K=>{x===c.layers.size-1&&(r==null||r(K),!K.defaultPrevented&&a&&(K.preventDefault(),a()))},p),W.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Zw=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),e5(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Zw)}},[d,p,n,c]),W.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),e5())},[d,c]),W.useEffect(()=>{const K=()=>h({});return document.addEventListener(M1,K),()=>document.removeEventListener(M1,K)},[]),k.jsx(qn.div,{...l,ref:b,style:{pointerEvents:A?N?"auto":"none":void 0,...e.style},onFocusCapture:Nn(e.onFocusCapture,$.onFocusCapture),onBlurCapture:Nn(e.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Nn(e.onPointerDownCapture,I.onPointerDownCapture)})});N2.displayName=KE;var XE="DismissableLayerBranch",n4=W.forwardRef((e,t)=>{const n=W.useContext(t4),r=W.useRef(null),i=Ti(t,r);return W.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),k.jsx(qn.div,{...e,ref:i})});n4.displayName=XE;function JE(e,t=globalThis==null?void 0:globalThis.document){const n=Rs(e),r=W.useRef(!1),i=W.useRef(()=>{});return W.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){r4(QE,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ZE(e,t=globalThis==null?void 0:globalThis.document){const n=Rs(e),r=W.useRef(!1);return W.useEffect(()=>{const i=s=>{s.target&&!r.current&&r4(YE,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function e5(){const e=new CustomEvent(M1);document.dispatchEvent(e)}function r4(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?e4(i,s):i.dispatchEvent(s)}var e8=N2,t8=n4,wl=globalThis!=null&&globalThis.document?W.useLayoutEffect:()=>{},n8="Portal",i4=W.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,s]=W.useState(!1);wl(()=>s(!0),[]);const o=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Y_.createPortal(k.jsx(qn.div,{...r,ref:t}),o):null});i4.displayName=n8;function r8(e,t){return W.useReducer((n,r)=>t[n][r]??n,e)}var b0=e=>{const{present:t,children:n}=e,r=i8(t),i=typeof n=="function"?n({present:r.isPresent}):W.Children.only(n),s=Ti(r.ref,s8(i));return typeof n=="function"||r.isPresent?W.cloneElement(i,{ref:s}):null};b0.displayName="Presence";function i8(e){const[t,n]=W.useState(),r=W.useRef({}),i=W.useRef(e),s=W.useRef("none"),o=e?"mounted":"unmounted",[a,l]=r8(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return W.useEffect(()=>{const c=kf(r.current);s.current=a==="mounted"?c:"none"},[a]),wl(()=>{const c=r.current,d=i.current;if(d!==e){const p=s.current,h=kf(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&p!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),wl(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,g=h=>{const w=kf(r.current).includes(h.animationName);if(h.target===t&&w&&(l("ANIMATION_END"),!i.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},p=h=>{h.target===t&&(s.current=kf(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:W.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function kf(e){return(e==null?void 0:e.animationName)||"none"}function s8(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function s4({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=o8({defaultProp:t,onChange:n}),s=e!==void 0,o=s?e:r,a=Rs(n),l=W.useCallback(c=>{if(s){const g=typeof c=="function"?c(e):c;g!==e&&a(g)}else i(c)},[s,e,i,a]);return[o,l]}function o8({defaultProp:e,onChange:t}){const n=W.useState(e),[r]=n,i=W.useRef(r),s=Rs(t);return W.useEffect(()=>{i.current!==r&&(s(r),i.current=r)},[r,i,s]),n}var a8="VisuallyHidden",x0=W.forwardRef((e,t)=>
40k.jsx(qn.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));x0.displayName=a8;var l8=x0,E2="ToastProvider",[C2,c8,u8]=WE("Toast"),[o4,xF]=k2("Toast",[u8]),[d8,_0]=o4(E2),a4=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[a,l]=W.useState(null),[c,d]=W.useState(0),g=W.useRef(!1),p=W.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${E2}\`. Expected non-empty \`string\`.`),k.jsx(C2.Provider,{scope:t,children:k.jsx(d8,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:W.useCallback(()=>d(h=>h+1),[]),onToastRemove:W.useCallback(()=>d(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:p,children:o})})};a4.displayName=E2;var l4="ToastViewport",h8=["F8"],B1="toast.viewportPause",U1="toast.viewportResume",c4=W.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=h8,label:i="Notifications ({hotkey})",...s}=e,o=_0(l4,n),a=c8(n),l=W.useRef(null),c=W.useRef(null),d=W.useRef(null),g=W.useRef(null),p=Ti(t,g,o.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=o.toastCount>0;W.useEffect(()=>{const _=v=>{var A;r.length!==0&&r.every(N=>v[N]||v.code===N)&&((A=g.current)==null||A.focus())};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[r]),W.useEffect(()=>{const _=l.current,v=g.current;if(b&&_&&v){const x=()=>{if(!o.isClosePausedRef.current){const $=new CustomEvent(B1);v.dispatchEvent($),o.isClosePausedRef.current=!0}},A=()=>{if(o.isClosePausedRef.current){const $=new CustomEvent(U1);v.dispatchEvent($),o.isClosePausedRef.current=!1}},N=$=>{!_.contains($.relatedTarget)&&A()},I=()=>{_.contains(document.activeElement)||A()};return _.addEventListener("focusin",x),_.addEventListener("focusout",N),_.addEventListener("pointermove",x),_.addEventListener("pointerleave",I),window.addEventListener("blur",x),window.addEventListener("focus",A),()=>{_.removeEventListener("focusin",x),_.removeEventListener("focusout",N),_.removeEventListener("pointermove",x),_.removeEventListener("pointerleave",I),window.removeEventListener("blur",x),window.removeEventListener("focus",A)}}},[b,o.isClosePausedRef]);const w=W.useCallback(({tabbingDirection:_})=>{const x=a().map(A=>{const N=A.ref.current,I=[N,...k8(N)];return _==="forwards"?I:I.reverse()});return(_==="forwards"?x.reverse():x).flat()},[a]);return W.useEffect(()=>{const _=g.current;if(_){const v=x=>{var I,$,K;const A=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!A){const M=document.activeElement,D=x.shiftKey;if(x.target===_&&D){(I=c.current)==null||I.focus();return}const j=w({tabbingDirection:D?"backwards":"forwards"}),Y=j.findIndex(q=>q===M);sm(j.slice(Y+1))?x.preventDefault():D?($=c.current)==null||$.focus():(K=d.current)==null||K.focus()}};return _.addEventListener("keydown",v),()=>_.removeEventListener("keydown",v)}},[a,w]),k.jsxs(t8,{ref:l,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&k.jsx(z1,{ref:c,onFocusFromOutsideViewport:()=>{const _=w({tabbingDirection:"forwards"});sm(_)}}),k.jsx(C2.Slot,{scope:n,children:k.jsx(qn.ol,{tabIndex:-1,...s,ref:p})}),b&&k.jsx(z1,{ref:d,onFocusFromOutsideViewport:()=>{const _=w({tabbingDirection:"backwards"});sm(_)}})]})});c4.displayName=l4;var u4="ToastFocusProxy",z1=W.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=_0(u4,n);return k.jsx(x0,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=s.viewport)!=null&&c.contains(a))&&r()}})});z1.displayName=u4;var A0="Toast",f8="toast.swipeStart",p8="toast.swipeMove",g8="toast.swipeCancel",m8="toast.swipeEnd",d4=W.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...o}=e,[a=!0,l]=s4({prop:r,defaultProp:i,onChange:s});return k.jsx(b0,{present:n||a,children:k.jsx(w8,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:Rs(e.onPause),onResume:Rs(e.onResume),onSwipeStart:Nn(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Nn(e.onSwipeMove,c=>{const{x:d,y:g}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:Nn(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Nn(e.onSwipeEnd,c=>{const{x:d,y:g}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),l(!1)})})})});d4.displayName=A0;var[v8,y8]=o4(A0,{onClose(){}}),w8=W.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:g,onSwipeCancel:p,onSwipeEnd:h,...b}=e,w=_0(A0,n),[_,v]=W.useState(null),x=Ti(t,q=>v(q)),A=W.useRef(null),N=W.useRef(null),I=i||w.duration,$=W.useRef(0),K=W.useRef(I),M=W.useRef(0),{onToastAdd:D,onToastRemove:X}=w,L=Rs(()=>{var se;(_==null?void 0:_.contains(document.activeElement))&&((se=w.viewport)==null||se.focus()),o()}),j=W.useCallback(q=>{!q||q===1/0||(window.clearTimeout(M.current),$.current=new Date().getTime(),M.current=window.setTimeout(L,q))},[L]);W.useEffect(()=>{const q=w.viewport;if(q){const se=()=>{j(K.current),c==null||c()},oe=()=>{const ue=new Date().getTime()-$.current;K.current=K.current-ue,window.clearTimeout(M.current),l==null||l()};return q.addEventListener(B1,oe),q.addEventListener(U1,se),()=>{q.removeEventListener(B1,oe),q.removeEventListener(U1,se)}}},[w.viewport,I,l,c,j]),W.useEffect(()=>{s&&!w.isClosePausedRef.current&&j(I)},[s,I,w.isClosePausedRef,j]),W.useEffect(()=>(D(),()=>X()),[D,X]);const Y=W.useMemo(()=>_?y4(_):null,[_]);return w.viewport?k.jsxs(k.Fragment,{children:[Y&&k.jsx(b8,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Y}),k.jsx(v8,{scope:n,onClose:L,children:wh.createPortal(k.jsx(C2.ItemSlot,{scope:n,children:k.jsx(e8,{asChild:!0,onEscapeKeyDown:Nn(a,()=>{w.isFocusedToastEscapeKeyDownRef.current||L(),w.isFocusedToastEscapeKeyDownRef.current=!1}),children:k.jsx(qn.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":w.swipeDirection,...b,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Nn(e.onKeyDown,q=>{q.key==="Escape"&&(a==null||a(q.nativeEvent),q.nativeEvent.defaultPrevented||(w.isFocusedToastEscapeKeyDownRef.current=!0,L()))}),onPointerDown:Nn(e.onPointerDown,q=>{q.button===0&&(A.current={x:q.clientX,y:q.clientY})}),onPointerMove:Nn(e.onPointerMove,q=>{if(!A.current)return;const se=q.clientX-A.current.x,oe=q.clientY-A.current.y,ue=!!N.current,U=["left","right"].includes(w.swipeDirection),te=["left","up"].includes(w.swipeDirection)?Math.min:Math.max,fe=U?te(0,se):0,ae=U?0:te(0,oe),P=q.pointerType==="touch"?10:2,B={x:fe,y:ae},Q={originalEvent:q,delta:B};ue?(N.current=B,Nf(p8,g,Q,{discrete:!1})):t5(B,w.swipeDirection,P)?(N.current=B,Nf(f8,d,Q,{discrete:!1}),q.target.setPointerCapture(q.pointerId)):(Math.abs(se)>P||Math.abs(oe)>P)&&(A.current=null)}),onPointerUp:Nn(e.onPointerUp,q=>{const se=N.current,oe=q.target;if(oe.hasPointerCapture(q.pointerId)&&oe.releasePointerCapture(q.pointerId),N.current=null,A.current=null,se){const ue=q.currentTarget,U={originalEvent:q,delta:se};t5(se,w.swipeDirection,w.swipeThreshold)?Nf(m8,h,U,{discrete:!0}):Nf(g8,p,U,{discrete:!0}),ue.addEventListener("click",te=>te.preventDefault(),{once:!0})}})})})}),w.viewport)})]}):null}),b8=e=>{const{__scopeToast:t,children:n,...r}=e,i=_0(A0,t),[s,o]=W.useState(!1),[a,l]=W.useState(!1);return A8(()=>o(!0)),W.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:k.jsx(i4,{asChild:!0,children:k.jsx(x0,{...r,children:s&&k.jsxs(k.Fragment,{children:[i.label," ",n]})})})},x8="ToastTitle",h4=W.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return k.jsx(qn.div,{...r,ref:t})});h4.displayName=x8;var _8="ToastDescription",f4=W.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return k.jsx(qn.div,{...r,ref:t})});f4.displayName=_8;var p4="ToastAction",g4=W.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?k.jsx(v4,{altText:n,asChild:!0,children:k.jsx(P2,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${p4}\`. Expected non-empty \`string\`.`),null)});g4.displayName=p4;var m4="ToastClose",P2=W.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=y8(m4,n);return k.jsx(v4,{asChild:!0,children:k.jsx(qn.button,{type:"button",...r,ref:t,onClick:Nn(e.onClick,i.onClose)})})});P2.displayName=m4;var v4=W.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return k.jsx(qn.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function y4(e){const t=[];
vendor: 10,018 bytes, lines 40-140
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),S8(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...y4(r))}}),t}function Nf(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?e4(i,s):i.dispatchEvent(s)}var t5=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function A8(e=()=>{}){const t=Rs(e);wl(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function S8(e){return e.nodeType===e.ELEMENT_NODE}function k8(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function sm(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var N8=a4,w4=c4,b4=d4,x4=h4,_4=f4,A4=g4,S4=P2;function k4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=k4(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function N4(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=k4(e))&&(r&&(r+=" "),r+=t);return r}const n5=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,r5=N4,S0=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return r5(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(c=>{const d=n==null?void 0:n[c],g=s==null?void 0:s[c];if(d===null)return null;const p=n5(d)||n5(g);return i[c][p]}),a=n&&Object.entries(n).reduce((c,d)=>{let[g,p]=d;return p===void 0||(c[g]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:g,className:p,...h}=d;return Object.entries(h).every(b=>{let[w,_]=b;return Array.isArray(_)?_.includes({...s,...a}[w]):{...s,...a}[w]===_})?[...c,g,p]:c},[]);return r5(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const E8=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),E4=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var C8={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.462.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const P8=W.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>W.createElement("svg",{ref:l,...C8,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:E4("lucide",i),...a},[...o.map(([c,d])=>W.createElement(c,d)),...Array.isArray(s)?s:[s]]));/**
56 * @license lucide-react v0.462.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const br=(e,t)=>{const n=W.forwardRef(({className:r,...i},s)=>W.createElement(P8,{ref:s,iconNode:t,className:E4(`lucide-${E8(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const vo=br("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
66 * @license lucide-react v0.462.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const ka=br("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
71 * @license lucide-react v0.462.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const k0=br("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
76 * @license lucide-react v0.462.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const C4=br("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
81 * @license lucide-react v0.462.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const L8=br("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
86 * @license lucide-react v0.462.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const T8=br("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
91 * @license lucide-react v0.462.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const Bp=br("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
96 * @license lucide-react v0.462.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const N0=br("Forward",[["polyline",{points:"15 17 20 12 15 7",key:"1w3sku"}],["path",{d:"M4 18v-2a4 4 0 0 1 4-4h12",key:"jmiej9"}]]);/**
101 * @license lucide-react v0.462.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const P4=br("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
106 * @license lucide-react v0.462.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const E0=br("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
111 * @license lucide-react v0.462.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const jc=br("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
116 * @license lucide-react v0.462.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const C0=br("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
121 * @license lucide-react v0.462.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const P0=br("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
126 * @license lucide-react v0.462.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const R8=br("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
131 * @license lucide-react v0.462.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const L0=br("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
136 * @license lucide-react v0.462.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const j8=br("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 9,118 bytes, line 140
140],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),L2="-",O8=e=>{const t=D8(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(L2);return a[0]===""&&a.length!==1&&a.shift(),L4(a,t)||I8(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},L4=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?L4(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(L2);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},i5=/^\[(.+)\]$/,I8=e=>{if(i5.test(e)){const t=i5.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},D8=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return M8(Object.entries(e.classGroups),n).forEach(([s,o])=>{q1(o,r,s,t)}),r},q1=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:s5(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(F8(i)){q1(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{q1(o,s5(t,s),n,r)})})},s5=(e,t)=>{let n=e;return t.split(L2).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},F8=e=>e.isThemeGetter,M8=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e,B8=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},T4="!",U8=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,o=a=>{const l=[];let c=0,d=0,g;for(let _=0;_<a.length;_++){let v=a[_];if(c===0){if(v===i&&(r||a.slice(_,_+s)===t)){l.push(a.slice(d,_)),d=_+s;continue}if(v==="/"){g=_;continue}}v==="["?c++:v==="]"&&c--}const p=l.length===0?a:a.substring(d),h=p.startsWith(T4),b=h?p.substring(1):p,w=g&&g>d?g-d:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:w}};return n?a=>n({className:a,parseClassName:o}):o},z8=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},q8=e=>({cache:B8(e.cacheSize),parseClassName:U8(e),...O8(e)}),H8=/\s+/,W8=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(H8);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:d,hasImportantModifier:g,baseClassName:p,maybePostfixModifierPosition:h}=n(c);let b=!!h,w=r(b?p.substring(0,h):p);if(!w){if(!b){a=c+(a.length>0?" "+a:a);continue}if(w=r(p),!w){a=c+(a.length>0?" "+a:a);continue}b=!1}const _=z8(d).join(":"),v=g?_+T4:_,x=v+w;if(s.includes(x))continue;s.push(x);const A=i(w,b);for(let N=0;N<A.length;++N){const I=A[N];s.push(v+I)}a=c+(a.length>0?" "+a:a)}return a};function V8(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=R4(t))&&(r&&(r+=" "),r+=n);return r}const R4=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=R4(e[r]))&&(n&&(n+=" "),n+=t);return n};function G8(e,...t){let n,r,i,s=o;function o(l){const c=t.reduce((d,g)=>g(d),e());return n=q8(c),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const d=W8(l,n);return i(l,d),d}return function(){return s(V8.apply(null,arguments))}}const nn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},j4=/^\[(?:([a-z-]+):)?(.+)\]$/i,$8=/^\d+\/\d+$/,K8=new Set(["px","full","screen"]),Q8=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Y8=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,X8=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,J8=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Z8=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ys=e=>Oc(e)||K8.has(e)||$8.test(e),Io=e=>fu(e,"length",aC),Oc=e=>!!e&&!Number.isNaN(Number(e)),om=e=>fu(e,"number",Oc),Xu=e=>!!e&&Number.isInteger(Number(e)),eC=e=>e.endsWith("%")&&Oc(e.slice(0,-1)),xt=e=>j4.test(e),Do=e=>Q8.test(e),tC=new Set(["length","size","percentage"]),nC=e=>fu(e,tC,O4),rC=e=>fu(e,"position",O4),iC=new Set(["image","url"]),sC=e=>fu(e,iC,cC),oC=e=>fu(e,"",lC),Ju=()=>!0,fu=(e,t,n)=>{const r=j4.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},aC=e=>Y8.test(e)&&!X8.test(e),O4=()=>!1,lC=e=>J8.test(e),cC=e=>Z8.test(e),uC=()=>{const e=nn("colors"),t=nn("spacing"),n=nn("blur"),r=nn("brightness"),i=nn("borderColor"),s=nn("borderRadius"),o=nn("borderSpacing"),a=nn("borderWidth"),l=nn("contrast"),c=nn("grayscale"),d=nn("hueRotate"),g=nn("invert"),p=nn("gap"),h=nn("gradientColorStops"),b=nn("gradientColorStopPositions"),w=nn("inset"),_=nn("margin"),v=nn("opacity"),x=nn("padding"),A=nn("saturate"),N=nn("scale"),I=nn("sepia"),$=nn("skew"),K=nn("space"),M=nn("translate"),D=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",xt,t],j=()=>[xt,t],Y=()=>["",Ys,Io],q=()=>["auto",Oc,xt],se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],oe=()=>["solid","dashed","dotted","double","none"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",xt],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ae=()=>[Oc,xt];return{cacheSize:500,separator:":",theme:{colors:[Ju],spacing:[Ys,Io],blur:["none","",Do,xt],brightness:ae(),borderColor:[e],borderRadius:["none","","full",Do,xt],borderSpacing:j(),borderWidth:Y(),contrast:ae(),grayscale:te(),hueRotate:ae(),invert:te(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[eC,Io],inset:L(),margin:L(),opacity:ae(),padding:j(),saturate:ae(),scale:ae(),sepia:te(),skew:ae(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",xt]}],container:["container"],columns:[{columns:[Do]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...se(),xt]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Xu,xt]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xt]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",Xu,xt]}],"grid-cols":[{"grid-cols":[Ju]}],"col-start-end":[{col:["auto",{span:["full",Xu,xt]},xt]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[Ju]}],"row-start-end":[{row:["auto",{span:[Xu,xt]},xt]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xt]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}
vendor: 8,347 bytes, line 140
140],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[K]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[K]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xt,t]}],"min-w":[{"min-w":[xt,t,"min","max","fit"]}],"max-w":[{"max-w":[xt,t,"none","full","min","max","fit","prose",{screen:[Do]},Do]}],h:[{h:[xt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Do,Io]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",om]}],"font-family":[{font:[Ju]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",xt]}],"line-clamp":[{"line-clamp":["none",Oc,om]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ys,xt]}],"list-image":[{"list-image":["none",xt]}],"list-style-type":[{list:["none","disc","decimal",xt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ys,Io]}],"underline-offset":[{"underline-offset":["auto",Ys,xt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...se(),rC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},sC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...oe(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:oe()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...oe()]}],"outline-offset":[{"outline-offset":[Ys,xt]}],"outline-w":[{outline:[Ys,Io]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Ys,Io]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Do,oC]}],"shadow-color":[{shadow:[Ju]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...ue(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ue()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Do,xt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[g]}],saturate:[{saturate:[A]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",xt]}],duration:[{duration:ae()}],ease:[{ease:["linear","in","out","in-out",xt]}],delay:[{delay:ae()}],animate:[{animate:["none","spin","ping","pulse","bounce",xt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[Xu,xt]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,488 bytes, line 140
140],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ys,Io,om]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},dC=G8(uC);function In(...e){return dC(N4(e))}const hC=N8,I4=W.forwardRef(({className:e,...t},n)=>k.jsx(w4,{ref:n,className:In("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));I4.displayName=w4.displayName;const fC=S0("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),D4=W.forwardRef(({className:e,variant:t,...n},r)=>k.jsx(b4,{ref:r,className:In(fC({variant:t}),e),...n}));D4.displayName=b4.displayName;const pC=W.forwardRef(({className:e,...t},n)=>k.jsx(A4,{ref:n,className:In("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));
140pC.displayName=A4.displayName;const F4=W.forwardRef(({className:e,...t},n)=>k.jsx(S4,{ref:n,className:In("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:k.jsx(j8,{className:"h-4 w-4"})}));F4.displayName=S4.displayName;const M4=W.forwardRef(({className:e,...t},n)=>k.jsx(x4,{ref:n,className:In("text-sm font-semibold",e),...t}));M4.displayName=x4.displayName;const B4=W.forwardRef(({className:e,...t},n)=>k.jsx(_4,{ref:n,className:In("text-sm opacity-90",e),...t}));B4.displayName=_4.displayName;function gC(){const{toasts:e}=FE();return k.jsxs(hC,{children:[e.map(function({id:t,title:n,description:r,action:i,...s}){return k.jsxs(D4,{...s,children:[k.jsxs("div",{className:"grid gap-1",children:[n&&k.jsx(M4,{children:n}),r&&k.jsx(B4,{children:r})]}),i,k.jsx(F4,{})]},t)}),k.jsx(I4,{})]})}var o5=["light","dark"],mC="(prefers-color-scheme: dark)",vC=W.createContext(void 0),yC={setTheme:e=>{},themes:[]},wC=()=>{var e;return(e=W.useContext(vC))!=null?e:yC};W.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:o,attrs:a,nonce:l})=>{let c=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,g=i?o5.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(b,w=!1,_=!0)=>{let v=o?o[b]:b,x=w?b+"|| ''":`'${v}'`,A="";return i&&_&&!w&&o5.includes(b)&&(A+=`d.style.colorScheme = '${b}';`),n==="class"?w||v?A+=`c.add(${x})`:A+="null":v&&(A+=`d[s](n,${x})`),A},h=e?`!function(){${d}${p(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${mC}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}${c?"":"else{"+p(s,!1,!1)+"}"}${g}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}else{${p(s,!1,!1)};}${g}}catch(t){}}();`;return W.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var bC=e=>{switch(e){case"success":return AC;case"info":return kC;case"warning":return SC;case"error":return NC;default:return null}},xC=Array(12).fill(0),_C=({visible:e})=>Pe.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},Pe.createElement("div",{className:"sonner-spinner"},xC.map((t,n)=>Pe.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),AC=Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Pe.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),SC=Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Pe.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),kC=Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Pe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),NC=Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Pe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),EC=()=>{let[e,t]=Pe.useState(document.hidden);return Pe.useEffect(()=>{let n=()=>{t(document.hidden)};
140return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},H1=1,CC=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;let{message:r,...i}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:H1++,o=this.toasts.find(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return o?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):this.addToast({title:r,...i,dismissible:a,id:s}),s},this.dismiss=t=>(t||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),this.subscribers.forEach(n=>n({id:t,dismiss:!0})),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));let i=t instanceof Promise?t:t(),s=r!==void 0;return i.then(async o=>{if(LC(o)&&!o.ok){s=!1;let a=typeof n.error=="function"?await n.error(`HTTP error! status: ${o.status}`):n.error,l=typeof n.description=="function"?await n.description(`HTTP error! status: ${o.status}`):n.description;this.create({id:r,type:"error",message:a,description:l})}else if(n.success!==void 0){s=!1;let a=typeof n.success=="function"?await n.success(o):n.success,l=typeof n.description=="function"?await n.description(o):n.description;this.create({id:r,type:"success",message:a,description:l})}}).catch(async o=>{if(n.error!==void 0){s=!1;let a=typeof n.error=="function"?await n.error(o):n.error,l=typeof n.description=="function"?await n.description(o):n.description;this.create({id:r,type:"error",message:a,description:l})}}).finally(()=>{var o;s&&(this.dismiss(r),r=void 0),(o=n.finally)==null||o.call(n)}),r},this.custom=(t,n)=>{let r=(n==null?void 0:n.id)||H1++;return this.create({jsx:t(r),id:r,...n}),r},this.subscribers=[],this.toasts=[]}},ii=new CC,PC=(e,t)=>{let n=(t==null?void 0:t.id)||H1++;return ii.addToast({title:e,...t,id:n}),n},LC=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",TC=PC,RC=()=>ii.toasts;Object.assign(TC,{success:ii.success,info:ii.info,warning:ii.warning,error:ii.error,custom:ii.custom,message:ii.message,promise:ii.promise,dismiss:ii.dismiss,loading:ii.loading},{getHistory:RC});function jC(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}jC(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
140left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
140:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
141`);function Ef(e){return e.label!==void 0}var OC=3,IC="32px",DC=4e3,FC=356,MC=14,BC=20,UC=200;function zC(...e){return e.filter(Boolean).join(" ")}var qC=e=>{var t,n,r,i,s,o,a,l,c,d;let{invert:g,toast:p,unstyled:h,interacting:b,setHeights:w,visibleToasts:_,heights:v,index:x,toasts:A,expanded:N,removeToast:I,defaultRichColors:$,closeButton:K,style:M,cancelButtonStyle:D,actionButtonStyle:X,className:L="",descriptionClassName:j="",duration:Y,position:q,gap:se,loadingIcon:oe,expandByDefault:ue,classNames:U,icons:te,closeButtonAriaLabel:fe="Close toast",pauseWhenPageIsHidden:ae,cn:P}=e,[B,Q]=Pe.useState(!1),[Z,ee]=Pe.useState(!1),[le,pe]=Pe.useState(!1),[ge,ye]=Pe.useState(!1),[ke,Re]=Pe.useState(0),[Le,We]=Pe.useState(0),z=Pe.useRef(null),Ce=Pe.useRef(null),ht=x===0,Je=x+1<=_,xe=p.type,Qe=p.dismissible!==!1,De=p.className||"",nt=p.descriptionClassName||"",$e=Pe.useMemo(()=>v.findIndex(Ie=>Ie.toastId===p.id)||0,[v,p.id]),Dt=Pe.useMemo(()=>{var Ie;return(Ie=p.closeButton)!=null?Ie:K},[p.closeButton,K]),At=Pe.useMemo(()=>p.duration||Y||DC,[p.duration,Y]),at=Pe.useRef(0),vt=Pe.useRef(0),St=Pe.useRef(0),Fe=Pe.useRef(null),[ut,Ke]=q.split("-"),an=Pe.useMemo(()=>v.reduce((Ie,je,Oe)=>Oe>=$e?Ie:Ie+je.height,0),[v,$e]),Nt=EC(),yt=p.invert||g,pt=xe==="loading";vt.current=Pe.useMemo(()=>$e*se+an,[$e,an]),Pe.useEffect(()=>{Q(!0)},[]),Pe.useLayoutEffect(()=>{if(!B)return;let Ie=Ce.current,je=Ie.style.height;Ie.style.height="auto";let Oe=Ie.getBoundingClientRect().height;Ie.style.height=je,We(Oe),w(Et=>Et.find(ot=>ot.toastId===p.id)?Et.map(ot=>ot.toastId===p.id?{...ot,height:Oe}:ot):[{toastId:p.id,height:Oe,position:p.position},...Et])},[B,p.title,p.description,w,p.id]);let Rt=Pe.useCallback(()=>{ee(!0),Re(vt.current),w(Ie=>Ie.filter(je=>je.toastId!==p.id)),setTimeout(()=>{I(p)},UC)},[p,I,w,vt]);Pe.useEffect(()=>{if(p.promise&&xe==="loading"||p.duration===1/0||p.type==="loading")return;let Ie,je=At;return N||b||ae&&Nt?(()=>
141{if(St.current<at.current){let Oe=new Date().getTime()-at.current;je=je-Oe}St.current=new Date().getTime()})():je!==1/0&&(at.current=new Date().getTime(),Ie=setTimeout(()=>{var Oe;(Oe=p.onAutoClose)==null||Oe.call(p,p),Rt()},je)),()=>clearTimeout(Ie)},[N,b,ue,p,At,Rt,p.promise,xe,ae,Nt]),Pe.useEffect(()=>{let Ie=Ce.current;if(Ie){let je=Ie.getBoundingClientRect().height;return We(je),w(Oe=>[{toastId:p.id,height:je,position:p.position},...Oe]),()=>w(Oe=>Oe.filter(Et=>Et.toastId!==p.id))}},[w,p.id]),Pe.useEffect(()=>{p.delete&&Rt()},[Rt,p.delete]);function Ze(){return te!=null&&te.loading?Pe.createElement("div",{className:"sonner-loader","data-visible":xe==="loading"},te.loading):oe?Pe.createElement("div",{className:"sonner-loader","data-visible":xe==="loading"},oe):Pe.createElement(_C,{visible:xe==="loading"})}return Pe.createElement("li",{"aria-live":p.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Ce,className:P(L,De,U==null?void 0:U.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,U==null?void 0:U.default,U==null?void 0:U[xe],(n=p==null?void 0:p.classNames)==null?void 0:n[xe]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:$,"data-styled":!(p.jsx||p.unstyled||h),"data-mounted":B,"data-promise":!!p.promise,"data-removed":Z,"data-visible":Je,"data-y-position":ut,"data-x-position":Ke,"data-index":x,"data-front":ht,"data-swiping":le,"data-dismissible":Qe,"data-type":xe,"data-invert":yt,"data-swipe-out":ge,"data-expanded":!!(N||ue&&B),style:{"--index":x,"--toasts-before":x,"--z-index":A.length-x,"--offset":`${Z?ke:vt.current}px`,"--initial-height":ue?"auto":`${Le}px`,...M,...p.style},onPointerDown:Ie=>{pt||!Qe||(z.current=new Date,Re(vt.current),Ie.target.setPointerCapture(Ie.pointerId),Ie.target.tagName!=="BUTTON"&&(pe(!0),Fe.current={x:Ie.clientX,y:Ie.clientY}))},onPointerUp:()=>{var Ie,je,Oe,Et;if(ge||!Qe)return;Fe.current=null;let ot=Number(((Ie=Ce.current)==null?void 0:Ie.style.getPropertyValue("--swipe-amount").replace("px",""))||0),et=new Date().getTime()-((je=z.current)==null?void 0:je.getTime()),Ft=Math.abs(ot)/et;if(Math.abs(ot)>=BC||Ft>.11){Re(vt.current),(Oe=p.onDismiss)==null||Oe.call(p,p),Rt(),ye(!0);return}(Et=Ce.current)==null||Et.style.setProperty("--swipe-amount","0px"),pe(!1)},onPointerMove:Ie=>{var je;if(!Fe.current||!Qe)return;let Oe=Ie.clientY-Fe.current.y,Et=Ie.clientX-Fe.current.x,ot=(ut==="top"?Math.min:Math.max)(0,Oe),et=Ie.pointerType==="touch"?10:2;Math.abs(ot)>et?(je=Ce.current)==null||je.style.setProperty("--swipe-amount",`${Oe}px`):Math.abs(Et)>et&&(Fe.current=null)}},Dt&&!p.jsx?Pe.createElement("button",{"aria-label":fe,"data-disabled":pt,"data-close-button":!0,onClick:pt||!Qe?()=>{}:()=>{var Ie;Rt(),(Ie=p.onDismiss)==null||Ie.call(p,p)},className:P(U==null?void 0:U.closeButton,(i=p==null?void 0:p.classNames)==null?void 0:i.closeButton)},Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Pe.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Pe.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,p.jsx||Pe.isValidElement(p.title)?p.jsx||p.title:Pe.createElement(Pe.Fragment,null,xe||p.icon||p.promise?Pe.createElement("div",{"data-icon":"",className:P(U==null?void 0:U.icon,(s=p==null?void 0:p.classNames)==null?void 0:s.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||Ze():null,p.type!=="loading"?p.icon||(te==null?void 0:te[xe])||bC(xe):null):null,Pe.createElement("div",{"data-content":"",className:P(U==null?void 0:U.content,(o=p==null?void 0:p.classNames)==null?void 0:o.content)},Pe.createElement("div",{"data-title":"",className:P(U==null?void 0:U.title,(a=p==null?void 0:p.classNames)==null?void 0:a.title)},p.title),p.description?Pe.createElement("div",{"data-description":"",className:P(j,nt,U==null?void 0:U.description,(l=p==null?void 0:p.classNames)==null?void 0:l.description)},p.description):null),Pe.isValidElement(p.cancel)?p.cancel:p.cancel&&Ef(p.cancel)?Pe.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||D,onClick:Ie=>{var je,Oe;Ef(p.cancel)&&Qe&&((Oe=(je=p.cancel).onClick)==null||Oe.call(je,Ie),Rt())},className:P(U==null?void 0:U.cancelButton,(c=p==null?void 0:p.classNames)==null?void 0:c.cancelButton)},p.cancel.label):null,Pe.isValidElement(p.action)?p.action:p.action&&Ef(p.action)?Pe.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||X,onClick:Ie=>{var je,Oe;Ef(p.action)&&(Ie.defaultPrevented||((Oe=(je=p.action).onClick)==null||Oe.call(je,Ie),Rt()))},className:P(U==null?void 0:U.actionButton,(d=p==null?void 0:p.classNames)==null?void 0:d.actionButton)},p.action.label):null))};function a5(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var HC=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:i,closeButton:s,className:o,offset:a,theme:l="light",richColors:c,duration:d,style:g,visibleToasts:p=OC,toastOptions:h,dir:b=a5(),gap:w=MC,loadingIcon:_,icons:v,containerAriaLabel:x="Notifications",pauseWhenPageIsHidden:A,cn:N=zC}=e,[I,$]=Pe.useState([]),K=Pe.useMemo(()=>Array.from(new Set([n].concat(I.filter(ae=>ae.position).map(ae=>ae.position)))),[I,n]),[M,D]=Pe.useState([]),[X,L]=Pe.useState(!1),[j,Y]=Pe.useState(!1),[q,se]=Pe.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
141k":"light"),oe=Pe.useRef(null),ue=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=Pe.useRef(null),te=Pe.useRef(!1),fe=Pe.useCallback(ae=>{var P;(P=I.find(B=>B.id===ae.id))!=null&&P.delete||ii.dismiss(ae.id),$(B=>B.filter(({id:Q})=>Q!==ae.id))},[I]);return Pe.useEffect(()=>ii.subscribe(ae=>{if(ae.dismiss){$(P=>P.map(B=>B.id===ae.id?{...B,delete:!0}:B));return}setTimeout(()=>{Y_.flushSync(()=>{$(P=>{let B=P.findIndex(Q=>Q.id===ae.id);return B!==-1?[...P.slice(0,B),{...P[B],...ae},...P.slice(B+1)]:[ae,...P]})})})}),[]),Pe.useEffect(()=>{if(l!=="system"){se(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?se("dark"):se("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:ae})=>{se(ae?"dark":"light")})},[l]),Pe.useEffect(()=>{I.length<=1&&L(!1)},[I]),Pe.useEffect(()=>{let ae=P=>{var B,Q;r.every(Z=>P[Z]||P.code===Z)&&(L(!0),(B=oe.current)==null||B.focus()),P.code==="Escape"&&(document.activeElement===oe.current||(Q=oe.current)!=null&&Q.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",ae),()=>document.removeEventListener("keydown",ae)},[r]),Pe.useEffect(()=>{if(oe.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,te.current=!1)}},[oe.current]),I.length?Pe.createElement("section",{"aria-label":`${x} ${ue}`,tabIndex:-1},K.map((ae,P)=>{var B;let[Q,Z]=ae.split("-");return Pe.createElement("ol",{key:ae,dir:b==="auto"?a5():b,tabIndex:-1,ref:oe,className:o,"data-sonner-toaster":!0,"data-theme":q,"data-y-position":Q,"data-x-position":Z,style:{"--front-toast-height":`${((B=M[0])==null?void 0:B.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||IC,"--width":`${FC}px`,"--gap":`${w}px`,...g},onBlur:ee=>{te.current&&!ee.currentTarget.contains(ee.relatedTarget)&&(te.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||te.current||(te.current=!0,U.current=ee.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{j||L(!1)},onPointerDown:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||Y(!0)},onPointerUp:()=>Y(!1)},I.filter(ee=>!ee.position&&P===0||ee.position===ae).map((ee,le)=>{var pe,ge;return Pe.createElement(qC,{key:ee.id,icons:v,index:le,toast:ee,defaultRichColors:c,duration:(pe=h==null?void 0:h.duration)!=null?pe:d,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:t,visibleToasts:p,closeButton:(ge=h==null?void 0:h.closeButton)!=null?ge:s,interacting:j,position:ae,style:h==null?void 0:h.style,unstyled:h==null?void 0:h.unstyled,classNames:h==null?void 0:h.classNames,cancelButtonStyle:h==null?void 0:h.cancelButtonStyle,actionButtonStyle:h==null?void 0:h.actionButtonStyle,removeToast:fe,toasts:I.filter(ye=>ye.position==ee.position),heights:M.filter(ye=>ye.position==ee.position),setHeights:D,expandByDefault:i,gap:w,loadingIcon:_,expanded:X,pauseWhenPageIsHidden:A,cn:N})}))})):null};const WC=({...e})=>{const{theme:t="system"}=wC();return k.jsx(HC,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},VC=["top","right","bottom","left"],va=Math.min,oi=Math.max,Up=Math.round,Cf=Math.floor,ya=e=>({x:e,y:e}),GC={left:"right",right:"left",bottom:"top",top:"bottom"},$C={start:"end",end:"start"};function W1(e,t,n){return oi(e,va(t,n))}function po(e,t){return typeof e=="function"?e(t):e}function go(e){return e.split("-")[0]}function pu(e){return e.split("-")[1]}function T2(e){return e==="x"?"y":"x"}function R2(e){return e==="y"?"height":"width"}function wa(e){return["top","bottom"].includes(go(e))?"y":"x"}function j2(e){return T2(wa(e))}function KC(e,t,n){n===void 0&&(n=!1);const r=pu(e),i=j2(e),s=R2(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=zp(o)),[o,zp(o)]}function QC(e){const t=zp(e);return[V1(e),t,V1(t)]}function V1(e){return e.replace(/start|end/g,t=>$C[t])}function YC(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:o;default:return[]}}function XC(e,t,n,r){const i=pu(e);let s=YC(go(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(V1)))),s}function zp(e){return e.replace(/left|right|bottom|top/g,t=>GC[t])}function JC(e){return{top:0,right:0,bottom:0,left:0,...e}}function U4(e){return typeof e!="number"?JC(e):{top:e,right:e,bottom:e,left:e}}function qp(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function l5(e,t,n){let{reference:r,floating:i}=e;const s=wa(t),o=j2(t),a=R2(o),l=go(t),c=s==="y",d=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,p=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:d,y:r.y-i.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:g};break;case"left":h={x:r.x-i.width,y:g};break;default:h={x:r.x,y:r.y}}switch(pu(t)){case"start":h[o]-=p*(n&&c?-1:1);break;case"end":h[o]+=p*(n&&c?-1:1);break}return h}const ZC=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}
vendor: 9,730 bytes, line 141
141=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:g}=l5(c,r,l),p=r,h={},b=0;for(let w=0;w<a.length;w++){const{name:_,fn:v}=a[w],{x,y:A,data:N,reset:I}=await v({x:d,y:g,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:c,platform:o,elements:{reference:e,floating:t}});d=x??d,g=A??g,h={...h,[_]:{...h[_],...N}},I&&b<=50&&(b++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(c=I.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:d,y:g}=l5(c,p,l)),w=-1)}return{x:d,y:g,placement:p,strategy:i,middlewareData:h}};async function $d(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:g="floating",altBoundary:p=!1,padding:h=0}=po(t,e),b=U4(h),_=a[p?g==="floating"?"reference":"floating":g],v=qp(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),x=g==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),N=await(s.isElement==null?void 0:s.isElement(A))?await(s.getScale==null?void 0:s.getScale(A))||{x:1,y:1}:{x:1,y:1},I=qp(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:A,strategy:l}):x);return{top:(v.top-I.top+b.top)/N.y,bottom:(I.bottom-v.bottom+b.bottom)/N.y,left:(v.left-I.left+b.left)/N.x,right:(I.right-v.right+b.right)/N.x}}const eP=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=po(e,t)||{};if(c==null)return{};const g=U4(d),p={x:n,y:r},h=j2(i),b=R2(h),w=await o.getDimensions(c),_=h==="y",v=_?"top":"left",x=_?"bottom":"right",A=_?"clientHeight":"clientWidth",N=s.reference[b]+s.reference[h]-p[h]-s.floating[b],I=p[h]-s.reference[h],$=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let K=$?$[A]:0;(!K||!await(o.isElement==null?void 0:o.isElement($)))&&(K=a.floating[A]||s.floating[b]);const M=N/2-I/2,D=K/2-w[b]/2-1,X=va(g[v],D),L=va(g[x],D),j=X,Y=K-w[b]-L,q=K/2-w[b]/2+M,se=W1(j,q,Y),oe=!l.arrow&&pu(i)!=null&&q!==se&&s.reference[b]/2-(q<j?X:L)-w[b]/2<0,ue=oe?q<j?q-j:q-Y:0;return{[h]:p[h]+ue,data:{[h]:se,centerOffset:q-se-ue,...oe&&{alignmentOffset:ue}},reset:oe}}}),tP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:g=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,..._}=po(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=go(i),x=wa(a),A=go(a)===a,N=await(l.isRTL==null?void 0:l.isRTL(c.floating)),I=p||(A||!w?[zp(a)]:QC(a)),$=b!=="none";!p&&$&&I.push(...XC(a,w,b,N));const K=[a,...I],M=await $d(t,_),D=[];let X=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&D.push(M[v]),g){const q=KC(i,o,N);D.push(M[q[0]],M[q[1]])}if(X=[...X,{placement:i,overflows:D}],!D.every(q=>q<=0)){var L,j;const q=(((L=s.flip)==null?void 0:L.index)||0)+1,se=K[q];if(se)return{data:{index:q,overflows:X},reset:{placement:se}};let oe=(j=X.filter(ue=>ue.overflows[0]<=0).sort((ue,U)=>ue.overflows[1]-U.overflows[1])[0])==null?void 0:j.placement;if(!oe)switch(h){case"bestFit":{var Y;const ue=(Y=X.filter(U=>{if($){const te=wa(U.placement);return te===x||te==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(te=>te>0).reduce((te,fe)=>te+fe,0)]).sort((U,te)=>U[1]-te[1])[0])==null?void 0:Y[0];ue&&(oe=ue);break}case"initialPlacement":oe=a;break}if(i!==oe)return{reset:{placement:oe}}}return{}}}};function c5(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function u5(e){return VC.some(t=>e[t]>=0)}const nP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=po(e,t);switch(r){case"referenceHidden":{const s=await $d(t,{...i,elementContext:"reference"}),o=c5(s,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:u5(o)}}}case"escaped":{const s=await $d(t,{...i,altBoundary:!0}),o=c5(s,n.floating);return{data:{escapedOffsets:o,escaped:u5(o)}}}default:return{}}}}};async function rP(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=go(n),a=pu(n),l=wa(n)==="y",c=["left","top"].includes(o)?-1:1,d=s&&l?-1:1,g=po(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:b}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return a&&typeof b=="number"&&(h=a==="end"?b*-1:b),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}const iP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await rP(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},sP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:_=>{let{x:v,y:x}=_;return{x:v,y:x}}},...l}=po(e,t),c={x:n,y:r},d=await $d(t,l),g=wa(go(i)),p=T2(g);let h=c[p],b=c[g];if(s){const _=p==="y"?"top":"left",v=p==="y"?"bottom":"right",x=h+d[_],A=h-d[v];h=W1(x,h,A)}if(o){const _=g==="y"?"top":"left",v=g==="y"?"bottom":"right",x=b+d[_],A=b-d[v];b=W1(x,b,A)}const w=a.fn({...t,[p]:h,[g]:b});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[p]:s,[g]:o}}}}}},oP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=po(e,t),d={x:n,y:r},g=wa(i),p=T2(g);let h=d[p],b=d[g];const w=po(a,t),_=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(l){const A=p==="y"?"height":"width",N=s.reference[p]-s.floating[A]+_.mainAxis,I=s.reference[p]+s.reference[A]-_.mainAxis;h<N?h=N:h>I&&(h=I)}if(c){var v,x;const A=p==="y"?"width":"height",N=["top","left"].includes(go(i)),I=s.reference[g]-s.floating[A]+(N&&((v=o.offset)==null?void 0:v[g])||0)+(N?0:_.crossAxis),$=s.reference[g]+s.reference[A]+(N?0:((x=o.offset)==null?void 0:x[g])||0)-(N?_.crossAxis:0);b<I?b=I:b>$&&(b=$)}return{[p]:h,[g]:b}}}},aP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:l=()=>{},...c}=po(e,t),d=await $d(t,c),g=go(i),p=pu(i),h=wa(i)==="y",{width:b,height:w}=s.floating;let _,v;g==="top"||g==="bottom"?(_=g,v=p===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=g,_=p==="end"?"top":"bottom");const x=w-d.top-d.bottom,A=b-d.left-d.right,N=va(w-d[_],x),I=va(b-d[v],A),$=!t.middlewareData.shift;let K=N,M=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(K=x),$&&!p){const X=oi(d.left,0),L=oi(d.right,0),j=oi(d.top,0),Y=oi(d.bottom,0);h?M=b-2*(X!==0||L!==0?X+L:oi(d.left,d.right)):K=w-2*(j!==0||Y!==0?j+Y:oi(d.top,d.bottom))}await l({...t,availableWidth:M,availableHeight:K});const D=await o.getDimensions(a.floating);return b!==D.width||w!==D.height?{reset:{rects:!0}}:{}}}};function T0(){return typeof window<"u"}function gu(e){return z4(e)?(e.nodeName||"").toLowerCase():"#document"}function hi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Os(e){var t;return(t=(z4(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function z4(e){return T0()?e instanceof Node||e instanceof hi(e).Node:!1}function es(e){return T0()?e instanceof Element||e instanceof hi(e).Element:!1}function js(e){return T0()?e instanceof HTMLElement||e instanceof hi(e).HTMLElement:!1}function d5(e){return!T0()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof hi(e).ShadowRoot}function bh(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ts(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function lP(e){return["table","td","th"].includes(gu(e))}function R0(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function O2(e){const t=I2(),n=es(e)?ts(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function cP(e){let t=ba(e);for(;js(t)&&!su(t);){if(O2(t))return t;if(R0(t))return null;t=ba(t)}return null}function I2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function su(e){return["html","body","#document"].includes(gu(e))}function ts(e){return hi(e).getComputedStyle(e)}function j0(e){return es(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ba(e){if(gu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||d5(e)&&e.host||Os(e);return d5(t)?t.host:t}function q4(e){const t=ba(e);return su(t)?e.ownerDocument?e.ownerDocument.body:e.body:js(t)&&bh(t)?t:q4(t)}function Kd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=q4(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=hi(i);if(s){const a=G1(o);
vendor: 6,878 bytes, line 141
141return t.concat(o,o.visualViewport||[],bh(i)?i:[],a&&n?Kd(a):[])}return t.concat(i,Kd(i,[],n))}function G1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function H4(e){const t=ts(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=js(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=Up(n)!==s||Up(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function D2(e){return es(e)?e:e.contextElement}function Ic(e){const t=D2(e);if(!js(t))return ya(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=H4(t);let o=(s?Up(n.width):n.width)/r,a=(s?Up(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const uP=ya(0);function W4(e){const t=hi(e);return!I2()||!t.visualViewport?uP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dP(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==hi(e)?!1:t}function bl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=D2(e);let o=ya(1);t&&(r?es(r)&&(o=Ic(r)):o=Ic(e));const a=dP(s,n,r)?W4(s):ya(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,d=i.width/o.x,g=i.height/o.y;if(s){const p=hi(s),h=r&&es(r)?hi(r):r;let b=p,w=G1(b);for(;w&&r&&h!==b;){const _=Ic(w),v=w.getBoundingClientRect(),x=ts(w),A=v.left+(w.clientLeft+parseFloat(x.paddingLeft))*_.x,N=v.top+(w.clientTop+parseFloat(x.paddingTop))*_.y;l*=_.x,c*=_.y,d*=_.x,g*=_.y,l+=A,c+=N,b=hi(w),w=G1(b)}}return qp({width:d,height:g,x:l,y:c})}function hP(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=Os(r),a=t?R0(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=ya(1);const d=ya(0),g=js(r);if((g||!g&&!s)&&((gu(r)!=="body"||bh(o))&&(l=j0(r)),js(r))){const p=bl(r);c=Ic(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}}function fP(e){return Array.from(e.getClientRects())}function $1(e,t){const n=j0(e).scrollLeft;return t?t.left+n:bl(Os(e)).left+n}function pP(e){const t=Os(e),n=j0(e),r=e.ownerDocument.body,i=oi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=oi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+$1(e);const a=-n.scrollTop;return ts(r).direction==="rtl"&&(o+=oi(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}function gP(e,t){const n=hi(e),r=Os(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=I2();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function mP(e,t){const n=bl(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=js(e)?Ic(e):ya(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=r*s.y;return{width:o,height:a,x:l,y:c}}function h5(e,t,n){let r;if(t==="viewport")r=gP(e,n);else if(t==="document")r=pP(Os(e));else if(es(t))r=mP(t,n);else{const i=W4(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return qp(r)}function V4(e,t){const n=ba(e);return n===t||!es(n)||su(n)?!1:ts(n).position==="fixed"||V4(n,t)}function vP(e,t){const n=t.get(e);if(n)return n;let r=Kd(e,[],!1).filter(a=>es(a)&&gu(a)!=="body"),i=null;const s=ts(e).position==="fixed";let o=s?ba(e):e;for(;es(o)&&!su(o);){const a=ts(o),l=O2(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||bh(o)&&!l&&V4(e,o))?r=r.filter(d=>d!==o):i=a,o=ba(o)}return t.set(e,r),r}function yP(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?R0(t)?[]:vP(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,d)=>{const g=h5(t,d,i);return c.top=oi(g.top,c.top),c.right=va(g.right,c.right),c.bottom=va(g.bottom,c.bottom),c.left=oi(g.left,c.left),c},h5(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function wP(e){const{width:t,height:n}=H4(e);return{width:t,height:n}}function bP(e,t,n){const r=js(t),i=Os(t),s=n==="fixed",o=bl(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=ya(0);if(r||!r&&!s)if((gu(t)!=="body"||bh(i))&&(a=j0(t)),r){const h=bl(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&(l.x=$1(i));let c=0,d=0;if(i&&!r&&!s){const h=i.getBoundingClientRect();d=h.top+a.scrollTop,c=h.left+a.scrollLeft-$1(i,h)}const g=o.left+a.scrollLeft-l.x-c,p=o.top+a.scrollTop-l.y-d;return{x:g,y:p,width:o.width,height:o.height}}function am(e){return ts(e).position==="static"}function f5(e,t){if(!js(e)||ts(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Os(e)===n&&(n=n.ownerDocument.body),n}function G4(e,t){const n=hi(e);if(R0(e))return n;if(!js(e)){let i=ba(e);for(;i&&!su(i);){if(es(i)&&!am(i))return i;i=ba(i)}return n}let r=f5(e,t);for(;r&&lP(r)&&am(r);)r=f5(r,t);return r&&su(r)&&am(r)&&!O2(r)?n:r||cP(e)||n}const xP=async function(e){const t=this.getOffsetParent||G4,n=this.getDimensions,r=await n(e.floating);return{reference:bP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function _P(e){return ts(e).direction==="rtl"}const AP={convertOffsetParentRelativeRectToViewportRelativeRect:hP,getDocumentElement:Os,getClippingRect:yP,getOffsetParent:G4,getElementRects:xP,getClientRects:fP,getDimensions:wP,getScale:Ic,isElement:es,isRTL:_P};function SP(e,t){let n=null,r;const i=Os(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:d,width:g,height:p}=e.getBoundingClientRect();if(a||t(),!g||!p)return;const h=Cf(d),b=Cf(i.clientWidth-(c+g)),w=Cf(i.clientHeight-(d+p)),_=Cf(c),x={rootMargin:-h+"px "+-b+"px "+-w+"px "+-_+"px",threshold:oi(0,va(1,l))||1};let A=!0;function N(I){const $=I[0].intersectionRatio;if($!==l){if(!A)return o();$?o(!1,$):r=setTimeout(()=>{o(!1,1e-7)},1e3)}A=!1}try{n=new IntersectionObserver(N,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(N,x)}n.observe(e)}return o(!0),s}function kP(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=D2(e),d=i||s?[...c?Kd(c):[],...Kd(t)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const g=c&&a?SP(c,n):null;let p=-1,h=null;o&&(h=new ResizeObserver(v=>{let[x]=v;x&&x.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var A;(A=h)==null||A.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let b,w=l?bl(e):null;l&&_();function _(){const v=bl(e);w&&(v.x!==w.x||v.y!==w.y||v.width!==w.width||v.height!==w.height)&&n(),w=v,b=requestAnimationFrame(_)}return n(),()=>{var v;d.forEach(x=>{i&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),g==null||g(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(b)}}
vendor: 9,571 bytes, line 141
141const NP=iP,EP=sP,CP=tP,PP=aP,LP=nP,p5=eP,TP=oP,RP=(e,t,n)=>{const r=new Map,i={platform:AP,...n},s={...i.platform,_c:r};return ZC(e,t,{...i,platform:s})};var op=typeof document<"u"?W.useLayoutEffect:W.useEffect;function Hp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Hp(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Hp(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function $4(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function g5(e,t){const n=$4(e);return Math.round(t*n)/n}function lm(e){const t=W.useRef(e);return op(()=>{t.current=e}),t}function jP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,g]=W.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=W.useState(r);Hp(p,r)||h(r);const[b,w]=W.useState(null),[_,v]=W.useState(null),x=W.useCallback(U=>{U!==$.current&&($.current=U,w(U))},[]),A=W.useCallback(U=>{U!==K.current&&(K.current=U,v(U))},[]),N=s||b,I=o||_,$=W.useRef(null),K=W.useRef(null),M=W.useRef(d),D=l!=null,X=lm(l),L=lm(i),j=lm(c),Y=W.useCallback(()=>{if(!$.current||!K.current)return;const U={placement:t,strategy:n,middleware:p};L.current&&(U.platform=L.current),RP($.current,K.current,U).then(te=>{const fe={...te,isPositioned:j.current!==!1};q.current&&!Hp(M.current,fe)&&(M.current=fe,wh.flushSync(()=>{g(fe)}))})},[p,t,n,L,j]);op(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,g(U=>({...U,isPositioned:!1})))},[c]);const q=W.useRef(!1);op(()=>(q.current=!0,()=>{q.current=!1}),[]),op(()=>{if(N&&($.current=N),I&&(K.current=I),N&&I){if(X.current)return X.current(N,I,Y);Y()}},[N,I,Y,X,D]);const se=W.useMemo(()=>({reference:$,floating:K,setReference:x,setFloating:A}),[x,A]),oe=W.useMemo(()=>({reference:N,floating:I}),[N,I]),ue=W.useMemo(()=>{const U={position:n,left:0,top:0};if(!oe.floating)return U;const te=g5(oe.floating,d.x),fe=g5(oe.floating,d.y);return a?{...U,transform:"translate("+te+"px, "+fe+"px)",...$4(oe.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:fe}},[n,a,oe.floating,d.x,d.y]);return W.useMemo(()=>({...d,update:Y,refs:se,elements:oe,floatingStyles:ue}),[d,Y,se,oe,ue])}const OP=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?p5({element:r.current,padding:i}).fn(n):{}:r?p5({element:r,padding:i}).fn(n):{}}}},IP=(e,t)=>({...NP(e),options:[e,t]}),DP=(e,t)=>({...EP(e),options:[e,t]}),FP=(e,t)=>({...TP(e),options:[e,t]}),MP=(e,t)=>({...CP(e),options:[e,t]}),BP=(e,t)=>({...PP(e),options:[e,t]}),UP=(e,t)=>({...LP(e),options:[e,t]}),zP=(e,t)=>({...OP(e),options:[e,t]});var qP="Arrow",K4=W.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return k.jsx(qn.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:k.jsx("polygon",{points:"0,0 30,0 15,10"})})});K4.displayName=qP;var HP=K4;function WP(e,t=[]){let n=[];function r(s,o){const a=W.createContext(o),l=n.length;n=[...n,o];function c(g){const{scope:p,children:h,...b}=g,w=(p==null?void 0:p[e][l])||a,_=W.useMemo(()=>b,Object.values(b));return k.jsx(w.Provider,{value:_,children:h})}function d(g,p){const h=(p==null?void 0:p[e][l])||a,b=W.useContext(h);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${g}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,d]}const i=()=>{const s=n.map(o=>W.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return W.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,VP(i,...t)]}function VP(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const g=l(s)[`__scope${c}`];return{...a,...g}},{});return W.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Q4(e){const[t,n]=W.useState(void 0);return wl(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Y4="Popper",[X4,J4]=WP(Y4),[AF,Z4]=X4(Y4),eA="PopperAnchor",tA=W.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=Z4(eA,n),o=W.useRef(null),a=Ti(t,o);return W.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:k.jsx(qn.div,{...i,ref:a})});tA.displayName=eA;var F2="PopperContent",[GP,$P]=X4(F2),nA=W.forwardRef((e,t)=>{var le,pe,ge,ye,ke,Re;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:g="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:b,...w}=e,_=Z4(F2,n),[v,x]=W.useState(null),A=Ti(t,Le=>x(Le)),[N,I]=W.useState(null),$=Q4(N),K=($==null?void 0:$.width)??0,M=($==null?void 0:$.height)??0,D=r+(s!=="center"?"-"+s:""),X=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},L=Array.isArray(c)?c:[c],j=L.length>0,Y={padding:X,boundary:L.filter(QP),altBoundary:j},{refs:q,floatingStyles:se,placement:oe,isPositioned:ue,middlewareData:U}=jP({strategy:"fixed",placement:D,whileElementsMounted:(...Le)=>kP(...Le,{animationFrame:h==="always"}),elements:{reference:_.anchor},middleware:[IP({mainAxis:i+M,alignmentAxis:o}),l&&DP({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?FP():void 0,...Y}),l&&MP({...Y}),BP({...Y,apply:({elements:Le,rects:We,availableWidth:z,availableHeight:Ce})=>{const{width:ht,height:Je}=We.reference,xe=Le.floating.style;xe.setProperty("--radix-popper-available-width",`${z}px`),xe.setProperty("--radix-popper-available-height",`${Ce}px`),xe.setProperty("--radix-popper-anchor-width",`${ht}px`),xe.setProperty("--radix-popper-anchor-height",`${Je}px`)}}),N&&zP({element:N,padding:a}),YP({arrowWidth:K,arrowHeight:M}),p&&UP({strategy:"referenceHidden",...Y})]}),[te,fe]=sA(oe),ae=Rs(b);wl(()=>{ue&&(ae==null||ae())},[ue,ae]);const P=(le=U.arrow)==null?void 0:le.x,B=(pe=U.arrow)==null?void 0:pe.y,Q=((ge=U.arrow)==null?void 0:ge.centerOffset)!==0,[Z,ee]=W.useState();return wl(()=>{v&&ee(window.getComputedStyle(v).zIndex)},[v]),k.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:ue?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[(ye=U.transformOrigin)==null?void 0:ye.x,(ke=U.transformOrigin)==null?void 0:ke.y].join(" "),...((Re=U.hide)==null?void 0:Re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:k.jsx(GP,{scope:n,placedSide:te,onArrowChange:I,arrowX:P,arrowY:B,shouldHideArrow:Q,children:k.jsx(qn.div,{"data-side":te,"data-align":fe,...w,ref:A,style:{...w.style,animation:ue?void 0:"none"}})})})});nA.displayName=F2;var rA="PopperArrow",KP={top:"bottom",right:"left",bottom:"top",left:"right"},iA=W.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=$P(rA,r),o=KP[s.placedSide];return k.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:k.jsx(HP,{...i,ref:n,style:{...i.style,display:"block"}})})});iA.displayName=rA;function QP(e){return e!==null}var YP=e=>({name:"transformOrigin",options:e,fn(t){var _,v,x;const{placement:n,rects:r,middlewareData:i}=t,o=((_=i.arrow)==null?void 0:_.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,d]=sA(n),g={start:"0%",center:"50%",end:"100%"}[d],p=(((v=i.arrow)==null?void 0:v.x)??0)+a/2,h=(((x=i.arrow)==null?void 0:x.y)??0)+l/2;let b="",w="";return c==="bottom"?(b=o?g:`${p}px`,w=`${-l}px`):c==="top"?(b=o?g:`${p}px`,w=`${r.floating.height+l}px`):c==="right"?(b=`${-l}px`,w=o?g:`${h}px`):c==="left"&&(b=`${r.floating.width+l}px`,w=o?g:`${h}px`),{data:{x:b,y:w}}}});function sA(e){const[t,n="center"]=e.split("-");return[t,n]}var XP=tA,JP=nA,ZP=iA,[O0,SF]=k2("Tooltip",[J4]),M2=J4(),oA="TooltipProvider",eL=700,m5="tooltip.open",[tL,aA]=O0(oA),lA=e=>{const{__scopeTooltip:t,delayDuration:n=eL,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,[o,a]=W.useState(!0),l=W.useRef(!1),c=W.useRef(0);return W.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),k.jsx(tL,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:W.useCallback(()=>{window.clearTimeout(c.current),a(!1)},[]),onClose:W.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:W.useCallback(d=>{l.current=d}
vendor: 4,520 bytes, line 141
141,[]),disableHoverableContent:i,children:s})};lA.displayName=oA;var cA="Tooltip",[kF,I0]=O0(cA),K1="TooltipTrigger",nL=W.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=I0(K1,n),s=aA(K1,n),o=M2(n),a=W.useRef(null),l=Ti(t,a,i.onTriggerChange),c=W.useRef(!1),d=W.useRef(!1),g=W.useCallback(()=>c.current=!1,[]);return W.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),k.jsx(XP,{asChild:!0,...o,children:k.jsx(qn.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Nn(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:Nn(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:Nn(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Nn(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:Nn(e.onBlur,i.onClose),onClick:Nn(e.onClick,i.onClose)})})});nL.displayName=K1;var rL="TooltipPortal",[NF,iL]=O0(rL,{forceMount:void 0}),ou="TooltipContent",uA=W.forwardRef((e,t)=>{const n=iL(ou,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=I0(ou,e.__scopeTooltip);return k.jsx(b0,{present:r||o.open,children:o.disableHoverableContent?k.jsx(dA,{side:i,...s,ref:t}):k.jsx(sL,{side:i,...s,ref:t})})}),sL=W.forwardRef((e,t)=>{const n=I0(ou,e.__scopeTooltip),r=aA(ou,e.__scopeTooltip),i=W.useRef(null),s=Ti(t,i),[o,a]=W.useState(null),{trigger:l,onClose:c}=n,d=i.current,{onPointerInTransitChange:g}=r,p=W.useCallback(()=>{a(null),g(!1)},[g]),h=W.useCallback((b,w)=>{const _=b.currentTarget,v={x:b.clientX,y:b.clientY},x=cL(v,_.getBoundingClientRect()),A=uL(v,x),N=dL(w.getBoundingClientRect()),I=fL([...A,...N]);a(I),g(!0)},[g]);return W.useEffect(()=>()=>p(),[p]),W.useEffect(()=>{if(l&&d){const b=_=>h(_,d),w=_=>h(_,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",w),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",w)}}},[l,d,h,p]),W.useEffect(()=>{if(o){const b=w=>{const _=w.target,v={x:w.clientX,y:w.clientY},x=(l==null?void 0:l.contains(_))||(d==null?void 0:d.contains(_)),A=!hL(v,o);x?p():A&&(p(),c())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,o,c,p]),k.jsx(dA,{...e,ref:s})}),[oL,aL]=O0(cA,{isInside:!1}),dA=W.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=I0(ou,n),c=M2(n),{onClose:d}=l;return W.useEffect(()=>(document.addEventListener(m5,d),()=>document.removeEventListener(m5,d)),[d]),W.useEffect(()=>{if(l.trigger){const g=p=>{const h=p.target;h!=null&&h.contains(l.trigger)&&d()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[l.trigger,d]),k.jsx(N2,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:g=>g.preventDefault(),onDismiss:d,children:k.jsxs(JP,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[k.jsx(Z_,{children:r}),k.jsx(oL,{scope:n,isInside:!0,children:k.jsx(l8,{id:l.contentId,role:"tooltip",children:i||r})})]})})});uA.displayName=ou;var hA="TooltipArrow",lL=W.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=M2(n);return aL(hA,n).isInside?null:k.jsx(ZP,{...i,...r,ref:t})});lL.displayName=hA;function cL(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function uL(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function dL(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function hL(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;
141o=s++){const a=t[s].x,l=t[s].y,c=t[o].x,d=t[o].y;l>r!=d>r&&n<(c-a)*(r-l)/(d-l)+a&&(i=!i)}return i}function fL(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),pL(t)}function pL(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var gL=lA,fA=uA;const mL=gL,vL=W.forwardRef(({className:e,sideOffset:t=4,...n},r)=>k.jsx(fA,{ref:r,sideOffset:t,className:In("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));vL.displayName=fA.displayName;var D0=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},F0=typeof window>"u"||"Deno"in globalThis;function Gi(){}function yL(e,t){return typeof e=="function"?e(t):e}function wL(e){return typeof e=="number"&&e>=0&&e!==1/0}function bL(e,t){return Math.max(e+(t||0)-Date.now(),0)}function v5(e,t){return typeof e=="function"?e(t):e}function xL(e,t){return typeof e=="function"?e(t):e}function y5(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==B2(o,t.options))return!1}else if(!Yd(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function w5(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Qd(t.options.mutationKey)!==Qd(s))return!1}else if(!Yd(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function B2(e,t){return((t==null?void 0:t.queryKeyHashFn)||Qd)(e)}function Qd(e){return JSON.stringify(e,(t,n)=>Q1(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Yd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Yd(e[n],t[n])):!1}function pA(e,t){if(e===t)return e;const n=b5(e)&&b5(t);
vendor: 21,434 bytes, line 141
141if(n||Q1(e)&&Q1(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{};let l=0;for(let c=0;c<o;c++){const d=n?c:s[c];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=pA(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return i===o&&l===i?e:a}return t}function b5(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Q1(e){if(!x5(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!x5(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function x5(e){return Object.prototype.toString.call(e)==="[object Object]"}function _L(e){return new Promise(t=>{setTimeout(t,e)})}function AL(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?pA(e,t):t}function SL(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function kL(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var U2=Symbol();function gA(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===U2?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var al,$o,Hc,Px,NL=(Px=class extends D0{constructor(){super();Bt(this,al);Bt(this,$o);Bt(this,Hc);_t(this,Hc,t=>{if(!F0&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_e(this,$o)||this.setEventListener(_e(this,Hc))}onUnsubscribe(){var t;this.hasListeners()||((t=_e(this,$o))==null||t.call(this),_t(this,$o,void 0))}setEventListener(t){var n;_t(this,Hc,t),(n=_e(this,$o))==null||n.call(this),_t(this,$o,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){_e(this,al)!==t&&(_t(this,al,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof _e(this,al)=="boolean"?_e(this,al):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},al=new WeakMap,$o=new WeakMap,Hc=new WeakMap,Px),mA=new NL,Wc,Ko,Vc,Lx,EL=(Lx=class extends D0{constructor(){super();Bt(this,Wc,!0);Bt(this,Ko);Bt(this,Vc);_t(this,Vc,t=>{if(!F0&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){_e(this,Ko)||this.setEventListener(_e(this,Vc))}onUnsubscribe(){var t;this.hasListeners()||((t=_e(this,Ko))==null||t.call(this),_t(this,Ko,void 0))}setEventListener(t){var n;_t(this,Vc,t),(n=_e(this,Ko))==null||n.call(this),_t(this,Ko,t(this.setOnline.bind(this)))}setOnline(t){_e(this,Wc)!==t&&(_t(this,Wc,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return _e(this,Wc)}},Wc=new WeakMap,Ko=new WeakMap,Vc=new WeakMap,Lx),Wp=new EL;function CL(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function PL(e){return Math.min(1e3*2**e,3e4)}function vA(e){return(e??"online")==="online"?Wp.isOnline():!0}var yA=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function cm(e){return e instanceof yA}function wA(e){let t=!1,n=0,r=!1,i;const s=CL(),o=w=>{var _;r||(p(new yA(w)),(_=e.abort)==null||_.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>mA.isFocused()&&(e.networkMode==="always"||Wp.isOnline())&&e.canRun(),d=()=>vA(e.networkMode)&&e.canRun(),g=w=>{var _;r||(r=!0,(_=e.onSuccess)==null||_.call(e,w),i==null||i(),s.resolve(w))},p=w=>{var _;r||(r=!0,(_=e.onError)==null||_.call(e,w),i==null||i(),s.reject(w))},h=()=>new Promise(w=>{var _;i=v=>{(r||c())&&w(v)},(_=e.onPause)==null||_.call(e)}).then(()=>{var w;i=void 0,r||(w=e.onContinue)==null||w.call(e)}),b=()=>{if(r)return;let w;const _=n===0?e.initialPromise:void 0;try{w=_??e.fn()}catch(v){w=Promise.reject(v)}Promise.resolve(w).then(g).catch(v=>{var $;if(r)return;const x=e.retry??(F0?0:3),A=e.retryDelay??PL,N=typeof A=="function"?A(n,v):A,I=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,v);if(t||!I){p(v);return}n++,($=e.onFail)==null||$.call(e,n,v),_L(N).then(()=>c()?void 0:h()).then(()=>{t?p(v):b()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?b():h().then(b),s)}}function LL(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=a=>setTimeout(a,0);const s=a=>{t?e.push(a):i(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var Cr=LL(),ll,Tx,bA=(Tx=class{constructor(){Bt(this,ll)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wL(this.gcTime)&&_t(this,ll,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(F0?1/0:5*60*1e3))}clearGcTimeout(){_e(this,ll)&&(clearTimeout(_e(this,ll)),_t(this,ll,void 0))}},ll=new WeakMap,Tx),Gc,$c,Ai,vr,hh,cl,Ki,Zs,Rx,TL=(Rx=class extends bA{constructor(t){super();Bt(this,Ki);Bt(this,Gc);Bt(this,$c);Bt(this,Ai);Bt(this,vr);Bt(this,hh);Bt(this,cl);_t(this,cl,!1),_t(this,hh,t.defaultOptions),this.setOptions(t.options),this.observers=[],_t(this,Ai,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,_t(this,Gc,jL(this.options)),this.state=t.state??_e(this,Gc),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=_e(this,vr))==null?void 0:t.promise}setOptions(t){this.options={..._e(this,hh),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_e(this,Ai).remove(this)}setData(t,n){const r=AL(this.state.data,t,this.options);return ur(this,Ki,Zs).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ur(this,Ki,Zs).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=_e(this,vr))==null?void 0:r.promise;return(i=_e(this,vr))==null||i.cancel(t),n?n.then(Gi).catch(Gi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_e(this,Gc))}isActive(){return this.observers.some(t=>xL(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===U2||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!bL(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=_e(this,vr))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=_e(this,vr))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),_e(this,Ai).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(_e(this,vr)&&(_e(this,cl)?_e(this,vr).cancel({revert:!0}):_e(this,vr).cancelRetry()),this.scheduleGc()),_e(this,Ai).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ur(this,Ki,Zs).call(this,{type:"invalidate"})}fetch(t,n){var l,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_e(this,vr))return _e(this,vr).continueRetry(),_e(this,vr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(p=>p.options.queryFn);g&&this.setOptions(g.options)}const r=new AbortController,i=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(_t(this,cl,!0),r.signal)})},s=()=>{const g=gA(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),_t(this,cl,!1),this.options.persister?this.options.persister(g,p,this):g(p)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),_t(this,$c,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=o.fetchOptions)==null?void 0:c.meta))&&ur(this,Ki,Zs).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta});const a=g=>{var p,h,b,w;cm(g)&&g.silent||ur(this,Ki,Zs).call(this,{type:"error",error:g}),cm(g)||((h=(p=_e(this,Ai).config).onError)==null||h.call(p,g,this),(w=(b=_e(this,Ai).config).onSettled)==null||w.call(b,this.state.data,g,this)),this.scheduleGc()};return _t(this,vr,wA({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:g=>{var p,h,b,w;if(g===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(_){a(_);return}(h=(p=_e(this,Ai).config).onSuccess)==null||h.call(p,g,this),(w=(b=_e(this,Ai).config).onSettled)==null||w.call(b,g,this.state.error,this),this.scheduleGc()},onError:a,onFail:(g,p)=>{ur(this,Ki,Zs).call(this,{type:"failed",failureCount:g,error:p})},onPause:()=>{ur(this,Ki,Zs).call(this,{type:"pause"})},onContinue:()=>{ur(this,Ki,Zs).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),_e(this,vr).start()}},Gc=new WeakMap,$c=new WeakMap,Ai=new WeakMap,vr=new WeakMap,hh=new WeakMap,cl=new WeakMap,Ki=new WeakSet,Zs=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...RL(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return cm(i)&&i.revert&&_e(this,$c)?{..._e(this,$c),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Cr.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),_e(this,Ai).notify({query:this,type:"updated",action:t})})},Rx);function RL(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vA(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function jL(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var xs,jx,OL=(jx=class extends D0{constructor(t={}){super();Bt(this,xs);this.config=t,_t(this,xs,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??B2(i,n);let o=this.get(s);return o||(o=new TL({cache:this,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){_e(this,xs).has(t.queryHash)||(_e(this,xs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=_e(this,xs).get(t.queryHash);n&&(t.destroy(),n===t&&_e(this,xs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Cr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _e(this,xs).get(t)}getAll(){return[..._e(this,xs).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>y5(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>y5(t,r)):n}notify(t){Cr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Cr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Cr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},xs=new WeakMap,jx),_s,Nr,ul,As,Bo,Ox,IL=(Ox=class extends bA{constructor(t){super();Bt(this,As);Bt(this,_s);Bt(this,Nr);Bt(this,ul);this.mutationId=t.mutationId,_t(this,Nr,t.mutationCache),_t(this,_s,[]),this.state=t.state||DL(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){_e(this,_s).includes(t)||(_e(this,_s).push(t),this.clearGcTimeout(),_e(this,Nr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){_t(this,_s,_e(this,_s).filter(n=>n!==t)),this.scheduleGc(),_e(this,Nr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_e(this,_s).length||(this.state.status==="pending"?this.scheduleGc():_e(this,Nr).remove(this))}continue(){var t;return((t=_e(this,ul))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,o,a,l,c,d,g,p,h,b,w,_,v,x,A,N,I,$,K;_t(this,ul,wA({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,D)=>{ur(this,As,Bo).call(this,{type:"failed",failureCount:M,error:D})},onPause:()=>{ur(this,As,Bo).call(this,{type:"pause"})},onContinue:()=>{ur(this,As,Bo).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_e(this,Nr).canRun(this)}));const n=this.state.status==="pending",r=!_e(this,ul).canStart();try{if(!n){ur(this,As,Bo).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(i=_e(this,Nr).config).onMutate)==null?void 0:s.call(i,t,this));const D=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));D!==this.state.context&&ur(this,As,Bo).call(this,{type:"pending",context:D,variables:t,isPaused:r})}const M=await _e(this,ul).start();return await((c=(l=_e(this,Nr).config).onSuccess)==null?void 0:c.call(l,M,t,this.state.context,this)),await((g=(d=this.options).onSuccess)==null?void 0:g.call(d,M,t,this.state.context)),await((h=(p=_e(this,Nr).config).onSettled)==null?void 0:h.call(p,M,null,this.state.variables,this.state.context,this)),await((w=(b=this.options).onSettled)==null?void 0:w.call(b,M,null,t,this.state.context)),ur(this,As,Bo).call(this,{type:"success",data:M}),M}catch(M){try{throw await((v=(_=_e(this,Nr).config).onError)==null?void 0:v.call(_,M,t,this.state.context,this)),await((A=(x=this.options).onError)==null?void 0:A.call(x,M,t,this.state.context)),await((I=(N=_e(this,Nr).config).onSettled)==null?void 0:I.call(N,void 0,M,this.state.variables,this.state.context,this)),await((K=($=this.options).onSettled)==null?void 0:K.call($,void 0,M,t,this.state.context)),M}finally{ur(this,As,Bo).call(this,{type:"error",error:M})}}finally{_e(this,Nr).runNext(this)}}},_s=new WeakMap,Nr=new WeakMap,ul=new WeakMap,As=new WeakSet,Bo=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Cr.batch(()=>{_e(this,_s).forEach(r=>{r.onMutationUpdate(t)}),_e(this,Nr).notify({mutation:this,type:"updated",action:t})})},Ox);function DL(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ri,fh,Ix,FL=(Ix=class extends D0{constructor(t={}){super();Bt(this,ri);Bt(this,fh);this.config=t,_t(this,ri,new Map),_t(this,fh,Date.now())}build(t,n,r){const i=new IL({mutationCache:this,mutationId:++af(this,fh)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Pf(t),r=_e(this,ri).get(n)??[];r.push(t),_e(this,ri).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Pf(t);if(_e(this,ri).has(n)){const i=(r=_e(this,ri).get(n))==null?void 0:r.filter(s=>s!==t);i&&(i.length===0?_e(this,ri).delete(n):_e(this,ri).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=_e(this,ri).get(Pf(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=_e(this,ri).get(Pf(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Cr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[..._e(this,ri).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>w5(n,r))}findAll(t={}){return this.getAll().filter(n=>w5(t,n))}notify(t){Cr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Cr.batch(()=>Promise.all(t.map(n=>n.continue().catch(Gi))))}},ri=new WeakMap,fh=new WeakMap,Ix);function Pf(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function _5(e){return{onFetch:(t,n)=>{var d,g,p,h,b;const r=t.options,i=(p=(g=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:g.fetchMore)==null?void 0:p.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],o=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let w=!1;const _=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},v=gA(t.options,t.fetchOptions),x=async(A,N,I)=>{if(w)return Promise.reject();if(N==null&&A.pages.length)return Promise.resolve(A);const $={queryKey:t.queryKey,pageParam:N,direction:I?"backward":"forward",meta:t.options.meta};_($);const K=await v($),{maxPages:M}=t.options,D=I?kL:SL;return{pages:D(A.pages,K,M),pageParams:D(A.pageParams,N,M)}};if(i&&s.length){const A=i==="backward",N=A?ML:A5,I={pages:s,pageParams:o},$=N(r,I);a=await x(I,$,A)}else{const A=e??s.length;do{const N=l===0?o[0]??r.initialPageParam:A5(r,a);if(l>0&&N==null)break;a=await x(a,N),l++}while(l<A)}return a};t.options.persister?t.fetchFn=()=>{var w,_;return(_=(w=t.options).persister)==null?void 0:_.call(w,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function A5(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ML(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var yn,Qo,Yo,Kc,Qc,Xo,Yc,Xc,Dx,BL=(Dx=class{constructor(e={}){Bt(this,yn);Bt(this,Qo);Bt(this,Yo);Bt(this,Kc);Bt(this,Qc);Bt(this,Xo);Bt(this,Yc);Bt(this,Xc);_t(this,yn,e.queryCache||new OL),_t(this,Qo,e.mutationCache||new FL),_t(this,Yo,e.defaultOptions||{}),_t(this,Kc,new Map),_t(this,Qc,new Map),_t(this,Xo,0)}mount(){af(this,Xo)._++,_e(this,Xo)===1&&(_t(this,Yc,mA.subscribe(async e=>{e&&(await this.resumePausedMutations(),_e(this,yn).onFocus())})),_t(this,Xc,Wp.subscribe(async e=>{e&&(await this.resumePausedMutations(),_e(this,yn).onOnline())})))}unmount(){var e,t;af(this,Xo)._--,_e(this,Xo)===0&&((e=_e(this,Yc))==null||e.call(this),_t(this,Yc,void 0),(t=_e(this,Xc))==null||t.call(this),_t(this,Xc,void 0))}isFetching(e){return _e(this,yn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _e(this,Qo).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_e(this,yn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=_e(this,yn).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(v5(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return _e(this,yn).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=_e(this,yn).get(r.queryHash),s=i==null?void 0:i.state.data,o=yL(t,s);if(o!==void 0)return _e(this,yn).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Cr.batch(()=>_e(this,yn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_e(this,yn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=_e(this,yn);Cr.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=_e(this,yn),r={type:"active",...e};return Cr.batch(()=>(n.findAll(e).forEach(i=>
141{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Cr.batch(()=>_e(this,yn).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Gi).catch(Gi)}invalidateQueries(e={},t={}){return Cr.batch(()=>{if(_e(this,yn).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Cr.batch(()=>_e(this,yn).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Gi)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Gi)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=_e(this,yn).build(this,t);return n.isStaleByTime(v5(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Gi).catch(Gi)}fetchInfiniteQuery(e){return e.behavior=_5(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Gi).catch(Gi)}ensureInfiniteQueryData(e){return e.behavior=_5(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Wp.isOnline()?_e(this,Qo).resumePausedMutations():Promise.resolve()}getQueryCache(){return _e(this,yn)}getMutationCache(){return _e(this,Qo)}getDefaultOptions(){return _e(this,Yo)}setDefaultOptions(e){_t(this,Yo,e)}setQueryDefaults(e,t){_e(this,Kc).set(Qd(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._e(this,Kc).values()];let n={};return t.forEach(r=>{Yd(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){_e(this,Qc).set(Qd(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._e(this,Qc).values()];let n={};return t.forEach(r=>{Yd(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={..._e(this,Yo).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=B2(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===U2&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._e(this,Yo).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_e(this,yn).clear(),_e(this,Qo).clear()}},yn=new WeakMap,Qo=new WeakMap,Yo=new WeakMap,Kc=new WeakMap,Qc=new WeakMap,Xo=new WeakMap,Yc=new WeakMap,Xc=new WeakMap,Dx),UL=W.createContext(void 0),zL=({client:e,children:t})=>(W.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),k.jsx(UL.Provider,{value:e,children:t}));/**
142 * @remix-run/router v1.20.0
143 *
144 * Copyright (c) Remix Software Inc.
145 *
146 * This source code is licensed under the MIT license found in the
147 * LICENSE.md file in the root directory of this source tree.
148 *
149 * @license MIT
150 */function Vp(){return Vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vp.apply(this,arguments)}var ea;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ea||(ea={}));const S5="popstate";function qL(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:a}=r.location;return Y1("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:_A(i)}return WL(t,n,null,e)}function Hr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xA(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function HL(){return Math.random().toString(36).substr(2,8)}function k5(e,t){return{usr:e.state,key:e.key,idx:t}}function Y1(e,t,n,r){return n===void 0&&(n=null),Vp({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?M0(t):t,{state:n,key:t&&t.key||r||HL()})}function _A(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function M0(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function WL(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=ea.Pop,l=null,c=d();c==null&&(c=0,o.replaceState(Vp({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function g(){a=ea.Pop;let _=d(),v=_==null?null:_-c;c=_,l&&l({action:a,location:w.location,delta:v})}function p(_,v){a=ea.Push;let x=Y1(w.location,_,v);c=d()+1;let A=k5(x,c),N=w.createHref(x);try{o.pushState(A,"",N)}
vendor: 3,324 bytes, line 150
150catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;i.location.assign(N)}s&&l&&l({action:a,location:w.location,delta:1})}function h(_,v){a=ea.Replace;let x=Y1(w.location,_,v);c=d();let A=k5(x,c),N=w.createHref(x);o.replaceState(A,"",N),s&&l&&l({action:a,location:w.location,delta:0})}function b(_){let v=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof _=="string"?_:_A(_);return x=x.replace(/ $/,"%20"),Hr(v,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,v)}let w={get action(){return a},get location(){return e(i,o)},listen(_){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(S5,g),l=_,()=>{i.removeEventListener(S5,g),l=null}},createHref(_){return t(i,_)},createURL:b,encodeLocation(_){let v=b(_);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:h,go(_){return o.go(_)}};return w}var N5;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(N5||(N5={}));function VL(e,t,n){return n===void 0&&(n="/"),GL(e,t,n,!1)}function GL(e,t,n,r){let i=typeof t=="string"?M0(t):t,s=kA(i.pathname||"/",n);if(s==null)return null;let o=AA(e);$L(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=iT(s);a=nT(o[l],c,r)}return a}function AA(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Hr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Dc([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(Hr(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),AA(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:eT(c,s.index),routesMeta:d})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of SA(s.path))i(s,o,l)}),t}function SA(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=SA(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function $L(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:tT(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const KL=/^:[\w-]+$/,QL=3,YL=2,XL=1,JL=10,ZL=-2,E5=e=>e==="*";function eT(e,t){let n=e.split("/"),r=n.length;return n.some(E5)&&(r+=ZL),t&&(r+=YL),n.filter(i=>!E5(i)).reduce((i,s)=>i+(KL.test(s)?QL:s===""?XL:JL),r)}function tT(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function nT(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",g=C5({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),p=l.route;if(!g&&c&&n&&!r[r.length-1].route.index&&(g=C5({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!g)return null;
vendor: 4,131 bytes, lines 150-159
150Object.assign(i,g.params),o.push({params:i,pathname:Dc([s,g.pathname]),pathnameBase:sT(Dc([s,g.pathnameBase])),route:p}),g.pathnameBase!=="/"&&(s=Dc([s,g.pathnameBase]))}return o}function C5(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=rT(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,d,g)=>{let{paramName:p,isOptional:h}=d;if(p==="*"){let w=a[g]||"";o=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const b=a[g];return h&&!b?c[p]=void 0:c[p]=(b||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:e}}function rT(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),xA(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function iT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xA(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function kA(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Dc=e=>e.join("/").replace(/\/\/+/g,"/"),sT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function oT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const NA=["post","put","patch","delete"];new Set(NA);const aT=["get",...NA];new Set(aT);/**
151 * React Router v6.27.0
152 *
153 * Copyright (c) Remix Software Inc.
154 *
155 * This source code is licensed under the MIT license found in the
156 * LICENSE.md file in the root directory of this source tree.
157 *
158 * @license MIT
159 */function Gp(){return Gp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gp.apply(this,arguments)}const lT=W.createContext(null),cT=W.createContext(null),EA=W.createContext(null),B0=W.createContext(null),U0=W.createContext({outlet:null,matches:[],isDataRoute:!1}),CA=W.createContext(null);function z2(){return W.useContext(B0)!=null}function PA(){return z2()||Hr(!1),W.useContext(B0).location}function uT(e,t){return dT(e,t)}function dT(e,t,n,r){z2()||Hr(!1);let{navigator:i}=W.useContext(EA),{matches:s}=W.useContext(U0),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=PA(),d;if(t){var g;let _=typeof t=="string"?M0(t):t;l==="/"||(g=_.pathname)!=null&&g.startsWith(l)||Hr(!1),d=_}else d=c;let p=d.pathname||"/",h=p;if(l!=="/"){let _=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(_.length).join("/")}let b=VL(e,{pathname:h}),w=mT(b&&b.map(_=>Object.assign({},_,{params:Object.assign({},a,_.params),pathname:Dc([l,i.encodeLocation?i.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?l:Dc([l,i.encodeLocation?i.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),s,n,r);return t&&w?W.createElement(B0.Provider,{value:{location:Gp({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ea.Pop}},w):w}function hT(){let e=bT(),t=oT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return W.createElement(W.Fragment,null,W.createElement("h2",null,"Unexpected Application 
159Error!"),W.createElement("h3",{style:{fontStyle:"italic"}},t),n?W.createElement("pre",{style:i},n):null,null)}const fT=W.createElement(hT,null);class pT extends W.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?W.createElement(U0.Provider,{value:this.props.routeContext},W.createElement(CA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function gT(e){let{routeContext:t,match:n,children:r}=e,i=W.useContext(lT);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),W.createElement(U0.Provider,{value:t},r)}function mT(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=o.findIndex(g=>g.route.id&&(a==null?void 0:a[g.route.id])!==void 0);d>=0||Hr(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let g=o[d];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(c=d),g.route.id){let{loaderData:p,errors:h}=n,b=g.route.loader&&p[g.route.id]===void 0&&(!h||h[g.route.id]===void 0);if(g.route.lazy||b){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,g,p)=>{let h,b=!1,w=null,_=null;n&&(h=a&&g.route.id?a[g.route.id]:void 0,w=g.route.errorElement||fT,l&&(c<0&&p===0?(b=!0,_=null):c===p&&(b=!0,_=g.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,p+1)),x=()=>{let A;return h?A=w:b?A=_:g.route.Component?A=W.createElement(g.route.Component,null):g.route.element?A=g.route.element:A=d,W.createElement(gT,{match:g,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:A})};return n&&(g.route.ErrorBoundary||g.route.errorElement||p===0)?W.createElement(pT,{location:n.location,revalidation:n.revalidation,component:w,error:h,children:x(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):x()},null)}var X1=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(X1||{});function vT(e){let t=W.useContext(cT);return t||Hr(!1),t}function yT(e){let t=W.useContext(U0);return t||Hr(!1),t}function wT(e){let t=yT(),n=t.matches[t.matches.length-1];return n.route.id||Hr(!1),n.route.id}function bT(){var e;let t=W.useContext(CA),n=vT(X1.UseRouteError),r=wT(X1.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function J1(e){Hr(!1)}function xT(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ea.Pop,navigator:s,static:o=!1,future:a}=e;z2()&&Hr(!1);let l=t.replace(/^\/*/,"/"),c=W.useMemo(()=>({basename:l,navigator:s,static:o,future:Gp({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=M0(r));let{pathname:d="/",search:g="",hash:p="",state:h=null,key:b="default"}=r,w=W.useMemo(()=>{let _=kA(d,l);return _==null?null:{location:{pathname:_,search:g,hash:p,state:h,key:b},navigationType:i}},[l,d,g,p,h,b,i]);return w==null?null:W.createElement(EA.Provider,{value:c},W.createElement(B0.Provider,{children:n,value:w}))}function _T(e){let{children:t,location:n}=e;return uT(Z1(t),n)}new Promise(()=>{});function Z1(e,t){t===void 0&&(t=[]);let n=[];
159return W.Children.forEach(e,(r,i)=>{if(!W.isValidElement(r))return;let s=[...t,i];if(r.type===W.Fragment){n.push.apply(n,Z1(r.props.children,s));return}r.type!==J1&&Hr(!1),!r.props.index||!r.props.children||Hr(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Z1(r.props.children,s)),n.push(o)}),n}/**
160 * React Router DOM v6.27.0
161 *
162 * Copyright (c) Remix Software Inc.
163 *
164 * This source code is licensed under the MIT license found in the
165 * LICENSE.md file in the root directory of this source tree.
166 *
167 * @license MIT
168 */const AT="6";try{window.__reactRouterVersion=AT}catch{}const ST="startTransition",P5=x6[ST];function kT(e){let{basename:t,children:n,future:r,window:i}=e,s=W.useRef();s.current==null&&(s.current=qL({window:i,v5Compat:!0}));let o=s.current,[a,l]=W.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=W.useCallback(g=>{c&&P5?P5(()=>l(g)):l(g)},[l,c]);return W.useLayoutEffect(()=>o.listen(d),[o,d]),W.createElement(xT,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}var L5;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(L5||(L5={}));var T5;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(T5||(T5={}));const NT=S0("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),It=W.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},s)=>{const o=r?Gd:"button";return k.jsx(o,{className:In(NT({variant:t,size:n,className:e})),ref:s,...i})});It.displayName="Button";function ET(e,t=[]){let n=[];function r(s,o){const a=W.createContext(o),l=n.length;n=[...n,o];function c(g){const{scope:p,children:h,...b}=g,w=(p==null?void 0:p[e][l])||a,_=W.useMemo(()=>b,Object.values(b));return k.jsx(w.Provider,{value:_,children:h})}function d(g,p){const h=(p==null?void 0:p[e][l])||a,b=W.useContext(h);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${g}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,d]}const i=()=>{const s=n.map(o=>W.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return W.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,CT(i,...t)]}function CT(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const g=l(s)[`__scope${c}`];return{...a,...g}},{});return W.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var q2="Progress",H2=100,[PT,EF]=ET(q2),[LT,TT]=PT(q2),LA=W.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:i,getValueLabel:s=RT,...o}=e;(i||i===0)&&!R5(i)&&console.error(jT(`${i}`,"Progress"));const a=R5(i)?i:H2;r!==null&&!j5(r,a)&&console.error(OT(`${r}`,"Progress"));const l=j5(r,a)?r:null,c=$p(l)?s(l,a):void 0;return k.jsx(LT,{scope:n,value:l,max:a,children:k.jsx(qn.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":$p(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":jA(l,a),"data-value":l??void 0,"data-max":a,...o,ref:t})})});LA.displayName=q2;var TA="ProgressIndicator",RA=W.forwardRef((e,t)=>
168{const{__scopeProgress:n,...r}=e,i=TT(TA,n);return k.jsx(qn.div,{"data-state":jA(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});RA.displayName=TA;function RT(e,t){return`${Math.round(e/t*100)}%`}function jA(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function $p(e){return typeof e=="number"}function R5(e){return $p(e)&&!isNaN(e)&&e>0}function j5(e,t){return $p(e)&&!isNaN(e)&&e<=t&&e>=0}function jT(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${H2}\`.`}function OT(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
169  - a positive number
170  - less than the value passed to \`max\` (or ${H2} if no \`max\` prop is set)
171  - \`null\` or \`undefined\` if the progress is indeterminate.
172
173Defaulting to \`null\`.`}var OA=LA,IT=RA;const IA=W.forwardRef(({className:e,value:t,...n},r)=>k.jsx(OA,{ref:r,className:In("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:k.jsx(IT,{className:"h-full w-full flex-1 bg-gradient-to-r from-blue-600 via-purple-600 to-pink-500 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));IA.displayName=OA.displayName;const Wr=W.forwardRef(({className:e,...t},n)=>k.jsx("div",{ref:n,className:In("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Wr.displayName="Card";const ji=W.forwardRef(({className:e,...t},n)=>k.jsx("div",{ref:n,className:In("flex flex-col space-y-1.5 p-6",e),...t}));ji.displayName="CardHeader";const Oi=W.forwardRef(({className:e,...t},n)=>k.jsx("h3",{ref:n,className:In("text-2xl font-semibold leading-none tracking-tight",e),...t}));Oi.displayName="CardTitle";const DT=W.forwardRef(({className:e,...t},n)=>k.jsx("p",{ref:n,className:In("text-sm text-muted-foreground",e),...t}));DT.displayName="CardDescription";const Vr=W.forwardRef(({className:e,...t},n)=>k.jsx("div",{ref:n,className:In("p-6 pt-0",e),...t}));Vr.displayName="CardContent";const FT=W.forwardRef(({className:e,...t},n)=>k.jsx("div",{ref:n,className:In("flex items-center p-6 pt-0",e),...t}));FT.displayName="CardFooter";const ev=W.forwardRef(({className:e,type:t,...n},r)=>k.jsx("input",{type:t,className:In("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));ev.displayName="Input";var MT="Label",DA=W.forwardRef((e,t)=>k.jsx(qn.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));DA.displayName=MT;var FA=DA;const BT=S0("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),tv=W.forwardRef(({className:e,...t},n)=>k.jsx(FA,{ref:n,className:In(BT(),e),...t}));tv.displayName=FA.displayName;const W2=()=>k.jsxs("div",{className:"bg-gradient-to-r from-orange-50 to-red-50 p-6 rounded-2xl border border-orange-200 text-center animate-fade-in",children:[k.jsx("p",{className:"text-lg font-semibold text-slate-800 mb-2",children:"🔥 Spots are limited for our next coaching session."}),k.jsx("p",{className:"text-slate-600 mb-4",children:"Book your free call today to secure your place!"}),k.jsxs(It,{size:"lg",className:"bg-gradient-to-r from-orange-600 to-red-600 hover:from-orange-700 hover:to-red-700 text-white font-semibold",onClick:()=>window.open("https://calendly.com/nicky-aspire/30-minute-meeting-clone","_blank"),children:[k.jsx(C4,{className:"mr-2 h-5 w-5"}),"Book Your Free Discovery Call"]})]}),UT=({onNext:e,userInfo:t,onUserInfoSubmit:n})=>{const[r,i]=W.useState(""),[s,o]=W.useState(""),[a,l]=W.useState({}),c=[{letter:"U",title:"Understand Your Core Values",icon:jc,color:"text-blue-600",bg:"bg-blue-100"},{letter:"N",title:"Name Your Strengths and Passions",icon:L0,color:"text-purple-600",bg:"bg-purple-100"},{letter:"S",title:"Set Clear Goals",icon:C0,color:"text-pink-600",bg:"bg-pink-100"},{letter:"T",title:"Take Small, Consistent Steps",icon:P0,color:"text-orange-600",bg:"bg-orange-100"}
173,{letter:"U",title:"Use Your Network",icon:E0,color:"text-fuchsia-600",bg:"bg-fuchsia-100"},{letter:"C",title:"Cultivate a Growth Mindset",icon:k0,color:"text-indigo-600",bg:"bg-indigo-100"},{letter:"K",title:"Keep Moving Forward",icon:N0,color:"text-teal-600",bg:"bg-teal-100"}],d=()=>{const g={},p=r.trim(),h=s.trim();p?p.length>100&&(g.name="Name must be less than 100 characters"):g.name="Please enter your name",h?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h)?h.length>255&&(g.email="Email must be less than 255 characters"):g.email="Please enter a valid email address":g.email="Please enter your email address",l(g),Object.keys(g).length===0&&(n==null||n({name:p,email:h}),e())};return k.jsxs(Wr,{className:"animate-fade-in shadow-xl border-0 bg-white/80 backdrop-blur-sm",children:[k.jsxs("div",{className:"relative h-64 overflow-hidden rounded-t-lg",children:[k.jsx("img",{src:"https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=800&q=80",alt:"Professional meeting in modern London office - career coaching",className:"w-full h-full object-cover transition-transform duration-700 hover:scale-105"}),k.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-blue-600/80 via-purple-600/80 to-pink-500/80 flex items-center justify-center",children:k.jsxs("div",{className:"text-center text-white animate-fade-in",children:[k.jsx("h1",{className:"text-4xl font-bold mb-2 animate-scale-in",children:"Aspire Career and Business Coaching"}),k.jsx("p",{className:"text-lg opacity-90",children:"Helping people get unstuck and gain more clarity and vision to get where they dream to be"})]})})]}),k.jsxs(ji,{className:"text-center pb-6",children:[k.jsxs("div",{className:"animate-fade-in delay-200",children:[k.jsx("h2",{className:"text-2xl font-semibold text-slate-700 mb-4",children:"Are you feeling stuck in your career or business?"}),k.jsx("p",{className:"text-lg text-slate-600 max-w-3xl mx-auto leading-relaxed mb-6",children:"Do you dream of finding a job that truly excites you or building a business that aligns with your passions? At Aspire Career and Business Coaching, we believe that everyone has the potential to create a fulfilling and successful career. It's just a matter of unlocking it."}),k.jsx("p",{className:"text-lg text-slate-600 max-w-3xl mx-auto leading-relaxed mb-6",children:"With our UNSTUCK Formula, we've helped countless individuals and entrepreneurs break through barriers, discover their strengths, and take actionable steps toward their dream careers and businesses. Whether you're looking to pivot to a new industry, climb the corporate ladder, or launch your own venture, we're here to guide you every step of the way."})]}),k.jsx(Oi,{className:"text-3xl font-bold bg-gradient-to-r from-blue-600 via-purple-600 to-pink-500 bg-clip-text text-transparent mb-6 animate-fade-in delay-300 text-center",children:"The UNSTUCK Formula"}),k.jsx("p",{className:"text-lg text-slate-600 max-w-2xl mx-auto leading-relaxed animate-fade-in delay-400",children:"A proven 7-step process to help you discover a career that aligns with your values, leverages your strengths, and brings you fulfilment."})]}),k.jsxs(Vr,{className:"space-y-8",children:[k.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3 animate-fade-in delay-500",children:c.map((g,p)=>{const h=g.icon;return k.jsx("div",{className:"group hover:transform hover:scale-105 transition-all duration-300 animate-fade-in",style:{animationDelay:`${600+p*100}ms`},children:k.jsxs("div",{className:"flex items-start space-x-4 p-5 rounded-xl bg-gradient-to-br from-white to-slate-50 border border-slate-200 shadow-sm hover:shadow-md transition-all",children:[k.jsx("div",{className:`flex-shrink-0 w-12 h-12 rounded-full ${g.bg} flex items-center justify-center ${g.color} font-bold text-xl shadow-sm`,children:g.letter}),k.jsx("div",{className:"flex-1",children:k.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[k.jsx(h,{size:18,className:g.color}),k.jsx("h3",{className:"font-semibold text-slate-800 text-sm leading-tight",children:g.title})]})})]})},p)})}),k.jsxs("div",{className:"bg-gradient-to-br from-blue-50 to-purple-50 p-8 rounded-2xl border border-blue-100 animate-fade-in delay-1000",children:[k.jsx("h3",{className:"font-bold text-slate-800 mb-4 text-xl",children:"What to Expect"}),k.jsxs("ul",{className:"space-y-3 text-slate-600",children:[k.jsxs("li",{className:"flex items-center space-x-3",children:[k.jsx("div",{className:"w-2 h-2 bg-gradient-to-r from-blue-500 to-purple-500 rounded-full animate-pulse"}),k.jsx("span",{children:"Interactive assessments for each step of the formula"})]}),k.jsxs("li",{className:"flex items-center space-x-3",children:[k.jsx("div",{className:"w-2 h-2 bg-gradient-to-r from-purple-500 to-pink-500 rounded-full animate-pulse",style:{animationDelay:"200ms"}}),k.jsx("span",{children:"Personalised insights based on your responses"})]}),k.jsxs("li",{className:"flex items-center space-x-3",children:[k.jsx("div",{className:"w-2 h-2 bg-gradient-to-r from-pink-500 to-orange-500 rounded-full animate-pulse",style:{animationDelay:"400ms"}}),k.jsx("span",{children:"A comprehensive summary to guide your next steps"})]}),k.jsxs("li",{className:"flex items-center space-x-3",children:[k.jsx("div",{className:"w-2 h-2 bg-gradient-to-r from-orange-500 to-teal-500 rounded-full animate-pulse",style:{animationDelay:"600ms"}}),k.jsx("span",{children:"Takes about 5-10 minutes to complete"})]})]})]}),k.jsxs("div",{className:"bg-gradient-to-r from-slate-50 to-blue-50 p-8 rounded-2xl border border-slate-200 animate-fade-in delay-1200",children:[k.jsx("h3",{className:"font-bold text-slate-800 mb-4 text-xl text-center",children:"Ready to take the first step?"}),k.jsx("p",{className:"text-slate-600 text-center mb-6",children:"Let's work together to turn your aspirations into reality."}),k.jsxs("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-4 mb-6",children:[k.jsxs("div",{className:"text-center p-6 bg-white rounded-lg border border-slate-200 hover:shadow-md transition-shadow",children:[k.jsx("div",{className:"h-32 w-32 mx-auto mb-4 rounded-lg overflow-hidden",children:k.jsx("img",{src:"https://images.unsplash.com/photo-1552581234-26160f608093?auto=format&fit=crop&w=200&q=80",alt:"Professional video call meeting - discovery call",className:"w-full h-full object-cover"})}),k.jsx("h4",{className:"font-semibold text-slate-800 mb-2",children:"Book a Free Discovery Call"}),k.jsx("p",{className:"text-sm text-slate-600",children:"Let's chat about your goals"}),k.jsx(It,{className:"mt-2 bg-blue-600 hover:bg-blue-700 text-white",onClick:()=>window.open("https://calendly.com/nicky-aspire/30-minute-meeting-clone","_blank"),children:"Schedule Call"})]}),k.jsxs("div",{className:"text-center p-6 bg-white rounded-lg border border-slate-200 hover:shadow-md transition-shadow",children:[k.jsx("div",{className:"h-32 w-32 mx-auto mb-4 rounded-lg overflow-hidden",children:k.jsx("img",{src:"https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=200&q=80",alt:"Team working together in modern office - coaching programs",className:"w-full h-full object-cover"})}),k.jsx("h4",{className:"font-semibold text-slate-800 mb-2",children:"Explore Our Programmes"}),k.jsx("p",{className:"text-sm text-slate-600",children:"Tailored coaching solutions"}),k.jsx(It,{className:"mt-2 bg-purple-600 hover:bg-purple-700 text-white",onClick:()=>window.open("https://aspire-coaching.co.uk/career-coaching","_blank"),children:"Learn More"})]}),k.jsxs("div",{className:"text-center p-6 bg-white rounded-lg border border-slate-200 hover:shadow-md transition-shadow",children:[k.jsx("div",{className:"h-32 w-32 mx-auto mb-4 rounded-lg overflow-hidden",children:k.jsx("img",{src:"https://images.unsplash.com/photo-1506784983877-45594efa4cbe?auto=format&fit=crop&w=200&q=80",alt:"Wheel of Life assessment - life balance tool",className:"w-full h-full object-cover"})}),k.jsx("h4",{className:"font-semibold text-slate-800 mb-2",children:"Wheel of Life Assessment"}),k.jsx("p",{className:"text-sm text-slate-600",children:"Assess your life balance"}),k.jsx(It,{className:"mt-2 bg-pink-600 hover:bg-pink-700 text-white",onClick:()=>window.open("https://aspire-coaching.co.uk/wheel-of-life","_blank"),children:"Try It Free"})]}),k.jsxs("div",{className:"text-center p-6 bg-white rounded-lg border border-slate-200 hover:shadow-md transition-shadow",children:[k.jsx("div",{className:"h-32 w-32 mx-auto mb-4 rounded-lg overflow-hidden",children:k.jsx("img",{src:"https://images.unsplash.com/photo-1600880292203-757bb62b4baf?auto=format&fit=crop&w=200&q=80",alt:"Happy professionals sharing success stories - testimonials",className:"w-full h-full object-cover"})}),k.jsx("h4",{className:"font-semibold text-slate-800 mb-2",children:"Testimonials Stories"}),k.jsx("p",{className:"text-sm text-slate-600",children:"Read our success stories"}),k.jsx(It,{className:"mt-2 bg-green-600 hover:bg-green-700 text-white",onClick:()=>window.open("https://aspire-coaching.co.uk/testimonials","_blank"),children:"Read More"})]})]}),k.jsx("div",{className:"bg-green-50 p-4 rounded-lg border border-green-200 mb-4",children:k.jsx("p",{className:"text-sm text-green-800 italic text-center",children:`"I foun
173d Nicky to be a knowledgeable and empathic coach who, over the sessions we had together, helped me generate the right approach in my career. Since then I've been able to regain my focus with a renewed vigor and make significant progress. Thank you Nicky." – Dominic`})})]}),k.jsxs("div",{className:"bg-gradient-to-br from-purple-50 to-blue-50 p-8 rounded-2xl border border-purple-200 animate-fade-in delay-1400",children:[k.jsx("h3",{className:"font-bold text-slate-800 mb-2 text-xl text-center",children:"Enter your details to begin"}),k.jsx("p",{className:"text-slate-600 text-center mb-6",children:"Please provide your name and email to start the UNSTUCK quiz and receive your personalised career roadmap."}),k.jsxs("div",{className:"max-w-md mx-auto space-y-4",children:[k.jsxs("div",{children:[k.jsxs(tv,{htmlFor:"user-name",className:"text-slate-700 font-medium flex items-center gap-2 mb-1",children:[k.jsx(R8,{className:"h-4 w-4"})," Your Name"]}),k.jsx(ev,{id:"user-name",type:"text",placeholder:"Enter your full name",value:r,onChange:g=>i(g.target.value),className:`bg-white ${a.name?"border-red-400":""}`,maxLength:100}),a.name&&k.jsx("p",{className:"text-red-500 text-sm mt-1",children:a.name})]}),k.jsxs("div",{children:[k.jsxs(tv,{htmlFor:"user-email",className:"text-slate-700 font-medium flex items-center gap-2 mb-1",children:[k.jsx(P4,{className:"h-4 w-4"})," Your Email"]}),k.jsx(ev,{id:"user-email",type:"email",placeholder:"Enter your email address",value:s,onChange:g=>o(g.target.value),className:`bg-white ${a.email?"border-red-400":""}`,maxLength:255}),a.email&&k.jsx("p",{className:"text-red-500 text-sm mt-1",children:a.email})]})]})]}),k.jsx("div",{className:"text-center pt-6",children:k.jsxs(It,{onClick:d,size:"lg",className:"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white px-10 py-3.5 text-lg font-semibold shadow-lg hover:shadow-xl transition-all duration-300 transform hover:scale-105 animate-fade-in delay-1400",children:["Start Your Journey",k.jsx(ka,{className:"ml-3 h-5 w-5"})]})}),k.jsx(W2,{})]})]})};function zT(e){const t=W.useRef({value:e,previous:e});return W.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var V2="Checkbox",[qT,CF]=k2(V2),[HT,WT]=qT(V2),MA=W.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:s,required:o,disabled:a,value:l="on",onCheckedChange:c,form:d,...g}=e,[p,h]=W.useState(null),b=Ti(t,N=>h(N)),w=W.useRef(!1),_=p?d||!!p.closest("form"):!0,[v=!1,x]=s4({prop:i,defaultProp:s,onChange:c}),A=W.useRef(v);return W.useEffect(()=>{const N=p==null?void 0:p.form;if(N){const I=()=>x(A.current);return N.addEventListener("reset",I),()=>N.removeEventListener("reset",I)}},[p,x]),k.jsxs(HT,{scope:n,state:v,disabled:a,children:[k.jsx(qn.button,{type:"button",role:"checkbox","aria-checked":da(v)?"mixed":v,"aria-required":o,"data-state":zA(v),"data-disabled":a?"":void 0,disabled:a,value:l,...g,ref:b,onKeyDown:Nn(e.onKeyDown,N=>{N.key==="Enter"&&N.preventDefault()}),onClick:Nn(e.onClick,N=>{x(I=>da(I)?!0:!I),_&&(w.current=N.isPropagationStopped(),w.current||N.stopPropagation())})}),_&&k.jsx(VT,{control:p,bubbles:!w.current,name:r,value:l,checked:v,required:o,disabled:a,form:d,style:{transform:"translateX(-100%)"},defaultChecked:da(s)?!1:s})]})});MA.displayName=V2;var BA="CheckboxIndicator",UA=W.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,s=WT(BA,n);return k.jsx(b0,{present:r||da(s.state)||s.state===!0,children:k.jsx(qn.span,{"data-state":zA(s.state),"data-disabled":s.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});UA.displayName=BA;var VT=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:i,...s}=e,o=W.useRef(null),a=zT(n),l=Q4(t);W.useEffect(()=>{const d=o.current,g=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(g,"checked").set;if(a!==n&&h){const b=new Event("click",{bubbles:r});d.indeterminate=da(n),h.call(d,da(n)?!1:n),d.dispatchEvent(b)}},[a,n,r]);const c=W.useRef(da(n)?!1:n);return k.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i??c.current,...s,tabIndex:-1,ref:o,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function da(e){return e==="indeterminate"}function zA(e){return da(e)?"indeterminate":e?"checked":"unchecked"}var qA=MA,GT=UA;const Na=W.forwardRef(({className:e,...t},n)=>k.jsx(qA,{ref:n,className:In("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:k.jsx(GT,{className:In("flex items-center justify-center text-current"),children:k.jsx(L8,{className:"h-4 w-4"})})}));Na.displayName=qA.displayName;const $T=({onNext:e,onPrevious:t})=>{const[n,r]=W.useState([]),i=["Autonomy & Independence","Work-Life Balance","Financial Security","Career Growth","Creativity & Innovation","Helping Others","Leadership & Influence","Learning & Development","Recognition & Achievement","Teamwork & Collaboration","Stability & Predictability","Adventure & Variety","Making a Difference","Intellectual Challenge","Flexibility","Community & Belonging"],s=a=>{r(l=>l.includes(a)?l.filter(c=>c!==a):[...l,a])},o=()=>{n.length>=3&&e(n)};return k.jsxs(Wr,{className:"animate-fade-in shadow-xl border-0 bg-white/80 backdrop-blur-sm",children:[k.jsxs("div",{className:"relative h-48 overflow-hidden rounded-t-lg",children:[k.jsx("img",{src:"https://images.unsplash.com/photo-1560472354-b33ff0c44a43?auto=format&fit=crop&w=800&q=80",alt:"London skyline with Thames - representing British career values and aspirations",className:"w-full h-full object-cover transition-transform duration-700 hover:scale-105"}
173),k.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-blue-600/70 to-purple-600/70"})]}),k.jsxs(ji,{className:"text-centre",children:[k.jsxs("div",{className:"flex items-centre justify-centre space-x-3 mb-4 animate-fade-in delay-200",children:[k.jsx("div",{className:"p-3 bg-blue-100 rounded-full",children:k.jsx(jc,{className:"h-8 w-8 text-blue-600"})}),k.jsx(Oi,{className:"text-3xl font-bold text-slate-800",children:"Understand Your Core Values"})]}),k.jsx("p",{className:"text-slate-600 text-lg animate-fade-in delay-300",children:"Select the values that matter most to you in your career. Choose at least 3."})]}),k.jsxs(Vr,{className:"space-y-6",children:[k.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:i.map((a,l)=>k.jsxs("div",{className:`flex items-centre space-x-4 p-4 rounded-xl border-2 cursor-pointer transition-all duration-300 animate-fade-in hover:transform hover:scale-102 ${n.includes(a)?"border-blue-400 bg-gradient-to-r from-blue-50 to-purple-50 shadow-md transform scale-105":"border-slate-200 bg-white hover:border-slate-300 hover:shadow-sm"}`,style:{animationDelay:`${400+l*50}ms`},onClick:()=>s(a),children:[k.jsx(Na,{checked:n.includes(a),onChange:()=>s(a),className:"data-[state=checked]:bg-blue-600"}),k.jsx("span",{className:"font-medium text-slate-800",children:a})]},a))}),k.jsx("div",{className:"bg-gradient-to-r from-blue-50 to-purple-50 p-6 rounded-xl border border-blue-200 animate-fade-in delay-1000",children:k.jsxs("p",{className:"text-blue-800 font-medium",children:[k.jsx("strong",{children:"Selected:"})," ",n.length," value",n.length!==1?"s":"",n.length<3&&` (Select at least ${3-n.length} more)`]})}),k.jsxs("div",{className:"flex justify-between pt-6",children:[t&&k.jsxs(It,{onClick:t,variant:"outline",className:"border-slate-300 hover:bg-slate-50 animate-fade-in delay-1100",children:[k.jsx(vo,{className:"mr-2 h-4 w-4"}),"Previous"]}),k.jsx("div",{className:"flex-1"}),k.jsxs(It,{onClick:o,disabled:n.length<3,className:"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 shadow-lg disabled:opacity-50 animate-fade-in delay-1100 hover:transform hover:scale-105 transition-all duration-300",children:["Next Step",k.jsx(ka,{className:"ml-2 h-4 w-4"})]})]})]})]})},KT=({onNext:e,onPrevious:t})=>{const[n,r]=W.useState([]),i=["Problem Solving","Communication","Leadership","Creativity","Analytical Thinking","Project Management","Teaching & Mentoring","Sales & Persuasion","Technical Skills","Writing","Design & Visual Arts","Research","Public Speaking","Organisation","Innovation","Customer Service","Data Analysis","Strategic Planning","Collaboration","Entrepreneurship"],s=a=>{r(l=>l.includes(a)?l.filter(c=>c!==a):[...l,a])},o=()=>{n.length>=3&&e(n)};return k.jsxs(Wr,{className:"animate-fade-in shadow-xl border-0 bg-white/80 backdrop-blur-sm",children:[k.jsxs("div",{className:"relative h-48 overflow-hidden rounded-t-lg",children:[k.jsx("img",{src:"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=800&q=80",alt:"Professional woman in white shirt using laptop - representing strengths and skills",className:"w-full h-full object-cover"}),k.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-purple-600/70 to-pink-600/70"})]}),k.jsxs(ji,{className:"text-centre",children:[k.jsxs("div",{className:"flex items-centre justify-centre space-x-3 mb-4",children:[k.jsx("div",{className:"p-3 bg-purple-100 rounded-full",children:k.jsx(L0,{className:"h-8 w-8 text-purple-600"})}),k.jsx(Oi,{className:"text-3xl font-bold text-slate-800",children:"Name Your Strengths and Passions"})]}),k.jsx("p",{className:"text-slate-600 text-lg",children:"Identify your key strengths and areas you're passionate about. Select at least 3."})]}),k.jsxs(Vr,{className:"space-y-6",children:[k.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:i.map(a=>k.jsxs("div",{className:`flex items-centre space-x-4 p-4 rounded-xl border-2 cursor-pointer transition-all duration-300 ${n.includes(a)?"border-purple-400 bg-gradient-to-r from-purple-50 to-pink-50 shadow-md transform scale-105":"border-slate-200 bg-white hover:border-slate-300 hover:shadow-sm"}`,onClick:()=>s(a),children:[k.jsx(Na,{checked:n.includes(a),onChange:()=>s(a),className:"data-[state=checked]:bg-purple-600"}),k.jsx("span",{className:"font-medium text-slate-800",children:a})]},a))}),k.jsx("div",{className:"bg-gradient-to-r from-purple-50 to-pink-50 p-6 rounded-xl border border-purple-200",children:k.jsxs("p",{className:"text-purple-800 font-medium",children:[k.jsx("strong",{children:"Selected:"}
173)," ",n.length," strength",n.length!==1?"s":"","/passion",n.length!==1?"s":"",n.length<3&&` (Select at least ${3-n.length} more)`]})}),k.jsxs("div",{className:"flex justify-between pt-6",children:[t&&k.jsxs(It,{onClick:t,variant:"outline",className:"border-slate-300 hover:bg-slate-50",children:[k.jsx(vo,{className:"mr-2 h-4 w-4"}),"Previous"]}),k.jsx("div",{className:"flex-1"}),k.jsxs(It,{onClick:o,disabled:n.length<3,className:"bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 shadow-lg disabled:opacity-50",children:["Next Step",k.jsx(ka,{className:"ml-2 h-4 w-4"})]})]})]})]})},QT=({onNext:e,onPrevious:t})=>{const[n,r]=W.useState([]),i=["Find a job in a new industry","Get promoted in my current field","Start my own business","Improve work-life balance","Increase my salary significantly","Work remotely or have flexible hours","Lead a team or department","Develop new skills","Make a career change","Work for a mission-driven organisation","Become an expert in my field","Travel for work","Work in a collaborative environment","Have more creative freedom","Build a strong professional network","Achieve recognition in my industry"],s=a=>{r(l=>l.includes(a)?l.filter(c=>c!==a):[...l,a])},o=()=>{n.length>=2&&e(n)};return k.jsxs(Wr,{className:"animate-fade-in shadow-xl border-0 bg-white/80 backdrop-blur-sm",children:[k.jsxs("div",{className:"relative h-48 overflow-hidden rounded-t-lg",children:[k.jsx("img",{src:"https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=800&q=80",alt:"Professional setting goals and planning career path",className:"w-full h-full object-cover transition-transform duration-700 hover:scale-105"}),k.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-pink-600/70 to-purple-600/70"})]}),k.jsxs(ji,{className:"text-center",children:[k.jsxs("div",{className:"flex items-center justify-center space-x-3 mb-4",children:[k.jsx("div",{className:"p-3 bg-pink-100 rounded-full",children:k.jsx(C0,{className:"h-8 w-8 text-pink-600"})}),k.jsx(Oi,{className:"text-3xl font-bold text-slate-800",children:"Set Clear Goals"})]}),k.jsx("p",{className:"text-slate-600 text-lg",children:"What are your main career objectives? Select at least 2 goals that resonate with you."})]}),k.jsxs(Vr,{className:"space-y-6",children:[k.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:i.map(a=>k.jsxs("div",{className:`flex items-center space-x-4 p-4 rounded-xl border-2 cursor-pointer transition-all duration-300 ${n.includes(a)?"border-pink-400 bg-gradient-to-r from-pink-50 to-purple-50 shadow-md transform scale-105":"border-slate-200 bg-white hover:border-slate-300 hover:shadow-sm"}`,onClick:()=>s(a),children:[k.jsx(Na,{checked:n.includes(a),onChange:()=>s(a),className:"data-[state=checked]:bg-pink-600"}),k.jsx("span",{className:"font-medium text-slate-800",children:a})]},a))}),k.jsx("div",{className:"bg-gradient-to-r from-pink-50 to-purple-50 p-6 rounded-xl border border-pink-200",children:k.jsxs("p",{className:"text-pink-800 font-medium",children:[k.jsx("strong",{children:"Selected:"})," ",n.length," goal",n.length!==1?"s":"",n.length<2&&` (Select at least ${2-n.length} more)`]})}),k.jsxs("div",{className:"flex justify-between pt-6",children:[t&&k.jsxs(It,{onClick:t,variant:"outline",className:"border-slate-300 hover:bg-slate-50",children:[k.jsx(vo,{className:"mr-2 h-4 w-4"}),"Previous"]}),k.jsx("div",{className:"flex-1"}),k.jsxs(It,{onClick:o,disabled:n.length<2,className:"bg-gradient-to-r from-pink-600 to-purple-600 hover:from-pink-700 hover:to-purple-700 shadow-lg disabled:opacity-50 hover:transform hover:scale-105 transition-all duration-300",children:["Next Step",k.jsx(ka,{className:"ml-2 h-4 w-4"})]})]})]})]})},YT=({onNext:e,onPrevious:t})=>{const[n,r]=W.useState([]),i=["Update my CV and LinkedIn profile","Research companies and job opportunities","Network with professionals in my field","Apply to jobs regularly","Develop new skills through courses or training","Practise interview skills","Create a portfolio or work samples","Attend industry events and conferences","Seek informational interviews","Work with a career coach or mentor","Join professional associations","Build my online presence","Volunteer in my field of interest","Take on freelance or contract work","Start a side project","Ask for feedback on my career goals"],s=a=>{r(l=>l.includes(a)?l.filter(c=>c!==a):[...l,a])},o=()=>{n.length>=3&&e(n)};return k.jsxs(Wr,{className:"animate-fade-in shadow-xl border-0 bg-white/80 backdrop-blur-sm",children:[k.jsxs("div",{className:"relative h-48 overflow-hidden rounded-t-lg",children:[k.jsx("img",{src:"https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=800&q=80",alt:"MacBook with code on screen representing taking action and consistent steps",className:"w-full h-full object-cover"}),k.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-orange-600/70 to-pink-600/70"})]}),k.jsxs(ji,{className:"text-centre",children:[k.jsxs("div",{className:"flex items-centre justify-centre space-x-3 mb-4",children:[k.jsx("div",{className:"p-3 bg-orange-100 rounded-full",children:k.jsx(P0,{className:"h-8 w-8 text-orange-600"})}),k.jsx(Oi,{className:"text-3xl font-bold text-slate-800",children:"Take Small, Consistent Steps"})]}),k.jsx("p",{className:"text-slate-600 text-lg",children:"Which actions will you commit to taking? Select at least 3 steps you can start this week."})]}),k.jsxs(Vr,{className:"space-y-6",children:[k.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:i.map(a=>k.jsxs("div",{className:`flex items-centre space-x-4 p-4 rounded-xl border-2 cursor-pointer transition-all duration-300 ${n.includes(a)?"border-orange-400 bg-gradient-to-r from-orange-50 to-pink-50 shadow-md transform scale-105":"border-slate-200 bg-white hover:border-slate-300 hover:shadow-sm"}`,onClick:()=>s(a),children:[k.jsx(Na,{checked:n.includes(a),onChange:()=>s(a),className:"data-[state=checked]:bg-orange-600"}),k.jsx("span",{className:"font-medium text-slate-800",children:a})]},a))}),k.jsx("div",{className:"bg-gradient-to-r from-orange-50 to-pink-50 p-6 rounded-xl border border-orange-200",children:k.jsxs("p",{className:"text-orange-800 font-medium",children:[k.jsx("strong",{children:"Selected:"})," ",n.length," action step",n.length!==1?"s":"",n.length<3&&` (Select at least ${3-n.length} more)`]})}),k.jsxs("div",{className:"flex justify-between pt-6",children:[t&&k.jsxs(It,{onClick:t,variant:"outline",className:"border-slate-300 hover:bg-slate-50",children:[k.jsx(vo,{className:"mr-2 h-4 w-4"}),"Previous"]}),k.jsx("div",{className:"flex-1"}),k.jsxs(It,{onClick:o,disabled:n.length<3,className:"bg-gradient-to-r from-orange-600 to-pink-600 hover:from-orange-700 hover:to-pink-700 shadow-lg disabled:opacity-50",children:["Next Step",k.jsx(ka,{className:"ml-2 h-4 w-4"})]})]})]})]})},XT=({onNext:e,onPrevious:t})=>{const[n,r]=W.useState([]),i=["Former colleagues and coworkers","College alumni and classmates","Friends and family members","Industry professionals on LinkedIn","Members of professional associations","Mentors or former supervisors","People I meet at networking events","Online community members","Freelancers or consultants in my field","Entrepreneurs and business owners","Career coaches or recruiters","People in my target companies","Social media connections","Neighbours and community members","Volunteer organisation contacts","Conference speakers and attendees"],s=a=>{r(l=>l.includes(a)?l.filter(c=>c!==a):[...l,a])},o=()=>{n.length>=2&&e(n)};return k.jsxs(Wr,{className:"animate-fade-in shadow-xl border-0 bg-white/80 backdrop-blur-sm",children:[k.jsxs("div",{className:"relative h-48 overflow-hidden rounded-t-lg",children:[k.jsx("img",{src:"https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=800&q=80",alt:"Professional networking and building connections",className:"w-full h-full object-cover transition-transform duration-700 hover:scale-105"}
173),k.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-fuchsia-600/70 to-pink-600/70"})]}),k.jsxs(ji,{className:"text-center",children:[k.jsxs("div",{className:"flex items-center justify-center space-x-3 mb-4",children:[k.jsx("div",{className:"p-3 bg-fuchsia-100 rounded-full",children:k.jsx(E0,{className:"h-8 w-8 text-fuchsia-600"})}),k.jsx(Oi,{className:"text-3xl font-bold text-slate-800",children:"Use Your Network"})]}),k.jsx("p",{className:"text-slate-600 text-lg",children:"Who can you reach out to for advice, opportunities, or connections? Select at least 2 groups."})]}),k.jsxs(Vr,{className:"space-y-6",children:[k.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:i.map(a=>k.jsxs("div",{className:`flex items-center space-x-4 p-4 rounded-xl border-2 cursor-pointer transition-all duration-300 ${n.includes(a)?"border-fuchsia-400 bg-gradient-to-r from-fuchsia-50 to-pink-50 shadow-md transform scale-105":"border-slate-200 bg-white hover:border-slate-300 hover:shadow-sm"}`,onClick:()=>s(a),children:[k.jsx(Na,{checked:n.includes(a),onChange:()=>s(a),className:"data-[state=checked]:bg-fuchsia-600"}),k.jsx("span",{className:"font-medium text-slate-800",children:a})]},a))}),k.jsx("div",{className:"bg-gradient-to-r from-fuchsia-50 to-pink-50 p-6 rounded-xl border border-fuchsia-200",children:k.jsxs("p",{className:"text-fuchsia-800 font-medium",children:[k.jsx("strong",{children:"Selected:"})," ",n.length," network group",n.length!==1?"s":"",n.length<2&&` (Select at least ${2-n.length} more)`]})}),k.jsxs("div",{className:"flex justify-between pt-6",children:[t&&k.jsxs(It,{onClick:t,variant:"outline",className:"border-slate-300 hover:bg-slate-50",children:[k.jsx(vo,{className:"mr-2 h-4 w-4"}),"Previous"]}),k.jsx("div",{className:"flex-1"}),k.jsxs(It,{onClick:o,disabled:n.length<2,className:"bg-gradient-to-r from-fuchsia-600 to-pink-600 hover:from-fuchsia-700 hover:to-pink-700 shadow-lg disabled:opacity-50 hover:transform hover:scale-105 transition-all duration-300",children:["Next Step",k.jsx(ka,{className:"ml-2 h-4 w-4"})]})]})]})]})},JT=({onNext:e,onPrevious:t})=>{const[n,r]=W.useState([]),i=["View challenges as opportunities to grow","Learn from rejection and setbacks","Seek feedback and constructive criticism","Embrace change and uncertainty","Focus on progress, not perfection","Be willing to step out of my comfort zone","Celebrate small wins along the way","Stay curious and keep learning","Build resilience through difficult times","Ask for help when I need it","Take calculated risks","Practise patience with the process","Maintain a positive attitude","Learn from others' success stories","Adapt my approach when needed","Trust in my ability to figure things out"],s=a=>{r(l=>l.includes(a)?l.filter(c=>c!==a):[...l,a])},o=()=>{n.length>=3&&e(n)};return k.jsxs(Wr,{className:"animate-fade-in shadow-xl border-0 bg-white/80 backdrop-blur-sm",children:[k.jsxs("div",{className:"relative h-48 overflow-hidden rounded-t-lg",children:[k.jsx("img",{src:"https://images.unsplash.com/photo-1501854140801-50d01698950b?auto=format&fit=crop&w=800&q=80",alt:"Bird's eye view of green mountains representing growth mindset and perspective",className:"w-full h-full object-cover"}),k.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-indigo-600/70 to-purple-600/70"})]}),k.jsxs(ji,{className:"text-centre",children:[k.jsxs("div",{className:"flex items-centre justify-centre space-x-3 mb-4",children:[k.jsx("div",{className:"p-3 bg-indigo-100 rounded-full",children:k.jsx(k0,{className:"h-8 w-8 text-indigo-600"})}),k.jsx(Oi,{className:"text-3xl font-bold text-slate-800",children:"Cultivate a Growth Mindset"})]}),k.jsx("p",{className:"text-slate-600 text-lg",children:"How will you approach challenges and setbacks? Select at least 3 mindset shifts you'll embrace."})]}),k.jsxs(Vr,{className:"space-y-6",children:[k.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:i.map(a=>k.jsxs("div",{className:`flex items-centre space-x-4 p-4 rounded-xl border-2 cursor-pointer transition-all duration-300 ${n.includes(a)?"border-indigo-400 bg-gradient-to-r from-indigo-50 to-purple-50 shadow-md transform scale-105":"border-slate-200 bg-white hover:border-slate-300 hover:shadow-sm"}`,onClick:()=>s(a),children:[k.jsx(Na,{checked:n.includes(a),onChange:()=>s(a),className:"data-[state=checked]:bg-indigo-600"}),k.jsx("span",{className:"font-medium text-slate-800",children:a})]},a))}),k.jsx("div",{className:"bg-gradient-to-r from-indigo-50 to-purple-50 p-6 rounded-xl border border-indigo-200",children:k.jsxs("p",{className:"text-indigo-800 font-medium",children:[k.jsx("strong",{children:"Selected:"})," ",n.length," mindset shift",n.length!==1?"s":"",n.length<3&&` (Select at least ${3-n.length} more)`]})}),k.jsxs("div",{className:"flex justify-between pt-6",children:[t&&k.jsxs(It,{onClick:t,variant:"outline",className:"border-slate-300 hover:bg-slate-50",children:[k.jsx(vo,{className:"mr-2 h-4 w-4"}),"Previous"]}),k.jsx("div",{className:"flex-1"}),k.jsxs(It,{onClick:o,disabled:n.length<3,className:"bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 shadow-lg disabled:opacity-50",children:["Next Step",k.jsx(ka,{className:"ml-2 h-4 w-4"})]})]})]})]})},ZT=({onNext:e,onPrevious:t})=>{const[n,r]=W.useState([]),i=["Acknowledge every application I submit","Celebrate each networking conversation","Recognise when I learn something new","Appreciate feedback, even if it's tough","Honour my effort, not just outcomes","Share my progress with supportive people","Take breaks when I need them","Reflect on how far I've already come","Set small milestones to achieve","Reward myself for consistent action","Practise gratitude for opportunities",'Stay connected to my "why"',"Document my journey and insights","Help others going through similar challenges","Maintain perspective during tough times","Trust the process even when it's slow"],s=a=>{r(l=>l.includes(a)?l.filter(c=>c!==a):[...l,a])},o=()=>{n.length>=3&&e(n)};return k.jsxs(Wr,{className:"animate-fade-in shadow-xl border-0 bg-white/80 backdrop-blur-sm",children:[k.jsxs("div",{className:"relative h-48 overflow-hidden rounded-t-lg",children:[k.jsx("img",{src:"https://images.unsplash.com/photo-1533227268428-f9ed0900fb3b?auto=format&fit=crop&w=800&q=80",alt:"Person celebrating success and moving forward in career",className:"w-full h-full object-cover transition-transform duration-700 hover:scale-105"}
173),k.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-teal-600/70 to-blue-600/70"})]}),k.jsxs(ji,{className:"text-center",children:[k.jsxs("div",{className:"flex items-center justify-center space-x-3 mb-4",children:[k.jsx("div",{className:"p-3 bg-teal-100 rounded-full",children:k.jsx(N0,{className:"h-8 w-8 text-teal-600"})}),k.jsx(Oi,{className:"text-3xl font-bold text-slate-800",children:"Keep Moving Forward"})]}),k.jsx("p",{className:"text-slate-600 text-lg",children:"How will you stay motivated and celebrate progress? Select at least 3 ways to keep momentum."})]}),k.jsxs(Vr,{className:"space-y-6",children:[k.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:i.map(a=>k.jsxs("div",{className:`flex items-center space-x-4 p-4 rounded-xl border-2 cursor-pointer transition-all duration-300 ${n.includes(a)?"border-teal-400 bg-gradient-to-r from-teal-50 to-blue-50 shadow-md transform scale-105":"border-slate-200 bg-white hover:border-slate-300 hover:shadow-sm"}`,onClick:()=>s(a),children:[k.jsx(Na,{checked:n.includes(a),onChange:()=>s(a),className:"data-[state=checked]:bg-teal-600"}),k.jsx("span",{className:"font-medium text-slate-800",children:a})]},a))}),k.jsx("div",{className:"bg-gradient-to-r from-teal-50 to-blue-50 p-6 rounded-xl border border-teal-200",children:k.jsxs("p",{className:"text-teal-800 font-medium",children:[k.jsx("strong",{children:"Selected:"})," ",n.length," way",n.length!==1?"s":""," to celebrate",n.length<3&&` (Select at least ${3-n.length} more)`]})}),k.jsxs("div",{className:"flex justify-between pt-6",children:[t&&k.jsxs(It,{onClick:t,variant:"outline",className:"border-slate-300 hover:bg-slate-50",children:[k.jsx(vo,{className:"mr-2 h-4 w-4"}),"Previous"]}),k.jsx("div",{className:"flex-1"}),k.jsxs(It,{onClick:o,disabled:n.length<3,className:"bg-gradient-to-r from-teal-600 to-blue-600 hover:from-teal-700 hover:to-blue-700 shadow-lg disabled:opacity-50 hover:transform hover:scale-105 transition-all duration-300",children:["Get My Summary",k.jsx(ka,{className:"ml-2 h-4 w-4"})]})]})]})]})},e7=({onPrevious:e})=>k.jsxs(Wr,{className:"animate-fade-in shadow-xl border-0 bg-white/80 backdrop-blur-sm",children:[k.jsxs("div",{className:"relative h-48 overflow-hidden rounded-t-lg",children:[k.jsx("img",{src:"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=800&q=80",alt:"Team collaboration in modern UK office - follow-up resources",className:"w-full h-full object-cover transition-transform duration-700 hover:scale-105"}),k.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-teal-600/70 to-blue-600/70"})]}),k.jsxs(ji,{className:"text-center",children:[k.jsxs("div",{className:"flex items-center justify-center space-x-3 mb-4",children:[k.jsx("div",{className:"p-3 bg-teal-100 rounded-full",children:k.jsx(Bp,{className:"h-8 w-8 text-teal-600"})}),k.jsx(Oi,{className:"text-3xl font-bold text-slate-800",children:"Your UNSTUCK Resources"})]}),k.jsx("p",{className:"text-slate-600 text-lg",children:"Continue your journey with these exclusive resources designed to keep you moving forward."})]}),k.jsxs(Vr,{className:"space-y-8",children:[k.jsxs("div",{className:"bg-gradient-to-r from-slate-50 to-teal-50 p-8 rounded-2xl border border-slate-200",children:[k.jsx("h3",{className:"text-2xl font-bold text-slate-800 mb-4 text-center",children:"Ready to Take the Next Step?"}),k.jsx("p",{className:"text-slate-600 text-center mb-6 text-lg",children:"Don't let fear or uncertainty hold you back. Your dream career or business is within reach. Let's make it happen together."}),k.jsxs("div",{className:"grid gap-4 md:grid-cols-2 mb-6",children:[k.jsxs(It,{size:"lg",className:"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white font-semibold py-3",onClick:()=>window.open("https://calendly.com/nicky-aspire/30-minute-meeting-clone","_blank"),children:[k.jsx(C4,{className:"mr-2 h-5 w-5"}),"Book Free Discovery Call"]}),k.jsxs(It,{size:"lg",variant:"outline",className:"border-2 border-slate-300 hover:bg-slate-50 font-semibold py-3",onClick:()=>window.open("https://share-eu1.hsforms.com/19Onz4GvDQL-SOuxV2szKwQ2drfrf","_blank"),children:[k.jsx(P4,{className:"mr-2 h-5 w-5"}),"Contact Us"]})]}),k.jsxs("div",{className:"text-center",children:[k.jsx("p",{className:"text-slate-800 font-bold text-xl mb-2",children:"Aspire Career and Business Coaching"}),k.jsx("p",{className:"text-slate-600 font-medium",children:"Where ambition meets action."})]})]}),k.jsx(W2,{}),k.jsx("div",{className:"flex justify-between pt-6",children:e&&k.jsxs(It,{onClick:e,variant:"outline",className:"border-slate-300 hover:bg-slate-50",children:[k.jsx(vo,{className:"mr-2 h-4 w-4"}),"Previous"]})})]})]}),t7=S0("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function n7({className:e,variant:t,...n}){return k.jsx("div",{className:In(t7({variant:t}),e),...n})}const HA=W.createContext(void 0),r7=[{id:"values-explorer",name:"Values Explorer",description:"Discovered your core values",icon:"🌟",earned:!1}
173,{id:"strengths-superhero",name:"Strengths Superhero",description:"Identified your superpowers",icon:"💪",earned:!1},{id:"goal-setter",name:"Goal Setter",description:"Set clear career goals",icon:"🎯",earned:!1},{id:"action-taker",name:"Action Taker",description:"Planned your next steps",icon:"🚀",earned:!1},{id:"network-builder",name:"Network Builder",description:"Identified your support network",icon:"🤝",earned:!1},{id:"growth-champion",name:"Growth Champion",description:"Embraced the growth mindset",icon:"🧠",earned:!1},{id:"momentum-keeper",name:"Momentum Keeper",description:"Committed to moving forward",icon:"⚡",earned:!1},{id:"unstuck-graduate",name:"UNSTUCK Graduate",description:"Completed the entire formula",icon:"🎓",earned:!1}],i7=({children:e})=>{const[t,n]=W.useState({points:0,badges:r7,completedSteps:[],showConfetti:!1}),r=l=>{n(c=>({...c,points:c.points+l}))},i=l=>{n(c=>({...c,badges:c.badges.map(d=>d.id===l?{...d,earned:!0,earnedAt:new Date}:d)})),o()},s=l=>{n(c=>({...c,completedSteps:[...c.completedSteps,l]})),r(100)},o=()=>{n(l=>({...l,showConfetti:!0})),setTimeout(()=>a(),3e3)},a=()=>{n(l=>({...l,showConfetti:!1}))};return k.jsx(HA.Provider,{value:{state:t,awardPoints:r,earnBadge:i,completeStep:s,triggerConfetti:o,hideConfetti:a},children:e})},WA=()=>{const e=W.useContext(HA);if(!e)throw new Error("useGamification must be used within a GamificationProvider");return e},VA=()=>{const{state:e}=WA(),t=e.badges.filter(n=>n.earned);return t.length===0?null:k.jsxs("div",{className:"mb-6 animate-fade-in",children:[k.jsx("h3",{className:"text-lg font-semibold text-slate-800 mb-3 text-centre",children:"Your Achievements"}),k.jsx("div",{className:"flex flex-wrap gap-2 justify-centre",children:t.map(n=>k.jsxs(n7,{variant:"secondary",className:"bg-gradient-to-r from-yellow-100 to-yellow-200 text-yellow-800 border-yellow-300 px-3 py-1 animate-scale-in",children:[k.jsx("span",{className:"mr-1",children:n.icon}),n.name]},n.id))})]})},s7=()=>k.jsxs(k.Fragment,{children:[k.jsx("div",{className:"text-center pt-6",children:k.jsx("img",{src:"/lovable-uploads/20a33897-1247-4808-ad33-603b5d0026f6.png",alt:"Aspire Career and Business Coaching Logo",className:"h-32 mx-auto mb-4"})}),k.jsxs("div",{className:"relative h-48 overflow-hidden rounded-t-lg",children:[k.jsx("img",{src:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=800&q=80",alt:"British professional celebrating success - career achievement",className:"w-full h-full object-cover transition-transform duration-700 hover:scale-105"}),k.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-green-600/70 to-blue-600/70"})]}),k.jsxs(ji,{className:"text-center",children:[k.jsx(Oi,{className:"text-3xl font-bold text-blue-900 mb-2 animate-fade-in",children:"Your UNSTUCK Journey Summary"}),k.jsx("p",{className:"text-lg text-gray-600 animate-fade-in delay-200",children:"Congratulations! You've completed the UNSTUCK Formula. Here's your personalised career roadmap."}),k.jsx("div",{className:"mt-4",children:k.jsx(VA,{})})]})]}),o7=({title:e,icon:t,data:n,color:r,index:i})=>k.jsxs(Wr,{className:"border-l-4 border-l-gray-300 animate-fade-in hover:shadow-lg transition-shadow",style:{animationDelay:`${i*100}ms`},children:[k.jsx(ji,{className:"pb-3",children:k.jsxs("div",{className:"flex items-center space-x-2",children:[k.jsx(t,{size:20,className:r}),k.jsx(Oi,{className:"text-lg",children:e})]})}),k.jsx(Vr,{className:"pt-0",children:k.jsxs("ul",{className:"space-y-1",children:[n.slice(0,3).map((s,o)=>k.jsxs("li",{className:"text-sm text-gray-700 flex items-start",children:[k.jsx("span",{className:"w-2 h-2 bg-gray-400 rounded-full mt-2 mr-2 flex-shrink-0"}),s]},o)),n.length>3&&k.jsxs("li",{className:"text-sm text-gray-500 italic",children:["+",n.length-3," more selected"]})]})})]}),a7=()=>k.jsx(Wr,{className:"bg-gradient-to-r from-slate-50 to-blue-50 border border-slate-200 animate-fade-in delay-600",children:k.jsxs(Vr,{className:"p-8 text-center",children:[k.jsx("h3",{className:"text-2xl font-bold text-slate-800 mb-4",children:"Ready to take the next step?"}),k.jsx("p",{className:"text-lg text-slate-600 mb-8",children:"Let's work together to turn your aspirations into reality."}),k.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[k.jsx(It,{className:"bg-blue-600 hover:bg-blue-700 text-white text-lg py-3 px-8",onClick:()=>window.open("https://calendly.com/nicky-aspire/30-minute-meeting-clone","_blank"),children:"Book Discovery Call"}),k.jsx(It,{className:"bg-gradient-to-r from-orange-600 to-red-600 hover:from-orange-700 hover:to-red-700 text-white text-lg py-3 px-8",onClick:()=>window.open("https://share-eu1.hsforms.com/19Onz4GvDQL-SOuxV2szKwQ2drfrf","_blank"),children:"Contact Us"})]})]})}),l7="modulepreload",c7=function(e){return"/"+e},O5={},um=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=c7(l),l in O5)return;O5[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const g=document.createElement("link");if(g.rel=c?"stylesheet":l7,c||(g.as="script"),g.crossOrigin="",g.href=l,a&&g.setAttribute("nonce",a),document.head.appendChild(g),c)return new Promise((p,h)=>{g.addEventListener("load",p),g.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};function Ht(e){"@babel/helpers - typeof";return Ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(e)}var ns=Uint8Array,ci=Uint16Array,G2=Int32Array,$2=new ns([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),K2=new ns([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),I5=new ns([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),GA=function(e,t){for(var n=new ci(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new G2(n[30]),r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)i[s]=s-n[r]<<5|r;return{b:n,r:i}},$A=GA($2,2),u7=$A.b,nv=$A.r;u7[28]=258,nv[258]=28;var d7=GA(K2,0),D5=d7.r,rv=new ci(32768);for(var sn=0;sn<32768;++sn){var Fo=(sn&43690)>>1|(sn&21845)<<1;Fo=(Fo&52428)>>2|(Fo&13107)<<2,Fo=(Fo&61680)>>4|(Fo&3855)<<4,rv[sn]=((Fo&65280)>>8|(Fo&255)<<8)>>1}var xd=function(e,t,n){for(var r=e.length,i=0,s=new ci(t);i<r;++i)e[i]&&++s[e[i]-1];var o=new ci(t);for(i=1;i<t;++i)o[i]=o[i-1]+s[i-1]<<1;var a;if(n){a=new ci(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var c=i<<4|e[i],d=t-e[i],g=o[e[i]-1]++<<d,p=g|(1<<d)-1;g<=p;++g)a[rv[g]>>l]=c}else for(a=new ci(r),i=0;i<r;++i)e[i]&&(a[i]=rv[o[e[i]-1]++]>>15-e[i]);return a},xl=new ns(288);for(var sn=0;sn<144;++sn)xl[sn]=8;for(var sn=144;sn<256;++sn)xl[sn]=9;for(var sn=256;sn<280;++sn)xl[sn]=7;for(var sn=280;sn<288;++sn)xl[sn]=8;var Kp=new ns(32);for(var sn=0;sn<32;++sn)Kp[sn]=5;var h7=xd(xl,9,0),f7=xd(Kp,5,0),KA=function(e){return(e+7)/8|0},p7=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new ns(e.subarray(t,n))},Xs=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},Zu=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},dm=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,s=n.slice();if(!i)return{t:YA,l:0};if(i==1){var o=new ns(n[0].s+1);return o[n[0].s]=1,{t:o,l:1}}n.sort(function(I,$){return I.f-$.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],c=0,d=1,g=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};d!=i-1;)a=n[n[c].f<n[g].f?c++:g++],l=n[c!=d&&n[c].f<n[g].f?c++:g++],n[d++]={s:-1,f:a.f+l.f,l:a,r:l};for(var p=s[0].s,r=1;r<i;++r)s[r].s>p&&(p=s[r].s);var h=new ci(p+1),b=iv(n[d-1],h,0);if(b>t){var r=0,w=0,_=b-t,v=1<<_;for(s.sort(function($,K){return h[K.s]-h[$.s]||$.f-K.f});r<i;++r){var x=s[r].s;if(h[x]>
vendor: 1,682 bytes, line 173
173t)w+=v-(1<<b-h[x]),h[x]=t;else break}for(w>>=_;w>0;){var A=s[r].s;h[A]<t?w-=1<<t-h[A]++-1:++r}for(;r>=0&&w;--r){var N=s[r].s;h[N]==t&&(--h[N],++w)}b=t}return{t:new ns(h),l:b}},iv=function(e,t,n){return e.s==-1?Math.max(iv(e.l,t,n+1),iv(e.r,t,n+1)):t[e.s]=n},F5=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ci(++t),r=0,i=e[0],s=1,o=function(l){n[r++]=l},a=1;a<=t;++a)if(e[a]==i&&a!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(i);s=1,i=e[a]}return{c:n.subarray(0,r),n:t}},ed=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},QA=function(e,t,n){var r=n.length,i=KA(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var s=0;s<r;++s)e[i+s+4]=n[s];return(i+4+r)*8},M5=function(e,t,n,r,i,s,o,a,l,c,d){Xs(t,d++,n),++i[256];for(var g=dm(i,15),p=g.t,h=g.l,b=dm(s,15),w=b.t,_=b.l,v=F5(p),x=v.c,A=v.n,N=F5(w),I=N.c,$=N.n,K=new ci(19),M=0;M<x.length;++M)++K[x[M]&31];for(var M=0;M<I.length;++M)++K[I[M]&31];for(var D=dm(K,7),X=D.t,L=D.l,j=19;j>4&&!X[I5[j-1]];--j);var Y=c+5<<3,q=ed(i,xl)+ed(s,Kp)+o,se=ed(i,p)+ed(s,w)+o+14+3*j+ed(K,X)+2*K[16]+3*K[17]+7*K[18];if(l>=0&&Y<=q&&Y<=se)return QA(t,d,e.subarray(l,l+c));var oe,ue,U,te;if(Xs(t,d,1+(se<q)),d+=2,se<q){oe=xd(p,h,0),ue=p,U=xd(w,_,0),te=w;var fe=xd(X,L,0);Xs(t,d,A-257),Xs(t,d+5,$-1),Xs(t,d+10,j-4),d+=14;for(var M=0;M<j;++M)Xs(t,d+3*M,X[I5[M]]);d+=3*j;for(var ae=[x,I],P=0;P<2;++P)for(var B=ae[P],M=0;M<B.length;++M){var Q=B[M]&31;Xs(t,d,fe[Q]),d+=X[Q],Q>15&&(Xs(t,d,B[M]>>5&127),d+=B[M]>>12)}}else oe=h7,ue=xl,U=f7,te=Kp;for(var M=0;M<a;++M){var Z=r[M];if(Z>
vendor: 9,767 bytes, lines 173-174
173255){var Q=Z>>18&31;Zu(t,d,oe[Q+257]),d+=ue[Q+257],Q>7&&(Xs(t,d,Z>>23&31),d+=$2[Q]);var ee=Z&31;Zu(t,d,U[ee]),d+=te[ee],ee>3&&(Zu(t,d,Z>>5&8191),d+=K2[ee])}else Zu(t,d,oe[Z]),d+=ue[Z]}return Zu(t,d,oe[256]),d+ue[256]},g7=new G2([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),YA=new ns(0),m7=function(e,t,n,r,i,s){var o=s.z||e.length,a=new ns(r+o+5*(1+Math.ceil(o/7e3))+i),l=a.subarray(r,a.length-i),c=s.l,d=(s.r||0)&7;if(t){d&&(l[0]=s.r>>3);for(var g=g7[t-1],p=g>>13,h=g&8191,b=(1<<n)-1,w=s.p||new ci(32768),_=s.h||new ci(b+1),v=Math.ceil(n/3),x=2*v,A=function(We){return(e[We]^e[We+1]<<v^e[We+2]<<x)&b},N=new G2(25e3),I=new ci(288),$=new ci(32),K=0,M=0,D=s.i||0,X=0,L=s.w||0,j=0;D+2<o;++D){var Y=A(D),q=D&32767,se=_[Y];if(w[q]=se,_[Y]=q,L<=D){var oe=o-D;if((K>7e3||X>24576)&&(oe>423||!c)){d=M5(e,l,0,N,I,$,M,X,j,D-j,d),X=K=M=0,j=D;for(var ue=0;ue<286;++ue)I[ue]=0;for(var ue=0;ue<30;++ue)$[ue]=0}var U=2,te=0,fe=h,ae=q-se&32767;if(oe>2&&Y==A(D-ae))for(var P=Math.min(p,oe)-1,B=Math.min(32767,D),Q=Math.min(258,oe);ae<=B&&--fe&&q!=se;){if(e[D+U]==e[D+U-ae]){for(var Z=0;Z<Q&&e[D+Z]==e[D+Z-ae];++Z);if(Z>U){if(U=Z,te=ae,Z>P)break;for(var ee=Math.min(ae,Z-2),le=0,ue=0;ue<ee;++ue){var pe=D-ae+ue&32767,ge=w[pe],ye=pe-ge&32767;ye>le&&(le=ye,se=pe)}}}q=se,se=w[q],ae+=q-se&32767}if(te){N[X++]=268435456|nv[U]<<18|D5[te];var ke=nv[U]&31,Re=D5[te]&31;M+=$2[ke]+K2[Re],++I[257+ke],++$[Re],L=D+U,++K}else N[X++]=e[D],++I[e[D]]}}for(D=Math.max(D,L);D<o;++D)N[X++]=e[D],++I[e[D]];d=M5(e,l,c,N,I,$,M,X,j,D-j,d),c||(s.r=d&7|l[d/8|0]<<3,d-=7,s.h=_,s.p=w,s.i=D,s.w=L)}else{for(var D=s.w||0;D<o+c;D+=65535){var Le=D+65535;Le>=o&&(l[d/8|0]=c,Le=o),d=QA(l,d+1,e.subarray(D,Le))}s.i=o}return p7(a,0,r+KA(d)+i)},XA=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,s=n.length|0,o=0;o!=s;){for(var a=Math.min(o+2655,s);o<a;++o)i+=r+=n[o];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},v7=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),o=new ns(s.length+e.length);o.set(s),o.set(e,s.length),e=o,i.w=s.length}return m7(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,i)},JA=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},y7=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=XA();i.p(t.dictionary),JA(e,2,i.d())}};function sv(e,t){t||(t={});var n=XA();n.p(e);var r=v7(e,t,t.dictionary?6:2,4);return y7(r,t),JA(r,r.length-4,n.d()),r}var w7=typeof TextDecoder<"u"&&new TextDecoder,b7=0;try{w7.decode(YA,{stream:!0}),b7=1}catch{}function x7(e){if(Array.isArray(e))return e}function _7(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}function B5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function A7(e,t){if(e){if(typeof e=="string")return B5(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B5(e,t):void 0}}function S7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
174In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U5(e,t){return x7(e)||_7(e,t)||A7(e,t)||S7()}function z5(e,t="utf8"){return new TextDecoder(t).decode(e)}const k7=new TextEncoder;function N7(e){return k7.encode(e)}const E7=1024*8,C7=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),hm={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Q2{constructor(t=E7,n={}){qt(this,"buffer");qt(this,"byteLength");qt(this,"byteOffset");qt(this,"length");qt(this,"offset");qt(this,"lastWrittenByte");qt(this,"littleEndian");qt(this,"_data");qt(this,"_mark");qt(this,"_marks");let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const i=n.offset?n.offset>>>0:0,s=t.byteLength-i;let o=i;(ArrayBuffer.isView(t)||t instanceof Q2)&&(t.byteLength!==t.buffer.byteLength&&(o=t.byteOffset+i),t=t.buffer),r?this.lastWrittenByte=s:this.lastWrittenByte=0,this.buffer=t,this.length=s,this.byteLength=s,this.byteOffset=o,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,o,s),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const r=(this.offset+t)*2,i=new Uint8Array(r);i.set(new Uint8Array(this.buffer)),this.buffer=i.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,n){const r=hm[n].BYTES_PER_ELEMENT*t,i=this.byteOffset+this.offset,s=this.buffer.slice(i,i+r);if(this.littleEndian===C7&&n!=="uint8"&&n!=="int8"){const a=new Uint8Array(this.buffer.slice(i,i+r));a.reverse();const l=new hm[n](a.buffer);return this.offset+=r,l.reverse(),l}const o=new hm[n](s);return this.offset+=r,o}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let n="";for(let r=0;r<t;r++)n+=this.readChar();return n}readUtf8(t=1){return z5(this.readBytes(t))}decodeText(t=1,n="utf8"){return z5(this.readBytes(t),n)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let n=0;n<t.length;n++)this._data.setUint8(this.offset++,t[n]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let n=0;n<t.length;n++)this.writeUint8(t.charCodeAt(n));return this}writeUtf8(t){return this.writeBytes(N7(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const P7=4,q5=0,H5=1,L7=2;function mu(e){let t=e.length;for(;--t>=0;)e[t]=0}const T7=0,ZA=1,R7=2,j7=3,O7=258,Y2=29,xh=256,Xd=xh+1+Y2,Fc=30,X2=19,eS=2*Xd+1,rl=15,fm=16,I7=7,J2=256,tS=16,nS=17,rS=18,ov=new 
vendor: 45,743 bytes, line 174
174Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),ap=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),D7=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),iS=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),F7=512,io=new Array((Xd+2)*2);mu(io);const _d=new Array(Fc*2);mu(_d);const Jd=new Array(F7);mu(Jd);const Zd=new Array(O7-j7+1);mu(Zd);const Z2=new Array(Y2);mu(Z2);const Qp=new Array(Fc);mu(Qp);function pm(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let sS,oS,aS;function gm(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const lS=e=>e<256?Jd[e]:Jd[256+(e>>>7)],eh=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Br=(e,t,n)=>{e.bi_valid>fm-n?(e.bi_buf|=t<<e.bi_valid&65535,eh(e,e.bi_buf),e.bi_buf=t>>fm-e.bi_valid,e.bi_valid+=n-fm):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},Ns=(e,t,n)=>{Br(e,n[t*2],n[t*2+1])},cS=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},M7=e=>{e.bi_valid===16?(eh(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},B7=(e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length;let c,d,g,p,h,b,w=0;for(p=0;p<=rl;p++)e.bl_count[p]=0;for(n[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;c<eS;c++)d=e.heap[c],p=n[n[d*2+1]*2+1]+1,p>l&&(p=l,w++),n[d*2+1]=p,!(d>r)&&(e.bl_count[p]++,h=0,d>=a&&(h=o[d-a]),b=n[d*2],e.opt_len+=b*(p+h),s&&(e.static_len+=b*(i[d*2+1]+h)));if(w!==0){do{for(p=l-1;e.bl_count[p]===0;)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[l]--,w-=2}while(w>0);for(p=l;p!==0;p--)for(d=e.bl_count[p];d!==0;)g=e.heap[--c],!(g>r)&&(n[g*2+1]!==p&&(e.opt_len+=(p-n[g*2+1])*n[g*2],n[g*2+1]=p),d--)}},uS=(e,t,n)=>{const r=new Array(rl+1);let i=0,s,o;for(s=1;s<=rl;s++)i=i+n[s-1]<<1,r[s]=i;for(o=0;o<=t;o++){let a=e[o*2+1];a!==0&&(e[o*2]=cS(r[a]++,a))}},U7=()=>{let e,t,n,r,i;const s=new Array(rl+1);for(n=0,r=0;r<Y2-1;r++)for(Z2[r]=n,e=0;e<1<<ov[r];e++)Zd[n++]=r;for(Zd[n-1]=r,i=0,r=0;r<16;r++)for(Qp[r]=i,e=0;e<1<<ap[r];e++)Jd[i++]=r;for(i>>=7;r<Fc;r++)for(Qp[r]=i<<7,e=0;e<1<<ap[r]-7;e++)Jd[256+i++]=r;for(t=0;t<=rl;t++)s[t]=0;for(e=0;e<=143;)io[e*2+1]=8,e++,s[8]++;for(;e<=255;)io[e*2+1]=9,e++,s[9]++;for(;e<=279;)io[e*2+1]=7,e++,s[7]++;for(;e<=287;)io[e*2+1]=8,e++,s[8]++;for(uS(io,Xd+1,s),e=0;e<Fc;e++)_d[e*2+1]=5,_d[e*2]=cS(e,5);sS=new pm(io,ov,xh+1,Xd,rl),oS=new pm(_d,ap,0,Fc,rl),aS=new pm(new Array(0),D7,0,X2,I7)},dS=e=>{let t;for(t=0;t<Xd;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Fc;t++)e.dyn_dtree[t*2]=0;for(t=0;t<X2;t++)e.bl_tree[t*2]=0;e.dyn_ltree[J2*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},hS=e=>{e.bi_valid>8?eh(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},W5=(e,t,n,r)=>{const i=t*2,s=n*2;return e[i]<e[s]||e[i]===e[s]&&r[t]<=r[n]},mm=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&W5(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!W5(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},V5=(e,t,n)=>{let r,i,s=0,o,a;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+s++]&255,r+=(e.pending_buf[e.sym_buf+s++]&255)<<8,i=e.pending_buf[e.sym_buf+s++],r===0?Ns(e,i,t):(o=Zd[i],Ns(e,o+xh+1,t),a=ov[o],a!==0&&(i-=Z2[o],Br(e,i,a)),r--,o=lS(r),Ns(e,o,n),a=ap[o],a!==0&&(r-=Qp[o],Br(e,r,a)));while(s<e.sym_next);Ns(e,J2,t)},av=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,s=t.stat_desc.elems;let o,a,l=-1,c;for(e.heap_len=0,e.heap_max=eS,o=0;o<s;o++)n[o*2]!==0?(e.heap[++e.heap_len]=l=o,e.depth[o]=0):n[o*2+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=l<2?++l:0,n[c*2]=1,e.depth[c]=0,e.opt_len--,i&&(e.static_len-=r[c*2+1]);for(t.max_code=l,o=e.heap_len>>1;o>=1;o--)mm(e,n,o);c=s;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],mm(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=a,n[c*2]=n[o*2]+n[a*2],e.depth[c]=(e.depth[o]>=e.depth[a]?e.depth[o]:e.depth[a])+1,n[o*2+1]=n[a*2+1]=c,e.heap[1]=c++,mm(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],B7(e,t),uS(n,l,e.bl_count)},G5=(e,t,n)=>{let r,i=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)s=o,o=t[(r+1)*2+1],!(++a<l&&s===o)&&(a<c?e.bl_tree[s*2]+=a:s!==0?(s!==i&&e.bl_tree[s*2]++,e.bl_tree[tS*2]++):a<=10?e.bl_tree[nS*2]++:e.bl_tree[rS*2]++,a=0,i=s,o===0?(l=138,c=3):s===o?(l=6,c=3):(l=7,c=4))},$5=(e,t,n)=>{let r,i=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),r=0;r<=n;r++)if(s=o,o=t[(r+1)*2+1],!(++a<l&&s===o)){if(a<c)do Ns(e,s,e.bl_tree);while(--a!==0);else s!==0?(s!==i&&(Ns(e,s,e.bl_tree),a--),Ns(e,tS,e.bl_tree),Br(e,a-3,2)):a<=10?(Ns(e,nS,e.bl_tree),Br(e,a-3,3)):(Ns(e,rS,e.bl_tree),Br(e,a-11,7));a=0,i=s,o===0?(l=138,c=3):s===o?(l=6,c=3):(l=7,c=4)}},z7=e=>{let t;for(G5(e,e.dyn_ltree,e.l_desc.max_code),G5(e,e.dyn_dtree,e.d_desc.max_code),av(e,e.bl_desc),t=X2-1;t>=3&&e.bl_tree[iS[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},q7=(e,t,n,r)=>{let i;for(Br(e,t-257,5),Br(e,n-1,5),Br(e,r-4,4),i=0;i<r;i++)Br(e,e.bl_tree[iS[i]*2+1],3);$5(e,e.dyn_ltree,t-1),$5(e,e.dyn_dtree,n-1)},H7=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return q5;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return H5;for(n=32;n<xh;n++)if(e.dyn_ltree[n*2]!==0)return H5;return q5};let K5=!1;const W7=e=>{K5||(U7(),K5=!0),e.l_desc=new gm(e.dyn_ltree,sS),e.d_desc=new gm(e.dyn_dtree,oS),e.bl_desc=new gm(e.bl_tree,aS),e.bi_buf=0,e.bi_valid=0,dS(e)},fS=(e,t,n,r)=>{Br(e,(T7<<1)+(r?1:0),3),hS(e),eh(e,n),eh(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},V7=e=>{Br(e,ZA<<1,3),Ns(e,J2,io),M7(e)},G7=(e,t,n,r)=>{let i,s,o=0;e.level>0?(e.strm.data_type===L7&&(e.strm.data_type=H7(e)),av(e,e.l_desc),av(e,e.d_desc),o=z7(e),i=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=i&&(i=s)):i=s=n+5,n+4<=i&&t!==-1?fS(e,t,n,r):e.strategy===P7||s===i?(Br(e,(ZA<<1)+(r?1:0),3),V5(e,io,_d)):(Br(e,(R7<<1)+(r?1:0),3),q7(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),V5(e,e.dyn_ltree,e.dyn_dtree)),dS(e),r&&hS(e)},$7=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Zd[n]+xh+1)*2]++,e.dyn_dtree[lS(t)*2]++),e.sym_next===e.sym_end);var K7=W7,Q7=fS,Y7=G7,X7=$7,J7=V7,Z7={_tr_init:K7,_tr_stored_block:Q7,_tr_flush_block:Y7,_tr_tally:X7,_tr_align:J7};const eR=(e,t,n,r)=>{let i=e&65535|0,s=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0};var th=eR;const tR=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},nR=new Uint32Array(tR()),rR=(e,t,n,r)=>{const i=nR,s=r+n;e^=-1;for(let o=r;o<s;o++)e=e>>>8^i[(e^t[o])&255];return e^-1};var Wn=rR,au={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},_h={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:iR,_tr_stored_block:lv,_tr_flush_block:sR,_tr_tally:ha,_tr_align:oR}=Z7,{Z_NO_FLUSH:fa,Z_PARTIAL_FLUSH:aR,Z_FULL_FLUSH:lR,Z_FINISH:Ni,Z_BLOCK:Q5,Z_OK:nr,Z_STREAM_END:Y5,Z_STREAM_ERROR:Ls,Z_DATA_ERROR:cR,Z_BUF_ERROR:vm,Z_DEFAULT_COMPRESSION:uR,Z_FILTERED:dR,Z_HUFFMAN_ONLY:Lf,Z_RLE:hR,Z_FIXED:fR,Z_DEFAULT_STRATEGY:pR,Z_UNKNOWN:gR,Z_DEFLATED:z0}=_h,mR=9,vR=15,yR=8,wR=29,bR=256,cv=bR+1+wR,xR=30,_R=19,AR=2*cv+1,SR=15,Pt=3,ta=258,Ts=ta+Pt+1,kR=32,lu=42,ey=57,uv=69,dv=73,hv=91,fv=103,il=113,ad=666,Pr=1,vu=2,_l=3,yu=4,NR=3,sl=(e,t)=>(e.msg=au[t],t),X5=e=>e*2-(e>4?9:0),Wo=e=>{let t=e.length;for(;--t>=0;)e[t]=0},ER=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)};let CR=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,pa=CR;const ni=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},ui=(e,t)=>{sR(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ni(e.strm)},Mt=(e,t)=>{e.pending_buf[e.pending++]=t},td=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},pv=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=th(e.adler,t,i,n):e.state.wrap===2&&(e.adler=Wn(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},pS=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,s,o=e.prev_length,a=e.nice_match;const l=e.strstart>e.w_size-Ts?e.strstart-(e.w_size-Ts):0,c=e.window,d=e.w_mask,g=e.prev,p=e.strstart+ta;let h=c[r+o-1],b=c[r+o];e.prev_length>=e.good_match&&(n>>=2),a>e.lookahead&&(a=e.lookahead);do if(i=t,!(c[i+o]!==b||c[i+o-1]!==h||c[i]!==c[r]||c[++i]!==c[r+1])){r+=2,i++;do;while(c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&r<p);if(s=ta-(p-r),r=p-ta,s>o){if(e.match_start=t,o=s,s>=a)break;h=c[r+o-1],b=c[r+o]}}while((t=g[t&d])>l&&--n!==0);return o<=e.lookahead?o:e.lookahead},cu=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Ts)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),ER(e),r+=t),e.strm.avail_in===0)break;if(n=pv(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=Pt)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=pa(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=pa(e,e.ins_h,e.window[i+Pt-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<Pt)););}while(e.lookahead<Ts&&e.strm.avail_in!==0)},gS=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,s,o=0,a=e.strm.avail_in;do{if(r=65535,s=e.bi_valid+42>>3,e.strm.avail_out<s||(s=e.strm.avail_out-s,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>s&&(r=s),r<n&&(r===0&&t!==Ni||t===fa||r!==i+e.strm.avail_in)))break;o=t===Ni&&r===i+e.strm.avail_in?1:0,lv(e,0,0,o),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,ni(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(pv(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?yu:t!==fa&&t!==Ni&&e.strm.avail_in===0&&e.strstart===e.block_start?vu:(s=e.window_size-e.strstart,e.strm.avail_in>s&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,s+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),s>e.strm.avail_in&&(s=e.strm.avail_in),s&&(pv(e.strm,e.window,e.strstart,s),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.high_water<e.strstart&&(e.high_water=e.strstart),s=e.bi_valid+42>>3,s=e.pending_buf_size-s>65535?65535:e.pending_buf_size-s,n=s>e.w_size?e.w_size:s,i=e.strstart-e.block_start,(i>=n||(i||t===Ni)&&t!==fa&&e.strm.avail_in===0&&i<=s)&&(r=i>s?s:i,o=t===Ni&&e.strm.avail_in===0&&r===i?1:0,lv(e,e.block_start,r,o),e.block_start+=r,ni(e.strm)),o?_l:Pr)},ym=(e,t)=>{let n,r;for(;;){if(e.lookahead<Ts){if(cu(e),e.lookahead<Ts&&t===fa)return Pr;if(e.lookahead===0)break}if(n=0,e.lookahead>=Pt&&(e.ins_h=pa(e,e.ins_h,e.window[e.strstart+Pt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-Ts&&(e.match_length=pS(e,n)),e.match_length>=Pt)if(r=ha(e,e.strstart-e.match_start,e.match_length-Pt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Pt){e.match_length--;do e.strstart++,e.ins_h=pa(e,e.ins_h,e.window[e.strstart+Pt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=pa(e,e.ins_h,e.window[e.strstart+1]);else r=ha(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(ui(e,!1),e.strm.avail_out===0))return Pr}return e.insert=e.strstart<Pt-1?e.strstart:Pt-1,t===Ni?(ui(e,!0),e.strm.avail_out===0?_l:yu):e.sym_next&&(ui(e,!1),e.strm.avail_out===0)?Pr:vu},Jl=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<Ts){if(cu(e),e.lookahead<Ts&&t===fa)return Pr;if(e.lookahead===0)break}if(n=0,e.lookahead>=Pt&&(e.ins_h=pa(e,e.ins_h,e.window[e.strstart+Pt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Pt-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Ts&&(e.match_length=pS(e,n),e.match_length<=5&&(e.strategy===dR||e.match_length===Pt&&e.strstart-e.match_start>4096)&&(e.match_length=Pt-1)),e.prev_length>=Pt&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Pt,r=ha(e,e.strstart-1-e.prev_match,e.prev_length-Pt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=pa(e,e.ins_h,e.window[e.strstart+Pt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Pt-1,e.strstart++,r&&(ui(e,!1),e.strm.avail_out===0))return Pr}else if(e.match_available){if(r=ha(e,0,e.window[e.strstart-1]),r&&ui(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Pr}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=ha(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Pt-1?e.strstart:Pt-1,t===Ni?(ui(e,!0),e.strm.avail_out===0?_l:yu):e.sym_next&&(ui(e,!1),e.strm.avail_out===0)?Pr:vu},PR=(e,t)=>{let n,r,i,s;const o=e.window;for(;;){if(e.lookahead<=ta){if(cu(e),e.lookahead<=ta&&t===fa)return Pr;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Pt&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){s=e.strstart+ta;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<s);e.match_length=ta-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Pt?(n=ha(e,1,e.match_length-Pt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=ha(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(ui(e,!1),e.strm.avail_out===0))return Pr}return e.insert=0,t===Ni?(ui(e,!0),e.strm.avail_out===0?_l:yu):e.sym_next&&(ui(e,!1),e.strm.avail_out===0)?Pr:vu},LR=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(cu(e),e.lookahead===0)){if(t===fa)return Pr;break}if(e.match_length=0,n=ha(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(ui(e,!1),e.strm.avail_out===0))return Pr}return e.insert=0,t===Ni?(ui(e,!0),e.strm.avail_out===0?_l:yu):e.sym_next&&(ui(e,!1),e.strm.avail_out===0)?Pr:vu};function ms(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const ld=[new ms(0,0,0,0,gS),new ms(4,4,8,4,ym),new ms(4,5,16,8,ym),new ms(4,6,32,32,ym),new ms(4,4,16,16,Jl),new ms(8,16,32,32,Jl),new ms(8,16,128,128,Jl),new ms(8,32,128,256,Jl),new ms(32,128,258,1024,Jl),new ms(32,258,258,4096,Jl)],TR=e=>{e.window_size=2*e.w_size,Wo(e.head),e.max_lazy_match=ld[e.level].max_lazy,e.good_match=ld[e.level].good_length,e.nice_match=ld[e.level].nice_length,e.max_chain_length=ld[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Pt-1,e.match_available=0,e.ins_h=0};function RR(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=z0,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(AR*2),this.dyn_dtree=new Uint16Array((2*xR+1)*2),this.bl_tree=new Uint16Array((2*_R+1)*2),Wo(this.dyn_ltree),Wo(this.dyn_dtree),Wo(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(SR+1),this.heap=new Uint16Array(2*cv+1),Wo(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*cv+1),Wo(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ah=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==lu&&t.status!==ey&&t.status!==uv&&t.status!==dv&&t.status!==hv&&t.status!==fv&&t.status!==il&&t.status!==ad?1:0},mS=e=>{if(Ah(e))return sl(e,Ls);e.total_in=e.total_out=0,e.data_type=gR;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?ey:t.wrap?lu:il,e.adler=t.wrap===2?0:1,t.last_flush=-2,iR(t),nr},vS=e=>{const t=mS(e);return t===nr&&TR(e.state),t},jR=(e,t)=>Ah(e)||e.state.wrap!==2?Ls:(e.state.gzhead=t,nr),yS=(e,t,n,r,i,s)=>{if(!e)return Ls;let o=1;if(t===uR&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>mR||n!==z0||r<8||r>15||t<0||t>9||s<0||s>fR||r===8&&o!==1)return sl(e,Ls);r===8&&(r=9);const a=new RR;return e.state=a,a.strm=e,a.status=lu,a.wrap=o,a.gzhead=null,a.w_bits=r,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+Pt-1)/Pt),a.window=new Uint8Array(a.w_size*2),a.head=new Uint16Array(a.hash_size),a.prev=new Uint16Array(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new Uint8Array(a.pending_buf_size),a.sym_buf=a.lit_bufsize,a.sym_end=(a.lit_bufsize-1)*3,a.level=t,a.strategy=s,a.method=n,vS(e)},OR=(e,t)=>yS(e,t,z0,vR,yR,pR),IR=(e,t)=>{if(Ah(e)||t>Q5||t<0)return e?sl(e,Ls):Ls;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===ad&&t!==Ni)return sl(e,e.avail_out===0?vm:Ls);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(ni(e),e.avail_out===0)return n.last_flush=-1,nr}else if(e.avail_in===0&&X5(t)<=X5(r)&&t!==Ni)return sl(e,vm);if(n.status===ad&&e.avail_in!==0)return sl(e,vm);if(n.status===lu&&n.wrap===0&&(n.status=il),n.status===lu){let i=z0+(n.w_bits-8<<4)<<8,s=-1;if(n.strategy>=Lf||n.level<2?s=0:n.level<6?s=1:n.level===6?s=2:s=3,i|=s<<6,n.strstart!==0&&(i|=kR),i+=31-i%31,td(n,i),n.strstart!==0&&(td(n,e.adler>>>16),td(n,e.adler&65535)),e.adler=1,n.status=il,ni(e),n.pending!==0)return n.last_flush=-1,nr}if(n.status===ey){if(e.adler=0,Mt(n,31),Mt(n,139),Mt(n,8),n.gzhead)Mt(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Mt(n,n.gzhead.time&255),Mt(n,n.gzhead.time>>8&255),Mt(n,n.gzhead.time>>16&255),Mt(n,n.gzhead.time>>24&255),Mt(n,n.level===9?2:n.strategy>=Lf||n.level<2?4:0),Mt(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(Mt(n,n.gzhead.extra.length&255),Mt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Wn(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=uv;else if(Mt(n,0),Mt(n,0),Mt(n,0),Mt(n,0),Mt(n,0),Mt(n,n.level===9?2:n.strategy>=Lf||n.level<2?4:0),Mt(n,NR),n.status=il,ni(e),n.pending!==0)return n.last_flush=-1,nr}if(n.status===uv){if(n.gzhead.extra){let i=n.pending,s=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+s>n.pending_buf_size;){let a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=Wn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=a,ni(e),n.pending!==0)return n.last_flush=-1,nr;i=0,s-=a}let o=new Uint8Array(n.gzhead.extra);n.pending_buf.set(o.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending+=s,n.gzhead.hcrc&&n.pending>i&&(e.adler=Wn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=dv}if(n.status===dv){if(n.gzhead.name){let i=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Wn(e.adler,n.pending_buf,n.pending-i,i)),ni(e),n.pending!==0)return n.last_flush=-1,nr;i=0}n.gzindex<n.gzhead.name.length?s=n.gzhead.name.charCodeAt(n.gzindex++)&255:s=0,Mt(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=Wn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=hv}if(n.status===hv){if(n.gzhead.comment){let i=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Wn(e.adler,n.pending_buf,n.pending-i,i)),ni(e),n.pending!==0)return n.last_flush=-1,nr;i=0}n.gzindex<n.gzhead.comment.length?s=n.gzhead.comment.charCodeAt(n.gzindex++)&255:s=0,Mt(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=Wn(e.adler,n.pending_buf,n.pending-i,i))}n.status=fv}if(n.status===fv){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(ni(e),n.pending!==0))return n.last_flush=-1,nr;Mt(n,e.adler&255),Mt(n,e.adler>>8&255),e.adler=0}if(n.status=il,ni(e),n.pending!==0)return n.last_flush=-1,nr}if(e.avail_in!==0||n.lookahead!==0||t!==fa&&n.status!==ad){let i=n.level===0?gS(n,t):n.strategy===Lf?LR(n,t):n.strategy===hR?PR(n,t):ld[n.level].func(n,t);if((i===_l||i===yu)&&(n.status=ad),i===Pr||i===_l)return e.avail_out===0&&(n.last_flush=-1),nr;if(i===vu&&(t===aR?oR(n):t!==Q5&&(lv(n,0,0,!1),t===lR&&(Wo(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),ni(e),e.avail_out===0))return n.last_flush=-1,nr}return t!==Ni?nr:n.wrap<=0?Y5:(n.wrap===2?(Mt(n,e.adler&255),Mt(n,e.adler>>8&255),Mt(n,e.adler>>16&255),Mt(n,e.adler>>24&255),Mt(n,e.total_in&255),Mt(n,e.total_in>>8&255),Mt(n,e.total_in>>16&255),Mt(n,e.total_in>>24&255)):(td(n,e.adler>>>16),td(n,e.adler&65535)),ni(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?nr:Y5)},DR=e=>{if(Ah(e))return Ls;const t=e.state.status;return e.state=null,t===il?sl(e,cR):nr},FR=(e,t)=>{let n=t.length;if(Ah(e))return Ls;const r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==lu||r.lookahead)return Ls;if(i===1&&(e.adler=th(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Wo(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(n-r.w_size,n),0),t=l,n=r.w_size}const s=e.avail_in,o=e.next_in,a=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,cu(r);r.lookahead>=Pt;){let l=r.strstart,c=r.lookahead-(Pt-1);do r.ins_h=pa(r,r.ins_h,r.window[l+Pt-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--c);r.strstart=l,r.lookahead=Pt-1,cu(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Pt-1,r.match_available=0,e.next_in=o,e.input=a,e.avail_in=s,r.wrap=i,nr};var MR=OR,BR=yS,UR=vS,zR=mS,qR=jR,HR=IR,WR=DR,VR=FR,GR="pako deflate (from Nodeca project)",Ad={deflateInit:MR,deflateInit2:BR,deflateReset:UR,deflateResetKeep:zR,deflateSetHeader:qR,deflate:HR,deflateEnd:WR,deflateSetDictionary:VR,deflateInfo:GR};const $R=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var KR=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)$R(n,r)&&(e[r]=n[r])}}return e},QR=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,s=e.length;r<s;r++){let o=e[r];n.set(o,i),i+=o.length}return n},q0={assign:KR,flattenChunks:QR};let wS=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{wS=!1}const nh=new Uint8Array(256);for(let e=0;e<256;e++)nh[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;nh[254]=nh[254]=1;var YR=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,s,o=e.length,a=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(a),s=0,i=0;s<a;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[s++]=n:n<2048?(t[s++]=192|n>>>6,t[s++]=128|n&63):n<65536?(t[s++]=224|n>>>12,t[s++]=128|n>>>6&63,t[s++]=128|n&63):(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63,t[s++]=128|n>>>6&63,t[s++]=128|n&63);return t};const XR=(e,t)=>{if(t<65534&&e.subarray&&wS)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var JR=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i;const s=new Array(n*2);for(i=0,r=0;r<n;){let o=e[r++];if(o<128){s[i++]=o;continue}let a=nh[o];if(a>4){s[i++]=65533,r+=a-1;continue}for(o&=a===2?31:a===3?15:7;a>1&&r<n;)o=o<<6|e[r++]&63,a--;if(a>1){s[i++]=65533;continue}o<65536?s[i++]=o:(o-=65536,s[i++]=55296|o>>10&1023,s[i++]=56320|o&1023)}return XR(s,i)},ZR=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+nh[e[n]]>t?n:t},rh={string2buf:YR,buf2string:JR,utf8border:ZR};function ej(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var bS=ej;const xS=Object.prototype.toString,{Z_NO_FLUSH:tj,Z_SYNC_FLUSH:nj,Z_FULL_FLUSH:rj,Z_FINISH:ij,Z_OK:Yp,Z_STREAM_END:sj,Z_DEFAULT_COMPRESSION:oj,Z_DEFAULT_STRATEGY:aj,Z_DEFLATED:lj}=_h;function ty(e){this.options=q0.assign({level:oj,method:lj,chunkSize:16384,windowBits:15,memLevel:8,strategy:aj},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new bS,this.strm.avail_out=0;let n=Ad.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Yp)throw new Error(au[n]);if(t.header&&Ad.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=rh.string2buf(t.dictionary):xS.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=Ad.deflateSetDictionary(this.strm,r),n!==Yp)throw new Error(au[n]);this._dict_set=!0}}ty.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,s;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?ij:tj,typeof e=="string"?n.input=rh.string2buf(e):xS.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(s===nj||s===rj)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=Ad.deflate(n,s),i===sj)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Ad.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Yp;if(n.avail_out===0){this.onData(n.output);continue}if(s>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};ty.prototype.onData=function(e){this.chunks.push(e)};ty.prototype.onEnd=function(e){e===Yp&&(this.result=q0.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};const Tf=16209,cj=16191;var uj=function(t,n){let r,i,s,o,a,l,c,d,g,p,h,b,w,_,v,x,A,N,I,$,K,M,D,X;const L=t.state;r=t.next_in,D=t.input,i=r+(t.avail_in-5),s=t.next_out,X=t.output,o=s-(n-t.avail_out),a=s+(t.avail_out-257),l=L.dmax,c=L.wsize,d=L.whave,g=L.wnext,p=L.window,h=L.hold,b=L.bits,w=L.lencode,_=L.distcode,v=(1<<L.lenbits)-1,x=(1<<L.distbits)-1;e:do{b<15&&(h+=D[r++]<<b,b+=8,h+=D[r++]<<b,b+=8),A=w[h&v];t:for(;;){if(N=A>>>24,h>>>=N,b-=N,N=A>>>16&255,N===0)X[s++]=A&65535;else if(N&16){I=A&65535,N&=15,N&&(b<N&&(h+=D[r++]<<b,b+=8),I+=h&(1<<N)-1,h>>>=N,b-=N),b<15&&(h+=D[r++]<<b,b+=8,h+=D[r++]<<b,b+=8),A=_[h&x];n:for(;;){if(N=A>>>24,h>>>=N,b-=N,N=A>>>16&255,N&16){if($=A&65535,N&=15,b<N&&(h+=D[r++]<<b,b+=8,b<N&&(h+=D[r++]<<b,b+=8)),$+=h&(1<<N)-1,$>l){t.msg="invalid distance too far back",L.mode=Tf;break e}if(h>>>=N,b-=N,N=s-o,$>N){if(N=$-N,N>d&&L.sane){t.msg="invalid distance too far back",L.mode=Tf;break e}if(K=0,M=p,g===0){if(K+=c-N,N<I){I-=N;do X[s++]=p[K++];while(--N);K=s-$,M=X}}else if(g<N){if(K+=c+g-N,N-=g,N<I){I-=N;do X[s++]=p[K++];while(--N);if(K=0,g<I){N=g,I-=N;do X[s++]=p[K++];while(--N);K=s-$,M=X}}}else if(K+=g-N,N<I){I-=N;do X[s++]=p[K++];while(--N);K=s-$,M=X}for(;I>2;)X[s++]=M[K++],X[s++]=M[K++],X[s++]=M[K++],I-=3;I&&(X[s++]=M[K++],I>1&&(X[s++]=M[K++]))}else{K=s-$;do X[s++]=X[K++],X[s++]=X[K++],X[s++]=X[K++],I-=3;while(I>2);I&&(X[s++]=X[K++],I>1&&(X[s++]=X[K++]))}}else if(N&64){t.msg="invalid distance code",L.mode=Tf;break e}else{A=_[(A&65535)+(h&(1<<N)-1)];continue n}break}}else if(N&64)if(N&32){L.mode=cj;break e}else{t.msg="invalid literal/length code",L.mode=Tf;break e}else{A=w[(A&65535)+(h&(1<<N)-1)];continue t}break}}while(r<i&&s<a);I=b>>3,r-=I,b-=I<<3,h&=(1<<b)-1,t.next_in=r,t.next_out=s,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=s<a?257+(a-s):257-(s-a),L.hold=h,L.bits=b};const Zl=15,J5=852,Z5=592,eb=0,wm=1,tb=2,dj=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),hj=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),fj=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),pj=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),gj=(e,t,n,r,i,s,o,a)=>{const l=a.bits;let c=0,d=0,g=0,p=0,h=0,b=0,w=0,_=0,v=0,x=0,A,N,I,$,K,M=null,D;const X=new Uint16Array(Zl+1),L=new Uint16Array(Zl+1);let j=null,Y,q,se;for(c=0;c<=Zl;c++)X[c]=0;for(d=0;d<r;d++)X[t[n+d]]++;for(h=l,p=Zl;p>=1&&X[p]===0;p--);if(h>p&&(h=p),p===0)return i[s++]=1<<24|64<<16|0,i[s++]=1<<24|64<<16|0,a.bits=1,0;for(g=1;g<p&&X[g]===0;g++);for(h<g&&(h=g),_=1,c=1;c<=Zl;c++)if(_<<=1,_-=X[c],_<0)return-1;if(_>0&&(e===eb||p!==1))return-1;for(L[1]=0,c=1;c<Zl;c++)L[c+1]=L[c]+X[c];for(d=0;d<r;d++)t[n+d]!==0&&(o[L[t[n+d]]++]=d);if(e===eb?(M=j=o,D=20):e===wm?(M=dj,j=hj,D=257):(M=fj,j=pj,D=0),x=0,d=0,c=g,K=s,b=h,w=0,I=-1,v=1<<h,$=v-1,e===wm&&v>J5||e===tb&&v>Z5)return 1;for(;;){Y=c-w,o[d]+1<D?(q=0,se=o[d]):o[d]>=D?(q=j[o[d]-D],se=M[o[d]-D]):(q=96,se=0),A=1<<c-w,N=1<<b,g=N;do N-=A,i[K+(x>>w)+N]=Y<<24|q<<16|se|0;while(N!==0);for(A=1<<c-1;x&A;)A>>=1;if(A!==0?(x&=A-1,x+=A):x=0,d++,--X[c]===0){if(c===p)break;c=t[n+o[d]]}if(c>h&&(x&$)!==I){for(w===0&&(w=h),K+=g,b=c-w,_=1<<b;b+w<p&&(_-=X[b+w],!(_<=0));)b++,_<<=1;if(v+=1<<b,e===wm&&v>J5||e===tb&&v>Z5)return 1;I=x&$,i[I]=h<<24|b<<16|K-s|0}}return x!==0&&(i[K+x]=c-w<<24|64<<16|0),a.bits=h,0};var Sd=gj;const mj=0,_S=1,AS=2,{Z_FINISH:nb,Z_BLOCK:vj,Z_TREES:Rf,Z_OK:Al,Z_STREAM_END:yj,Z_NEED_DICT:wj,Z_STREAM_ERROR:Ri,Z_DATA_ERROR:SS,Z_MEM_ERROR:kS,Z_BUF_ERROR:bj,Z_DEFLATED:rb}=_h,H0=16180,ib=16181,sb=16182,ob=16183,ab=16184,lb=16185,cb=16186,ub=16187,db=16188,hb=16189,Xp=16190,Js=16191,bm=16192,fb=16193,xm=16194,pb=16195,gb=16196,mb=16197,vb=16198,jf=16199,Of=16200,yb=16201,wb=16202,bb=16203,xb=16204,_b=16205,_m=16206,Ab=16207,Sb=16208,ln=16209,NS=16210,ES=16211,xj=852,_j=592,Aj=15,Sj=Aj,kb=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function kj(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const El=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<H0||t.mode>ES?1:0},CS=e=>{if(El(e))return Ri;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=H0,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(xj),t.distcode=t.distdyn=new Int32Array(_j),t.sane=1,t.back=-1,Al},PS=e=>{if(El(e))return Ri;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,CS(e)},LS=(e,t)=>{let n;if(El(e))return Ri;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Ri:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,PS(e))},TS=(e,t)=>{if(!e)return Ri;const n=new kj;e.state=n,n.strm=e,n.window=null,n.mode=H0;const r=LS(e,t);return r!==Al&&(e.state=null),r},Nj=e=>TS(e,Sj);let Nb=!0,Am,Sm;const Ej=e=>{if(Nb){Am=new Int32Array(512),Sm=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Sd(_S,e.lens,0,288,Am,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Sd(AS,e.lens,0,32,Sm,0,e.work,{bits:5}),Nb=!1}e.lencode=Am,e.lenbits=9,e.distcode=Sm,e.distbits=5},RS=(e,t,n,r)=>{let i;const s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),r>=s.wsize?(s.window.set(t.subarray(n-s.wsize,n),0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>r&&(i=r),s.window.set(t.subarray(n-r,n-r+i),s.wnext),r-=i,r?(s.window.set(t.subarray(n-r,n),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0},Cj=(e,t)=>{let n,r,i,s,o,a,l,c,d,g,p,h,b,w,_=0,v,x,A,N,I,$,K,M;const D=new Uint8Array(4);let X,L;const j=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(El(e)||!e.output||!e.input&&e.avail_in!==0)return Ri;n=e.state,n.mode===Js&&(n.mode=bm),o=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=n.hold,d=n.bits,g=a,p=l,M=Al;e:for(;;)switch(n.mode){case H0:if(n.wrap===0){n.mode=bm;break}for(;d<16;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(n.wrap&2&&c===35615){n.wbits===0&&(n.wbits=15),n.check=0,D[0]=c&255,D[1]=c>>>8&255,n.check=Wn(n.check,D,2,0),c=0,d=0,n.mode=ib;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=ln;break}if((c&15)!==rb){e.msg="unknown compression method",n.mode=ln;break}if(c>>>=4,d-=4,K=(c&15)+8,n.wbits===0&&(n.wbits=K),K>15||K>n.wbits){e.msg="invalid window size",n.mode=ln;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=c&512?hb:Js,c=0,d=0;break;case ib:for(;d<16;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(n.flags=c,(n.flags&255)!==rb){e.msg="unknown compression method",n.mode=ln;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=ln;break}n.head&&(n.head.text=c>>8&1),n.flags&512&&n.wrap&4&&(D[0]=c&255,D[1]=c>>>8&255,n.check=Wn(n.check,D,2,0)),c=0,d=0,n.mode=sb;case sb:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.head&&(n.head.time=c),n.flags&512&&n.wrap&4&&(D[0]=c&255,D[1]=c>>>8&255,D[2]=c>>>16&255,D[3]=c>>>24&255,n.check=Wn(n.check,D,4,0)),c=0,d=0,n.mode=ob;case ob:for(;d<16;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.head&&(n.head.xflags=c&255,n.head.os=c>>8),n.flags&512&&n.wrap&4&&(D[0]=c&255,D[1]=c>>>8&255,n.check=Wn(n.check,D,2,0)),c=0,d=0,n.mode=ab;case ab:if(n.flags&1024){for(;d<16;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.length=c,n.head&&(n.head.extra_len=c),n.flags&512&&n.wrap&4&&(D[0]=c&255,D[1]=c>>>8&255,n.check=Wn(n.check,D,2,0)),c=0,d=0}else n.head&&(n.head.extra=null);n.mode=lb;case lb:if(n.flags&1024&&(h=n.length,h>a&&(h=a),h&&(n.head&&(K=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(s,s+h),K)),n.flags&512&&n.wrap&4&&(n.check=Wn(n.check,r,h,s)),a-=h,s+=h,n.length-=h),n.length))break e;n.length=0,n.mode=cb;case cb:if(n.flags&2048){if(a===0)break e;h=0;do K=r[s+h++],n.head&&K&&n.length<65536&&(n.head.name+=String.fromCharCode(K));while(K&&h<a);if(n.flags&512&&n.wrap&4&&(n.check=Wn(n.check,r,h,s)),a-=h,s+=h,K)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=ub;case ub:if(n.flags&4096){if(a===0)break e;h=0;do K=r[s+h++],n.head&&K&&n.length<65536&&(n.head.comment+=String.fromCharCode(K));while(K&&h<a);if(n.flags&512&&n.wrap&4&&(n.check=Wn(n.check,r,h,s)),a-=h,s+=h,K)break e}else n.head&&(n.head.comment=null);n.mode=db;case db:if(n.flags&512){for(;d<16;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(n.wrap&4&&c!==(n.check&65535)){e.msg="header crc mismatch",n.mode=ln;break}c=0,d=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Js;break;case hb:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}e.adler=n.check=kb(c),c=0,d=0,n.mode=Xp;case Xp:if(n.havedict===0)return e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,n.hold=c,n.bits=d,wj;e.adler=n.check=1,n.mode=Js;case Js:if(t===vj||t===Rf)break e;case bm:if(n.last){c>>>=d&7,d-=d&7,n.mode=_m;break}for(;d<3;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}switch(n.last=c&1,c>>>=1,d-=1,c&3){case 0:n.mode=fb;break;case 1:if(Ej(n),n.mode=jf,t===Rf){c>>>=2,d-=2;break e}break;case 2:n.mode=gb;break;case 3:e.msg="invalid block type",n.mode=ln}c>>>=2,d-=2;break;case fb:for(c>>>=d&7,d-=d&7;d<32;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if((c&65535)!==(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=ln;break}if(n.length=c&65535,c=0,d=0,n.mode=xm,t===Rf)break e;case xm:n.mode=pb;case pb:if(h=n.length,h){if(h>a&&(h=a),h>l&&(h=l),h===0)break e;i.set(r.subarray(s,s+h),o),a-=h,s+=h,l-=h,o+=h,n.length-=h;break}n.mode=Js;break;case gb:for(;d<14;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(n.nlen=(c&31)+257,c>>>=5,d-=5,n.ndist=(c&31)+1,c>>>=5,d-=5,n.ncode=(c&15)+4,c>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=ln;break}n.have=0,n.mode=mb;case mb:for(;n.have<n.ncode;){for(;d<3;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.lens[j[n.have++]]=c&7,c>>>=3,d-=3}for(;n.have<19;)n.lens[j[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,X={bits:n.lenbits},M=Sd(mj,n.lens,0,19,n.lencode,0,n.work,X),n.lenbits=X.bits,M){e.msg="invalid code lengths set",n.mode=ln;break}n.have=0,n.mode=vb;case vb:for(;n.have<n.nlen+n.ndist;){for(;_=n.lencode[c&(1<<n.lenbits)-1],v=_>>>24,x=_>>>16&255,A=_&65535,!(v<=d);){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(A<16)c>>>=v,d-=v,n.lens[n.have++]=A;else{if(A===16){for(L=v+2;d<L;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(c>>>=v,d-=v,n.have===0){e.msg="invalid bit length repeat",n.mode=ln;break}K=n.lens[n.have-1],h=3+(c&3),c>>>=2,d-=2}else if(A===17){for(L=v+3;d<L;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}c>>>=v,d-=v,K=0,h=3+(c&7),c>>>=3,d-=3}else{for(L=v+7;d<L;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}c>>>=v,d-=v,K=0,h=11+(c&127),c>>>=7,d-=7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=ln;break}for(;h--;)n.lens[n.have++]=K}}if(n.mode===ln)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=ln;break}if(n.lenbits=9,X={bits:n.lenbits},M=Sd(_S,n.lens,0,n.nlen,n.lencode,0,n.work,X),n.lenbits=X.bits,M){e.msg="invalid literal/lengths set",n.mode=ln;break}if(n.distbits=6,n.distcode=n.distdyn,X={bits:n.distbits},M=Sd(AS,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,X),n.distbits=X.bits,M){e.msg="invalid distances set",n.mode=ln;break}if(n.mode=jf,t===Rf)break e;case jf:n.mode=Of;case Of:if(a>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,n.hold=c,n.bits=d,uj(e,p),o=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=n.hold,d=n.bits,n.mode===Js&&(n.back=-1);break}for(n.back=0;_=n.lencode[c&(1<<n.lenbits)-1],v=_>>>24,x=_>>>16&255,A=_&65535,!(v<=d);){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(x&&!(x&240)){for(N=v,I=x,$=A;_=n.lencode[$+((c&(1<<N+I)-1)>>N)],v=_>>>24,x=_>>>16&255,A=_&65535,!(N+v<=d);){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}c>>>=N,d-=N,n.back+=N}if(c>>>=v,d-=v,n.back+=v,n.length=A,x===0){n.mode=_b;break}if(x&32){n.back=-1,n.mode=Js;break}if(x&64){e.msg="invalid literal/length code",n.mode=ln;break}n.extra=x&15,n.mode=yb;case yb:if(n.extra){for(L=n.extra;d<L;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=wb;case wb:for(;_=n.distcode[c&(1<<n.distbits)-1],v=_>>>24,x=_>>>16&255,A=_&65535,!(v<=d);){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(!(x&240)){for(N=v,I=x,$=A;_=n.distcode[$+((c&(1<<N+I)-1)>>N)],v=_>>>24,x=_>>>16&255,A=_&65535,!(N+v<=d);){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}c>>>=N,d-=N,n.back+=N}if(c>>>=v,d-=v,n.back+=v,x&64){e.msg="invalid distance code",n.mode=ln;break}n.offset=A,n.extra=x&15,n.mode=bb;case bb:if(n.extra){for(L=n.extra;d<L;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=ln;break}n.mode=xb;case xb:if(l===0)break e;if(h=p-l,n.offset>h){if(h=n.offset-h,h>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=ln;break}h>n.wnext?(h-=n.wnext,b=n.wsize-h):b=n.wnext-h,h>n.length&&(h=n.length),w=n.window}else w=i,b=o-n.offset,h=n.length;h>l&&(h=l),l-=h,n.length-=h;do i[o++]=w[b++];while(--h);n.length===0&&(n.mode=Of);break;case _b:if(l===0)break e;i[o++]=n.length,l--,n.mode=Of;break;case _m:if(n.wrap){for(;d<32;){if(a===0)break e;a--,c|=r[s++]<<d,d+=8}if(p-=l,e.total_out+=p,n.total+=p,n.wrap&4&&p&&(e.adler=n.check=n.flags?Wn(n.check,i,p,o-p):th(n.check,i,p,o-p)),p=l,n.wrap&4&&(n.flags?c:kb(c))!==n.check){e.msg="incorrect data check",n.mode=ln;break}c=0,d=0}n.mode=Ab;case Ab:if(n.wrap&&n.flags){for(;d<32;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(n.wrap&4&&c!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=ln;break}c=0,d=0}n.mode=Sb;case Sb:M=yj;break e;case ln:M=SS;break e;case NS:return kS;case ES:default:return Ri}return e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,n.hold=c,n.bits=d,(n.wsize||p!==e.avail_out&&n.mode<ln&&(n.mode<_m||t!==nb))&&RS(e,e.output,e.next_out,p-e.avail_out),g-=e.avail_in,p-=e.avail_out,e.total_in+=g,e.total_out+=p,n.total+=p,n.wrap&4&&p&&(e.adler=n.check=n.flags?Wn(n.check,i,p,e.next_out-p):th(n.check,i,p,e.next_out-p)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Js?128:0)+(n.mode===jf||n.mode===xm?256:0),(g===0&&p===0||t===nb)&&M===Al&&(M=bj),M},Pj=e=>{if(El(e))return Ri;let t=e.state;return t.window&&(t.window=null),e.state=null,Al},Lj=(e,t)=>{if(El(e))return Ri;const n=e.state;return n.wrap&2?(n.head=t,t.done=!1,Al):Ri},Tj=(e,t)=>{const n=t.length;let r,i,s;return El(e)||(r=e.state,r.wrap!==0&&r.mode!==Xp)?Ri:r.mode===Xp&&(i=1,i=th(i,t,n,0),i!==r.check)?SS:(s=RS(e,t,n,n),s?(r.mode=NS,kS):(r.havedict=1,Al))};var Rj=PS,jj=LS,Oj=CS,Ij=Nj,Dj=TS,Fj=Cj,Mj=Pj,Bj=Lj,Uj=Tj,zj="pako inflate (from Nodeca project)",so={inflateReset:Rj,inflateReset2:jj,inflateResetKeep:Oj,inflateInit:Ij,inflateInit2:Dj,inflate:Fj,inflateEnd:Mj,inflateGetHeader:Bj,inflateSetDictionary:Uj,inflateInfo:zj};function qj(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Hj=qj;const jS=Object.prototype.toString,{Z_NO_FLUSH:Wj,Z_FINISH:Vj,Z_OK:ih,Z_STREAM_END:km,Z_NEED_DICT:Nm,Z_STREAM_ERROR:Gj,Z_DATA_ERROR:Eb,Z_MEM_ERROR:$j}=_h;function Sh(e){this.options=q0.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new bS,this.strm.avail_out=0;let n=so.inflateInit2(this.strm,t.windowBits);if(n!==ih)throw new Error(au[n]);if(this.header=new Hj,so.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=rh.string2buf(t.dictionary):jS.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=so.inflateSetDictionary(this.strm,t.dictionary),n!==ih)))throw new Error(au[n])}Sh.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let s,o,a;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?Vj:Wj,jS.call(e)==="[object ArrayBuffer]"?n.input=new 
vendor: 10,075 bytes, line 174
174Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),s=so.inflate(n,o),s===Nm&&i&&(s=so.inflateSetDictionary(n,i),s===ih?s=so.inflate(n,o):s===Eb&&(s=Nm));n.avail_in>0&&s===km&&n.state.wrap>0&&e[n.next_in]!==0;)so.inflateReset(n),s=so.inflate(n,o);switch(s){case Gj:case Eb:case Nm:case $j:return this.onEnd(s),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(n.avail_out===0||s===km))if(this.options.to==="string"){let l=rh.utf8border(n.output,n.next_out),c=n.next_out-l,d=rh.buf2string(n.output,l);n.next_out=c,n.avail_out=r-c,c&&n.output.set(n.output.subarray(l,l+c),0),this.onData(d)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(s===ih&&a===0)){if(s===km)return s=so.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};Sh.prototype.onData=function(e){this.chunks.push(e)};Sh.prototype.onEnd=function(e){e===ih&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=q0.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function ny(e,t){const n=new Sh(t);if(n.push(e),n.err)throw n.msg||au[n.err];return n.result}function Kj(e,t){return t=t||{},t.raw=!0,ny(e,t)}var Qj=Sh,Yj=ny,Xj=Kj,Jj=ny,Zj=_h,eO={Inflate:Qj,inflate:Yj,inflateRaw:Xj,ungzip:Jj,constants:Zj};const{Inflate:tO,inflate:nO,inflateRaw:PF,ungzip:LF}=eO;var Cb=tO,rO=nO;const OS=[];for(let e=0;e<256;e++){let t=e;for(let n=0;n<8;n++)t&1?t=3988292384^t>>>1:t=t>>>1;OS[e]=t}const Pb=4294967295;function iO(e,t,n){let r=e;for(let i=0;i<n;i++)r=OS[(r^t[i])&255]^r>>>8;return r}function sO(e,t){return(iO(Pb,e,t)^Pb)>>>0}function Lb(e,t,n){const r=e.readUint32(),i=sO(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==r)throw new Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${i}`)}function IS(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function DS(e,t,n,r){let i=0;for(;i<r;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+t[i-r]&255}function FS(e,t,n,r){let i=0;if(n.length===0)for(;i<r;i++)t[i]=e[i];else for(;i<r;i++)t[i]=e[i]+n[i]&255}function MS(e,t,n,r,i){let s=0;if(n.length===0){for(;s<i;s++)t[s]=e[s];for(;s<r;s++)t[s]=e[s]+(t[s-i]>>1)&255}else{for(;s<i;s++)t[s]=e[s]+(n[s]>>1)&255;for(;s<r;s++)t[s]=e[s]+(t[s-i]+n[s]>>1)&255}}function BS(e,t,n,r,i){let s=0;if(n.length===0){for(;s<i;s++)t[s]=e[s];for(;s<r;s++)t[s]=e[s]+t[s-i]&255}else{for(;s<i;s++)t[s]=e[s]+n[s]&255;for(;s<r;s++)t[s]=e[s]+oO(t[s-i],n[s],n[s-i])&255}}function oO(e,t,n){const r=e+t-n,i=Math.abs(r-e),s=Math.abs(r-t),o=Math.abs(r-n);return i<=s&&i<=o?e:s<=o?t:n}function aO(e,t,n,r,i,s){switch(e){case 0:IS(t,n,i);break;case 1:DS(t,n,i,s);break;case 2:FS(t,n,r,i);break;case 3:MS(t,n,r,i,s);break;case 4:BS(t,n,r,i,s);break;default:throw new Error(`Unsupported filter: ${e}`)}}const lO=new Uint16Array([255]),cO=new Uint8Array(lO.buffer),uO=cO[0]===255;function dO(e){const{data:t,width:n,height:r,channels:i,depth:s}=e,o=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],a=Math.ceil(s/8)*i,l=new Uint8Array(r*n*a);let c=0;for(let d=0;d<7;d++){const g=o[d],p=Math.ceil((n-g.x)/g.xStep),h=Math.ceil((r-g.y)/g.yStep);if(p<=0||h<=0)continue;const b=p*a,w=new Uint8Array(b);for(let _=0;_<h;_++){const v=t[c++],x=t.subarray(c,c+b);c+=b;const A=new Uint8Array(b);aO(v,x,A,w,b,a),w.set(A);for(let N=0;N<p;N++){const I=g.x+N*g.xStep,$=g.y+_*g.yStep;if(!(I>=n||$>=r))for(let K=0;K<a;K++)l[($*n+I)*a+K]=A[N*a+K]}}}if(s===16){const d=new Uint16Array(l.buffer);if(uO)for(let g=0;g<d.length;g++)d[g]=hO(d[g]);return d}else return l}function hO(e){return(e&255)<<8|e>>8&255}const fO=new Uint16Array([255]),pO=new Uint8Array(fO.buffer),gO=pO[0]===255,mO=new Uint8Array(0);function Tb(e){const{data:t,width:n,height:r,channels:i,depth:s}=e,o=Math.ceil(s/8)*i,a=Math.ceil(s/8*i*n),l=new Uint8Array(r*a);let c=mO,d=0,g,p;for(let h=0;h<r;h++){switch(g=t.subarray(d+1,d+1+a),p=l.subarray(h*a,(h+1)*a),t[d]){case 0:IS(g,p,a);break;case 1:DS(g,p,a,o);break;case 2:FS(g,p,c,a);break;case 3:MS(g,p,c,a,o);break;case 4:BS(g,p,c,a,o);break;default:throw new Error(`Unsupported filter: ${t[d]}`)}c=p,d+=a+1}if(s===16){const h=new Uint16Array(l.buffer);if(gO)for(let b=0;b<h.length;b++)h[b]=vO(h[b]);return h}else return l}function vO(e){return(e&255)<<8|e>>8&255}const lp=Uint8Array.of(137,80,78,71,13,10,26,10);function Rb(e){if(!yO(e.readBytes(lp.length)))throw new Error("wrong PNG signature")}function yO(e){if(e.length<lp.length)return!1;for(let t=0;t<lp.length;t++)if(e[t]!==lp[t])return!1;return!0}const wO="tEXt",bO=0,US=new TextDecoder("latin1");function xO(e){if(AO(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const _O=/^[\u0000-\u00FF]*$/;function AO(e){if(!_O.test(e))throw new Error("invalid latin1 text")}function SO(e,t,n){const r=zS(t);e[r]=kO(t,n-r.length-1)}function zS(e){for(e.mark();e.readByte()!==bO;);const t=e.offset;e.reset();const n=US.decode(e.readBytes(t-e.offset-1));return e.skip(1),xO(n),n}function kO(e,t){return US.decode(e.readBytes(t))}const ei={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Em={UNKNOWN:-1,DEFLATE:0},jb={UNKNOWN:-1,ADAPTIVE:0},Cm={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},If={NONE:0,BACKGROUND:1,PREVIOUS:2},Pm={SOURCE:0,OVER:1};class NO extends Q2{constructor(n,r={}){super(n);qt(this,"_checkCrc");qt(this,"_inflator");qt(this,"_png");qt(this,"_apng");qt(this,"_end");qt(this,"_hasPalette");qt(this,"_palette");qt(this,"_hasTransparency");qt(this,"_transparency");qt(this,"_compressionMethod");qt(this,"_filterMethod");qt(this,"_interlaceMethod");qt(this,"_colorType");qt(this,"_isAnimated");qt(this,"_numberOfFrames");qt(this,"_numberOfPlays");qt(this,"_frames");qt(this,"_writingDataChunks");const{checkCrc:i=!1}=r;this._checkCrc=i,this._inflator=new Cb,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Em.UNKNOWN,this._filterMethod=jb.UNKNOWN,this._interlaceMethod=Cm.UNKNOWN,this._colorType=ei.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Rb(this);!this._end;){const n=this.readUint32(),r=this.readChars(4);this.decodeChunk(n,r)}return this.decodeImage(),this._png}decodeApng(){for(Rb(this);!this._end;){const n=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(n,r)}return this.decodeApngImage(),this._apng}decodeChunk(n,r){const i=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(n);break;case"IDAT":this.decodeIDAT(n);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(n);break;case"iCCP":this.decodeiCCP(n);break;case wO:SO(this._png.text,this,n);break;case"pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Lb(this,n+4,r):this.skip(4)}decodeApngChunk(n,r){const i=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,r),this.offset=i+n;break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Lb(this,n+4,r):this.skip(4)}decodeIHDR(){const n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=EO(this.readUint8());const r=this.readUint8();this._colorType=r;let i;switch(r){case ei.GREYSCALE:i=1;break;case ei.TRUECOLOUR:i=3;break;case ei.INDEXED_COLOUR:i=1;break;case ei.GREYSCALE_ALPHA:i=2;break;case ei.TRUECOLOUR_ALPHA:i=4;break;case ei.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==Em.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const n={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(n)}decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);const r=n/3;this._hasPalette=!0;const i=[];this._palette=i;for(let s=0;s<r;s++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(n){this._writingDataChunks=!0;const r=n,i=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodeFDAT(n){this._writingDataChunks=!0;let r=n,i=this.offset+this.byteOffset;if(i+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodetRNS(n){switch(this._colorType){case ei.GREYSCALE:case ei.TRUECOLOUR:{if(n%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${n}`);if(n/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(n/2);for(let r=0;r<n/2;r++)this._transparency[r]=this.readUint16();break}case ei.INDEXED_COLOUR:{if(n>this._palette.length)throw new Error(`tRNS chunk contains more alph
174a values than there are palette colors (${n} vs ${this._palette.length})`);let r=0;for(;r<n;r++){const i=this.readByte();this._palette[r].push(i)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case ei.UNKNOWN:case ei.GREYSCALE_ALPHA:case ei.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(n){const r=zS(this),i=this.readUint8();if(i!==Em.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const s=this.readBytes(n-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:rO(s)}}decodepHYs(){const n=this.readUint32(),r=this.readUint32(),i=this.readByte();this._png.resolution={x:n,y:r,unit:i}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let n=0;n<this._numberOfFrames;n++){const r={sequenceNumber:this._frames[n].sequenceNumber,delayNumber:this._frames[n].delayNumber,delayDenominator:this._frames[n].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},i=this._frames.at(n);if(i){if(i.data=Tb({data:i.data,width:i.width,height:i.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),n===0||i.xOffset===0&&i.yOffset===0&&i.width===this._png.width&&i.height===this._png.height)r.data=i.data;else{const s=this._apng.frames.at(n-1);this.disposeFrame(i,s,r),this.addFrameDataToCanvas(r,i)}this._apng.frames.push(r)}}return this._apng}disposeFrame(n,r,i){switch(n.disposeOp){case If.NONE:break;case If.BACKGROUND:for(let s=0;s<this._png.height;s++)for(let o=0;o<this._png.width;o++){const a=(s*n.width+o)*this._png.channels;for(let l=0;l<this._png.channels;l++)i.data[a+l]=0}break;case If.PREVIOUS:i.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(n,r){const i=1<<this._png.depth,s=(o,a)=>{const l=((o+r.yOffset)*this._png.width+r.xOffset+a)*this._png.channels,c=(o*r.width+a)*this._png.channels;return{index:l,frameIndex:c}};switch(r.blendOp){case Pm.SOURCE:for(let o=0;o<r.height;o++)for(let a=0;a<r.width;a++){const{index:l,frameIndex:c}=s(o,a);for(let d=0;d<this._png.channels;d++)n.data[l+d]=r.data[c+d]}break;case Pm.OVER:for(let o=0;o<r.height;o++)for(let a=0;a<r.width;a++){const{index:l,frameIndex:c}=s(o,a);for(let d=0;d<this._png.channels;d++){const g=r.data[c+this._png.channels-1]/i,p=d%(this._png.channels-1)===0?1:r.data[c+d],h=Math.floor(g*p+(1-g)*n.data[l+d]);n.data[l+d]+=h}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var r;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const n=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==jb.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Cm.NO_INTERLACE)this._png.data=Tb({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Cm.ADAM7)this._png.data=dO({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const n=this._inflator.result,r=this._frames.at(-1);r?r.data=n:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:If.NONE,blendOp:Pm.SOURCE,data:n}),this._inflator=new Cb,this._writingDataChunks=!1}}function EO(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var Ob;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(Ob||(Ob={}));function CO(e,t){return new NO(e,t).decode()}var ct=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Lm(){ct.console&&typeof ct.console.log=="function"&&ct.console.log.apply(ct.console,arguments)}var Kt={log:Lm,warn:function(e){ct.console&&(typeof ct.console.warn=="function"?ct.console.warn.apply(ct.console,arguments):Lm.call(null,arguments))},error:function(e){ct.console&&(typeof ct.console.error=="function"?ct.console.error.apply(ct.console,arguments):Lm(e))}};function Tm(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Ya(r.response,t,n
vendor: 3,701 bytes, lines 174-179
174)},r.onerror=function(){Kt.error("could not download file")},r.send()}function Ib(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Df(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Ya=ct.saveAs||((typeof window>"u"?"undefined":Ht(window))!=="object"||window!==ct?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=ct.URL||ct.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?Ib(i.href)?Tm(e,t,n):Df(i,i.target="_blank"):Df(i)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){Df(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(Ib(e))Tm(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Df(r)})}else navigator.msSaveOrOpenBlob(function(i,s){return s===void 0?s={autoBom:!1}:Ht(s)!=="object"&&(Kt.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(e,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Tm(e,t,n);var i=e.type==="application/octet-stream",s=/constructor/i.test(ct.HTMLElement)||ct.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&s)&&(typeof FileReader>"u"?"undefined":Ht(FileReader))==="object"){var a=new FileReader;a.onloadend=function(){var d=a.result;d=o?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=d:location=d,r=null},a.readAsDataURL(e)}else{var l=ct.URL||ct.webkitURL,c=l.createObjectURL(e);r?r.location=c:location.href=c,r=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});/**
175 * A class to parse color values
176 * @author Stoyan Stefanov <[email protected]>
177 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
178 * @license Use it if you like it
179 */function qS(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
1790",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(a){return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,s=n[r].process,o=i.exec(e);o&&(t=s(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var a=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return a.length==1&&(a="0"+a),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+a+l+c}}var cp=ct.atob.bind(ct),Db=ct.btoa.bind(ct);/**
180 * @license
181 * Joseph Myers does not specify a particular license for his work.
182 *
183 * Author: Joseph Myers
184 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
185 *
186 * Modified by: Owen Leong
187 */function Rm(e,t){var n=e[0],r=e[1],i=e[2],s=e[3];n=fr(n,r,i,s,t[0],7,-680876936),s=fr(s,n,r,i,t[1],12,-389564586),i=fr(i,s,n,r,t[2],17,606105819),r=fr(r,i,s,n,t[3],22,-1044525330),n=fr(n,r,i,s,t[4],7,-176418897),s=fr(s,n,r,i,t[5],12,1200080426),i=fr(i,s,n,r,t[6],17,-1473231341),r=fr(r,i,s,n,t[7],22,-45705983),n=fr(n,r,i,s,t[8],7,1770035416),s=fr(s,n,r,i,t[9],12,-1958414417),i=fr(i,s,n,r,t[10],17,-42063),r=fr(r,i,s,n,t[11],22,-1990404162),n=fr(n,r,i,s,t[12],7,1804603682),s=fr(s,n,r,i,t[13],12,-40341101),i=fr(i,s,n,r,t[14],17,-1502002290),n=pr(n,r=fr(r,i,s,n,t[15],22,1236535329),i,s,t[1],5,-165796510),s=pr(s,n,r,i,t[6],9,-1069501632),i=pr(i,s,n,r,t[11],14,643717713),r=pr(r,i,s,n,t[0],20,-373897302),n=pr(n,r,i,s,t[5],5,-701558691),s=pr(s,n,r,i,t[10],9,38016083),i=pr(i,s,n,r,t[15],14,-660478335),r=pr(r,i,s,n,t[4],20,-405537848),n=pr(n,r,i,s,t[9],5,568446438),s=pr(s,n,r,i,t[14],9,-1019803690),i=pr(i,s,n,r,t[3],14,-187363961),r=pr(r,i,s,n,t[8],20,1163531501),n=pr(n,r,i,s,t[13],5,-1444681467),s=pr(s,n,r,i,t[2],9,-51403784),i=pr(i,s,n,r,t[7],14,1735328473),n=gr(n,r=pr(r,i,s,n,t[12],20,-1926607734),i,s,t[5],4,-378558),s=gr(s,n,r,i,t[8],11,-2022574463),i=gr(i,s,n,r,t[11],16,1839030562),r=gr(r,i,s,n,t[14],23,-35309556),n=gr(n,r,i,s,t[1],4,-1530992060),s=gr(s,n,r,i,t[4],11,1272893353),i=gr(i,s,n,r,t[7],16,-155497632),r=gr(r,i,s,n,t[10],23,-1094730640),n=gr(n,r,i,s,t[13],4,681279174),s=gr(s,n,r,i,t[0],11,-358537222),i=gr(i,s,n,r,t[3],16,-722521979),r=gr(r,i,s,n,t[6],23,76029189),n=gr(n,r,i,s,t[9],4,-640364487),s=gr(s,n,r,i,t[12],11,-421815835),i=gr(i,s,n,r,t[15],16,530742520),n=mr(n,r=gr(r,i,s,n,t[2],23,-995338651),i,s,t[0],6,-198630844),s=mr(s,n,r,i,t[7],10,1126891415),i=mr(i,s,n,r,t[14],15,-1416354905),r=mr(r,i,s,n,t[5],21,-57434055),n=mr(n,r,i,s,t[12],6,1700485571),s=mr(s,n,r,i,t[3],10,-1894986606),i=mr(i,s,n,r,t[10],15,-1051523),r=mr(r,i,s,n,t[1],21,-2054922799),n=mr(n,r,i,s,t[8],6,1873313359),s=mr(s,n,r,i,t[15],10,-30611744),i=mr(i,s,n,r,t[6],15,-1560198380),r=mr(r,i,s,n,t[13],21,1309151649),n=mr(n,r,i,s,t[4],6,-145523070),s=mr(s,n,r,i,t[11],10,-1120210379),i=mr(i,s,n,r,t[2],15,718787259),r=mr(r,i,s,n,t[9],21,-343485551),e[0]=na(n,e[0]),e[1]=na(r,e[1]),e[2]=na(i,e[2]),e[3]=na(s,e[3])}function W0(e,t,n,r,i,s){return t=na(na(t,e),na(r,s)),na(t<<i|t>>>32-i,n)}function fr(e,t,n,r,i,s,o){return W0(t&n|~t&r,e,t,i,s,o)}function pr(e,t,n,r,i,s,o){return W0(t&r|n&~r,e,t,i,s,o)}function gr(e,t,n,r,i,s,o){return W0(t^n^r,e,t,i,s,o)}function mr(e,t,n,r,i,s,o){return W0(n^(t|~r),e,t,i,s,o)}function HS(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)Rm(r,PO(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(Rm(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,Rm(r,i),r}function PO(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var Fb="0123456789abcdef".split("");function LO(e){for(var t="",n=0;n<4;n++)t+=Fb[e>>8*n+4&15]+Fb[e>>8*n&15];return t}function TO(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}
vendor: 8,839 bytes, lines 187-204
187function gv(e){return HS(e).map(TO).join("")}var RO=function(e){for(var t=0;t<e.length;t++)e[t]=LO(e[t]);return e.join("")}(HS("hello"))!="5d41402abc4b2a76b9719d911017c592";function na(e,t){if(RO){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}/**
188 * @license
189 * FPDF is released under a permissive license: there is no usage restriction.
190 * You may embed it freely in your application (commercial or not), with or
191 * without modifications.
192 *
193 * Reference: http://www.fpdf.org/en/script/script37.php
194 */function mv(e,t){var n,r,i,s;if(e!==n){for(var o=(i=e,s=1+(256/e.length|0),new Array(s+1).join(i)),a=[],l=0;l<256;l++)a[l]=l;var c=0;for(l=0;l<256;l++){var d=a[l];c=(c+d+o.charCodeAt(l))%256,a[l]=a[c],a[c]=d}n=e,r=a}else a=r;var g=t.length,p=0,h=0,b="";for(l=0;l<g;l++)h=(h+(d=a[p=(p+1)%256]))%256,a[p]=a[h],a[h]=d,o=a[(a[p]+a[h])%256],b+=String.fromCharCode(t.charCodeAt(l)^o);return b}/**
195 * @license
196 * Licensed under the MIT License.
197 * http://opensource.org/licenses/mit-license
198 * Author: Owen Leong (@owenl131)
199 * Date: 15 Oct 2020
200 * References:
201 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
202 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
203 * http://www.fpdf.org/en/script/script37.php
204 */var Mb={print:4,modify:8,copy:16,"annot-forms":32};function lc(e,t,n,r){this.v=1,this.r=2;var i=192;e.forEach(function(a){if(Mb.perm!==void 0)throw new Error("Invalid permission: "+a);i+=Mb[a]}),this.padding="(¿N^NuŠAd\0NVÿú�\b..\0¶Ðh>€/\f©þdSiz";var s=(t+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,o),this.P=-(1+(255^i)),this.encryptionKey=gv(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=mv(this.encryptionKey,this.padding)}function cc(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);t+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?"#"+("0"+i.toString(16)).slice(-2):e[r]}return t}function Bb(e){if(Ht(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(n,r,i){if(i=i||!1,typeof n!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(n)||(t[n]={});var s=Math.random().toString(35);return t[n][s]=[r,!!i],s},this.unsubscribe=function(n){for(var r in t)if(t[r][n])return delete t[r][n],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var s in t[n]){var o=t[n][s];try{o[0].apply(e,r)}catch(a){ct.console&&Kt.error("jsPDF PubSub Error",a.message,a)}o[1]&&i.push(s)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Jp(e){if(!(this instanceof Jp))return new Jp(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function WS(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Ja(e,t,n,r,i){if(!(this instanceof Ja))return new Ja(e,t,n,r,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=n,WS.call(this,r,i)}function Nc(e,t,n,r,i){if(!(this instanceof Nc))return new Nc(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,WS.call(this,r,i)}function Xe(e){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],s=arguments[3],o=[],a=1,l=16,c="S",d=null;Ht(e=e||{})==="object"&&(n=e.orientation,r=e.unit||r,i=e.format||i,s=e.compress||e.compressPdf||s,(d=e.encryption||null)!==null&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),a=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),o=e.filters||(s===!0?["FlateEncode"]:o),r=r||"mm",n=(""+(n||"P")).toLowerCase();var g=e.putOnlyUsedFonts||!1,p={},h={internal:{},__private__:{}};h.__private__.PubSub=Bb;var b="1.3",w=h.__private__.getPdfVersion=function(){return b};h.__private__.setPdfVersion=function(m){b=m};var _={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return _};var v=h.__private__.getPageFormat=function(m){return _[m]};i=i||"a4";var x="compat",A="advanced",N=x;function I(){this.saveGraphicsState(),z(new st(ut,0,0,-ut,0,ja()*ut).toString()+" cm"),this.setFontSize(this.getFontSize()/ut),c="n",N=A}function $(){this.restoreGraphicsState(),c="S",N=x}var K=h.__private__.combineFontStyleAndFontWeight=function(m,E){if(m=="bold"&&E=="normal"||m=="bold"&&E==400||m=="normal"&&E=="italic"||m=="bold"&&E=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return E&&(m=E==400||E==="normal"?m==="italic"?"italic":"normal":E!=700&&E!=="bold"||m!=="normal"?(E==700?"bold":E)+""+m:"bold"),m};h.advancedAPI=function(m){var E=N===x;return E&&I.call(this),typeof m!="function"||(m(this),E&&$.call(this)),this},h.compatAPI=function(m){var E=N===A;return E&&$.call(this),typeof m!="function"||(m(this),E&&I.call(this)),this},h.isAdvancedAPI=function(){return N===A};var M,D=function(m){if(N!==A)throw new Error(m+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},X=h.roundToPrecision=h.__private__.roundToPrecision=function(m,E){var H=t||E;if(isNaN(m)||isNaN(H))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return m.toFixed(H).replace(/0+$/,"")};M=h.hpf=h.__private__.hpf=typeof l=="number"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return X(m,l)}:l==="smart"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return X(m,m>-1&&m<1?16:5)}:function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return X(m,16)};var L=h.f2=h.__private__.f2=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f2");return X(m,2)},j=h.__private__.f3=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f3");return X(m,3)},Y=h.scale=h.__private__.scale=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.scale");return N===x?m*ut:N===A?m:void 0},q=function(m){return Y(function(E){return N===x?ja()-E:N===A?E:void 0}(m))};h.__private__.setPrecision=h.setPrecision=function(m){typeof parseInt(m,10)=="number"&&(t=parseInt(m,10))};var se,oe="00000000000000000000000000000000",ue=h.__private__.getFileId=function(){return oe},U=h.__private__.setFileId=function(m){return oe=m!==void 0&&/^[a-fA-F0-9]{32}$/.test(m)?m.toUpperCase():oe.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d!==null&&(Qn=new lc(d.userPermissions,d.userPassword,d.ownerPassword,oe)),oe};h.setFileId=function(m){return U(m),this},h.getFileId=function(){return ue()};var te=h.__private__.convertDateToPDFDate=function(m){var E=m.getTimezoneOffset(),H=E<0?"+":"-",J=Math.floor(Math.abs(E/60)),ie=Math.abs(E%60),me=[H,Q(J),"'",Q(ie),"'"].join("");return["D:",m.getFullYear(),Q(m.getMonth()+1),Q(m.getDate()),Q(m.getHours()),Q(m.getMinutes()),Q(m.getSeconds()),me].join("")},fe=h.__private__.convertPDFDateToDate=function(m){var E=parseInt(m.substr(2,4),10),H=parseInt(m.substr(6,2),10)-1,J=parseInt(m.substr(8,2),10),ie=parseInt(m.substr(10,2),10),me=parseInt(m.substr(12,2),10),Ae=parseInt(m.substr(14,2),10);return new Date(E,H,J,ie,me,Ae,0)},ae=h.__private__.setCreationDate=function(m){var E;if(m===void 0&&(m=new Date),m instanceof Date)E=te(m);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(m))throw new Error("Invalid argument passed to 
204jsPDF.setCreationDate");E=m}return se=E},P=h.__private__.getCreationDate=function(m){var E=se;return m==="jsDate"&&(E=fe(se)),E};h.setCreationDate=function(m){return ae(m),this},h.getCreationDate=function(m){return P(m)};var B,Q=h.__private__.padd2=function(m){return("0"+parseInt(m)).slice(-2)},Z=h.__private__.padd2Hex=function(m){return("00"+(m=m.toString())).substr(m.length)},ee=0,le=[],pe=[],ge=0,ye=[],ke=[],Re=!1,Le=pe;h.__private__.setCustomOutputDestination=function(m){Re=!0,Le=m};var We=function(m){Re||(Le=m)};h.__private__.resetCustomOutputDestination=function(){Re=!1,Le=pe};var z=h.__private__.out=function(m){return m=m.toString(),ge+=m.length+1,Le.push(m),Le},Ce=h.__private__.write=function(m){return z(arguments.length===1?m.toString():Array.prototype.join.call(arguments," "))},ht=h.__private__.getArrayBuffer=function(m){for(var E=m.length,H=new ArrayBuffer(E),J=new Uint8Array(H);E--;)J[E]=m.charCodeAt(E);return H},Je=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return Je};var xe=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(m){return xe=N===A?m/ut:m,this};var Qe,De=h.__private__.getFontSize=h.getFontSize=function(){return N===x?xe:xe*ut},nt=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(m){return nt=m,this},h.__private__.getR2L=h.getR2L=function(){return nt};var $e,Dt=h.__private__.setZoomMode=function(m){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(m))Qe=m;else if(isNaN(m)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(m)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+m+'" is not recognized.');Qe=m}else Qe=parseInt(m,10)};h.__private__.getZoomMode=function(){return Qe};var At,at=h.__private__.setPageMode=function(m){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(m)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+m+'" is not recognized.');$e=m};h.__private__.getPageMode=function(){return $e};var vt=h.__private__.setLayoutMode=function(m){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(m)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+m+'" is not recognized.');At=m};h.__private__.getLayoutMode=function(){return At},h.__private__.setDisplayMode=h.setDisplayMode=function(m,E,H){return Dt(m),vt(E),at(H),this};var St={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(m){if(Object.keys(St).indexOf(m)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return St[m]},h.__private__.getDocumentProperties=function(){return St},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(m){for(var E in St)St.hasOwnProperty(E)&&m[E]&&(St[E]=m[E]);return this},h.__private__.setDocumentProperty=function(m,E){if(Object.keys(St).indexOf(m)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return St[m]=E};var Fe,ut,Ke,an,Nt,yt={},pt={},Rt=[],Ze={},Ie={},je={},Oe={},Et=null,ot=0,et=[],Ft=new Bb(h),Ea=e.hotfixes||[],sr={},Ds={},ss=[],st=function m(E,H,J,ie,me,Ae){if(!(this instanceof m))return new m(E,H,J,ie,me,Ae);isNaN(E)&&(E=1),isNaN(H)&&(H=0),isNaN(J)&&(J=0),isNaN(ie)&&(ie=1),isNaN(me)&&(me=0),isNaN(Ae)&&(Ae=0),this._matrix=[E,H,J,ie,me,Ae]};Object.defineProperty(st.prototype,"sx",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(st.prototype,"shy",{get:function(){return this._matrix[
vendor: 4,837 bytes, lines 204-205
2041]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(st.prototype,"shx",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(st.prototype,"sy",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(st.prototype,"tx",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(st.prototype,"ty",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(st.prototype,"a",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(st.prototype,"b",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(st.prototype,"c",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(st.prototype,"d",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(st.prototype,"e",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(st.prototype,"f",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(st.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(st.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(st.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(st.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),st.prototype.join=function(m){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(M).join(m)},st.prototype.multiply=function(m){var E=m.sx*this.sx+m.shy*this.shx,H=m.sx*this.shy+m.shy*this.sy,J=m.shx*this.sx+m.sy*this.shx,ie=m.shx*this.shy+m.sy*this.sy,me=m.tx*this.sx+m.ty*this.shx+this.tx,Ae=m.tx*this.shy+m.ty*this.sy+this.ty;return new st(E,H,J,ie,me,Ae)},st.prototype.decompose=function(){var m=this.sx,E=this.shy,H=this.shx,J=this.sy,ie=this.tx,me=this.ty,Ae=Math.sqrt(m*m+E*E),He=(m/=Ae)*H+(E/=Ae)*J;H-=m*He,J-=E*He;var qe=Math.sqrt(H*H+J*J);return He/=qe,m*(J/=qe)<E*(H/=qe)&&(m=-m,E=-E,He=-He,Ae=-Ae),{scale:new st(Ae,0,0,qe,0,0),translate:new st(1,0,0,1,ie,me),rotate:new st(m,E,-E,m,0,0),skew:new st(1,0,He,1,0,0)}},st.prototype.toString=function(m){return this.join(" ")},st.prototype.inversed=function(){var m=this.sx,E=this.shy,H=this.shx,J=this.sy,ie=this.tx,me=this.ty,Ae=1/(m*J-E*H),He=J*Ae,qe=-E*Ae,dt=-H*Ae,gt=m*Ae;return new st(He,qe,dt,gt,-He*ie-dt*me,-qe*ie-gt*me)},st.prototype.applyToPoint=function(m){var E=m.x*this.sx+m.y*this.shx+this.tx,H=m.x*this.shy+m.y*this.sy+this.ty;return new Ra(E,H)},st.prototype.applyToRectangle=function(m){var E=this.applyToPoint(m),H=this.applyToPoint(new Ra(m.x+m.w,m.y+m.h));return new Cu(E.x,E.y,H.x-E.x,H.y-E.y)},st.prototype.clone=function(){var m=this.sx,E=this.shy,H=this.shx,J=this.sy,ie=this.tx,me=this.ty;return new st(m,E,H,J,ie,me)},h.Matrix=st;var Fs=h.matrixMult=function(m,E){return E.multiply(m)},Ms=new st(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=Ms;var mi=function(m,E){if(!Ie[m]){var H=(E instanceof Ja?"Sh":"P")+(Object.keys(Ze).length+1).toString(10);E.id=H,Ie[m]=H,Ze[H]=E,Ft.publish("addPattern",E)}};h.ShadingPattern=Ja,h.TilingPattern=Nc,h.addShadingPattern=function(m,E){return D("addShadingPattern()"),mi(m,E),this},h.beginTilingPattern=function(m){D("beginTilingPattern()"),Pu(m.boundingBox[0],m.boundingBox[1],m.boundingBox[2]-m.boundingBox[0],m.boundingBox[3]-m.boundingBox[1],m.matrix)},h.endTilingPattern=function(m,E){D("endTilingPattern()"),E.stream=ke[B].join(`
205`),mi(m,E),Ft.publish("endTilingPattern",E),ss.pop().restore()};var vi,gn=h.__private__.newObject=function(){var m=Hn();return Kn(m,!0),m},Hn=h.__private__.newObjectDeferred=function(){return ee++,le[ee]=function(){return ge},ee},Kn=function(m,E){return E=typeof E=="boolean"&&E,le[m]=ge,E&&z(m+" 0 obj"),m},Ca=h.__private__.newAdditionalObject=function(){var m={objId:Hn(),content:""};return ye.push(m),m},wo=Hn(),Ii=Hn(),os=h.__private__.decodeColorString=function(m){var E=m.split(" ");if(E.length!==2||E[1]!=="g"&&E[1]!=="G")E.length!==5||E[4]!=="k"&&E[4]!=="K"||(E=[(1-E[0])*(1-E[3]),(1-E[1])*(1-E[3]),(1-E[2])*(1-E[3]),"r"]);else{var H=parseFloat(E[0]);E=[H,H,H,"r"]}for(var J="#",ie=0;ie<3;ie++)J+=("0"+Math.floor(255*parseFloat(E[ie])).toString(16)).slice(-2);return J},Di=h.__private__.encodeColorString=function(m){var E;typeof m=="string"&&(m={ch1:m});var H=m.ch1,J=m.ch2,ie=m.ch3,me=m.ch4,Ae=m.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof H=="string"&&H.charAt(0)!=="#"){var He=new qS(H);if(He.ok)H=He.toHex();else if(!/^\d*\.?\d*$/.test(H))throw new Error('Invalid color "'+H+'" passed to 
205jsPDF.encodeColorString.')}if(typeof H=="string"&&/^#[0-9A-Fa-f]{3}$/.test(H)&&(H="#"+H[1]+H[1]+H[2]+H[2]+H[3]+H[3]),typeof H=="string"&&/^#[0-9A-Fa-f]{6}$/.test(H)){var qe=parseInt(H.substr(1),16);H=qe>>16&255,J=qe>>8&255,ie=255&qe}if(J===void 0||me===void 0&&H===J&&J===ie)E=typeof H=="string"?H+" "+Ae[0]:m.precision===2?L(H/255)+" "+Ae[0]:j(H/255)+" "+Ae[0];else if(me===void 0||Ht(me)==="object"){if(me&&!isNaN(me.a)&&me.a===0)return["1.","1.","1.",Ae[1]].join(" ");E=typeof H=="string"?[H,J,ie,Ae[1]].join(" "):m.precision===2?[L(H/255),L(J/255),L(ie/255),Ae[1]].join(" "):[j(H/255),j(J/255),j(ie/255),Ae[1]].join(" ")}else E=typeof H=="string"?[H,J,ie,me,Ae[2]].join(" "):m.precision===2?[L(H),L(J),L(ie),L(me),Ae[2]].join(" "):[j(H),j(J),j(ie),j(me),Ae[2]].join(" ");return E},Fi=h.__private__.getFilters=function(){return o},yi=h.__private__.putStream=function(m){var E=(m=m||{}).data||"",H=m.filters||Fi(),J=m.alreadyAppliedFilters||[],ie=m.addLength1||!1,me=E.length,Ae=m.objectId,He=function(en){return en};if(d!==null&&Ae===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");d!==null&&(He=Qn.encryptor(Ae,0));var qe={};H===!0&&(H=["FlateEncode"]);var dt=m.additionalKeyValues||[],gt=(qe=Xe.API.processDataByFilters!==void 0?Xe.API.processDataByFilters(E,H):{data:E,reverseChain:[]}).reverseChain+(Array.isArray(J)?J.join(" "):J.toString());if(qe.data.length!==0&&(dt.push({key:"Length",value:qe.data.length}),ie===!0&&dt.push({key:"Length1",value:me})),gt.length!=0)if(gt.split("/").length-1==1)dt.push({key:"Filter",value:gt});else{dt.push({key:"Filter",value:"["+gt+"]"});for(var Lt=0;Lt<dt.length;Lt+=1)if(dt[Lt].key==="DecodeParms"){for(var Tn=[],Gt=0;Gt<qe.reverseChain.split("/").length-1;Gt+=1)Tn.push("null");Tn.push(dt[Lt].value),dt[Lt].value="["+Tn.join(" ")+"]"}}z("<<");for(var Vt=0;Vt<dt.length;Vt++)z("/"+dt[Vt].key+" "+dt[Vt].value);z(">>"),qe.data.length!==0&&(z("stream"),z(He(qe.data)),z("endstream"))},Pa=h.__private__.putPage=function(m){var E=m.number,H=m.data,J=m.objId,ie=m.contentsObjId;Kn(J,!0),z("<</Type /Page"),z("/Parent "+m.rootDictionaryObjId+" 0 R"),z("/Resources "+m.resourceDictionaryObjId+" 0 R"),z("/MediaBox ["+parseFloat(M(m.mediaBox.bottomLeftX))+" "+parseFloat(M(m.mediaBox.bottomLeftY))+" "+M(m.mediaBox.topRightX)+" "+M(m.mediaBox.topRightY)+"]"),m.cropBox!==null&&z("/CropBox ["+M(m.cropBox.bottomLeftX)+" "+M(m.cropBox.bottomLeftY)+" "+M(m.cropBox.topRightX)+" "+M(m.cropBox.topRightY)+"]"),m.bleedBox!==null&&z("/BleedBox ["+M(m.bleedBox.bottomLeftX)+" "+M(m.bleedBox.bottomLeftY)+" "+M(m.bleedBox.topRightX)+" "+M(m.bleedBox.topRightY)+"]"),m.trimBox!==null&&z("/TrimBox ["+M(m.trimBox.bottomLeftX)+" "+M(m.trimBox.bottomLeftY)+" "+M(m.trimBox.topRightX)+" "+M(m.trimBox.topRightY)+"]"),m.artBox!==null&&z("/ArtBox ["+M(m.artBox.bottomLeftX)+" "+M(m.artBox.bottomLeftY)+" "+M(m.artBox.topRightX)+" "+M(m.artBox.topRightY)+"]"),typeof m.userUnit=="number"&&m.userUnit!==1&&z("/UserUnit "+m.userUnit),Ft.publish("putPage",{objId:J,pageContext:et[E],pageNumber:E,page:H}),z("/Contents "+ie+" 0 R"),z(">>"),z("endobj");var me=H.join(`
206`);return N===A&&(me+=`
207Q`),Kn(ie,!0),yi({data:me,filters:Fi(),objectId:ie}),z("endobj"),J},as=h.__private__.putPages=function(){var m,E,H=[];for(m=1;m<=ot;m++)et[m].objId=Hn(),et[m].contentsObjId=Hn();for(m=1;m<=ot;m++)H.push(Pa({number:m,data:ke[m],objId:et[m].objId,contentsObjId:et[m].contentsObjId,mediaBox:et[m].mediaBox,cropBox:et[m].cropBox,bleedBox:et[m].bleedBox,trimBox:et[m].trimBox,artBox:et[m].artBox,userUnit:et[m].userUnit,rootDictionaryObjId:wo,resourceDictionaryObjId:Ii}));Kn(wo,!0),z("<</Type /Pages");var J="/Kids [";for(E=0;E<ot;E++)J+=H[E]+" 0 R ";z(J+"]"),z("/Count "+ot),z(">>"),z("endobj"),Ft.publish("postPutPages")},La=function(m){Ft.publish("putFont",{font:m,out:z,newObject:gn,putStream:yi}),m.isAlreadyPutted!==!0&&(m.objectNumber=gn(),z("<<"),z("/Type /Font"),z("/BaseFont /"+cc(m.postScriptName)),z("/Subtype /Type1"),typeof m.encoding=="string"&&z("/Encoding /"+m.encoding),z("/FirstChar 32"),z("/LastChar 255"),z(">>"),z("endobj"))},Pl=function(m){m.objectNumber=gn();var E=[];E.push({key:"Type",value:"/XObject"}),E.push({key:"Subtype",value:"/Form"}),E.push({key:"BBox",value:"["+[M(m.x),M(m.y),M(m.x+m.width),M(m.y+m.height)].join(" ")+"]"}),E.push({key:"Matrix",value:"["+m.matrix.toString()+"]"});var H=m.pages[1].join(`
208`);yi({data:H,additionalKeyValues:E,objectId:m.objectNumber}),z("endobj")},Ll=function(m,E){E||(E=21);var H=gn(),J=function(Ae,He){var qe,dt=[],gt=1/(He-1);for(qe=0;qe<1;qe+=gt)dt.push(qe);if(dt.push(1),Ae[0].offset!=0){var Lt={offset:0,color:Ae[0].color};Ae.unshift(Lt)}if(Ae[Ae.length-1].offset!=1){var Tn={offset:1,color:Ae[Ae.length-1].color};Ae.push(Tn)}for(var Gt="",Vt=0,en=0;en<dt.length;en++){for(qe=dt[en];qe>Ae[Vt+1].offset;)Vt++;
vendor: 8,487 bytes, line 208
208var un=Ae[Vt].offset,dn=(qe-un)/(Ae[Vt+1].offset-un),or=Ae[Vt].color,Ws=Ae[Vt+1].color;Gt+=Z(Math.round((1-dn)*or[0]+dn*Ws[0]).toString(16))+Z(Math.round((1-dn)*or[1]+dn*Ws[1]).toString(16))+Z(Math.round((1-dn)*or[2]+dn*Ws[2]).toString(16))}return Gt.trim()}(m.colors,E),ie=[];ie.push({key:"FunctionType",value:"0"}),ie.push({key:"Domain",value:"[0.0 1.0]"}),ie.push({key:"Size",value:"["+E+"]"}),ie.push({key:"BitsPerSample",value:"8"}),ie.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ie.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),yi({data:J,additionalKeyValues:ie,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:H}),z("endobj"),m.objectNumber=gn(),z("<< /ShadingType "+m.type),z("/ColorSpace /DeviceRGB");var me="/Coords ["+M(parseFloat(m.coords[0]))+" "+M(parseFloat(m.coords[1]))+" ";m.type===2?me+=M(parseFloat(m.coords[2]))+" "+M(parseFloat(m.coords[3])):me+=M(parseFloat(m.coords[2]))+" "+M(parseFloat(m.coords[3]))+" "+M(parseFloat(m.coords[4]))+" "+M(parseFloat(m.coords[5])),z(me+="]"),m.matrix&&z("/Matrix ["+m.matrix.toString()+"]"),z("/Function "+H+" 0 R"),z("/Extend [true true]"),z(">>"),z("endobj")},Tl=function(m,E){var H=Hn(),J=gn();E.push({resourcesOid:H,objectOid:J}),m.objectNumber=J;var ie=[];ie.push({key:"Type",value:"/Pattern"}),ie.push({key:"PatternType",value:"1"}),ie.push({key:"PaintType",value:"1"}),ie.push({key:"TilingType",value:"1"}),ie.push({key:"BBox",value:"["+m.boundingBox.map(M).join(" ")+"]"}),ie.push({key:"XStep",value:M(m.xStep)}),ie.push({key:"YStep",value:M(m.yStep)}),ie.push({key:"Resources",value:H+" 0 R"}),m.matrix&&ie.push({key:"Matrix",value:"["+m.matrix.toString()+"]"}),yi({data:m.stream,additionalKeyValues:ie,objectId:m.objectNumber}),z("endobj")},Q0=function(m){for(var E in m.objectNumber=gn(),z("<<"),m)switch(E){case"opacity":z("/ca "+L(m[E]));break;case"stroke-opacity":z("/CA "+L(m[E]))}z(">>"),z("endobj")},bu=function(m){Kn(m.resourcesOid,!0),z("<<"),z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var E in z("/Font <<"),yt)yt.hasOwnProperty(E)&&(g===!1||g===!0&&p.hasOwnProperty(E))&&z("/"+E+" "+yt[E].objectNumber+" 0 R");z(">>")}(),function(){if(Object.keys(Ze).length>0){for(var E in z("/Shading <<"),Ze)Ze.hasOwnProperty(E)&&Ze[E]instanceof Ja&&Ze[E].objectNumber>=0&&z("/"+E+" "+Ze[E].objectNumber+" 0 R");Ft.publish("putShadingPatternDict"),z(">>")}}(),function(E){if(Object.keys(Ze).length>0){for(var H in z("/Pattern <<"),Ze)Ze.hasOwnProperty(H)&&Ze[H]instanceof h.TilingPattern&&Ze[H].objectNumber>=0&&Ze[H].objectNumber<E&&z("/"+H+" "+Ze[H].objectNumber+" 0 R");Ft.publish("putTilingPatternDict"),z(">>")}}(m.objectOid),function(){if(Object.keys(je).length>0){var E;for(E in z("/ExtGState <<"),je)je.hasOwnProperty(E)&&je[E].objectNumber>=0&&z("/"+E+" "+je[E].objectNumber+" 0 R");Ft.publish("putGStateDict"),z(">>")}}(),function(){for(var E in z("/XObject <<"),sr)sr.hasOwnProperty(E)&&sr[E].objectNumber>=0&&z("/"+E+" "+sr[E].objectNumber+" 0 R");Ft.publish("putXobjectDict"),z(">>")}(),z(">>"),z("endobj")},Nh=function(m){pt[m.fontName]=pt[m.fontName]||{},pt[m.fontName][m.fontStyle]=m.id},Eh=function(m,E,H,J,ie){var me={id:"F"+(Object.keys(yt).length+1).toString(10),postScriptName:m,fontName:E,fontStyle:H,encoding:J,isStandardFont:ie||!1,metadata:{}};return Ft.publish("addFont",{font:me,instance:this}),yt[me.id]=me,Nh(me),me.id},wi=h.__private__.pdfEscape=h.pdfEscape=function(m,E){return function(H,J){var ie,me,Ae,He,qe,dt,gt,Lt,Tn;if(Ae=(J=J||{}).sourceEncoding||"Unicode",qe=J.outputEncoding,(J.autoencode||qe)&&yt[Fe].metadata&&yt[Fe].metadata[Ae]&&yt[Fe].metadata[Ae].encoding&&(He=yt[Fe].metadata[Ae].encoding,!qe&&yt[Fe].encoding&&(qe=yt[Fe].encoding),!qe&&He.codePages&&(qe=He.codePages[0]),typeof qe=="string"&&(qe=He[qe]),qe)){for(gt=!1,dt=[],ie=0,me=H.length;ie<me;ie++)(Lt=qe[H.charCodeAt(ie)])?dt.push(String.fromCharCode(Lt)):dt.push(H[ie]),dt[ie].charCodeAt(0)>>8&&(gt=!0);H=dt.join("")}for(ie=H.length;gt===void 0&&ie!==0;)H.charCodeAt(ie-1)>>8&&(gt=!0),ie--;if(!gt)return H;for(dt=J.noBOM?[]:[254,255],ie=0,me=H.length;ie<me;ie++){if((Tn=(Lt=H.charCodeAt(ie))>>8)>>8)throw new Error("Character at position "+ie+" of string '"+H+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");dt.push(Tn),dt.push(Lt-(Tn<<8))}return String.fromCharCode.apply(void 0,dt)}(m,E).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},xu=h.__private__.beginPage=function(m){ke[++ot]=[],et[ot]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(m[0]),topRightY:Number(m[1])}},Ph(ot),We(ke[B])},Ch=function(m,E){var H,J,ie;switch(n=E||n,typeof m=="string"&&(H=v(m.toLowerCase()),Array.isArray(H)&&(J=H[0],ie=H[1])),Array.isArray(m)&&(J=m[0]*ut,ie=m[1]*ut),isNaN(J)&&(J=i[0],ie=i[1]),(J>14400||ie>14400)&&(Kt.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),J=Math.min(14400,J),ie=Math.min(14400,ie)),i=[J,ie],n.substr(0,1)){case"l":ie>J&&(i=[ie,J]);break;case"p":J>ie&&(i=[ie,J])}xu(i),sg(lt),z(Fl),Nu!==0&&z(Nu+" J"),_o!==0&&z(_o+" j"),Ft.publish("addPage",{pageNumber:ot})},_u=function(m){m>0&&m<=ot&&(ke.splice(m,1),et.splice(m,1),ot--,B>ot&&(B=ot),this.setPage(B))},Ph=function(m){m>0&&m<=ot&&(B=m)},Lh=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return ke.length-1},Th=function(m,E,H){var J,ie=void 0;return H=H||{},m=m!==void 0?m:yt[Fe].fontName,E=E!==void 0?E:yt[Fe].fontStyle,J=m.toLowerCase(),pt[J]!==void 0&&pt[J][E]!==void 0?ie=pt[J][E]:pt[m]!==void 0&&pt[m][E]!==void 0?ie=pt[m][E]:H.disableWarning===!1&&Kt.warn("Unable to look up font label for font '"+m+"', '"+E+"'. Refer to getFontList() for available fonts."),ie||H.noFallback||(ie=pt.times[E])==null&&(ie=pt.times.normal),ie},ls=h.__private__.putInfo=function(){var m=gn(),E=function(J){return J};for(var H in d!==null&&(E=Qn.encryptor(m,0)),z("<<"),z("/Producer ("+wi(E("jsPDF "+Xe.version))+")"),St)St.hasOwnProperty(H)&&St[H]&&z("/"+H.substr(0,1).toUpperCase()+H.substr(1)+" ("+wi(E(St[H]))+")");z("/CreationDate ("+wi(E(se))+")"),z(">>"),z("endobj")},Rl=h.__private__.putCatalog=function(m){var E=(m=m||{}).rootDictionaryObjId||wo;switch(gn(),z("<<"),z("/Type /Catalog"),z("/Pages "+E+" 0 R"),Qe||(Qe="fullwidth"),Qe){case"fullwidth":z("/OpenAction [3 0 R /FitH null]");break;case"fullheight":z("/OpenAction [3 0 R /FitV null]");break;case"fullpage":z("/OpenAction [3 0 R /Fit]");break;case"original":z("/OpenAction [3 0 R /XYZ null null 1]");break;default:var H=""+Qe;H.substr(H.length-1)==="%"&&(Qe=parseInt(Qe)/100),typeof Qe=="number"&&z("/OpenAction [3 0 R /XYZ null null "+L(Qe)+"]")}switch(At||(At="continuous"),At){case"continuous":z("/PageLayout /OneColumn");break;case"single":z("/PageLayout /SinglePage");break;case"two":case"twoleft":z("/PageLayout /TwoColumnLeft");break;case"tworight":z("/PageLayout /TwoColumnRight")}$e&&z("/PageMode /"+$e),Ft.publish("putCatalog"),z(">>"),z("endobj")},Y0=h.__private__.putTrailer=function(){z("trailer"),z("<<"),z("/Size "+(ee+1)),z("/Root "+ee+" 0 R"),z("/Info "+(ee-1)+" 0 R"),d!==null&&z("/Encrypt "+Qn.oid+" 0 R"),z("/ID [ <"+oe+"> <"+oe+"> ]"),z(">>")},Ln=h.__private__.putHeader=function(){z("%PDF-"+b),z("%ºß¬à")},Rh=h.__private__.putXRef=function(){var m="0000000000";z("xref"),z("0 "+(ee+1)),z("0000000000 65535 f ");for(var E=1;E<=ee;E++)typeof le[E]=="function"?z((m+le[E]()).slice(-10)+" 00000 n "):le[E]!==void 0?z((m+le[E]).slice(-10)+" 00000 n "):z("0000000000 00000 n ")},cs=h.__private__.buildDocument=function(){var m;ee=0,ge=0,pe=[],le=[],ye=[],wo=Hn(),Ii=Hn(),We(pe),Ft.publish("buildDocument"),Ln(),as(),function(){Ft.publish("putAdditionalObjects");for(var H=0;H<ye.length;H++){var J=ye[H];Kn(J.objId,!0),z(J.content),z("endobj")}Ft.publish("postPutAdditionalObjects")}(),m=[],function(){for(var H in yt)yt.hasOwnProperty(H)&&(g===!1||g===!0&&p.hasOwnProperty(H))&&La(yt[H])}(),function(){var H;for(H in je)je.hasOwnProperty(H)&&Q0(je[H])}(),function(){for(var H in sr)sr.hasOwnProperty(H)&&Pl(sr[H])}(),function(H){var J;for(J in Ze)Ze.hasOwnProperty(J)&&(Ze[J]instanceof Ja?Ll(Ze[J]):Ze[J]instanceof Nc&&Tl(Ze[J],H))}(m),Ft.publish("putResources"),m.forEach(bu),bu({resourcesOid:Ii,objectOid:Number.MAX_SAFE_INTEGER}),Ft.publish("postPutResources"),d!==null&&(Qn.oid=gn(),z("<<"),z("/Filter /Standard"),z("/V "+Qn.v),z("/R "+Qn.r),z("/U <"+Qn.toHexString(Qn.U)+">"),z("/O <"+Qn.toHexString(Qn.O)+">"),z("/P "+Qn.P),z(">>
208"),z("endobj")),ls(),Rl();var E=ge;return Rh(),Y0(),z("startxref"),z(""+E),z("%%EOF"),We(ke[B]),pe.join(`
209`)},jl=h.__private__.getBlob=function(m){return new Blob([ht(m)],{type:"application/pdf"})},Au=function(m){for(;m.firstChild;)m.removeChild(m.firstChild)},$r=function(m){var E,H=m.document,J=H.documentElement,ie=H.head,me=H.body;return ie||(ie=H.createElement("head"),J.appendChild(ie)),me||(me=H.createElement("body"),J.appendChild(me)),Au(ie),Au(me),(E=H.createElement("style")).appendChild(H.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),ie.appendChild(E),{document:H,body:me}},Ol=h.output=h.__private__.output=(vi=function(m,E){switch(typeof(E=E||{})=="string"?E={filename:E}:E.filename=E.filename||"generated.pdf",m){case void 0:return cs();case"save":h.save(E.filename);break;case"arraybuffer":return ht(cs());case"blob":return jl(cs());case"bloburi":case"bloburl":if(ct.URL!==void 0&&typeof ct.URL.createObjectURL=="function")return ct.URL&&ct.URL.createObjectURL(jl(cs()))||void 0;Kt.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var H="",J=cs();try{H=Db(J)}catch{H=Db(unescape(encodeURIComponent(J)))}return"data:application/pdf;filename="+encodeURIComponent(E.filename)+";base64,"+H;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ct)==="[object Window]"){var ie="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",me=!E.pdfObjectUrl;me||(ie=E.pdfObjectUrl);var Ae=ct.open();if(Ae!==null){var He=$r(Ae),qe=He.document.createElement("script"),dt=this;qe.src=ie,me&&(qe.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",qe.crossOrigin="anonymous"),qe.onload=function(){Ae.PDFObject.embed(dt.output("dataurlstring"),E)},He.body.appendChild(qe)}return Ae}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ct)==="[object Window]"){var gt=E.pdfJsUrl||"examples/PDF.js/web/viewer.html",Lt=ct.open();if(Lt!==null){var Tn=$r(Lt),Gt=Tn.document.createElement("iframe"),Vt=gt.indexOf("?")===-1?"?":"&";dt=this,Gt.id="pdfViewer",Gt.width="500px",Gt.height="400px",Gt.src=gt+Vt+"file=&downloadName="+encodeURIComponent(E.filename),Gt.onload=function(){Lt.document.title=E.filename,Gt.contentWindow.PDFViewerApplication.open(dt.output("bloburl"))},Tn.body.appendChild(Gt)}return Lt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ct)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var en=ct.open();if(en!==null){var un=$r(en),dn=un.document.createElement("iframe");dn.src=this.output("datauristring",E),un.body.appendChild(dn),en.document.title=E.filename}if(en||typeof safari>"u")return en;break;case"datauri":case"dataurl":return ct.document.location.href=this.output("datauristring",E);default:return null}},vi.foo=function(){try{return vi.apply(this,arguments)}catch(H){var m=H.stack||"";~m.indexOf(" at ")&&(m=m.split(" at ")[1]);var E="Error in function "+m.split(`
210`)[0].split("<")[0]+": "+H.message;if(!ct.console)throw new Error(E);ct.console.error(E,H),ct.alert&&alert(E)}},vi.foo.bar=vi,vi.foo),Bs=function(m){return Array.isArray(Ea)===!0&&Ea.indexOf(m)>-1};switch(r){case"pt":ut=1;break;case"mm":ut=72/25.4;break;case"cm":ut=72/2.54;break;case"in":ut=72;break;case"px":ut=Bs("px_scaling")==1?.75:96/72;break;case"pc":case"em":ut=12;break;case"ex":ut=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);ut=r}var Qn=null;ae(),U();var jh=h.__private__.getPageInfo=h.getPageInfo=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:et[m].objId,pageNumber:m,pageContext:et[m]}},X0=h.__private__.getPageInfoByObjId=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");
vendor: 12,355 bytes, lines 210-224
210for(var E in et)if(et[E].objId===m)break;return jh(E)},J0=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:et[B].objId,pageNumber:B,pageContext:et[B]}};h.addPage=function(){return Ch.apply(this,arguments),this},h.setPage=function(){return Ph.apply(this,arguments),We.call(this,ke[B]),this},h.insertPage=function(m){return this.addPage(),this.movePage(B,m),this},h.movePage=function(m,E){var H,J;if(m>E){H=ke[m],J=et[m];for(var ie=m;ie>E;ie--)ke[ie]=ke[ie-1],et[ie]=et[ie-1];ke[E]=H,et[E]=J,this.setPage(E)}else if(m<E){H=ke[m],J=et[m];for(var me=m;me<E;me++)ke[me]=ke[me+1],et[me]=et[me+1];ke[E]=H,et[E]=J,this.setPage(E)}return this},h.deletePage=function(){return _u.apply(this,arguments),this},h.__private__.text=h.text=function(m,E,H,J,ie){var me,Ae,He,qe,dt,gt,Lt,Tn,Gt,Vt=(J=J||{}).scope||this;if(typeof m=="number"&&typeof E=="number"&&(typeof H=="string"||Array.isArray(H))){var en=H;H=E,E=m,m=en}if(arguments[3]instanceof st==0?(He=arguments[4],qe=arguments[5],Ht(Lt=arguments[3])==="object"&&Lt!==null||(typeof He=="string"&&(qe=He,He=null),typeof Lt=="string"&&(qe=Lt,Lt=null),typeof Lt=="number"&&(He=Lt,Lt=null),J={flags:Lt,angle:He,align:qe})):(D("The transform parameter of text() with a Matrix value"),Gt=ie),isNaN(E)||isNaN(H)||m==null)throw new Error("Invalid arguments passed to jsPDF.text");if(m.length===0)return Vt;var un,dn="",or=typeof J.lineHeightFactor=="number"?J.lineHeightFactor:Ta,Ws=Vt.internal.scaleFactor;function Lu(Qt){return Qt=Qt.split("	").join(Array(J.TabLen||9).join(" ")),wi(Qt,Lt)}function Oa(Qt){for(var Yt,_n=Qt.concat(),Dn=[],Gs=_n.length;Gs--;)typeof(Yt=_n.shift())=="string"?Dn.push(Yt):Array.isArray(Qt)&&(Yt.length===1||Yt[1]===void 0&&Yt[2]===void 0)?Dn.push(Yt[0]):Dn.push([Yt[0],Yt[1],Yt[2]]);return Dn}function Ia(Qt,Yt){var _n;if(typeof Qt=="string")_n=Yt(Qt)[0];else if(Array.isArray(Qt)){for(var Dn,Gs,Du=Qt.concat(),Ql=[],Hh=Du.length;Hh--;)typeof(Dn=Du.shift())=="string"?Ql.push(Yt(Dn)[0]):Array.isArray(Dn)&&typeof Dn[0]=="string"&&(Gs=Yt(Dn[0],Dn[1],Dn[2]),Ql.push([Gs[0],Gs[1],Gs[2]]));_n=Ql}return _n}var Ao=!1,Da=!0;if(typeof m=="string")Ao=!0;else if(Array.isArray(m)){var zl=m.concat();Ae=[];for(var ql,ar=zl.length;ar--;)(typeof(ql=zl.shift())!="string"||Array.isArray(ql)&&typeof ql[0]!="string")&&(Da=!1);Ao=Da}if(Ao===!1)throw new Error('Type of text must be string or Array. "'+m+'" is not recognized.');typeof m=="string"&&(m=m.match(/[\r?\n]/)?m.split(/\r\n|\r|\n/g):[m]);var Fa=xe/Vt.internal.scaleFactor,Ma=Fa*(or-1);switch(J.baseline){case"bottom":H-=Ma;break;case"top":H+=Fa-Ma;break;case"hanging":H+=Fa-2*Ma;break;case"middle":H+=Fa/2-Ma}if((gt=J.maxWidth||0)>0&&(typeof m=="string"?m=Vt.splitTextToSize(m,gt):Object.prototype.toString.call(m)==="[object Array]"&&(m=m.reduce(function(Qt,Yt){return Qt.concat(Vt.splitTextToSize(Yt,gt))},[]))),me={text:m,x:E,y:H,options:J,mutex:{pdfEscape:wi,activeFontKey:Fe,fonts:yt,activeFontSize:xe}},Ft.publish("preProcessText",me),m=me.text,He=(J=me.options).angle,Gt instanceof st==0&&He&&typeof He=="number"){He*=Math.PI/180,J.rotationDirection===0&&(He=-He),N===A&&(He=-He);var Tu=Math.cos(He),hs=Math.sin(He);Gt=new st(Tu,hs,-hs,Tu,0,0)}else He&&He instanceof st&&(Gt=He);N!==A||Gt||(Gt=Ms),(dt=J.charSpace||Ml)!==void 0&&(dn+=M(Y(dt))+` Tc
211`,this.setCharSpace(this.getCharSpace()||0)),(Tn=J.horizontalScale)!==void 0&&(dn+=M(100*Tn)+` Tz
212`),J.lang;var xr=-1,zh=J.renderingMode!==void 0?J.renderingMode:J.stroke,Hl=Vt.internal.getCurrentPageInfo().pageContext;switch(zh){case 0:case!1:case"fill":xr=0;break;case 1:case!0:case"stroke":xr=1;break;case 2:case"fillThenStroke":xr=2;break;case 3:case"invisible":xr=3;break;case 4:case"fillAndAddForClipping":xr=4;break;case 5:case"strokeAndAddPathForClipping":xr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":xr=6;break;case 7:case"addToPathForClipping":xr=7}var qh=Hl.usedRenderingMode!==void 0?Hl.usedRenderingMode:-1;xr!==-1?dn+=xr+` Tr
213`:qh!==-1&&(dn+=`0 Tr
214`),xr!==-1&&(Hl.usedRenderingMode=xr),qe=J.align||"left";var bi,Ba=xe*or,Ru=Vt.internal.pageSize.getWidth(),Wl=yt[Fe];dt=J.charSpace||Ml,gt=J.maxWidth||0,Lt=Object.assign({autoencode:!0,noBOM:!0},J.flags);var Ua=[],ju=function(Qt){return Vt.getStringUnitWidth(Qt,{font:Wl,charSpace:dt,fontSize:xe,doKerning:!1})*xe/Ws};if(Object.prototype.toString.call(m)==="[object Array]"){var _r;Ae=Oa(m),qe!=="left"&&(bi=Ae.map(ju));var jr,Vl=0;if(qe==="right"){E-=bi[0],m=[],ar=Ae.length;for(var So=0;So<ar;So++)So===0?(jr=Us(E),_r=zs(H)):(jr=Y(Vl-bi[So]),_r=-Ba),m.push([Ae[So],jr,_r]),Vl=bi[So]}else if(qe==="center"){E-=bi[0]/2,m=[],ar=Ae.length;for(var ko=0;ko<ar;ko++)ko===0?(jr=Us(E),_r=zs(H)):(jr=Y((Vl-bi[ko])/2),_r=-Ba),m.push([Ae[ko],jr,_r]),Vl=bi[ko]}else if(qe==="left"){m=[],ar=Ae.length;for(var Gl=0;Gl<ar;Gl++)m.push(Ae[Gl])}else if(qe==="justify"&&Wl.encoding==="Identity-H"){m=[],ar=Ae.length,gt=gt!==0?gt:Ru;for(var za=0,Rn=0;Rn<ar;Rn++)if(_r=Rn===0?zs(H):-Ba,jr=Rn===0?Us(E):za,Rn<ar-1){var fg=Y((gt-bi[Rn])/(Ae[Rn].split(" ").length-1)),fs=Ae[Rn].split(" ");m.push([fs[0]+" ",jr,_r]),za=0;for(var Mi=1;Mi<fs.length;Mi++){var qa=(ju(fs[Mi-1]+" "+fs[Mi])-ju(fs[Mi]))*Ws+fg;Mi==fs.length-1?m.push([fs[Mi],qa,0]):m.push([fs[Mi]+" ",qa,0]),za-=qa}}else m.push([Ae[Rn],jr,_r]);m.push(["",za,0])}else{if(qe!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(m=[],ar=Ae.length,gt=gt!==0?gt:Ru,Rn=0;Rn<ar;Rn++){_r=Rn===0?zs(H):-Ba,jr=Rn===0?Us(E):0;var Ou=Ae[Rn].split(" ").length-1,Iu=Ou>0?(gt-bi[Rn])/Ou:0;Rn<ar-1?Ua.push(M(Y(Iu))):Ua.push(0),m.push([Ae[Rn],jr,_r])}}}(typeof J.R2L=="boolean"?J.R2L:nt)===!0&&(m=Ia(m,function(Qt,Yt,_n){return[Qt.split("").reverse().join(""),Yt,_n]})),me={text:m,x:E,y:H,options:J,mutex:{pdfEscape:wi,activeFontKey:Fe,fonts:yt,activeFontSize:xe}},Ft.publish("postProcessText",me),m=me.text,un=me.mutex.isHex||!1;var $l=yt[Fe].encoding;$l!=="WinAnsiEncoding"&&$l!=="StandardEncoding"||(m=Ia(m,function(Qt,Yt,_n){return[Lu(Qt),Yt,_n]})),Ae=Oa(m),m=[];for(var Ha,Wa,No,Vs=Array.isArray(Ae[0])?1:0,Eo="",Kl=function(Qt,Yt,_n){var Dn="";return _n instanceof st?(_n=typeof J.angle=="number"?Fs(_n,new st(1,0,0,1,Qt,Yt)):Fs(new st(1,0,0,1,Qt,Yt),_n),N===A&&(_n=Fs(new st(1,0,0,-1,0,0),_n)),Dn=_n.join(" ")+` Tm
215`):Dn=M(Qt)+" "+M(Yt)+` Td
216`,Dn},lr=0;lr<Ae.length;lr++){switch(Eo="",Vs){case 1:No=(un?"<":"(")+Ae[lr][0]+(un?">":")"),Ha=parseFloat(Ae[lr][1]),Wa=parseFloat(Ae[lr][2]);break;case 0:No=(un?"<":"(")+Ae[lr]+(un?">":")"),Ha=Us(E),Wa=zs(H)}Ua!==void 0&&Ua[lr]!==void 0&&(Eo=Ua[lr]+` Tw
217`),lr===0?m.push(Eo+Kl(Ha,Wa,Gt)+No):Vs===0?m.push(Eo+No):Vs===1&&m.push(Eo+Kl(Ha,Wa,Gt)+No)}m=Vs===0?m.join(` Tj
218T* `):m.join(` Tj
219`),m+=` Tj
220`;var ps=`BT
221/`;return ps+=Fe+" "+xe+` Tf
222`,ps+=M(xe*or)+` TL
223`,ps+=ds+`
224`,ps+=dn,ps+=m,z(ps+="ET"),p[Fe]=!0,Vt};var Z0=h.__private__.clip=h.clip=function(m){return z(m==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return Z0("evenodd")},h.__private__.discardPath=h.discardPath=function(){return z("n"),this};var us=h.__private__.isValidStyle=function(m){var E=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(m)!==-1&&(E=!0),E};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(m){return us(m)&&(c=m),this};var Oh=h.__private__.getStyle=h.getStyle=function(m){var E=c;switch(m){case"D":case"S":E="S";break;case"F":E="f";break;case"FD":case"DF":E="B";break;case"f":case"f*":case"B":case"B*":E=m}return E},Il=h.close=function(){return z("h"),this};h.stroke=function(){return z("S"),this},h.fill=function(m){return Dl("f",m),this},h.fillEvenOdd=function(m){return Dl("f*",m),this},h.fillStroke=function(m){return Dl("B",m),this},h.fillStrokeEvenOdd=function(m){return Dl("B*",m),this};var Dl=function(m,E){Ht(E)==="object"?tg(E,m):z(m)},Su=function(m){m===null||N===A&&m===void 0||(m=Oh(m),z(m))};function eg(m,E,H,J,ie){var me=new Nc(E||this.boundingBox,H||this.xStep,J||this.yStep,this.gState,ie||this.matrix);me.stream=this.stream;var Ae=m+"$$"+this.cloneIndex+++"$$";return mi(Ae,me),me}var tg=function(m,E){var H=Ie[m.key],J=Ze[H];if(J instanceof Ja)z("q"),z(ng(E)),J.gState&&h.setGState(J.gState),z(m.matrix.toString()+" cm"),z("/"+H+" sh"),z("Q");else if(J instanceof Nc){var ie=new st(1,0,0,-1,0,ja());m.matrix&&(ie=ie.multiply(m.matrix||Ms),H=eg.call(J,m.key,m.boundingBox,m.xStep,m.yStep,ie).id),z("q"),z("/Pattern cs"),z("/"+H+" scn"),J.gState&&h.setGState(J.gState),z(E),z("Q")}},ng=function(m){switch(m){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},bo=h.moveTo=function(m,E){return z(M(Y(m))+" "+M(q(E))+" m"),this},Ih=h.lineTo=function(m,E){return z(M(Y(m))+" "+M(q(E))+" l"),this},xo=h.curveTo=function(m,E,H,J,ie,me){return z([M(Y(m)),M(q(E)),M(Y(H)),M(q(J)),M(Y(ie)),M(q(me)),"c"].join(" ")),this};h.__private__.line=h.line=function(m,E,H,J,ie){if(isNaN(m)||isNaN(E)||isNaN(H)||isNaN(J)||!us(ie))throw new Error("Invalid arguments passed to jsPDF.line");return N===x?this.lines([[H-m,J-E]],m,E,[1,1],ie||"S"):this.lines([[H-m,J-E]],m,E,[1,1]).stroke()},h.__private__.lines=h.lines=function(m,E,H,J,ie,me){var Ae,He,qe,dt,gt,Lt,Tn,Gt,Vt,en,un,dn;if(typeof m=="number"&&(dn=H,H=E,E=m,m=dn),J=J||[1,1],me=me||!1,isNaN(E)||isNaN(H)||!Array.isArray(m)||!Array.isArray(J)||!us(ie)||typeof me!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(bo(E,H),Ae=J[0],He=J[1],dt=m.length,en=E,un=H,qe=0;qe<dt;qe++)(gt=m[qe]).length===2?(en=gt[0]*Ae+en,un=gt[1]*He+un,Ih(en,un)):(Lt=gt[0]*Ae+en,Tn=gt[1]*He+un,Gt=gt[2]*Ae+en,Vt=gt[3]*He+un,en=gt[4]*Ae+en,un=gt[5]*He+un,xo(Lt,Tn,Gt,Vt,en,un));return me&&Il(),Su(ie),this},h.path=function(m){for(var E=0;E<m.length;E++){var H=m[E],J=H.c;switch(H.op){case"m":bo(J[0],J[1]);break;case"l":Ih(J[0],J[1]);break;case"c":xo.apply(this,J);break;case"h":Il()}}return this},h.__private__.rect=h.rect=function(m,E,H,J,ie){if(isNaN(m)||isNaN(E)||isNaN(H)||isNaN(J)||!us(ie))throw new Error("Invalid arguments passed to jsPDF.rect");return N===x&&(J=-J),z([M(Y(m)),M(q(E)),M(Y(H)),M(Y(J)),"re"].join(" ")),Su(ie),this},h.__private__.triangle=h.triangle=function(m,E,H,J,ie,me,Ae){if(isNaN(m)||isNaN(E)||isNaN(H)||isNaN(J)||isNaN(ie)||isNaN(me)||!us(Ae))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[H-m,J-E],[ie-H,me-J],[m-ie,E-me]],m,E,[1,1],Ae,!0),this},h.__private__.roundedRect=h.roundedRect=function(m,E,H,J,ie,me,Ae){if(isNaN(m)||isNaN(E)||isNaN(H)||isNaN(J)||isNaN(ie)||isNaN(me)||!us(Ae))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var He=4/3*(Math.SQRT2-1);return ie=Math.min(ie,.5*H),me=Math.min(me,.5*J),this.lines([[H-2*ie,0],[ie*He,0,ie,me-me*He,ie,me],[0,J-2*me],[0,me*He,-ie*He,me,-ie,me],[2*ie-H,0],[-ie*He,0,-ie,-me*He,-ie,-me],[0,2*me-J],[0,-me*He,ie*He,-me,ie,-me]],m+ie,E,[1,1],Ae,!0),this},h.__private__.ellipse=h.ellipse=function(m,E,H,J,ie){if(isNaN(m)||isNaN(E)||isNaN(H)||isNaN(J)||!us(ie))throw new Error("Invalid arguments passed to jsPDF.ellipse");var me=4/3*(Math.SQRT2-1)*H,Ae=4/3*(Math.SQRT2-1)*J;return bo(m+H,E),xo(m+H,E-Ae,m+me,E-J,m,E-J),xo(m-me,E-J,m-H,E-Ae,m-H,E),xo(m-H,E+Ae,m-me,E+J,m,E+J),xo(m+me,E+J,m+H,E+Ae,m+H,E),Su(ie),this},h.__private__.circle=h.circle=function(m,E,H,J){if(isNaN(m)||isNaN(E)||isNaN(H)||!us(J))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(m,E,H,H,J)},h.setFont=function(m,E,H){return H&&(E=K(E,H)),Fe=Th(m,E,{disableWarning:!1}),this};var rg=h.__private__.getFont=h.getFont=function(){return yt[Th.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var m,E,H={};for(m in pt)if(pt.hasOwnProperty(m))for(E in H[m]=[],pt[m])pt[m].hasOwnProperty(E)&&H[m].push(E);return H},h.addFont=function(m,E,H,J,ie){var me=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&me.indexOf(arguments[3])!==-1?ie=arguments[3]:arguments[3]&&me.indexOf(arguments[3])==-1&&(H=K(H,J)),Eh.call(this,m,E,H,ie=ie||"Identity-H")};var Ta,lt=e.lineWidth||.200025,ig=h.__private__.getLineWidth=h.getLineWidth=function(){return lt},sg=h.__private__.setLineWidth=h.setLineWidth=function(m){return lt=m,z(M(Y(m))+" w"),this};h.__private__.setLineDash=Xe.API.setLineDash=Xe.API.setLineDashPattern=function(m,E){if(m=m||[],E=E||0,isNaN(E)||!Array.isArray(m))throw new Error("Invalid arguments passed to 
224jsPDF.setLineDash");return m=m.map(function(H){return M(Y(H))}).join(" "),E=M(Y(E)),z("["+m+"] "+E+" d"),this};var og=h.__private__.getLineHeight=h.getLineHeight=function(){return xe*Ta};h.__private__.getLineHeight=h.getLineHeight=function(){return xe*Ta};var ag=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(m){return typeof(m=m||1.15)=="number"&&(Ta=m),this},lg=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return Ta};ag(e.lineHeight);var Us=h.__private__.getHorizontalCoordinate=function(m){return Y(m)},zs=h.__private__.getVerticalCoordinate=function(m){return N===A?m:et[B].mediaBox.topRightY-et[B].mediaBox.bottomLeftY-Y(m)},cg=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(m){return M(Us(m))},ug=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(m){return M(zs(m))},Fl=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return os(Fl)},h.__private__.setStrokeColor=h.setDrawColor=function(m,E,H,J){return Fl=Di({ch1:m,ch2:E,ch3:H,ch4:J,pdfColorType:"draw",precision:2}),z(Fl),this};var ku=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return os(ku)},h.__private__.setFillColor=h.setFillColor=function(m,E,H,J){return ku=Di({ch1:m,ch2:E,ch3:H,ch4:J,pdfColorType:"fill",precision:2}),z(ku),this};var ds=e.textColor||"0 g",dg=h.__private__.getTextColor=h.getTextColor=function(){return os(ds)};h.__private__.setTextColor=h.setTextColor=function(m,E,H,J){return ds=Di({ch1:m,ch2:E,ch3:H,ch4:J,pdfColorType:"text",precision:3}),this};var Ml=e.charSpace,hg=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(Ml||0)};h.__private__.setCharSpace=h.setCharSpace=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ml=m,this};var Nu=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(m){var E=h.CapJoinStyles[m];if(E===void 0)throw new Error("Line cap style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Nu=E,z(E+" J"),this};var _o=0;h.__private__.setLineJoin=h.setLineJoin=function(m){var E=h.CapJoinStyles[m];if(E===void 0)throw new Error("Line join style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return _o=E,z(E+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(m){if(m=m||0,isNaN(m))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return z(M(Y(m))+" M"),this},h.GState=Jp,h.setGState=function(m){(m=typeof m=="string"?je[Oe[m]]:Eu(null,m)).equals(Et)||(z("/"+m.id+" gs"),Et=m)};var Eu=function(m,E){if(!m||!Oe[m]){var H=!1;for(var J in je)if(je.hasOwnProperty(J)&&je[J].equals(E)){H=!0;break}if(H)E=je[J];else{var ie="GS"+(Object.keys(je).length+1).toString(10);je[ie]=E,E.id=ie}return m&&(Oe[m]=E.id),Ft.publish("addGState",E),E}};h.addGState=function(m,E){return Eu(m,E),this},h.saveGraphicsState=function(){return z("q"),Rt.push({key:Fe,size:xe,color:ds}),this},h.restoreGraphicsState=function(){z("Q");var m=Rt.pop();return Fe=m.key,xe=m.size,ds=m.color,Et=null,this},h.setCurrentTransformationMatrix=function(m){return z(m.toString()+" cm"),this},h.comment=function(m){return z("#"+m),this};var Ra=function(m,E){var H=m||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return H},set:function(me){isNaN(me)||(H=parseFloat(me))}});var J=E||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return J},set:function(me){isNaN(me)||(J=parseFloat(me))}});var ie="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ie},set:function(me){ie=me.toString()}}),this},Cu=function(m,E,H,J){Ra.call(this,m,E),this.type="rect";var ie=H||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ie},set:function(Ae){isNaN(Ae)||(ie=parseFloat(Ae))}});var me=J||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return me},set:function(Ae){isNaN(Ae)||(me=parseFloat(Ae))}}),this},Bl=function(){this.page=ot,this.currentPage=B,this.pages=ke.slice(0),this.pagesContext=et.slice(0),this.x=Ke,this.y=an,this.matrix=Nt,this.width=Dh(B),this.height=Hs(B),this.outputDestination=Le,this.id="",this.objectNumber=-1};Bl.prototype.restore=function(){ot=this.page,B=this.currentPage,et=this.pagesContext,ke=this.pages,Ke=this.x,an=this.y,Nt=this.matrix,qs(B,this.width),Fh(B,this.height),Le=this.outputDestination};var Pu=function(m,E,H,J,ie){ss.push(new Bl),ot=B=0,ke=[],Ke=m,an=E,Nt=ie,xu([H,J])};for(var Ul in h.beginFormObject=function(m,E,H,J,ie){return Pu(m,E,H,J,ie),this},h.endFormObject=function(m){return function(E){if(Ds[E])ss.pop().restore(
vendor: 56,319 bytes, lines 224-243
224);else{var H=new Bl,J="Xo"+(Object.keys(sr).length+1).toString(10);H.id=J,Ds[E]=J,sr[J]=H,Ft.publish("addFormObject",H),ss.pop().restore()}}(m),this},h.doFormObject=function(m,E){var H=sr[Ds[m]];return z("q"),z(E.toString()+" cm"),z("/"+H.id+" Do"),z("Q"),this},h.getFormObject=function(m){var E=sr[Ds[m]];return{x:E.x,y:E.y,width:E.width,height:E.height,matrix:E.matrix}},h.save=function(m,E){return m=m||"generated.pdf",(E=E||{}).returnPromise=E.returnPromise||!1,E.returnPromise===!1?(Ya(jl(cs()),m),typeof Ya.unload=="function"&&ct.setTimeout&&setTimeout(Ya.unload,911),this):new Promise(function(H,J){try{var ie=Ya(jl(cs()),m);typeof Ya.unload=="function"&&ct.setTimeout&&setTimeout(Ya.unload,911),H(ie)}catch(me){J(me.message)}})},Xe.API)Xe.API.hasOwnProperty(Ul)&&(Ul==="events"&&Xe.API.events.length?function(m,E){var H,J,ie;for(ie=E.length-1;ie!==-1;ie--)H=E[ie][0],J=E[ie][1],m.subscribe.apply(m,[H].concat(typeof J=="function"?[J]:J))}(Ft,Xe.API.events):h[Ul]=Xe.API[Ul]);function Dh(m){return et[m].mediaBox.topRightX-et[m].mediaBox.bottomLeftX}function qs(m,E){et[m].mediaBox.topRightX=E+et[m].mediaBox.bottomLeftX}function Hs(m){return et[m].mediaBox.topRightY-et[m].mediaBox.bottomLeftY}function Fh(m,E){et[m].mediaBox.topRightY=E+et[m].mediaBox.bottomLeftY}var Mh=h.getPageWidth=function(m){return Dh(m=m||B)/ut},Bh=h.setPageWidth=function(m,E){qs(m,E*ut)},ja=h.getPageHeight=function(m){return Hs(m=m||B)/ut},Uh=h.setPageHeight=function(m,E){Fh(m,E*ut)};return h.internal={pdfEscape:wi,getStyle:Oh,getFont:rg,getFontSize:De,getCharSpace:hg,getTextColor:dg,getLineHeight:og,getLineHeightFactor:lg,getLineWidth:ig,write:Ce,getHorizontalCoordinate:Us,getVerticalCoordinate:zs,getCoordinateString:cg,getVerticalCoordinateString:ug,collections:{},newObject:gn,newAdditionalObject:Ca,newObjectDeferred:Hn,newObjectDeferredBegin:Kn,getFilters:Fi,putStream:yi,events:Ft,scaleFactor:ut,pageSize:{getWidth:function(){return Mh(B)},setWidth:function(m){Bh(B,m)},getHeight:function(){return ja(B)},setHeight:function(m){Uh(B,m)}},encryptionOptions:d,encryption:Qn,getEncryptor:function(m){return d!==null?Qn.encryptor(m,0):function(E){return E}},output:Ol,getNumberOfPages:Lh,get pages(){return ke},out:z,f2:L,f3:j,getPageInfo:jh,getPageInfoByObjId:X0,getCurrentPageInfo:J0,getPDFVersion:w,Point:Ra,Rectangle:Cu,Matrix:st,hasHotfix:Bs},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return Mh(B)},set:function(m){Bh(B,m)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return ja(B)},set:function(m){Uh(B,m)},enumerable:!0,configurable:!0}),(function(m){for(var E=0,H=Je.length;E<H;E++){var J=Eh.call(this,m[E][0],m[E][1],m[E][2],Je[E][3],!0);g===!1&&(p[J]=!0);var ie=m[E][0].split("-");Nh({id:J,fontName:ie[0],fontStyle:ie[1]||""})}Ft.publish("addFonts",{fonts:yt,dictionary:pt})}).call(h,Je),Fe="F1",Ch(i,n),Ft.publish("initialized"),h}lc.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},lc.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},lc.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},lc.prototype.processOwnerPassword=function(e,t){return mv(gv(t).substr(0,5),e)},lc.prototype.encryptor=function(e,t){var n=gv(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return mv(n,r)}},Jp.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||Ht(e)!==Ht(this))return!1;var r=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;r++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&r--;return r===0},Xe.API={events:[]},Xe.version="4.2.1";var wn=Xe.API,ry=1,Cl=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ec=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Sl=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var n=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(n.length===1?"0"+n:n)})},ft=function(e){return e.toFixed(2)},Mo=function(e){return e.toFixed(5)};wn.__acroform__={};var Gr=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},Ub=function(e){return e*ry},ys=function(e){var t=new GS,n=Ue.internal.getHeight(e)||0,r=Ue.internal.getWidth(e)||0;return t.BBox=[0,0,Number(ft(r)),Number(ft(n))],t},jO=wn.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},OO=wn.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},IO=wn.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},En=wn.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return IO(e,t-1)},Cn=wn.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return jO(e,t-1)},Pn=wn.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return OO(e,t-1)},DO=wn.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,i=e[0],s=e[1],o=e[2],a=e[3],l={};return l.lowerLeft_X=n(i)||0,l.lowerLeft_Y=r(s+a)||0,l.upperRight_X=n(i+o)||0,l.upperRight_Y=r(s)||0,[Number(ft(l.lowerLeft_X)),Number(ft(l.lowerLeft_Y)),Number(ft(l.upperRight_X)),Number(ft(l.upperRight_Y))]},FO=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=vv(e,n),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+ft(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var s=ys(e);return s.scope=e.scope,s.stream=t.join(`
225`),s}},vv=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},i=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map(function(L){return L.split(`
226`)}):i.map(function(L){return[L]});var s=n,o=Ue.internal.getHeight(e)||0;o=o<0?-o:o;var a=Ue.internal.getWidth(e)||0;a=a<0?-a:a;var l=function(L,j,Y){if(L+1<i.length){var q=j+" "+i[L+1][0];return Ff(q,e,Y).width<=a-4}return!1};s++;e:for(;s>0;){t="",s--;var c,d,g=Ff("3",e,s).height,p=e.multiline?o-s:(o-g)/2,h=p+=2,b=0,w=0,_=0;if(s<=0){t=`(...) Tj
227`,t+="% Width of Text: "+Ff(t,e,s=12).width+", FieldWidth:"+a+`
228`;break}for(var v="",x=0,A=0;A<i.length;A++)if(i.hasOwnProperty(A)){var N=!1;if(i[A].length!==1&&_!==i[A].length-1){if((g+2)*(x+2)+2>o)continue e;v+=i[A][_],N=!0,w=A,A--}else{v=(v+=i[A][_]+" ").substr(v.length-1)==" "?v.substr(0,v.length-1):v;var I=parseInt(A),$=l(I,v,s),K=A>=i.length-1;if($&&!K){v+=" ",_=0;continue}if($||K){if(K)w=I;else if(e.multiline&&(g+2)*(x+2)+2>o)continue e}else{if(!e.multiline||(g+2)*(x+2)+2>o)continue e;w=I}}for(var M="",D=b;D<=w;D++){var X=i[D];if(e.multiline){if(D===w){M+=X[_]+" ",_=(_+1)%X.length;continue}if(D===b){M+=X[X.length-1]+" ";continue}}M+=X[0]+" "}switch(M=M.substr(M.length-1)==" "?M.substr(0,M.length-1):M,d=Ff(M,e,s).width,e.textAlign){case"right":c=a-d-2;break;case"center":c=(a-d)/2;break;default:c=2}t+=ft(c)+" "+ft(h)+` Td
229`,t+="("+Cl(M)+`) Tj
230`,t+=-ft(c)+` 0 Td
231`,h=-(s+2),d=0,b=N?w:w+1,x++,v=""}break}return r.text=t,r.fontSize=s,r},Ff=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},MO={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},BO=function(e,t){var n={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===n.type&&r.object===n.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},UO=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(rs.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(MO)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");ry=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new $S,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in r)if(r.hasOwnProperty(i)){var s=r[i];s.objId=void 0,s.hasAnnotation&&BO(s,n)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(n){(function(r,i){var s=!r;for(var o in r||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(o)){var a=r[o],l=[],c=a.Rect;if(a.Rect&&(a.Rect=DO(a.Rect,i)),i.internal.newObjectDeferredBegin(a.objId,!0),a.DA=Ue.createDefaultAppearanceStream(a),Ht(a)==="object"&&typeof a.getKeyValueListForStream=="function"&&(l=a.getKeyValueListForStream()),a.Rect=c,a.hasAppearanceStream&&!a.appearanceStreamContent){var d=FO(a);l.push({key:"AP",value:"<</N "+d+">>"}),i.internal.acroformPlugin.xForms.push(d)}if(a.appearanceStreamContent){var g="";for(var p in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(p)){var h=a.appearanceStreamContent[p];if(g+="/"+p+" ",g+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var o in h)if(h.hasOwnProperty(o)){var b=h[o];typeof b=="function"&&(b=b.call(i,a)),g+="/"+o+" "+b+" ",i.internal.acroformPlugin.xForms.indexOf(b)>=0||i.internal.acroformPlugin.xForms.push(b)}}else typeof(b=h)=="function"&&(b=b.call(i,a)),g+="/"+o+" "+b,i.internal.acroformPlugin.xForms.indexOf(b)>=0||i.internal.acroformPlugin.xForms.push(b);g+=">>"}l.push({key:"AP",value:`<<
232`+g+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:a.objId}),i.internal.out("endobj")}s&&function(w,_){for(var v in w)if(w.hasOwnProperty(v)){var x=v,A=w[v];_.internal.newObjectDeferredBegin(A.objId,!0),Ht(A)==="object"&&typeof A.putStream=="function"&&A.putStream(),delete w[x]}}(i.internal.acroformPlugin.xForms,i)})(n,e)}),e.internal.acroformPlugin.isInitialized=!0}},VS=wn.__acroform__.arrayToPdfArray=function(e,t,n){var r=function(o){return o};if(Array.isArray(e)){for(var i="[",s=0;s<e.length;s++)switch(s!==0&&(i+=" "),Ht(e[s])){case"boolean":case"number":case"object":i+=e[s].toString();break;case"string":e[s].substr(0,1)==="/"?i+="/"+Sl(e[s].substr(1)):(t!==void 0&&n&&(r=n.internal.getEncryptor(t)),i+="("+Cl(r(e[s].toString()))+")")}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},jm=function(e,t,n){var r=function(i){return i};return t!==void 0&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+Cl(r(e))+")"},Es=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Es.prototype.toString=function(){return this.objId+" 0 R"},Es.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Es.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(s){return s!="content"&&s!="appearanceStreamContent"&&s!="scope"&&s!="objId"&&s.substring(0,1)!="_"});for(var n in t)if(Object.getOwnPropertyDescriptor(this,t[n]).configurable===!1){var r=t[n],i=this[r];i&&(Array.isArray(i)?e.push({key:r,value:VS(i,this.objId,this.scope)}):i instanceof Es?(i.scope=this.scope,e.push({key:r,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:r,value:i}))}return e};var GS=function(){Es.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){e=n.trim()},get:function(){return e||null}})};Gr(GS,Es);var $S=function(){Es.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var n=function(r){return r};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+Cl(n(e))+")"}},set:function(n){e=n}})};Gr($S,Es);var rs=function e(){Es.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute F supplied.');t=v}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!En(t,3)},set:function(v){v?this.F=Cn(t,3):this.F=Pn(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute Ff supplied.');n=v}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(v){r=v!==void 0?v:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(v){r[0]=v}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(v){r[1]=v}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(v){r[2]=v}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(v){r[3]=v}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(v){switch(v){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=v;break;default:throw new Error('Invalid value "'+v+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof Zp)return;s="FieldObject"+e.FieldNum++}var v=function(x){return x};return this.scope&&(v=this.scope.internal.getEncryptor(this.objId)),"("+Cl(v(s))+")"},set:function(v){s=v.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(v){s=v}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(v){o=v}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(v){a=v}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(v){l=v}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/ry:c},set:function(v){c=v}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(v){d=v}});var g="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!g||this instanceof Zp||this instanceof fl))return jm(g,this.objId,this.scope)},set:function(v){v=v.toString(),g=v}});var p=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof Gn==0?jm(p,this.objId,this.scope):p},set:function(v){v=v.toString(),p=this instanceof Gn==0?v.substr(0,1)==="("?ec(v.substr(1,v.length-2)):ec(v):v}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Gn==1?ec(p.substr(1,p.length-1)):p},set:function(v){v=v.toString(),p=this instanceof Gn==1?"/"+Sl(v):v}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(v){this.V=v}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof Gn==0?jm(h,this.objId,this.scope):h},set:function(v){v=v.toString(),h=this instanceof Gn==0?v.substr(0,1)==="("?ec(v.substr(1,v.length-2)):ec(v):v}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Gn==1?ec(h.substr(1,h.length-1)):h},set:function(v){v=v.toString(),h=this instanceof Gn==1?"/"+Sl(v):v}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var b,w=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return w},set:function(v){v=!!v,w=v}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(b)return b},set:function(v){b=v}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,1)},set:function(v){v?this.Ff=Cn(this.Ff,1):this.Ff=Pn(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,2)},set:function(v){v?this.Ff=Cn(this.Ff,2):this.Ff=Pn(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,3)},set:function(v){v?this.Ff=Cn(this.Ff,3):this.Ff=Pn(this.Ff,3)}});var _=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(_!==null)return _},set:function(v){if([0,1,2].indexOf(v)===-1)throw new Error('Invalid value "'+v+'" for attribute Q supplied.');_=v}}),Object.defineProperty(this,"textAlign",{get:function(){var v;switch(_){case 0:default:v="left";break;case 1:v="center";break;case 2:v="right"}return v},configurable:!0,enumerable:!0,set:function(v){switch(v){case"right":case 2:_=2;break;case"center":case 1:_=1;break;default:_=0}}})};Gr(rs,Es);var Mc=function(){rs.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){e=n}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return VS(t,this.objId,this.scope)},set:function(n){var r,i;i=[],typeof(r=n)=="string"&&(i=function(s,o,a){a||(a=1);for(var l,c=[];l=o.exec(s);)c.push(l[a]);return c}(r,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(n){t=n,this.sort&&t.sort()},this.addOption=function(n){n=(n=n||"").toString(),t.push(n),this.sort&&t.sort()},this.removeOption=function(n,r){for(r=r||!1,n=(n=n||"").toString();t.indexOf(n)!==-1&&(t.splice(t.indexOf(n),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,18)},set:function(n){n?this.Ff=Cn(this.Ff,18):this.Ff=Pn(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=Cn(this.Ff,19):this.Ff=Pn(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,20)},set:function(n){n?(this.Ff=Cn(this.Ff,20),t.sort()):this.Ff=Pn(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,22)},set:function(n){n?this.Ff=Cn(this.Ff,22):this.Ff=Pn(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,23)},set:function(n){n?this.Ff=Cn(this.Ff,23):this.Ff=Pn(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,27)},set:function(n){n?this.Ff=Cn(this.Ff,27):this.Ff=Pn(this.Ff,27)}}),this.hasAppearanceStream=!1};Gr(Mc,rs);var Bc=function(){Mc.call(this),this.fontName="helvetica",this.combo=!1};Gr(Bc,Mc);var Uc=function(){Bc.call(this),this.combo=!0};Gr(Uc,Bc);var up=function(){Uc.call(this),this.edit=!0};Gr(up,Uc);var Gn=function(){rs.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,15)},set:function(n){n?this.Ff=Cn(this.Ff,15):this.Ff=Pn(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,16)},set:function(n){n?this.Ff=Cn(this.Ff,16):this.Ff=Pn(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,17)},set:function(n){n?this.Ff=Cn(this.Ff,17):this.Ff=Pn(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,26)},set:function(n){n?this.Ff=Cn(this.Ff,26):this.Ff=Pn(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(s){return s};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,i=[];for(r in i.push("<<"),t)i.push("/"+r+" ("+Cl(n(t[r]))+")");return i.push(">>"),i.join(`
233`)}},set:function(n){Ht(n)==="object"&&(t=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(n){typeof n=="string"&&(t.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){var r=n==null?"":n.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),e="/"+Sl(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+Sl(n)}})};Gr(Gn,rs);var dp=function(){Gn.call(this),this.pushButton=!0};Gr(dp,Gn);var zc=function(){Gn.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};Gr(zc,Gn);var Zp=function(){var e,t;rs.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(i){t=i}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(a){return a};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var s,o=[];for(s in o.push("<<"),r)o.push("/"+s+" ("+Cl(i(r[s]))+")");return o.push(">>"),o.join(`
234`)},set:function(i){Ht(i)==="object"&&(r=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(i){typeof i=="string"&&(r.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(i){var s=i==null?"":i.toString();s.substr(0,1)==="/"&&(s=s.substr(1)),n="/"+Sl(s)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(i){var s=i==null?"":i.toString();s.substr(0,1)==="/"&&(s=s.substr(1)),n="/"+Sl(s)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ue.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Gr(Zp,rs),zc.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},zc.prototype.createOption=function(e){var t=new Zp;return t.Parent=this,t.optionName=e,this.Kids.push(t),zO.call(this.scope,t),t};var hp=function(){Gn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ue.CheckBox.createAppearanceStream()};Gr(hp,Gn);var fl=function(){rs.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,13)},set:function(t){t?this.Ff=Cn(this.Ff,13):this.Ff=Pn(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,21)},set:function(t){t?this.Ff=Cn(this.Ff,21):this.Ff=Pn(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,23)},set:function(t){t?this.Ff=Cn(this.Ff,23):this.Ff=Pn(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,24)},set:function(t){t?this.Ff=Cn(this.Ff,24):this.Ff=Pn(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,25)},set:function(t){t?this.Ff=Cn(this.Ff,25):this.Ff=Pn(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,26)},set:function(t){t?this.Ff=Cn(this.Ff,26):this.Ff=Pn(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Gr(fl,rs);var fp=function(){fl.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!En(this.Ff,14)},set:function(e){e?this.Ff=Cn(this.Ff,14):this.Ff=Pn(this.Ff,14)}}),this.password=!0};Gr(fp,fl);var Ue={CheckBox:{createAppearanceStream:function(){return{N:{On:Ue.CheckBox.YesNormal},D:{On:Ue.CheckBox.YesPushDown,Off:Ue.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=ys(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),s=vv(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+ft(Ue.internal.getWidth(e))+" "+ft(Ue.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+ft(s.fontSize)+" Tf "+i),n.push("BT"),n.push(s.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join(`
235`),t},YesNormal:function(e){var t=ys(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=[],s=Ue.internal.getHeight(e),o=Ue.internal.getWidth(e),a=vv(e,e.caption);return i.push("1 g"),i.push("0 0 "+ft(o)+" "+ft(s)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+ft(o-1)+" "+ft(s-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+ft(a.fontSize)+" Tf "+r),i.push(a.text),i.push("ET"),i.push("Q"),t.stream=i.join(`
236`),t},OffPushDown:function(e){var t=ys(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ft(Ue.internal.getWidth(e))+" "+ft(Ue.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(`
237`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Ue.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Ue.RadioButton.Circle.YesNormal,t.D[e]=Ue.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=ys(e);t.scope=e.scope;var n=[],r=Ue.internal.getWidth(e)<=Ue.internal.getHeight(e)?Ue.internal.getWidth(e)/4:Ue.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Ue.internal.Bezier_C,s=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Mo(Ue.internal.getWidth(e)/2)+" "+Mo(Ue.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),n.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),n.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),n.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
238`),t},YesPushDown:function(e){var t=ys(e);t.scope=e.scope;var n=[],r=Ue.internal.getWidth(e)<=Ue.internal.getHeight(e)?Ue.internal.getWidth(e)/4:Ue.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),s=Number((i*Ue.internal.Bezier_C).toFixed(5)),o=Number((r*Ue.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Mo(Ue.internal.getWidth(e)/2)+" "+Mo(Ue.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),n.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),n.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),n.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Mo(Ue.internal.getWidth(e)/2)+" "+Mo(Ue.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
239`),t},OffPushDown:function(e){var t=ys(e);t.scope=e.scope;var n=[],r=Ue.internal.getWidth(e)<=Ue.internal.getHeight(e)?Ue.internal.getWidth(e)/4:Ue.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),s=Number((i*Ue.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Mo(Ue.internal.getWidth(e)/2)+" "+Mo(Ue.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),n.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),n.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),n.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
240`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Ue.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Ue.RadioButton.Cross.YesNormal,t.D[e]=Ue.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=ys(e);t.scope=e.scope;var n=[],r=Ue.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+ft(Ue.internal.getWidth(e)-2)+" "+ft(Ue.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(ft(r.x1.x)+" "+ft(r.x1.y)+" m"),n.push(ft(r.x2.x)+" "+ft(r.x2.y)+" l"),n.push(ft(r.x4.x)+" "+ft(r.x4.y)+" m"),n.push(ft(r.x3.x)+" "+ft(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
241`),t},YesPushDown:function(e){var t=ys(e);t.scope=e.scope;var n=Ue.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+ft(Ue.internal.getWidth(e))+" "+ft(Ue.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ft(Ue.internal.getWidth(e)-2)+" "+ft(Ue.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(ft(n.x1.x)+" "+ft(n.x1.y)+" m"),r.push(ft(n.x2.x)+" "+ft(n.x2.y)+" l"),r.push(ft(n.x4.x)+" "+ft(n.x4.y)+" m"),r.push(ft(n.x3.x)+" "+ft(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
242`),t},OffPushDown:function(e){var t=ys(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ft(Ue.internal.getWidth(e))+" "+ft(Ue.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(`
243`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};Ue.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Ue.internal.getWidth(e),n=Ue.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},Ue.internal.getWidth=function(e){var t=0;return Ht(e)==="object"&&(t=Ub(e.Rect[2])),t},Ue.internal.getHeight=function(e){var t=0;return Ht(e)==="object"&&(t=Ub(e.Rect[3])),t};var zO=wn.addField=function(e){if(UO(this,e),!(e instanceof rs))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};wn.AcroFormChoiceField=Mc,wn.AcroFormListBox=Bc,wn.AcroFormComboBox=Uc,wn.AcroFormEditBox=up,wn.AcroFormButton=Gn,wn.AcroFormPushButton=dp,wn.AcroFormRadioButton=zc,wn.AcroFormCheckBox=hp,wn.AcroFormTextField=fl,wn.AcroFormPasswordField=fp,wn.AcroFormAppearance=Ue,wn.AcroForm={ChoiceField:Mc,ListBox:Bc,ComboBox:Uc,EditBox:up,Button:Gn,PushButton:dp,RadioButton:zc,CheckBox:hp,TextField:fl,PasswordField:fp,Appearance:Ue},Xe.AcroForm={ChoiceField:Mc,ListBox:Bc,ComboBox:Uc,EditBox:up,Button:Gn,PushButton:dp,RadioButton:zc,CheckBox:hp,TextField:fl,PasswordField:fp,Appearance:Ue};function KS(e){return e.reduce(function(t,n,r){return t[n]=r,t},{})}(function(e){var t="addImage_";e.__addimage__={};var n="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.__addimage__.getImageFileTypeByImageData=function(L,j){var Y,q,se,oe,ue,U=n;if((j=j||n)==="RGBA"||L.data!==void 0&&L.data instanceof Uint8ClampedArray&&"height"in L&&"width"in L)return"RGBA";if($(L))for(ue in r)for(se=r[ue],Y=0;Y<se.length;Y+=1){for(oe=!0,q=0;q<se[Y].length;q+=1)if(se[Y][q]!==void 0&&se[Y][q]!==L[q]){oe=!1;break}if(oe===!0){U=ue;break}}else for(ue in r)for(se=r[ue],Y=0;Y<se.length;Y+=1){for(oe=!0,q=0;q<se[Y].length;q+=1)if(se[Y][q]!==void 0&&se[Y][q]!==L.charCodeAt(q)){oe=!1;break}if(oe===!0){U=ue;break}}return U===n&&j!==n&&(U=j),U},s=function L(j){for(var Y=this.internal.write,q=this.internal.putStream,se=(0,this.internal.getFilters)();se.indexOf("FlateEncode")!==-1;)se.splice(se.indexOf("FlateEncode"),1);j.objectId=this.internal.newObject();var oe=[];if(oe.push({key:"Type",value:"/XObject"}),oe.push({key:"Subtype",value:"/Image"}),oe.push({key:"Width",value:j.width}),oe.push({key:"Height",value:j.height}),j.colorSpace===v.INDEXED?oe.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(j.palette.length/3-1)+" "+("sMask"in j&&j.sMask!==void 0?j.objectId+2:j.objectId+1)+" 0 R]"}):(oe.push({key:"ColorSpace",value:"/"+j.colorSpace}),j.colorSpace===v.DEVICE_CMYK&&oe.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),oe.push({key:"BitsPerComponent",value:j.bitsPerComponent}),"decodeParameters"in j&&j.decodeParameters!==void 0&&oe.push({key:"DecodeParms",value:"<<"+j.decodeParameters+">>"}),"transparency"in j&&Array.isArray(j.transparency)&&j.transparency.length>0){for(var ue="",U=0,te=j.transparency.length;U<te;U++)ue+=j.transparency[U]+" "+j.transparency[U]+" ";oe.push({key:"Mask",value:"["+ue+"]"})}j.sMask!==void 0&&oe.push({key:"SMask",value:j.objectId+1+" 0 R"});var fe=j.filter!==void 0?["/"+j.filter]:void 0;if(q({data:j.data,additionalKeyValues:oe,alreadyAppliedFilters:fe,objectId:j.objectId}),Y("endobj"),"sMask"in j&&j.sMask!==void 0){var ae,P=(ae=j.sMaskBitsPerComponent)!==null&&ae!==void 0?ae:j.bitsPerComponent,B={width:j.width,height:j.height,colorSpace:"DeviceGray",bitsPerComponent:P,data:j.sMask};"filter"in j&&(B.decodeParameters="/Predictor ".concat(j.predictor," /Colors 1 /BitsPerComponent ").concat(P," /Columns ").concat(j.width),B.filter=j.filter),L.call(this,B)}if(j.colorSpace===v.INDEXED){var Q=this.internal.newObject();q({data:M(new Uint8Array(j.palette)),objectId:Q}),Y("endobj")}},o=function(){var L=this.internal.collections[t+"images"];for(var j in L)s.call(this,L[j])},a=function(){var L,j=this.internal.collections[t+"images"],Y=this.internal.write;for(var q in j)Y("/I"+(L=j[q]).index,L.objectId,"0","R")},l=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",a))},c=function(){var L=this.internal.collections[t+"images"];return l.call(this),L},d=function(){return Object.keys(this.internal.collections[t+"images"]).length},g=function(L){return typeof e["process"+L.toUpperCase()]=="function"},p=function(L){return Ht(L)==="object"&&L.nodeType===1},h=function(L,j){if(L.nodeName==="IMG"&&L.hasAttribute("src")){var Y=""+L.getAttribute("src");if(Y.indexOf("data:image/")===0)return cp(unescape(Y).split("base64,").pop());var q=e.loadFile(Y,!0);if(q!==void 0)return q}if(L.nodeName==="CANVAS"){if(L.width===0||L.height===0)throw new Error("Given canvas must have data. Canvas width: "+L.width+", height: "+L.height);var se;switch(j){case"PNG":se="image/png";break;case"WEBP":se="image/webp";break;default:se="image/jpeg"}return cp(L.toDataURL(se,1).split("base64,").pop())}},b=function(L){var j=this.internal.collections[t+"images"];if(j){for(var Y in j)if(L===j[Y].alias)return j[Y]}},w=function(L,j,Y){return L||j||(L=-96,j=-96),L<0&&(L=-1*Y.width*72/L/this.internal.scaleFactor),j<0&&(j=-1*Y.height*72/j/this.internal.scaleFactor),L===0&&(L=j*Y.width/Y.height),j===0&&(j=L*Y.height/Y.width),[L,j]},_=function(L,j,Y,q,se,oe){var ue=w.call(this,Y,q,se),U=this.internal.getCoordinateString,te=this.internal.getVerticalCoordinateString,fe=c.call(this);if(Y=ue[0],q=ue[1],fe[se.index]=se,oe){oe*=Math.PI/180;var ae=Math.cos(oe),P=Math.sin(oe),B=function(Z){return Z.toFixed(4)},Q=[B(ae),B(P),B(-1*P),B(ae),0,0,"cm"]}this.internal.write("q"),oe?(this.internal.write([1,"0","0",1,U(L),te(j+q),"cm"].join(" ")),this.internal.write(Q.join(" ")),this.internal.write([U(Y),"0","0",U(q),"0","0","cm"].join(" "))):this.internal.write([U(Y),"0","0",U(q),U(L),te(j+q),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+se.index+" Do"),this.internal.write("Q")},v=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var x=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},A=e.__addimage__.sHashCode=function(L){var j,Y,q=0;if(typeof L=="string")for(Y=L.length,j=0;j<Y;j++)q=(q<<5)-q+L.charCodeAt(j),q|=0;else if($(L))for(Y=L.byteLength/2,j=0;j<Y;j++)q=(q<<5)-q+L[j],q|=0;return q},N=e.__addimage__.validateStringAsBase64=function(L){(L=L||"").toString().trim();var j=!0;return L.length===0&&(j=!1),L.length%4!=0&&(j=!1),/^[A-Za-z0-9+/]+$/.test(L.substr(0,L.length-2))===!1&&(j=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(L.substr(-2))===!1&&(j=!1),j},I=e.__addimage__.extractImageFromDataUrl=function(L){if(L==null||!(L=L.trim()).startsWith("data:"))return null;var j=L.indexOf(",");return j<0?null:L.substring(0,j).trim().endsWith("base64")?L.substring(j+1):null};e.__addimage__.isArrayBuffer=function(L){return L instanceof ArrayBuffer};var $=e.__addimage__.isArrayBufferView=function(L){return L instanceof Int8Array||L instanceof Uint8Array||L instanceof Uint8ClampedArray||L instanceof Int16Array||L instanceof Uint16Array||L instanceof Int32Array||L instanceof Uint32Array||L instanceof Float32Array||L instanceof Float64Array},K=e.__addimage__.binaryStringToUint8Array=function(L){for(var j=L.length,Y=new Uint8Array(j),q=0;q<j;q++)Y[q]=L.charCodeAt(q);return Y},M=e.__addimage__.arrayBufferToBinaryString=function(L){for(var j="",Y=$(L)?L:new Uint8Array(L),q=0;q<Y.length;q+=8192)j+=String.fromCharCode.apply(null,Y.subarray(q,q+8192));return j};e.addImage=function(){var L,j,Y,q,se,oe,ue,U,te;if(typeof arguments[1]=="number"?(j=n,Y=arguments[1],q=arguments[2],se=arguments[3],oe=arguments[4],ue=arguments[5],U=arguments[6],te=arguments[7]):(j=arguments[1],Y=arguments[2],q=arguments[3],se=arguments[4],oe=arguments[5],ue=arguments[6],U=arguments[7],te=arguments[8]),Ht(L=arguments[0])==="object"&&!p(L)&&"imageData"in L){var fe=L;L=fe.imageData,j=fe.format||j||n,Y=fe.x||Y||0,q=fe.y||q||0,se=fe.w||fe.width||se,oe=fe.h||fe.height||oe,ue=fe.alias||ue,U=fe.compression||U,te=fe.rotation||fe.angle||te}var ae=this.internal.getFilters();if(U===void 0&&ae.indexOf("FlateEncode")!==-1&&(U="SLOW"),isNaN(Y)||isNaN(q))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var P=D.call(this,L,j,ue,U);return _.call(this,Y,q,se,oe,P,te),this};var D=function(L,j,Y,q){var se,oe,ue;if(typeof L=="string"&&i(L)===n){L=unescape(L);var U=X(L,!1);(U!==""||(U=e.loadFile(L,!0))!==void 0)&&(L=U)}if(p(L)&&(L=h(L,j)),j=i(L,j),!g(j))throw new Error("addImage does not support files of type '"+j+"', please ensure that a plugin for '"+j+"' support is added.");if(((ue=Y)==null||ue.length===0)&&(Y=function(te){return typeof te=="string"||$(te)?A(te):$(te.data)?A(te.data):null}(L)),(se=b.call(this,Y))||(L instanceof Uint8Array||j==="RGBA"||(oe=L,L=K(L)),se=this["process"+j.toUpperCase()](L,d.call(this),Y,function(te){return te&&typeof te=="string"&&(te=te.toUpperCase()),te in e.image_compression?te:x.NONE}(q),oe)),!se)throw new Error("An unknown error occurred whilst processing the image.");return se},X=e.__addimage__.convertBase64ToBinaryString=function(L,j){j=typeof j!="boolean"||j;var Y,q="";if(typeof L=="string"){var se;Y=(se=I(L))!==null&&se!==void 0?se:L;try{q=cp(Y)}catch(oe){if(j)throw N(Y)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+oe.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return q};e.getImageProperties=function(L){var j,Y,q="";if(p(L)&&(L=h(L)),typeof L=="string"&&i(L)===n&&((q=X(L,!1))===""&&(q=e.loadFile(L)||""),L=q),Y=i(L),!g(Y))throw new Error("addImage does not support files of type '"+Y+"', please ensure that a plugin for '"+Y+"' support is added.");if(L instanceof Uint8Array||(L=K(L)),!(j=this["process"+Y.toUpperCase()](L)))throw new Error("An unknown error occurred whilst processing the image");return j.fileType=Y,j}})(Xe.API),function(e){var t=function(n){if(n!==void 0&&n!="")return!0};Xe.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(n){for(var r,i,s,o=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(n.objId),c=n.pageContext.annotations,d=!1,g=0;g<c.length&&!d;g++)switch((r=c[g]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(d=!0);break;case"reference":case"text":case"freetext":d=!0}if(d!=0){this.internal.write("/Annots [");for(var p=0;p<c.length;p++){r=c[p];var h=this.internal.pdfEscape,b=this.internal.getEncryptor(n.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var w=this.internal.newAdditionalObject(),_=this.internal.newAdditionalObject(),v=this.internal.getEncryptor(w.objId),x=r.title||"Note";s="<</Type /Annot /Subtype /Text "+(i="/Rect ["+o(r.bounds.x)+" "+a(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y)+"] ")+"/Contents ("+h(v(r.contents))+")",s+=" /Popup "+_.objId+" 0 R",s+=" /P "+l.objId+" 0 R",s+=" /T ("+h(v(x))+") >>",w.content=s;var A=w.objId+" 0 R";s="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+o(r.bounds.x+30)+" "+a(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w+30)+" "+a(r.bounds.y)+"] ")+" /Parent "+A,r.open&&(s+=" /Open true"),s+=" >>",_.content=s,this.internal.write(w.objId,"0 R",_.objId,"0 R");break;case"freetext":i="/Rect ["+o(r.bounds.x)+" "+a(r.bounds.y)+" "+o(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y+r.bounds.h)+"] ";var N="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(r.color||"#000000");s="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+h(b(r.contents))+")",s+=" /DS("+h(b(N))+")",s+=" /Border [0 0 0]",s+=" >>",this.internal.write(s);break;case"link":if(r.options.name){var I=this.annotations._nameMap[r.options.name];r.options.pageNumber=I.page,r.options.top=I.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",s="",r.options.url)s="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+h(b(r.options.url))+") >>";else if(r.options.pageNumber)switch(s="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":s+=" /Fit]";break;case"FitH":s+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,s+=" /FitV "+r.options.left+"]";break;default:var $=a(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),s+=" /XYZ "+r.options.left+" "+$+" "+r.options.zoom+"]"}s!=""&&(s+=" >>",this.internal.write(s))}}this.internal.write("]")}}]),e.createAnnotation=function(n){var r=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":r.pageContext.annotations.push(n)}},e.link=function(n,r,i,s,o){var a=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:l(n),y:c(r),w:l(n+i),h:c(r+s)},options:o,type:"link"})},e.textWithLink=function(n,r,i,s){var o,a,l=this.getTextWidth(n),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(s.maxWidth!==void 0){a=s.maxWidth;var d=this.splitTextToSize(n,a).length;o=Math.ceil(c*d)}else a=l,o=c;return this.text(n,r,i,s),i+=.2*c,s.align==="center"&&(r-=l/2),s.align==="right"&&(r-=l),this.link(r,i-c,a,o,s),l},e.getTextWidth=function(n){var r=this.internal.getFontSize();return this.getStringUnitWidth(n)*r/this.internal.scaleFactor}}(Xe.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var s=e.__arabicParser__.isInArabicSubstitutionA=function(w){return t[w.charCodeAt(0)]!==void 0},o=e.__arabicParser__.isArabicLetter=function(w){return typeof w=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(w)},a=e.__arabicParser__.isArabicEndLetter=function(w){return o(w)&&s(w)&&t[w.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(w){return o(w)&&i.indexOf(w.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(w){return o(w)&&s(w)&&t[w.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(w){return o(w)&&s(w)&&t[w.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(w){return o(w)&&s(w)&&t[w.charCodeAt(0)].length>=3};var d=e.__arabicParser__.arabicLetterHasMedialForm=function(w){return o(w)&&s(w)&&t[w.charCodeAt(0)].length==4},g=e.__arabicParser__.resolveLigatures=function(w){var _=0,v=n,x="",A=0;for(_=0;_<w.length;_+=1)v[w.charCodeAt(_)]!==void 0?(A++,typeof(v=v[w.charCodeAt(_)])=="number"&&(x+=String.fromCharCode(v),v=n,A=0),_===w.length-1&&(v=n,x+=w.charAt(_-(A-1)),_-=A-1,A=0)):(v=n,x+=w.charAt(_-A),_-=A,A=0);return x};e.__arabicParser__.isArabicDiacritic=function(w){return w!==void 0&&r[w.charCodeAt(0)]!==void 0};var p=e.__arabicParser__.getCorrectForm=function(w,_,v){return o(w)?s(w)===!1?-1:!c(w)||!o(_)&&!o(v)||!o(v)&&a(_)||a(w)&&!o(_)||a(w)&&l(_)||a(w)&&a(_)?0:d(w)&&o(_)&&!a(_)&&o(v)&&c(v)?3:a(w)||!o(v)?1:2:-1},h=function(w){var _=0,v=0,x=0,A="",N="",I="",$=(w=w||"").split("\\s+"),K=[];for(_=0;_<$.length;_+=1){for(K.push(""),v=0;v<$[_].length;v+=1)A=$[_][v],N=$[_][v-1],I=$[_][v+1],o(A)?(x=p(A,N,I),K[_]+=x!==-1?String.fromCharCode(t[A.charCodeAt(0)][x]):A):K[_]+=A;K[_]=g(K[_])}return K.join(" ")},b=e.__arabicParser__.processArabic=e.processArabic=function(){var w,_=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,v=[];if(Array.isArray(_)){var x=0;for(v=[],x=0;x<_.length;x+=1)Array.isArray(_[x])?v.push([h(_[x][0]),_[x][1],_[x][2]]):v.push([h(_[x])]);w=v}else w=h(_);return typeof arguments[0]=="string"?w:(arguments[0].text=w,arguments[0])};e.events.push(["preProcessText",b])}(Xe.API),Xe.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})),this},function(e){var t=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(a){n=a}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(a){r=isNaN(a)||Number.isInteger(a)===!1||a<0?150:a,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(a){i=isNaN(a)||Number.isInteger(a)===!1||a<0?300:a,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var s=[];Object.defineProperty(this,"childNodes",{get:function(){return s},set:function(a){s=a}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(a){o=a}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(n,r){var i;if((n=n||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(Xe.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(w){l=w}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(w){c=w}});var d=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return d},set:function(w){d=w}});var g=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return g},set:function(w){g=w}});var p=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return p},set:function(w){p=w}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(w){h=w}});var b=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return b},set:function(w){b=w}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return r.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,c){r.call(this);var d=(c=c||{}).fontSize||this.getFontSize(),g=c.font||this.getFont(),p=c.scaleFactor||this.internal.scaleFactor,h=0,b=0,w=0,_=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type Str
243ing or type Number or an Array of Strings.");l=String(l)}var v=c.maxWidth;v>0?typeof l=="string"?l=this.splitTextToSize(l,v):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(A,N){return A.concat(_.splitTextToSize(N,v))},[])):l=Array.isArray(l)?l:[l];for(var x=0;x<l.length;x++)h<(w=this.getStringUnitWidth(l[x],{font:g})*d)&&(h=w);return h!==0&&(b=l.length),{w:h/=p,h:Math.max((b*d*this.getLineHeightFactor()-d*(this.getLineHeightFactor()-1))/p,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new s(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=e.cell=function(){var l;l=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var c=this.internal.__cell__.lastCell,d=this.internal.__cell__.padding,g=this.internal.__cell__.margins||t,p=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+g.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=g.top,h&&p&&(this.printHeaderRow(l.lineNumber,!0),l.y+=p[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,n===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-d,l.y+d,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+d,{align:"center",baseline:"top",maxWidth:l.width-d-d}):this.text(l.text,l.x+d,l.y+d,{align:"left",baseline:"top",maxWidth:l.width-d-d})),this.internal.__cell__.lastCell=l,this};e.table=function(l,c,d,g,p){if(r.call(this),!d)throw new Error("No data for PDF table.");var h,b,w,_,v=[],x=[],A=[],N={},I={},$=[],K=[],M=(p=p||{}).autoSize||!1,D=p.printHeaders!==!1,X=p.css&&p.css["font-size"]!==void 0?16*p.css["font-size"]:p.fontSize||12,L=p.margins||Object.assign({width:this.getPageWidth()},t),j=typeof p.padding=="number"?p.padding:3,Y=p.headerBackgroundColor||"#c8c8c8",q=p.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=D,this.internal.__cell__.margins=L,this.internal.__cell__.table_font_size=X,this.internal.__cell__.padding=j,this.internal.__cell__.headerBackgroundColor=Y,this.internal.__cell__.headerTextColor=q,this.setFontSize(X),g==null)x=v=Object.keys(d[0]),A=v.map(function(){return"left"});else if(Array.isArray(g)&&Ht(g[0])==="object")for(v=g.map(function(fe){return fe.name}),x=g.map(function(fe){return fe.prompt||fe.name||""}),A=g.map(function(fe){return fe.align||"left"}),h=0;h<g.length;h+=1)I[g[h].name]=.7499990551181103*g[h].width;else Array.isArray(g)&&typeof g[0]=="string"&&(x=v=g,A=v.map(function(){return"left"}));if(M||Array.isArray(g)&&typeof g[0]=="string")for(h=0;h<v.length;h+=1){for(N[_=v[h]]=d.map(function(fe){return fe[_]}),this.setFont(void 0,"bold"),$.push(this.getTextDimensions(x[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),b=N[_],this.setFont(void 0,"normal"),w=0;w<b.length;w+=1)$.push(this.getTextDimensions(b[w],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);I[_]=Math.max.apply(null,$)+j+j,$=[]}if(D){var se={};for(h=0;h<v.length;h+=1)se[v[h]]={},se[v[h]].text=x[h],se[v[h]].align=A[h];var oe=a.call(this,se,I);K=v.map(function(fe){return new s(l,c,I[fe],oe,se[fe].text,void 0,se[fe].align)}),this.setTableHeaderRow(K),this.printHeaderRow(1,!1)}var ue=g.reduce(function(fe,ae){return fe[ae.name]=ae.align,fe},{});for(h=0;h<d.length;
vendor: 9,861 bytes, lines 243-267
243h+=1){"rowStart"in p&&p.rowStart instanceof Function&&p.rowStart({row:h,data:d[h]},this);var U=a.call(this,d[h],I);for(w=0;w<v.length;w+=1){var te=d[h][v[w]];"cellStart"in p&&p.cellStart instanceof Function&&p.cellStart({row:h,col:w,data:te},this),o.call(this,new s(l,c,I[v[w]],U,te,h+2,ue[v[w]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var a=function(l,c){var d=this.internal.__cell__.padding,g=this.internal.__cell__.table_font_size,p=this.internal.scaleFactor;return Object.keys(l).map(function(h){var b=l[h];return this.splitTextToSize(b.hasOwnProperty("text")?b.text:b,c[h]-d-d)},this).map(function(h){return this.getLineHeightFactor()*h.length*g/p+d+d},this).reduce(function(h,b){return Math.max(h,b)},0)};e.setTableHeaderRow=function(l){r.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,c){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var d;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var g=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(g[0],g[1],g[2],g[3],void 0,-1)}this.setFont(void 0,"bold");for(var p=[],h=0;h<this.internal.__cell__.tableHeaderRow.length;h+=1){d=this.internal.__cell__.tableHeaderRow[h].clone(),c&&(d.y=this.internal.__cell__.margins.top||0,p.push(d)),d.lineNumber=l;var b=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,d),this.setTextColor(b)}p.length>0&&this.setTableHeaderRow(p),this.setFont(void 0,"normal"),n=!1}}(Xe.API);var QS={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},YS=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],yv=KS(YS),XS=[100,200,300,400,500,600,700,800,900],qO=KS(XS);function Om(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(s){return QS[s=s||"normal"]?s:"normal"}(e.style),r=function(s){return s?typeof s=="number"?s>=100&&s<=900&&s%100==0?s:400:/^\d00$/.test(s)?parseInt(s):s==="bold"?700:400:400}(e.weight),i=function(s){return typeof yv[s=s||"normal"]=="number"?s:"normal"}(e.stretch);return{family:t,style:n,weight:r,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,n,r].join(" ")}}}function zb(e,t,n,r){var i;for(i=n;i>=0&&i<t.length;i+=r)if(e[t[i]])return e[t[i]];for(i=n;i>=0&&i<t.length;i-=r)if(e[t[i]])return e[t[i]]}var HO={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},qb={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Hb(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Wb(e){return e.trimLeft()}function WO(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function VO(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var tc,Mf,Vb,Gb,$b,Im=["times"];function Kb(e,t,n,r,i){var s=4,o=Yb;switch(i){case Xe.API.image_compression.FAST:s=1,o=Qb;break;case Xe.API.image_compression.MEDIUM:s=6,o=Xb;break;case Xe.API.image_compression.SLOW:s=9,o=Jb}e=function(l,c,d,g){for(var p,h=l.length/c,b=new Uint8Array(l.length+h),w=[GO,Qb,Yb,Xb,Jb],_=0;_<h;_+=1){var v=_*c,x=l.subarray(v,v+c);if(g)b.set(g(x,d,p),v+_);else{for(var A=w.length,N=[],I=0;I<A;I+=1)N[I]=w[I](x,d,p);var $=KO(N.concat());b.set(N[$],v+_)}p=x}return b}(e,t,Math.ceil(n*r/8),o);var a=sv(e,{level:s});return Xe.API.__addimage__.arrayBufferToBinaryString(a)}function GO(e){var t=Array.apply([],e);return t.unshift(0),t}function Qb(e,t){var n=e.length,r=[];r[0]=1;for(var i=0;i<n;i+=1){var s=e[i-t]||0;r[i+1]=e[i]-s+256&255}return r}function Yb(e,t,n){var r=e.length,i=[];i[0]=2;for(var s=0;s<r;s+=1){var o=n&&n[s]||0;i[s+1]=e[s]-o+256&255}return i}function Xb(e,t,n){var r=e.length,i=[];i[0]=3;for(var s=0;s<r;s+=1){var o=e[s-t]||0,a=n&&n[s]||0;i[s+1]=e[s]+256-(o+a>>>1)&255}return i}function Jb(e,t,n){var r=e.length,i=[];i[0]=4;for(var s=0;s<r;s+=1){var o=$O(e[s-t]||0,n&&n[s]||0,n&&n[s-t]||0);i[s+1]=e[s]-o+256&255}return i}function $O(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),i=Math.abs(e-n),s=Math.abs(e+t-n-n);return r<=i&&r<=s?e:i<=s?t:n}function KO(e){var t=e.map(function(n){return n.reduce(function(r,i){return r+Math.abs(i)},0)});return t.indexOf(Math.min.apply(null,t))}function Dm(e,t,n){var r=t*n,i=Math.floor(r/8),s=16-(r-8*i+n),o=(1<<n)-1;return JS(e,i)>>s&o}function Zb(e,t,n,r){var i=n*r,s=Math.floor(i/8),o=16-(i-8*s+r),a=(1<<r)-1,l=(t&a)<<o;(function(c,d,g){if(d+1<c.byteLength)c.setUint16(d,g,!1);else{var p=g>>8&255;c.setUint8(d,p)}})(e,s,JS(e,s)&~(a<<o)&65535|l)}function JS(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function QO(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],s=i>>7,o=1<<1+(7&i);e[t++],e[t++];var a=null,l=null;s&&(a=t,l=o,t+=3*o);var c=!0,d=[],g=0,p=null,h=0,b=null;for(this.width=n,this.height=r;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,b=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((L=e[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var w=e[t++];g=e[t++]|e[t++]<<8,p=e[t++],1&w||(p=null),h=w>>2&7,t++;break;case 254:for(;;){if(!((L=e[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var _=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,x=e[t++]|e[t++]<<8,A=e[t++]|e[t++]<<8,N=e[t++],I=N>>6&1,$=1<<1+(7&N),K=a,M=l,D=!1;N>>7&&(D=!0,K=t,M=$,t+=3*$);var X=t;for(t++;;){var L;if(!((L=e[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}d.push({x:_,y:v,width:x,height:A,has_local_palette:D,palette_offset:K,palette_size:M,data_offset:X,data_length:t-X,transparent_index:p,interlaced:!!I,delay:g,disposal:h});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return b},this.frameInfo=function(j){if(j<0||j>=d.length)throw new Error("Frame index out of range.");return d[j]},this.decodeAndBlitFrameBGRA=function(j,Y){var q=this.frameInfo(j),se=q.width*q.height;if(se>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var oe=new Uint8Array(se);ex(e,q.data_offset,oe,se);var ue=q.palette_offset,U=q.transparent_index;U===null&&(U=256);var te=q.width,fe=n-te,ae=te,P=4*(q.y*n+q.x),B=4*((q.y+q.height)*n+q.x),Q=P,Z=4*fe;q.interlaced===!0&&(Z+=4*n*7);for(var ee=8,le=0,pe=oe.length;le<pe;++le){var ge=oe[le];if(ae===0&&(ae=te,(Q+=Z)>=B&&(Z=4*fe+4*n*(ee-1),Q=P+(te+fe)*(ee<<1),ee>>=1)),ge===U)Q+=4;else{var ye=e[ue+3*ge],ke=e[ue+3*ge+1],Re=e[ue+3*ge+2];Y[Q++]=Re,Y[Q++]=ke,Y[Q++]=ye,Y[Q++]=255}--ae}},this.decodeAndBlitFrameRGBA=function(j,Y){var q=this.frameInfo(j),se=q.width*q.height;if(se>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var oe=new Uint8Array(se);ex(e,q.data_offset,oe,se);var ue=q.palette_offset,U=q.transparent_index;U===null&&(U=256);var te=q.width,fe=n-te,ae=te,P=4*(q.y*n+q.x),B=4*((q.y+q.height)*n+q.x),Q=P,Z=4*fe;q.interlaced===!0&&(Z+=4*n*7);for(var ee=8,le=0,pe=oe.length;le<pe;++le){var ge=oe[le];if(ae===0&&(ae=te,(Q+=Z)>=B&&(Z=4*fe+4*n*(ee-1),Q=P+(te+fe)*(ee<<1),ee>>=1)),ge===U)Q+=4;else{var ye=e[ue+3*ge],ke=e[ue+3*ge+1],Re=e[ue+3*ge+2];Y[Q++]=ye,Y[Q++]=ke,Y[Q++]=Re,Y[Q++]=255}--ae}}}function ex(e,t,n,r){for(var i=e[t++],s=1<<i,o=s+1,a=o+1,l=i+1,c=(1<<l)-1,d=0,g=0,p=0,h=e[t++],b=new Int32Array(4096),w=null;;){for(;d<16&&h!==0;)g|=e[t++]<<d,d+=8,h===1?h=e[t++]:--h;if(d<l)break;var _=g&c;if(g>>=l,d-=l,_!==s){if(_===o)break;for(var v=_<a?_:w,x=0,A=v;A>s;)A=b[A]>>8,++x;var N=A;if(p+x+(v!==_?1:0)>r)return void Kt.log("Warning, gif stream longer than expected.");n[p++]=N;var I=p+=x;for(v!==_&&(n[p++]=N),A=v;x--;)A=b[A],n[--I]=255&A,A>>=8;w!==null&&a<4096&&(b[a++]=w<<8|N,a>=c+1&&l<12&&(++l,c=c<<1|1)),w=_}else a=o+1,c=(1<<(l=i+1))-1,w=null}return p!==r&&Kt.log("Warning, gif stream shorter than expected."),n}/**
244 * @license
245  Copyright (c) 2008, Adobe Systems Incorporated
246  All rights reserved.
247
248  Redistribution and use in source and binary forms, with or without 
249  modification, are permitted provided that the following conditions are
250  met:
251
252  * Redistributions of source code must retain the above copyright notice, 
253    this list of conditions and the following disclaimer.
254  
255  * Redistributions in binary form must reproduce the above copyright
256    notice, this list of conditions and the following disclaimer in the 
257    documentation and/or other materials provided with the distribution.
258  
259  * Neither the name of Adobe Systems Incorporated nor the names of its 
260    contributors may be used to endorse or promote products derived from 
261    this software without specific prior written permission.
262
263  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
264  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
265  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
266  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
267  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
vendor: 5,851 bytes, lines 268-274
268  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
269  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
270  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
271  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
272  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
273  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
274*/function Fm(e){var t,n,r,i,s,o=Math.floor,a=new Array(64),l=new Array(64),c=new Array(64),d=new Array(64),g=new Array(65535),p=new Array(65535),h=new Array(64),b=new Array(64),w=[],_=0,v=7,x=new Array(64),A=new Array(64),N=new Array(64),I=new Array(256),$=new Array(2048),K=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],M=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],D=[0,1,2,3,4,5,6,7,8,9,10,11],X=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],L=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],j=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Y=[0,1,2,3,4,5,6,7,8,9,10,11],q=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],se=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function oe(P,B){for(var Q=0,Z=0,ee=new Array,le=1;le<=16;le++){for(var pe=1;pe<=P[le];pe++)ee[B[Z]]=[],ee[B[Z]][0]=Q,ee[B[Z]][1]=le,Z++,Q++;Q*=2}return ee}function ue(P){for(var B=P[0],Q=P[1]-1;Q>=0;)B&1<<Q&&(_|=1<<v),Q--,--v<0&&(_==255?(U(255),U(0)):U(_),v=7,_=0)}function U(P){w.push(P)}function te(P){U(P>>8&255),U(255&P)}function fe(P,B,Q,Z,ee){for(var le,pe=ee[0],ge=ee[240],ye=function(xe,Qe){var De,nt,$e,Dt,At,at,vt,St,Fe,ut,Ke=0;for(Fe=0;Fe<8;++Fe){De=xe[Ke],nt=xe[Ke+1],$e=xe[Ke+2],Dt=xe[Ke+3],At=xe[Ke+4],at=xe[Ke+5],vt=xe[Ke+6];var an=De+(St=xe[Ke+7]),Nt=De-St,yt=nt+vt,pt=nt-vt,Rt=$e+at,Ze=$e-at,Ie=Dt+At,je=Dt-At,Oe=an+Ie,Et=an-Ie,ot=yt+Rt,et=yt-Rt;xe[Ke]=Oe+ot,xe[Ke+4]=Oe-ot;var Ft=.707106781*(et+Et);xe[Ke+2]=Et+Ft,xe[Ke+6]=Et-Ft;var Ea=.382683433*((Oe=je+Ze)-(et=pt+Nt)),sr=.5411961*Oe+Ea,Ds=1.306562965*et+Ea,ss=.707106781*(ot=Ze+pt),st=Nt+ss,Fs=Nt-ss;xe[Ke+5]=Fs+sr,xe[Ke+3]=Fs-sr,xe[Ke+1]=st+Ds,xe[Ke+7]=st-Ds,Ke+=8}for(Ke=0,Fe=0;Fe<8;++Fe){De=xe[Ke],nt=xe[Ke+8],$e=xe[Ke+16],Dt=xe[Ke+24],At=xe[Ke+32],at=xe[Ke+40],vt=xe[Ke+48];var Ms=De+(St=xe[Ke+56]),mi=De-St,vi=nt+vt,gn=nt-vt,Hn=$e+at,Kn=$e-at,Ca=Dt+At,wo=Dt-At,Ii=Ms+Ca,os=Ms-Ca,Di=vi+Hn,Fi=vi-Hn;xe[Ke]=Ii+Di,xe[Ke+32]=Ii-Di;var yi=.707106781*(Fi+os);xe[Ke+16]=os+yi,xe[Ke+48]=os-yi;var Pa=.382683433*((Ii=wo+Kn)-(Fi=gn+mi)),as=.5411961*Ii+Pa,La=1.306562965*Fi+Pa,Pl=.707106781*(Di=Kn+gn),Ll=mi+Pl,Tl=mi-Pl;xe[Ke+40]=Tl+as,xe[Ke+24]=Tl-as,xe[Ke+8]=Ll+La,xe[Ke+56]=Ll-La,Ke++}for(Fe=0;Fe<64;++Fe)ut=xe[Fe]*Qe[Fe],h[Fe]=ut>0?ut+.5|0:ut-.5|0;return h}(P,B),ke=0;ke<64;++ke)b[K[ke]]=ye[ke];var Re=b[0]-Q;Q=b[0],Re==0?ue(Z[0]):(ue(Z[p[le=32767+Re]]),ue(g[le]));for(var Le=63;Le>0&&b[Le]==0;)Le--;if(Le==0)return ue(pe),Q;for(var We,z=1;z<=Le;){for(var Ce=z;b[z]==0&&z<=Le;)++z;var ht=z-Ce;if(ht>=16){We=ht>>4;for(var Je=1;Je<=We;++Je)ue(ge);ht&=15}le=32767+b[z],ue(ee[(ht<<4)+p[le]]),ue(g[le]),z++}return Le!=63&&ue(pe),Q}function ae(P){P=Math.min(Math.max(P,1),100),s!=P&&(function(B){for(var Q=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Z=0;Z<64;Z++){var ee=o((Q[Z]*B+50)/100);ee=Math.min(Math.max(ee,1),255),a[K[Z]]=ee}for(var le=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],pe=0;pe<64;pe++){var ge=o((le[pe]*B+50)/100);ge=Math.min(Math.max(ge,1),255),l[K[pe]]=ge}for(var ye=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],ke=0,Re=0;Re<8;Re++)for(var Le=0;Le<8;Le++)c[ke]=1/(a[K[ke]]*ye[Re]*ye[Le]*8),d[ke]=1/(l[K[ke]]*ye[Re]*ye[Le]*8),ke++}(P<50?Math.floor(5e3/P):Math.floor(200-2*P)),s=P)}this.encode=function(P,B){B&&ae(B),w=new Array,_=0,v=7,te(65496),te(65504),te(16),U(74),U(70),U(73),U(70),U(0),U(1),U(1),U(0),te(1),te(1),U(0),U(0),function(){te(65499),te(132),U(0);for(var nt=0;nt<64;nt++)U(a[nt]);U(1);for(var $e=0;$e<64;$e++)U(l[$e])}(),function(nt,$e){te(65472),te(17),U(8),te($e),te(nt),U(3),U(1),U(17),U(0),U(2),U(17),U(1),U(3),U(17),U(1)}(P.width,P.height),function(){te(65476),te(418),U(0);for(var nt=0;nt<16;nt++)U(M[nt+1]);for(var $e=0;$e<=11;$e++)U(D[$e]);U(16);for(var Dt=0;Dt<16;Dt++)U(X[Dt+1]);for(var At=0;At<=161;At++)U(L[At]);U(1);for(var at=0;at<16;at++)U(j[at+1]);for(var vt=0;vt<=11;vt++)U(Y[vt]);U(17);for(var St=0;St<16;St++)U(q[St+1]);for(var Fe=0;Fe<=161;Fe++)U(se[Fe])}(),te(65498),te(12),U(3),U(1),U(0),U(2),U(17),U(3),U(17),U(0),U(63),U(0);var Q=0,Z=0,ee=0;
vendor: 44,488 bytes, lines 274-280
274_=0,v=7,this.encode.displayName="_encode_";for(var le,pe,ge,ye,ke,Re,Le,We,z,Ce=P.data,ht=P.width,Je=P.height,xe=4*ht,Qe=0;Qe<Je;){for(le=0;le<xe;){for(ke=xe*Qe+le,Le=-1,We=0,z=0;z<64;z++)Re=ke+(We=z>>3)*xe+(Le=4*(7&z)),Qe+We>=Je&&(Re-=xe*(Qe+1+We-Je)),le+Le>=xe&&(Re-=le+Le-xe+4),pe=Ce[Re++],ge=Ce[Re++],ye=Ce[Re++],x[z]=($[pe]+$[ge+256|0]+$[ye+512|0]>>16)-128,A[z]=($[pe+768|0]+$[ge+1024|0]+$[ye+1280|0]>>16)-128,N[z]=($[pe+1280|0]+$[ge+1536|0]+$[ye+1792|0]>>16)-128;Q=fe(x,c,Q,t,r),Z=fe(A,d,Z,n,i),ee=fe(N,d,ee,n,i),le+=32}Qe+=8}if(v>=0){var De=[];De[1]=v+1,De[0]=(1<<v+1)-1,ue(De)}return te(65497),new Uint8Array(w)},e=e||50,function(){for(var P=String.fromCharCode,B=0;B<256;B++)I[B]=P(B)}(),t=oe(M,D),n=oe(j,Y),r=oe(X,L),i=oe(q,se),function(){for(var P=1,B=2,Q=1;Q<=15;Q++){for(var Z=P;Z<B;Z++)p[32767+Z]=Q,g[32767+Z]=[],g[32767+Z][1]=Q,g[32767+Z][0]=Z;for(var ee=-(B-1);ee<=-P;ee++)p[32767+ee]=Q,g[32767+ee]=[],g[32767+ee][1]=Q,g[32767+ee][0]=B-1+ee;P<<=1,B<<=1}}(),function(){for(var P=0;P<256;P++)$[P]=19595*P,$[P+256|0]=38470*P,$[P+512|0]=7471*P+32768,$[P+768|0]=-11059*P,$[P+1024|0]=-21709*P,$[P+1280|0]=32768*P+8421375,$[P+1536|0]=-27439*P,$[P+1792|0]=-5329*P}(),ae(e)}/**
275 * @license
276 * Copyright (c) 2017 Aras Abbasi
277 *
278 * Licensed under the MIT License.
279 * http://opensource.org/licenses/mit-license
280 */function Hi(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function tx(e){function t(D){if(!D)throw Error("assert :P")}function n(D,X,L){for(var j=0;4>j;j++)if(D[X+j]!=L.charCodeAt(j))return!0;return!1}function r(D,X,L,j,Y){for(var q=0;q<Y;q++)D[X+q]=L[j+q]}function i(D,X,L,j){for(var Y=0;Y<j;Y++)D[X+Y]=L}function s(D){return new Int32Array(D)}function o(D,X){for(var L=[],j=0;j<D;j++)L.push(new X);return L}function a(D,X){var L=[];return function j(Y,q,se){for(var oe=se[q],ue=0;ue<oe&&(Y.push(se.length>q+1?[]:new X),!(se.length<q+1));ue++)j(Y[ue],q+1,se)}(L,0,D),L}var l=function(){var D=this;function X(u,f){for(var y=1<<f-1>>>0;u&y;)y>>>=1;return y?(u&y-1)+y:u}function L(u,f,y,S,C){t(!(S%y));do u[f+(S-=y)]=C;while(0<S)}function j(u,f,y,S,C){if(t(2328>=C),512>=C)var T=s(512);else if((T=s(C))==null)return 0;return function(R,O,F,V,ne,he){var G,re,ce=O,ve=1<<F,de=s(16),we=s(16);for(t(ne!=0),t(V!=null),t(R!=null),t(0<F),re=0;re<ne;++re){if(15<V[re])return 0;++de[V[re]]}if(de[0]==ne)return 0;for(we[1]=0,G=1;15>G;++G){if(de[G]>1<<G)return 0;we[G+1]=we[G]+de[G]}for(re=0;re<ne;++re)G=V[re],0<V[re]&&(he[we[G]++]=re);if(we[15]==1)return(V=new Y).g=0,V.value=he[0],L(R,ce,1,ve,V),ve;var be,Ne=-1,Se=ve-1,Ye=0,Be=1,wt=1,Ve=1<<F;for(re=0,G=1,ne=2;G<=F;++G,ne<<=1){if(Be+=wt<<=1,0>(wt-=de[G]))return 0;for(;0<de[G];--de[G])(V=new Y).g=G,V.value=he[re++],L(R,ce+Ye,ne,Ve,V),Ye=X(Ye,G)}for(G=F+1,ne=2;15>=G;++G,ne<<=1){if(Be+=wt<<=1,0>(wt-=de[G]))return 0;for(;0<de[G];--de[G]){if(V=new Y,(Ye&Se)!=Ne){for(ce+=Ve,be=1<<(Ne=G)-F;15>Ne&&!(0>=(be-=de[Ne]));)++Ne,be<<=1;ve+=Ve=1<<(be=Ne-F),R[O+(Ne=Ye&Se)].g=be+F,R[O+Ne].value=ce-O-Ne}V.g=G-F,V.value=he[re++],L(R,ce+(Ye>>F),ne,Ve,V),Ye=X(Ye,G)}}return Be!=2*we[15]-1?0:ve}(u,f,y,S,C,T)}function Y(){this.value=this.g=0}function q(){this.value=this.g=0}function se(){this.G=o(5,Y),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Wl,q)}function oe(u,f,y,S){t(u!=null),t(f!=null),t(2147483648>S),u.Ca=254,u.I=0,u.b=-8,u.Ka=0,u.oa=f,u.pa=y,u.Jd=f,u.Yc=y+S,u.Zc=4<=S?y+S-4+1:y,pe(u)}function ue(u,f){for(var y=0;0<f--;)y|=ye(u,128)<<f;return y}function U(u,f){var y=ue(u,f);return ge(u)?-y:y}function te(u,f,y,S){var C,T=0;for(t(u!=null),t(f!=null),t(4294967288>S),u.Sb=S,u.Ra=0,u.u=0,u.h=0,4<S&&(S=4),C=0;C<S;++C)T+=f[y+C]<<8*C;u.Ra=T,u.bb=S,u.oa=f,u.pa=y}function fe(u){for(;8<=u.u&&u.bb<u.Sb;)u.Ra>>>=8,u.Ra+=u.oa[u.pa+u.bb]<<_r-8>>>0,++u.bb,u.u-=8;Z(u)&&(u.h=1,u.u=0)}function ae(u,f){if(t(0<=f),!u.h&&f<=ju){var y=Q(u)&Ua[f];return u.u+=f,fe(u),y}return u.h=1,u.u=0}function P(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function B(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Q(u){return u.Ra>>>(u.u&_r-1)>>>0}function Z(u){return t(u.bb<=u.Sb),u.h||u.bb==u.Sb&&u.u>_r}function ee(u,f){u.u=f,u.h=Z(u)}function le(u){u.u>=jr&&(t(u.u>=jr),fe(u))}function pe(u){t(u!=null&&u.oa!=null),u.pa<u.Zc?(u.I=(u.oa[u.pa++]|u.I<<8)>>>0,u.b+=8):(t(u!=null&&u.oa!=null),u.pa<u.Yc?(u.b+=8,u.I=u.oa[u.pa++]|u.I<<8):u.Ka?u.b=0:(u.I<<=8,u.b+=8,u.Ka=1))}function ge(u){return ue(u,1)}function ye(u,f){var y=u.Ca;0>u.b&&pe(u);var S=u.b,C=y*f>>>8,T=(u.I>>>S>C)+0;for(T?(y-=C,u.I-=C+1<<S>>>0):y=C+1,S=y,C=0;256<=S;)C+=8,S>>=8;return S=7^C+Vl[S],u.b-=S,u.Ca=(y<<S)-1,T}function ke(u,f,y){u[f+0]=y>>24&255,u[f+1]=y>>16&255,u[f+2]=y>>8&255,u[f+3]=255&y}function Re(u,f){return u[f+0]|u[f+1]<<8}function Le(u,f){return Re(u,f)|u[f+2]<<16}function We(u,f){return Re(u,f)|Re(u,f+2)<<16}function z(u,f){var y=1<<f;return t(u!=null),t(0<f),u.X=s(y),u.X==null?0:(u.Mb=32-f,u.Xa=f,1)}function Ce(u,f){t(u!=null),t(f!=null),t(u.Xa==f.Xa),r(f.X,0,u.X,0,1<<f.Xa)}function ht(){this.X=[],this.Xa=this.Mb=0}function Je(u,f,y,S){t(y!=null),t(S!=null);var C=y[0],T=S[0];return C==0&&(C=(u*T+f/2)/f),T==0&&(T=(f*C+u/2)/u),0>=C||0>=T?0:(y[0]=C,S[0]=T,1)}function xe(u,f){return u+(1<<f)-1>>>f}function Qe(u,f){return((4278255360&u)+(4278255360&f)>>>0&4278255360)+((16711935&u)+(16711935&f)>>>0&16711935)>>>0}function De(u,f){D[f]=function(y,S,C,T,R,O,F){var V;for(V=0;V<R;++V){var ne=D[u](O[F+V-1],C,T+V);O[F+V]=Qe(y[S+V],ne)}}}function nt(){this.ud=this.hd=this.jd=0}function $e(u,f){return((4278124286&(u^f))>>>1)+(u&f)>>>0}function Dt(u){return 0<=u&&256>u?u:0>u?0:255<u?255:void 0}function At(u,f){return Dt(u+(u-f+.5>>1))}function at(u,f,y){return Math.abs(f-y)-Math.abs(u-y)}function vt(u,f,y,S,C,T,R){for(S=T[R-1],y=0;y<C;++y)T[R+y]=S=Qe(u[f+y],S)}function St(u,f,y,S,C){var T;for(T=0;T<y;++T){var R=u[f+T],O=R>>8&255,F=16711935&(F=(F=16711935&R)+((O<<16)+O));S[C+T]=(4278255360&R)+F>>>0}}function Fe(u,f){f.jd=255&u,f.hd=u>>8&255,f.ud=u>>16&255}function ut(u,f,y,S,C,T){var R;for(R=0;R<S;++R){var O=f[y+R],F=O>>>8,V=O,ne=255&(ne=(ne=O>>>16)+((u.jd<<24>>24)*(F<<24>>24)>>>5));V=255&(V=(V+=(u.hd<<24>>24)*(F<<24>>24)>>>5)+((u.ud<<24>>24)*(ne<<24>>24)>>>5)),C[T+R]=(4278255360&O)+(ne<<16)+V}}function Ke(u,f,y,S,C){D[f]=function(T,R,O,F,V,ne,he,G,re){for(F=he;F<G;++F)for(he=0;he<re;++he)V[ne++]=C(O[S(T[R++])])},D[u]=function(T,R,O,F,V,ne,he){var G=8>>T.b,re=T.Ea,ce=T.K[0],ve=T.w;if(8>G)for(T=(1<<T.b)-1,ve=(1<<G)-1;R<O;++R){var de,we=0;for(de=0;de<re;++de)de&T||(we=S(F[V++])),ne[he++]=C(ce[we&ve]),we>>=G}else D["VP8LMapColor"+y](F,V,ce,ve,ne,he,R,O,re)}}function an(u,f,y,S,C){for(y=f+y;f<y;){var T=u[f++];S[C++]=T>>16&255,S[C++]=T>>8&255,S[C++]=255&T}}function Nt(u,f,y,S,C){for(y=f+y;f<y;){var T=u[f++];S[C++]=T>>16&255,S[C++]=T>>8&255,S[C++]=255&T,S[C++]=T>>24&255}}function yt(u,f,y,S,C){for(y=f+y;f<y;){var T=(R=u[f++])>>16&240|R>>12&15,R=240&R|R>>28&15;S[C++]=T,S[C++]=R}}function pt(u,f,y,S,C){for(y=f+y;f<y;){var T=(R=u[f++])>>16&248|R>>13&7,R=R>>5&224|R>>3&31;S[C++]=T,S[C++]=R}}function Rt(u,f,y,S,C){for(y=f+y;f<y;){var T=u[f++];S[C++]=255&T,S[C++]=T>>8&255,S[C++]=T>>16&255}}function Ze(u,f,y,S,C,T){if(T==0)for(y=f+y;f<y;)ke(S,((T=u[f++])[0]>>24|T[1]>>8&65280|T[2]<<8&16711680|T[3]<<24)>>>0),C+=32;else r(S,C,u,f,y)}function Ie(u,f){D[f][0]=D[u+"0"],D[f][1]=D[u+"1"],D[f][2]=D[u+"2"],D[f][3]=D[u+"3"],D[f][4]=D[u+"4"],D[f][5]=D[u+"5"],D[f][6]=D[u+"6"],D[f][7]=D[u+"7"],D[f][8]=D[u+"8"],D[f][9]=D[u+"9"],D[f][10]=D[u+"10"],D[f][11]=D[u+"11"],D[f][12]=D[u+"12"],D[f][13]=D[u+"13"],D[f][14]=D[u+"0"],D[f][15]=D[u+"0"]}function je(u){return u==mg||u==vg||u==Qh||u==yg}function Oe(){this.eb=[],this.size=this.A=this.fb=0}function Et(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ot(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Oe,this.f.kb=new Et,this.sd=null}function et(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Ft(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Ea(u){return alert("todo:WebPSamplerProcessPlane"),u.T}function sr(u,f){var y=u.T,S=f.ba.f.RGBA,C=S.eb,T=S.fb+u.ka*S.A,R=_i[f.ba.S],O=u.y,F=u.O,V=u.f,ne=u.N,he=u.ea,G=u.W,re=f.cc,ce=f.dc,ve=f.Mc,de=f.Nc,we=u.ka,be=u.ka+u.T,Ne=u.U,Se=Ne+1>>1;for(we==0?R(O,F,null,null,V,ne,he,G,V,ne,he,G,C,T,null,null,Ne):(R(f.ec,f.fc,O,F,re,ce,ve,de,V,ne,he,G,C,T-S.A,C,T,Ne),++y);we+2<be;we+=2)re=V,ce=ne,ve=he,de=G,ne+=u.Rc,G+=u.Rc,T+=2*S.A,R(O,(F+=2*u.fa)-u.fa,O,F,re,ce,ve,de,V,ne,he,G,C,T-S.A,C,T,Ne);return F+=u.fa,u.j+be<u.o?(r(f.ec,f.fc,O,F,Ne),r(f.cc,f.dc,V,ne,Se),r(f.Mc,f.Nc,he,G,Se),y--):1&be||R(O,F,null,null,V,ne,he,G,V,ne,he,G,C,T+S.A,null,null,Ne),y}function Ds(u,f,y){var S=u.F,C=[u.J];if(S!=null){var T=u.U,R=f.ba.S,O=R==Kh||R==Qh;f=f.ba.f.RGBA;var F=[0],V=u.ka;F[0]=u.T,u.Kb&&(V==0?--F[0]:(--V,C[0]-=u.width),u.j+u.ka+u.T==u.o&&(F[0]=u.o-u.j-V));var ne=f.eb;V=f.fb+V*f.A,u=dy(S,C[0],u.width,T,F,ne,V+(O?0:3),f.A),t(y==F),u&&je(R)&&Fu(ne,V,O,T,F,f.A)}return 0}function ss(u){var f=u.ma,y=f.ba.S,S=11>y,C=y==Gh||y==$h||y==Kh||y==gg||y==12||je(y);if(f.memory=null,f.Ib=null,f.Jb=null,f.Nd=null,!bi(f.Oa,u,C?11:12))return 0;if(C&&je(y)&&Ws(),u.da)alert("todo:use_scaling");else{if(S){if(f.Ib=Ea,u.Kb){if(y=u.U+1>>1,f.memory=s(u.U+2*y),f.memory==null)return 0;f.ec=f.memory,f.fc=0,f.cc=f.ec,f.dc=f.fc+u.U,f.Mc=f.cc,f.Nc=f.dc+y,f.Ib=sr,Ws()}}else alert("todo:EmitYUV");C&&(f.Jb=Ds,S&&dn())}if(S&&!Cy){for(u=0;256>u;++u)Mk[u]=89858*(u-128)+Xh>>Yh,zk[u]=-22014*(u-128)+Xh,Uk[u]=-45773*(u-128),Bk[u]=113618*(u-128)+Xh>>Yh;for(u=Bu;u<xg;++u)f=76283*(u-16)+Xh>>Yh,qk[u-Bu]=ls(f,255),Hk[u-Bu]=ls(f+8>>4,15);Cy=1}return 1}function st(u){var f=u.ma,y=u.U,S=u.T;return t(!(1&u.ka)),0>=y||0>=S?0:(y=f.Ib(u,f),f.Jb!=null&&f.Jb(u,f,y),f.Dc+=y,1)}function Fs(u){u.ma.memory=null}function Ms(u,f,y,S){return ae(u,8)!=47?0:(f[0]=ae(u,14)+1,y[0]=ae(u,14)+1,S[0]=ae(u,1),ae(u,3)!=0?0:!u.h)}function mi(u,f){if(4>u)return u+1;var y=u-2>>1;return(2+(1&u)<<y)+ae(f,y)+1}function vi(u,f){return 120<f?f-120:1<=(y=((y=Sk[f-1])>>4)*u+(8-(15&y)))?y:1;var y}function gn(u,f,y){var S=Q(y),C=u[f+=255&S].g-8;return 0<C&&(ee(y,y.u+8),S=Q(y),f+=u[f].value,f+=S&(1<<C)-1),ee(y,y.u+u[f].g),u[f].value}function Hn(u,f,y){return y.g+=u.g,y.value+=u.value<<f>>>0,t(8>=y.g),u.g}function Kn(u,f,y){var S=u.xc;return t((f=S==0?0:u.vc[u.md*(y>>S)+(f>>S)])<u.Wb),u.Ya[f]}function Ca(u,f,y,S){var C=u.ab,T=u.c*f,R=u.C;f=R+f;var O=y,F=S;for(S=u.Ta,y=u.Ua;0<C--;){var V=u.gc[C],ne=R,he=f,G=O,re=F,ce=(F=S,O=y,V.Ea);switch(t(ne<he),t(he<=V.nc),V.hc){case 2:Gl(G,re,(he-ne)*ce,F,O);break;case 0:var ve=ne,de=he,we=F,be=O,Ne=(Ve=V).Ea;ve==0&&(So(G,re,null,null,1,we,be),vt(G,re+1,0,0,Ne-1,we,be+1),re+=Ne,be+=Ne,++ve);for(var Se=1<<Ve.b,Ye=Se-1,Be=xe(Ne,Ve.b),wt=Ve.K,Ve=Ve.w+(ve>>Ve.b)*Be;ve<de;){var Ct=wt,Fn=Ve,bt=1;for(ko(G,re,we,be-Ne,1,we,be);bt<Ne;){var Ge=(bt&~Ye)+Se;Ge>Ne&&(Ge=Ne),(0,Mi[Ct[Fn++]>>8&15])(G,re+ +bt,we,be+bt-Ne,Ge-bt,we,be+bt),bt=Ge}re+=Ne,be+=Ne,++ve&Ye||(Ve+=Be)}he!=V.nc&&r(F,O-ce,F,O+(he-ne-1)*ce,ce);break;case 1:for(ce=G,de=re,Ne=(G=V.Ea)-(be=G&~(we=(re=1<<V.b)-1)),ve=xe(G,V.b),Se=V.K,V=V.w+(ne>>V.b)*ve;ne<he;){for(Ye=Se,Be=V,wt=new nt,Ve=de+be,Ct=de+G;de<Ve;)Fe(Ye[Be++],wt),qa(wt,ce,de,re,F,O),de+=re,O+=re;de<Ct&&(Fe(Ye[Be++],wt),qa(wt,ce,de,Ne,F,O),de+=Ne,O+=Ne),++ne&we||(V+=ve)}break;case 3:if(G==F&&re==O&&0<V.b){for(de=F,G=ce=O+(he-ne)*ce-(be=(he-ne)*xe(V.Ea,V.b)),re=F,we=O,ve=[],be=(Ne=be)-1;0<=be;--be)ve[be]=re[we+be];for(be=Ne-1;0<=be;--be)de[G+be]=ve[be];za(V,ne,he,F,ce,F,O)}else za(V,ne,he,G,re,F,O)}O=S,F=y}F!=y&&r(S,y,O,F,T)}function wo(u,f){var y=u.V,S=u.Ba+u.c*u.C,C=f-u.C;if(t(f<=u.l.o),t(16>=C),0<C){var T=u.l,R=u.Ta,O=u.Ua,F=T.width;if(Ca(u,C,y,S),C=O=[O],t((y=u.C)<(S=f)),t(T.v<T.va),S>T.o&&(S=T.o),y<T.j){var V=T.j-y;y=T.j,C[0]+=V*F}if(y>=S?y=0:(C[0]+=4*T.v,T.ka=y-T.j,T.U=T.va-T.v,T.T=S-y,y=1),y){if(O=O[0],11>(y=u.ca).S){var ne=y.f.RGBA,he=(S=y.S,C=T.U,T=T.T,V=ne.eb,ne.A),G=T;for(ne=ne.fb+u.Ma*ne.A;0<G--;){var re=R,ce=O,ve=C,de=V,we=ne;switch(S){case Vh:Ou(re,ce,ve,de,we);break;case Gh:Iu(re,ce,ve,de,we);break;case mg:Iu(re,ce,ve,de,we),Fu(de,we,0,ve,1,0);break;case yy:Wa(re,ce,ve,de,we);break;case $h:Ze(re,ce,ve,de,we,1);break;case vg:Ze(re,ce,ve,de,we,1),Fu(de,we,0,ve,1,0);break;case Kh:Ze(re,ce,ve,de,we,0);break;case Qh:Ze(re,ce,ve,de,we,0),Fu(de,we,1,ve,1,0);break;case gg:$l(re,ce,ve,de,we);break;case yg:$l(re,ce,ve,de,we),uy(de,we,ve,1,0);break;case wy:Ha(re,ce,ve,de,we);break;default:t(0)}O+=F,ne+=he}u.Ma+=T}else alert("todo:EmitRescaledRowsYUVA");t(u.Ma<=y.height)}}u.C=f,t(u.C<=u.i)}function Ii(u){var f;if(0<u.ua)return 0;for(f=0;f<u.Wb;++f){var y=u.Ya[f].G,S=u.Ya[f].H;if(0<y[1][S[1]+0].g||0<y[2][S[2]+0].g||0<y[3][S[3]+0].g)return 0}return 1}function os(u,f,y,S,C,T){if(u.Z!=0){var R=u.qd,O=u.rd;for(t(Po[u.Z]!=null);f<y;++f)Po[u.Z](R,O,S,C,S,C,T),R=S,O=C,C+=T;u.qd=R,u.rd=O}}function Di(u,f){var y=u.l.ma,S=y.Z==0||y.Z==1?u.l.j:u.C;if(S=u.C<S?S:u.C,t(f<=u.l.o),f>S){var C=u.l.width,T=y.ca,R=y.tb+C*S,O=u.V,F=u.Ba+u.c*S,V=u.gc;t(u.ab==1),t(V[0].hc==3),fg(V[0],S,f,O,F,T,R),os(y,S,f,T,R,C)}u.C=u.Ma=f}function Fi(u,f,y,S,C,T,R){var O=u.$/S,F=u.$%S,V=u.m,ne=u.s,he=y+u.$,G=he;C=y+S*C;var re=y+S*T,ce=280+ne.ua,ve=u.Pb?O:16777216,de=0<ne.ua?ne.Wa:null,we=ne.wc,be=he<re?Kn(ne,F,O):null;t(u.C<T),t(re<=C);var Ne=!1;e:for(;;){for(;Ne||he<re;){var Se=0;if(O>=ve){var Ye=he-y;t((ve=u).Pb),ve.wd=ve.m,ve.xd=Ye,0<ve.s.ua&&Ce(ve.s.Wa,ve.s.vb),ve=O+Nk}if(F&we||(be=Kn(ne,F,O)),t(be!=null),be.Qb&&(f[he]=be.qb,Ne=!0),!Ne)if(le(V),be.jc){Se=V,Ye=f;var Be=he,wt=be.pd[Q(Se)&Wl-1];t(be.jc),256>wt.g?(ee(Se,Se.u+wt.g),Ye[Be]=wt.value,Se=0):(ee(Se,Se.u+wt.g-256),t(256<=wt.value),Se=wt.value),Se==0&&(Ne=!0)}else Se=gn(be.G[0],be.H[0],V);if(V.h)break;if(Ne||256>Se){if(!Ne)if(be.nd)f[he]=(be.qb|Se<<8)>>>0;else{if(le(V),Ne=gn(be.G[1],be.H[1],V),le(V),Ye=gn(be.G[2],be.H[2],V),Be=gn(be.G[3],be.H[3],V),V.h)break;f[he]=(Be<<24|Ne<<16|Se<<8|Ye)>>>0}if(Ne=!1,++he,++F>=S&&(F=0,++O,R!=null&&O<=T&&!(O%16)&&R(u,O),de!=null))for(;G<he;)Se=f[G++],de.X[(506832829*Se&4294967295)>>>de.Mb]=Se}else if(280>Se){if(Se=mi(Se-256,V),Ye=gn(be.G[4],be.H[4],V),le(V),Ye=vi(S,Ye=mi(Ye,V)),V.h)break;if(he-y<Ye||C-he<Se)break e;for(Be=0;Be<Se;++Be)f[he+Be]=f[he+Be-Ye];for(he+=Se,F+=Se;F>=S;)F-=S,++O,R!=null&&O<=T&&!(O%16)&&R(u,O);if(t(he<=C),F&we&&(be=Kn(ne,F,O)),de!=null)for(;G<he;)Se=f[G++],de.X[(506832829*Se&4294967295)>>>de.Mb]=Se}else{if(!(Se<ce))break e;for(Ne=Se-280,t(de!=null);G<he;)Se=f[G++],de.X[(506832829*Se&4294967295)>>>de.Mb]=Se;Se=he,t(!(Ne>>>(Ye=de).Xa)),f[Se]=Ye.X[Ne],Ne=!0}Ne||t(V.h==Z(V))}if(u.Pb&&V.h&&he<C)t(u.m.h),u.a=5,u.m=u.wd,u.$=u.xd,0<u.s.ua&&Ce(u.s.vb,u.s.Wa);else{if(V.h)break e;R!=null&&R(u,O>T?T:O),u.a=0,u.$=he-y}return 1}return u.a=3,0}function yi(u){t(u!=null),u.vc=null,u.yc=null,u.Ya=null;var f=u.Wa;f!=null&&(f.X=null),u.vb=null,t(u!=null)}function Pa(){var u=new He;return u==null?null:(u.a=0,u.xb=_y,Ie("Predictor","VP8LPredictors"),Ie("Predictor","VP8LPredictors_C"),Ie("PredictorAdd","VP8LPredictorsAdd"),Ie("PredictorAdd","VP8LPredictorsAdd_C"),Gl=St,qa=ut,Ou=an,Iu=Nt,$l=yt,Ha=pt,Wa=Rt,D.VP8LMapColor32b=Rn,D.VP8LMapColor8b=fs,u)}function as(u,f,y,S,C){var T=1,R=[u],O=[f],F=S.m,V=S.s,ne=null,he=0;e:for(;;){if(y)for(;T&&ae(F,1);){var G=R,re=O,ce=S,ve=1,de=ce.m,we=ce.gc[ce.ab],be=ae(de,2);if(ce.Oc&1<<be)T=0;else{switch(ce.Oc|=1<<be,we.hc=be,we.Ea=G[0],we.nc=re[0],we.K=[null],++ce.ab,t(4>=ce.ab),be){case 0:case 1:we.b=ae(de,3)+2,ve=as(xe(we.Ea,we.b),xe(we.nc,we.b),0,ce,we.K),we.K=we.K[0];break;case 3:var Ne,Se=ae(de,8)+1,Ye=16<Se?0:4<Se?1:2<Se?2:3;if(G[0]=xe(we.Ea,Ye),we.b=Ye,Ne=ve=as(Se,1,0,ce,we.K)){var Be,wt=Se,Ve=we,Ct=1<<(8>>Ve.b),Fn=s(Ct);if(Fn==null)Ne=0;else{var bt=Ve.K[0],Ge=Ve.w;for(Fn[0]=Ve.K[0][0],Be=1;Be<1*wt;++Be)Fn[Be]=Qe(bt[Ge+Be],Fn[Be-1]);for(;Be<4*Ct;++Be)Fn[Be]=0;Ve.K[0]=null,Ve.K[0]=Fn,Ne=1}}ve=Ne;break;case 2:break;default:t(0)}T=ve}}if(R=R[0],O=O[0],T&&ae(F,1)&&!(T=1<=(he=ae(F,4))&&11>=he)){S.a=3;break e}var Te;if(Te=T)t:{var An,mt,Tt,tn=S,Yn=R,Ar=O,mn=he,cr=y,Sr=tn.m,Mn=tn.s,jt=[null],Ut=1,vn=0,zt=kk[mn];n:for(;;){if(cr&&ae(Sr,1)){var Xn=ae(Sr,3)+2,Ui=xe(Yn,Xn),Sn=xe(Ar,Xn),Or=Ui*Sn;if(!as(Ui,Sn,0,tn,jt))break n;for(jt=jt[0],Mn.xc=Xn,An=0;An<Or;++An){var $t=jt[An]>>8&65535;jt[An]=$t,$t>=Ut&&(Ut=$t+1)}}if(Sr.h)break n;for(mt=0;5>mt;++mt){var Bn=by[mt];!mt&&0<mn&&(Bn+=1<<mn),vn<Bn&&(vn=Bn)}var Qr=o(Ut*zt,Y),kr=Ut,Yr=o(kr,se);if(Yr==null)var Xr=null;else t(65536>=kr),Xr=Yr;var Ir=s(vn);if(Xr==null||Ir==null||Qr==null){tn.a=1;break n}var Jr=Qr;for(An=Tt=0;An<Ut;++An){var Xt=Xr[An],Zr=Xt.G,zi=Xt.H,Va=0,Ks=1,Jn=0;for(mt=0;5>mt;++mt){Bn=by[mt],Zr[mt]=Jr,zi[mt]=Tt,!mt&&0<mn&&(Bn+=1<<mn);i:{var Zh,_g=Bn,ef=tn,Uu=Ir,Gk=Jr,$k=Tt,Ag=0,Lo=ef.m,Kk=ae(Lo,1);if(i(Uu,0,0,_g),Kk){var Qk=ae(Lo,1)+1,Yk=ae(Lo,1),Ty=ae(Lo,Yk==0?1:8);Uu[Ty]=1,Qk==2&&(Uu[Ty=ae(Lo,8)]=1);var tf=1}else{var Ry=s(19),jy=ae(Lo,4)+4;if(19<jy){ef.a=3;var nf=0;break i}for(Zh=0;Zh<jy;++Zh)Ry[Ak[Zh]]=ae(Lo,3);var Sg=void 0,zu=void 0,Oy=ef,Xk=Ry,rf=_g,Iy=Uu,kg=0,To=Oy.m,Dy=8,Fy=o(128,Y);r:for(;j(Fy,0,7,Xk,19);){if(ae(To,1)){var Jk=2+2*ae(To,3);if((Sg=2+ae(To,Jk))>rf)break r}else Sg=rf;for(zu=0;zu<rf&&Sg--;){le(To);var My=Fy[0+(127&Q(To))];ee(To,To.u+My.g);var Yl=My.value;if(16>Yl)Iy[zu++]=Yl,Yl!=0&&(Dy=Yl);else{var Zk=Yl==16,By=Yl-16,e6=xk[By],Uy=ae(To,bk[By])+e6;if(zu+Uy>rf)break r;for(var t6=Zk?Dy:0;0<Uy--;)Iy[zu++]=t6}}kg=1;break r}kg||(Oy.a=3),tf=kg}(tf=tf&&!Lo.h)&&(Ag=j(Gk,$k,8,Uu,_g)),tf&&Ag!=0?nf=Ag:(ef.a=3,nf=0)}if(nf==0)break n;if(Ks&&_k[mt]==1&&(Ks=Jr[Tt].g==0),Va+=Jr[Tt].g,Tt+=nf,3>=mt){var qu,Ng=Ir[0];for(qu=1;qu<Bn;++qu)Ir[qu]>Ng&&(Ng=Ir[qu]);Jn+=Ng}}if(Xt.nd=Ks,Xt.Qb=0,Ks&&(Xt.qb=(Zr[3][zi[3]+0].value<<24|Zr[1][zi[1]+0].value<<16|Zr[2][zi[2]+0].value)>>>0,Va==0&&256>Zr[0][zi[0]+0].value&&(Xt.Qb=1,Xt.qb+=Zr[0][zi[0]+0].value<<8)),Xt.jc=!Xt.Qb&&6>Jn,Xt.jc){var sf,Qs=Xt;for(sf=0;sf<Wl;++sf){var Ro=sf,jo=Qs.pd[Ro],of=Qs.G[0][Qs.H[0]+Ro];256<=of.value?(jo.g=of.g+256,jo.value=of.value):(jo.g=0,jo.value=0,Ro>>=Hn(of,8,jo),Ro>>=Hn(Qs.G[1][Qs.H[1]+Ro],16,jo),Ro>>=Hn(Qs.G[2][Qs.H[2]+Ro],0,jo),Hn(Qs.G[3][Qs.H[3]+Ro],24,jo))}}}Mn.vc=jt,Mn.Wb=Ut,Mn.Ya=Xr,Mn.yc=Qr,Te=1;break t}Te=0}if(!(T=Te)){S.a=3;break e}if(0<he){if(V.ua=1<<he,!z(V.Wa,he)){S.a=1,T=0;break e}}else V.ua=0;var Eg=S,zy=R,n6=O,Cg=Eg.s,Pg=Cg.xc;if(Eg.c=zy,Eg.i=n6,Cg.md=xe(zy,Pg),Cg.wc=Pg==0?-1:(1<<Pg)-1,y){S.xb=jk;break e}if((ne=s(R*O))==null){S.a=1,T=0;break e}T=(T=Fi(S,ne,0,R,O,O,null))&&!F.h;break e}return T?(C!=null?C[0]=ne:(t(ne==null),t(y)),S.$=0,y||yi(V)):yi(V),T}function La(u,f){var y=u.c*u.i,S=y+f+16*f;return t(u.c<=f),u.V=s(S),u.V==null?(u.Ta=null,u.Ua=0,u.a=1,0):(u.Ta=u.V,u.Ua=u.Ba+y+f,1)}function Pl(u,f){var y=u.C,S=f-y,C=u.V,T=u.Ba+u.c*y;for(t(f<=u.l.o);0<S;){var R=16<S?16:S,O=u.l.ma,F=u.l.width,V=F*R,ne=O.ca,he=O.tb+F*y,G=u.Ta,re=u.Ua;Ca(u,R,C,T),hy(G,re,ne,he,V),os(O,y,y+R,ne,he,F),S-=R,C+=R*u.c,y+=R}t(y==f),u.C=u.Ma=f}function Ll(){this.ub=this.yd=this.td=this.Rb=0}function Tl(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Q0(){this.Fb=this.Bb=this.Cb=0,this.Zb=s(4),this.Lb=s(4)}function bu(){this.Yb=function(){var u=[];return function f(y,S,C){for(var T=C[S],R=0;R<T&&(y.push(C.length>S+1?[]:0),!(C.length<S+1));R++)f(y[R],S+1,C)}(u,0,[3,11]),u}()}function Nh(){this.jb=s(3),this.Wc=a([4,8],bu),this.Xc=a([4,17],bu)}function Eh(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new s(4),this.od=new s(4)}function wi(){this.ld=this.La=this.dd=this.tc=0}function xu(){this.Na=this.la=0}function Ch(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function _u(){this.ad=s(384),this.Za=0,this.Ob=s(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ph(){this.uc=this.M=this.Nb=0,this.wa=Array(new wi),this.Y=0,this.ya=Array(new _u),this.aa=0,this.l=new Rl}function Lh(){this.y=s(16),this.f=s(8),this.ea=s(8)}function Th(){this.cb=this.a=0,this.sc="",this.m=new P,this.Od=new Ll,this.Kc=new Tl,this.ed=new Eh,this.Qa=new Q0,this.Ic=this.$c=this.Aa=0,this.D=new Ph,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,P),this.ia=0,this.pb=o(4,Ch),this.Pa=new Nh,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Lh),this.Hd=0,this.rb=Array(new xu),this.sb=0,this.wa=Array(new wi),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new _u),this.L=this.aa=0,this.gd=a([4,2],wi),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function ls(u,f){return 0>u?0:u>f?f:u}function Rl(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Y0(){var u=new Th;return u!=null&&(u.a=0,u.sc="OK",u.cb=0,u.Xb=0,Mu||(Mu=jl)),u}function Ln(u,f,y){return u.a==0&&(u.a=f,u.sc=y,u.cb=0),0}function Rh(u,f,y){return 3<=y&&u[f+0]==157&&u[f+1]==1&&u[f+2]==42}function cs(u,f){if(u==null)return 0;if(u.a=0,u.sc="OK",f==null)return Ln(u,2,"null VP8Io passed to VP8GetHeaders()");var y=f.data,S=f.w,C=f.ha;if(4>C)return Ln(u,7,"Truncated header.");var T=y[S+0]|y[S+1]<<8|y[S+2]<<16,R=u.Od;if(R.Rb=!(1&T),R.td=T>>1&7,R.yd=T>>4&1,R.ub=T>>5,3<R.td)return Ln(u,3,"Incorrect keyframe parameters.");if(!R.yd)return Ln(u,4,"Frame not displayable.");S+=3,C-=3;var O=u.Kc;if(R.Rb){if(7>C)return Ln(u,7,"cannot parse picture header");if(!Rh(y,S,C))return Ln(u,3,"Bad code word");O.c=16383&(y[S+4]<<8|y[S+3]),O.Td=y[S+4]>>6,O.i=16383&(y[S+6]<<8|y[S+5]),O.Ud=y[S+6]>>6,S+=7,C-=7,u.za=O.c+15>>4,u.Ub=O.i+15>>4,f.width=O.c,f.height=O.i,f.Da=0,f.j=0,f.v=0,f.va=f.width,f.o=f.height,f.da=0,f.ib=f.width,f.hb=f.height,f.U=f.width,f.T=f.height,i((T=u.Pa).jb,0,255,T.jb.length),t((T=u.Qa)!=null),T.Cb=0,T.Bb=0,T.Fb=1,i(T.Zb,0,0,T.Zb.length),i(T.Lb,0,0,T.Lb)}if(R.ub>C)return Ln(u,7,"bad partition length");oe(T=u.m,y,S,R.ub),S+=R.ub,C-=R.ub,R.Rb&&(O.Ld=ge(T),O.Kd=ge(T)),O=u.Qa;var F,V=u.Pa;if(t(T!=null),t(O!=null),O.Cb=ge(T),O.Cb){if(O.Bb=ge(T),ge(T)){for(O.Fb=ge(T),F=0;4>F;++F)O.Zb[F]=ge(T)?U(T,7):0;for(F=0;4>F;++F)O.Lb[F]=ge(T)?U(T,6):0}if(O.Bb)for(F=0;3>F;++F)V.jb[F]=ge(T)?ue(T,8):255}else O.Bb=0;if(T.Ka)return Ln(u,3,"cannot parse segment header");if((O=u.ed).zd=ge(T),O.Tb=ue(T,6),O.wb=ue(T,3),O.Pc=ge(T),O.Pc&&ge(T)){for(V=0;4>V;++V)ge(T)&&(O.vd[V]=U(T,6));for(V=0;4>V;++V)ge(T)&&(O.od[V]=U(T,6))}if(u.L=O.Tb==0?0:O.zd?1:2,T.Ka)return Ln(u,3,"cannot parse filter header");var ne=C;if(C=F=S,S=F+ne,O=ne,u.Xb=(1<<ue(u.m,2))-1,ne<3*(V=u.Xb))y=7;else{for(F+=3*V,O-=3*V,ne=0;ne<V;++ne){var he=y[C+0]|y[C+1]<<8|y[C+2]<<16;he>O&&(he=O),oe(u.Jc[+ne],y,F,he),F+=he,O-=he,C+=3}oe(u.Jc[+V],y,F,O),y=F<S?0:5}if(y!=0)return Ln(u,y,"cannot parse partitions");for(y=ue(F=u.m,7),C=ge(F)?U(F,4):0,S=ge(F)?U(F,4):0,O=ge(F)?U(F,4):0,V=ge(F)?U(F,4):0,F=ge(F)?U(F,4):0,ne=u.Qa,he=0;4>he;++he){if(ne.Cb){var G=ne.Zb[he];ne.Fb||(G+=y)}else{if(0<he){u.pb[he]=u.pb[0];continue}G=y}var re=u.pb[he];re.Sc[0]=wg[ls(G+C,127)],re.Sc[1]=bg[ls(G+0,127)],re.Eb[0]=2*wg[ls(G+S,127)],re.Eb[1]=101581*bg[ls(G+O,127)]>>16,8>re.Eb[1]&&(re.Eb[1]=8),re.Qc[0]=wg[ls(G+V,117)],re.Qc[1]=bg[ls(G+F,127)],re.lc=G+F}if(!R.Rb)return Ln(u,4,"Not a key frame.");for(ge(T),R=u.Pa,y=0;4>y;++y){for(C=0;8>C;++C)for(S=0;3>S;++S)for(O=0;11>O;++O)V=ye(T,Tk[y][C][S][O])?ue(T,8):Pk[y][C][S][O],R.Wc[y][C].Yb[S][O]=V;for(C=0;17>C;++C)R.Xc[y][C]=R.Wc[y][Rk[C]]}return u.kc=ge(T),u.kc&&(u.Bd=ue(T,8)),u.cb=1}function jl(u,f,y,S,C,T,R){var O=f[C].Yb[y];for(y=0;16>C;++C){if(!ye(u,O[y+0]))return C;for(;!ye(u,O[y+1]);)if(O=f[++C].Yb[0],y=0,C==16)return 16;var F=f[C+1].Yb;if(ye(u,O[y+2])){var V=u,ne=0;if(ye(V,(G=O)[(he=y)+3]))if(ye(V,G[he+6])){for(O=0,he=2*(ne=ye(V,G[he+8]))+(G=ye(V,G[he+9+ne])),ne=0,G=Ek[he];G[O];++O)ne+=ne+ye(V,G[O]);ne+=3+(8<<he)}else ye(V,G[he+7])?(ne=7+2*ye(V,165),ne+=ye(V,145)):ne=5+ye(V,159);else ne=ye(V,G[he+4])?3+ye(V,G[he+5]):2;O=F[2]}else ne=1,O=F[1];F=R+Ck[C],0>(V=u).b&&pe(V);var he,G=V.b,re=(he=V.Ca>>1)-(V.I>>G)>>31;--V.b,V.Ca+=re,V.Ca|=1,V.I-=(he+1&re)<<G,T[F]=((ne^re)-re)*S[(0<C)+0]}return 16}function Au(u){var f=u.rb[u.sb-1];f.la=0,f.Na=0,i(u.zc,0,0,u.zc.length),u.ja=0}function $r(u,f,y,S,C){C=u[f+y+32*S]+(C>>3),u[f+y+32*S]=-256&C?0>C?0:255:C}function Ol(u,f,y,S,C,T){$r(u,f,0,y,S+C),$r(u,f,1,y,S+T),$r(u,f,2,y,S-T),$r(u,f,3,y,S-C)}function Bs(u){return(20091*u>>16)+u}function Qn(u,f,y,S){var C,T=0,R=s(16);for(C=0;4>C;++C){var O=u[f+0]+u[f+8],F=u[f+0]-u[f+8],V=(35468*u[f+4]>>16)-Bs(u[f+12]),ne=Bs(u[f+4])+(35468*u[f+12]>>16);R[T+0]=O+ne,R[T+1]=F+V,R[T+2]=F-V,R[T+3]=O-ne,T+=4,f++}for(C=T=0;4>C;++C)O=(u=R[T+0]+4)+R[T+8],F=u-R[T+8],V=(35468*R[T+4]>>16)-Bs(R[T+12]),$r(y,S,0,0,O+(ne=Bs(R[T+4])+(35468*R[T+12]>>16))),$r(y,S,1,0,F+V),$r(y,S,2,0,F-V),$r(y,S,3,0,O-ne),T++,S+=32}function jh(u,f,y,S){var C=u[f+0]+4,T=35468*u[f+4]>>16,R=Bs(u[f+4]),O=35468*u[f+1]>>16;Ol(y,S,0,C+R,u=Bs(u[f+1]),O),Ol(y,S,1,C+T,u,O),Ol(y,S,2,C-T,u,O),Ol(y,S,3,C-R,u,O)}function X0(u,f,y,S,C){Qn(u,f,y,S),C&&Qn(u,f+16,y,S+4)}function J0(u,f,y,S){Vs(u,f+0,y,S,1),Vs(u,f+32,y,S+128,1)}function Z0(u,f,y,S){var C;for(u=u[f+0]+4,C=0;4>C;++C)for(f=0;4>f;++f)$r(y,S,f,C,u)}function us(u,f,y,S){u[f+0]&&lr(u,f+0,y,S),u[f+16]&&lr(u,f+16,y,S+4),u[f+32]&&lr(u,f+32,y,S+128),u[f+48]&&lr(u,f+48,y,S+128+4)}function Oh(u,f,y,S){var C,T=s(16);for(C=0;4>C;++C){var R=u[f+0+C]+u[f+12+C],O=u[f+4+C]+u[f+8+C],F=u[f+4+C]-u[f+8+C],V=u[f+0+C]-u[f+12+C];T[0+C]=R+O,T[8+C]=R-O,T[4+C]=V+F,T[12+C]=V-F}for(C=0;4>C;++C)R=(u=T[0+4*C]+3)+T[3+4*C],O=T[1+4*C]+T[2+4*C],F=T[1+4*C]-T[2+4*C],V=u-T[3+4*C],y[S+0]=R+O>>3,y[S+16]=V+F>>3,y[S+32]=R-O>>3,y[S+48]=V-F>>3,S+=64}function Il(u,f,y){var S,C=f-32,T=Kr,R=255-u[C-1];for(S=0;S<y;++S){var O,F=T,V=R+u[f-1];for(O=0;O<y;++O)u[f+O]=F[V+u[C+O]];f+=32}}function Dl(u,f){Il(u,f,4)}function Su(u,f){Il(u,f,8)}function eg(u,f){Il(u,f,16)}function tg(u,f){var y;for(y=0;16>y;++y)r(u,f+32*y,u,f-32,16)}function ng(u,f){var y;for(y=16;0<y;--y)i(u,f,u[f-1],16),f+=32}function bo(u,f,y){var S;for(S=0;16>S;++S)i(f,y+32*S,u,16)}function Ih(u,f){var y,S=16;for(y=0;16>y;++y)S+=u[f-1+32*y]+u[f+y-32];bo(S>>5,u,f)}function xo(u,f){var y,S=8;for(y=0;16>y;++y)S+=u[f-1+32*y];bo(S>>4,u,f)}function rg(u,f){var y,S=8;for(y=0;16>y;++y)S+=u[f+y-32];bo(S>>4,u,f)}function Ta(u,f){bo(128,u,f)}function lt(u,f,y){return u+2*f+y+2>>2}function ig(u,f){var y,S=f-32;for(S=new Uint8Array([lt(u[S-1],u[S+0],u[S+1]),lt(u[S+0],u[S+1],u[S+2]),lt(u[S+1],u[S+2],u[S+3]),lt(u[S+2],u[S+3],u[S+4])]),y=0;4>y;++y)r(u,f+32*y,S,0,S.length)}function sg(u,f){var y=u[f-1],S=u[f-1+32],C=u[f-1+64],T=u[f-1+96];ke(u,f+0,16843009*lt(u[f-1-32],y,S)),ke(u,f+32,16843009*lt(y,S,C)),ke(u,f+64,16843009*lt(S,C,T)),ke(u,f+96,16843009*lt(C,T,T))}function og(u,f){var y,S=4;for(y=0;4>y;++y)S+=u[f+y-32]+u[f-1+32*y];for(S>>=3,y=0;4>y;++y)i(u,f+32*y,S,4)}function ag(u,f){var y=u[f-1+0],S=u[f-1+32],C=u[f-1+64],T=u[f-1-32],R=u[f+0-32],O=u[f+1-32],F=u[f+2-32],V=u[f+3-32];u[f+0+96]=lt(S,C,u[f-1+96]),u[f+1+96]=u[f+0+64]=lt(y,S,C),u[f+2+96]=u[f+1+64]=u[f+0+32]=lt(T,y,S),u[f+3+96]=u[f+2+64]=u[f+1+32]=u[f+0+0]=lt(R,T,y),u[f+3+64]=u[f+2+32]=u[f+1+0]=lt(O,R,T),u[f+3+32]=u[f+2+0]=lt(F,O,R),u[f+3+0]=lt(V,F,O)}function lg(u,f){var y=u[f+1-32],S=u[f+2-32],C=u[f+3-32],T=u[f+4-32],R=u[f+5-32],O=u[f+6-32],F=u[f+7-32];u[f+0+0]=lt(u[f+0-32],y,S),u[f+1+0]=u[f+0+32]=lt(y,S,C),u[f+2+0]=u[f+1+32]=u[f+0+64]=lt(S,C,T),u[f+3+0]=u[f+2+32]=u[f+1+64]=u[f+0+96]=lt(C,T,R),u[f+3+32]=u[f+2+64]=u[f+1+96]=lt(T,R,O),u[f+3+64]=u[f+2+96]=lt(R,O,F),u[f+3+96]=lt(O,F,F)}function Us(u,f){var y=u[f-1+0],S=u[f-1+32],C=u[f-1+64],T=u[f-1-32],R=u[f+0-32],O=u[f+1-32],F=u[f+2-32],V=u[f+3-32];u[f+0+0]=u[f+1+64]=T+R+1>>1,u[f+1+0]=u[f+2+64]=R+O+1>>1,u[f+2+0]=u[f+3+64]=O+F+1>>1,u[f+3+0]=F+V+1>>1,u[f+0+96]=lt(C,S,y),u[f+0+64]=lt(S,y,T),u[f+0+32]=u[f+1+96]=lt(y,T,R),u[f+1+32]=u[f+2+96]=lt(T,R,O),u[f+2+32]=u[f+3+96]=lt(R,O,F),u[f+3+32]=lt(O,F,V)}function zs(u,f){var y=u[f+0-32],S=u[f+1-32],C=u[f+2-32],T=u[f+3-32],R=u[f+4-32],O=u[f+5-32],F=u[f+6-32],V=u[f+7-32];u[f+0+0]=y+S+1>>1,u[f+1+0]=u[f+0+64]=S+C+1>>1,u[f+2+0]=u[f+1+64]=C+T+1>>1,u[f+3+0]=u[f+2+64]=T+R+1>>1,u[f+0+32]=lt(y,S,C),u[f+1+32]=u[f+0+96]=lt(S,C,T),u[f+2+32]=u[f+1+96]=lt(C,T,R),u[f+3+32]=u[f+2+96]=lt(T,R,O),u[f+3+64]=lt(R,O,F),u[f+3+96]=lt(O,F,V)}function cg(u,f){var y=u[f-1+0],S=u[f-1+32],C=u[f-1+64],T=u[f-1+96];u[f+0+0]=y+S+1>>1,u[f+2+0]=u[f+0+32]=S+C+1>>1,u[f+2+32]=u[f+0+64]=C+T+1>>1,u[f+1+0]=lt(y,S,C),u[f+3+0]=u[f+1+32]=lt(S,C,T),u[f+3+32]=u[f+1+64]=lt(C,T,T),u[f+3+64]=u[f+2+64]=u[f+0+96]=u[f+1+96]=u[f+2+96]=u[f+3+96]=T}function ug(u,f){var y=u[f-1+0],S=u[f-1+32],C=u[f-1+64],T=u[f-1+96],R=u[f-1-32],O=u[f+0-32],F=u[f+1-32],V=u[f+2-32];u[f+0+0]=u[f+2+32]=y+R+1>>1,u[f+0+32]=u[f+2+64]=S+y+1>>1,u[f+0+64]=u[f+2+96]=C+S+1>>1,u[f+0+96]=T+C+1>>1,u[f+3+0]=lt(O,F,V),u[f+2+0]=lt(R,O,F),u[f+1+0]=u[f+3+32]=lt(y,R,O),u[f+1+32]=u[f+3+64]=lt(S,y,R),u[f+1+64]=u[f+3+96]=lt(C,S,y),u[f+1+96]=lt(T,C,S)}function Fl(u,f){var y;for(y=0;8>y;++y)r(u,f+32*y,u,f-32,8)}function ku(u,f){var y;for(y=0;8>y;++y)i(u,f,u[f-1],8),f+=32}function ds(u,f,y){var S;for(S=0;8>S;++S)i(f,y+32*S,u,8)}function dg(u,f){var y,S=8;for(y=0;8>y;++y)S+=u[f+y-32]+u[f-1+32*y];ds(S>>4,u,f)}function Ml(u,f){var y,S=4;for(y=0;8>y;++y)S+=u[f+y-32];ds(S>>3,u,f)}function hg(u,f){var y,S=4;for(y=0;8>y;++y)S+=u[f-1+32*y];ds(S>>3,u,f)}function Nu(u,f){ds(128,u,f)}function _o(u,f,y){var S=u[f-y],C=u[f+0],T=3*(C-S)+pg[1020+u[f-2*y]-u[f+y]],R=Wh[112+(T+4>>3)];u[f-y]=Kr[255+S+Wh[112+(T+3>>3)]],u[f+0]=Kr[255+C-R]}function Eu(u,f,y,S){var C=u[f+0],T=u[f+y];return xi[255+u[f-2*y]-u[f-y]]>S||xi[255+T-C]>S}function Ra(u,f,y,S){return 4*xi[255+u[f-y]-u[f+0]]+xi[255+u[f-2*y]-u[f+y]]<=S}function Cu(u,f,y,S,C){var T=u[f-3*y],R=u[f-2*y],O=u[f-y],F=u[f+0],V=u[f+y],ne=u[f+2*y],he=u[f+3*y];return 4*xi[255+O-F]+xi[255+R-V]>S?0:xi[255+u[f-4*y]-T]<=C&&xi[255+T-R]<=C&&xi[255+R-O]<=C&&xi[255+he-ne]<=C&&xi[255+ne-V]<=C&&xi[255+V-F]<=C}function Bl(u,f,y,S){var C=2*S+1;for(S=0;16>S;++S)Ra(u,f+S,y,C)&&_o(u,f+S,y)}function Pu(u,f,y,S){var C=2*S+1;for(S=0;16>S;++S)Ra(u,f+S*y,1,C)&&_o(u,f+S*y,1)}function Ul(u,f,y,S){var C;for(C=3;0<C;--C)Bl(u,f+=4*y,y,S)}function Dh(u,f,y,S){var C;for(C=3;0<C;--C)Pu(u,f+=4,y,S)}function qs(u,f,y,S,C,T,R,O){for(T=2*T+1;0<C--;){if(Cu(u,f,y,T,R))if(Eu(u,f,y,O))_o(u,f,y);else{var F=u,V=f,ne=y,he=F[V-2*ne],G=F[V-ne],re=F[V+0],ce=F[V+ne],ve=F[V+2*ne],de=27*(be=pg[1020+3*(re-G)+pg[1020+he-ce]])+63>>7,we=18*be+63>>7,be=9*be+63>>7;F[V-3*ne]=Kr[255+F[V-3*ne]+be],F[V-2*ne]=Kr[255+he+we],F[V-ne]=Kr[255+G+de],F[V+0]=Kr[255+re-de],F[V+ne]=Kr[255+ce-we],F[V+2*ne]=Kr[255+ve-be]}f+=S}}function Hs(u,f,y,S,C,T,R,O){for(T=2*T+1;0<C--;){if(Cu(u,f,y,T,R))if(Eu(u,f,y,O))_o(u,f,y);else{var F=u,V=f,ne=y,he=F[V-ne],G=F[V+0],re=F[V+ne],ce=Wh[112+(4+(ve=3*(G-he))>>3)],ve=Wh[112+(ve+3>>3)],de=ce+1>>1;F[V-2*ne]=Kr[255+F[V-2*ne]+de],F[V-ne]=Kr[255+he+ve],F[V+0]=Kr[255+G-ce],F[V+ne]=Kr[255+re-de]}f+=S}}function Fh(u,f,y,S,C,T){qs(u,f,y,1,16,S,C,T)}function Mh(u,f,y,S,C,T){qs(u,f,1,y,16,S,C,T)}function Bh(u,f,y,S,C,T){var R;for(R=3;0<R;--R)Hs(u,f+=4*y,y,1,16,S,C,T)}function ja(u,f,y,S,C,T){var R;for(R=3;0<R;--R)Hs(u,f+=4,1,y,16,S,C,T)}function Uh(u,f,y,S,C,T,R,O){qs(u,f,C,1,8,T,R,O),qs(y,S,C,1,8,T,R,O)}function m(u,f,y,S,C,T,R,O){qs(u,f,1,C,8,T,R,O),qs(y,S,1,C,8,T,R,O)}function E(u,f,y,S,C,T,R,O){Hs(u,f+4*C,C,1,8,T,R,O),Hs(y,S+4*C,C,1,8,T,R,O)}function H(u,f,y,S,C,T,R,O){Hs(u,f+4,1,C,8,T,R,O),Hs(y,S+4,1,C,8,T,R,O)}function J(){this.ba=new ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Ft,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function ie(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function me(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ae(){this.ua=0,this.Wa=new ht,this.vb=new ht,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new se,this.yc=new Y}function He(){this.xb=this.a=0,this.l=new Rl,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new B,this.Pb=0,this.wd=new B,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ae,this.ab=0,this.gc=o(4,me),this.Oc=0}function qe(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Rl,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function dt(u,f,y,S,C,T,R){for(u=u==null?0:u[f+0],f=0;f<R;++f)C[T+f]=u+y[S+f]&255,u=C[T+f]}function gt(u,f,y,S,C,T,R){var O;if(u==null)dt(null,null,y,S,C,T,R);else for(O=0;O<R;++O)C[T+O]=u[f+O]+y[S+O]&255}function Lt(u,f,y,S,C,T,R){if(u==null)dt(null,null,y,S,C,T,R);else{var O,F=u[f+0],V=F,ne=F;for(O=0;O<R;++O)V=ne+(F=u[f+O])-V,ne=y[S+O]+(-256&V?0>V?0:255:V)&255,V=F,C[T+O]=ne}}function Tn(u,f,y,S){var C=f.width,T=f.o;if(t(u!=null&&f!=null),0>y||0>=S||y+S>T)return null;if(!u.Cc){if(u.ga==null){var R;if(u.ga=new qe,(R=u.ga==null)||(R=f.width*f.o,t(u.Gb.length==0),u.Gb=s(R),u.Uc=0,u.Gb==null?R=0:(u.mb=u.Gb,u.nb=u.Uc,u.rc=null,R=1),R=!R),!R){R=u.ga;var O=u.Fa,F=u.P,V=u.qc,ne=u.mb,he=u.nb,G=F+1,re=V-1,ce=R.l;if(t(O!=null&&ne!=null&&f!=null),Po[0]=null,Po[1]=dt,Po[2]=gt,Po[3]=Lt,R.ca=ne,R.tb=he,R.c=f.width,R.i=f.height,t(0<R.c&&0<R.i),1>=V)f=0;else if(R.$a=3&O[F+0],R.Z=O[F+0]>>2&3,R.Lc=O[F+0]>>4&3,F=O[F+0]>>6&3,0>R.$a||1<R.$a||4<=R.Z||1<R.Lc||F)f=0;else if(ce.put=st,ce.ac=ss,ce.bc=Fs,ce.ma=R,ce.width=f.width,ce.height=f.height,ce.Da=f.Da,ce.v=f.v,ce.va=f.va,ce.j=f.j,ce.o=f.o,R.$a)e:{t(R.$a==1),f=Pa();t:for(;;){if(f==null){f=0;break e}if(t(R!=null),R.mc=f,f.c=R.c,f.i=R.i,f.l=R.l,f.l.ma=R,f.l.width=R.c,f.l.height=R.i,f.a=0,te(f.m,O,G,re),!as(R.c,R.i,1,f,null)||(f.ab==1&&f.gc[0].hc==3&&Ii(f.s)?(R.ic=1,O=f.c*f.i,f.Ta=null,f.Ua=0,f.V=s(O),f.Ba=0,f.V==null?(f.a=1,f=0):f=1):(R.ic=0,f=La(f,R.c)),!f))break t;f=1;break e}R.mc=null,f=0}else f=re>=R.c*R.i;R=!f}if(R)return null;u.ga.Lc!=1?u.Ga=0:S=T-y}t(u.ga!=null),t(y+S<=T);e:{if(f=(O=u.ga).c,T=O.l.o,O.$a==0){if(G=u.rc,re=u.Vc,ce=u.Fa,F=u.P+1+y*f,V=u.mb,ne=u.nb+y*f,t(F<=u.P+u.qc),O.Z!=0)for(t(Po[O.Z]!=null),R=0;R<S;++R)Po[O.Z](G,re,ce,F,V,ne,f),G=V,re=ne,ne+=f,F+=f;else for(R=0;R<S;++R)r(V,ne,ce,F,f),G=V,re=ne,ne+=f,F+=f;u.rc=G,u.Vc=re}else{if(t(O.mc!=null),f=y+S,t((R=O.mc)!=null),t(f<=R.i),R.C>=f)f=1;else if(O.ic||dn(),O.ic){O=R.V,G=R.Ba,re=R.c;var ve=R.i,de=(ce=1,F=R.$/re,V=R.$%re,ne=R.m,he=R.s,R.$),we=re*ve,be=re*f,Ne=he.wc,Se=de<be?Kn(he,V,F):null;t(de<=we),t(f<=ve),t(Ii(he));t:for(;;){for(;!ne.h&&de<be;){if(V&Ne||(Se=Kn(he,V,F)),t(Se!=null),le(ne),256>(ve=gn(Se.G[0],Se.H[0],ne)))O[G+de]=ve,++de,++V>=re&&(V=0,++F<=f&&!(F%16)&&Di(R,F));else{if(!(280>ve)){ce=0;break t}ve=mi(ve-256,ne);var Ye,Be=gn(Se.G[4],Se.H[4],ne);if(le(ne),!(de>=(Be=vi(re,Be=mi(Be,ne)))&&we-de>=ve)){ce=0;break t}for(Ye=0;Ye<ve;++Ye)O[G+de+Ye]=O[G+de+Ye-Be];for(de+=ve,V+=ve;V>=re;)V-=re,++F<=f&&!(F%16)&&Di(R,F);de<be&&V&Ne&&(Se=Kn(he,V,F))}t(ne.h==Z(ne))}Di(R,F>f?f:F);break t}!ce||ne.h&&de<we?(ce=0,R.a=ne.h?5:3):R.$=de,f=ce}else f=Fi(R,R.V,R.Ba,R.c,R.i,f,Pl);if(!f){S=0;break e}}y+S>=T&&(u.Cc=1),S=1}if(!S)return null;if(u.Cc&&((S=u.ga)!=null&&(S.mc=null),u.ga=null,0<u.Ga))return alert("todo:WebPDequantizeLevels"),null}return u.nb+y*C}function Gt(u,f,y,S,C,T){for(;0<C--;){var R,O=u,F=f+(y?1:0),V=u,ne=f+(y?0:3);for(R=0;R<S;++R){var he=V[ne+4*R];he!=255&&(he*=32897,O[F+4*R+0]=O[F+4*R+0]*he>>23,O[F+4*R+1]=O[F+4*R+1]*he>>23,O[F+4*R+2]=O[F+4*R+2]*he>>23)}f+=T}}function Vt(u,f,y,S,C){for(;0<S--;){var T;for(T=0;T<y;++T){var R=u[f+2*T+0],O=15&(V=u[f+2*T+1]),F=4369*O,V=(240&V|V>>4)*F>>16;u[f+2*T+0]=(240&R|R>>4)*F>>16&240|(15&R|R<<4)*F>>16>>4&15,u[f+2*T+1]=240&V|O}f+=C}}function en(u,f,y,S,C,T,R,O){var F,V,ne=255;for(V=0;V<C;++V){for(F=0;F<S;++F){var he=u[f+F];T[R+4*F]=he,ne&=he}f+=y,R+=O}return ne!=255}function un(u,f,y,S,C){var T;for(T=0;T<C;++T)y[S+T]=u[f+T]>>8}function dn(){Fu=Gt,uy=Vt,dy=en,hy=un}function or(u,f,y){D[u]=function(S,C,T,R,O,F,V,ne,he,G,re,ce,ve,de,we,be,Ne){var Se,Ye=Ne-1>>1,Be=O[F+0]|V[ne+0]<<16,wt=he[G+0]|re[ce+0]<<16;t(S!=null);var Ve=3*Be+wt+131074>>2;for(f(S[C+0],255&Ve,Ve>>16,ve,de),T!=null&&(Ve=3*wt+Be+131074>>2,f(T[R+0],255&Ve,Ve>>16,we,be)),Se=1;Se<=Ye;++Se){var Ct=O[F+Se]|V[ne+Se]<<16,Fn=he[G+Se]|re[ce+Se]<<16,bt=Be+Ct+wt+Fn+524296,Ge=bt+2*(Ct+wt)>>3;Ve=Ge+Be>>1,Be=(bt=bt+2*(Be+Fn)>>3)+Ct>>1,f(S[C+2*Se-1],255&Ve,Ve>>16,ve,de+(2*Se-1)*y),f(S[C+2*Se-0],255&Be,Be>>16,ve,de+(2*Se-0)*y),T!=null&&(Ve=bt+wt>>1,Be=Ge+Fn>>1,f(T[R+2*Se-1],255&Ve,Ve>>16,we,be+(2*Se-1)*y),f(T[R+2*Se+0],255&Be,Be>>16,we,be+(2*Se+0)*y)),Be=Ct,wt=Fn}1&Ne||(Ve=3*Be+wt+131074>>2,f(S[C+Ne-1],255&Ve,Ve>>16,ve,de+(Ne-1)*y),T!=null&&(Ve=3*wt+Be+131074>>2,f(T[R+Ne-1],255&Ve,Ve>>16,we,be+(Ne-1)*y)))}}function Ws(){_i[Vh]=Ok,_i[Gh]=Ay,_i[yy]=Ik,_i[$h]=Sy,_i[Kh]=ky,_i[gg]=Ny,_i[wy]=Dk,_i[mg]=Ay,_i[vg]=Sy,_i[Qh]=ky,_i[yg]=Ny}function Lu(u){return u&~Fk?0>u?0:255:u>>Ey}function Oa(u,f){return Lu((19077*u>>8)+(26149*f>>8)-14234)}function Ia(u,f,y){return Lu((19077*u>>8)-(6419*f>>8)-(13320*y>>8)+8708)}function Ao(u,f){return Lu((19077*u>>8)+(33050*f>>8)-17685)}function Da(u,f,y,S,C){S[C+0]=Oa(u,y),S[C+1]=Ia(u,f,y),S[C+2]=Ao(u,f)}function zl(u,f,y,S,C){S[C+0]=Ao(u,f),S[C+1]=Ia(u,f,y),S[C+2]=Oa(u,y)}function ql(u,f,y,S,C){var T=Ia(u,f,y);f=T<<3&224|Ao(u,f)>>3,S[C+0]=248&Oa(u,y)|T>>5,S[C+1]=f}function ar(u,f,y,S,C){var T=240&Ao(u,f)|15;S[C+0]=240&Oa(u,y)|Ia(u,f,y)>>4,S[C+1]=T}function Fa(u,f,y,S,C){S[C+0]=255,Da(u,f,y,S,C+1)}function Ma(u,f,y,S,C){zl(u,f,y,S,C),S[C+3]=255}function Tu(u,f,y,S,C){Da(u,f,y,S,C),S[C+3]=255}function hs(u,f,y){D[u]=function(S,C,T,R,O,F,V,ne,he){for(var G=ne+(-2&he)*y;ne!=G;)f(S[C+0],T[R+0],O[F+0],V,ne),f(S[C+1],T[R+0],O[F+0],V,ne+y),C+=2,++R,++F,ne+=2*y;1&he&&f(S[C+0],T[R+0],O[F+0],V,ne)}}function xr(u,f,y){return y==0?u==0?f==0?6:5:f==0?4:0:y}function zh(u,f,y,S,C){switch(u>>>30){case 3:Vs(f,y,S,C,0);break;case 2:Eo(f,y,S,C);break;case 1:lr(f,y,S,C)}}function Hl(u,f){var y,S,C=f.M,T=f.Nb,R=u.oc,O=u.pc+40,F=u.oc,V=u.pc+584,ne=u.oc,he=u.pc+600;for(y=0;16>y;++y)R[O+32*y-1]=129;for(y=0;8>y;++y)F[V+32*y-1]=129,ne[he+32*y-1]=129;for(0<C?R[O-1-32]=F[V-1-32]=ne[he-1-32]=129:(i(R,O-32-1,127,21),i(F,V-32-1,127,9),i(ne,he-32-1,127,9)),S=0;S<u.za;++S){var G=f.ya[f.aa+S];if(0<S){for(y=-1;16>y;++y)r(R,O+32*y-4,R,O+32*y+12,4);for(y=-1;8>y;++y)r(F,V+32*y-4,F,V+32*y+4,4),r(ne,he+32*y-4,ne,he+32*y+4,4)}var re=u.Gd,ce=u.Hd+S,ve=G.ad,de=G.Hc;if(0<C&&(r(R,O-32,re[ce].y,0,16),r(F,V-32,re[ce].f,0,8),r(ne,he-32,re[ce].ea,0,8)),G.Za){var we=R,be=O-32+16;for(0<C&&(S>=u.za-1?i(we,be,re[ce].y[15],4):r(we,be,re[ce+1].y,0,4)),y=0;4>y;y++)we[be+128+y]=we[be+256+y]=we[be+384+y]=we[be+0+y];for(y=0;16>y;++y,de<<=2)we=R,be=O+Py[y],Bi[G.Ob[y]](we,be),zh(de,ve,16*+y,we,be)}else if(we=xr(S,C,G.Ob[0]),Co[we](R,O),de!=0)for(y=0;16>y;++y,de<<=2)zh(de,ve,16*+y,R,O+Py[y]);for(y=G.Gc,we=xr(S,C,G.Dd),$s[we](F,V),$s[we](ne,he),de=ve,we=F,be=V,255&(G=0|y)&&(170&G?Kl(de,256,we,be):ps(de,256,we,be)),G=ne,de=he,255&(y>>=8)&&(170&y?Kl(ve,320,G,de):ps(ve,320,G,de)),C<u.Ub-1&&(r(re[ce].y,0,R,O+480,16),r(re[ce].f,0,F,V+224,8),r(re[ce].ea,0,ne,he+224,8)),y=8*T*u.B,re=u.sa,ce=u.ta+16*S+16*T*u.R,ve=u.qa,G=u.ra+8*S+y,de=u.Ha,we=u.Ia+8*S+y,y=0;16>y;++y)r(re,ce+y*u.R,R,O+32*y,16);for(y=0;8>y;++y)r(ve,G+y*u.B,F,V+32*y,8),r(de,we+y*u.B,ne,he+32*y,8)}}function qh(u,f,y,S,C,T,R,O,F){var V=[0],ne=[0],he=0,G=F!=null?F.kd:0,re=F??new ie;if(u==null||12>y)return 7;re.data=u,re.w=f,re.ha=y,f=[f],y=[y],re.gb=[re.gb];e:{var ce=f,ve=y,de=re.gb;if(t(u!=null),t(ve!=null),t(de!=null),de[0]=0,12<=ve[0]&&!n(u,ce[0],"RIFF")){if(n(u,ce[0]+8,"WEBP")){de=3;break e}var we=We(u,ce[0]+4);if(12>we||4294967286<we){de=3;break e}if(G&&we>ve[0]-8){de=7;break e}de[0]=we,ce[0]+=12,ve[0]-=12}de=0}if(de!=0)return de;for(we=0<re.gb[0],y=y[0];;){e:{var be=u;ve=f,de=y;var Ne=V,Se=ne,Ye=ce=[0];if((Ve=he=[he])[0]=0,8>de[0])de=7;else{if(!n(be,ve[0],"VP8X")){if(We(be,ve[0]+4)!=10){de=3;break e}if(18>de[0]){de=7;break e}var Be=We(be,ve[0]+8),wt=1+Le(be,ve[0]+12);if(2147483648<=wt*(be=1+Le(be,ve[0]+15))){de=3;break e}Ye!=null&&(Ye[0]=Be),Ne!=null&&(Ne[0]=wt),Se!=null&&(Se[0]=be),ve[0]+=18,de[0]-=18,Ve[0]=1}de=0}}if(he=he[0],ce=ce[0],de!=0)return de;if(ve=!!(2&ce),!we&&he)return 3;if(T!=null&&(T[0]=!!(16&ce)),R!=null&&(R[0]=ve),O!=null&&(O[0]=0),R=V[0],ce=ne[0],he&&ve&&F==null){de=0;break}if(4>y){de=7;break}if(we&&he||!we&&!he&&!n(u,f[0],"ALPH")){y=[y],re.na=[re.na],re.P=[re.P],re.Sa=[re.Sa];e:{Be=u,de=f,we=y;var Ve=re.gb;Ne=re.na,Se=re.P,Ye=re.Sa,wt=22,t(Be!=null),t(we!=null),be=de[0];var Ct=we[0];for(t(Ne!=null),t(Ye!=null),Ne[0]=null,Se[0]=null,Ye[0]=0;;){if(de[0]=be,we[0]=Ct,8>Ct){de=7;break e}var Fn=We(Be,be+4);if(4294967286<Fn){de=3;break e}var bt=8+Fn+1&-2;if(wt+=bt,0<Ve&&wt>Ve){de=3;break e}if(!n(Be,be,"VP8 ")||!n(Be,be,"VP8L")){de=0;break e}if(Ct[0]<bt){de=7;break e}n(Be,be,"ALPH")||(Ne[0]=Be,Se[0]=be+8,Ye[0]=Fn),be+=bt,Ct-=bt}}if(y=y[0],re.na=re.na[0],re.P=re.P[0],re.Sa=re.Sa[0],de!=0)break}y=[y],re.Ja=[re.Ja],re.xa=[re.xa];e:if(Ve=u,de=f,we=y,Ne=re.gb[0],Se=re.Ja,Ye=re.xa,Be=de[0],be=!n(Ve,Be,"VP8 "),wt=!n(Ve,Be,"VP8L"),t(Ve!=null),t(we!=null),t(Se!=null),t(Ye!=null),8>we[0])de=7;else{if(be||wt){if(Ve=We(Ve,Be+4),12<=Ne&&Ve>Ne-12){de=3;break e}if(G&&Ve>we[0]-8){de=7;break e}Se[0]=Ve,de[0]+=8,we[0]-=8,Ye[0]=wt}else Ye[0]=5<=we[0]&&Ve[Be+0]==47&&!(Ve[Be+4]>>5),Se[0]=we[0];de=0}if(y=y[0],re.Ja=re.Ja[0],re.xa=re.xa[0],f=f[0],de!=0)break;if(4294967286<re.Ja)return 3;if(O==null||ve||(O[0]=re.xa?2:1),R=[R],ce=[ce],re.xa){if(5>y){de=7;break}O=R,G=ce,ve=T,u==null||5>y?u=0:5<=y&&u[f+0]==47&&!(u[f+4]>>5)?(we=[0],Ve=[0],Ne=[0],te(Se=new B,u,f,y),Ms(Se,we,Ve,Ne)?(O!=null&&(O[0]=we[0]),G!=null&&(G[0]=Ve[0]),ve!=null&&(ve[0]=Ne[0]),u=1):u=0):u=0}else{if(10>y){de=7;break}O=ce,u==null||10>y||!Rh(u,f+3,y-3)?u=0:(G=u[f+0]|u[f+1]<<8|u[f+2]<<16,ve=16383&(u[f+7]<<8|u[f+6]),u=16383&(u[f+9]<<8|u[f+8]),1&G||3<(G>>1&7)||!(G>>4&1)||G>>5>=re.Ja||!ve||!u?u=0:(R&&(R[0]=ve),O&&(O[0]=u),u=1))}if(!u||(R=R[0],ce=ce[0],he&&(V[0]!=R||ne[0]!=ce)))return 3;F!=null&&(F[0]=re,F.offset=f-F.w,t(4294967286>f-F.w),t(F.offset==F.ha-y));break}return de==0||de==7&&he&&F==null?(T!=null&&(T[0]|=re.na!=null&&0<re.na.length),S!=null&&(S[0]=R),C!=null&&(C[0]=ce),0):de}function bi(u,f,y){var S=f.width,C=f.height,T=0,R=0,O=S,F=C;if(f.Da=u!=null&&0<u.Da,f.Da&&(O=u.cd,F=u.bd,T=u.v,R=u.j,11>y||(T&=-2,R&=-2),0>T||0>R||0>=O||0>=F||T+O>S||R+F>C))return 0;if(f.v=T,f.j=R,f.va=T+O,f.o=R+F,f.U=O,f.T=F,f.da=u!=null&&0<u.da,f.da){if(!Je(O,F,y=[u.ib],T=[u.hb]))return 0;f.ib=y[0],f.hb=T[0]}return f.ob=u!=null&&u.ob,f.Kb=u==null||!u.Sd,f.da&&(f.ob=f.ib<3*S/4&&f.hb<3*C/4,f.Kb=0),1}function Ba(u){if(u==null)return 2;if(11>u.S){var f=u.f.RGBA;f.fb+=(u.height-1)*f.A,f.A=-f.A}else f=u.f.kb,u=u.height,f.O+=(u-1)*f.fa,f.fa=-f.fa,f.N+=(u-1>>1)*f.Ab,f.Ab=-f.Ab,f.W+=(u-1>>1)*f.Db,f.Db=-f.Db,f.F!=null&&(f.J+=(u-1)*f.lb,f.lb=-f.lb);return 0}function Ru(u,f,y,S){if(S==null||0>=u||0>=f)return 2;if(y!=null){if(y.Da){var C=y.cd,T=y.bd,R=-2&y.v,O=-2&y.j;if(0>R||0>O||0>=C||0>=T||R+C>u||O+T>f)return 2;u=C,f=T}if(y.da){if(!Je(u,f,C=[y.ib],T=[y.hb]))return 2;u=C[0],f=T[0]}}S.width=u,S.height=f;e:{var F=S.width,V=S.height;if(u=S.S,0>=F||0>=V||!(u>=Vh&&13>u))u=2;else{if(0>=S.Rd&&S.sd==null){R=T=C=f=0;var ne=(O=F*Ly[u])*V;if(11>u||(T=(V+1)/2*(f=(F+1)/2),u==12&&(R=(C=F)*V)),(V=s(ne+2*T+R))==null){u=1;break e}S.sd=V,11>u?((F=S.f.RGBA).eb=V,F.fb=0,F.A=O,F.size=ne):((F=S.f.kb).y=V,F.O=0,F.fa=O,F.Fd=ne,F.f=V,F.N=0+ne,F.Ab=f,F.Cd=T,F.ea=V,F.W=0+ne+T,F.Db=f,F.Ed=T,u==12&&(F.F=V,F.J=0+ne+2*T),F.Tc=R,F.lb=C)}if(f=1,C=S.S,T=S.width,R=S.height,C>=Vh&&13>C)if(11>C)u=S.f.RGBA,f&=(O=Math.abs(u.A))*(R-1)+T<=u.size,f&=O>=T*Ly[C],f&=u.eb!=null;else{u=S.f.kb,O=(T+1)/2,ne=(R+1)/2,F=Math.abs(u.fa),V=Math.abs(u.Ab);var he=Math.abs(u.Db),G=Math.abs(u.lb),re=G*(R-1)+T;f&=F*(R-1)+T<=u.Fd,f&=V*(ne-1)+O<=u.Cd,f=(f&=he*(ne-1)+O<=u.Ed)&F>=T&V>=O&he>=O,f&=u.y!=null,f&=u.f!=null,f&=u.ea!=null,C==12&&(f&=G>=T,f&=re<=u.Tc,f&=u.F!=null)}else f=0;u=f?0:2}}return u!=0||y!=null&&y.fd&&(u=Ba(S)),u}var Wl=64,Ua=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],ju=24,_r=32,jr=8,Vl=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
vendor: 2,583 bytes, line 280
2806,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];De("Predictor0","PredictorAdd0"),D.Predictor0=function(){return 4278190080},D.Predictor1=function(u){return u},D.Predictor2=function(u,f,y){return f[y+0]},D.Predictor3=function(u,f,y){return f[y+1]},D.Predictor4=function(u,f,y){return f[y-1]},D.Predictor5=function(u,f,y){return $e($e(u,f[y+1]),f[y+0])},D.Predictor6=function(u,f,y){return $e(u,f[y-1])},D.Predictor7=function(u,f,y){return $e(u,f[y+0])},D.Predictor8=function(u,f,y){return $e(f[y-1],f[y+0])},D.Predictor9=function(u,f,y){return $e(f[y+0],f[y+1])},D.Predictor10=function(u,f,y){return $e($e(u,f[y-1]),$e(f[y+0],f[y+1]))},D.Predictor11=function(u,f,y){var S=f[y+0];return 0>=at(S>>24&255,u>>24&255,(f=f[y-1])>>24&255)+at(S>>16&255,u>>16&255,f>>16&255)+at(S>>8&255,u>>8&255,f>>8&255)+at(255&S,255&u,255&f)?S:u},D.Predictor12=function(u,f,y){var S=f[y+0];return(Dt((u>>24&255)+(S>>24&255)-((f=f[y-1])>>24&255))<<24|Dt((u>>16&255)+(S>>16&255)-(f>>16&255))<<16|Dt((u>>8&255)+(S>>8&255)-(f>>8&255))<<8|Dt((255&u)+(255&S)-(255&f)))>>>0},D.Predictor13=function(u,f,y){var S=f[y-1];return(At((u=$e(u,f[y+0]))>>24&255,S>>24&255)<<24|At(u>>16&255,S>>16&255)<<16|At(u>>8&255,S>>8&255)<<8|At(255&u,255&S))>>>0};var So=D.PredictorAdd0;D.PredictorAdd1=vt,De("Predictor2","PredictorAdd2"),De("Predictor3","PredictorAdd3"),De("Predictor4","PredictorAdd4"),De("Predictor5","PredictorAdd5"),De("Predictor6","PredictorAdd6"),De("Predictor7","PredictorAdd7"),De("Predictor8","PredictorAdd8"),De("Predictor9","PredictorAdd9"),De("Predictor10","PredictorAdd10"),De("Predictor11","PredictorAdd11"),De("Predictor12","PredictorAdd12"),De("Predictor13","PredictorAdd13");var ko=D.PredictorAdd2;Ke("ColorIndexInverseTransform","MapARGB","32b",function(u){return u>>8&255},function(u){return u}),Ke("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(u){return u},function(u){return u>>8&255});var Gl,za=D.ColorIndexInverseTransform,Rn=D.MapARGB,fg=D.VP8LColorIndexInverseTransformAlpha,fs=D.MapAlpha,Mi=D.VP8LPredictorsAdd=[];Mi.length=16,(D.VP8LPredictors=[]).length=16,(D.VP8LPredictorsAdd_C=[]).length=16,(D.VP8LPredictors_C=[]).length=16;var qa,Ou,Iu,$l,Ha,Wa,No,Vs,Eo,Kl,lr,ps,Qt,Yt,_n,Dn,Gs,Du,Ql,Hh,oy,ay,ly,cy,Fu,uy,dy,hy,fy=s(511),py=s(2041
vendor: 4,704 bytes, line 280
280),gy=s(225),my=s(767),vy=0,pg=py,Wh=gy,Kr=my,xi=fy,Vh=0,Gh=1,yy=2,$h=3,Kh=4,gg=5,wy=6,mg=7,vg=8,Qh=9,yg=10,bk=[2,3,7],xk=[3,3,11],by=[280,256,256,256,40],_k=[0,1,1,1,0],Ak=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Sk=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],kk=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Nk=8,wg=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],bg=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Mu=null,Ek=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Ck=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],xy=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Pk=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,25
2805,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Lk=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,
2801,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Tk=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,25
vendor: 23,748 bytes, lines 280-304
2805,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Rk=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Co=[],Bi=[],$s=[],jk=1,_y=2,Po=[],_i=[];or("UpsampleRgbLinePair",Da,3),or("UpsampleBgrLinePair",zl,3),or("UpsampleRgbaLinePair",Tu,4),or("UpsampleBgraLinePair",Ma,4),or("UpsampleArgbLinePair",Fa,4),or("UpsampleRgba4444LinePair",ar,2),or("UpsampleRgb565LinePair",ql,2);var Ok=D.UpsampleRgbLinePair,Ik=D.UpsampleBgrLinePair,Ay=D.UpsampleRgbaLinePair,Sy=D.UpsampleBgraLinePair,ky=D.UpsampleArgbLinePair,Ny=D.UpsampleRgba4444LinePair,Dk=D.UpsampleRgb565LinePair,Yh=16,Xh=1<<Yh-1,Bu=-227,xg=482,Ey=6,Fk=(256<<Ey)-1,Cy=0,Mk=s(256),Bk=s(256),Uk=s(256),zk=s(256),qk=s(xg-Bu),Hk=s(xg-Bu);hs("YuvToRgbRow",Da,3),hs("YuvToBgrRow",zl,3),hs("YuvToRgbaRow",Tu,4),hs("YuvToBgraRow",Ma,4),hs("YuvToArgbRow",Fa,4),hs("YuvToRgba4444Row",ar,2),hs("YuvToRgb565Row",ql,2);var Py=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Jh=[0,2,8],Wk=[8,7,6,4,4,2,2,2,1,1,1,1],Vk=1;this.WebPDecodeRGBA=function(u,f,y,S,C){var T=Gh,R=new J,O=new ot;R.ba=O,O.S=T,O.width=[O.width],O.height=[O.height];var F=O.width,V=O.height,ne=new et;if(ne==null||u==null)var he=2;else t(ne!=null),he=qh(u,f,y,ne.width,ne.height,ne.Pd,ne.Qd,ne.format,null);if(he!=0?F=0:(F!=null&&(F[0]=ne.width[0]),V!=null&&(V[0]=ne.height[0]),F=1),F){O.width=O.width[0],O.height=O.height[0],S!=null&&(S[0]=O.width),C!=null&&(C[0]=O.height);e:{if(S=new Rl,(C=new ie).data=u,C.w=f,C.ha=y,C.kd=1,f=[0],t(C!=null),((u=qh(C.data,C.w,C.ha,null,null,null,f,null,C))==0||u==7)&&f[0]&&(u=4),(f=u)==0){if(t(R!=null),S.data=C.data,S.w=C.w+C.offset,S.ha=C.ha-C.offset,S.put=st,S.ac=ss,S.bc=Fs,S.ma=R,C.xa){if((u=Pa())==null){R=1;break e}if(function(G,re){var ce=[0],ve=[0],de=[0];t:for(;;){if(G==null)return 0;if(re==null)return G.a=2,0;if(G.l=re,G.a=0,te(G.m,re.data,re.w,re.ha),!Ms(G.m,ce,ve,de)){G.a=3;break t}if(G.xb=_y,re.width=ce[0],re.height=ve[0],!as(ce[0],ve[0],1,G,null))break t;return 1}return t(G.a!=0),0}(u,S)){if(S=(f=Ru(S.width,S.height,R.Oa,R.ba))==0){t:{S=u;n:for(;;){if(S==null){S=0;break t}if(t(S.s.yc!=null),t(S.s.Ya!=null),t(0<S.s.Wb),t((y=S.l)!=null),t((C=y.ma)!=null),S.xb!=0){if(S.ca=C.ba,S.tb=C.tb,t(S.ca!=null),!bi(C.Oa,y,$h)){S.a=2;break n}if(!La(S,y.width)||y.da)break n;if((y.da||je(S.ca.S))&&dn(),11>S.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),S.ca.f.kb.F!=null&&dn()),S.Pb&&0<S.s.ua&&S.s.vb.X==null&&!z(S.s.vb,S.s.Wa.Xa)){S.a=1;break n}S.xb=0}if(!Fi(S,S.V,S.Ba,S.c,S.i,y.o,wo))break n;C.Dc=S.Ma,S=1;break t}t(S.a!=0),S=0}S=!S}S&&(f=u.a)}else f=u.a}else{if((u=new Y0)==null){R=1;break e}if(u.Fa=C.na,u.P=C.P,u.qc=C.Sa,cs(u,S)){if((f=Ru(S.width,S.height,R.Oa,R.ba))==0){if(u.Aa=0,y=R.Oa,t((C=u)!=null),y!=null){if(0<(F=0>(F=y.Md)?0:100<F?255:255*F/100)){for(V=ne=0;4>V;++V)12>(he=C.pb[V]).lc&&(he.ia=F*Wk[0>he.lc?0:he.lc]>>3),ne|=he.ia;ne&&(alert("todo:VP8InitRandom"),C.ia=1)}C.Ga=y.Id,100<C.Ga?C.Ga=100:0>C.Ga&&(C.Ga=0)}(function(G,re){if(G==null)return 0;if(re==null)return Ln(G,2,"NULL VP8Io parameter in VP8Decode().");if(!G.cb&&!cs(G,re))return 0;if(t(G.cb),re.ac==null||re.ac(re)){re.ob&&(G.L=0);var ce=Jh[G.L];if(G.L==2?(G.yb=0,G.zb=0):(G.yb=re.v-ce>>4,G.zb=re.j-ce>>4,0>G.yb&&(G.yb=0),0>G.zb&&(G.zb=0)),G.Va=re.o+15+ce>>4,G.Hb=re.va+15+ce>>4,G.Hb>G.za&&(G.Hb=G.za),G.Va>G.Ub&&(G.Va=G.Ub),0<G.L){var ve=G.ed;for(ce=0;4>ce;++ce){var de;if(G.Qa.Cb){var we=G.Qa.Lb[ce];G.Qa.Fb||(we+=ve.Tb)}else we=ve.Tb;for(de=0;1>=de;++de){var be=G.gd[ce][de],Ne=we;if(ve.Pc&&(Ne+=ve.vd[0],de&&(Ne+=ve.od[0])),0<(Ne=0>Ne?0:63<Ne?63:Ne)){var Se=Ne;0<ve.wb&&(Se=4<ve.wb?Se>>2:Se>>1)>9-ve.wb&&(Se=9-ve.wb),1>Se&&(Se=1),be.dd=Se,be.tc=2*Ne+Se,be.ld=40<=Ne?2:15<=Ne?1:0}else be.tc=0;be.La=de}}}ce=0}else Ln(G,6,"Frame setup failed"),ce=G.a;if(ce=ce==0){if(ce){G.$c=0,0<G.Aa||(G.Ic=Vk);t:{ce=G.Ic,ve=4*(Se=G.za);var Ye=32*Se,Be=Se+1,wt=0<G.L?Se*(0<G.Aa?2:1):0,Ve=(G.Aa==2?2:1)*Se;if((be=ve+832+(de=3*(16*ce+Jh[G.L])/2*Ye)+(we=G.Fa!=null&&0<G.Fa.length?G.Kc.c*G.Kc.i:0))!=be)ce=0;else{if(be>G.Vb){if(G.Vb=0,G.Ec=s(be),G.Fc=0,G.Ec==null){ce=Ln(G,1,"no memory during frame initialization.");break t}G.Vb=be}be=G.Ec,Ne=G.Fc,G.Ac=be,G.Bc=Ne,Ne+=ve,G.Gd=o(Ye,Lh),G.Hd=0,G.rb=o(Be+1,xu),G.sb=1,G.wa=wt?o(wt,wi):null,G.Y=0,G.D.Nb=0,G.D.wa=G.wa,G.D.Y=G.Y,0<G.Aa&&(G.D.Y+=Se),t(!0),G.oc=be,G.pc=Ne,Ne+=832,G.ya=o(Ve,_u),G.aa=0,G.D.ya=G.ya,G.D.aa=G.aa,G.Aa==2&&(G.D.aa+=Se),G.R=16*Se,G.B=8*Se,Se=(Ye=Jh[G.L])*G.R,Ye=Ye/2*G.B,G.sa=be,G.ta=Ne+Se,G.qa=G.sa,G.ra=G.ta+16*ce*G.R+Ye,G.Ha=G.qa,G.Ia=G.ra+8*ce*G.B+Ye,G.$c=0,Ne+=de,G.mb=we?be:null,G.nb=we?Ne:null,t(Ne+we<=G.Fc+G.Vb),Au(G),i(G.Ac,G.Bc,0,ve),ce=1}}if(ce){if(re.ka=0,re.y=G.sa,re.O=G.ta,re.f=G.qa,re.N=G.ra,re.ea=G.Ha,re.Vd=G.Ia,re.fa=G.R,re.Rc=G.B,re.F=null,re.J=0,!vy){for(ce=-255;255>=ce;++ce)fy[255+ce]=0>ce?-ce:ce;for(ce=-1020;1020>=ce;++ce)py[1020+ce]=-128>ce?-128:127<ce?127:ce;for(ce=-112;112>=ce;++ce)gy[112+ce]=-16>ce?-16:15<ce?15:ce;for(ce=-255;510>=ce;++ce)my[255+ce]=0>ce?0:255<ce?255:ce;vy=1}No=Oh,Vs=X0,Kl=J0,lr=Z0,ps=us,Eo=jh,Qt=Fh,Yt=Mh,_n=Uh,Dn=m,Gs=Bh,Du=ja,Ql=E,Hh=H,oy=Bl,ay=Pu,ly=Ul,cy=Dh,Bi[0]=og,Bi[1]=Dl,Bi[2]=ig,Bi[3]=sg,Bi[4]=ag,Bi[5]=Us,Bi[6]=lg,Bi[7]=zs,Bi[8]=ug,Bi[9]=cg,Co[0]=Ih,Co[1]=eg,Co[2]=tg,Co[3]=ng,Co[4]=xo,Co[5]=rg,Co[6]=Ta,$s[0]=dg,$s[1]=Su,$s[2]=Fl,$s[3]=ku,$s[4]=hg,$s[5]=Ml,$s[6]=Nu,ce=1}else ce=0}ce&&(ce=function(Ct,Fn){for(Ct.M=0;Ct.M<Ct.Va;++Ct.M){var bt,Ge=Ct.Jc[Ct.M&Ct.Xb],Te=Ct.m,An=Ct;for(bt=0;bt<An.za;++bt){var mt=Te,Tt=An,tn=Tt.Ac,Yn=Tt.Bc+4*bt,Ar=Tt.zc,mn=Tt.ya[Tt.aa+bt];if(Tt.Qa.Bb?mn.$b=ye(mt,Tt.Pa.jb[0])?2+ye(mt,Tt.Pa.jb[2]):ye(mt,Tt.Pa.jb[1]):mn.$b=0,Tt.kc&&(mn.Ad=ye(mt,Tt.Bd)),mn.Za=!ye(mt,145)+0,mn.Za){var cr=mn.Ob,Sr=0;for(Tt=0;4>Tt;++Tt){var Mn,jt=Ar[0+Tt];for(Mn=0;4>Mn;++Mn){jt=Lk[tn[Yn+Mn]][jt];for(var Ut=xy[ye(mt,jt[0])];0<Ut;)Ut=xy[2*Ut+ye(mt,jt[Ut])];jt=-Ut,tn[Yn+Mn]=jt}r(cr,Sr,tn,Yn,4),Sr+=4,Ar[0+Tt]=jt}}else jt=ye(mt,156)?ye(mt,128)?1:3:ye(mt,163)?2:0,mn.Ob[0]=jt,i(tn,Yn,jt,4),i(Ar,0,jt,4);mn.Dd=ye(mt,142)?ye(mt,114)?ye(mt,183)?1:3:2:0}if(An.m.Ka)return Ln(Ct,7,"Premature end-of-partition0 encountered.");for(;Ct.ja<Ct.za;++Ct.ja){if(An=Ge,mt=(Te=Ct).rb[Te.sb-1],tn=Te.rb[Te.sb+Te.ja],bt=Te.ya[Te.aa+Te.ja],Yn=Te.kc?bt.Ad:0)mt.la=tn.la=0,bt.Za||(mt.Na=tn.Na=0),bt.Hc=0,bt.Gc=0,bt.ia=0;else{var vn,zt;if(mt=tn,tn=An,Yn=Te.Pa.Xc,Ar=Te.ya[Te.aa+Te.ja],mn=Te.pb[Ar.$b],Tt=Ar.ad,cr=0,Sr=Te.rb[Te.sb-1],jt=Mn=0,i(Tt,cr,0,384),Ar.Za)var Xn=0,Ui=Yn[3];else{Ut=s(16);var Sn=mt.Na+Sr.Na;if(Sn=Mu(tn,Yn[1],Sn,mn.Eb,0,Ut,0),mt.Na=Sr.Na=(0<Sn)+0,1<Sn)No(Ut,0,Tt,cr);else{var Or=Ut[0]+3>>3;for(Ut=0;256>Ut;Ut+=16)Tt[cr+Ut]=Or}Xn=1,Ui=Yn[0]}var $t=15&mt.la,Bn=15&Sr.la;for(Ut=0;4>Ut;++Ut){var Qr=1&Bn;for(Or=zt=0;4>Or;++Or)$t=$t>>1|(Qr=(Sn=Mu(tn,Ui,Sn=Qr+(1&$t),mn.Sc,Xn,Tt,cr))>Xn)<<7,zt=zt<<2|(3<Sn?3:1<Sn?2:Tt[cr+0]!=0),cr+=16;$t>>=4,Bn=Bn>>1|Qr<<7,Mn=(Mn<<8|zt)>>>0}for(Ui=$t,Xn=Bn>>4,vn=0;4>vn;vn+=2){for(zt=0,$t=mt.la>>4+vn,Bn=Sr.la>>4+vn,Ut=0;2>Ut;++Ut){for(Qr=1&Bn,Or=0;2>Or;++Or)Sn=Qr+(1&$t),$t=$t>>1|(Qr=0<(Sn=Mu(tn,Yn[2],Sn,mn.Qc,0,Tt,cr)))<<3,zt=zt<<2|(3<Sn?3:1<Sn?2:Tt[cr+0]!=0),cr+=16;$t>>=2,Bn=Bn>>1|Qr<<5}jt|=zt<<4*vn,Ui|=$t<<4<<vn,Xn|=(240&Bn)<<vn}mt.la=Ui,Sr.la=Xn,Ar.Hc=Mn,Ar.Gc=jt,Ar.ia=43690&jt?0:mn.ia,Yn=!(Mn|jt)}if(0<Te.L&&(Te.wa[Te.Y+Te.ja]=Te.gd[bt.$b][bt.Za],Te.wa[Te.Y+Te.ja].La|=!Yn),An.Ka)return Ln(Ct,7,"Premature end-of-file encountered.")}if(Au(Ct),Te=Fn,An=1,bt=(Ge=Ct).D,mt=0<Ge.L&&Ge.M>=Ge.zb&&Ge.M<=Ge.Va,Ge.Aa==0)t:{if(bt.M=Ge.M,bt.uc=mt,Hl(Ge,bt),An=1,bt=(zt=Ge.D).Nb,mt=(jt=Jh[Ge.L])*Ge.R,tn=jt/2*Ge.B,Ut=16*bt*Ge.R,Or=8*bt*Ge.B,Yn=Ge.sa,Ar=Ge.ta-mt+Ut,mn=Ge.qa,Tt=Ge.ra-tn+Or,cr=Ge.Ha,Sr=Ge.Ia-tn+Or,Bn=($t=zt.M)==0,Mn=$t>=Ge.Va-1,Ge.Aa==2&&Hl(Ge,zt),zt.uc)for(Qr=(Sn=Ge).D.M,t(Sn.D.uc),zt=Sn.yb;zt<Sn.Hb;++zt){Xn=zt,Ui=Qr;var kr=(Yr=(Jn=Sn).D).Nb;vn=Jn.R;var Yr=Yr.wa[Yr.Y+Xn],Xr=Jn.sa,Ir=Jn.ta+16*kr*vn+16*Xn,Jr=Yr.dd,Xt=Yr.tc;if(Xt!=0)if(t(3<=Xt),Jn.L==1)0<Xn&&ay(Xr,Ir,vn,Xt+4),Yr.La&&cy(Xr,Ir,vn,Xt),0<Ui&&oy(Xr,Ir,vn,Xt+4),Yr.La&&ly(Xr,Ir,vn,Xt);else{var Zr=Jn.B,zi=Jn.qa,Va=Jn.ra+8*kr*Zr+8*Xn,Ks=Jn.Ha,Jn=Jn.Ia+8*kr*Zr+8*Xn;kr=Yr.ld,0<Xn&&(Yt(Xr,Ir,vn,Xt+4,Jr,kr),Dn(zi,Va,Ks,Jn,Zr,Xt+4,Jr,kr)),Yr.La&&(Du(Xr,Ir,vn,Xt,Jr,kr),Hh(zi,Va,Ks,Jn,Zr,Xt,Jr,kr)),0<Ui&&(Qt(Xr,Ir,vn,Xt+4,Jr,kr),_n(zi,Va,Ks,Jn,Zr,Xt+4,Jr,kr)),Yr.La&&(Gs(Xr,Ir,vn,Xt,Jr,kr),Ql(zi,Va,Ks,Jn,Zr,Xt,Jr,kr))}}if(Ge.ia&&alert("todo:DitherRow"),Te.put!=null){if(zt=16*$t,$t=16*($t+1),Bn?(Te.y=Ge.sa,Te.O=Ge.ta+Ut,Te.f=Ge.qa,Te.N=Ge.ra+Or,Te.ea=Ge.Ha,Te.W=Ge.Ia+Or):(zt-=jt,Te.y=Yn,Te.O=Ar,Te.f=mn,Te.N=Tt,Te.ea=cr,Te.W=Sr),Mn||($t-=jt),$t>Te.o&&($t=Te.o),Te.F=null,Te.J=null,Ge.Fa!=null&&0<Ge.Fa.length&&zt<$t&&(Te.J=Tn(Ge,Te,zt,$t-zt),Te.F=Ge.mb,Te.F==null&&Te.F.length==0)){An=Ln(Ge,3,"Could not decode alpha data.");break t}zt<Te.j&&(jt=Te.j-zt,zt=Te.j,t(!(1&jt)),Te.O+=Ge.R*jt,Te.N+=Ge.B*(jt>>1),Te.W+=Ge.B*(jt>>1),Te.F!=null&&(Te.J+=Te.width*jt)),zt<$t&&(Te.O+=Te.v,Te.N+=Te.v>>1,Te.W+=Te.v>>1,Te.F!=null&&(Te.J+=Te.v),Te.ka=zt-Te.j,Te.U=Te.va-Te.v,Te.T=$t-zt,An=Te.put(Te))}bt+1!=Ge.Ic||Mn||(r(Ge.sa,Ge.ta-mt,Yn,Ar+16*Ge.R,mt),r(Ge.qa,Ge.ra-tn,mn,Tt+8*Ge.B,tn),r(Ge.Ha,Ge.Ia-tn,cr,Sr+8*Ge.B,tn))}if(!An)return Ln(Ct,6,"Output aborted.")}return 1}(G,re)),re.bc!=null&&re.bc(re),ce&=1}return ce?(G.cb=0,ce):0})(u,S)||(f=u.a)}}else f=u.a}f==0&&R.Oa!=null&&R.Oa.fd&&(f=Ba(R.ba))}R=f}T=R!=0?null:11>T?O.f.RGBA.eb:O.f.kb.y}else T=null;return T};var Ly=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(D,X){for(var L="",j=0;j<4;j++)L+=String.fromCharCode(D[X++]);return L}function d(D,X){return D[X+0]|D[X+1]<<8}function g(D,X){return(D[X+0]|D[X+1]<<8|D[X+2]<<16)>>>0}function p(D,X){return(D[X+0]|D[X+1]<<8|D[X+2]<<16|D[X+3]<<24)>>>0}new l;var h=[0],b=[0],w=[],_=new l,v=e,x=function(D,X){var L={},j=0,Y=!1,q=0,se=0;if(L.frames=[],!function(P,B){for(var Q=0;Q<4;Q++)if(P[B+Q]!="RIFF".charCodeAt(Q))return!0;return!1}(D,X)){for(p(D,X+=4),X+=8;X<D.length;){var oe=c(D,X),ue=p(D,X+=4);X+=4;var U=ue+(1&ue);switch(oe){case"VP8 ":case"VP8L":L.frames[j]===void 0&&(L.frames[j]={}),(ae=L.frames[j]).src_off=Y?se:X-8,ae.src_size=q+ue+8,j++,Y&&(Y=!1,q=0,se=0);break;case"VP8X":(ae=L.header={}).feature_flags=D[X];var te=X+4;ae.canvas_width=1+g(D,te),te+=3,ae.canvas_height=1+g(D,te),te+=3;break;case"ALPH":Y=!0,q=U+8,se=X-8;break;case"ANIM":(ae=L.header).bgcolor=p(D,X),te=X+4,ae.loop_count=d(D,te),te+=2;break;case"ANMF":var fe,ae;(ae=L.frames[j]={}).offset_x=2*g(D,X),X+=3,ae.offset_y=2*g(D,X),X+=3,ae.width=1+g(D,X),X+=3,ae.height=1+g(D,X),X+=3,ae.duration=g(D,X),X+=3,fe=D[X++],ae.dispose=1&fe,ae.blend=fe>>1&1}oe!="ANMF"&&(X+=U)}return L}}(v,0);x.response=v,x.rgbaoutput=!0,x.dataurl=!1;var A=x.header?x.header:null,N=x.frames?x.frames:null;if(A){A.loop_counter=A.loop_count,h=[A.canvas_height],b=[A.canvas_width];for(var I=0;I<N.length&&N[I].blend!=0;I++);}var $=N[0],K=_.WebPDecodeRGBA(v,$.src_off,$.src_size,b,h);$.rgba=K,$.imgwidth=b[0],$.imgheight=h[0];for(var M=0;M<b[0]*h[0]*4;M++)w[M]=K[M];return this.width=b,this.height=h,this.data=w,this}/** ====================================================================
281 * @license
282 * jsPDF XMP metadata plugin
283 * Copyright (c) 2016 Jussi Utunen, [email protected]
284 *
285 * Permission is hereby granted, free of charge, to any person obtaining
286 * a copy of this software and associated documentation files (the
287 * "Software"), to deal in the Software without restriction, including
288 * without limitation the rights to use, copy, modify, merge, publish,
289 * distribute, sublicense, and/or sell copies of the Software, and to
290 * permit persons to whom the Software is furnished to do so, subject to
291 * the following conditions:
292 *
293 * The above copyright notice and this permission notice shall be
294 * included in all copies or substantial portions of the Software.
295 *
296 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
297 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
298 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
299 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
300 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
301 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
302 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
303 * ====================================================================
304 */function YO(){var e,t=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?n:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+e.length+" >>"),this.internal.write("stream"),this.internal.write(e),this.internal.write("endstream"),this.internal.write("endobj")}function XO(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var t,n,r,i,s,o,a,l,c,d=function(P){return P=P||{},this.isStrokeTransparent=P.isStrokeTransparent||!1,this.strokeOpacity=P.strokeOpacity||1,this.strokeStyle=P.strokeStyle||"#000000",this.fillStyle=P.fillStyle||"#000000",this.isFillTransparent=P.isFillTransparent||!1,this.fillOpacity=P.fillOpacity||1,this.font=P.font||"10px sans-serif",this.textBaseline=P.textBaseline||"alphabetic",this.textAlign=P.textAlign||"left",this.lineWidth=P.lineWidth||1,this.lineJoin=P.lineJoin||"miter",this.lineCap=P.lineCap||"butt",this.path=P.path||[],this.transform=P.transform!==void 0?P.transform.clone():new l,this.globalCompositeOperation=P.globalCompositeOperation||"normal",this.globalAlpha=P.globalAlpha||1,this.clip_path=P.clip_path||[],this.currentPoint=P.currentPoint||new o,this.miterLimit=P.miterLimit||10,this.lastPoint=P.lastPoint||new o,this.lineDashOffset=P.lineDashOffset||0,this.lineDash=P.lineDash||[],this.margin=P.margin||[0,0,0,0],this.prevPageLastElemOffset=P.prevPageLastElemOffset||0,this.ignoreClearRect=typeof P.ignoreClearRect!="boolean"||P.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new g(this),t=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,o=this.internal.Point,a=this.internal.Rectangle,l=this.internal.Matrix,c=new d}]);var g=function(P){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var B=P;Object.defineProperty(this,"pdf",{get:function(){return B}});var Q=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Q},set:function(z){Q=!!z}});var Z=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Z},set:function(z){Z=!!z}});var ee=0;Object.defineProperty(this,"posX",{get:function(){return ee},set:function(z){isNaN(z)||(ee=z)}});var le=0;Object.defineProperty(this,"posY",{get:function(){return le},set:function(z){isNaN(z)||(le=z)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(z){var Ce;typeof z=="number"?Ce=[z,z,z,z]:((Ce=new Array(4))[0]=z[0],Ce[1]=z.length>=2?z[1]:Ce[0],Ce[2]=z.length>=3?z[2]:Ce[0],Ce[3]=z.length>=4?z[3]:Ce[1]),c.margin=Ce}});var pe=!1;Object.defineProperty(this,"autoPaging",{get:function(){return pe},set:function(z){pe=z}});var ge=0;Object.defineProperty(this,"lastBreak",{get:function(){return ge},set:function(z){ge=z}});var ye=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ye},set:function(z){ye=z}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(z){z instanceof d&&(c=z)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(z){c.path=z}});var ke=[];Object.defineProperty(this,"ctxStack",{get:function(){return ke},set:function(z){ke=z}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(z){var Ce;Ce=p(z),this.ctx.fillStyle=Ce.style,this.ctx.isFillTransparent=Ce.a===0,this.ctx.fillOpacity=Ce.a,this.pdf.setFillColor(Ce.r,Ce.g,Ce.b,{a:Ce.a}),this.pdf.setTextColor(Ce.r,Ce.g,Ce.b,{a:Ce.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(z){var Ce=p(z);this.ctx.strokeStyle=Ce.style,this.ctx.isStrokeTransparent=Ce.a===0,this.ctx.strokeOpacity=Ce.a,Ce.a===0?this.pdf.setDrawColor(255,255,255):(Ce.a,this.pdf.setDrawColor(Ce.r,Ce.g,Ce.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(z){["butt","round","square"].indexOf(z)!==-1&&(this.ctx.lineCap=z,this.pdf.setLineCap(z))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(z){isNaN(z)||(this.ctx.lineWidth=z,this.pdf.setLineWidth(z))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(z){["bevel","round","miter"].indexOf(z)!==-1&&(this.ctx.lineJoin=z,this.pdf.setLineJoin(z))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(z){isNaN(z)||(this.ctx.miterLimit=z,this.pdf.setMiterLimit(z))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(z){this.ctx.textBaseline=z}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(z){["right","end","center","left","start"].indexOf(z)!==-1&&(this.ctx.textAlign=z)}});var Re=null,Le=null,We=null;Object.defineProperty(this,"fontFaces",{get:function(){return We},set:function(z){Re=null,Le=null,We=z}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(z){var Ce;if(this.ctx.font=z,(Ce=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(z))!==null){var ht=Ce[1];Ce[2];var Je=Ce[3],xe=Ce[4];Ce[5];var Qe=Ce[6],De=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(xe)[2];xe=Math.floor(De==="px"?parseFloat(xe)*this.pdf.internal.scaleFactor:De==="em"?parseFloat(xe)*this.pdf.getFontSize():parseFloat(xe)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(xe);var nt=function(Ke){var an,Nt,yt=[],pt=Ke.trim();if(pt==="")return Im;if(pt in qb)return[qb[pt]];for(;pt!=="";){switch(Nt=null,an=(pt=Wb(pt)).charAt(0)){case'"':case"'":Nt=WO(pt.substring(1),an);break;default:Nt=VO(pt)}if(Nt===null||(yt.push(Nt[0]),(pt=Wb(Nt[1]))!==""&&pt.charAt(0)!==","))return Im;pt=pt.replace(/^,/,"")}return yt}(Qe);if(this.fontFaces){var $e=function(Ke,an){var Nt=Ke.getFontList(),yt=JSON.stringify(Nt);if(Re===null||Le!==yt){var pt=function(Rt){var Ze=[];return Object.keys(Rt).forEach(function(Ie){Rt[Ie].forEach(function(je){var Oe=null;switch(je){case"bold":Oe={family:Ie,weight:"bold"};break;case"italic":Oe={family:Ie,style:"italic"};break;case"bolditalic":Oe={family:Ie,weight:"bold",style:"italic"};break;case"":case"normal":Oe={family:Ie}}Oe!==null&&(Oe.ref={name:Ie,style:je},Ze.push(Oe))})}),Ze}(Nt);Re=function(Rt){for(var Ze={},Ie=0;Ie<Rt.length;++Ie){var je=Om(Rt[Ie]),Oe=je.family,Et=je.stretch,ot=je.style,et=je.weight;Ze[Oe]=Ze[Oe]||{},Ze[Oe][Et]=Ze[Oe][Et]||{},Ze[Oe][Et][ot]=Ze[Oe][Et][ot]||{},Ze[Oe][Et][ot][et]=je}return Ze}(pt.concat(an)),Le=yt}return Re}(this.pdf,this.fontFaces),Dt=nt.map(function(Ke){return{family:Ke,stretch:"normal",weight:Je,style:ht}}),At=function(Ke,an,Nt){for(var yt=(Nt=Nt||{}).defaultFontFamily||"times",pt=Object.assign({},HO,Nt.genericFontFamilies||{}),Rt=null,Ze=null,Ie=0;Ie<an.length;++Ie)if(pt[(Rt=Om(an[Ie])).family]&&(Rt.family=pt[Rt.family]),Ke.hasOwnProperty(Rt.family)){Ze=Ke[Rt.family];break}if(!(Ze=Ze||Ke[yt]))throw new Error("Could not find a font-family for the rule '"+Hb(Rt)+"' and default family '"+yt+"'.");if(Ze=function(je,Oe){if(Oe[je])return Oe[je];var Et=yv[je],ot=Et<=yv.normal?-1:1,et=zb(Oe,YS,Et,ot);if(!et)throw new Error("Could not find a matching font-stretch value for "+je);return et}(Rt.stretch,Ze),Ze=function(je,Oe){if(Oe[je])return Oe[je];for(var Et=QS[je],ot=0;ot<Et.length;++ot)if(Oe[Et[ot]])return Oe[Et[ot]];throw new Error("Could not find a matching font-style for "+je)}(Rt.style,Ze),!(Ze=function(je,Oe){if(Oe[je])return Oe[je];if(je===400&&Oe[500])return Oe[500];if(je===500&&Oe[400])return Oe[400];var Et=qO[je],ot=zb(Oe,XS,Et,je<400?-1:1);if(!ot)throw new Error("Could not find a matching font-weight for value "+je);return ot}(Rt.weight,Ze)))throw new Error("Failed to resolve a font for the rule '"+Hb(Rt)+"'.");return Ze}($e,Dt);this.pdf.setFont(At.ref.name,At.ref.style)}else{var at="";(Je==="bold"||parseInt(Je,10)>=700||ht==="bold")&&(at="bold"),ht==="italic"&&(at+="italic"),at.length===0&&(at="normal");for(var vt="",St={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Fe=0;Fe<nt.length;Fe++){if(this.pdf.internal.getFont(nt[Fe],at,{noFallback:!0,disableWarning:!0})!==void 0){vt=nt[Fe];break}if(at==="bolditalic"&&this.pdf.internal.getFont(nt[Fe],"bold",{noFallback:!0,disableWarning:!0})!==void 0)vt=nt[Fe],at="bold";else if(this.pdf.internal.getFont(nt[Fe],"normal",{noFallback:!0,disableWarning:!0})!==void 0){vt=nt[Fe],at="normal";break}}if(vt===""){for(var ut=0;ut<nt.length;ut++)if(St[nt[ut]]){vt=St[nt[ut]];break}}vt=vt===""?"Times":vt,this.pdf.setFont(vt,at)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(z){this.ctx.globalCompositeOperation=z}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(z){this.ctx.globalAlpha=z}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(z){this.ctx.lineDashOffset=z,ae.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(z){this.ctx.lineDash=z,ae.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(z){this.ctx.ignoreClearRect=!!z}})};g.prototype.setLineDash=function(P){this.lineDash=P},g.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},g.prototype.fill=function(){N.call(this,"fill",!1)},g.prototype.stroke=function(){N.call(this,"stroke",!1)},g.prototype.beginPath=function(){this.path=[{type:"begin"}]},g.prototype.moveTo=function(P,B){if(isNaN(P)||isNaN(B))throw Kt.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to 
304jsPDF.context2d.moveTo");var Q=this.ctx.transform.applyToPoint(new o(P,B));this.path.push({type:"mt",x:Q.x,y:Q.y}),this.ctx.lastPoint=new o(P,B)},g.prototype.closePath=function(){var P=new o(0,0),B=0;for(B=this.path.length-1;B!==-1;B--)if(this.path[B].type==="begin"&&Ht(this.path[B+1])==="object"&&typeof this.path[B+1].x=="number"){P=new o(this.path[B+1].x,this.path[B+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(P.x,P.y)},g.prototype.lineTo=function(P,B){if(isNaN(P)||isNaN(B))throw Kt.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Q=this.ctx.transform.applyToPoint(new o(P,B));this.path.push({type:"lt",x:Q.x,y:Q.y}),this.ctx.lastPoint=new o(Q.x,Q.y)},g.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),N.call(this,null,!0)},g.prototype.quadraticCurveTo=function(P,B,Q,Z){if(isNaN(Q)||isNaN(Z)||isNaN(P)||isNaN(B))throw Kt.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ee=this.ctx.transform.applyToPoint(new o(Q,Z)),le=this.ctx.transform.applyToPoint(new o(P,B));this.path.push({type:"qct",x1:le.x,y1:le.y,x:ee.x,y:ee.y}),this.ctx.lastPoint=new o(ee.x,ee.y)},g.prototype.bezierCurveTo=function(P,B,Q,Z,ee,le){if(isNaN(ee)||isNaN(le)||isNaN(P)||isNaN(B)||isNaN(Q)||isNaN(Z))throw Kt.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var pe=this.ctx.transform.applyToPoint(new o(ee,le)),ge=this.ctx.transform.applyToPoint(new o(P,B)),ye=this.ctx.transform.applyToPoint(new o(Q,Z));this.path.push({type:"bct",x1:ge.x,y1:ge.y,x2:ye.x,y2:ye.y,x:pe.x,y:pe.y}),this.ctx.lastPoint=new o(pe.x,pe.y)},g.prototype.arc=function(P,B,Q,Z,ee,le){if(isNaN(P)||isNaN(B)||isNaN(Q)||isNaN(Z)||isNaN(ee))throw Kt.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(le=!!le,!this.ctx.transform.isIdentity){var pe=this.ctx.transform.applyToPoint(new o(P,B));P=pe.x,B=pe.y;var ge=this.ctx.transform.applyToPoint(new o(0,Q)),ye=this.ctx.transform.applyToPoint(new o(0,0));Q=Math.sqrt(Math.pow(ge.x-ye.x,2)+Math.pow(ge.y-ye.y,2))}Math.abs(ee-Z)>=2*Math.PI&&(Z=0,ee=2*Math.PI),this.path.push({type:"arc",x:P,y:B,radius:Q,startAngle:Z,endAngle:ee,counterclockwise:le})},g.prototype.arcTo=function(P,B,Q,Z,ee){throw new Error("arcTo not implemented.")},g.prototype.rect=function(P,B,Q,Z){if(isNaN(P)||isNaN(B)||isNaN(Q)||isNaN(Z))throw Kt.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(P,B),this.lineTo(P+Q,B),this.lineTo(P+Q,B+Z),this.lineTo(P,B+Z),this.lineTo(P,B),this.lineTo(P+Q,B),this.lineTo(P,B)},g.prototype.fillRect=function(P,B,Q,Z){if(isNaN(P)||isNaN(B)||isNaN(Q)||isNaN(Z))throw Kt.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var ee={};this.lineCap!=="butt"&&(ee.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(ee.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(P,B,Q,Z),this.fill(),ee.hasOwnProperty("lineCap")&&(this.lineCap=ee.lineCap),ee.hasOwnProperty("lineJoin")&&(this.lineJoin=ee.lineJoin)}},g.prototype.strokeRect=function(P,B,Q,Z){if(isNaN(P)||isNaN(B)||isNaN(Q)||isNaN(Z))throw Kt.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");b.call(this)||(this.beginPath(),this.rect(P,B,Q,Z),this.stroke())},g.prototype.clearRect=function(P,B,Q,Z){if(isNaN(P)||isNaN(B)||isNaN(Q)||isNaN(Z))throw Kt.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(P,B,Q,Z))},g.prototype.save=function(P){P=typeof P!="boolean"||P;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,Q=0;Q<this.pdf.internal.getNumberOfPages();Q++)this.pdf.setPage(Q+1),this.pdf.internal.out("q");
vendor: 4,163 bytes, line 304
304if(this.pdf.setPage(B),P){this.ctx.fontSize=this.pdf.internal.getFontSize();var Z=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Z}},g.prototype.restore=function(P){P=typeof P!="boolean"||P;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,Q=0;Q<this.pdf.internal.getNumberOfPages();Q++)this.pdf.setPage(Q+1),this.pdf.internal.out("Q");this.pdf.setPage(B),P&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},g.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var p=function(P){var B,Q,Z,ee;if(P.isCanvasGradient===!0&&(P=P.getColor()),!P)return{r:0,g:0,b:0,a:0,style:P};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(P))B=0,Q=0,Z=0,ee=0;else{var le=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(P);if(le!==null)B=parseInt(le[1]),Q=parseInt(le[2]),Z=parseInt(le[3]),ee=1;else if((le=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(P))!==null)B=parseInt(le[1]),Q=parseInt(le[2]),Z=parseInt(le[3]),ee=parseFloat(le[4]);else{if(ee=1,typeof P=="string"&&P.charAt(0)!=="#"){var pe=new qS(P);P=pe.ok?pe.toHex():"#000000"}P.length===4?(B=P.substring(1,2),B+=B,Q=P.substring(2,3),Q+=Q,Z=P.substring(3,4),Z+=Z):(B=P.substring(1,3),Q=P.substring(3,5),Z=P.substring(5,7)),B=parseInt(B,16),Q=parseInt(Q,16),Z=parseInt(Z,16)}}return{r:B,g:Q,b:Z,a:ee,style:P}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},b=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};g.prototype.fillText=function(P,B,Q,Z){if(isNaN(B)||isNaN(Q)||typeof P!="string")throw Kt.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Z=isNaN(Z)?void 0:Z,!h.call(this)){var ee=U(this.ctx.transform.rotation),le=this.ctx.transform.scaleX;j.call(this,{text:P,x:B,y:Q,scale:le,angle:ee,align:this.textAlign,maxWidth:Z})}},g.prototype.strokeText=function(P,B,Q,Z){if(isNaN(B)||isNaN(Q)||typeof P!="string")throw Kt.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!b.call(this)){Z=isNaN(Z)?void 0:Z;var ee=U(this.ctx.transform.rotation),le=this.ctx.transform.scaleX;j.call(this,{text:P,x:B,y:Q,scale:le,renderingMode:"stroke",angle:ee,align:this.textAlign,maxWidth:Z})}},g.prototype.measureText=function(P){if(typeof P!="string")throw Kt.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var B=this.pdf,Q=this.pdf.internal.scaleFactor,Z=B.internal.getFontSize(),ee=B.getStringUnitWidth(P)*Z/B.internal.scaleFactor;return new function(le){var pe=(le=le||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return pe}}),this}({width:ee*=Math.round(96*Q/72*1e4)/1e4})},g.prototype.scale=function(P,B){if(isNaN(P)||isNaN(B))throw Kt.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Q=new l(P,0,0,B,0,0);this.ctx.transform=this.ctx.transform.multiply(Q)},g.prototype.rotate=function(P){if(isNaN(P))throw Kt.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var B=new l(Math.cos(P),Math.sin(P),-Math.sin(P),Math.cos(P),0,0);this.ctx.transform=this.ctx.transform.multiply(B)},g.prototype.translate=function(P,B){if(isNaN(P)||isNaN(B))throw Kt.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Q=new l(1,0,0,1,P,B);this.ctx.transform=this.ctx.transform.multiply(Q)},g.prototype.transform=function(P,B,Q,Z,ee,le){if(isNaN(P)||isNaN(B)||isNaN(Q)||isNaN(Z)||isNaN(ee)||isNaN(le))throw Kt.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to 
304jsPDF.context2d.transform");var pe=new l(P,B,Q,Z,ee,le);this.ctx.transform=this.ctx.transform.multiply(pe)},g.prototype.setTransform=function(P,B,Q,Z,ee,le){P=isNaN(P)?1:P,B=isNaN(B)?0:B,Q=isNaN(Q)?0:Q,Z=isNaN(Z)?1:Z,ee=isNaN(ee)?0:ee,le=isNaN(le)?0:le,this.ctx.transform=new l(P,B,Q,Z,ee,le)};var w=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};g.prototype.drawImage=function(P,B,Q,Z,ee,le,pe,ge,ye){var ke=this.pdf.getImageProperties(P),Re=1,Le=1,We=1,z=1;Z!==void 0&&ge!==void 0&&(We=ge/Z,z=ye/ee,Re=ke.width/Z*ge/Z,Le=ke.height/ee*ye/ee),le===void 0&&(le=B,pe=Q,B=0,Q=0),Z!==void 0&&ge===void 0&&(ge=Z,ye=ee),Z===void 0&&ge===void 0&&(ge=ke.width,ye=ke.height);var Ce=this.ctx.transform.decompose(),ht=U(Ce.rotate.shx),Je=new l,xe=(Je=(Je=(Je=Je.multiply(Ce.translate)).multiply(Ce.skew)).multiply(Ce.scale)).applyToRectangle(new a(le-B*We,pe-Q*z,Z*Re,ee*Le));if(this.autoPaging){for(var Qe,De=_.call(this,xe),nt=[],$e=0;$e<De.length;$e+=1)nt.indexOf(De[$e])===-1&&nt.push(De[$e]);A(nt);for(var Dt=nt[0],At=nt[nt.length-1],at=Dt;at<At+1;at++){this.pdf.setPage(at);var vt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],St=at===1?this.posY+this.margin[0]:this.margin[0],Fe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ut=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ke=at===1?0:Fe+(at-2)*ut;if(this.ctx.clip_path.length!==0){var an=this.path;Qe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(Qe,this.posX+this.margin[3],-Ke+St+this.ctx.prevPageLastElemOffset),I.call(this,"fill",!0),this.path=an}var Nt=JSON.parse(JSON.stringify(xe));Nt=x([Nt],this.posX+this.margin[3],-Ke+St+this.ctx.prevPageLastElemOffset)[0];var yt=(at>Dt||at<At)&&w.call(this);yt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],vt,ut,null).clip().discardPath()),this.pdf.addImage(P,"JPEG",Nt.x,Nt.y,Nt.w,Nt.h,null,null,ht),yt&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(P,"JPEG",xe.x,xe.y,xe.w,xe.h,null,null,ht)};var _=function(P,B,Q){var Z=[];B=B||this.pdf.internal.pageSize.width,Q=Q||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ee=this.posY+this.ctx.prevPageLastElemOffset;switch(P.type){default:case"mt":case"lt":Z.push(Math.floor((P.y+ee)/Q)+1);break;case"arc":Z.push(Math.floor((P.y+ee-P.radius)/Q)+1),Z.push(Math.floor((P.y+ee+P.radius)/Q)+1);break;case"qct":var le=te(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x,P.y);Z.push(Math.floor((le.y+ee)/Q)+1),Z.push(Math.floor((le.y+le.h+ee)/Q)+1);break;case"bct":var pe=fe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x2,P.y2,P.x,P.y);Z.push(Math.floor((pe.y+ee)/Q)+1),Z.push(Math.floor((pe.y+pe.h+ee)/Q)+1);break;case"rect":Z.push(Math.floor((P.y+ee)/Q)+1),Z.push(Math.floor((P.y+P.h+ee)/Q)+1)}for(var ge=0;ge<Z.length;ge+=1)for(;this.pdf.internal.getNumberOfPages()<Z[ge];)v.call(this);return Z},v=function(){var P=this.fillStyle,B=this.strokeStyle,Q=this.font,Z=this.lineCap,ee=this.lineWidth,le=this.lineJoin;this.pdf.addPage(),this.fillStyle=P,this.strokeStyle=B,this.font=Q,this.lineCap=Z,this.lineWidth=ee,this.lineJoin=le},x=function(P,B,Q){for(var Z=0;Z<P.length;Z++)switch(P[Z].type){case"bct":P[Z].x2+=B,P[Z].y2+=Q;case"qct":P[Z].x1+=B,P[Z].y1+=Q;default:P[Z].x+=B,P[Z].y+=Q}return P},A=function(P){return P.sort(function(B,Q){return B-Q})},N=function(P,B){var Q=this.fillStyle,Z=this.strokeStyle,ee=this.lineCap,le=this.lineWidth,pe=Math.abs(le*this.ctx.transform.scaleX),ge=this.lineJoin;if(this.autoPaging){for(var ye,ke,Re=JSON.parse(JSON.stringify(this.path)),Le=JSON.parse(JSON.stringify(this.path)),We=[],z=0;z<Le.length;z++)if(Le[z].x!==void 0)for(var Ce=_.call(this,Le[z]),ht=0;ht<Ce.length;ht+=1)We.indexOf(Ce[ht])===-1&&We.push(Ce[ht]);for(var Je=0;Je<We.length;Je++)for(;this.pdf.internal.getNumberOfPages()<We[Je];)v.call(this);A(We);for(var xe=We[0],Qe=We[We.length-1],De=xe;De<Qe+1;De++){this.pdf.setPage(De),this.fillStyle=Q,this.strokeStyle=Z,this.lineCap=ee,this.lineWidth=pe,this.lineJoin=ge;var nt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],$e=De===1?this.posY+this.margin[0]:this.margin[0],Dt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],At=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],at=De===1?0:Dt+(De-2)*At;if(this.ctx.clip_path.length!==0){var vt=this.path;ye=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(ye,this.posX+this.margin[3],-at+$e+this.ctx.prevPageLastElemOffset),I.call(this,P,!0),this.path=vt}
vendor: 44,506 bytes, lines 304-312
304if(ke=JSON.parse(JSON.stringify(Re)),this.path=x(ke,this.posX+this.margin[3],-at+$e+this.ctx.prevPageLastElemOffset),B===!1||De===0){var St=(De>xe||De<Qe)&&w.call(this);St&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],nt,At,null).clip().discardPath()),I.call(this,P,B),St&&this.pdf.restoreGraphicsState()}this.lineWidth=le}this.path=Re}else this.lineWidth=pe,I.call(this,P,B),this.lineWidth=le},I=function(P,B){if((P!=="stroke"||B||!b.call(this))&&(P==="stroke"||B||!h.call(this))){for(var Q,Z,ee=[],le=this.path,pe=0;pe<le.length;pe++){var ge=le[pe];switch(ge.type){case"begin":ee.push({begin:!0});break;case"close":ee.push({close:!0});break;case"mt":ee.push({start:ge,deltas:[],abs:[]});break;case"lt":var ye=ee.length;if(le[pe-1]&&!isNaN(le[pe-1].x)&&(Q=[ge.x-le[pe-1].x,ge.y-le[pe-1].y],ye>0)){for(;ye>=0;ye--)if(ee[ye-1].close!==!0&&ee[ye-1].begin!==!0){ee[ye-1].deltas.push(Q),ee[ye-1].abs.push(ge);break}}break;case"bct":Q=[ge.x1-le[pe-1].x,ge.y1-le[pe-1].y,ge.x2-le[pe-1].x,ge.y2-le[pe-1].y,ge.x-le[pe-1].x,ge.y-le[pe-1].y],ee[ee.length-1].deltas.push(Q);break;case"qct":var ke=le[pe-1].x+2/3*(ge.x1-le[pe-1].x),Re=le[pe-1].y+2/3*(ge.y1-le[pe-1].y),Le=ge.x+2/3*(ge.x1-ge.x),We=ge.y+2/3*(ge.y1-ge.y),z=ge.x,Ce=ge.y;Q=[ke-le[pe-1].x,Re-le[pe-1].y,Le-le[pe-1].x,We-le[pe-1].y,z-le[pe-1].x,Ce-le[pe-1].y],ee[ee.length-1].deltas.push(Q);break;case"arc":ee.push({deltas:[],abs:[],arc:!0}),Array.isArray(ee[ee.length-1].abs)&&ee[ee.length-1].abs.push(ge)}}Z=B?null:P==="stroke"?"stroke":"fill";for(var ht=!1,Je=0;Je<ee.length;Je++)if(ee[Je].arc)for(var xe=ee[Je].abs,Qe=0;Qe<xe.length;Qe++){var De=xe[Qe];De.type==="arc"?M.call(this,De.x,De.y,De.radius,De.startAngle,De.endAngle,De.counterclockwise,void 0,B,!ht):Y.call(this,De.x,De.y),ht=!0}else if(ee[Je].close===!0)this.pdf.internal.out("h"),ht=!1;else if(ee[Je].begin!==!0){var nt=ee[Je].start.x,$e=ee[Je].start.y;q.call(this,ee[Je].deltas,nt,$e),ht=!0}Z&&D.call(this,Z),B&&X.call(this)}},$=function(P){var B=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Q=B*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return P-Q;case"top":return P+B-Q;case"hanging":return P+B-2*Q;case"middle":return P+B/2-Q;default:return P}},K=function(P){return P+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};g.prototype.createLinearGradient=function(){var P=function(){};return P.colorStops=[],P.addColorStop=function(B,Q){this.colorStops.push([B,Q])},P.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},P.isCanvasGradient=!0,P},g.prototype.createPattern=function(){return this.createLinearGradient()},g.prototype.createRadialGradient=function(){return this.createLinearGradient()};var M=function(P,B,Q,Z,ee,le,pe,ge,ye){for(var ke=oe.call(this,Q,Z,ee,le),Re=0;Re<ke.length;Re++){var Le=ke[Re];Re===0&&(ye?L.call(this,Le.x1+P,Le.y1+B):Y.call(this,Le.x1+P,Le.y1+B)),se.call(this,P,B,Le.x2,Le.y2,Le.x3,Le.y3,Le.x4,Le.y4)}ge?X.call(this):D.call(this,pe)},D=function(P){switch(P){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},X=function(){this.pdf.clip(),this.pdf.discardPath()},L=function(P,B){this.pdf.internal.out(n(P)+" "+r(B)+" m")},j=function(P){var B;switch(P.align){case"right":case"end":B="right";break;case"center":B="center";break;default:B="left"}var Q,Z,ee,le=this.pdf.getTextDimensions(P.text),pe=$.call(this,P.y),ge=K.call(this,pe)-le.h,ye=this.ctx.transform.applyToPoint(new o(P.x,pe));if(this.autoPaging){var ke=this.ctx.transform.decompose(),Re=new l;Re=(Re=(Re=Re.multiply(ke.translate)).multiply(ke.skew)).multiply(ke.scale);for(var Le=this.ctx.transform.applyToRectangle(new a(P.x,pe,le.w,le.h)),We=Re.applyToRectangle(new a(P.x,ge,le.w,le.h)),z=_.call(this,We),Ce=[],ht=0;ht<z.length;ht+=1)Ce.indexOf(z[ht])===-1&&Ce.push(z[ht]);A(Ce);for(var Je=Ce[0],xe=Ce[Ce.length-1],Qe=Je;Qe<xe+1;Qe++){this.pdf.setPage(Qe);var De=Qe===1?this.posY+this.margin[0]:this.margin[0],nt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],$e=this.pdf.internal.pageSize.height-this.margin[2],Dt=$e-this.margin[0],At=this.pdf.internal.pageSize.width-this.margin[1],at=At-this.margin[3],vt=Qe===1?0:nt+(Qe-2)*Dt;if(this.ctx.clip_path.length!==0){var St=this.path;Q=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(Q,this.posX+this.margin[3],-1*vt+De),I.call(this,"fill",!0),this.path=St}var Fe=x([JSON.parse(JSON.stringify(We))],this.posX+this.margin[3],-vt+De+this.ctx.prevPageLastElemOffset)[0];P.scale>=.01&&(Z=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Z*P.scale),ee=this.lineWidth,this.lineWidth=ee*P.scale);var ut=this.autoPaging!=="text";if(ut||Fe.y+Fe.h<=$e){if(ut||Fe.y>=De&&Fe.x<=At){var Ke=ut?P.text:this.pdf.splitTextToSize(P.text,P.maxWidth||At-Fe.x)[0],an=x([JSON.parse(JSON.stringify(Le))],this.posX+this.margin[3],-vt+De+this.ctx.prevPageLastElemOffset)[0],Nt=ut&&(Qe>Je||Qe<xe)&&w.call(this);Nt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],at,Dt,null).clip().discardPath()),this.pdf.text(Ke,an.x,an.y,{angle:P.angle,align:B,renderingMode:P.renderingMode}),Nt&&this.pdf.restoreGraphicsState()}}else Fe.y<$e&&(this.ctx.prevPageLastElemOffset+=$e-Fe.y);P.scale>=.01&&(this.pdf.setFontSize(Z),this.lineWidth=ee)}}else P.scale>=.01&&(Z=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Z*P.scale),ee=this.lineWidth,this.lineWidth=ee*P.scale),this.pdf.text(P.text,ye.x+this.posX,ye.y+this.posY,{angle:P.angle,align:B,renderingMode:P.renderingMode,maxWidth:P.maxWidth}),P.scale>=.01&&(this.pdf.setFontSize(Z),this.lineWidth=ee)},Y=function(P,B,Q,Z){Q=Q||0,Z=Z||0,this.pdf.internal.out(n(P+Q)+" "+r(B+Z)+" l")},q=function(P,B,Q){return this.pdf.lines(P,B,Q,null,null)},se=function(P,B,Q,Z,ee,le,pe,ge){this.pdf.internal.out([t(i(Q+P)),t(s(Z+B)),t(i(ee+P)),t(s(le+B)),t(i(pe+P)),t(s(ge+B)),"c"].join(" "))},oe=function(P,B,Q,Z){for(var ee=2*Math.PI,le=Math.PI/2;B>Q;)B-=ee;var pe=Math.abs(Q-B);pe<ee&&Z&&(pe=ee-pe);for(var ge=[],ye=Z?-1:1,ke=B;pe>1e-5;){var Re=ke+ye*Math.min(pe,le);ge.push(ue.call(this,P,ke,Re)),pe-=Math.abs(Re-ke),ke=Re}return ge},ue=function(P,B,Q){var Z=(Q-B)/2,ee=P*Math.cos(Z),le=P*Math.sin(Z),pe=ee,ge=-le,ye=pe*pe+ge*ge,ke=ye+pe*ee+ge*le,Re=4/3*(Math.sqrt(2*ye*ke)-ke)/(pe*le-ge*ee),Le=pe-Re*ge,We=ge+Re*pe,z=Le,Ce=-We,ht=Z+B,Je=Math.cos(ht),xe=Math.sin(ht);return{x1:P*Math.cos(B),y1:P*Math.sin(B),x2:Le*Je-We*xe,y2:Le*xe+We*Je,x3:z*Je-Ce*xe,y3:z*xe+Ce*Je,x4:P*Math.cos(Q),y4:P*Math.sin(Q)}},U=function(P){return 180*P/Math.PI},te=function(P,B,Q,Z,ee,le){var pe=P+.5*(Q-P),ge=B+.5*(Z-B),ye=ee+.5*(Q-ee),ke=le+.5*(Z-le),Re=Math.min(P,ee,pe,ye),Le=Math.max(P,ee,pe,ye),We=Math.min(B,le,ge,ke),z=Math.max(B,le,ge,ke);return new a(Re,We,Le-Re,z-We)},fe=function(P,B,Q,Z,ee,le,pe,ge){var ye,ke,Re,Le,We,z,Ce,ht,Je,xe,Qe,De,nt,$e,Dt=Q-P,At=Z-B,at=ee-Q,vt=le-Z,St=pe-ee,Fe=ge-le;for(ke=0;ke<41;ke++)Je=(Ce=(Re=P+(ye=ke/40)*Dt)+ye*((We=Q+ye*at)-Re))+ye*(We+ye*(ee+ye*St-We)-Ce),xe=(ht=(Le=B+ye*At)+ye*((z=Z+ye*vt)-Le))+ye*(z+ye*(le+ye*Fe-z)-ht),ke==0?(Qe=Je,De=xe,nt=Je,$e=xe):(Qe=Math.min(Qe,Je),De=Math.min(De,xe),nt=Math.max(nt,Je),$e=Math.max($e,xe));return new a(Math.round(Qe),Math.round(De),Math.round(nt-Qe),Math.round($e-De))},ae=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var P,B,Q=(P=this.ctx.lineDash,B=this.ctx.lineDashOffset,JSON.stringify({lineDash:P,lineDashOffset:B}));this.prevLineDash!==Q&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Q)}}})(Xe.API),function(e){var t=function(o){var a,l,c,d,g,p,h,b,w,_;for(l=[],c=0,d=(o+=a="\0\0\0\0".slice(o.length%4||4)).length;d>c;c+=4)(g=(o.charCodeAt(c)<<24)+(o.charCodeAt(c+1)<<16)+(o.charCodeAt(c+2)<<8)+o.charCodeAt(c+3))!==0?(p=(g=((g=((g=((g=(g-(_=g%85))/85)-(w=g%85))/85)-(b=g%85))/85)-(h=g%85))/85)%85,l.push(p+33,h+33,b+33,w+33,_+33)):l.push(122);return function(v,x){for(var A=x;A>0;A--)v.pop()}(l,a.length),String.fromCharCode.apply(String,l)+"~>"},n=function(o){var a,l,c,d,g,p=String,h="length",b=255,w="charCodeAt",_="slice",v="replace";for(o[_](-2),o=o[_](0,-2)[v](/\s/g,"")[v]("z","!!!!!"),c=[],d=0,g=(o+=a="uuuuu"[_](o[h]%5||5))[h];g>d;d+=5)l=52200625*(o[w](d)-33)+614125*(o[w](d+1)-33)+7225*(o[w](d+2)-33)+85*(o[w](d+3)-33)+(o[w](d+4)-33),c.push(b&l>>24,b&l>>16,b&l>>8,b&l);return function(x,A){for(var N=A;N>0;N--)x.pop()}(c,a[h]),p.fromCharCode.apply(p,c)},r=function(o){return o.split("").map(function(a){return("0"+a.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(o){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),a.test(o)===!1)return"";for(var l="",c=0;c<o.length;c+=2)l+=String.fromCharCode("0x"+(o[c]+o[c+1]));return l},s=function(o){for(var a=new Uint8Array(o.length),l=o.length;l--;)a[l]=o.charCodeAt(l);return(a=sv(a)).reduce(function(c,d){return c+String.fromCharCode(d)},"")};e.processDataByFilters=function(o,a){var l=0,c=o||"",d=[];for(typeof(a=a||[])=="string"&&(a=[a]),l=0;l<a.length;l+=1)switch(a[l]){case"ASCII85Decode":case"/ASCII85Decode":c=n(c),d.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=t(c),d.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=i(c),d.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=r(c),d.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=s(c),d.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[l]+'" is not implemented')}return{data:c,reverseChain:d.reverse().join(" ")}}}(Xe.API),function(e){e.loadFile=function(t,n,r){return function(i,s,o){s=s!==!1,o=typeof o=="function"?o:function(){};var a=void 0;try{a=function(l,c,d){var g=new XMLHttpRequest,p=0,h=function(b){var w=b.length,_=[],v=String.fromCharCode;for(p=0;p<w;p+=1)_.push(v(255&b.charCodeAt(p)));return _.join("")};if(g.open("GET",l,!c),g.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(g.onload=function(){g.status===200?d(h(this.responseText)):d(void 0)}),g.send(null),c&&g.status===200)return h(g.responseText)}(i,s,o)}catch{}return a}(t,n,r)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(Xe.API),function(e){function t(){return(ct.html2canvas?Promise.resolve(ct.html2canvas):um(()=>import("./html2canvas.esm-CBrSDip1.js"),[])).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function n(){return(ct.DOMPurify?Promise.resolve(ct.DOMPurify):um(()=>import("./purify.es-Dqc4LzU4.js"),[])).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var r=function(a){var l=Ht(a);return l==="undefined"?"undefined":l==="string"||a instanceof String?"string":l==="number"||a instanceof Number?"number":l==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":l==="object"?"object":"unknown"},i=function(a,l){var c=document.createElement(a);for(var d in l.className&&(c.className=l.className),l.innerHTML&&l.dompurify&&(c.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)c.style[d]=l.style[d];return c},s=function a(l,c){for(var d=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),g=l.firstChild;g;g=g.nextSibling)c!==!0&&g.nodeType===1&&g.nodeName==="SCRIPT"||d.appendChild(a(g,c));return l.nodeType===1&&(l.nodeName==="CANVAS"?(d.width=l.width,d.height=l.height,d.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(d.value=l.value),d.addEventListener("load",function(){d.scrollTop=l.scrollTop,d.scrollLeft=l.scrollLeft},!0)),d},o=function a(l){var c=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),d=a.convert(Promise.resolve(),c);return(d=d.setProgress(1,a,1,[a])).set(l)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(a,l){return a.__proto__=l||o.prototype,a},o.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},o.prototype.from=function(a,l){return this.then(function(){switch(l=l||function(c){switch(r(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a),l){case"string":return this.then(n).then(function(c){return this.set({src:i("div",{innerHTML:a,dompurify:c})})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},o.prototype.to=function(a){switch(a){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},o.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},l=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);l.tagName==="BODY"&&(a.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(l),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},o.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(t).then(function(l){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,l(this.prop.container,c)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(t).then(function(l){var c=this.opt.jsPDF,d=this.opt.fontFaces,g=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,p=Object.assign({async:!0,allowTaint:!0,scale:g,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete p.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=d,d)for(var h=0;h<d.length;++h){var b=d[h],w=b.src.find(function(_){return _.format==="truetype"});w&&c.addFont(w.url,b.ref.name,b.ref.style)}return p.windowHeight=p.windowHeight||0,p.windowHeight=p.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):p.windowHeight,c.context2d.save(!0),l(this.prop.container,p)}).then(function(l){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(a,l,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(a,l):this.outputPdf(a,l)},o.prototype.outputPdf=function(a,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,l)})},o.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+a+'" is not supported.'}})},o.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(a){if(r(a)!=="object")return this;var l=Object.keys(a||{}).map(function(c){if(c in o.template.prop)return function(){this.prop[c]=a[c]};switch(c){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[c]=a[c]}}},this);return this.then(function(){return this.thenList(l)})},o.prototype.get=function(a,l){return this.then(function(){var c=a in o.template.prop?this.prop[a]:this.opt[a];return l?l(c):c})},o.prototype.setMargin=function(a){return this.then(function(){switch(r(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},o.prototype.setPageSize=function(a){function l(c,d){return Math.floor(c*d/72*96)}return this.then(function(){(a=a||Xe.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:l(a.inner.width,a.k),height:l(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},o.prototype.setProgress=function(a,l,c,d){return a!=null&&(this.progress.val=a),l!=null&&(this.progress.state=l),c!=null&&(this.progress.n=c),d!=null&&(this.progress.stack=d),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(a,l,c,d){return this.setProgress(a?this.progress.val+a:null,l||null,c?this.progress.n+c:null,d?this.progress.stack.concat(d):null)},o.prototype.then=function(a,l){var c=this;return this.thenCore(a,l,function(d,g){return c.updateProgress(null,null,1,[d]),Promise.prototype.then.call(this,function(p){return c.updateProgress(null,d),p}).then(d,g).then(function(p){return c.updateProgress(1),p})})},o.prototype.thenCore=function(a,l,c){c=c||Promise.prototype.then;var d=this;a&&(a=a.bind(d)),l&&(l=l.bind(d));var g=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?d:o.convert(Object.assign({},d),Promise.prototype),p=c.call(g,a,l);return o.convert(p,d.__proto__)},o.prototype.thenExternal=function(a,l){return Promise.prototype.then.call(this,a,l)},o.prototype.thenList=function(a){var l=this;return a.forEach(function(c){l=l.thenCore(c)}),l},o.prototype.catch=function(a){a&&(a=a.bind(this));var l=Promise.prototype.catch.call(this,a);return o.convert(l,this)},o.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},o.prototype.error=function(a){return this.then(function(){throw new Error(a)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,Xe.getPageSize=function(a,l,c){if(Ht(a)==="object"){var d=a;a=d.orientation,l=d.unit||l,c=d.format||c}l=l||"mm",c=c||"a4",a=(""+(a||"P")).toLowerCase();var g,p=(""+c).toLowerCase(),h={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(l){case"pt":g=1;break;case"mm":g=72/25.4;break;case"cm":g=72/2.54;break;case"in":g=72;break;case"px":g=.75;break;case"pc":case"em":g=12;break;case"ex":g=6;break;default:throw"Invalid unit: "+l}var b,w=0,_=0;if(h.hasOwnProperty(p))w=h[p][1]/g,_=h[p][0]/g;else try{w=c[1],_=c[0]}catch{throw new Error("Invalid format: "+c)}if(a==="p"||a==="portrait")a="p",_>w&&(b=_,_=w,w=b);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",w>_&&(b=_,_=w,w=b)}return{width:_,height:w,unit:l,k:g,orientation:a}},e.html=function(a,l){(l=l||{}).callback=l.callback||function(){},l.html2canvas=l.html2canvas||{},l.html2canvas.canvas=l.html2canvas.canvas||this.canvas,l.jsPDF=l.jsPDF||this,l.fontFaces=l.fontFaces?l.fontFaces.map(Om):null;var c=new o(l);return l.worker?c:c.from(a).doCallback()}}(Xe.API),Xe.API.addJS=function(e){var t,n,r=function(i){for(var s="",o=0;o<i.length;o++){var a=i[o];if(a==="("||a===")"){for(var l=0,c=o-1;c>=0&&i[c]==="\\";c--)l++;s+=l%2==0?"\\"+a:a}else s+=a}return s}(e);return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&n!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var n=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=n.outline.render().split(/\r\n/),s=0;s<i.length;s++){var o=i[s],a=r.exec(o);if(a!=null){var l=a[1];n.internal.newObjectDeferredBegin(l,!1)}n.internal.write(o)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,d=[];for(s=0;s<c;s++){var g=n.internal.newObject();d.push(g);var p=n.internal.getPageInfo(s+1);n.internal.write("<< /D["+p.objId+" 0 R /XYZ null null null]>> endobj")}var h=n.internal.newObject();for(n.internal.write("<< /Names [ "),s=0;s<d.length;s++)n.internal.write("(page_"+(s+1)+")"+d[s]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+h+" 0 R"),n.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var n=this;n.outline.root.children.length>0&&(n.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&n.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(r,i,s){var o={title:i,options:s,children:[]};return r==null&&(r=this.root),r.children.push(o),o},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(r){r.id=n.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},n.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},n.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s<r.children.length;s++){var o=r.children[s];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(r)),s>0&&this.line("/Prev "+this.makeRef(r.children[s-1])),s<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[s+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var a=this.count=this.count_r({count:0},o);if(a>0&&this.line("/Count "+a),o.options&&o.options.pageNumber){var l=n.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var c=0;c<r.children.length;c++)this.renderItems(r.children[c])},n.outline.line=function(r){this.ctx.val+=r+`\r
305`},n.outline.makeRef=function(r){return r.id+" 0 R"},n.outline.makeString=function(r){return"("+n.internal.pdfEscape(r)+")"},n.outline.objStart=function(r){this.ctx.val+=`\r
306`+r.id+` 0 obj\r
307<<\r
308`},n.outline.objEnd=function(){this.ctx.val+=`>> \r
309endobj\r
310`},n.outline.count_r=function(r,i){for(var s=0;s<i.children.length;s++)r.count++,this.count_r(r,i.children[s]);return r.count}}])}(Xe.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,r,i,s,o,a){var l,c=this.decode.DCT_DECODE,d=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=o||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,l=function(g){for(var p,h=256*g.charCodeAt(4)+g.charCodeAt(5),b=g.length,w={width:0,height:0,numcomponents:1},_=4;_<b;_+=2){if(_+=h,t.indexOf(g.charCodeAt(_+1))!==-1){p=256*g.charCodeAt(_+5)+g.charCodeAt(_+6),w={width:256*g.charCodeAt(_+7)+g.charCodeAt(_+8),height:p,numcomponents:g.charCodeAt(_+9)};break}h=256*g.charCodeAt(_+2)+g.charCodeAt(_+3)}return w}(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),l.numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}d={data:n,width:l.width,height:l.height,colorSpace:a,bitsPerComponent:8,filter:c,index:r,alias:i}}return d}}(Xe.API),Xe.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,s=CO(e,{checkCrc:!0}),o=s.width,a=s.height,l=s.channels,c=s.palette,d=s.depth;i=c&&l===1?function(M){for(var D=M.width,X=M.height,L=M.data,j=M.palette,Y=M.depth,q=!1,se=[],oe=[],ue=void 0,U=!1,te=0,fe=0;fe<j.length;fe++){var ae=U5(j[fe],4),P=ae[0],B=ae[1],Q=ae[2],Z=ae[3];se.push(P,B,Q),Z!=null&&(Z===0?(te++,oe.length<1&&oe.push(fe)):Z<255&&(U=!0))}if(U||te>1){q=!0,oe=void 0;var ee=D*X;ue=new Uint8Array(ee);for(var le=new DataView(L.buffer),pe=0;pe<ee;pe++){var ge=Dm(le,pe,Y),ye=U5(j[ge],4)[3];ue[pe]=ye}}else te===0&&(oe=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:q?8:void 0,colorBytes:L,alphaBytes:ue,needSMask:q,palette:se,mask:oe}}(s):l===2||l===4?function(M){for(var D=M.data,X=M.width,L=M.height,j=M.channels,Y=M.depth,q=j===2?"DeviceGray":"DeviceRGB",se=j-1,oe=X*L,ue=se,U=oe*ue,te=1*oe,fe=Math.ceil(U*Y/8),ae=Math.ceil(te*Y/8),P=new Uint8Array(fe),B=new Uint8Array(ae),Q=new DataView(D.buffer),Z=new DataView(P.buffer),ee=new DataView(B.buffer),le=!1,pe=0;pe<oe;pe++){for(var ge=pe*j,ye=0;ye<ue;ye++)Zb(Z,Dm(Q,ge+ye,Y),pe*ue+ye,Y);var ke=Dm(Q,ge+ue,Y);ke<(1<<Y)-1&&(le=!0),Zb(ee,ke,1*pe,Y)}return{colorSpace:q,colorsPerPixel:se,sMaskBitsPerComponent:le?Y:void 0,colorBytes:P,alphaBytes:B,needSMask:le}}(s):function(M){var D=M.data,X=M.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:X,colorsPerPixel:X==="DeviceGray"?1:3,colorBytes:D instanceof Uint16Array?function(L){for(var j=L.length,Y=new Uint8Array(2*j),q=new DataView(Y.buffer,Y.byteOffset,Y.byteLength),se=0;se<j;se++)q.setUint16(2*se,L[se],!1);return Y}(D):D,needSMask:!1}}(s);var g,p,h,b=i,w=b.colorSpace,_=b.colorsPerPixel,v=b.sMaskBitsPerComponent,x=b.colorBytes,A=b.alphaBytes,N=b.needSMask,I=b.palette,$=b.mask,K=null;return r!==Xe.API.image_compression.NONE&&typeof sv=="function"?(K=function(M){var D;switch(M){case Xe.API.image_compression.FAST:D=11;break;case Xe.API.image_compression.MEDIUM:D=13;break;case Xe.API.image_compression.SLOW:D=14;break;default:D=12}return D}(r),g=this.decode.FLATE_DECODE,p="/Predictor ".concat(K," /Colors ").concat(_," /BitsPerComponent ").concat(d," /Columns ").concat(o),e=Kb(x,Math.ceil(o*_*d/8),_,d,r),N&&(h=Kb(A,Math.ceil(o*v/8),1,v,r))):(g=void 0,p=void 0,e=x,N&&(h=A)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:n,data:e,index:t,filter:g,decodeParameters:p,transparency:$,palette:I,sMask:h,predictor:K,width:o,height:a,bitsPerComponent:d,sMaskBitsPerComponent:v,colorSpace:w}}},function(e){e.processGIF89A=function(t,n,r,i){var s=new QO(t),o=s.width,a=s.height,l=[];s.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:a},d=new Fm(100).encode(c,100);return e.processJPEG.call(this,d,n,r,i)},e.processGIF87A=e.processGIF89A}(Xe.API),Hi.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:r,blue:n,quad:s}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Hi.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(n){Kt.log("bit decode error:"+n)}},Hi.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var s=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*i*4,a=0;a<8&&8*i+a<this.width;a++){var l=this.palette[s>>7-a&1];this.data[o+4*a]=l.blue,this.data[o+4*a+1]=l.green,this.data[o+4*a+2]=l.red,this.data[o+4*a+3]=255}n!==0&&(this.pos+=4-n)}},Hi.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var s=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,a=s>>4,l=15&s,c=this.palette[a];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},Hi.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+4*r;if(i<this.palette.length){var o=this.palette[i];this.data[s]=o.red,this.data[s+1]=o.green,this.data[s+2]=o.blue,this.data[s+3]=255}else this.data[s]=255,this.data[s+1]=255,this.data[s+2]=255,this.data[s+3]=255}e!==0&&(this.pos+=4-e)}},Hi.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(s&t)/t*255|0,a=(s>>5&t)/t*255|0,l=(s>>10&t)/t*255|0,c=s>>15?255:0,d=r*this.width*4+4*i;this.data[d]=l,this.data[d+1]=a,this.data[d+2]=o,this.data[d+3]=c}this.pos+=e}},Hi.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,s=0;s<this.width;s++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&t)/t*255|0,l=(o>>5&n)/n*255|0,c=(o>>11)/t*255|0,d=i*this.width*4+4*s;this.data[d]=c,this.data[d+1]=l,this.data[d+2]=a,this.data[d+3]=255}this.pos+=e}},Hi.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*n;this.data[o]=s,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},Hi.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;this.data[a]=s,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=o}},Hi.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,r,i){var s=new Hi(t,!1),o=s.width,a=s.height,l={data:s.getData(),width:o,height:a},c=new Fm(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}}(Xe.API),tx.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,r,i){var s=new tx(t),o=s.width,a=s.height,l={data:s.getData(),width:o,height:a},c=new Fm(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}}(Xe.API),Xe.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,s=new Uint8Array(i/4*3),o=new Uint8Array(i/4),a=0,l=0,c=0;c<i;c+=4){var d=r[c],g=r[c+1],p=r[c+2],h=r[c+3];s[a++]=d,s[a++]=g,s[a++]=p,o[l++]=h}var b=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:b,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Xe.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},tc=Xe.API,Mf=tc.getCharWidthsArray=function(e,t){var n,r,i=(t=t||{}).font||this.internal.getFont(),s=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),a=t.widths?t.widths:i.metadata.Unicode.widths,l=a.fof?a.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,d=c.fof?c.fof:1,g=t.doKerning!==!1,p=0,h=e.length,b=0,w=a[0]||l,_=[];for(n=0;n<h;n++)r=e.charCodeAt(n),typeof i.metadata.widthOfString=="function"?_.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+o*(1e3/s)||0)/1e3):(p=g&&Ht(c[r])==="object"&&!isNaN(parseInt(c[r][b],10))?c[r][b]/d:0,_.push((a[r]||w)/l+p)),b=r;return _},Vb=tc.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return tc.processArabic&&(e=tc.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,n,i)/n:Mf.apply(this,arguments).reduce(function(s,o){return s+o},0)},Gb=function(e,t,n,r){for(var i=[],s=0,o=e.length,a=0;s!==o&&a+t[s]<n;)a+=t[s],s++;i.push(e.slice(0,s));var l=s;for(a=0;s!==o;)a+t[s]>r&&(i.push(e.slice(l,s)),a=0,l=s),a+=t[s],s++;return l!==s&&i.push(e.slice(l,s)),i},$b=function(e,t,n){n||(n={});var r,i,s,o,a,l,c,d=[],g=[d],p=n.textIndent||0,h=0,b=0,w=e.split(" "),_=Mf.apply(this,[" ",n])[0];if(l=n.lineIndent===-1?w[0].length+2:n.lineIndent||0){var v=Array(l).join(" "),x=[];w.map(function(N){(N=N.split(/\s*\n/)).length>1?x=x.concat(N.map(function(I,$){return($&&I.length?`
311`:"")+I})):x.push(N[0])}),w=x,l=Vb.apply(this,[v,n])}for(s=0,o=w.length;s<o;s++){var A=0;if(r=w[s],l&&r[0]==`
312`&&(r=r.substr(1),A=1),p+h+(b=(i=Mf.apply(this,[r,n])).reduce(function(N,I){return N+I},0))>t||A){if(b>t){for(a=Gb.apply(this,[r,i,t-(p+h),t]),d.push(a.shift()),d=[a.pop()];a.length;)g.push([a.shift()]);b=i.slice(r.length-(d[0]?d[0].length:0)).reduce(function(N,I){return N+I},0)}else d=[r];g.push(d),p=b+l,h=_}else d.push(r),p+=h+b,h=_}return c=l?function(N,I){return(I?v:"")+N.join(" ")}:function(N){return N.join(" ")},g.map(c)},tc.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),s=(function(d){if(d.widths&&d.kerning)return{widths:d.widths,kerning:d.kerning};var g=this.internal.getFont(d.fontName,d.fontStyle),p="Unicode";return g.metadata[p]?{widths:g.metadata[p].widths||{0:1},kerning:g.metadata[p].kerning||{}}:{font:g.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;s.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,s.lineIndent=n.lineIndent;var a,l,c=[];for(a=0,l=r.length;a<l;a++)c=c.concat($b.apply(this,[r[a],o,s]));return c},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},s=0;s<16;s++)r[n[s]]=t[s],i[t[s]]=n[s];var o=function(p){return"0x"+parseInt(p,10).toString(16)},a=e.__fontmetrics__.compress=function(p){var h,b,w,_,v=["{"];for(var x in p){if(h=p[x],isNaN(parseInt(x,10))?b="'"+x+"'":(x=parseInt(x,10),b=(b=o(x).slice(2)).slice(0,-1)+i[b.slice(-1)]),typeof h=="number")h<0?(w=o(h).slice(3),_="-"):(w=o(h).slice(2),_=""),w=_+w.slice(0,-1)+i[w.slice(-1)];else{if(Ht(h)!=="object")throw new Error("Don't know what to do with value type "+Ht(h)+".");w=a(h)}v.push(b+w)}return v.push("}"),v.join("")},l=e.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var h,b,w,_,v={},x=1,A=v,N=[],I="",$="",K=p.length-1,M=1;M<K;M+=1)(_=p[M])=="'"?h?(w=h.join(""),h=void 0):h=[]:h?h.push(_):_=="{"?(N.push([A,w]),A={},w=void 0):_=="}"?((b=N.pop())[0][b[1]]=A,w=void 0,A=b[0]):_=="-"?x=-1:w===void 0?r.hasOwnProperty(_)?(I+=r[_],w=parseInt(I,16)*x,x=1,I=""):I+=_:r.hasOwnProperty(_)?($+=r[_],A[w]=parseInt($,16)*x,x=1,w=void 0,$=""):$+=_;return v},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},g
vendor: 14,727 bytes, line 312
312={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(
vendor: 49,272 bytes, lines 312-341
312p){var h=p.font,b=g.Unicode[h.postScriptName];b&&(h.metadata.Unicode={},h.metadata.Unicode.widths=b.widths,h.metadata.Unicode.kerning=b.kerning);var w=d.Unicode[h.postScriptName];w&&(h.metadata.Unicode.encoding=w,h.encoding=w.codePages[0])}])}(Xe.API),function(e){var t=function(n){for(var r=n.length,i=new Uint8Array(r),s=0;s<r;s++)i[s]=n.charCodeAt(s);return i};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,s=n.instance;if(!i.isStandardFont){if(s===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=s.existsFileInVFS(i.postScriptName)===!1?s.loadFile(i.postScriptName):s.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,a){a=/^\x00\x01\x00\x00/.test(a)?t(a):t(cp(a)),o.metadata=e.API.TTFFont.open(a),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,r)}}])}(Xe),Xe.API.addSvgAsImage=function(e,t,n,r,i,s,o,a){if(isNaN(t)||isNaN(n))throw Kt.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw Kt.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=i;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},g=this;return(ct.canvg?Promise.resolve(ct.canvg):um(()=>import("./index.es-Chh3XlTk.js"),[])).catch(function(p){return Promise.reject(new Error("Could not load canvg: "+p))}).then(function(p){return p.default?p.default:p}).then(function(p){return p.fromString(c,e,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(p){return p.render(d)}).then(function(){g.addImage(l.toDataURL("image/jpeg",1),t,n,r,i,o,a)})},Xe.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},Xe.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,i,s,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(o),l=[],c=0,d=0,g=0;function p(b,w){var _,v=!1;for(_=0;_<b.length;_+=1)b[_]===w&&(v=!0);return v}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var h=a.length;for(g=0;g<h;g+=1)n[a[g]].value=n[a[g]].defaultValue,n[a[g]].explicitSet=!1}if(Ht(e)==="object"){for(i in e)if(s=e[i],p(a,i)&&s!==void 0){if(n[i].type==="boolean"&&typeof s=="boolean")n[i].value=s;else if(n[i].type==="name"&&p(n[i].valueSet,s))n[i].value=s;else if(n[i].type==="integer"&&Number.isInteger(s))n[i].value=s;else if(n[i].type==="array"){for(c=0;c<s.length;c+=1)if(r=!0,s[c].length===1&&typeof s[c][0]=="number")l.push(String(s[c]-1));else if(s[c].length>1){for(d=0;d<s[c].length;d+=1)typeof s[c][d]!="number"&&(r=!1);r===!0&&l.push([s[c][0]-1,s[c][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var b,w=[];for(b in n)n[b].explicitSet===!0&&(n[b].type==="name"?w.push("/"+b+" /"+n[b].value):w.push("/"+b+" "+n[b].value));w.length!==0&&this.internal.write(`/ViewerPreferences
313<<
314`+w.join(`
315`)+`
316>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},Xe.API.addMetadata=function(e,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceUri:t??"http://jspdf.default.namespaceuri/",rawXml:typeof t=="boolean"&&t},this.internal.events.subscribe("putCatalog",XO),this.internal.events.subscribe("postPutResources",YO)),this},function(e){var t=e.API,n=t.pdfEscape16=function(s,o){for(var a,l=o.metadata.Unicode.widths,c=["","0","00","000","0000"],d=[""],g=0,p=s.length;g<p;++g){if(a=o.metadata.characterToGlyph(s.charCodeAt(g)),o.metadata.glyIdsUsed.push(a),o.metadata.toUnicode[a]=s.charCodeAt(g),l.indexOf(a)==-1&&(l.push(a),l.push([parseInt(o.metadata.widthOfGlyph(a),10)])),a=="0")return d.join("");a=a.toString(16),d.push(c[4-a.length],a)}return d.join("")},r=function(s){var o,a,l,c,d,g,p;for(d=`/CIDInit /ProcSet findresource begin
31712 dict begin
318begincmap
319/CIDSystemInfo <<
320  /Registry (Adobe)
321  /Ordering (UCS)
322  /Supplement 0
323>> def
324/CMapName /Adobe-Identity-UCS def
325/CMapType 2 def
3261 begincodespacerange
327<0000><ffff>
328endcodespacerange`,l=[],g=0,p=(a=Object.keys(s).sort(function(h,b){return h-b})).length;g<p;g++)o=a[g],l.length>=100&&(d+=`
329`+l.length+` beginbfchar
330`+l.join(`
331`)+`
332endbfchar`,l=[]),s[o]!==void 0&&s[o]!==null&&typeof s[o].toString=="function"&&(c=("0000"+s[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),l.push("<"+o+"><"+c+">"));return l.length&&(d+=`
333`+l.length+` beginbfchar
334`+l.join(`
335`)+`
336endbfchar
337`),d+`endcmap
338CMapName currentdict /CMap defineresource pop
339end
340end`};t.events.push(["putFont",function(s){(function(o){var a=o.font,l=o.out,c=o.newObject,d=o.putStream;if(a.metadata instanceof e.API.TTFFont&&a.encoding==="Identity-H"){for(var g=a.metadata.Unicode.widths,p=a.metadata.subset.encode(a.metadata.glyIdsUsed,1),h="",b=0;b<p.length;b++)h+=String.fromCharCode(p[b]);var w=c();d({data:h,addLength1:!0,objectId:w}),l("endobj");var _=c();d({data:r(a.metadata.toUnicode),addLength1:!0,objectId:_}),l("endobj");var v=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+cc(a.fontName)),l("/FontFile2 "+w+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(a.metadata.bbox)),l("/Flags "+a.metadata.flags),l("/StemV "+a.metadata.stemV),l("/ItalicAngle "+a.metadata.italicAngle),l("/Ascent "+a.metadata.ascender),l("/Descent "+a.metadata.decender),l("/CapHeight "+a.metadata.capHeight),l(">>"),l("endobj");var x=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+cc(a.fontName)),l("/FontDescriptor "+v+" 0 R"),l("/W "+e.API.PDFObject.convert(g)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+a.encoding+")"),l(">>"),l(">>"),l("endobj"),a.objectNumber=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+_+" 0 R"),l("/BaseFont /"+cc(a.fontName)),l("/Encoding /"+a.encoding),l("/DescendantFonts ["+x+" 0 R]"),l(">>"),l("endobj"),a.isAlreadyPutted=!0}})(s)}]),t.events.push(["putFont",function(s){(function(o){var a=o.font,l=o.out,c=o.newObject,d=o.putStream;if(a.metadata instanceof e.API.TTFFont&&a.encoding==="WinAnsiEncoding"){for(var g=a.metadata.rawData,p="",h=0;h<g.length;h++)p+=String.fromCharCode(g[h]);var b=c();d({data:p,addLength1:!0,objectId:b}),l("endobj");var w=c();d({data:r(a.metadata.toUnicode),addLength1:!0,objectId:w}),l("endobj");var _=c();l("<<"),l("/Descent "+a.metadata.decender),l("/CapHeight "+a.metadata.capHeight),l("/StemV "+a.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+b+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(a.metadata.bbox)),l("/FontName /"+cc(a.fontName)),l("/ItalicAngle "+a.metadata.italicAngle),l("/Ascent "+a.metadata.ascender),l(">>"),l("endobj"),a.objectNumber=c();for(var v=0;v<a.metadata.hmtx.widths.length;v++)a.metadata.hmtx.widths[v]=parseInt(a.metadata.hmtx.widths[v]*(1e3/a.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+w+" 0 R/BaseFont/"+cc(a.fontName)+"/FontDescriptor "+_+" 0 R/Encoding/"+a.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(a.metadata.hmtx.widths)+">>"),l("endobj"),a.isAlreadyPutted=!0}})(s)}]);var i=function(s){var o,a=s.text||"",l=s.x,c=s.y,d=s.options||{},g=s.mutex||{},p=g.pdfEscape,h=g.activeFontKey,b=g.fonts,w=h,_="",v=0,x="",A=b[w].encoding;if(b[w].encoding!=="Identity-H")return{text:a,x:l,y:c,options:d,mutex:g};for(x=a,w=h,Array.isArray(a)&&(x=a[0]),v=0;v<x.length;v+=1)b[w].metadata.hasOwnProperty("cmap")&&(o=b[w].metadata.cmap.unicode.codeMap[x[v].charCodeAt(0)]),o||x[v].charCodeAt(0)<256&&b[w].metadata.hasOwnProperty("Unicode")?_+=x[v]:_+="";var N="";return parseInt(w.slice(1))<14||A==="WinAnsiEncoding"?N=p(_,w).split("").map(function(I){return I.charCodeAt(0).toString(16)}).join(""):A==="Identity-H"&&(N=n(_,b[w])),g.isHex=!0,{text:N,x:l,y:c,options:d,mutex:g}};t.events.push(["postProcessText",function(s){var o=s.text||"",a=[],l={text:o,x:s.x,y:s.y,options:s.options,mutex:s.mutex};if(Array.isArray(o)){var c=0;for(c=0;c<o.length;c+=1)Array.isArray(o[c])&&o[c].length===3?a.push([i(Object.assign({},l,{text:o[c][0]})).text,o[c][1],o[c][2]]):a.push(i(Object.assign({},l,{text:o[c]})).text);s.text=a}else s.text=i(Object.assign({},l,{text:o})).text}])}(Xe),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0},e.addFileToVFS=function(n,r){return t.call(this),this.internal.vFS[n]=r,this},e.getFileFromVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}}(Xe.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var i,s,o,a,l,c,d,g=t,p=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],b={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},w={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},_=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],v=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),x=!1,A=0;this.__bidiEngine__={};var N=function(L){var j=L.charCodeAt(),Y=j>>8,q=w[Y];return q!==void 0?g[256*q+(255&j)]:Y===252||Y===253?"AL":v.test(Y)?"L":Y===8?"R":"N"},I=function(L){for(var j,Y=0;Y<L.length;Y++){if((j=N(L.charAt(Y)))==="L")return!1;if(j==="R")return!0}return!1},$=function(L,j,Y,q){var se,oe,ue,U,te=j[q];switch(te){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":x=!1;break;case"N":case"AN":break;case"EN":x&&(te="AN");break;case"AL":x=!0,te="R";break;case"WS":case"BN":te="N";break;case"CS":q<1||q+1>=j.length||(se=Y[q-1])!=="EN"&&se!=="AN"||(oe=j[q+1])!=="EN"&&oe!=="AN"?te="N":x&&(oe="AN"),te=oe===se?oe:"N";break;case"ES":te=(se=q>0?Y[q-1]:"B")==="EN"&&q+1<j.length&&j[q+1]==="EN"?"EN":"N";break;case"ET":if(q>0&&Y[q-1]==="EN"){te="EN";break}if(x){te="N";break}for(ue=q+1,U=j.length;ue<U&&j[ue]==="ET";)ue++;te=ue<U&&j[ue]==="EN"?"EN":"N";break;case"NSM":if(o&&!a){for(U=j.length,ue=q+1;ue<U&&j[ue]==="NSM";)ue++;if(ue<U){var fe=L[q],ae=fe>=1425&&fe<=2303||fe===64286;if(se=j[ue],ae&&(se==="R"||se==="AL")){te="R";break}}}te=q<1||(se=j[q-1])==="B"?"N":Y[q-1];break;case"B":x=!1,i=!0,te=A;break;case"S":s=!0,te="N"}return te},K=function(L,j,Y){var q=L.split("");return Y&&M(q,Y,{hiLevel:A}),q.reverse(),j&&j.reverse(),q.join("")},M=function(L,j,Y){var q,se,oe,ue,U,te=-1,fe=L.length,ae=0,P=[],B=A?h:p,Q=[];for(x=!1,i=!1,s=!1,se=0;se<fe;se++)Q[se]=N(L[se]);for(oe=0;oe<fe;oe++){if(U=ae,P[oe]=$(L,Q,P,oe),q=240&(ae=B[U][b[P[oe]]]),ae&=15,j[oe]=ue=B[ae][5],q>0)if(q===16){for(se=te;se<oe;se++)j[se]=1;te=-1}else te=-1;if(B[ae][6])te===-1&&(te=oe);else if(te>-1){for(se=te;se<oe;se++)j[se]=ue;te=-1}Q[oe]==="B"&&(j[oe]=0),Y.hiLevel|=ue}s&&function(Z,ee,le){for(var pe=0;pe<le;pe++)if(Z[pe]==="S"){ee[pe]=A;for(var ge=pe-1;ge>=0&&Z[ge]==="WS";ge--)ee[ge]=A}}(Q,j,fe)},D=function(L,j,Y,q,se){if(!(se.hiLevel<L)){if(L===1&&A===1&&!i)return j.reverse(),void(Y&&Y.reverse());for(var oe,ue,U,te,fe=j.length,ae=0;ae<fe;){if(q[ae]>=L){for(U=ae+1;U<fe&&q[U]>=L;)U++;for(te=ae,ue=U-1;te<ue;te++,ue--)oe=j[te],j[te]=j[ue],j[ue]=oe,Y&&(oe=Y[te],Y[te]=Y[ue],Y[ue]=oe);ae=U}ae++}}},X=function(L,j,Y){var q=L.split(""),se={hiLevel:A};return Y||(Y=[]),M(q,Y,se),function(oe,ue,U){if(U.hiLevel!==0&&d)for(var te,fe=0;fe<oe.length;fe++)ue[fe]===1&&(te=_.indexOf(oe[fe]))>=0&&(oe[fe]=_[te+1])}(q,Y,se),D(2,q,j,Y,se),D(1,q,j,Y,se),q.join("")};return this.__bidiEngine__.doBidiReorder=function(L,j,Y){if(function(se,oe){if(oe)for(var ue=0;ue<se.length;ue++)oe[ue]=ue;a===void 0&&(a=I(se)),c===void 0&&(c=I(se))}(L,j),o||!l||c)if(o&&l&&a^c)A=a?1:0,L=K(L,j,Y);else if(!o&&l&&c)A=a?1:0,L=X(L,j,Y),L=K(L,j);else if(!o||a||l||c){if(o&&!l&&a^c)L=K(L,j),a?(A=0,L=X(L,j,Y)):(A=1,L=X(L,j,Y),L=K(L,j));else if(o&&a&&!l&&c)A=1,L=X(L,j,Y),L=K(L,j);else if(!o&&!l&&a^c){var q=d;a?(A=1,L=X(L,j,Y),A=0,d=!1,L=X(L,j,Y),d=q):(A=0,L=X(L,j,Y),L=K(L,j),A=1,d=!1,L=X(L,j,Y),d=q,L=K(L,j))}}else A=0,L=X(L,j,Y);else A=a?1:0,L=X(L,j,Y);return L},this.__bidiEngine__.setOptions=function(L){L&&(o=L.isInputVisual,l=L.isOutputVisual,a=L.isInputRtl,c=L.isOutputRtl,d=L.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(r){var i=r.text;r.x,r.y;var s=r.options||{};r.mutex,s.lang;var o=[];if(s.isInputVisual=typeof s.isInputVisual!="boolean"||s.isInputVisual,n.setOptions(s),Object.prototype.toString.call(i)==="[object Array]"){var a=0;for(o=[],a=0;a<i.length;a+=1)Object.prototype.toString.call(i[a])==="[object Array]"?o.push([n.doBidiReorder(i[a][0]),i[a][1],i[a][2]]):o.push([n.doBidiReorder(i[a])]);r.text=o}else r.text=n.doBidiReorder(i);n.setOptions({isInputVisual:!0})}])}(Xe),Xe.API.TTFFont=function(){function e(t){var n;if(this.rawData=t,n=this.contents=new xa(t),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new hI(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new JO(this.contents),this.head=new eI(this),this.name=new sI(this),this.cmap=new ZS(this),this.toUnicode={},this.hhea=new tI(this),this.maxp=new oI(this),this.hmtx=new aI(this),this.post=new rI(this),this.os2=new nI(this),this.loca=new dI(this),this.glyf=new lI(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,n,r,i,s;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,a,l,c;for(c=[],o=0,a=(l=this.bbox).length;o<a;o++)t=l[o],c.push(Math.round(t*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(r=255&(i=this.post.italic_angle),32768&(n=i>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(s=this.familyClass)===1||s===2||s===3||s===4||s===5||s===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var n;return((n=this.cmap.unicode)!=null?n.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*n},e.prototype.widthOfString=function(t,n,r){var i,s,o,a;for(o=0,s=0,a=(t=""+t).length;0<=a?s<a:s>a;s=0<=a?++s:--s)i=t.charCodeAt(s),o+=this.widthOfGlyph(this.characterToGlyph(i))+r*(1e3/n)||0;return o*(n/1e3)},e.prototype.lineHeight=function(t,n){var r;return n==null&&(n=!1),r=n?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},e}();var is,xa=function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var n,r;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r[n]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(t){var n,r,i;for(i=[],n=0,r=t.length;0<=r?n<r:n>r;n=0<=r?++n:--n)i.push(this.writeByte(t.charCodeAt(n)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,n,r,i,s,o,a,l;return t=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),s=this.readByte(),o=this.readByte(),a=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^n)+1099511627776*(255^r)+4294967296*(255^i)+16777216*(255^s)+65536*(255^o)+256*(255^a)+(255^l)+1):72057594037927940*t+281474976710656*n+1099511627776*r+4294967296*i+16777216*s+65536*o+256*a+l},e.prototype.writeLongLong=function(t){var n,r;return n=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var n,r;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n.push(this.readByte());return n},e.prototype.write=function(t){var n,r,i,s;for(s=[],r=0,i=t.length;r<i;r++)n=t[r],s.push(this.writeByte(n));return s},e}(),JO=function(){var e;function t(n){var r,i,s;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},i=0,s=this.tableCount;0<=s?i<s:i>s;i=0<=s?++i:--i)r={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(n){var r,i,s,o,a,l,c,d,g,p,h,b,w;for(w in h=Object.keys(n).length,l=Math.log(2),g=16*Math.floor(Math.log(h)/l),o=Math.floor(g/l),d=16*h-g,(i=new xa).writeInt(this.scalarType),i.writeShort(h),i.writeShort(g),i.writeShort(o),i.writeShort(d),s=16*h,c=i.pos+s,a=null,b=[],n)for(p=n[w],i.writeString(w),i.writeInt(e(p)),i.writeInt(c),i.writeInt(p.length),b=b.concat(p),w==="head"&&(a=c),c+=p.length;c%4;)b.push(0),c++;return i.write(b),r=2981146554-e(i.data),i.pos=a+8,i.writeUInt32(r),i.data},e=function(n){var r,i,s,o;for(n=ek.call(n);n.length%4;)n.push(0);for(s=new xa(n),i=0,r=0,o=n.length;r<o;r=r+=4)i+=s.readUInt32();return 4294967295&i},t}(),ZO={}.hasOwnProperty,Is=function(e,t){for(var n in t)ZO.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};is=function(){function e(t){var n;this.file=t,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var eI=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Is(e,is),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var n;return(n=new xa).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(t),n.writeShort(this.glyphDataFormat),n.data},e}(),nx=function(){function e(t,n){var r,i,s,o,a,l,c,d,g,p,h,b,w,_,v,x,A;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=n+t.readInt(),g=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=t.readByte();break;case 4:for(h=t.readUInt16(),p=h/2,t.pos+=6,s=function(){var N,I;for(I=[],l=N=0;0<=p?N<p:N>p;l=0<=p?++N:--N)I.push(t.readUInt16());return I}(),t.pos+=2,w=function(){var N,I;for(I=[],l=N=0;0<=p?N<p:N>p;l=0<=p?++N:--N)I.push(t.readUInt16());return I}(),c=function(){var N,I;for(I=[],l=N=0;0<=p?N<p:N>p;l=0<=p?++N:--N)I.push(t.readUInt16());return I}(),d=function(){var N,I;for(I=[],l=N=0;0<=p?N<p:N>p;l=0<=p?++N:--N)I.push(t.readUInt16());return I}(),i=(this.length-t.pos+this.offset)/2,a=function(){var N,I;for(I=[],l=N=0;0<=i?N<i:N>i;l=0<=i?++N:--N)I.push(t.readUInt16());return I}(),l=v=0,A=s.length;v<A;l=++v)for(_=s[l],r=x=b=w[l];b<=_?x<=_:x>=_;r=b<=_?++x:--x)d[l]===0?o=r+c[l]:(o=a[d[l]/2+(r-b)-(p-l)]||0)!==0&&(o+=c[l]),this.codeMap[r]=65535&o}t.pos=g}return e.encode=function(t,n){var r,i,s,o,a,l,c,d,g,p,h,b,w,_,v,x,A,N,I,$,K,M,D,X,L,j,Y,q,se,oe,ue,U,te,fe,ae,P,B,Q,Z,ee,le,pe,ge,ye,ke,Re;switch(q=new xa,o=Object.keys(t).sort(function(Le,We){return Le-We}),n){case"macroman":for(w=0,_=function(){var Le=[];for(b=0;b<256;++b)Le.push(0);return Le}(),x={0:0},s={},se=0,te=o.length;se<te;se++)x[ge=t[i=o[se]]]==null&&(x[ge]=++w),s[i]={old:t[i],new:x[t[i]]},_[i]=x[t[i]];return q.writeUInt16(1),q.writeUInt16(0),q.writeUInt32(12),q.writeUInt16(0),q.writeUInt16(262),q.writeUInt16(0),q.write(_),{charMap:s,subtable:q.data,maxGlyphID:w+1};case"unicode":for(j=[],g=[],A=0,x={},r={},v=c=null,oe=0,fe=o.length;oe<fe;oe++)x[I=t[i=o[oe]]]==null&&(x[I]=++A),r[i]={old:I,new:x[I]},a=x[I]-i,v!=null&&a===c||(v&&g.push(v),j.push(i),c=a),v=i;for(v&&g.push(v),g.push(65535),j.push(65535),X=2*(D=j.length),M=2*Math.pow(Math.log(D)/Math.LN2,2),p=Math.log(M/2)/Math.LN2,K=2*D-M,l=[],$=[],h=[],b=ue=0,ae=j.length;ue<ae;b=++ue){if(L=j[b],d=g[b],L===65535){l.push(0),$.push(0);break}if(L-(Y=r[L].new)>=32768)for(l.push(0),$.push(2*(h.length+D-b)),i=U=L;L<=d?U<=d:U>=d;i=L<=d?++U:--U)h.push(r[i].new);else l.push(Y-L),$.push(0)}for(q.writeUInt16(3),q.writeUInt16(1),q.writeUInt32(12),q.writeUInt16(4),q.writeUInt16(16+8*D+2*h.length),q.writeUInt16(0),q.writeUInt16(X),q.writeUInt16(M),q.writeUInt16(p),q.writeUInt16(K),le=0,P=g.length;le<P;le++)i=g[le],q.writeUInt16(i);for(q.writeUInt16(0),pe=0,B=j.length;pe<B;pe++)i=j[pe],q.writeUInt16(i);for(ye=0,Q=l.length;ye<Q;ye++)a=l[ye],q.writeUInt16(a);for(ke=0,Z=$.length;ke<Z;ke++)N=$[ke],q.writeUInt16(N);for(Re=0,ee=h.length;Re<ee;Re++)w=h[Re],q.writeUInt16(w);return{charMap:r,subtable:q.data,maxGlyphID:A+1}}},e}(),ZS=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Is(e,is),e.prototype.tag="cmap",e.prototype.parse=function(t){var n,r,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=i?r<i:r>i;r=0<=i?++r:--r)n=new nx(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(t,n){var r,i;return n==null&&(n="macroman"),r=nx.encode(t,n),(i=new xa).writeUInt16(0),i.writeUInt16(1),r.table=i.data.concat(r.subtable),r},e}(),tI=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Is(e,is),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),nI=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Is(e,is),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var n,r;for(r=[],n=0;n<10;++n)r.push(t.readByte());return r}(),this.charRange=function(){var n,r;for(r=[],n=0;n<4;++n)r.push(t.readInt());return r}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var n,r;for(r=[],n=0;n<2;n=++n)r.push(t.readInt());return r}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),rI=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Is(e,is),e.prototype.tag="post",e.prototype.parse=function(t){var n,r,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var s;for(r=t.readUInt16(),this.glyphNameIndex=[],s=0;0<=r?s<r:s>r;s=0<=r?++s:--s)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)n=t.readByte(),i.push(this.names.push(t.readString(n)));return i;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=(function(){var o,a,l;for(l=[],s=o=0,a=this.file.maxp.numGlyphs;0<=a?o<a:o>a;s=0<=a?++o:--o)l.push(t.readUInt32());return l}).call(this)}},e}(),iI=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},sI=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Is(e,is),e.prototype.tag="name",e.prototype.parse=function(t){var n,r,i,s,o,a,l,c,d,g,p;for(t.pos=this.offset,t.readShort(),n=t.readShort(),a=t.readShort(),r=[],s=0;0<=n?s<n:s>n;s=0<=n?++s:--s)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+a+t.readShort()});for(l={},s=d=0,g=r.length;d<g;s=++d)i=r[s],t.pos=i.offset,c=t.readString(i.length),o=new iI(c,i),l[p=i.nameID]==null&&(l[p]=[]),l[i.nameID].push(o);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},e}(),oI=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Is(e,is),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),aI=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Is(e,is),e.prototype.tag="hmtx",e.prototype.parse=function(t){var n,r,i,s,o,a,l;for(t.pos=this.offset,this.metrics=[],n=0,a=this.file.hhea.numberOfMetrics;0<=a?n<a:n>a;n=0<=a?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var c,d;for(d=[],n=c=0;0<=i?c<i:c>i;n=0<=i?++c:--c)d.push(t.readInt16());return d}(),this.widths=(function(){var c,d,g,p;for(p=[],c=0,d=(g=this.metrics).length;c<d;c++)s=g[c],p.push(s.advance);return p}).call(this),r=this.widths[this.widths.length-1],l=[],n=o=0;0<=i?o<i:o>i;n=0<=i?++o:--o)l.push(this.widths.push(r));return l},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),ek=[].slice,lI=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Is(e,is),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,r,i,s,o,a,l,c,d,g;return t in this.cache?this.cache[t]:(s=this.file.loca,n=this.file.contents,r=s.indexOf(t),(i=s.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+r,o=(a=new xa(n.read(i))).readShort(),c=a.readShort(),g=a.readShort(),l=a.readShort(),d=a.readShort(),this.cache[t]=o===-1?new uI(a,c,g,l,d):new cI(a,o,c,g,l,d),this.cache[t]))},e.prototype.encode=function(t,n,r){var i,s,o,a,l;for(o=[],s=[],a=0,l=n.length;a<l;a++)i=t[n[a]],s.push(o.length),i&&(o=o.concat(i.encode(r)));return s.push(o.length),{table:o,offsets:s}},e}(),cI=function(){function e(t,n,r,i,s,o){this.raw=t,this.numberOfContours=n,this.xMin=r,this.yMin=i,this.xMax=s,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),uI=function(){function e(t,n,r,i,s){var o,a;for(this.raw=t,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=s,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;a=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&a;)o.pos+=1&a?4:2,128&a?o.pos+=8:64&a?o.pos+=4:8&a&&(o.pos+=2)}return e.prototype.encode=function(){var t,n,r;for(n=new xa(ek.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)n.pos=this.glyphOffsets[t];return n.data},e}(),dI=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Is(e,is),e.prototype.tag="loca",e.prototype.parse=function(t){var n,r;return t.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var i,s;for(s=[],r=0,i=this.length;r<i;r+=2)s.push(2*t.readUInt16());return s}).call(this):(function(){var i,s;for(s=[],r=0,i=this.length;r<i;r+=4)s.push(t.readUInt32());return s}).call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,n){for(var r=new Uint32Array(this.offsets.length),i=0,s=0,o=0;o<r.length;++o)if(r[o]=i,s<n.length&&n[s]==o){++s,r[o]=i;var a=this.offsets[o],l=this.offsets[o+1]-a;l>0&&(i+=l)}for(var c=new Array(4*r.length),d=0;d<r.length;++d)c[4*d+3]=255&r[d],c[4*d+2]=(65280&r[d])>>8,c[4*d+1]=(16711680&r[d])>>16,c[4*d]=(4278190080&r[d])>>24;return c},e}(),hI=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,n,r,i,s;for(n in i=this.font.cmap.tables[0].codeMap,t={},s=this.subset)r=s[n],t[n]=i[r];return t},e.prototype.glyphsFor=function(t){var n,r,i,s,o,a,l;for(i={},o=0,a=t.length;o<a;o++)i[s=t[o]]=this.font.glyf.glyphFor(s);for(s in n=[],i)(r=i[s])!=null&&r.compound&&n.push.apply(n,r.glyphIDs);if(n.length>0)for(s in l=this.glyphsFor(n))r=l[s],i[s]=r;return i},e.prototype.encode=function(t,n){var r,i,s,o,a,l,c,d,g,p,h,b,w,_,v;for(i in r=ZS.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),h={0:0},v=r.charMap)h[(l=v[i]).old]=l.new;for(b in p=r.maxGlyphID,o)b in h||(h[b]=p++);return d=function(x){var A,N;for(A in N={},x)N[x[A]]=A;return N}(h),g=Object.keys(d).sort(function(x,A){return x-A}),w=function(){var x,A,N;for(N=[],x=0,A=g.length;x<A;x++)a=g[x],N.push(d[a]);return N}(),s=this.font.glyf.encode(o,w,h),c=this.font.loca.encode(s.offsets,w),_={cmap:this.font.cmap.raw(),glyf:s.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(n)},this.font.os2.exists&&(_["OS/2"]=this.font.os2.raw()),this.font.directory.encode(_)},e}();Xe.API.PDFObject=function(){var e;function t(){}return e=function(n,r){return(Array(r+1).join("0")+n).slice(-r)},t.convert=function(n){var r,i,s,o;if(Array.isArray(n))return"["+function(){var a,l,c;for(c=[],a=0,l=n.length;a<l;a++)r=n[a],c.push(t.convert(r));return c}().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n!=null&&n.isString)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(i in s=["<<"],n)o=n[i],s.push("/"+i+" "+t.convert(o));return s.push(">>"),s.join(`
341`)}return""+n},t}();const fI="data:image/png;base64,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",rt={navy:[15,23,42],blue:[37,99,235],purple:[109,40,217],violet:[139,92,246],pink:[219,39,119],orange:[234,88,12],teal:[13,148,136],indigo:[79,70,229],green:[22,163,74],slate8:[30,41,59],slate6:[71,85,105],slate4:[148,163,184],slate1:[241,245,249],white:[255,255,255],cream:[248,250,252]},pI=[{key:"values",letter:"U",title:"Understand Your Core Values",subtitle:"The foundation of a fulfilling career",color:rt.blue},{key:"strengths",letter:"N",title:"Name Your Strengths & Passions",subtitle:"What you bring to the table",color:rt.purple},{key:"goals",letter:"S",title:"Set Clear Goals",subtitle:"Your career objectives",color:rt.pink},{key:"steps",letter:"T",title:"Take Small, Consistent Steps",subtitle:"Actions to start this week",color:rt.orange},{key:"network",letter:"U",title:"Use Your Network",subtitle:"People who can help you grow",color:rt.pink}
341,{key:"mindset",letter:"C",title:"Cultivate a Growth Mindset",subtitle:"How you approach challenges",color:rt.indigo},{key:"celebration",letter:"K",title:"Keep Moving Forward",subtitle:"Staying motivated on the journey",color:rt.teal}];function rx(e,t,n,r,i,s,o="F"){e.roundedRect(t,n,r,i,s,s,o)}function tk(e,t,n,r){try{e.addImage(fI,"PNG",t-r*1/2,n,r*1,r)}catch{e.setTextColor(...rt.white),e.setFontSize(10),e.setFont("helvetica","bold"),e.text("ASPIRE",t,n+r/2,{align:"center"})}}function Mm(e,t){e.setFillColor(...rt.blue),e.rect(0,0,t,26,"F"),e.setFillColor(...rt.purple),e.setGState(e.GState({opacity:.45})),e.rect(t*.35,0,t*.65,26,"F"),e.setGState(e.GState({opacity:1})),tk(e,20,2,22),e.setTextColor(...rt.white),e.setFontSize(13),e.setFont("helvetica","bold"),e.text("UNSTUCK",t/2,12,{align:"center"}),e.setFontSize(7),e.setFont("helvetica","normal"),e.text("Your Personalised Career & Business Roadmap",t/2,19,{align:"center"}),e.setDrawColor(...rt.violet),e.setLineWidth(.5),e.line(0,26,t,26)}function Bm(e,t,n,r){const i=n-12;e.setFillColor(...rt.cream),e.rect(0,i,t,12,"F"),e.setDrawColor(...rt.slate1),e.setLineWidth(.3),e.line(15,i,t-15,i),e.setTextColor(...rt.slate4),e.setFontSize(6.5),e.setFont("helvetica","normal"),e.text("aspire-coaching.co.uk",15,n-4),e.text("Aspire Career and Business Coaching",t/2,n-4,{align:"center"}),e.text(`${r} / 3`,t-15,n-4,{align:"right"})}function gI(e){const t=new Xe("p","mm","a4"),n=t.internal.pageSize.getWidth(),r=t.internal.pageSize.getHeight(),i=18,s=n-i*2;let o=0;t.setFillColor(...rt.navy),t.rect(0,0,n,r,"F"),t.setFillColor(...rt.blue),t.setGState(t.GState({opacity:.12})),t.circle(n+10,-20,100,"F"),t.setGState(t.GState({opacity:.07})),t.setFillColor(...rt.purple),t.circle(-30,r*.75,80,"F"),t.setGState(t.GState({opacity:1})),tk(t,n/2,45,40),t.setTextColor(...rt.white),t.setFontSize(11),t.setFont("helvetica","normal"),t.setGState(t.GState({opacity:.7})),t.text("ASPIRE CAREER AND BUSINESS COACHING",n/2,100,{align:"center"}),t.setGState(t.GState({opacity:1})),t.setDrawColor(...rt.violet),t.setLineWidth(.4),t.setGState(t.GState({opacity:.5})),t.line(n/2-35,106,n/2+35,106),t.setGState(t.GState({opacity:1})),t.setFontSize(52),t.setFont("helvetica","bold"),t.text("UNSTUCK",n/2,128,{align:"center"}),t.setFontSize(15),t.setFont("helvetica","normal"),t.setGState(t.GState({opacity:.85})),t.text("Your Personalised Career Roadmap",n/2,140,{align:"center"}),t.setGState(t.GState({opacity:1}));const a=Object.values(e).reduce((x,A)=>x+A.length,0),l=Object.values(e).filter(x=>x.length>0).length;t.setFillColor(...rt.blue),t.setGState(t.GState({opacity:.2})),rx(t,n/2-55,150,110,12,6),t.setGState(t.GState({opacity:1})),t.setTextColor(...rt.violet),t.setFontSize(9),t.text(`${l} sections  •  ${a} choices`,n/2,158,{align:"center"});const c=["U","N","S","T","U","C","K"],d=[rt.blue,rt.purple,rt.pink,rt.orange,rt.pink,rt.indigo,rt.teal],g=9,p=24,h=n/2-(c.length-1)*p/2;c.forEach((x,A)=>{const N=h+A*p,I=185;t.setFillColor(...d[A]),t.setGState(t.GState({opacity:.85})),t.circle(N,I,g,"F"),t.setGState(t.GState({opacity:1})),t.setTextColor(...rt.white),t.setFontSize(14),t.setFont("helvetica","bold"),t.text(x,N,I+4.5,{align:"center"})});const b=new Date().toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"});t.setTextColor(...rt.slate4),t.setFontSize(9),t.setFont("helvetica","normal"),t.text(b,n/2,210,{align:"center"}),t.setGState(t.GState({opacity:.5})),t.setTextColor(...rt.white),t.setFontSize(8),t.setFont("helvetica","italic"),t.text('"Helping people get unstuck and gain more clarity and vision',n/2,r-28,{align:"center"}),t.text('to get where they dream to be"',n/2,r-22,{align:"center"}),t.setGState(t.GState({opacity:.35})),t.setFont("helvetica","normal"),t.text("aspire-coaching.co.uk",n/2,r-14,{align:"center"}),t.setGState(t.GState({opacity:1})),t.addPage(),Mm(t,n),Bm(t,n,r,2),o=34,t.setTextColor(...rt.slate6),t.setFontSize(9.5),t.setFont("helvetica","italic");const _=t.splitTextToSize("This is your personalised UNSTUCK summary, a snapshot of the values, strengths, goals, and strategies you identified. Use it as your career action plan and revisit it whenever you need clarity.",s);t.text(_,i,o),o+=_.length*4.5+5,t.setDrawColor(...rt.slate1),t.setLineWidth(.3),t.line(i,o,n-i,o),o+=5,pI.forEac
341h(x=>{const A=e[x.key]||[];if(A.length===0)return;const N=6,I=14,$=I+A.length*N+6;o+$>r-18&&(t.addPage(),Mm(t,n),Bm(t,n,r,2),o=34),t.setFillColor(...x.color),t.rect(i,o+1,3,$-2,"F");const K=i+11,M=o+8;t.setFillColor(...x.color),t.circle(K,M,5,"F"),t.setTextColor(...rt.white),t.setFontSize(10),t.setFont("helvetica","bold"),t.text(x.letter,K,M+3.2,{align:"center"}),t.setTextColor(...rt.slate8),t.setFontSize(11),t.setFont("helvetica","bold"),t.text(x.title,i+20,o+7),t.setTextColor(...rt.slate4),t.setFontSize(7.5),t.setFont("helvetica","normal"),t.text(x.subtitle,i+20,o+12.5),A.forEach((D,X)=>{const L=o+I+1+X*N;t.setFillColor(...x.color),t.setGState(t.GState({opacity:.7})),t.circle(i+11,L+1.5,1.2,"F"),t.setGState(t.GState({opacity:1})),t.setTextColor(...rt.slate8),t.setFontSize(9),t.setFont("helvetica","normal"),t.text(D,i+17,L+3)}),t.setDrawColor(...rt.slate1),t.setLineWidth(.2),t.line(i+5,o+$,n-i-5,o+$),o+=$+4}),t.addPage(),Mm(t,n),Bm(t,n,r,3),o=42,t.setTextColor(...rt.blue),t.setFontSize(22),t.setFont("helvetica","bold"),t.text("What Next?",n/2,o,{align:"center"}),o+=8,t.setTextColor(...rt.slate6),t.setFontSize(10),t.setFont("helvetica","normal"),t.text("Here's how to continue your UNSTUCK journey:",n/2,o,{align:"center"}),o+=14,[{label:"Book a free discovery call",linkText:"Book your call here",url:"https://calendly.com/nicky-aspire/30-minute-meeting-clone",description:"Let's chat about your goals and how coaching can help you move forward."},{label:"Explore coaching programmes",linkText:"View our programmes",url:"https://aspire-coaching.co.uk/career-coaching",description:"Discover tailored coaching solutions designed to help you thrive."},{label:"Get in touch",linkText:"Contact us here",url:"https://share-eu1.hsforms.com/19Onz4GvDQL-SOuxV2szKwQ2drfrf",description:"Have questions? We'd love to hear from you."}].forEach((x,A)=>{const I=o;t.setFillColor(...rt.blue),t.setGState(t.GState({opacity:.05})),rx(t,i,I,s,36,4),t.setGState(t.GState({opacity:1})),t.setFillColor(...rt.blue),t.rect(i,I+4,3,28,"F"),t.setFillColor(...rt.blue),t.circle(i+14,I+12,5,"F"),t.setTextColor(...rt.white),t.setFontSize(12),t.setFont("helvetica","bold"),t.text(`${A+1}`,i+14,I+15.5,{align:"center"}),t.setTextColor(...rt.slate8),t.setFontSize(12),t.setFont("helvetica","bold"),t.text(x.label,i+24,I+13),t.setTextColor(...rt.slate6),t.setFontSize(9),t.setFont("helvetica","normal"),t.text(x.description,i+24,I+20),t.setTextColor(...rt.blue),t.setFontSize(9),t.setFont("helvetica","bold"),t.textWithLink(x.linkText,i+24,I+28,{url:x.url});const $=t.getTextWidth(x.linkText);t.setDrawColor(...rt.blue),t.setLineWidth(.3),t.line(i+24,I+28.5,i+24+$,I+28.5),o+=42}),o+=10,t.setDrawColor(...rt.slate1),t.setLineWidth(.3),t.line(i+20,o,n-i-20,o),o+=12,t.setTextColor(...rt.slate4),t.setFontSize(9),t.setFont("helvetica","italic"),t.text('"Helping people get unstuck and gain more clarity and vision to get where they dream to be"',n/2,o,{align:"center"}),o+=10,t.setFont("helvetica","bold"),t.setTextColor(...rt.slate8),t.setFontSize(13),t.text("Aspire Career and Business Coaching",n/2,o,{align:"center"}),o+=7,t.setFont("helvetica","normal"),t.setTextColor(...rt.blue),t.setFontSize(10),t.textWithLink("aspire-coaching.co.uk",n/2-t.getTextWidth("aspire-coaching.co.uk")/2,o,{url:"https://aspire-coaching.co.uk"}),t.save("UNSTUCK-Career-Roadmap.pdf")}const mI=({responses:e})=>{const[t,n]=W.useState(!1),[r,i]=W.useState(!1),s=()=>{n(!0);try{gI(e),i(!0)}catch(o){console.error("Error generating PDF:",o),alert("There was an error generating your PDF. Please try again.")}finally{n(!1)}};return k.jsx(Wr,{className:"bg-gradient-to-r from-green-600 to-blue-600 text-white animate-fade-in delay-700",children:k.jsxs(Vr,{className:"p-8 text-center",children:[k.jsx(Bp,{className:"h-14 w-14 mx-auto mb-4 opacity-90"}),k.jsx("h3",{className:"text-2xl font-bold mb-3",children:"Download Your UNSTUCK Summary"}),k.jsx("p",{className:"text-lg mb-6 opacity-90",children:"Get your complete personalised career roadmap as a beautifully formatted PDF, instantly."}),k.jsx(It,{onClick:s,disabled:t,size:"lg",className:"bg-white text-green-600 hover:bg-gray-100 font-bold py-3 px-10 text-lg hover:transform hover:scale-105 transition-all duration-300",children:r?k.jsxs(k.Fragment,{children:[k.jsx(T8,{className:"mr-2 h-5 w-5"}),"Downloaded! Click to download again"]}):t?"Generating...":k.jsxs(k.Fragment,{children:[k.jsx(Bp,{className:"mr-2 h-5 w-5"}),"Download PDF Now"]})})]})})};function vI(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}
341return new(n||(n=Promise))(function(s,o){function a(d){try{c(r.next(d))}catch(g){o(g)}}function l(d){try{c(r.throw(d))}catch(g){o(g)}}function c(d){d.done?s(d.value):i(d.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}const yI=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class iy extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class wI extends iy{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class ix extends iy{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class sx extends iy{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var wv;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(wv||(wv={}));class bI{constructor(t,{headers:n={},customFetch:r,region:i=wv.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=yI(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return vI(this,arguments,void 0,function*(n,r={}){var i;let s,o;try{const{headers:a,method:l,body:c,signal:d,timeout:g}=r;let p={},{region:h}=r;h||(h=this.region);const b=new URL(`${this.url}/${n}`);h&&h!=="any"&&(p["x-region"]=h,b.searchParams.set("forceFunctionRegion",h));let w;c&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(p["Content-Type"]="application/octet-stream",w=c):typeof c=="string"?(p["Content-Type"]="text/plain",w=c):typeof FormData<"u"&&c instanceof FormData?w=c:(p["Content-Type"]="application/json",w=JSON.stringify(c)):c&&typeof c!="string"&&!(typeof Blob<"u"&&c instanceof Blob)&&!(c instanceof ArrayBuffer)&&!(typeof FormData<"u"&&c instanceof FormData)?w=JSON.stringify(c):w=c;let _=d;g&&(o=new AbortController,s=setTimeout(()=>o.abort(),g),d?(_=o.signal,d.addEventListener("abort",()=>o.abort())):_=o.signal);const v=yield this.fetch(b.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},p),this.headers),a),body:w,signal:_}).catch(I=>{throw new wI(I)}),x=v.headers.get("x-relay-error");if(x&&x==="true")throw new ix(v);if(!v.ok)throw new sx(v);let A=((i=v.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),N;return A==="application/json"?N=yield v.json():A==="application/octet-stream"||A==="application/pdf"?N=yield v.blob():A==="text/event-stream"?N=v:A==="multipart/form-data"?N=yield v.formData():N=yield v.text(),{data:N,error:null,response:v}}catch(a){return{data:null,error:a,response:a instanceof sx||a instanceof ix?a.context:void 0}}finally{s&&clearTimeout(s)}})}}var xI=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
341de=e.code}},_I=class{constructor(e){var t,n,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(r=e.urlLengthLimit)!==null&&r!==void 0?r:8e3,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{let o=null,a=null,l=null,c=s.status,d=s.statusText;if(s.ok){var g,p;if(n.method!=="HEAD"){var h;const _=await s.text();_===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((h=n.headers.get("Accept"))===null||h===void 0)&&h.includes("application/vnd.pgrst.plan+text"))?a=_:a=JSON.parse(_))}const b=(g=n.headers.get("Prefer"))===null||g===void 0?void 0:g.match(/count=(exact|planned|estimated)/),w=(p=s.headers.get("content-range"))===null||p===void 0?void 0:p.split("/");b&&w&&w.length>1&&(l=parseInt(w[1])),n.isMaybeSingle&&Array.isArray(a)&&(a.length>1?(o={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,c=406,d="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{const b=await s.text();try{o=JSON.parse(b),Array.isArray(o)&&s.status===404&&(a=[],o=null,c=200,d="OK")}catch{s.status===404&&b===""?(c=204,d="No Content"):o={message:b}}if(o&&n.shouldThrowOnError)throw new xI(o)}return{error:o,data:a,count:l,status:c,statusText:d}});return this.shouldThrowOnError||(i=i.catch(s=>{var o;let a="",l="",c="";const d=s==null?void 0:s.cause;if(d){var g,p,h,b;const v=(g=d==null?void 0:d.message)!==null&&g!==void 0?g:"",x=(p=d==null?void 0:d.code)!==null&&p!==void 0?p:"";a=`${(h=s==null?void 0:s.name)!==null&&h!==void 0?h:"FetchError"}: ${s==null?void 0:s.message}`,a+=`
342
343Caused by: ${(b=d==null?void 0:d.name)!==null&&b!==void 0?b:"Error"}: ${v}`,x&&(a+=` (${x})`),d!=null&&d.stack&&(a+=`
344${d.stack}`)}else{var w;a=(w=s==null?void 0:s.stack)!==null&&w!==void 0?w:""}const _=this.url.toString().length;return(s==null?void 0:s.name)==="AbortError"||(s==null?void 0:s.code)==="ABORT_ERR"?(c="",l="Request was aborted (timeout or manual cancellation)",_>this.urlLengthLimit&&(l+=`. Note: Your request URL is ${_} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((d==null?void 0:d.name)==="HeadersOverflowError"||(d==null?void 0:d.code)==="UND_ERR_HEADERS_OVERFLOW")&&(c="",l="HTTP headers exceeded server limits (typically 16KB)",_>this.urlLengthLimit&&(l+=`. Your request URL is ${_} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(o=s==null?void 0:s.name)!==null&&o!==void 0?o:"FetchError"}: ${s==null?void 0:s.message}`,details:a,hint:l,code:c},data:null,count:null,status:0,statusText:""}})),i.then(e,t)}returns(){return this}overrideTypes(){return this}},AI=class extends _I{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:i=r}={}){const s=i?`${i}.order`:"order",o=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"offset":`${r}.offset`,s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(s,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
344explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:s="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,i?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${s}; for="${l}"; options=${a};`),s==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const ox=new RegExp("[,()]");var uc=class extends AI{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&ox.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&ox.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let i="";r==="plain"?i="pl":r==="phrase"?i="ph":r==="websearch"&&(i="w");const s=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${i}fts${s}.${t}`),this}match(e){return Object.entries(e).filter(([t,n])=>n!==void 0).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},SI=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:i=8e3}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},i=n?"HEAD":"GET";let s=!1;const o=(e??"*").split("").map(c=>/\s/.test(c)&&!s?"":(c==='"'&&(s=!s),c)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),r&&l.append("Prefer",`count=${r}`),new uc({method:i,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const i="POST",{url:s,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(a.length>
3440){const l=[...new Set(a)].map(c=>`"${c}"`);s.searchParams.set("columns",l.join(","))}}return new uc({method:i,url:s,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){var s;const o="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),r&&l.append("Prefer",`count=${r}`),i||l.append("Prefer","missing=default"),Array.isArray(e)){const c=e.reduce((d,g)=>d.concat(Object.keys(g)),[]);if(c.length>0){const d=[...new Set(c)].map(g=>`"${g}"`);a.searchParams.set("columns",d.join(","))}}return new uc({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var n;const r="PATCH",{url:i,headers:s}=this.cloneRequestState();return t&&s.append("Prefer",`count=${t}`),new uc({method:r,url:i,headers:s,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new uc({method:n,url:r,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function sh(e){"@babel/helpers - typeof";return sh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sh(e)}function kI(e,t){if(sh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(sh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NI(e){var t=kI(e,"string");return sh(t)=="symbol"?t:t+""}function EI(e,t,n){return(t=NI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ax(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ax(Object(n),!0).forEach(function(r){EI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ax(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var CI=class nk{constructor(t,{headers:n={},schema:r,fetch:i,timeout:s,urlLengthLimit:o=8e3}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const a=i??globalThis.fetch;s!==void 0&&s>0?this.fetch=(l,c)=>{const d=new AbortController,g=setTimeout(()=>d.abort(),s),p=c==null?void 0:c.signal;if(p){if(p.aborted)return clearTimeout(g),a(l,c);const h=()=>{clearTimeout(g),d.abort()};return p.addEventListener("abort",h,{once:!0}),a(l,Bf(Bf({},c),{},{signal:d.signal})).finally(()=>{clearTimeout(g),p.removeEventListener("abort",h)})}return a(l,Bf(Bf({},c),{},{signal:d.signal})).finally(()=>clearTimeout(g))}:this.fetch=a}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new SI(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new nk(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(t,n={},{head:r=!1,get:i=!1,count:s}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let c;const d=h=>h!==null&&typeof h=="object"&&(!Array.isArray(h)||h.some(d)),g=r&&Object.values(n).some(d);g?(a="POST",c=n):r||i?(a=r?"HEAD":"GET",Object.entries(n).filter(([h,b])=>b!==void 0).map(([h,b])=>[h,Array.isArray(b)?`{${b.join(",")}}`:`${b}
344`]).forEach(([h,b])=>{l.searchParams.append(h,b)})):(a="POST",c=n);const p=new Headers(this.headers);return g?p.set("Prefer",s?`count=${s},return=minimal`:"return=minimal"):s&&p.set("Prefer",`count=${s}`),new uc({method:a,url:l,headers:p,schema:this.schemaName,body:c,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit})}};class PI{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const i=r.node,s=parseInt(i.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
345import ws from "ws"
346new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
347
348Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const LI="2.100.1",TI=`realtime-js/${LI}`,RI="1.0.0",rk="2.0.0",jI=rk,OI=1e4,II=100,Vo={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},ik={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},bv={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class DI{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var i,s;const o=t.topic,a=(i=t.ref)!==null&&i!==void 0?i:"",l=(s=t.join_ref)!==null&&s!==void 0?s:"",c=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},g=Object.keys(d).length===0?"":JSON.stringify(d);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(g.length>255)throw new Error(`metadata length ${g.length} exceeds maximum of 255`);const p=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+c.length+g.length,h=new ArrayBuffer(this.HEADER_LENGTH+p);
348let b=new DataView(h),w=0;b.setUint8(w++,this.KINDS.userBroadcastPush),b.setUint8(w++,l.length),b.setUint8(w++,a.length),b.setUint8(w++,o.length),b.setUint8(w++,c.length),b.setUint8(w++,g.length),b.setUint8(w++,n),Array.from(l,v=>b.setUint8(w++,v.charCodeAt(0))),Array.from(a,v=>b.setUint8(w++,v.charCodeAt(0))),Array.from(o,v=>b.setUint8(w++,v.charCodeAt(0))),Array.from(c,v=>b.setUint8(w++,v.charCodeAt(0))),Array.from(g,v=>b.setUint8(w++,v.charCodeAt(0)));var _=new Uint8Array(h.byteLength+r.byteLength);return _.set(new Uint8Array(h),0),_.set(new Uint8Array(r),h.byteLength),_.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[i,s,o,a,l]=r;return n({join_ref:i,ref:s,topic:o,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),i=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,i)}}_decodeUserBroadcast(t,n,r){const i=n.getUint8(1),s=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const c=r.decode(t.slice(l,l+i));l=l+i;const d=r.decode(t.slice(l,l+s));l=l+s;const g=r.decode(t.slice(l,l+o));l=l+o;const p=t.slice(l,t.byteLength),h=a===this.JSON_ENCODING?JSON.parse(r.decode(p)):p,b={type:this.BROADCAST_EVENT,event:d,payload:h};return o>0&&(b.meta=JSON.parse(g)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:b}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}var Jt;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Jt||(Jt={}));const lx=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((s,o)=>(s[o]=FI(o,e,t,i),s),{}):{}},FI=(e,t,n,r)=>{const i=t.find(a=>a.name===e),s=i==null?void 0:i.type,o=n[e];return s&&!r.includes(s)?sk(s,o):xv(o)},sk=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return zI(t,n)}switch(e){case Jt.bool:return MI(t);case Jt.float4:case Jt.float8:case Jt.int2:case Jt.int4:case Jt.int8:case Jt.numeric:case Jt.oid:return BI(t);case Jt.json:case Jt.jsonb:return UI(t);case Jt.timestamp:return qI(t);case Jt.abstime:case Jt.date:case Jt.daterange:case Jt.int4range:case Jt.int8range:case Jt.money:case Jt.reltime:case Jt.text:case Jt.time:case Jt.timestamptz:case Jt.timetz:case Jt.tsrange:case Jt.tstzrange:return xv(t);default:return xv(t)}},xv=e=>e,MI=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},BI=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},UI=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},zI=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let s;const o=e.slice(1,n);try{s=JSON.parse("["+o+"]")}catch{s=o?o.split(","):[]}return s.map(a=>sk(t,a))}return e},qI=e=>typeof e=="string"?e.replace(" ","T"):e,ok=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var kd=e=>typeof e=="function"?e:function(){return e},HI=typeof self<"u"?self:null,dc=typeof window<"u"?window:null,bs=HI||dc||globalThis,WI="2.0.0",VI=1e4,GI=1e3,Ss={connecting:0,open:1,closing:2,closed:3},Dr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},to={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},_v={longpoll:"longpoll",websocket:"websocket"},$I={complete:4},Av="base64url.bearer.phx.",Uf=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHo
vendor: 8,700 bytes, line 348
348oks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},ak=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},KI=class{constructor(e,t,n){this.state=Dr.closed,this.topic=e,this.params=kd(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Uf(this,to.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new ak(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Dr.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=Dr.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=Dr.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=Dr.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Uf(this,to.leave,kd({}),this.timeout).send(),this.state=Dr.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(to.reply,(r,i)=>{this.trigger(this.replyEventName(i),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Dr.closed,this.bindings=[]}onClose(e){this.on(to.close,e)}onError(e){return this.on(to.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Uf(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Dr.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(to.close,"leave")},n=new Uf(this,to.leave,kd({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Dr.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let i=this.onMessage(e,t,n,r);if(t&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let s=this.bindings.filter(o=>o.event===e&&this.filterBindings(o,t,n));for(let o=0;o<s.length;o++)s[o].callback(i,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===Dr.closed}isErrored(){return this.state===Dr.errored}isJoined(){return this.state===Dr.joined}isJoining(){return this.state===Dr.joining}isLeaving(){return this.state===Dr.leaving}},e0=class{static request(e,t,n,r,i,s,o){if(bs.XDomainRequest){let a=new bs.XDomainRequest;return this.xdomainRequest(a,e,t,r,i,s,o)}else if(bs.XMLHttpRequest){let a=new bs.XMLHttpRequest;return this.xhrRequest(a,e,t,n,r,i,s,o)}else{if(bs.fetch&&bs.AbortController)return this.fetchRequest(e,t,n,r,i,s,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,r,i,s,o){let a={method:e,headers:n,body:r},l=null;return i&&(l=new AbortController,setTimeout(()=>l.abort(),i),a.signal=l.signal),bs.fetch(t,a).then(c=>c.text()).then(c=>this.parseJSON(c)).then(c=>o&&o(c)).catch(c=>{c.name==="AbortError"&&s?s():o&&o(null)}),l}static xdomainRequest(e,t,n,r,i,s,o){return e.timeout=i,e.open(t,n),e.onload=()=>{let a=this.parseJSON(e.responseText);o&&o(a)},s&&(e.ontimeout=s),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,i,s,o,a){e.open(t,n,!0),e.timeout=s;for(let[l,c]of Object.entries(r))e.setRequestHeader(l,c);return e.onerror=()=>a&&a(null),e.onreadystatechange=()=>{if(e.readyState===$I.complete&&a){let l=this.parseJSON(e.responseText);a(l)}},o&&(e.ontimeout=o),e.send(i),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=t?`${t}[${r}]`:r,s=e[r];typeof s=="object"?n.push(this.serialize(s,i)):n.push(encodeURIComponent(i)+"="+encodeURIComponent(s))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},QI=e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let i=0;i<r;i++)t+=String.fromCharCode(n[i]);return btoa(t)},nc=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(Av)&&(this.authToken=atob(t[1].slice(Av.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=Ss.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+_v.websocket),"$1/"+_v.longpoll)}endpointURL(){return e0.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=Ss.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Ss.open||this.readyState===Ss.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:r,messages:i}=t;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else n=0;switch(n){case 200:i.forEach(s=>{setTimeout(()=>this.onmessage({data:s}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Ss.open,this.onopen({}),this.poll();break;
348case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=QI(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(`
349`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let i of this.reqs)i.abort();this.readyState=Ss.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,i){let s,o=()=>{this.reqs.delete(s),r()};s=e0.request(e,this.endpointURL(),t,n,this.timeout,o,a=>{this.reqs.delete(s),this.isActive()&&i(a)}),this.reqs.add(s)}},YI=class cd{constructor(t,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,i=>{let{onJoin:s,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel.joinRef(),this.state=cd.syncState(this.state,i,s,o),this.pendingDiffs.forEach(l=>{this.state=cd.syncDiff(this.state,l,s,o)}),this.pendingDiffs=[],a()}),this.channel.on(r.diff,i=>{let{onJoin:s,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=cd.syncDiff(this.state,i,s,o),a())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return cd.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,r,i){let s=this.clone(t),o={},a={};return this.map(s,(l,c)=>{n[l]||(a[l]=c)}),this.map(n,(l,c)=>{let d=s[l];if(d){let g=c.metas.map(w=>w.phx_ref),p=d.metas.map(w=>w.phx_ref),h=c.metas.filter(w=>p.indexOf(w.phx_ref)<0),b=d.metas.filter(w=>g.indexOf(w.phx_ref)<0);h.length>0&&(o[l]=c,o[l].metas=h),b.length>0&&(a[l]=this.clone(d),a[l].metas=b)}else o[l]=c}),this.syncDiff(s,{joins:o,leaves:a},r,i)}static syncDiff(t,n,r,i){let{joins:s,leaves:o}=this.clone(n);return r||(r=function(){}),i||(i=function(){}),this.map(s,(a,l)=>{let c=t[a];if(t[a]=this.clone(l),c){let d=t[a].metas.map(p=>p.phx_ref),g=c.metas.filter(p=>d.indexOf(p.phx_ref)<0);t[a].metas.unshift(...g)}r(a,c,l)}),this.map(o,(a,l)=>{let c=t[a];if(!c)return;let d=l.metas.map(g=>g.phx_ref);c.metas=c.metas.filter(g=>d.indexOf(g.phx_ref)<0),i(a,c,l),c.metas.length===0&&delete t[a]}),t}static list(t,n){return n||(n=function(r,i){return i}),this.map(t,(r,i)=>n(r,i))}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static clone(t){return JSON.parse(JSON.stringify(t))}},zf={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,s,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:s,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:s}=e,o=this.META_LENGTH+t.length+n.length+i.length+r.length,a=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(a),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,t.length),l.setUint8(c++,n.length),l.setUint8(c++,i.length),l.setUint8(c++,r.length),Array.from(t,g=>l.setUint8(c++,g.charCodeAt(0))),Array.from(n,g=>l.setUint8(c++,g.charCodeAt(0))),Array.from(i,g=>l.setUint8(c++,g.charCodeAt(0))),Array.from(r,g=>l.setUint8(c++,g.charCodeAt(0)));var d=new Uint8Array(a.byteLength+s.byteLength);return d.set(new Uint8Array(a),0),d.set(new Uint8Array(s),a.byteLength),d.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}}
vendor: 8,419 bytes, line 349
349,decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,a=n.decode(e.slice(o,o+r));o=o+r;let l=n.decode(e.slice(o,o+i));o=o+i;let c=n.decode(e.slice(o,o+s));o=o+s;let d=e.slice(o,e.byteLength);return{join_ref:a,ref:null,topic:l,event:c,payload:d}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=t.getUint8(3),o=t.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(a,a+r));a=a+r;let c=n.decode(e.slice(a,a+i));a=a+i;let d=n.decode(e.slice(a,a+s));a=a+s;let g=n.decode(e.slice(a,a+o));a=a+o;let p=e.slice(a,e.byteLength),h={status:g,response:p};return{join_ref:l,ref:c,topic:d,event:to.reply,payload:h}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=this.HEADER_LENGTH+2,o=n.decode(e.slice(s,s+r));s=s+r;let a=n.decode(e.slice(s,s+i));s=s+i;let l=e.slice(s,e.byteLength);return{join_ref:null,ref:null,topic:o,event:a,payload:l}}},XI=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||VI,this.transport=t.transport||bs.WebSocket||nc,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||bs&&bs.sessionStorage,this.establishedConnections=0,this.defaultEncoder=zf.encode.bind(zf),this.defaultDecoder=zf.decode.bind(zf),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==nc?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;dc&&dc.addEventListener&&(dc.addEventListener("pagehide",r=>{this.conn&&(this.disconnect(),n=this.connectClock)}),dc.addEventListener("pageshow",r=>{n===this.connectClock&&(n=null,this.connect())}),dc.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=r=>t.rejoinAfterMs?t.rejoinAfterMs(r):[1e3,2e3,5e3][r-1]||1e4,this.reconnectAfterMs=r=>t.reconnectAfterMs?t.reconnectAfterMs(r):[10,50,100,150,200,250,500,1e3,2e3][r-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(r,i,s)=>{console.log(`${r}: ${i}`,s)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=kd(t.params||{}),this.endPoint=`${e}/${_v.websocket}`,this.vsn=t.vsn||WI,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new ak(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return nc}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=e0.appendParams(e0.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=kd(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==nc?this.connectWithFallback(nc,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(i=>{i.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case nc:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${Av}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,i,s,o=this.transportName(e),a=l=>{this.log("transport",`falling back to ${o}...`,l),this.off([i,s]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return a("memorized");this.fallbackTimer=setTimeout(a,t),s=this.onError(l=>{this.log("transport","error",l),r&&!n&&(clearTimeout(this.fallbackTimer),a(l))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let l=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${l}`,"true"),this.log("transport",`established ${l} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(a,t),this.ping(l=>{this.log("transport","connected to primary after",l),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),GI,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===Ss.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError()}
349triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(to.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Ss.connecting:return"connecting";case Ss.open:return"open";case Ss.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new KI(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:i,join_ref:s}=e;this.log("push",`${t} ${n} (${s}, ${i})`,r)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:r,payload:i,ref:s,join_ref:o}=t;if(s&&s===this.pendingHeartbeatRef){const a=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(i.status==="ok"?"ok":"error",a)}catch(l){this.log("error","error in heartbeat callback",l)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${i.status||""} ${n} ${r} ${s&&"("+s+")"||""}`.trim(),i);for(let a=0;a<this.channels.length;a++){const l=this.channels[a];l.isMember(n,r,i,o)&&l.trigger(r,i,s,o)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(i){this.log("error",`error in ${e} callback`,i)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Nd{constructor(t,n){const r=ZI(n);this.presence=new YI(t.getChannel(),r),this.presence.onJoin((i,s,o)=>{const a=Nd.onJoinPayload(i,s,o);t.getChannel().trigger("presence",a)}),this.presence.onLeave((i,s,o)=>{const a=Nd.onLeavePayload(i,s,o);t.getChannel().trigger("presence",a)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Nd.transformState(this.presence.state)}static transformState(t){return t=JI(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const i=t[r];return n[r]=pp(i),n},{})}static onJoinPayload(t,n,r){const i=cx(n),s=pp(r);return{event:"join",key:t,currentPresences:i,newPresences:s}}static onLeavePayload(t,n,r){const i=cx(n),s=pp(r);return{event:"leave",key:t,currentPresences:i,leftPresences:s}}}function pp(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function JI(e){return JSON.parse(JSON.stringify(e))}function ZI(e){return(e==null?void 0:e.events)&&{events:e.events}}function cx(e){return e!=null&&e.metas?pp(e):[]}var ux;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(ux||(ux={}));class eD{get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new Nd(this.channel.channelAdapter,n)}}class tD{constructor(t,n,r){const i=nD(r);this.channel=t.getSocket().channel(n,i),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,n){return this.channel.on(t,n)}off(t,n){this.channel.off(t,n)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,n,r){let i;try{i=this.channel.push(t,n,r)}catch{throw`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`}if(this.channel.pushBuffer.length>II){const s=this.channel.pushBuffer.shift();s.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${s.event}`,s.payload())}return i}updateJoinPayload(t){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),t)}canPush(){return this.socket.isConnected()&&this.state===Vo.joined}isJoined(){return this.state===Vo.joined}isJoining(){return this.state===Vo.joining}isClosed(){return this.state===Vo.closed}isLeaving(){return this.state===Vo.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function nD(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var dx;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(dx||(dx={}));var Ed;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Ed||(Ed={}));var no;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(no||(no={}));class Cd{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,n={config:{}},r){var i,s;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new tD(this.socket.socketAdapter,t,this.params),this.presence=new eD(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=ok(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((s=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||s===void 0)&&s.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,i,s;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:o,presence:a,private:l}}=this.params,c=(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(h=>h.filter))!==null&&i!==void 0?i:[],d=!!this.bindings[Ed.PRESENCE]&&this.bindings[Ed.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,g={},p={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(g.access_token=this.socket.accessTokenValue),this._onError(h=>{t==null||t(no.CHANNEL_ERROR,h)}),this._onClose(()=>t==null?void 0:t(no.CLOSED)),this.updateJoinPayload(Object.assign({config:p},g)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:h})=>{if(this.socket._isManualToken()||this.socket.setAuth(),h===void 0){t==null||t(no.SUBSCRIBED);return}this._updatePostgresBindings(h,t)}
349).receive("error",h=>{this.state=Vo.errored,t==null||t(no.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(no.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var r;const i=this.bindings.postgres_changes,s=(r=i==null?void 0:i.length)!==null&&r!==void 0?r:0,o=[];for(let a=0;a<s;a++){const l=i[a],{filter:{event:c,schema:d,table:g,filter:p}}=l,h=t&&t[a];if(h&&h.event===c&&Cd.isFilterValueEqual(h.schema,d)&&Cd.isFilterValueEqual(h.table,g)&&Cd.isFilterValueEqual(h.filter,p))o.push(Object.assign(Object.assign({},l),{id:h.id}));else{this.unsubscribe(),this.state=Vo.errored,n==null||n(no.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=Vo.errored&&n&&n(no.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){if(this.channelAdapter.isJoined()&&t===Ed.PRESENCE)throw this.socket.log("channel",`cannot add presence callbacks for ${this.topic} after joining.`),new Error("cannot add presence callbacks after joining a channel");return this._on(t,n,r)}async httpSend(t,n,r={}){var i;if(n==null)return Promise.reject("Payload is required for httpSend()");const s={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(s.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:s,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(i=r.timeout)!==null&&i!==void 0?i:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;try{const c=await a.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,i;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated 
349in the future. Please use httpSend() explicitly for REST delivery.");const{event:s,payload:o}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=c.body)===null||i===void 0?void 0:i.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var o,a,l;const c=this.channelAdapter.push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&s("ok"),c.receive("ok",()=>s("ok")),c.receive("error",()=>s("error")),c.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,n,r){const i=new AbortController,s=setTimeout(()=>i.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(s),o}_on(t,n,r){const i=t.toLocaleLowerCase(),s=this.channelAdapter.on(t,r),o={type:i,filter:n,callback:r,ref:s};return this.bindings[i]?this.bindings[i].push(o):this.bindings[i]=[o],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,r)=>{var i,s,o,a,l,c,d;const g=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(g,r))return!1;const p=(i=this.bindings[g])===null||i===void 0?void 0:i.find(h=>h.ref===t.ref);if(!p)return!0;if(["broadcast","presence","postgres_changes"].includes(g))if("id"in p){const h=p.id,b=(s=p.filter)===null||s===void 0?void 0:s.event;return h&&((o=n.ids)===null||o===void 0?void 0:o.includes(h))&&(b==="*"||(b==null?void 0:b.toLocaleLowerCase())===((a=n.data)===null||a===void 0?void 0:a.type.toLocaleLowerCase()))}else{const h=(c=(l=p==null?void 0:p.filter)===null||l===void 0?void 0:l.event)===null||c===void 0?void 0:c.toLocaleLowerCase();return h==="*"||h===((d=n==null?void 0:n.event)===null||d===void 0?void 0:d.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===g})}_notThisChannelEvent(t,n){const{close:r,error:i,leave:s,join:o}=ik;return n&&[r,i,s,o].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,r)=>{if(typeof n=="object"&&"ids"in n){const i=n.data,{schema:s,table:o,commit_timestamp:a,type:l,errors:c}=i;return Object.assign(Object.assign({},{schema:s,table:o,commit_timestamp:a,eventType:l,new:{},old:{},errors:c}),this._getPayloadRecords(i))}return n})}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=lx(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=lx(t.columns,t.old_record)),n}}class rD{constructor(t,n){this.socket=new XI(t,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,r,i=1e4){return new Promise(s=>{setTimeout(()=>s("timeout"),i),this.socket.disconnect(()=>{t(),s("ok")},n,r)})}push(t){this.socket.push(t)}log(t,n,r){this.socket.log(t,n,r)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==bv.connecting}isDisconnecting(){return this.socket.connectionState()==bv.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const iD={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},sD=[1e3,2e3,5e3,1e4],oD=1e4,aD=`
350  addEventListener("message", (e) => {
351    if (e.data.event === "start") {
352      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
353    }
354  });`;class lD{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
354,this.ref=0,this.serializer=new DI,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._resolveFetch=s=>s?(...o)=>s(...o):(...o)=>fetch(...o),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const i=this._initializeOptions(n);this.socketAdapter=new rD(t,i),this.httpEndpoint=ok(t),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const n=t.message;throw n.includes("Node.js")?new Error(`${n}
355
356To use Realtime in Node.js, you need to provide a WebSocket implementation:
357
358Option 1: Use Node.js 22+ which has native WebSocket support
359Option 2: Install and provide the "ws" package:
360
361  npm install ws
362
363  import ws from "ws"
364  const client = new RealtimeClient(url, {
365    ...options,
366    transport: ws
367  })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,n)}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&t.teardown(),this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=this.channels.map(async r=>{const i=await r.unsubscribe();return r.teardown(),i}),n=await Promise.all(t);return this.disconnect(),n}log(t,n,r){this.socketAdapter.log(t,n,r)}connectionState(){return this.socketAdapter.connectionState()||bv.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const r=`realtime:${t}`,i=this.getChannels().find(s=>s.topic===r);if(i)return i;{const s=new Cd(`realtime:${t}`,n,this);return this.channels.push(s),s}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(i=>{const s={access_token:n,version:TI};n&&i.updateJoinPayload(s),i.joinedOnce&&i.channelAdapter.isJoined()&&i.channelAdapter.push(ik.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(n,r)=>{n=="sent"&&this._setAuthSafely(),t&&t(n,r)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([aD],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,i,s,o,a,l,c,d;this.worker=(n=t==null?void 0:t.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=t==null?void 0:t.accessToken)!==null&&r!==void 0?r:null;const g={};
367g.timeout=(i=t==null?void 0:t.timeout)!==null&&i!==void 0?i:OI,g.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:iD.HEARTBEAT_INTERVAL,g.transport=(o=t==null?void 0:t.transport)!==null&&o!==void 0?o:PI.getWebSocketConstructor(),g.params=t==null?void 0:t.params,g.logger=t==null?void 0:t.logger,g.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),g.reconnectAfterMs=(a=t==null?void 0:t.reconnectAfterMs)!==null&&a!==void 0?a:w=>sD[w-1]||oD;let p,h;const b=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:jI;switch(b){case RI:p=(w,_)=>_(JSON.stringify(w)),h=(w,_)=>_(JSON.parse(w));break;case rk:p=this.serializer.encode.bind(this.serializer),h=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${g.vsn}`)}if(g.vsn=b,g.encode=(c=t==null?void 0:t.encode)!==null&&c!==void 0?c:p,g.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:h,g.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,g.params=Object.assign(Object.assign({},g.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,g.autoSendHeartbeat=!this.worker}return g}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}var oh=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function cD(e,t,n){const r=new URL(t,e);if(n)for(const[i,s]of Object.entries(n))s!==void 0&&r.searchParams.set(i,s);return r.toString()}async function uD(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function dD(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:s,headers:o}){const a=cD(e.baseUrl,r,i),l=await uD(e.auth),c=await t(a,{method:n,headers:{...s?{"Content-Type":"application/json"}:{},...l,...o},body:s?JSON.stringify(s):void 0}),d=await c.text(),g=(c.headers.get("content-type")||"").includes("application/json"),p=g&&d?JSON.parse(d):d;if(!c.ok){const h=g?p:void 0,b=h==null?void 0:h.error;throw new oh((b==null?void 0:b.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:b==null?void 0:b.type,icebergCode:b==null?void 0:b.code,details:h})}return{status:c.status,headers:c.headers,data:p}}}}function qf(e){return e.join("�")}var hD=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:qf(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${qf(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${qf(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${qf(e.namespace)}`}),!0}catch(t){if(t instanceof oh&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof oh&&n.status===409)return;throw n}}};function rc(e){return e.join("�")}var fD=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${rc(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${rc(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${rc(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${rc(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${rc(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${rc(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof oh&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof oh&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},pD=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=dD({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new hD(this.client,t),this.tableOps=new fD(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
367async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},V0=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}};function G0(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Sv=class extends V0{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},lk=class extends V0{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const gD=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),mD=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},kv=e=>{if(Array.isArray(e))return e.map(n=>kv(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[i]=kv(r)}),t},vD=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function ah(e){"@babel/helpers - typeof";return ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ah(e)}function yD(e,t){if(ah(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ah(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wD(e){var t=yD(e,"string");return ah(t)=="symbol"?t:t+""}function bD(e,t,n){return(t=wD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hx(Object(n),!0).forEach(function(r){bD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const fx=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},xD=async(e,t,n,r)=>{if(e!==null&&typeof e=="object"&&typeof e.json=="function"){const i=e;let s=parseInt(i.status,10);Number.isFinite(s)||(s=500),i.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||s+"";t(new Sv(fx(o),s,a,r))}).catch(()=>{const o=s+"";t(new Sv(i.statusText||`HTTP ${s} error`,s,o,r))})}else t(new lk(fx(e),e,r))},_D=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!r?it(it({},i),n):(mD(r)?(i.headers=it({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r)):i.body=r,t!=null&&t.duplex&&(i.duplex=t.duplex),it(it({},i),n))};async function nd(e,t,n,r,i,s,o){return new Promise((a,l)=>{e(n,_D(t,r,i,s)).then(c=>{if(!c.ok)throw c;if(r!=null&&r.noResolveJson)return c;if(o==="vectors"){const d=c.headers.get("content-type");if(c.headers.get("content-length")==="0"||c.status===204)return{};if(!d||!d.includes("application/json"))return{}}return c.json()}).then(c=>a(c)).catch(c=>xD(c,l,r,o))})}function ck(e="storage"){return{get:async(t,n,r,i)=>nd(t,"GET",n,r,i,void 0,e),post:async(t,n,r,i,s)=>nd(t,"POST",n,i,s,r,e),put:async(t,n,r,i,s)=>nd(t,"PUT",n,i,s,r,e),head:async(t,n,r,i)=>nd(t,"HEAD",n,it(it({},r),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,n,r,i,s)=>nd(t,"DELETE",n,i,s,r,e)}}const AD=ck("storage"),{get:lh,post:$i,put:Nv,head:SD,remove:sy}=AD,ai=ck("vectors");var wu=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=gD(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=it(it({},this.headers),{},{[e]:t}),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(G0(n))return{data:null,error:n};throw n}}},kD=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(G0(t))return{data:null,error:t};throw t}}};let uk;uk=Symbol.toStringTag;var ND=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[uk]="BlobDownloadBuilder",this.promise=null}asStream(){return new kD(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(G0(t))return{data:null,error:t};throw t}}};const ED={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},px={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var CD=class extends wu{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var i=this;return i.handleOperation(async()=>{let s;const o=it(it({},px),r);let a=it(it({},i.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&n instanceof Blob?(s=new FormData,s.append("cacheControl",o.cacheControl),l&&s.append("metadata",i.encodeMetadata(l)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.has("cacheControl")||s.append("cacheControl",o.cacheControl),l&&!s.has("metadata")&&s.append("metadata",i.encodeMetadata(l))):(s=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=i.toBase64(i.encodeMetadata(l))),(typeof ReadableStream<"u"&&s instanceof ReadableStream||s&&typeof s=="object"&&"pipe"in s&&typeof s.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers&&(a=it(it({},a),r.headers));const c=i._removeEmptyFolders(t),d=i._getFinalPath(c),g=await(e=="PUT"?Nv:$i)(i.fetch,`${i.url}/object/${d}`,s,it({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:c,id:g.Id,fullPath:g.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var i=this;const s=i._removeEmptyFolders(e),o=i._getFinalPath(s),a=new URL(i.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",t),i.handleOperation(async()=>{let l;const c=it(it({},px),r),d=it(it({},i.headers),{"x-upsert":String(c.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",c.cacheControl)):(l=n,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType),{path:s,fullPath:(await Nv(i.fetch,a.toString(),l,{headers:d})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const i=it({},n.headers);t!=null&&t.upsert&&(i["x-upsert"]="true");const s=await $i(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),o=new URL(n.url+s.url),a=o.searchParams.get("token");if(!a)throw new V0("No token returned by API");return{signedUrl:o.toString(),path:e,token:a}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await $i(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
367stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await $i(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let i=r._getFinalPath(e);const s=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let o=await $i(r.fetch,`${r.url}/object/sign/${i}`,it({expiresIn:t},s?{transform:n.transform}:{}),{headers:r.headers});const a=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"",l=s&&o.signedURL.includes("/object/sign/")?o.signedURL.replace("/object/sign/","/render/image/sign/"):o.signedURL;return{signedUrl:encodeURI(`${r.url}${l}${a}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const i=await $i(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),s=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i.map(o=>it(it({},o),{},{signedUrl:o.signedURL?encodeURI(`${r.url}${o.signedURL}${s}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),s=i?`?${i}`:"",o=this._getFinalPath(e),a=()=>lh(this.fetch,`${this.url}/${r}/${o}${s}`,{headers:this.headers,noResolveJson:!0},n);return new ND(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>kv(await lh(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await SD(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(i){if(t.shouldThrowOnError)throw i;if(G0(i)){var r;const s=i instanceof Sv?i.status:i instanceof lk?(r=i.originalError)===null||r===void 0?void 0:r.status:void 0;if(s!==void 0&&[400,404].includes(s))return{data:!1,error:i}}throw i}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],i=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";i!==""&&r.push(i);const s=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",o=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});o!==""&&r.push(o);let a=r.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${n}${a}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await sy(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const i=it(it(it({},ED),t),{},{prefix:e||""});return await $i(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=it({},e);return await $i(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const PD="2.100.1",kh={"X-Client-Info":`storage-js/${PD}`};var LD=class extends wu{constructor(e,t={},n,r){const i=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const s=i.href.replace(/\/$/,""),o=it(it({},kh),t);super(s,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await lh(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await lh(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await $i(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await Nv(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await $i(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await sy(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},TD=class extends wu{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=it(it({},kh),t);super(r,i,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await $i(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),i=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await lh(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await sy(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!vD(e))throw new V0("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new pD({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
367),r=this.shouldThrowOnError;return new Proxy(n,{get(i,s){const o=i[s];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(i,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}},RD=class extends wu{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=it(it({},kh),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await ai.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await ai.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},jD=class extends wu{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=it(it({},kh),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},OD=class extends wu{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=it(it({},kh),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},ID=class extends OD{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new DD(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},DD=class extends RD{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,it(it({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,it(it({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new FD(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},FD=class extends jD{constructor(e,t,n,r,i){super(e,t,i),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,it(it({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,it(it({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,it(it({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,it(it({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,it(it({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},MD=class extends LD{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new CD(this.url,this.headers,e,this.fetch)}get vectors(){return new ID(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new TD(this.url+"/iceberg",this.headers,this.fetch)}};function $0(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}const dk="2.100.1",hc=30*1e3,Ev=3,Um=Ev*hc,BD="http://localhost:9999",UD="supabase.auth.token",zD={"X-Client-Info":`gotrue-js/${dk}`},Cv="X-Supabase-Api-Version",hk={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},qD=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,HD=10*60*1e3;
367class ch extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function ze(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class WD extends ch{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function VD(e){return ze(e)&&e.name==="AuthApiError"}class Za extends ch{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class yo extends ch{constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class ti extends yo{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function zm(e){return ze(e)&&e.name==="AuthSessionMissingError"}class ic extends yo{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Hf extends yo{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Wf extends yo{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function GD(e){return ze(e)&&e.name==="AuthImplicitGrantRedirectError"}class gx extends yo{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class $D extends yo{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Pv extends yo{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function qm(e){return ze(e)&&e.name==="AuthRetryableFetchError"}class mx extends yo{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Lv extends yo{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const t0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),vx=` 	
368\r=`.split(""),KD=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<vx.length;t+=1)e[vx[t].charCodeAt(0)]=-2;for(let t=0;t<t0.length;t+=1)e[t0[t].charCodeAt(0)]=t;return e})();function yx(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(t0[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(t0[r]),t.queuedBits-=6}}function fk(e,t,n){const r=KD[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function wx(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=o=>{XD(o,r,n)};for(let o=0;o<e.length;o+=1)fk(e.charCodeAt(o),i,s);return t.join("")}function QD(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function YD(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}QD(r,t)}}function XD(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function qc(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)fk(e.charCodeAt(i),n,r);return new Uint8Array(t)}function JD(e){const t=[];return YD(e,n=>t.push(n)),new Uint8Array(t)}function ol(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};return e.forEach(i=>
368yx(i,n,r)),yx(null,n,r),t.join("")}function ZD(e){return Math.round(Date.now()/1e3)+e}function e9(){return Symbol("auth-callback")}const er=()=>typeof window<"u"&&typeof document<"u",Ga={tested:!1,writable:!1},pk=()=>{if(!er())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Ga.tested)return Ga.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Ga.tested=!0,Ga.writable=!0}catch{Ga.tested=!0,Ga.writable=!1}return Ga.writable};function t9(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,s)=>{t[s]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const gk=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),n9=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",fc=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},$a=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Zn=async(e,t)=>{await e.removeItem(t)};class K0{constructor(){this.promise=new K0.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}K0.promiseConstructor=Promise;function Vf(e){const t=e.split(".");if(t.length!==3)throw new Lv("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!qD.test(t[r]))throw new Lv("JWT not in base64url format");return{header:JSON.parse(wx(t[0])),payload:JSON.parse(wx(t[1])),signature:qc(t[2]),raw:{header:t[0],payload:t[1]}}}async function r9(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function i9(e,t){return new Promise((r,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const o=await e(s);if(!t(s,null,o)){r(o);return}}catch(o){if(!t(s,o)){i(o);return}}})()})}function s9(e){return("0"+e.toString(16)).substr(-2)}function o9(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let s=0;s<56;s++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,s9).join("")}async function a9(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function l9(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await a9(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function sc(e,t,n=!1){const r=o9();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await fc(e,`${t}-code-verifier`,i);const s=await l9(r);return[s,r===s?"plain":"s256"]}const c9=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function u9(e){const t=e.headers.get(Cv);if(!t||!t.match(c9))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function d9(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function h9(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const f9=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function oc(e){if(!f9.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Hm(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function p9(e,t){return new Proxy(e,{get:(n,r,i)=>{if(r==="__isInsecureUserWarningProxy")return!0;
368if(typeof r=="symbol"){const s=r.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)"||s==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,i)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,i)}})}function bx(e){return JSON.parse(JSON.stringify(e))}const Xa=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),g9=[502,503,504];async function xx(e){var t;if(!n9(e))throw new Pv(Xa(e),0);if(g9.includes(e.status))throw new Pv(Xa(e),e.status);let n;try{n=await e.json()}catch(s){throw new Za(Xa(s),s)}let r;const i=u9(e);if(i&&i.getTime()>=hk["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new mx(Xa(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new ti}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((s,o)=>s&&typeof o=="string",!0))throw new mx(Xa(n),e.status,n.weak_password.reasons);throw new WD(Xa(n),e.status||500,r)}const m9=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function tt(e,t,n,r){var i;const s=Object.assign({},r==null?void 0:r.headers);s[Cv]||(s[Cv]=hk["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const o=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await v9(e,t,n+a,{headers:s,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function v9(e,t,n,r,i,s){const o=m9(t,r,i,s);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new Pv(Xa(l),0)}if(a.ok||await xx(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await xx(l)}}function Wi(e){var t;let n=null;b9(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=ZD(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function _x(e){const t=Wi(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Go(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function y9(e){return{data:e,error:null}}function w9(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s}=e,o=$0(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function Ax(e){return e}function b9(e){return e.access_token&&e.refresh_token&&e.expires_in}const Wm=["global","local","others"];class x9{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=gk(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)}}async signOut(t,n=Wm[0]){if(Wm.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Wm.join(", ")}`);try{return await tt(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(ze(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await tt(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Go})}catch(r){if(ze(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=$0(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await tt(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:w9,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(ze(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await tt(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Go})}catch(n){if(ze(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,s,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=await tt(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:Ax});if(d.error)throw d.error;const g=await d.json(),p=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,h=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>
3680&&(h.forEach(b=>{const w=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),_=JSON.parse(b.split(";")[1].split("=")[1]);c[`${_}Page`]=w}),c.total=parseInt(p)),{data:Object.assign(Object.assign({},g),c),error:null}}catch(c){if(ze(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){oc(t);try{return await tt(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Go})}catch(n){if(ze(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){oc(t);try{return await tt(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Go})}catch(r){if(ze(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){oc(t);try{return await tt(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Go})}catch(r){if(ze(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){oc(t.userId);try{const{data:n,error:r}=await tt(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(ze(n))return{data:null,error:n};throw n}}async _deleteFactor(t){oc(t.userId),oc(t.id);try{return{data:await tt(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(ze(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,i,s,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=await tt(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:Ax});if(d.error)throw d.error;const g=await d.json(),p=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,h=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>0&&(h.forEach(b=>{const w=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),_=JSON.parse(b.split(";")[1].split("=")[1]);c[`${_}Page`]=w}),c.total=parseInt(p)),{data:Object.assign(Object.assign({},g),c),error:null}}catch(c){if(ze(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await tt(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ze(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await tt(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ze(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await tt(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ze(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await tt(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ze(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await tt(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ze(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t!=null&&t.type&&(n.type=t.type),await tt(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var i;return{data:{providers:(i=r==null?void 0:r.providers)!==null&&i!==void 0?i:[]},error:null}}})}catch(n){if(ze(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await tt(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ze(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await tt(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ze(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await tt(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ze(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await tt(this.fetch,"DELET
368E",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ze(n))return{data:null,error:n};throw n}}}function Sx(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const vs={debug:!!(globalThis&&pk()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class mk extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class kx extends mk{}async function _9(e,t,n){vs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;let i;t>0&&(i=setTimeout(()=>{r.abort(),vs.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){clearTimeout(i),vs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{vs.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw vs.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new kx(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(vs.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null,"  "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),clearTimeout(i),await n()}})}catch(s){if(t>0&&clearTimeout(i),(s==null?void 0:s.name)==="AbortError"&&t>0){if(r.signal.aborted)return vs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async o=>{if(o){vs.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,o.name);try{return await n()}finally{vs.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,o.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await n()}));throw vs.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new kx(`Lock "${e}" was released because another request stole it`)}throw s}}function A9(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function vk(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function S9(e){return parseInt(e,16)}function k9(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function N9(e){var t;const{chainId:n,domain:r,expirationTime:i,issuedAt:s=new Date,nonce:o,notBefore:a,requestId:l,resources:c,scheme:d,uri:g,version:p}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!g)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(p!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${p}`);
368if(!((t=e.statement)===null||t===void 0)&&t.includes(`
369`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const h=vk(e.address),b=d?`${d}://${r}`:r,w=e.statement?`${e.statement}
370`:"",_=`${b} wants you to sign in with your Ethereum account:
371${h}
372
373${w}`;let v=`URI: ${g}
374Version: ${p}
375Chain ID: ${n}${o?`
376Nonce: ${o}`:""}
377Issued At: ${s.toISOString()}`;if(i&&(v+=`
378Expiration Time: ${i.toISOString()}`),a&&(v+=`
379Not Before: ${a.toISOString()}`),l&&(v+=`
380Request ID: ${l}`),c){let x=`
381Resources:`;for(const A of c){if(!A||typeof A!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${A}`);x+=`
382- ${A}`}v+=x}return`${_}
383${v}`}class jn extends Error{constructor({message:t,code:n,cause:r,name:i}){var s;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(s=i??(r instanceof Error?r.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=n}}class n0 extends jn{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function E9({error:e,options:t}){var n,r,i;const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new jn({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=s.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new jn({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=s.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new jn({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=s.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new jn({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new jn({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new jn({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return s.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new jn({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new jn({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(yk(o)){if(s.rp.id!==o)return new jn({message:`The RP ID "${s.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new jn({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new jn({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new jn({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new jn({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function C9({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new jn({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new jn({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(yk(r)){if(n.rpId!==r)return new jn({message:`The RP ID "${n.rpId}
383" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new jn({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new jn({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new jn({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class P9{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const L9=new P9;function T9(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,i=$0(e,["challenge","user","excludeCredentials"]),s=qc(t).buffer,o=Object.assign(Object.assign({},n),{id:qc(n.id).buffer}),a=Object.assign(Object.assign({},i),{challenge:s,user:o});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const c=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:qc(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function R9(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=$0(e,["challenge","allowCredentials"]),i=qc(t).buffer,s=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){s.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];s.allowCredentials[o]=Object.assign(Object.assign({},a),{id:qc(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return s}function j9(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:ol(new Uint8Array(e.response.attestationObject)),clientDataJSON:ol(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function O9(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:ol(new Uint8Array(i.authenticatorData)),clientDataJSON:ol(new Uint8Array(i.clientDataJSON)),signature:ol(new Uint8Array(i.signature)),userHandle:i.userHandle?ol(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function yk(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Nx(){var e,t;return!!(er()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function I9(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new n0("Browser returned unexpected credential type",t)}:{data:null,error:new n0("Empty credential response",t)}}catch(t){return{data:null,error:E9({error:t,options:e})}}}async function D9(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new n0("Browser returned unexpected credential type",t)}:{data:null,error:new n0("Empty credential response",t)}}
383catch(t){return{data:null,error:C9({error:t,options:e})}}}const F9={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},M9={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function r0(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),n=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),r={};for(const i of e)if(i)for(const s in i){const o=i[s];if(o!==void 0)if(Array.isArray(o))r[s]=o;else if(n(o))r[s]=o;else if(t(o)){const a=r[s];t(a)?r[s]=r0(a,o):r[s]=r0(o)}else r[s]=o}return r}function B9(e,t){return r0(F9,e,t||{})}function U9(e,t){return r0(M9,e,t||{})}class z9{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:i},s){var o;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!a)return{data:null,error:l};const c=i??L9.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:d}=a.webauthn.credential_options.publicKey;if(!d.name){const g=r;if(g)d.name=`${d.id}:${g}`;else{const h=(await this.client.getUser()).data.user,b=((o=h==null?void 0:h.user_metadata)===null||o===void 0?void 0:o.name)||(h==null?void 0:h.email)||(h==null?void 0:h.id)||"User";d.name=`${d.id}:${b}`}}d.displayName||(d.displayName=d.name)}switch(a.webauthn.type){case"create":{const d=B9(a.webauthn.credential_options.publicKey,s==null?void 0:s.create),{data:g,error:p}=await I9({publicKey:d,signal:c});return g?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:g}},error:null}:{data:null,error:p}}case"request":{const d=U9(a.webauthn.credential_options.publicKey,s==null?void 0:s.request),{data:g,error:p}=await D9(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:d,signal:c}));return g?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:g}},error:null}:{data:null,error:p}}}}catch(a){return ze(a)?{data:null,error:a}:{data:null,error:new Za("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!n)return{data:null,error:new ch("rpId is required for WebAuthn authentication")};try{if(!Nx())return{data:null,error:new Za("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:i},{request:s});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(o){return ze(o)?{data:null,error:o}:{data:null,error:new Za("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!n)return{data:null,error:new ch("rpId is required for WebAuthn registration")};try{if(!Nx())return{data:null,error:new Za("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(d=>{var g;return(g=d.data)===null||g===void 0?void 0:g.all.find(p=>p.factor_type==="webauthn"&&p.friendly_name===t&&p.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:a};const{data:l,error:c}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:i},{create:s});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(o){return ze(o)?{data:null,error:o}:{data:null,error:new Za("Unexpected error in register",o)}}}}A9();const q9={url:BD,storageKey:UD,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:zD,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1};async function Ex(e,t,n){return await n()}const ac={};class uh{get jwks(){var t,n;return(n=(t=ac[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){ac[this.storageKey]=Object.assign(Object.assign({},ac[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=ac[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){ac[this.storageKey]=Object.assign(Object.assign({},ac[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const s=Object.assign(Object.assign({},q9),t);if(this.storageKey=s.storageKey,this.instanceID=(n=uh.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,uh.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.instanceID>0&&er()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=s.persistSession,this.autoRefreshToken=s.autoRefreshToken,this.admin=new x9({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=gk(s.fetch),this.lock=s.lock||Ex,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,this.throwOnError=s.throwOnError,this.lockAcquireTimeout=s.lockAcquireTimeout,s.lock?this.lock=s.lock:this.persistSession&&er()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=_9:this.lock=Ex,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new z9(this)}
383,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:pk()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Sx(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=Sx(this.memoryStorage)),er()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}s.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${dk}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(er()&&(n=t9(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),er()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),GD(s)){const l=(t=s.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:s}}return{error:s}}const{session:o,redirectType:a}=i;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return ze(n)?this._returnResult({error:n}):this._returnResult({error:new Za("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{const s=await tt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:Wi}),{data:o,error:a}=s;
383if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(ze(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signUp(t){var n,r,i;try{let s;if("email"in t){const{email:d,password:g,options:p}=t;let h=null,b=null;this.flowType==="pkce"&&([h,b]=await sc(this.storage,this.storageKey)),s=await tt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:p==null?void 0:p.emailRedirectTo,body:{email:d,password:g,data:(n=p==null?void 0:p.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken},code_challenge:h,code_challenge_method:b},xform:Wi})}else if("phone"in t){const{phone:d,password:g,options:p}=t;s=await tt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:g,data:(r=p==null?void 0:p.data)!==null&&r!==void 0?r:{},channel:(i=p==null?void 0:p.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken}},xform:Wi})}else throw new Hf("You must provide either an email or phone number and a password");const{data:o,error:a}=s;
383if(a||!o)return await Zn(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(await Zn(this.storage,`${this.storageKey}-code-verifier`),ze(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithPassword(t){try{let n;if("email"in t){const{email:s,password:o,options:a}=t;n=await tt(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:_x})}else if("phone"in t){const{phone:s,password:o,options:a}=t;n=await tt(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:_x})}else throw new Hf("You must provide either an email or phone number and a password");const{data:r,error:i}=n;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!r||!r.session||!r.user){const s=new ic;return this._returnResult({data:{user:null,session:null},error:s})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:i})}catch(n){if(ze(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,i,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,i,s,o,a,l,c,d,g,p;let h,b;if("message"in t)h=t.message,b=t.signature;else{const{chain:w,wallet:_,statement:v,options:x}=t;let A;if(er())if(typeof _=="object")A=_;else{const D=window;if("ethereum"in D&&typeof D.ethereum=="object"&&"request"in D.ethereum&&typeof D.ethereum.request=="function")A=D.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof _!="object"||!(x!=null&&x.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");A=_}const N=new URL((n=x==null?void 0:x.url)!==null&&n!==void 0?n:window.location.href),I=await A.request({method:"eth_requestAccounts"}).then(D=>D).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!I||I.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const $=vk(I[0]);let K=(r=x==null?void 0:x.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!K){const D=await A.request({method:"eth_chainId"});K=S9(D)}const M={domain:N.host,address:$,statement:v,uri:N.href,version:"1",chainId:K,nonce:(i=x==null?void 0:x.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(o=(s=x==null?void 0:x.signInWithEthereum)===null||s===void 0?void 0:s.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=x==null?void 0:x.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=x==null?void 0:x.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=x==null?void 0:x.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(d=x==null?void 0:x.signInWithEthereum)===null||d===void 0?void 0:d.resources};h=N9(M),b=await A.request({method:"personal_sign",params:[k9(h),$]})}try{const{data:w,error:_}=await tt(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:h,signature:b},!((g=t.options)===null||g===void 0)&&g.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Wi});if(_)throw _;if(!w||!w.session||!w.user){const v=new ic;return this._returnResult({data:{user:null,session:null},error:v})}return w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),this._returnResult({data:Object.assign({},w),error:_})}catch(w){if(ze(w))return this._returnResult({data:{user:null,session:null},error:w});throw w}}async signInWithSolana(t){var n,r,i,s,o,a,l,c,d,g,p,h;let b,w;if("message"in t)b=t.message,w=t.signature;else{const{chain:_,wallet:v,statement:x,options:A}=t;let N;if(er())if(typeof v=="object")N=v;else{const $=window;if("solana"in $&&typeof $.solana=="object"&&("signIn"in $.solana&&typeof $.solana.signIn=="function"||"signMessage"in $.solana&&typeof $.solana.signMessage=="function"))N=$.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(A!=null&&A.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");N=v}const I=new URL((n=A==null?void 0:A.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in N&&N.signIn){const $=await N.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},A==null?void 0:A.signInWithSolana),{version:"1",domain:I.host,uri:I.href}),x?{statement:x}:null));let K;if(Array.isArray($)&&$[0]&&typeof $[0]=="object")K=$[0];else if($&&typeof $=="object"&&"signedMessage"in $&&"signature"in $)K=$;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in K&&"signature"in K&&(typeof K.signedMessage=="string"||K.signedMessage instanceof Uint8Array)&&K.signature instanceof Uint8Array)b=typeof K.signedMessage=="string"?K.signedMessage:new TextDecoder().decode(K.signedMessage),w=K.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in N)||typeof N.signMessage!="function"||!("publicKey"in N)||typeof N!="object"||!N.publicKey||!("toBase58"in N.publicKey)||typeof N.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");b=[`${I.host} wants you to sign in with your Solana account:`,N.publicKey.toBase58(),...x?["",x,""]:[""],"Version: 1",`URI: ${I.href}`,`Issued At: ${(i=(r=A==null?void 0:A.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((s=A==null?void 0:A.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${A.signInWithSolana.notBefore}`]:[],...!((o=A==null?void 0:A.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${A.signInWithSolana.expirationTime}`]:[],...!((a=A==null?void 0:A.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${A.signInWithSolana.chainId}`]:[],...!((l=A==null?void 0:A.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${A.signInWithSolana.nonce}`]:[],...!((c=A==null?void 0:A.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${A.signInWithSolana.requestId}`]:[],...!((g=(d=A==null?void 0:A.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||g===void 0)&&g.length?["Resources",...A.
383signInWithSolana.resources.map(K=>`- ${K}`)]:[]].join(`
384`);const $=await N.signMessage(new TextEncoder().encode(b),"utf8");if(!$||!($ instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");w=$}}try{const{data:_,error:v}=await tt(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:b,signature:ol(w)},!((p=t.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Wi});if(v)throw v;if(!_||!_.session||!_.user){const x=new ic;return this._returnResult({data:{user:null,session:null},error:x})}return _.session&&(await this._saveSession(_.session),await this._notifyAllSubscribers("SIGNED_IN",_.session)),this._returnResult({data:Object.assign({},_),error:v})}catch(_){if(ze(_))return this._returnResult({data:{user:null,session:null},error:_});throw _}}async _exchangeCodeForSession(t){const n=await $a(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new $D;const{data:s,error:o}=await tt(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Wi});if(await Zn(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!s||!s.session||!s.user){const a=new ic;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:o})}catch(s){if(await Zn(this.storage,`${this.storageKey}-code-verifier`),ze(s))return this._returnResult({data:{user:null,session:null,redirectType:null},error:s});throw s}}async signInWithIdToken(t){try{const{options:n,provider:r,token:i,access_token:s,nonce:o}=t,a=await tt(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:s,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Wi}),{data:l,error:c}=a;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const d=new ic;return this._returnResult({data:{user:null,session:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(n){if(ze(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,i,s,o;try{if("email"in t){const{email:a,options:l}=t;let c=null,d=null;this.flowType==="pkce"&&([c,d]=await sc(this.storage,this.storageKey));const{error:g}=await tt(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:g})}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:d}=await tt(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:d})}throw new Hf("You must provide either an email or phone number.")}catch(a){if(await Zn(this.storage,`${this.storageKey}-code-verifier`),ze(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let i,s;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,s=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await tt(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:Wi});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(ze(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var n,r,i,s,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await sc(this.storage,this.storageKey));const c=await tt(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:y9});return!((s=c.data)===null||s===void 0)&&s.url&&er()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await Zn(this.storage,`${this.storageKey}-code-verifier`),ze(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new ti;const{error:i}=await tt(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(ze(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:i,options:s}=t,{error:o}=await tt(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:r,type:i,options:s}=t,{data:o,error:a}=await tt(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new Hf("You must provide either an email or phone number and a type")}catch(n){if(ze(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await $a(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
384id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Um:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await $a(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=Hm()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=p9(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{session:null},error:s}):this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await tt(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Go}):await this._useSession(async n=>{var r,i,s;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new ti}:await tt(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=o.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:Go})})}catch(n){if(ze(n))return zm(n)&&(await this._removeSession(),await Zn(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:i,error:s}=r;if(s)throw s;if(!i.session)throw new ti;const o=i.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await sc(this.storage,this.storageKey));const{data:c,error:d}=await tt(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Go});if(d)throw d;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await Zn(this.storage,`${this.storageKey}-code-verifier`),ze(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new ti;const n=Date.now()/1e3;let r=n,i=!0,s=null;const{payload:o}=Vf(t.access_token);if(o.exp&&(r=o.exp,i=r<=n),i){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};s=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});s={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return this._returnResult({data:{user:s.user,session:s},error:null})}catch(n){if(ze(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:a}=n;if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new ti;const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{user:null,session:null},error:s}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(ze(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!er())throw new Wf("No browser detected.");
384if(t.error||t.error_description||t.error_code)throw new Wf(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new gx("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Wf("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new gx("No code detected.");const{data:x,error:A}=await this._exchangeCodeForSession(t.code);if(A)throw A;const N=new URL(window.location.href);return N.searchParams.delete("code"),window.history.replaceState(window.history.state,"",N.toString()),{data:{session:x.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:s,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=t;if(!s||!a||!o||!c)throw new Wf("No session defined in URL");const d=Math.round(Date.now()/1e3),g=parseInt(a);let p=d+g;l&&(p=parseInt(l));const h=p-d;h*1e3<=hc&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${g}s`);const b=p-g;d-b>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",b,p,d):d-b<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",b,p,d);const{data:w,error:_}=await this._getUser(s);if(_)throw _;const v={provider_token:r,provider_refresh_token:i,access_token:s,expires_in:g,expires_at:p,refresh_token:o,token_type:c,user:w.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:t.type},error:null})}catch(r){if(ze(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await $a(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s&&!zm(s))return this._returnResult({error:s});const o=(r=i.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(VD(a)&&(a.status===404||a.status===401||a.status===403)||zm(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Zn(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=e9(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,i;try{const{data:{session:s},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await sc(this.storage,this.storageKey,!0));try{return await tt(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(await Zn(this.storage,`${this.storageKey}-code-verifier`),ze(s))return this._returnResult({data:null,error:s});throw s}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(ze(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:i}=await this._useSession(async s=>{var o,a,l,c,d;const{data:g,error:p}=s;if(p)throw p;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await tt(this.fetch,"GET",h,{headers:this.headers,jwt:(d=(c=g.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(i)throw i;return er()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(ze(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:i,data:{session:s}}=n;
384if(i)throw i;const{options:o,provider:a,token:l,access_token:c,nonce:d}=t,g=await tt(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=s==null?void 0:s.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:c,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Wi}),{data:p,error:h}=g;return h?this._returnResult({data:{user:null,session:null},error:h}):!p||!p.session||!p.user?this._returnResult({data:{user:null,session:null},error:new ic}):(p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("USER_UPDATED",p.session)),this._returnResult({data:p,error:h}))}catch(i){if(await Zn(this.storage,`${this.storageKey}-code-verifier`),ze(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;if(o)throw o;return await tt(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(ze(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await i9(async i=>(i>0&&await r9(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await tt(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Wi})),(i,s)=>{const o=200*Math.pow(2,i);return s&&qm(s)&&Date.now()+o-r<hc})}catch(r){if(this._debug(n,"error",r),ze(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),er()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const i=await $a(this.storage,this.storageKey);if(i&&this.userStorage){let o=await $a(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:i.user},await fc(this.userStorage,this.storageKey+"-user",o)),i.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:Hm()}else if(i&&!i.user&&!i.user){const o=await $a(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(i.user=o.user,await Zn(this.storage,this.storageKey+"-user"),await fc(this.storage,this.storageKey,i)):i.user=Hm()}if(this._debug(r,"session from storage",i),!this._isValidSession(i)){this._debug(r,"session is not valid"),i!==null&&await this._removeSession();return}const s=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Um;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${Um}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:o}=await this._callRefreshToken(i.refresh_token);o&&(console.error(o),qm(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(i.access_token);!a&&(o!=null&&o.user)?(i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(r,"error",i),console.error(i);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new ti;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new K0;const{data:s,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!s.session)throw new ti;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={data:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(i,"error",s),ze(s)){const o={data:null,error:s};return qm(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const s=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){s.push(l)}});if(await Promise.all(o),s.length>0){for(let a=0;a<s.length;a+=1)console.error(s[a]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Zn(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await fc(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const s=bx(i);await fc(this.storage,this.storageKey,s)}else{const i=bx(n);await fc(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Zn(this.storage,this.storageKey),await Zn(this.storage,this.storageKey+"-code-verifier"),await Zn(this.storage,this.storageKey+"-user"),this.userStorage&&await Zn(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&er()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
384catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),hc);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((r.expires_at*1e3-t)/hc);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${hc}ms, refresh threshold is ${Ev} ticks`),i<=Ev&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof mk)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!er()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,o]=await sc(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(a.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);i.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?this._returnResult({data:null,error:s}):await tt(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ze(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;
384if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:c}=await tt(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&l.type==="totp"&&(!((i=l==null?void 0:l.totp)===null||i===void 0)&&i.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if(ze(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?j9(t.webauthn.credential_response):O9(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await tt(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(n){if(ze(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const o=await tt(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});if(o.error)return o;const{data:a}=o;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:T9(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:R9(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(ze(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const i={all:[],phone:[],totp:[],webauthn:[]};for(const s of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])i.all.push(s),s.status==="verified"&&i[s.factor_type].push(s);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,i,s;if(t)try{const{payload:h}=Vf(t);let b=null;h.aal&&(b=h.aal);let w=b;const{data:{user:_},error:v}=await this.getUser(t);if(v)return this._returnResult({data:null,error:v});((r=(n=_==null?void 0:_.factors)===null||n===void 0?void 0:n.filter(N=>N.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(w="aal2");const A=h.amr||[];return{data:{currentLevel:b,nextLevel:w,currentAuthenticationMethods:A},error:null}}catch(h){if(ze(h))return this._returnResult({data:null,error:h});throw h}const{data:{session:o},error:a}
384=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=Vf(o.access_token);let c=null;l.aal&&(c=l.aal);let d=c;((s=(i=o.user.factors)===null||i===void 0?void 0:i.filter(h=>h.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(d="aal2");const p=l.amr||[];return{data:{currentLevel:c,nextLevel:d,currentAuthenticationMethods:p},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?await tt(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new ti})})}catch(n){if(ze(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new ti});const o=await tt(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&er()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(ze(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new ti});const o=await tt(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&er()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(ze(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await tt(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new ti})})}catch(t){if(ze(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?(await tt(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new ti})})}catch(n){if(ze(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const i=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+HD>i)return r;const{data:s,error:o}=await tt(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,r=s.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:h,error:b}
384=await this.getSession();if(b||!h.session)return this._returnResult({data:null,error:b});r=h.session.access_token}const{header:i,payload:s,signature:o,raw:{header:a,payload:l}}=Vf(r);n!=null&&n.allowExpired||d9(s.exp);const c=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!c){const{error:h}=await this.getUser(r);if(h)throw h;return{data:{claims:s,header:i,signature:o},error:null}}const d=h9(i.alg),g=await crypto.subtle.importKey("jwk",c,d,!0,["verify"]);if(!await crypto.subtle.verify(d,g,o,JD(`${a}.${l}`)))throw new Lv("Invalid JWT signature");return{data:{claims:s,header:i,signature:o},error:null}}catch(r){if(ze(r))return this._returnResult({data:null,error:r});throw r}}}uh.nextInstanceID={};const H9=uh,W9="2.100.1";let ud="";typeof Deno<"u"?ud="deno":typeof document<"u"?ud="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ud="react-native":ud="node";const V9={"X-Client-Info":`supabase-js-${ud}/${W9}`},G9={headers:V9},$9={schema:"public"},K9={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Q9={};function dh(e){"@babel/helpers - typeof";return dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dh(e)}function Y9(e,t){if(dh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function X9(e){var t=Y9(e,"string");return dh(t)=="symbol"?t:t+""}function J9(e,t,n){return(t=X9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cx(Object(n),!0).forEach(function(r){J9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const Z9=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),eF=()=>Headers,tF=(e,t,n)=>{const r=Z9(n),i=eF();return async(s,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let c=new i(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),r(s,bn(bn({},o),{},{headers:c}))}};function nF(e){return e.endsWith("/")?e:e+"/"}function rF(e,t){var n,r;const{db:i,auth:s,realtime:o,global:a}=e,{db:l,auth:c,realtime:d,global:g}=t,p={db:bn(bn({},l),i),auth:bn(bn({},c),s),realtime:bn(bn({},d),o),storage:{},global:bn(bn(bn({},g),a),{},{headers:bn(bn({},(n=g==null?void 0:g.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?p.accessToken=e.accessToken:delete p.accessToken,p}function iF(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(nF(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var sF=class extends H9{constructor(e){super(e)}},oF=class{constructor(e,t,n){var r,i;this.supabaseUrl=e,this.supabaseKey=t;const s=iF(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",s),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",s),this.storageUrl=new URL("storage/v1",s),this.functionsUrl=new URL("functions/v1",s);const o=`sb-${s.hostname.split(".")[0]}-auth-token`,a={db:$9,realtime:Q9,auth:bn(bn({},K9),{},{storageKey:o}),global:G9},l=rF(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(i=l.global.headers)!==null&&i!==void 0?i:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(d,g)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(g)} is not possible`)}});else{var c;this.auth=this._initSupabaseAuthClient((c=l.auth)!==null&&c!==void 0?c:{},this.headers,l.global.fetch)}this.fetch=tF(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(bn({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new CI(new URL("rest/v1",s).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new MD(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new bI(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
384channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,storageKey:s,flowType:o,lock:a,debug:l,throwOnError:c},d,g){const p={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new sF({url:this.authUrl.href,headers:bn(bn({},p),d),storageKey:s,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,flowType:o,lock:a,debug:l,throwOnError:c,fetch:g,hasCustomAuthorizationHeader:Object.keys(this.headers).some(h=>h.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new lD(this.realtimeUrl.href,bn(bn({},e),{},{params:bn(bn({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const aF=(e,t,n)=>new oF(e,t,n);function lF(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}lF()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const cF="https://dvpayuimenpkbmgpxceo.supabase.co",uF="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImR2cGF5dWltZW5wa2JtZ3B4Y2VvIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzQ4NTk0OTUsImV4cCI6MjA5MDQzNTQ5NX0.zdmyPUFZhzXWQGiHzA3gKeri1tyZesAp0n0kGEaAQQ8",wk=aF(cF,uF,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),dF=async(e,t)=>{try{const{data:n,error:r}=await wk.from("quiz_submissions").insert([{email:t,responses:JSON.parse(JSON.stringify(e)),completed_at:new Date().toISOString(),pdf_sent:!1}]).select("id").single();return r?(console.error("Error saving quiz responses:",r),null):(n==null?void 0:n.id)??null}catch(n){return console.error("Error saving quiz responses:",n),null}},hF=({onPrevious:e,responses:t,userInfo:n})=>{const[r,i]=W.useState(null);W.useEffect(()=>{const o=async()=>{const l=await dF(t,n==null?void 0:n.email);if(l&&(i(l),console.log("Quiz responses saved with ID:",l)),n!=null&&n.name&&(n!=null&&n.email))try{const{data:c,error:d}=await wk.functions.invoke("send-quiz-notification",{body:{userName:n.name,userEmail:n.email,responses:t}});if(d)throw d;console.log("Notification email sent successfully",c)}catch(c){console.error("Error sending notification email:",c)}};Object.values(t).some(l=>l.length>0)&&!r&&o()},[t,r,n]);const s=[{title:"Core Values",icon:jc,data:t.values,color:"text-blue-600"},{title:"Strengths & Passions",icon:L0,data:t.strengths,color:"text-green-600"},{title:"Career Goals",icon:C0,data:t.goals,color:"text-purple-600"},{title:"Action Steps",icon:P0,data:t.steps,color:"text-orange-600"},{title:"Network Resources",icon:E0,data:t.network,color:"text-pink-600"},{title:"Growth Mindset",icon:k0,data:t.mindset,color:"text-indigo-600"},{title:"Momentum Keepers",icon:N0,data:t.celebration,color:"text-teal-600"}];return k.jsxs(Wr,{className:"animate-fade-in shadow-xl border-0 bg-white/80 backdrop-blur-sm",children:[k.jsx(s7,{}),k.jsxs(Vr,{className:"space-y-8",children:[k.jsx("div",{className:"grid gap-6 md:grid-cols-2",children:s.map((o,a)=>k.jsx(o7,{title:o.title,icon:o.icon,data:o.data,color:o.color,index:a},a))}),k.jsx(mI,{responses:t}),k.jsx(W2,{}),k.jsx(a7,{}),k.jsx("div",{className:"flex justify-between pt-6",children:e&&k.jsxs(It,{onClick:e,variant:"outline",className:"animate-fade-in delay-800",children:[k.jsx(vo,{className:"mr-2 h-4 w-4"}),"Previous"]})})]})]})},fF=({show:e,onComplete:t})=>{const[n,r]=W.useState([]);return W.useEffect(()=>{if(e){const i=[],s=["#3B82F6","#8B5CF6","#EC4899","#F59E0B","#10B981","#EF4444"];for(let a=0;a<50;a++)i.push({id:a,x:Math.random()*window.innerWidth,y:-10,color:s[Math.floor(Math.random()*s.length)],rotation:Math.random()*360,velocity:{x:(Math.random()-.5)*4,y:Math.random()*3+2}});r(i);const o=setTimeout(()=>{t(),r([])},3e3);return()=>clearTimeout(o)}},[e,t]),W.useEffect(()=>{if(n.length===0)return;const i=requestAnimationFrame(()=>{r(s=>s.map(o=>({...o,x:o.x+o.velocity.x,y:o.y+o.velocity.y,rotation:o.rotation+5})))});return()=>cancelAnimationFrame(i)},[n]),!e||n.length===0?null:k.jsx("div",{className:"fixed inset-0 pointer-events-none z-50",children:n.map(i=>k.jsx("div",{className:"absolute w-3 h-3 animate-pulse",style:{left:i.x,top:i.y,backgroundColor:i.color,transform:`rotate(${i.rotation}deg)`,borderRadius:Math.random()>.5?"50%":"0"}},i.id))})},pF=()=>{const[e,t]=W.useState(0),[n,r]=W.useState(null),[i,s]=W.useState({values:[],strengths:[],passions:[],goals:[],steps:[],network:[],mindset:[],celebration:[]}),{state:o,completeStep:a,earnBadge:l,hideConfetti:c}=WA();W.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[e]);const d=[{title:"Introduction",icon:jc,component:UT},{title:"Understand Your Core Values",icon:jc,component:$T,key:"values",badge:"values-explorer"},{title:"Name Your Strengths and Passions",icon:L0,component:KT,key:"strengths",badge:"strengths-superhero"},{title:"Set Clear Goals",icon:C0,component:QT,key:"goals",badge:"goal-setter"},{title:"Take Small, Consistent Steps",icon:P0,component:YT,key:"steps",badge:"action-taker"}
384,{title:"Use Your Network",icon:E0,component:XT,key:"network",badge:"network-builder"},{title:"Cultivate a Growth Mindset",icon:k0,component:JT,key:"mindset",badge:"growth-champion"},{title:"Keep Moving Forward",icon:N0,component:ZT,key:"celebration",badge:"momentum-keeper"},{title:"Your UNSTUCK Summary",icon:jc,component:hF},{title:"Follow-Up Resources",icon:Bp,component:e7}],g=(e+1)/d.length*100,p=w=>{const _=d[e];_.key&&w&&(s(v=>({...v,[_.key]:w})),a(_.key),_.badge&&l(_.badge)),e===d.length-3&&l("unstuck-graduate"),t(v=>Math.min(v+1,d.length-1))},h=()=>{t(w=>Math.max(w-1,0))},b=d[e].component;return k.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-blue-50",children:[k.jsx(fF,{show:o.showConfetti,onComplete:c}),k.jsxs("div",{className:"container mx-auto px-4 py-8",children:[k.jsxs("div",{className:"text-center mb-8",children:[k.jsx("div",{className:"mb-6",children:k.jsx("img",{src:"/lovable-uploads/20a33897-1247-4808-ad33-603b5d0026f6.png",alt:"Aspire Career and Business Coaching Logo",className:"h-32 mx-auto animate-fade-in"})}),k.jsx("h1",{className:"text-5xl font-bold bg-gradient-to-r from-blue-600 via-purple-600 to-pink-500 bg-clip-text text-transparent mb-4 animate-fade-in",children:"UNSTUCK"}),k.jsx("p",{className:"text-xl text-slate-600 mb-6 font-medium animate-fade-in delay-200",children:"Get the Clarity You Need"}),k.jsxs("div",{className:"max-w-2xl mx-auto animate-fade-in delay-300",children:[k.jsx(IA,{value:g,className:"h-4 mb-3 bg-slate-200"}),k.jsxs("p",{className:"text-sm text-slate-500 font-medium",children:["Step ",e+1," of ",d.length,": ",d[e].title]})]}),k.jsx(VA,{})]}),k.jsx("div",{className:"max-w-4xl mx-auto",children:k.jsx(b,{onNext:p,onPrevious:e>0?h:void 0,responses:i,userInfo:n,onUserInfoSubmit:r})}),e>0&&e<d.length-2&&k.jsx("div",{className:"max-w-4xl mx-auto mt-12",children:k.jsxs("div",{className:"bg-gradient-to-r from-slate-50 to-blue-50 p-8 rounded-2xl border border-slate-200 animate-fade-in",children:[k.jsx("h3",{className:"font-bold text-slate-800 mb-2 text-xl text-center",children:"Ready to take the next step?"}),k.jsx("p",{className:"text-slate-600 text-center mb-6",children:"Let's work together to turn your aspirations into reality."}),k.jsxs("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-4 mb-6",children:[k.jsxs("div",{className:"text-center p-6 bg-white rounded-lg border border-slate-200 hover:shadow-md transition-shadow",children:[k.jsx("div",{className:"h-32 w-32 mx-auto mb-4 rounded-lg overflow-hidden",children:k.jsx("img",{src:"https://images.unsplash.com/photo-1552581234-26160f608093?auto=format&fit=crop&w=200&q=80",alt:"Professional video call meeting - discovery call",className:"w-full h-full object-cover"})}),k.jsx("h4",{className:"font-semibold text-slate-800 mb-2",children:"Discovery Call"}),k.jsx(It,{className:"bg-blue-600 hover:bg-blue-700 text-white",onClick:()=>window.open("https://calendly.com/nicky-aspire/30-minute-meeting-clone","_blank"),children:"Book Now"})]}),k.jsxs("div",{className:"text-center p-6 bg-white rounded-lg border border-slate-200 hover:shadow-md transition-shadow",children:[k.jsx("div",{className:"h-32 w-32 mx-auto mb-4 rounded-lg overflow-hidden",children:k.jsx("img",{src:"https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=200&q=80",alt:"Team working together in modern office - coaching programs",className:"w-full h-full object-cover"})}),k.jsx("h4",{className:"font-semibold text-slate-800 mb-2",children:"Our Programs"}),k.jsx(It,{className:"bg-purple-600 hover:bg-purple-700 text-white",onClick:()=>window.open("https://aspire-coaching.co.uk/career-coaching","_blank"),children:"Explore"})]}),k.jsxs("div",{className:"text-center p-6 bg-white rounded-lg border border-slate-200 hover:shadow-md transition-shadow",children:[k.jsx("div",{className:"h-32 w-32 mx-auto mb-4 rounded-lg overflow-hidden",children:k.jsx("img",{src:"https://images.unsplash.com/photo-1506784983877-45594efa4cbe?auto=format&fit=crop&w=200&q=80",alt:"Wheel of Life assessment - life balance tool",className:"w-full h-full object-cover"})}),k.jsx("h4",{className:"font-semibold text-slate-800 mb-2",children:"Wheel of Life Assessment"}),k.jsx(It,{className:"bg-pink-600 hover:bg-pink-700 text-white",onClick:()=>window.open("https://aspire-coaching.co.uk/wheel-of-life","_blank"),children:"Try It Free"})]}),k.jsxs("div",{className:"text-center p-6 bg-white rounded-lg border border-slate-200 hover:shadow-md transition-shadow",children:[k.jsx("div",{className:"h-32 w-32 mx-auto mb-4 rounded-lg overflow-hidden",children:k.jsx("img",{src:"https://images.unsplash.com/photo-1600880292203-757bb62b4baf?auto=format&fit=crop&w=200&q=80",alt:"Happy professionals sharing success stories - testimonials",className:"w-full h-full object-cover"})}),k.jsx("h4",{className:"font-semibold text-slate-800 mb-2",children:"Testimonials Stories"}),k.jsx(It,{className:"bg-green-600 hover:bg-green-700 text-white",onClick:()=>window.open("https://aspire-coaching.co.uk/testimonials","_blank"),children:"Read More"})]})]}),k.jsx("div",{className:"text-center",children:k.jsx(It,{className:"bg-gradient-to-r from-orange-600 to-red-600 hover:from-orange-700 hover:to-red-700 text-white",onClick:()=>window.open("https://share-eu1.hsforms.com/19Onz4GvDQL-SOuxV2szKwQ2drfrf","_blank"),children:"Contact Us"})})]})})]})]})},gF=()=>k.jsx(i7,{children:k.jsx(pF,{})}),mF=()=>{const e=PA();return W.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),k.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:k.jsxs("div",{className:"text-center",children:[k.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),k.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}
384),k.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},vF=new BL,yF=()=>k.jsx(zL,{client:vF,children:k.jsxs(mL,{children:[k.jsx(gC,{}),k.jsx(WC,{}),k.jsx(kT,{children:k.jsxs(_T,{children:[k.jsx(J1,{path:"/",element:k.jsx(gF,{})}),k.jsx(J1,{path:"*",element:k.jsx(mF,{})})]})})]})});X_(document.getElementById("root")).render(k.jsx(yF,{}));export{Ht as _,bF as c,Fx as g};

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.