PageSourceSearch

https://gleeful-longma-981653.netlify.app/assets/index-CLH2LQxc.js

js gleeful-longma-981653.netlify.app collected 2026-10-03 10:49:57 UTC 1,394,487 bytes, 450 lines download raw bytes

vendor: 6,830 bytes, lines 1-9
1var tL=Object.defineProperty;var nC=t=>{throw TypeError(t)};var rL=(t,e,r)=>e in t?tL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var W=(t,e,r)=>rL(t,typeof e!="symbol"?e+"":e,r),Hb=(t,e,r)=>e.has(t)||nC("Cannot "+r);var S=(t,e,r)=>(Hb(t,e,"read from private field"),r?r.call(t):e.get(t)),z=(t,e,r)=>e.has(t)?nC("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),T=(t,e,r,n)=>(Hb(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Q=(t,e,r)=>(Hb(t,e,"access private method"),r);var ma=(t,e,r,n)=>({set _(i){T(t,e,i,r)},get _(){return S(t,e,n)}});function Fj(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(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"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(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 n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fE(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function nL(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var Oj={exports:{}},pw={},Dj={exports:{}},Qe={};/**
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 Sm=Symbol.for("react.element"),iL=Symbol.for("react.portal"),sL=Symbol.for("react.fragment"),oL=Symbol.for("react.strict_mode"),aL=Symbol.for("react.profiler"),lL=Symbol.for("react.provider"),cL=Symbol.for("react.context"),uL=Symbol.for("react.forward_ref"),dL=Symbol.for("react.suspense"),fL=Symbol.for("react.memo"),hL=Symbol.for("react.lazy"),iC=Symbol.iterator;function pL(t){return t===null||typeof t!="object"?null:(t=iC&&t[iC]||t["@@iterator"],typeof t=="function"?t:null)}var Ij={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mj=Object.assign,Bj={};function Nh(t,e,r){this.props=t,this.context=e,this.refs=Bj,this.updater=r||Ij}Nh.prototype.isReactComponent={};Nh.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Nh.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Lj(){}Lj.prototype=Nh.prototype;function hE(t,e,r){this.props=t,this.context=e,this.refs=Bj,this.updater=r||Ij}var pE=hE.prototype=new Lj;pE.constructor=hE;Mj(pE,Nh.prototype);pE.isPureReactComponent=!0;var sC=Array.isArray,Uj=Object.prototype.hasOwnProperty,gE={current:null},zj={key:!0,ref:!0,__self:!0,__source:!0};function _j(t,e,r){var n,i={},s=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)Uj.call(e,n)&&!zj.hasOwnProperty(n)&&(i[n]=e[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(n in a=t.defaultProps,a)i[n]===void 0&&(i[n]=a[n]);return{$$typeof:Sm,type:t,key:s,ref:o,props:i,_owner:gE.current}}function gL(t,e){return{$$typeof:Sm,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function mE(t){return typeof t=="object"&&t!==null&&t.$$typeof===Sm}function mL(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var oC=/\/+/g;function Gb(t,e){return typeof t=="object"&&t!==null&&t.key!=null?mL(""+t.key):e.toString(36)}function cv(t,e,r,n,i){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case Sm:case iL:o=!0}}if(o)return o=t,i=i(o),t=n===""?"."+Gb(o,0):n,sC(i)?(r="",t!=null&&(r=t.replace(oC,"$&/")+"/"),cv(i,e,r,"",function(c){return c})):i!=null&&(mE(i)&&(i=gL(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(oC,"$&/")+"/")+t)),e.push(i)),1;if(o=0,n=n===""?".":n+":",sC(t))for(var a=0;a<t.length;a++){s=t[a];var l=n+Gb(s,a);o+=cv(s,e,r,l,i)}else if(l=pL(t),typeof l=="function")for(t=l.call(t),a=0;!(s=t.next()).done;)s=s.value,l=n+Gb(s,a++),o+=cv(s,e,r,l,i);else if(s==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function i0(t,e,r){if(t==null)return t;var n=[],i=0;return cv(t,n,"","",function(s){return e.call(r,s,i++)}),n}function vL(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var jn={current:null},uv={transition:null},yL={ReactCurrentDispatcher:jn,ReactCurrentBatchConfig:uv,ReactCurrentOwner:gE};function Vj(){throw Error("act(...) is not supported in production builds of React.")}Qe.Children={map:i0,forEach:function(t,e,r){i0(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return i0(t,function(){e++}),e},toArray:function(t){return i0(t,function(e){return e})||[]},only:function(t){if(!mE(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Qe.Component=Nh;Qe.Fragment=sL;Qe.Profiler=aL;Qe.PureComponent=hE;Qe.StrictMode=oL;
vendor: 5,004 bytes, lines 9-25
9Qe.Suspense=dL;Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yL;Qe.act=Vj;Qe.cloneElement=function(t,e,r){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var n=Mj({},t.props),i=t.key,s=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,o=gE.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)Uj.call(e,l)&&!zj.hasOwnProperty(l)&&(n[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];n.children=a}return{$$typeof:Sm,type:t.type,key:i,ref:s,props:n,_owner:o}};Qe.createContext=function(t){return t={$$typeof:cL,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:lL,_context:t},t.Consumer=t};Qe.createElement=_j;Qe.createFactory=function(t){var e=_j.bind(null,t);return e.type=t,e};Qe.createRef=function(){return{current:null}};Qe.forwardRef=function(t){return{$$typeof:uL,render:t}};Qe.isValidElement=mE;Qe.lazy=function(t){return{$$typeof:hL,_payload:{_status:-1,_result:t},_init:vL}};Qe.memo=function(t,e){return{$$typeof:fL,type:t,compare:e===void 0?null:e}};Qe.startTransition=function(t){var e=uv.transition;uv.transition={};try{t()}finally{uv.transition=e}};Qe.unstable_act=Vj;Qe.useCallback=function(t,e){return jn.current.useCallback(t,e)};Qe.useContext=function(t){return jn.current.useContext(t)};Qe.useDebugValue=function(){};Qe.useDeferredValue=function(t){return jn.current.useDeferredValue(t)};Qe.useEffect=function(t,e){return jn.current.useEffect(t,e)};Qe.useId=function(){return jn.current.useId()};Qe.useImperativeHandle=function(t,e,r){return jn.current.useImperativeHandle(t,e,r)};Qe.useInsertionEffect=function(t,e){return jn.current.useInsertionEffect(t,e)};Qe.useLayoutEffect=function(t,e){return jn.current.useLayoutEffect(t,e)};Qe.useMemo=function(t,e){return jn.current.useMemo(t,e)};Qe.useReducer=function(t,e,r){return jn.current.useReducer(t,e,r)};Qe.useRef=function(t){return jn.current.useRef(t)};Qe.useState=function(t){return jn.current.useState(t)};Qe.useSyncExternalStore=function(t,e,r){return jn.current.useSyncExternalStore(t,e,r)};Qe.useTransition=function(){return jn.current.useTransition()};Qe.version="18.3.1";Dj.exports=Qe;var x=Dj.exports;const ne=fE(x),Hj=Fj({__proto__:null,default:ne},[x]);/**
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 wL=x,bL=Symbol.for("react.element"),xL=Symbol.for("react.fragment"),SL=Object.prototype.hasOwnProperty,EL=wL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kL={key:!0,ref:!0,__self:!0,__source:!0};function Gj(t,e,r){var n,i={},s=null,o=null;r!==void 0&&(s=""+r),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(n in e)SL.call(e,n)&&!kL.hasOwnProperty(n)&&(i[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)i[n]===void 0&&(i[n]=e[n]);return{$$typeof:bL,type:t,key:s,ref:o,props:i,_owner:EL.current}}pw.Fragment=xL;pw.jsx=Gj;pw.jsxs=Gj;Oj.exports=pw;var f=Oj.exports,E1={},Wj={exports:{}},wi={},Kj={exports:{}},qj={};/**
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(t){function e(V,K){var Z=V.length;V.push(K);e:for(;0<Z;){var Y=Z-1>>>1,ee=V[Y];if(0<i(ee,K))V[Y]=K,V[Z]=ee,Z=Y;else break e}}function r(V){return V.length===0?null:V[0]}function n(V){if(V.length===0)return null;var K=V[0],Z=V.pop();if(Z!==K){V[0]=Z;e:for(var Y=0,ee=V.length,fe=ee>>>1;Y<fe;){var ye=2*(Y+1)-1,lt=V[ye],Ae=ye+1,At=V[Ae];if(0>i(lt,Z))Ae<ee&&0>i(At,lt)?(V[Y]=At,V[Ae]=Z,Y=Ae):(V[Y]=lt,V[ye]=Z,Y=ye);else if(Ae<ee&&0>i(At,Z))V[Y]=At,V[Ae]=Z,Y=Ae;else break e}}return K}function i(V,K){var Z=V.sortIndex-K.sortIndex;return Z!==0?Z:V.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,d=null,h=3,p=!1,m=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(V){for(var K=r(c);K!==null;){if(K.callback===null)n(c);else if(K.startTime<=V)n(c),K.sortIndex=K.expirationTime,e(l,K);else break;K=r(c)}}function E(V){if(g=!1,b(V),!m)if(r(l)!==null)m=!0,_(A);else{var K=r(c);K!==null&&X(E,K.startTime-V)}}function A(V,K){m=!1,g&&(g=!1,v(C),C=-1),p=!0;
vendor: 2,353 bytes, line 25
25var Z=h;try{for(b(K),d=r(l);d!==null&&(!(d.expirationTime>K)||V&&!F());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,h=d.priorityLevel;var ee=Y(d.expirationTime<=K);K=t.unstable_now(),typeof ee=="function"?d.callback=ee:d===r(l)&&n(l),b(K)}else n(l);d=r(l)}if(d!==null)var fe=!0;else{var ye=r(c);ye!==null&&X(E,ye.startTime-K),fe=!1}return fe}finally{d=null,h=Z,p=!1}}var k=!1,P=null,C=-1,N=5,R=-1;function F(){return!(t.unstable_now()-R<N)}function B(){if(P!==null){var V=t.unstable_now();R=V;var K=!0;try{K=P(!0,V)}finally{K?D():(k=!1,P=null)}}else k=!1}var D;if(typeof w=="function")D=function(){w(B)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,M=L.port2;L.port1.onmessage=B,D=function(){M.postMessage(null)}}else D=function(){y(B,0)};function _(V){P=V,k||(k=!0,D())}function X(V,K){C=y(function(){V(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(V){V.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,_(A))},t.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<V?Math.floor(1e3/V):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(V){switch(h){case 1:case 2:case 3:var K=3;break;default:K=h}var Z=h;h=K;try{return V()}finally{h=Z}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(V,K){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var Z=h;h=V;try{return K()}finally{h=Z}},t.unstable_scheduleCallback=function(V,K,Z){var Y=t.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?Y+Z:Y):Z=Y,V){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=Z+ee,V={id:u++,callback:K,priorityLevel:V,startTime:Z,expirationTime:ee,sortIndex:-1},Z>Y?(V.sortIndex=Z,e(c,V),r(l)===null&&V===r(c)&&(g?(v(C),C=-1):g=!0,X(E,Z-Y))):(V.sortIndex=ee,e(l,V),m||p||(m=!0,_(A))),V},t.unstable_shouldYield=F,t.unstable_wrapCallback=function(V){var K=h;
vendor: 4,329 bytes, lines 25-33
25return function(){var Z=h;h=K;try{return V.apply(this,arguments)}finally{h=Z}}}})(qj);Kj.exports=qj;var AL=Kj.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 CL=x,mi=AL;function re(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Qj=new Set,mg={};function Ou(t,e){nh(t,e),nh(t+"Capture",e)}function nh(t,e){for(mg[t]=e,t=0;t<e.length;t++)Qj.add(e[t])}var ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),k1=Object.prototype.hasOwnProperty,NL=/^[: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]*$/,aC={},lC={};function PL(t){return k1.call(lC,t)?!0:k1.call(aC,t)?!1:NL.test(t)?lC[t]=!0:(aC[t]=!0,!1)}function TL(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function RL(t,e,r,n){if(e===null||typeof e>"u"||TL(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Fn(t,e,r,n,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var $r={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){$r[t]=new Fn(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];$r[e]=new Fn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){$r[t]=new Fn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){$r[t]=new Fn(t,2,!1,t,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(t){$r[t]=new Fn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){$r[t]=new Fn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){$r[t]=new Fn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){$r[t]=new Fn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){$r[t]=new Fn(t,5,!1,t.toLowerCase(),null,!1,!1)});var vE=/[\-:]([a-z])/g;function yE(t){return t[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(t){var e=t.replace(vE,yE);$r[e]=new Fn(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(vE,yE);$r[e]=new Fn(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(vE,yE);$r[e]=new Fn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){$r[t]=new Fn(t,1,!1,t.toLowerCase(),null,!1,!1)});$r.xlinkHref=new Fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){$r[t]=new Fn(t,1,!1,t.toLowerCase(),null,!0,!0)});function wE(t,e,r,n){var i=$r.hasOwnProperty(e)?$r[e]:null;(i!==null?i.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(RL(e,r,i,n)&&(r=null),n||i===null?PL(e)&&(r===null?t.removeAttribute(e):t.setAttribute(e,""+r)):i.mustUseProperty?t[i.propertyName]=r===null?i.type===3?!1:"":r:(e=i.attributeName,n=i.attributeNamespace,r===null?t.removeAttribute(e):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}var ua=CL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,s0=Symbol.for("react.element"),vd=Symbol.for("react.portal"),yd=Symbol.for("react.fragment"),bE=Symbol.for("react.strict_mode"),A1=Symbol.for("react.profiler"),Xj=Symbol.for("react.provider"),Yj=Symbol.for("react.context"),xE=Symbol.for("react.forward_ref"),C1=Symbol.for("react.suspense"),N1=Symbol.for("react.suspense_list"),SE=Symbol.for("react.memo"),Ia=Symbol.for("react.lazy"),Jj=Symbol.for("react.offscreen"),cC=Symbol.iterator;function $h(t){return t===null||typeof t!="object"?null:(t=cC&&t[cC]||t["@@iterator"],typeof t=="function"?t:null)}var $t=Object.assign,Wb;function Cp(t){if(Wb===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);Wb=e&&e[1]||""}return`
34`+Wb+t}var Kb=!1;function qb(t,e){if(!t||Kb)return"";Kb=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(c){var n=c}Reflect.construct(t,[],e)}else{try{e.call()}catch(c){n=c}t.call(e.prototype)}else{try{throw Error()}catch(c){n=c}t()}}catch(c){if(c&&n&&typeof c.stack=="string"){for(var i=c.stack.split(`
35`),s=n.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 t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{Kb=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Cp(t):""}function jL(t){switch(t.tag){case 5:return Cp(t.type);case 16:return Cp("Lazy");case 13:return Cp("Suspense");case 19:return Cp("SuspenseList");case 0:case 2:case 15:return t=qb(t.type,!1),t;case 11:return t=qb(t.type.render,!1),t;case 1:return t=qb(t.type,!0),t;default:return""}}function P1(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case yd:return"Fragment";case vd:return"Portal";case A1:return"Profiler";case bE:return"StrictMode";case C1:return"Suspense";case N1:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Yj:return(t.displayName||"Context")+".Consumer";case Xj:return(t._context.displayName||"Context")+".Provider";case xE:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case SE:return e=t.displayName||null,e!==null?e:P1(t.type)||"Memo";case Ia:e=t._payload,t=t._init;try{return P1(t(e))}catch{}}return null}function FL(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return P1(e);case 8:return e===bE?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Dl(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Zj(t){var e=t.type;
vendor: 15,761 bytes, line 37
37return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function OL(t){var e=Zj(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function o0(t){t._valueTracker||(t._valueTracker=OL(t))}function $j(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=Zj(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Xv(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function T1(t,e){var r=e.checked;return $t({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function uC(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Dl(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function eF(t,e){e=e.checked,e!=null&&wE(t,"checked",e,!1)}function R1(t,e){eF(t,e);var r=Dl(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?j1(t,e.type,r):e.hasOwnProperty("defaultValue")&&j1(t,e.type,Dl(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function dC(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function j1(t,e,r){(e!=="number"||Xv(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Np=Array.isArray;function Ud(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i<r.length;i++)e["$"+r[i]]=!0;for(r=0;r<t.length;r++)i=e.hasOwnProperty("$"+t[r].value),t[r].selected!==i&&(t[r].selected=i),i&&n&&(t[r].defaultSelected=!0)}else{for(r=""+Dl(r),e=null,i=0;i<t.length;i++){if(t[i].value===r){t[i].selected=!0,n&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function F1(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(re(91));return $t({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function fC(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(re(92));if(Np(r)){if(1<r.length)throw Error(re(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:Dl(r)}}function tF(t,e){var r=Dl(e.value),n=Dl(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function hC(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function rF(t){switch(t){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 O1(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?rF(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var a0,nF=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,r,n,i){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(a0=a0||document.createElement("div"),a0.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=a0.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function vg(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Wp={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},DL=["Webkit","ms","Moz","O"];Object.keys(Wp).forEach(function(t){DL.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Wp[e]=Wp[t]})});function iF(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Wp.hasOwnProperty(t)&&Wp[t]?(""+e).trim():e+"px"}function sF(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=iF(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var IL=$t({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 D1(t,e){if(e){if(IL[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(re(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(re(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(re(61))}if(e.style!=null&&typeof e.style!="object")throw Error(re(62))}}function I1(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 M1=null;function EE(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var B1=null,zd=null,_d=null;function pC(t){if(t=Am(t)){if(typeof B1!="function")throw Error(re(280));var e=t.stateNode;e&&(e=ww(e),B1(t.stateNode,t.type,e))}}function oF(t){zd?_d?_d.push(t):_d=[t]:zd=t}function aF(){if(zd){var t=zd,e=_d;if(_d=zd=null,pC(t),e)for(t=0;t<e.length;t++)pC(e[t])}}function lF(t,e){return t(e)}function cF(){}var Qb=!1;function uF(t,e,r){if(Qb)return t(e,r);Qb=!0;try{return lF(t,e,r)}finally{Qb=!1,(zd!==null||_d!==null)&&(cF(),aF())}}function yg(t,e){var r=t.stateNode;if(r===null)return null;var n=ww(r);if(n===null)return null;r=n[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(re(231,e,typeof r));return r}var L1=!1;if(ia)try{var ep={};Object.defineProperty(ep,"passive",{get:function(){L1=!0}}),window.addEventListener("test",ep,ep),window.removeEventListener("test",ep,ep)}catch{L1=!1}function ML(t,e,r,n,i,s,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(r,c)}catch(u){this.onError(u)}}var Kp=!1,Yv=null,Jv=!1,U1=null,BL={onError:function(t){Kp=!0,Yv=t}};function LL(t,e,r,n,i,s,o,a,l){Kp=!1,Yv=null,ML.apply(BL,arguments)}function UL(t,e,r,n,i,s,o,a,l){if(LL.apply(this,arguments),Kp){if(Kp){var c=Yv;Kp=!1,Yv=null}else throw Error(re(198));Jv||(Jv=!0,U1=c)}}function Du(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function dF(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function gC(t){if(Du(t)!==t)throw Error(re(188))}function zL(t){var e=t.alternate;if(!e){if(e=Du(t),e===null)throw Error(re(188));return e!==t?null:t}for(var r=t,n=e;;){var i=r.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return gC(i),t;if(s===n)return gC(i),e;s=s.sibling}throw Error(re(188))}if(r.return!==n.return)r=i,n=s;else{for(var o=!1,a=i.child;a;){if(a===r){o=!0,r=i,n=s;break}if(a===n){o=!0,n=i,r=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===r){o=!0,r=s,n=i;break}if(a===n){o=!0,n=s,r=i;break}a=a.sibling}if(!o)throw Error(re(189))}}if(r.alternate!==n)throw Error(re(190))}if(r.tag!==3)throw Error(re(188));return r.stateNode.current===r?t:e}function fF(t){return t=zL(t),t!==null?hF(t):null}function hF(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=hF(t);if(e!==null)return e;t=t.sibling}return null}var pF=mi.unstable_scheduleCallback,mC=mi.unstable_cancelCallback,_L=mi.unstable_shouldYield,VL=mi.unstable_requestPaint,ur=mi.unstable_now,HL=mi.unstable_getCurrentPriorityLevel,kE=mi.unstable_ImmediatePriority,gF=mi.unstable_UserBlockingPriority,Zv=mi.unstable_NormalPriority,GL=mi.unstable_LowPriority,mF=mi.unstable_IdlePriority,gw=null,uo=null;function WL(t){if(uo&&typeof uo.onCommitFiberRoot=="function")try{uo.onCommitFiberRoot(gw,t,void 0,(t.current.flags&128)===128)}catch{}}var Cs=Math.clz32?Math.clz32:QL,KL=Math.log,qL=Math.LN2;function QL(t){return t>>>=0,t===0?32:31-(KL(t)/qL|0)|0}var l0=64,c0=4194304;function Pp(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function $v(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,i=t.suspendedLanes,s=t.pingedLanes,o=r&268435455;if(o!==0){var a=o&~i;a!==0?n=Pp(a):(s&=o,s!==0&&(n=Pp(s)))}else o=r&~i,o!==0?n=Pp(o):s!==0&&(n=Pp(s));if(n===0)return 0;if(e!==0&&e!==n&&!(e&i)&&(i=n&-n,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-Cs(e),i=1<<r,n|=t[r],e&=~i;return n}function XL(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 YL(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var o=31-Cs(s),a=1<<o,l=i[o];l===-1?(!(a&r)||a&n)&&(i[o]=XL(a,e)):l<=e&&(t.expiredLanes|=a),s&=~a}}function z1(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function vF(){var t=l0;return l0<<=1,!(l0&4194240)&&(l0=64),t}function Xb(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function Em(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Cs(e),t[e]=r}function JL(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var i=31-Cs(r),s=1<<i;e[i]=0,n[i]=-1,t[i]=-1,r&=~s}}function AE(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-Cs(r),i=1<<n;i&e|t[n]&e&&(t[n]|=e),r&=~i}}var Pt=0;function yF(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var wF,CE,bF,xF,SF,_1=!1,u0=[],bl=null,xl=null,Sl=null,wg=new Map,bg=new Map,za=[],ZL="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 vC(t,e){switch(t){case"focusin":case"focusout":bl=null;break;case"dragenter":case"dragleave":xl=null;break;case"mouseover":case"mouseout":Sl=null;break;case"pointerover":case"pointerout":wg.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":bg.delete(e.pointerId)}}function tp(t,e,r,n,i,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},e!==null&&(e=Am(e),e!==null&&CE(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function $L(t,e,r,n,i){switch(e){case"focusin":return bl=tp(bl,t,e,r,n,i),!0;case"dragenter":return xl=tp(xl,t,e,r,n,i),!0;case"mouseover":return Sl=tp(Sl,t,e,r,n,i),!0;case"pointerover":var s=i.pointerId;return wg.set(s,tp(wg.get(s)||null,t,e,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,bg.set(s,tp(bg.get(s)||null,t,e,r,n,i)),!0}return!1}function EF(t){var e=Ec(t.target);if(e!==null){var r=Du(e);if(r!==null){if(e=r.tag,e===13){if(e=dF(r),e!==null){t.blockedOn=e,SF(t.priority,function(){bF(r)});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function dv(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=V1(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);M1=n,r.target.dispatchEvent(n),M1=null}else return e=Am(r),e!==null&&CE(e),t.blockedOn=r,!1;e.shift()}return!0}function yC(t,e,r){dv(t)&&r.delete(e)}function eU(){_1=!1,bl!==null&&dv(bl)&&(bl=null),xl!==null&&dv(xl)&&(xl=null),Sl!==null&&dv(Sl)&&(Sl=null),wg.forEach(yC),bg.forEach(yC)}function rp(t,e){t.blockedOn===e&&(t.blockedOn=null,_1||(_1=!0,mi.unstable_scheduleCallback(mi.unstable_NormalPriority,eU)))}function xg(t){function e(i){return rp(i,t)}if(0<u0.length){rp(u0[0],t);for(var r=1;r<u0.length;r++){var n=u0[r];n.blockedOn===t&&(n.blockedOn=null)}}for(bl!==null&&rp(bl,t),xl!==null&&rp(xl,t),Sl!==null&&rp(Sl,t),wg.forEach(e),bg.forEach(e),r=0;r<za.length;r++)n=za[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<za.length&&(r=za[0],r.blockedOn===null);)EF(r),r.blockedOn===null&&za.shift()}var Vd=ua.ReactCurrentBatchConfig,ey=!0;function tU(t,e,r,n){var i=Pt,s=Vd.transition;Vd.transition=null;try{Pt=1,NE(t,e,r,n)}finally{Pt=i,Vd.transition=s}}function rU(t,e,r,n){var i=Pt,s=Vd.transition;Vd.transition=null;try{Pt=4,NE(t,e,r,n)}finally{Pt=i,Vd.transition=s}}function NE(t,e,r,n){if(ey){var i=V1(t,e,r,n);if(i===null)sx(t,e,n,ty,r),vC(t,n);else if($L(i,t,e,r,n))n.stopPropagation();else if(vC(t,n),e&4&&-1<ZL.indexOf(t)){for(;i!==null;){var s=Am(i);if(s!==null&&wF(s),s=V1(t,e,r,n),s===null&&sx(t,e,n,ty,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else sx(t,e,n,null,r)}}var ty=null;function V1(t,e,r,n){if(ty=null,t=EE(n),t=Ec(t),t!==null)if(e=Du(t),e===null)t=null;else if(r=e.tag,r===13){if(t=dF(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return ty=t,null}
vendor: 12,178 bytes, line 37
37function kF(t){switch(t){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(HL()){case kE:return 1;case gF:return 4;case Zv:case GL:return 16;case mF:return 536870912;default:return 16}default:return 16}}var pl=null,PE=null,fv=null;function AF(){if(fv)return fv;var t,e=PE,r=e.length,n,i="value"in pl?pl.value:pl.textContent,s=i.length;for(t=0;t<r&&e[t]===i[t];t++);var o=r-t;for(n=1;n<=o&&e[r-n]===i[s-n];n++);return fv=i.slice(t,1<n?1-n:void 0)}function hv(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function d0(){return!0}function wC(){return!1}function bi(t){function e(r,n,i,s,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(r=t[a],this[a]=r?r(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?d0:wC,this.isPropagationStopped=wC,this}return $t(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=d0)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=d0)},persist:function(){},isPersistent:d0}),e}var Ph={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},TE=bi(Ph),km=$t({},Ph,{view:0,detail:0}),nU=bi(km),Yb,Jb,np,mw=$t({},km,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:RE,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==np&&(np&&t.type==="mousemove"?(Yb=t.screenX-np.screenX,Jb=t.screenY-np.screenY):Jb=Yb=0,np=t),Yb)},movementY:function(t){return"movementY"in t?t.movementY:Jb}}),bC=bi(mw),iU=$t({},mw,{dataTransfer:0}),sU=bi(iU),oU=$t({},km,{relatedTarget:0}),Zb=bi(oU),aU=$t({},Ph,{animationName:0,elapsedTime:0,pseudoElement:0}),lU=bi(aU),cU=$t({},Ph,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),uU=bi(cU),dU=$t({},Ph,{data:0}),xC=bi(dU),fU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hU={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"},pU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gU(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=pU[t])?!!e[t]:!1}function RE(){return gU}var mU=$t({},km,{key:function(t){if(t.key){var e=fU[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=hv(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?hU[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:RE,charCode:function(t){return t.type==="keypress"?hv(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?hv(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),vU=bi(mU),yU=$t({},mw,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),SC=bi(yU),wU=$t({},km,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:RE}),bU=bi(wU),xU=$t({},Ph,{propertyName:0,elapsedTime:0,pseudoElement:0}),SU=bi(xU),EU=$t({},mw,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),kU=bi(EU),AU=[9,13,27,32],jE=ia&&"CompositionEvent"in window,qp=null;ia&&"documentMode"in document&&(qp=document.documentMode);var CU=ia&&"TextEvent"in window&&!qp,CF=ia&&(!jE||qp&&8<qp&&11>=qp),EC=" ",kC=!1;function NF(t,e){switch(t){case"keyup":return AU.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function PF(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var wd=!1;function NU(t,e){switch(t){case"compositionend":return PF(e);case"keypress":return e.which!==32?null:(kC=!0,EC);case"textInput":return t=e.data,t===EC&&kC?null:t;default:return null}}function PU(t,e){if(wd)return t==="compositionend"||!jE&&NF(t,e)?(t=AF(),fv=PE=pl=null,wd=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return CF&&e.locale!=="ko"?null:e.data;default:return null}}var TU={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 AC(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!TU[t.type]:e==="textarea"}function TF(t,e,r,n){oF(n),e=ry(e,"onChange"),0<e.length&&(r=new TE("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var Qp=null,Sg=null;function RU(t){zF(t,0)}function vw(t){var e=Sd(t);if($j(e))return t}function jU(t,e){if(t==="change")return e}var RF=!1;if(ia){var $b;if(ia){var ex="oninput"in document;if(!ex){var CC=document.createElement("div");CC.setAttribute("oninput","return;"),ex=typeof CC.oninput=="function"}$b=ex}else $b=!1;RF=$b&&(!document.documentMode||9<document.documentMode)}function NC(){Qp&&(Qp.detachEvent("onpropertychange",jF),Sg=Qp=null)}function jF(t){if(t.propertyName==="value"&&vw(Sg)){var e=[];TF(e,Sg,t,EE(t)),uF(RU,e)}}function FU(t,e,r){t==="focusin"?(NC(),Qp=e,Sg=r,Qp.attachEvent("onpropertychange",jF)):t==="focusout"&&NC()}function OU(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return vw(Sg)}function DU(t,e){if(t==="click")return vw(e)}function IU(t,e){if(t==="input"||t==="change")return vw(e)}function MU(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ts=typeof Object.is=="function"?Object.is:MU;function Eg(t,e){if(Ts(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!k1.call(e,i)||!Ts(t[i],e[i]))return!1}return!0}function PC(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function TC(t,e){var r=PC(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=PC(r)}}function FF(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?FF(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function OF(){for(var t=window,e=Xv();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Xv(t.document)}return e}function FE(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function BU(t){var e=OF(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&FF(r.ownerDocument.documentElement,r)){if(n!==null&&FE(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!t.extend&&s>n&&(i=n,n=s,s=i),i=TC(r,s);var o=TC(r,n);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<e.length;r++)t=e[r],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var LU=ia&&"documentMode"in document&&11>=document.documentMode,bd=null,H1=null,Xp=null,G1=!1;function RC(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;G1||bd==null||bd!==Xv(n)||(n=bd,"selectionStart"in n&&FE(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Xp&&Eg(Xp,n)||(Xp=n,n=ry(H1,"onSelect"),0<n.length&&(e=new TE("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=bd)))}function f0(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var xd={animationend:f0("Animation","AnimationEnd"),animationiteration:f0("Animation","AnimationIteration"),animationstart:f0("Animation","AnimationStart"),transitionend:f0("Transition","TransitionEnd")},tx={},DF={};ia&&(DF=document.createElement("div").style,"AnimationEvent"in window||(delete xd.animationend.animation,delete xd.animationiteration.animation,delete xd.animationstart.animation),"TransitionEvent"in window||delete xd.transitionend.transition);function yw(t){if(tx[t])return tx[t];if(!xd[t])return t;var e=xd[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in DF)return tx[t]=e[r];return t}var IF=yw("animationend"),MF=yw("animationiteration"),BF=yw("animationstart"),LF=yw("transitionend"),UF=new Map,jC="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 Gl(t,e){UF.set(t,e),Ou(e,[t])}for(var rx=0;rx<jC.length;rx++){var nx=jC[rx],UU=nx.toLowerCase(),zU=nx[0].toUpperCase()+nx.slice(1);
vendor: 5,251 bytes, line 37
37Gl(UU,"on"+zU)}Gl(IF,"onAnimationEnd");Gl(MF,"onAnimationIteration");Gl(BF,"onAnimationStart");Gl("dblclick","onDoubleClick");Gl("focusin","onFocus");Gl("focusout","onBlur");Gl(LF,"onTransitionEnd");nh("onMouseEnter",["mouseout","mouseover"]);nh("onMouseLeave",["mouseout","mouseover"]);nh("onPointerEnter",["pointerout","pointerover"]);nh("onPointerLeave",["pointerout","pointerover"]);Ou("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ou("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ou("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ou("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ou("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ou("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tp="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(" "),_U=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tp));function FC(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,UL(n,e,void 0,t),t.currentTarget=null}function zF(t,e){e=(e&4)!==0;for(var r=0;r<t.length;r++){var n=t[r],i=n.event;n=n.listeners;e:{var s=void 0;if(e)for(var o=n.length-1;0<=o;o--){var a=n[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;FC(i,a,c),s=l}else for(o=0;o<n.length;o++){if(a=n[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;FC(i,a,c),s=l}}}if(Jv)throw t=U1,Jv=!1,U1=null,t}function Ut(t,e){var r=e[X1];r===void 0&&(r=e[X1]=new Set);var n=t+"__bubble";r.has(n)||(_F(e,t,2,!1),r.add(n))}function ix(t,e,r){var n=0;e&&(n|=4),_F(r,t,n,e)}var h0="_reactListening"+Math.random().toString(36).slice(2);function kg(t){if(!t[h0]){t[h0]=!0,Qj.forEach(function(r){r!=="selectionchange"&&(_U.has(r)||ix(r,!1,t),ix(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[h0]||(e[h0]=!0,ix("selectionchange",!1,e))}}function _F(t,e,r,n){switch(kF(e)){case 1:var i=tU;break;case 4:i=rU;break;default:i=NE}r=i.bind(null,e,r,t),i=void 0,!L1||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),n?i!==void 0?t.addEventListener(e,r,{capture:!0,passive:i}):t.addEventListener(e,r,!0):i!==void 0?t.addEventListener(e,r,{passive:i}):t.addEventListener(e,r,!1)}function sx(t,e,r,n,i){var s=n;if(!(e&1)&&!(e&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var a=n.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=n.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=Ec(a),o===null)return;if(l=o.tag,l===5||l===6){n=s=o;continue e}a=a.parentNode}}n=n.return}uF(function(){var c=s,u=EE(r),d=[];e:{var h=UF.get(t);if(h!==void 0){var p=TE,m=t;switch(t){case"keypress":if(hv(r)===0)break e;case"keydown":case"keyup":p=vU;break;case"focusin":m="focus",p=Zb;break;case"focusout":m="blur",p=Zb;break;case"beforeblur":case"afterblur":p=Zb;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=bC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=sU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=bU;break;case IF:case MF:case BF:p=lU;break;case LF:p=SU;break;case"scroll":p=nU;break;case"wheel":p=kU;break;case"copy":case"cut":case"paste":p=uU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=SC}var g=(e&4)!==0,y=!g&&t==="scroll",v=g?h!==null?h+"Capture":null:h;g=[];for(var w=c,b;w!==null;){b=w;var E=b.stateNode;if(b.tag===5&&E!==null&&(b=E,v!==null&&(E=yg(w,v),E!=null&&g.push(Ag(w,E,b)))),y)break;w=w.return}0<g.length&&(h=new p(h,m,null,r,u),d.push({event:h,listeners:g}))}}if(!(e&7)){e:{if(h=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",h&&r!==M1&&(m=r.relatedTarget||r.fromElement)&&(Ec(m)||m[sa]))break e;if((p||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,p?(m=r.relatedTarget||r.toElement,p=c,m=m?Ec(m):null,m!==null&&(y=Du(m),m!==y||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=c),p!==m)){if(g=bC,E="onMouseLeave",v="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(g=SC,E="onPointerLeave",v="onPointerEnter",w="pointer"),y=p==null?h:Sd(p),b=m==null?h:Sd(m),h=new g(E,w+"leave",p,r,u),h.target=y,h.relatedTarget=b,E=null,Ec(u)===c&&(g=new g(v,w+"enter",m,r,u),g.target=b,g.relatedTarget=y,E=g),y=E,p&&m)t:{for(g=p,v=m,w=0,b=g;b;b=Qu(b))w++;for(b=0,E=v;E;E=Qu(E))b++;for(;0<w-b;)g=Qu(g),w--;for(;0<b-w;)v=Qu(v),b--;for(;w--;){if(g===v||v!==null&&g===v.alternate)break t;g=Qu(g),v=Qu(v)}g=null}else g=null;p!==null&&OC(d,h,p,g,!1),m!==null&&y!==null&&OC(d,y,m,g,!0)}}
vendor: 4,215 bytes, lines 37-38
37e:{if(h=c?Sd(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var A=jU;else if(AC(h))if(RF)A=IU;else{A=OU;var k=FU}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(A=DU);if(A&&(A=A(t,c))){TF(d,A,r,u);break e}k&&k(t,h,c),t==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&j1(h,"number",h.value)}switch(k=c?Sd(c):window,t){case"focusin":(AC(k)||k.contentEditable==="true")&&(bd=k,H1=c,Xp=null);break;case"focusout":Xp=H1=bd=null;break;case"mousedown":G1=!0;break;case"contextmenu":case"mouseup":case"dragend":G1=!1,RC(d,r,u);break;case"selectionchange":if(LU)break;case"keydown":case"keyup":RC(d,r,u)}var P;if(jE)e:{switch(t){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else wd?NF(t,r)&&(C="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(CF&&r.locale!=="ko"&&(wd||C!=="onCompositionStart"?C==="onCompositionEnd"&&wd&&(P=AF()):(pl=u,PE="value"in pl?pl.value:pl.textContent,wd=!0)),k=ry(c,C),0<k.length&&(C=new xC(C,t,null,r,u),d.push({event:C,listeners:k}),P?C.data=P:(P=PF(r),P!==null&&(C.data=P)))),(P=CU?NU(t,r):PU(t,r))&&(c=ry(c,"onBeforeInput"),0<c.length&&(u=new xC("onBeforeInput","beforeinput",null,r,u),d.push({event:u,listeners:c}),u.data=P))}zF(d,e)})}function Ag(t,e,r){return{instance:t,listener:e,currentTarget:r}}function ry(t,e){for(var r=e+"Capture",n=[];t!==null;){var i=t,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=yg(t,r),s!=null&&n.unshift(Ag(t,s,i)),s=yg(t,e),s!=null&&n.push(Ag(t,s,i))),t=t.return}return n}function Qu(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function OC(t,e,r,n,i){for(var s=e._reactName,o=[];r!==null&&r!==n;){var a=r,l=a.alternate,c=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&c!==null&&(a=c,i?(l=yg(r,s),l!=null&&o.unshift(Ag(r,l,a))):i||(l=yg(r,s),l!=null&&o.push(Ag(r,l,a)))),r=r.return}o.length!==0&&t.push({event:e,listeners:o})}var VU=/\r\n?/g,HU=/\u0000|\uFFFD/g;function DC(t){return(typeof t=="string"?t:""+t).replace(VU,`
38`).replace(HU,"")}function p0(t,e,r){if(e=DC(e),DC(t)!==e&&r)throw Error(re(425))}function ny(){}var W1=null,K1=null;function q1(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Q1=typeof setTimeout=="function"?setTimeout:void 0,GU=typeof clearTimeout=="function"?clearTimeout:void 0,IC=typeof Promise=="function"?Promise:void 0,WU=typeof queueMicrotask=="function"?queueMicrotask:typeof IC<"u"?function(t){return IC.resolve(null).then(t).catch(KU)}:Q1;function KU(t){setTimeout(function(){throw t})}function ox(t,e){var r=e,n=0;do{var i=r.nextSibling;if(t.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){t.removeChild(i),xg(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);xg(e)}function El(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function MC(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var Th=Math.random().toString(36).slice(2),no="__reactFiber$"+Th,Cg="__reactProps$"+Th,sa="__reactContainer$"+Th,X1="__reactEvents$"+Th,qU="__reactListeners$"+Th,QU="__reactHandles$"+Th;function Ec(t){var e=t[no];if(e)return e;for(var r=t.parentNode;r;){if(e=r[sa]||r[no]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=MC(t);t!==null;){if(r=t[no])return r;t=MC(t)}return e}t=r,r=t.parentNode}return null}function Am(t){return t=t[no]||t[sa],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Sd(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(re(33))}function ww(t){return t[Cg]||null}var Y1=[],Ed=-1;function Wl(t){return{current:t}}function _t(t){0>Ed||(t.current=Y1[Ed],Y1[Ed]=null,Ed--)}function Mt(t,e){Ed++,Y1[Ed]=t.current,t.current=e}var Il={}
vendor: 15,899 bytes, line 38
38,un=Wl(Il),Qn=Wl(!1),uu=Il;function ih(t,e){var r=t.type.contextTypes;if(!r)return Il;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=e[s];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Xn(t){return t=t.childContextTypes,t!=null}function iy(){_t(Qn),_t(un)}function BC(t,e,r){if(un.current!==Il)throw Error(re(168));Mt(un,e),Mt(Qn,r)}function VF(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(re(108,FL(t)||"Unknown",i));return $t({},r,n)}function sy(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Il,uu=un.current,Mt(un,t),Mt(Qn,Qn.current),!0}function LC(t,e,r){var n=t.stateNode;if(!n)throw Error(re(169));r?(t=VF(t,e,uu),n.__reactInternalMemoizedMergedChildContext=t,_t(Qn),_t(un),Mt(un,t)):_t(Qn),Mt(Qn,r)}var Fo=null,bw=!1,ax=!1;function HF(t){Fo===null?Fo=[t]:Fo.push(t)}function XU(t){bw=!0,HF(t)}function Kl(){if(!ax&&Fo!==null){ax=!0;var t=0,e=Pt;try{var r=Fo;for(Pt=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}Fo=null,bw=!1}catch(i){throw Fo!==null&&(Fo=Fo.slice(t+1)),pF(kE,Kl),i}finally{Pt=e,ax=!1}}return null}var kd=[],Ad=0,oy=null,ay=0,Bi=[],Li=0,du=null,Qo=1,Xo="";function lc(t,e){kd[Ad++]=ay,kd[Ad++]=oy,oy=t,ay=e}function GF(t,e,r){Bi[Li++]=Qo,Bi[Li++]=Xo,Bi[Li++]=du,du=t;var n=Qo;t=Xo;var i=32-Cs(n)-1;n&=~(1<<i),r+=1;var s=32-Cs(e)+i;if(30<s){var o=i-i%5;s=(n&(1<<o)-1).toString(32),n>>=o,i-=o,Qo=1<<32-Cs(e)+i|r<<i|n,Xo=s+t}else Qo=1<<s|r<<i|n,Xo=t}function OE(t){t.return!==null&&(lc(t,1),GF(t,1,0))}function DE(t){for(;t===oy;)oy=kd[--Ad],kd[Ad]=null,ay=kd[--Ad],kd[Ad]=null;for(;t===du;)du=Bi[--Li],Bi[Li]=null,Xo=Bi[--Li],Bi[Li]=null,Qo=Bi[--Li],Bi[Li]=null}var pi=null,ui=null,Kt=!1,Ss=null;function WF(t,e){var r=_i(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function UC(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,pi=t,ui=El(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,pi=t,ui=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=du!==null?{id:Qo,overflow:Xo}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=_i(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,pi=t,ui=null,!0):!1;default:return!1}}function J1(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Z1(t){if(Kt){var e=ui;if(e){var r=e;if(!UC(t,e)){if(J1(t))throw Error(re(418));e=El(r.nextSibling);var n=pi;e&&UC(t,e)?WF(n,r):(t.flags=t.flags&-4097|2,Kt=!1,pi=t)}}else{if(J1(t))throw Error(re(418));t.flags=t.flags&-4097|2,Kt=!1,pi=t}}}function zC(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;pi=t}function g0(t){if(t!==pi)return!1;if(!Kt)return zC(t),Kt=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!q1(t.type,t.memoizedProps)),e&&(e=ui)){if(J1(t))throw KF(),Error(re(418));for(;e;)WF(t,e),e=El(e.nextSibling)}if(zC(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(re(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){ui=El(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}ui=null}}else ui=pi?El(t.stateNode.nextSibling):null;return!0}function KF(){for(var t=ui;t;)t=El(t.nextSibling)}function sh(){ui=pi=null,Kt=!1}function IE(t){Ss===null?Ss=[t]:Ss.push(t)}var YU=ua.ReactCurrentBatchConfig;function ip(t,e,r){if(t=r.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(re(309));var n=r.stateNode}if(!n)throw Error(re(147,t));var i=n,s=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===s?e.ref:(e=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},e._stringRef=s,e)}if(typeof t!="string")throw Error(re(284));if(!r._owner)throw Error(re(290,t))}return t}function m0(t,e){throw t=Object.prototype.toString.call(e),Error(re(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function _C(t){var e=t._init;return e(t._payload)}function qF(t){function e(v,w){if(t){var b=v.deletions;b===null?(v.deletions=[w],v.flags|=16):b.push(w)}}function r(v,w){if(!t)return null;for(;w!==null;)e(v,w),w=w.sibling;return null}function n(v,w){for(v=new Map;w!==null;)w.key!==null?v.set(w.key,w):v.set(w.index,w),w=w.sibling;return v}function i(v,w){return v=Nl(v,w),v.index=0,v.sibling=null,v}function s(v,w,b){return v.index=b,t?(b=v.alternate,b!==null?(b=b.index,b<w?(v.flags|=2,w):b):(v.flags|=2,w)):(v.flags|=1048576,w)}function o(v){return t&&v.alternate===null&&(v.flags|=2),v}function a(v,w,b,E){return w===null||w.tag!==6?(w=px(b,v.mode,E),w.return=v,w):(w=i(w,b),w.return=v,w)}function l(v,w,b,E){var A=b.type;return A===yd?u(v,w,b.props.children,E,b.key):w!==null&&(w.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Ia&&_C(A)===w.type)?(E=i(w,b.props),E.ref=ip(v,w,b),E.return=v,E):(E=bv(b.type,b.key,b.props,null,v.mode,E),E.ref=ip(v,w,b),E.return=v,E)}function c(v,w,b,E){return w===null||w.tag!==4||w.stateNode.containerInfo!==b.containerInfo||w.stateNode.implementation!==b.implementation?(w=gx(b,v.mode,E),w.return=v,w):(w=i(w,b.children||[]),w.return=v,w)}function u(v,w,b,E,A){return w===null||w.tag!==7?(w=au(b,v.mode,E,A),w.return=v,w):(w=i(w,b),w.return=v,w)}function d(v,w,b){if(typeof w=="string"&&w!==""||typeof w=="number")return w=px(""+w,v.mode,b),w.return=v,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case s0:return b=bv(w.type,w.key,w.props,null,v.mode,b),b.ref=ip(v,null,w),b.return=v,b;case vd:return w=gx(w,v.mode,b),w.return=v,w;case Ia:var E=w._init;return d(v,E(w._payload),b)}if(Np(w)||$h(w))return w=au(w,v.mode,b,null),w.return=v,w;m0(v,w)}return null}function h(v,w,b,E){var A=w!==null?w.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return A!==null?null:a(v,w,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case s0:return b.key===A?l(v,w,b,E):null;case vd:return b.key===A?c(v,w,b,E):null;case Ia:return A=b._init,h(v,w,A(b._payload),E)}if(Np(b)||$h(b))return A!==null?null:u(v,w,b,E,null);m0(v,b)}return null}function p(v,w,b,E,A){if(typeof E=="string"&&E!==""||typeof E=="number")return v=v.get(b)||null,a(w,v,""+E,A);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case s0:return v=v.get(E.key===null?b:E.key)||null,l(w,v,E,A);case vd:return v=v.get(E.key===null?b:E.key)||null,c(w,v,E,A);case Ia:var k=E._init;return p(v,w,b,k(E._payload),A)}if(Np(E)||$h(E))return v=v.get(b)||null,u(w,v,E,A,null);m0(w,E)}return null}function m(v,w,b,E){for(var A=null,k=null,P=w,C=w=0,N=null;P!==null&&C<b.length;C++){P.index>C?(N=P,P=null):N=P.sibling;var R=h(v,P,b[C],E);if(R===null){P===null&&(P=N);break}t&&P&&R.alternate===null&&e(v,P),w=s(R,w,C),k===null?A=R:k.sibling=R,k=R,P=N}if(C===b.length)return r(v,P),Kt&&lc(v,C),A;if(P===null){for(;C<b.length;C++)P=d(v,b[C],E),P!==null&&(w=s(P,w,C),k===null?A=P:k.sibling=P,k=P);return Kt&&lc(v,C),A}for(P=n(v,P);C<b.length;C++)N=p(P,v,C,b[C],E),N!==null&&(t&&N.alternate!==null&&P.delete(N.key===null?C:N.key),w=s(N,w,C),k===null?A=N:k.sibling=N,k=N);return t&&P.forEach(function(F){return e(v,F)}),Kt&&lc(v,C),A}function g(v,w,b,E){var A=$h(b);if(typeof A!="function")throw Error(re(150));if(b=A.call(b),b==null)throw Error(re(151));for(var k=A=null,P=w,C=w=0,N=null,R=b.next();P!==null&&!R.done;C++,R=b.next()){P.index>C?(N=P,P=null):N=P.sibling;var F=h(v,P,R.value,E);if(F===null){P===null&&(P=N);break}t&&P&&F.alternate===null&&e(v,P),w=s(F,w,C),k===null?A=F:k.sibling=F,k=F,P=N}if(R.done)return r(v,P),Kt&&lc(v,C),A;if(P===null){for(;!R.done;C++,R=b.next())R=d(v,R.value,E),R!==null&&(w=s(R,w,C),k===null?A=R:k.sibling=R,k=R);return Kt&&lc(v,C),A}for(P=n(v,P);!R.done;C++,R=b.next())R=p(P,v,C,R.value,E),R!==null&&(t&&R.alternate!==null&&P.delete(R.key===null?C:R.key),w=s(R,w,C),k===null?A=R:k.sibling=R,k=R);return t&&P.forEach(function(B){return e(v,B)}),Kt&&lc(v,C),A}function y(v,w,b,E){if(typeof b=="object"&&b!==null&&b.type===yd&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case s0:e:{for(var A=b.key,k=w;k!==null;){if(k.key===A){if(A=b.type,A===yd){if(k.tag===7){r(v,k.sibling),w=i(k,b.props.children),w.return=v,v=w;break e}}else if(k.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Ia&&_C(A)===k.type){r(v,k.sibling),w=i(k,b.props),w.ref=ip(v,k,b),w.return=v,v=w;break e}r(v,k);break}else e(v,k);k=k.sibling}b.type===yd?(w=au(b.props.children,v.mode,E,b.key),w.return=v,v=w):(E=bv(b.type,b.key,b.props,null,v.mode,E),E.ref=ip(v,w,b),E.return=v,v=E)}return o(v);case vd:e:{for(k=b.key;w!==null;){if(w.key===k)if(w.tag===4&&w.stateNode.containerInfo===b.containerInfo&&w.stateNode.implementation===b.implementation){r(v,w.sibling),w=i(w,b.children||[]),w.return=v,v=w;break e}else{r(v,w);break}else e(v,w);w=w.sibling}w=gx(b,v.mode,E),w.return=v,v=w}return o(v);case Ia:return k=b._init,y(v,w,k(b._payload),E)}if(Np(b))return m(v,w,b,E);if($h(b))return g(v,w,b,E);m0(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,w!==null&&w.tag===6?(r(v,w.sibling),w=i(w,b),w.return=v,v=w):(r(v,w),w=px(b,v.mode,E),w.return=v,v=w),o(v)):r(v,w)}return y}var oh=qF(!0),QF=qF(!1),ly=Wl(null),cy=null,Cd=null,ME=null;function BE(){ME=Cd=cy=null}function LE(t){var e=ly.current;_t(ly),t._currentValue=e}function $1(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function Hd(t,e){cy=t,ME=Cd=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Gn=!0),t.firstContext=null)}function Qi(t){var e=t._currentValue;if(ME!==t)if(t={context:t,memoizedValue:e,next:null},Cd===null){if(cy===null)throw Error(re(308));Cd=t,cy.dependencies={lanes:0,firstContext:t}}else Cd=Cd.next=t;return e}var kc=null;function UE(t){kc===null?kc=[t]:kc.push(t)}function XF(t,e,r,n){var i=e.interleaved;return i===null?(r.next=r,UE(e)):(r.next=i.next,i.next=r),e.interleaved=r,oa(t,n)}function oa(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var Ma=!1;function zE(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function YF(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Jo(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function kl(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,dt&2){var i=n.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),n.pending=e,oa(t,r)}return i=n.interleaved,i===null?(e.next=e,UE(n)):(e.next=i.next,i.next=e),n.interleaved=e,oa(t,r)}function pv(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,AE(t,r)}}function VC(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?i=s=e:s=s.next=e}else i=s=e;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function uy(t,e,r,n){var i=t.updateQueue;Ma=!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 u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(s!==null){var d=i.baseState;o=0,u=c=l=null,a=s;do{var h=a.lane,p=a.eventTime;if((n&h)===h){u!==null&&(u=u.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=t,g=a;switch(h=e,p=r,g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(p,d,h);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,h=typeof m=="function"?m.call(p,d,h):m,h==null)break e;d=$t({},d,h);break e;case 2:Ma=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,o|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);hu|=o,t.lanes=o,t.memoizedState=d}}function HC(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var n=t[e],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(re(191,i));i.call(n)}}}var Cm={},fo=Wl(Cm),Ng=Wl(Cm),Pg=Wl(Cm);function Ac(t){if(t===Cm)throw Error(re(174));return t}function _E(t,e){switch(Mt(Pg,e),Mt(Ng,t),Mt(fo,Cm),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:O1(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=O1(e,t)}_t(fo),Mt(fo,e)}function ah(){_t(fo),_t(Ng),_t(Pg)}function JF(t){Ac(Pg.current);var e=Ac(fo.current),r=O1(e,t.type);e!==r&&(Mt(Ng,t),Mt(fo,r))}function VE(t){Ng.current===t&&(_t(fo),_t(Ng))}var Xt=Wl(0);function dy(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var lx=[];function HE(){for(var t=0;t<lx.length;t++)lx[t]._workInProgressVersionPrimary=null;lx.length=0}var gv=ua.ReactCurrentDispatcher,cx=ua.ReactCurrentBatchConfig,fu=0,Zt=null,Nr=null,Br=null,fy=!1,Yp=!1,Tg=0,JU=0;function en(){throw Error(re(321))}function GE(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!Ts(t[r],e[r]))return!1;return!0}function WE(t,e,r,n,i,s){if(fu=s,Zt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,gv.current=t===null||t.memoizedState===null?t6:r6,t=r(n,i),Yp){s=0;do{if(Yp=!1,Tg=0,25<=s)throw Error(re(301));s+=1,Br=Nr=null,e.updateQueue=null,gv.current=n6,t=r(n,i)}while(Yp)}if(gv.current=hy,e=Nr!==null&&Nr.next!==null,fu=0,Br=Nr=Zt=null,fy=!1,e)throw Error(re(300));return t}function KE(){var t=Tg!==0;return Tg=0,t}function Gs(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Br===null?Zt.memoizedState=Br=t:Br=Br.next=t,Br}function Xi(){if(Nr===null){var t=Zt.alternate;t=t!==null?t.memoizedState:null}else t=Nr.next;var e=Br===null?Zt.memoizedState:Br.next;if(e!==null)Br=e,Nr=t;else{if(t===null)throw Error(re(310));Nr=t,t={memoizedState:Nr.memoizedState,baseState:Nr.baseState,baseQueue:Nr.baseQueue,queue:Nr.queue,next:null},Br===null?Zt.memoizedState=Br=t:Br=Br.next=t}return Br}function Rg(t,e){return typeof e=="function"?e(t):e}function ux(t){var e=Xi(),r=e.queue;if(r===null)throw Error(re(311));r.lastRenderedReducer=t;
vendor: 4,651 bytes, line 38
38var n=Nr,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var a=o=null,l=null,c=s;do{var u=c.lane;if((fu&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:t(n,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,o=n):l=l.next=d,Zt.lanes|=u,hu|=u}c=c.next}while(c!==null&&c!==s);l===null?o=n:l.next=a,Ts(n,e.memoizedState)||(Gn=!0),e.memoizedState=n,e.baseState=o,e.baseQueue=l,r.lastRenderedState=n}if(t=r.interleaved,t!==null){i=t;do s=i.lane,Zt.lanes|=s,hu|=s,i=i.next;while(i!==t)}else i===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function dx(t){var e=Xi(),r=e.queue;if(r===null)throw Error(re(311));r.lastRenderedReducer=t;var n=r.dispatch,i=r.pending,s=e.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do s=t(s,o.action),o=o.next;while(o!==i);Ts(s,e.memoizedState)||(Gn=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),r.lastRenderedState=s}return[s,n]}function ZF(){}function $F(t,e){var r=Zt,n=Xi(),i=e(),s=!Ts(n.memoizedState,i);if(s&&(n.memoizedState=i,Gn=!0),n=n.queue,qE(rO.bind(null,r,n,t),[t]),n.getSnapshot!==e||s||Br!==null&&Br.memoizedState.tag&1){if(r.flags|=2048,jg(9,tO.bind(null,r,n,i,e),void 0,null),_r===null)throw Error(re(349));fu&30||eO(r,e,i)}return i}function eO(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=Zt.updateQueue,e===null?(e={lastEffect:null,stores:null},Zt.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function tO(t,e,r,n){e.value=r,e.getSnapshot=n,nO(e)&&iO(t)}function rO(t,e,r){return r(function(){nO(e)&&iO(t)})}function nO(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!Ts(t,r)}catch{return!0}}function iO(t){var e=oa(t,1);e!==null&&Ns(e,t,1,-1)}function GC(t){var e=Gs();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rg,lastRenderedState:t},e.queue=t,t=t.dispatch=e6.bind(null,Zt,t),[e.memoizedState,t]}function jg(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=Zt.updateQueue,e===null?(e={lastEffect:null,stores:null},Zt.updateQueue=e,e.lastEffect=t.next=t):(r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t)),t}function sO(){return Xi().memoizedState}function mv(t,e,r,n){var i=Gs();Zt.flags|=t,i.memoizedState=jg(1|e,r,void 0,n===void 0?null:n)}function xw(t,e,r,n){var i=Xi();n=n===void 0?null:n;var s=void 0;if(Nr!==null){var o=Nr.memoizedState;if(s=o.destroy,n!==null&&GE(n,o.deps)){i.memoizedState=jg(e,r,s,n);return}}Zt.flags|=t,i.memoizedState=jg(1|e,r,s,n)}function WC(t,e){return mv(8390656,8,t,e)}function qE(t,e){return xw(2048,8,t,e)}function oO(t,e){return xw(4,2,t,e)}function aO(t,e){return xw(4,4,t,e)}function lO(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function cO(t,e,r){return r=r!=null?r.concat([t]):null,xw(4,4,lO.bind(null,e,t),r)}function QE(){}function uO(t,e){var r=Xi();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&GE(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function dO(t,e){var r=Xi();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&GE(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function fO(t,e,r){return fu&21?(Ts(r,e)||(r=vF(),Zt.lanes|=r,hu|=r,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Gn=!0),t.memoizedState=r)}function ZU(t,e){var r=Pt;Pt=r!==0&&4>r?r:4,t(!0);var n=cx.transition;cx.transition={};try{t(!1),e()}finally{Pt=r,cx.transition=n}}function hO(){return Xi().memoizedState}function $U(t,e,r){var n=Cl(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},pO(t))gO(e,r);else if(r=XF(t,e,r,n),r!==null){var i=Pn();Ns(r,t,n,i),mO(r,e,n)}}function e6(t,e,r){var n=Cl(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(pO(t))gO(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,r);if(i.hasEagerState=!0,i.eagerState=a,Ts(a,o)){var l=e.interleaved;l===null?(i.next=i,UE(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}r=XF(t,e,i,n),r!==null&&(i=Pn(),Ns(r,t,n,i),mO(r,e,n))}}function pO(t){var e=t.alternate;return t===Zt||e!==null&&e===Zt}function gO(t,e){Yp=fy=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function mO(t,e,r){if(r&4194240){var n=e.lanes;
vendor: 8,341 bytes, lines 38-40
38n&=t.pendingLanes,r|=n,e.lanes=r,AE(t,r)}}var hy={readContext:Qi,useCallback:en,useContext:en,useEffect:en,useImperativeHandle:en,useInsertionEffect:en,useLayoutEffect:en,useMemo:en,useReducer:en,useRef:en,useState:en,useDebugValue:en,useDeferredValue:en,useTransition:en,useMutableSource:en,useSyncExternalStore:en,useId:en,unstable_isNewReconciler:!1},t6={readContext:Qi,useCallback:function(t,e){return Gs().memoizedState=[t,e===void 0?null:e],t},useContext:Qi,useEffect:WC,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,mv(4194308,4,lO.bind(null,e,t),r)},useLayoutEffect:function(t,e){return mv(4194308,4,t,e)},useInsertionEffect:function(t,e){return mv(4,2,t,e)},useMemo:function(t,e){var r=Gs();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Gs();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=$U.bind(null,Zt,t),[n.memoizedState,t]},useRef:function(t){var e=Gs();return t={current:t},e.memoizedState=t},useState:GC,useDebugValue:QE,useDeferredValue:function(t){return Gs().memoizedState=t},useTransition:function(){var t=GC(!1),e=t[0];return t=ZU.bind(null,t[1]),Gs().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Zt,i=Gs();if(Kt){if(r===void 0)throw Error(re(407));r=r()}else{if(r=e(),_r===null)throw Error(re(349));fu&30||eO(n,e,r)}i.memoizedState=r;var s={value:r,getSnapshot:e};return i.queue=s,WC(rO.bind(null,n,s,t),[t]),n.flags|=2048,jg(9,tO.bind(null,n,s,r,e),void 0,null),r},useId:function(){var t=Gs(),e=_r.identifierPrefix;if(Kt){var r=Xo,n=Qo;r=(n&~(1<<32-Cs(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Tg++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=JU++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},r6={readContext:Qi,useCallback:uO,useContext:Qi,useEffect:qE,useImperativeHandle:cO,useInsertionEffect:oO,useLayoutEffect:aO,useMemo:dO,useReducer:ux,useRef:sO,useState:function(){return ux(Rg)},useDebugValue:QE,useDeferredValue:function(t){var e=Xi();return fO(e,Nr.memoizedState,t)},useTransition:function(){var t=ux(Rg)[0],e=Xi().memoizedState;return[t,e]},useMutableSource:ZF,useSyncExternalStore:$F,useId:hO,unstable_isNewReconciler:!1},n6={readContext:Qi,useCallback:uO,useContext:Qi,useEffect:qE,useImperativeHandle:cO,useInsertionEffect:oO,useLayoutEffect:aO,useMemo:dO,useReducer:dx,useRef:sO,useState:function(){return dx(Rg)},useDebugValue:QE,useDeferredValue:function(t){var e=Xi();return Nr===null?e.memoizedState=t:fO(e,Nr.memoizedState,t)},useTransition:function(){var t=dx(Rg)[0],e=Xi().memoizedState;return[t,e]},useMutableSource:ZF,useSyncExternalStore:$F,useId:hO,unstable_isNewReconciler:!1};function ds(t,e){if(t&&t.defaultProps){e=$t({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}function eS(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:$t({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var Sw={isMounted:function(t){return(t=t._reactInternals)?Du(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=Pn(),i=Cl(t),s=Jo(n,i);s.payload=e,r!=null&&(s.callback=r),e=kl(t,s,i),e!==null&&(Ns(e,t,i,n),pv(e,t,i))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=Pn(),i=Cl(t),s=Jo(n,i);s.tag=1,s.payload=e,r!=null&&(s.callback=r),e=kl(t,s,i),e!==null&&(Ns(e,t,i,n),pv(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=Pn(),n=Cl(t),i=Jo(r,n);i.tag=2,e!=null&&(i.callback=e),e=kl(t,i,n),e!==null&&(Ns(e,t,n,r),pv(e,t,n))}};function KC(t,e,r,n,i,s,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,s,o):e.prototype&&e.prototype.isPureReactComponent?!Eg(r,n)||!Eg(i,s):!0}function vO(t,e,r){var n=!1,i=Il,s=e.contextType;return typeof s=="object"&&s!==null?s=Qi(s):(i=Xn(e)?uu:un.current,n=e.contextTypes,s=(n=n!=null)?ih(t,i):Il),e=new e(r,s),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Sw,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=s),e}function qC(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&Sw.enqueueReplaceState(e,e.state,null)}function tS(t,e,r,n){var i=t.stateNode;i.props=r,i.state=t.memoizedState,i.refs={},zE(t);var s=e.contextType;typeof s=="object"&&s!==null?i.context=Qi(s):(s=Xn(e)?uu:un.current,i.context=ih(t,s)),i.state=t.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(eS(t,e,s,r),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&Sw.enqueueReplaceState(i,i.state,null),uy(t,r,i,n),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function lh(t,e){try{var r="",n=e;do r+=jL(n),n=n.return;while(n);var i=r}catch(s){i=`
39Error generating stack: `+s.message+`
40`+s.stack}return{value:t,source:e,stack:i,digest:null}}function fx(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function rS(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var i6=typeof WeakMap=="function"?WeakMap:Map;function yO(t,e,r){r=Jo(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){gy||(gy=!0,fS=n),rS(t,e)},r}function wO(t,e,r){r=Jo(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var i=e.value;r.payload=function(){return n(i)},r.callback=function(){rS(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){rS(t,e),typeof n!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),r}function QC(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new i6;var i=new Set;n.set(e,i)}else i=n.get(e),i===void 0&&(i=new Set,n.set(e,i));i.has(r)||(i.add(r),t=y6.bind(null,t,e,r),e.then(t,t))}function XC(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function YC(t,e,r,n,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=Jo(-1,1),e.tag=2,kl(r,e,1))),r.lanes|=1),t)}var s6=ua.ReactCurrentOwner,Gn=!1;function yn(t,e,r,n){e.child=t===null?QF(e,null,r,n):oh(e,t.child,r,n)}function JC(t,e,r,n,i){r=r.render;var s=e.ref;return Hd(e,i),n=WE(t,e,r,n,s,i),r=KE(),t!==null&&!Gn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,aa(t,e,i)):(Kt&&r&&OE(e),e.flags|=1,yn(t,e,n,i),e.child)}function ZC(t,e,r,n,i){if(t===null){var s=r.type;return typeof s=="function"&&!rk(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=s,bO(t,e,s,n,i)):(t=bv(r.type,null,n,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&i)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:Eg,r(o,n)&&t.ref===e.ref)return aa(t,e,i)}return e.flags|=1,t=Nl(s,n),t.ref=e.ref,t.return=e,e.child=t}function bO(t,e,r,n,i){if(t!==null){var s=t.memoizedProps;if(Eg(s,n)&&t.ref===e.ref)if(Gn=!1,e.pendingProps=n=s,(t.lanes&i)!==0)t.flags&131072&&(Gn=!0);else return e.lanes=t.lanes,aa(t,e,i)}return nS(t,e,r,n,i)}function xO(t,e,r){var n=e.pendingProps,i=n.children,s=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mt(Pd,li),li|=r;else{if(!(r&1073741824))return t=s!==null?s.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Mt(Pd,li),li|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,Mt(Pd,li),li|=n}else s!==null?(n=s.baseLanes|r,e.memoizedState=null):n=r,Mt(Pd,li),li|=n;
vendor: 4,842 bytes, line 40
40return yn(t,e,i,r),e.child}function SO(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function nS(t,e,r,n,i){var s=Xn(r)?uu:un.current;return s=ih(e,s),Hd(e,i),r=WE(t,e,r,n,s,i),n=KE(),t!==null&&!Gn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,aa(t,e,i)):(Kt&&n&&OE(e),e.flags|=1,yn(t,e,r,i),e.child)}function $C(t,e,r,n,i){if(Xn(r)){var s=!0;sy(e)}else s=!1;if(Hd(e,i),e.stateNode===null)vv(t,e),vO(e,r,n),tS(e,r,n,i),n=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,c=r.contextType;typeof c=="object"&&c!==null?c=Qi(c):(c=Xn(r)?uu:un.current,c=ih(e,c));var u=r.getDerivedStateFromProps,d=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||l!==c)&&qC(e,o,n,c),Ma=!1;var h=e.memoizedState;o.state=h,uy(e,n,o,i),l=e.memoizedState,a!==n||h!==l||Qn.current||Ma?(typeof u=="function"&&(eS(e,r,u,n),l=e.memoizedState),(a=Ma||KC(e,r,a,n,h,l,c))?(d||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"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=l),o.props=n,o.state=l,o.context=c,n=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{o=e.stateNode,YF(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:ds(e.type,a),o.props=c,d=e.pendingProps,h=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=Qi(l):(l=Xn(r)?uu:un.current,l=ih(e,l));var p=r.getDerivedStateFromProps;(u=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&qC(e,o,n,l),Ma=!1,h=e.memoizedState,o.state=h,uy(e,n,o,i);var m=e.memoizedState;a!==d||h!==m||Qn.current||Ma?(typeof p=="function"&&(eS(e,r,p,n),m=e.memoizedState),(c=Ma||KC(e,r,c,n,h,m,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,m,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=m),o.props=n,o.state=m,o.context=l,n=c):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),n=!1)}return iS(t,e,r,n,s,i)}function iS(t,e,r,n,i,s){SO(t,e);var o=(e.flags&128)!==0;if(!n&&!o)return i&&LC(e,r,!1),aa(t,e,s);n=e.stateNode,s6.current=e;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&o?(e.child=oh(e,t.child,null,s),e.child=oh(e,null,a,s)):yn(t,e,a,s),e.memoizedState=n.state,i&&LC(e,r,!0),e.child}function EO(t){var e=t.stateNode;e.pendingContext?BC(t,e.pendingContext,e.pendingContext!==e.context):e.context&&BC(t,e.context,!1),_E(t,e.containerInfo)}function eN(t,e,r,n,i){return sh(),IE(i),e.flags|=256,yn(t,e,r,n),e.child}var sS={dehydrated:null,treeContext:null,retryLane:0};function oS(t){return{baseLanes:t,cachePool:null,transitions:null}}function kO(t,e,r){var n=e.pendingProps,i=Xt.current,s=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(i&2)!==0),a?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),Mt(Xt,i&1),t===null)return Z1(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=n.children,t=n.fallback,s?(n=e.mode,s=e.child,o={mode:"hidden",children:o},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Aw(o,n,0,null),t=au(t,n,r,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=oS(r),e.memoizedState=sS,t):XE(e,o));if(i=t.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return o6(t,e,o,n,a,i,r);if(s){s=n.fallback,o=e.mode,i=t.child,a=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&e.child!==i?(n=e.child,n.childLanes=0,n.pendingProps=l,e.deletions=null):(n=Nl(i,l),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Nl(a,s):(s=au(s,o,r,null),s.flags|=2),s.return=e,n.return=e,n.sibling=s,e.child=n,n=s,s=e.child,o=t.child.memoizedState,o=o===null?oS(r):{base
vendor: 4,808 bytes, line 40
40Lanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~r,e.memoizedState=sS,n}return s=t.child,t=s.sibling,n=Nl(s,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function XE(t,e){return e=Aw({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function v0(t,e,r,n){return n!==null&&IE(n),oh(e,t.child,null,r),t=XE(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function o6(t,e,r,n,i,s,o){if(r)return e.flags&256?(e.flags&=-257,n=fx(Error(re(422))),v0(t,e,o,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=n.fallback,i=e.mode,n=Aw({mode:"visible",children:n.children},i,0,null),s=au(s,i,o,null),s.flags|=2,n.return=e,s.return=e,n.sibling=s,e.child=n,e.mode&1&&oh(e,t.child,null,o),e.child.memoizedState=oS(o),e.memoizedState=sS,s);if(!(e.mode&1))return v0(t,e,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,s=Error(re(419)),n=fx(s,n,void 0),v0(t,e,o,n)}if(a=(o&t.childLanes)!==0,Gn||a){if(n=_r,n!==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&(n.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,oa(t,i),Ns(n,t,i,-1))}return tk(),n=fx(Error(re(421))),v0(t,e,o,n)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=w6.bind(null,t),i._reactRetry=e,null):(t=s.treeContext,ui=El(i.nextSibling),pi=e,Kt=!0,Ss=null,t!==null&&(Bi[Li++]=Qo,Bi[Li++]=Xo,Bi[Li++]=du,Qo=t.id,Xo=t.overflow,du=e),e=XE(e,n.children),e.flags|=4096,e)}function tN(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),$1(t.return,e,r)}function hx(t,e,r,n,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function AO(t,e,r){var n=e.pendingProps,i=n.revealOrder,s=n.tail;if(yn(t,e,n.children,r),n=Xt.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&tN(t,r,e);else if(t.tag===19)tN(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(Mt(Xt,n),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(r=e.child,i=null;r!==null;)t=r.alternate,t!==null&&dy(t)===null&&(i=r),r=r.sibling;r=i,r===null?(i=e.child,e.child=null):(i=r.sibling,r.sibling=null),hx(e,!1,i,r,s);break;case"backwards":for(r=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&dy(t)===null){e.child=i;break}t=i.sibling,i.sibling=r,r=i,i=t}hx(e,!0,r,null,s);break;case"together":hx(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function vv(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function aa(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),hu|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(re(153));if(e.child!==null){for(t=e.child,r=Nl(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Nl(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function a6(t,e,r){switch(e.tag){case 3:EO(e),sh();break;case 5:JF(e);break;case 1:Xn(e.type)&&sy(e);break;case 4:_E(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,i=e.memoizedProps.value;Mt(ly,n._currentValue),n._currentValue=i;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(Mt(Xt,Xt.current&1),e.flags|=128,null):r&e.child.childLanes?kO(t,e,r):(Mt(Xt,Xt.current&1),t=aa(t,e,r),t!==null?t.sibling:null);Mt(Xt,Xt.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return AO(t,e,r);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Mt(Xt,Xt.current),n)break;return null;case 22:case 23:return e.lanes=0,xO(t,e,r)}return aa(t,e,r)}var CO,aS,NO,PO;CO=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};aS=function(){};NO=function(t,e,r,n){var i=t.memoizedProps;if(i!==n){t=e.stateNode,Ac(fo.current);var s=null;
vendor: 4,115 bytes, line 40
40switch(r){case"input":i=T1(t,i),n=T1(t,n),s=[];break;case"select":i=$t({},i,{value:void 0}),n=$t({},n,{value:void 0}),s=[];break;case"textarea":i=F1(t,i),n=F1(t,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=ny)}D1(r,n);var o;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(mg.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in n){var l=n[c];if(a=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(s||(s=[]),s.push(c,r)),r=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"&&(mg.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ut("scroll",t),s||a===l||(s=[])):(s=s||[]).push(c,l))}r&&(s=s||[]).push("style",r);var c=s;(e.updateQueue=c)&&(e.flags|=4)}};PO=function(t,e,r,n){r!==n&&(e.flags|=4)};function sp(t,e){if(!Kt)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function tn(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function l6(t,e,r){var n=e.pendingProps;switch(DE(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tn(e),null;case 1:return Xn(e.type)&&iy(),tn(e),null;case 3:return n=e.stateNode,ah(),_t(Qn),_t(un),HE(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(g0(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Ss!==null&&(gS(Ss),Ss=null))),aS(t,e),tn(e),null;case 5:VE(e);var i=Ac(Pg.current);if(r=e.type,t!==null&&e.stateNode!=null)NO(t,e,r,n,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(re(166));return tn(e),null}if(t=Ac(fo.current),g0(e)){n=e.stateNode,r=e.type;var s=e.memoizedProps;switch(n[no]=e,n[Cg]=s,t=(e.mode&1)!==0,r){case"dialog":Ut("cancel",n),Ut("close",n);break;case"iframe":case"object":case"embed":Ut("load",n);break;case"video":case"audio":for(i=0;i<Tp.length;i++)Ut(Tp[i],n);break;case"source":Ut("error",n);break;case"img":case"image":case"link":Ut("error",n),Ut("load",n);break;case"details":Ut("toggle",n);break;case"input":uC(n,s),Ut("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},Ut("invalid",n);break;case"textarea":fC(n,s),Ut("invalid",n)}D1(r,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?n.textContent!==a&&(s.suppressHydrationWarning!==!0&&p0(n.textContent,a,t),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&p0(n.textContent,a,t),i=["children",""+a]):mg.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Ut("scroll",n)}switch(r){case"input":o0(n),dC(n,s,!0);break;case"textarea":o0(n),hC(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=ny)}n=i,e.updateQueue=n,n!==null&&(e.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=rF(r)),t==="http://www.w3.org/1999/xhtml"?r==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>
40",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[no]=e,t[Cg]=n,CO(t,e,!1,!1),e.stateNode=t;e:{switch(o=I1(r,n),r){case"dialog":Ut("cancel",t),Ut("close",t),i=n;break;case"iframe":case"object":case"embed":Ut("load",t),i=n;break;case"video":case"audio":for(i=0;i<Tp.length;i++)Ut(Tp[i],t);i=n;break;case"source":Ut("error",t),i=n;break;case"img":case"image":case"link":Ut("error",t),Ut("load",t),i=n;break;case"details":Ut("toggle",t),i=n;break;case"input":uC(t,n),i=T1(t,n),Ut("invalid",t);break;case"option":i=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},i=$t({},n,{value:void 0}),Ut("invalid",t);break;case"textarea":fC(t,n),i=F1(t,n),Ut("invalid",t);break;default:i=n}D1(r,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?sF(t,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&nF(t,l)):s==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&vg(t,l):typeof l=="number"&&vg(t,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(mg.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Ut("scroll",t):l!=null&&wE(t,s,l,o))}switch(r){case"input":o0(t),dC(t,n,!1);break;case"textarea":o0(t),hC(t);break;case"option":n.value!=null&&t.setAttribute("value",""+Dl(n.value));break;case"select":t.multiple=!!n.multiple,s=n.value,s!=null?Ud(t,!!n.multiple,s,!1):n.defaultValue!=null&&Ud(t,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=ny)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return tn(e),null;case 6:if(t&&e.stateNode!=null)PO(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(re(166));if(r=Ac(Pg.current),Ac(fo.current),g0(e)){if(n=e.stateNode,r=e.memoizedProps,n[no]=e,(s=n.nodeValue!==r)&&(t=pi,t!==null))switch(t.tag){case 3:p0(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&p0(n.nodeValue,r,(t.mode&1)!==0)}s&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[no]=e,e.stateNode=n}return tn(e),null;case 13:if(_t(Xt),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Kt&&ui!==null&&e.mode&1&&!(e.flags&128))KF(),sh(),e.flags|=98560,s=!1;else if(s=g0(e),n!==null&&n.dehydrated!==null){if(t===null){if(!s)throw Error(re(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(re(317));s[no]=e}else sh(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;tn(e),s=!1}else Ss!==null&&(gS(Ss),Ss=null),s=!0;if(!s)return e.flags&65536?e:null}return e.flags&128?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,e.mode&1&&(t===null||Xt.current&1?Rr===0&&(Rr=3):tk())),e.updateQueue!==null&&(e.flags|=4),tn(e),null);case 4:return ah(),aS(t,e),t===null&&kg(e.stateNode.containerInfo),tn(e),null;case 10:return LE(e.type._context),tn(e),null;case 17:return Xn(e.type)&&iy(),tn(e),null;case 19:if(_t(Xt),s=e.memoizedState,s===null)return tn(e),null;if(n=(e.flags&128)!==0,o=s.rendering,o===null)if(n)sp(s,!1);else{if(Rr!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=dy(t),o!==null){for(e.flags|=128,sp(s,!1),n=o.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;r!==null;)s=r,t=n,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=t,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,t=o.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return Mt(Xt,Xt.current&1|2),e.child}t=t.sibling}s.tail!==null&&ur()>ch&&(e.flags|=128,n=!0,sp(s,!1),e.lanes=4194304)}else{if(!n)if(t=dy(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),sp(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Kt)return tn(e),null}else 2*ur()-s.renderingStartTime>ch&&r!==1073741824&&(e.flags|=128,n=!0,sp(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(r=s.last,r!==null?r.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=ur(),e.sibling=null,r=Xt.current,Mt(Xt,n?r&1|2:r&1),e):(tn(e),null);case 22:case 23:return ek(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?li&1073741824&&(tn(e),e.subtreeFlags&6&&(e.flags|=8192)):tn(e),null;case 24:return null;case 25:return null}throw Error(re(156,e.tag))}function c6(t,e){switch(DE(e),e.tag){case 1:return Xn(e.type)&&iy(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;
vendor: 23,647 bytes, line 40
40case 3:return ah(),_t(Qn),_t(un),HE(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return VE(e),null;case 13:if(_t(Xt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(re(340));sh()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return _t(Xt),null;case 4:return ah(),null;case 10:return LE(e.type._context),null;case 22:case 23:return ek(),null;case 24:return null;default:return null}}var y0=!1,ln=!1,u6=typeof WeakSet=="function"?WeakSet:Set,le=null;function Nd(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){or(t,e,n)}else r.current=null}function lS(t,e,r){try{r()}catch(n){or(t,e,n)}}var rN=!1;function d6(t,e){if(W1=ey,t=OF(),FE(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,a=-1,l=-1,c=0,u=0,d=t,h=null;t:for(;;){for(var p;d!==r||i!==0&&d.nodeType!==3||(a=o+i),d!==s||n!==0&&d.nodeType!==3||(l=o+n),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===t)break t;if(h===r&&++c===i&&(a=o),h===s&&++u===n&&(l=o),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(K1={focusedElem:t,selectionRange:r},ey=!1,le=e;le!==null;)if(e=le,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,le=t;else for(;le!==null;){e=le;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,y=m.memoizedState,v=e.stateNode,w=v.getSnapshotBeforeUpdate(e.elementType===e.type?g:ds(e.type,g),y);v.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(E){or(e,e.return,E)}if(t=e.sibling,t!==null){t.return=e.return,le=t;break}le=e.return}return m=rN,rN=!1,m}function Jp(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&lS(e,r,s)}i=i.next}while(i!==n)}}function Ew(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function cS(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function TO(t){var e=t.alternate;e!==null&&(t.alternate=null,TO(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[no],delete e[Cg],delete e[X1],delete e[qU],delete e[QU])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function RO(t){return t.tag===5||t.tag===3||t.tag===4}function nN(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||RO(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function uS(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=ny));else if(n!==4&&(t=t.child,t!==null))for(uS(t,e,r),t=t.sibling;t!==null;)uS(t,e,r),t=t.sibling}function dS(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(dS(t,e,r),t=t.sibling;t!==null;)dS(t,e,r),t=t.sibling}var Gr=null,ws=!1;function va(t,e,r){for(r=r.child;r!==null;)jO(t,e,r),r=r.sibling}function jO(t,e,r){if(uo&&typeof uo.onCommitFiberUnmount=="function")try{uo.onCommitFiberUnmount(gw,r)}catch{}switch(r.tag){case 5:ln||Nd(r,e);case 6:var n=Gr,i=ws;Gr=null,va(t,e,r),Gr=n,ws=i,Gr!==null&&(ws?(t=Gr,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Gr.removeChild(r.stateNode));break;case 18:Gr!==null&&(ws?(t=Gr,r=r.stateNode,t.nodeType===8?ox(t.parentNode,r):t.nodeType===1&&ox(t,r),xg(t)):ox(Gr,r.stateNode));break;case 4:n=Gr,i=ws,Gr=r.stateNode.containerInfo,ws=!0,va(t,e,r),Gr=n,ws=i;break;case 0:case 11:case 14:case 15:if(!ln&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&lS(r,e,o),i=i.next}while(i!==n)}va(t,e,r);break;case 1:if(!ln&&(Nd(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){or(r,e,a)}va(t,e,r);break;case 21:va(t,e,r);break;case 22:r.mode&1?(ln=(n=ln)||r.memoizedState!==null,va(t,e,r),ln=n):va(t,e,r);break;default:va(t,e,r)}}function iN(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new u6),e.forEach(function(n){var i=b6.bind(null,t,n);r.has(n)||(r.add(n),n.then(i,i))})}}function os(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var s=t,o=e,a=o;e:for(;a!==null;){switch(a.tag){case 5:Gr=a.stateNode,ws=!1;break e;case 3:Gr=a.stateNode.containerInfo,ws=!0;break e;case 4:Gr=a.stateNode.containerInfo,ws=!0;break e}a=a.return}if(Gr===null)throw Error(re(160));jO(s,o,i),Gr=null,ws=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){or(i,e,c)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)FO(e,t),e=e.sibling}function FO(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(os(e,t),Ls(t),n&4){try{Jp(3,t,t.return),Ew(3,t)}catch(g){or(t,t.return,g)}try{Jp(5,t,t.return)}catch(g){or(t,t.return,g)}}break;case 1:os(e,t),Ls(t),n&512&&r!==null&&Nd(r,r.return);break;case 5:if(os(e,t),Ls(t),n&512&&r!==null&&Nd(r,r.return),t.flags&32){var i=t.stateNode;try{vg(i,"")}catch(g){or(t,t.return,g)}}if(n&4&&(i=t.stateNode,i!=null)){var s=t.memoizedProps,o=r!==null?r.memoizedProps:s,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&eF(i,s),I1(a,o);var c=I1(a,s);for(o=0;o<l.length;o+=2){var u=l[o],d=l[o+1];u==="style"?sF(i,d):u==="dangerouslySetInnerHTML"?nF(i,d):u==="children"?vg(i,d):wE(i,u,d,c)}switch(a){case"input":R1(i,s);break;case"textarea":tF(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var p=s.value;p!=null?Ud(i,!!s.multiple,p,!1):h!==!!s.multiple&&(s.defaultValue!=null?Ud(i,!!s.multiple,s.defaultValue,!0):Ud(i,!!s.multiple,s.multiple?[]:"",!1))}i[Cg]=s}catch(g){or(t,t.return,g)}}break;case 6:if(os(e,t),Ls(t),n&4){if(t.stateNode===null)throw Error(re(162));i=t.stateNode,s=t.memoizedProps;try{i.nodeValue=s}catch(g){or(t,t.return,g)}}break;case 3:if(os(e,t),Ls(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{xg(e.containerInfo)}catch(g){or(t,t.return,g)}break;case 4:os(e,t),Ls(t);break;case 13:os(e,t),Ls(t),i=t.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(ZE=ur())),n&4&&iN(t);break;case 22:if(u=r!==null&&r.memoizedState!==null,t.mode&1?(ln=(c=ln)||u,os(e,t),ln=c):os(e,t),Ls(t),n&8192){if(c=t.memoizedState!==null,(t.stateNode.isHidden=c)&&!u&&t.mode&1)for(le=t,u=t.child;u!==null;){for(d=le=u;le!==null;){switch(h=le,p=h.child,h.tag){case 0:case 11:case 14:case 15:Jp(4,h,h.return);break;case 1:Nd(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){n=h,r=h.return;try{e=n,m.props=e.memoizedProps,m.state=e.memoizedState,m.componentWillUnmount()}catch(g){or(n,r,g)}}break;case 5:Nd(h,h.return);break;case 22:if(h.memoizedState!==null){oN(d);continue}}p!==null?(p.return=h,le=p):oN(d)}u=u.sibling}e:for(u=null,d=t;;){if(d.tag===5){if(u===null){u=d;try{i=d.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=iF("display",o))}catch(g){or(t,t.return,g)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(g){or(t,t.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:os(e,t),Ls(t),n&4&&iN(t);break;case 21:break;default:os(e,t),Ls(t)}}function Ls(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(RO(r)){var n=r;break e}r=r.return}throw Error(re(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(vg(i,""),n.flags&=-33);var s=nN(t);dS(t,s,i);break;case 3:case 4:var o=n.stateNode.containerInfo,a=nN(t);uS(t,a,o);break;default:throw Error(re(161))}}catch(l){or(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function f6(t,e,r){le=t,OO(t)}function OO(t,e,r){for(var n=(t.mode&1)!==0;le!==null;){var i=le,s=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||y0;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||ln;a=y0;var c=ln;if(y0=o,(ln=l)&&!c)for(le=i;le!==null;)o=le,l=o.child,o.tag===22&&o.memoizedState!==null?aN(i):l!==null?(l.return=o,le=l):aN(i);for(;s!==null;)le=s,OO(s),s=s.sibling;le=i,y0=a,ln=c}sN(t)}else i.subtreeFlags&8772&&s!==null?(s.return=i,le=s):sN(t)}}function sN(t){for(;le!==null;){var e=le;if(e.flags&8772){var r=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:ln||Ew(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!ln)if(r===null)n.componentDidMount();else{var i=e.elementType===e.type?r.memoizedProps:ds(e.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=e.updateQueue;s!==null&&HC(e,s,n);break;case 3:var o=e.updateQueue;if(o!==null){if(r=null,e.child!==null)switch(e.child.tag){case 5:r=e.child.stateNode;break;case 1:r=e.child.stateNode}HC(e,o,r)}break;case 5:var a=e.stateNode;if(r===null&&e.flags&4){r=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var c=e.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&xg(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(re(163))}ln||e.flags&512&&cS(e)}catch(h){or(e,e.return,h)}}if(e===t){le=null;break}if(r=e.sibling,r!==null){r.return=e.return,le=r;break}le=e.return}}function oN(t){for(;le!==null;){var e=le;if(e===t){le=null;break}var r=e.sibling;if(r!==null){r.return=e.return,le=r;break}le=e.return}}function aN(t){for(;le!==null;){var e=le;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{Ew(4,e)}catch(l){or(e,r,l)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var i=e.return;try{n.componentDidMount()}catch(l){or(e,i,l)}}var s=e.return;try{cS(e)}catch(l){or(e,s,l)}break;case 5:var o=e.return;try{cS(e)}catch(l){or(e,o,l)}}}catch(l){or(e,e.return,l)}if(e===t){le=null;break}var a=e.sibling;if(a!==null){a.return=e.return,le=a;break}le=e.return}}var h6=Math.ceil,py=ua.ReactCurrentDispatcher,YE=ua.ReactCurrentOwner,Gi=ua.ReactCurrentBatchConfig,dt=0,_r=null,br=null,Yr=0,li=0,Pd=Wl(0),Rr=0,Fg=null,hu=0,kw=0,JE=0,Zp=null,_n=null,ZE=0,ch=1/0,Co=null,gy=!1,fS=null,Al=null,w0=!1,gl=null,my=0,$p=0,hS=null,yv=-1,wv=0;function Pn(){return dt&6?ur():yv!==-1?yv:yv=ur()}function Cl(t){return t.mode&1?dt&2&&Yr!==0?Yr&-Yr:YU.transition!==null?(wv===0&&(wv=vF()),wv):(t=Pt,t!==0||(t=window.event,t=t===void 0?16:kF(t.type)),t):1}function Ns(t,e,r,n){if(50<$p)throw $p=0,hS=null,Error(re(185));Em(t,r,n),(!(dt&2)||t!==_r)&&(t===_r&&(!(dt&2)&&(kw|=r),Rr===4&&_a(t,Yr)),Yn(t,n),r===1&&dt===0&&!(e.mode&1)&&(ch=ur()+500,bw&&Kl()))}function Yn(t,e){var r=t.callbackNode;YL(t,e);var n=$v(t,t===_r?Yr:0);if(n===0)r!==null&&mC(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&mC(r),e===1)t.tag===0?XU(lN.bind(null,t)):HF(lN.bind(null,t)),WU(function(){!(dt&6)&&Kl()}),r=null;else{switch(yF(n)){case 1:r=kE;break;case 4:r=gF;break;case 16:r=Zv;break;case 536870912:r=mF;break;default:r=Zv}r=_O(r,DO.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function DO(t,e){if(yv=-1,wv=0,dt&6)throw Error(re(327));var r=t.callbackNode;if(Gd()&&t.callbackNode!==r)return null;var n=$v(t,t===_r?Yr:0);if(n===0)return null;if(n&30||n&t.expiredLanes||e)e=vy(t,n);else{e=n;var i=dt;dt|=2;var s=MO();(_r!==t||Yr!==e)&&(Co=null,ch=ur()+500,ou(t,e));do try{m6();break}catch(a){IO(t,a)}while(!0);BE(),py.current=s,dt=i,br!==null?e=0:(_r=null,Yr=0,e=Rr)}if(e!==0){if(e===2&&(i=z1(t),i!==0&&(n=i,e=pS(t,i))),e===1)throw r=Fg,ou(t,0),_a(t,n),Yn(t,ur()),r;if(e===6)_a(t,n);else{if(i=t.current.alternate,!(n&30)&&!p6(i)&&(e=vy(t,n),e===2&&(s=z1(t),s!==0&&(n=s,e=pS(t,s))),e===1))throw r=Fg,ou(t,0),_a(t,n),Yn(t,ur()),r;switch(t.finishedWork=i,t.finishedLanes=n,e){case 0:case 1:throw Error(re(345));case 2:cc(t,_n,Co);break;case 3:if(_a(t,n),(n&130023424)===n&&(e=ZE+500-ur(),10<e)){if($v(t,0)!==0)break;if(i=t.suspendedLanes,(i&n)!==n){Pn(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=Q1(cc.bind(null,t,_n,Co),e);break}cc(t,_n,Co);break;case 4:if(_a(t,n),(n&4194240)===n)break;for(e=t.eventTimes,i=-1;0<n;){var o=31-Cs(n);s=1<<o,o=e[o],o>i&&(i=o),n&=~s}if(n=i,n=ur()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*h6(n/1960))-n,10<n){t.timeoutHandle=Q1(cc.bind(null,t,_n,Co),n);break}cc(t,_n,Co);break;case 5:cc(t,_n,Co);break;default:throw Error(re(329))}}}return Yn(t,ur()),t.callbackNode===r?DO.bind(null,t):null}function pS(t,e){var r=Zp;return t.current.memoizedState.isDehydrated&&(ou(t,e).flags|=256),t=vy(t,e),t!==2&&(e=_n,_n=r,e!==null&&gS(e)),t}function gS(t){_n===null?_n=t:_n.push.apply(_n,t)}function p6(t){for(var e=t;;){if(e.flags&16384){var r=e.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!Ts(s(),i))return!1}catch{return!1}}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function _a(t,e){for(e&=~JE,e&=~kw,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-Cs(e),n=1<<r;t[r]=-1,e&=~n}}function lN(t){if(dt&6)throw Error(re(327));Gd();var e=$v(t,0);if(!(e&1))return Yn(t,ur()),null;var r=vy(t,e);if(t.tag!==0&&r===2){var n=z1(t);n!==0&&(e=n,r=pS(t,n))}if(r===1)throw r=Fg,ou(t,0),_a(t,e),Yn(t,ur()),r;if(r===6)throw Error(re(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,cc(t,_n,Co),Yn(t,ur()),null}function $E(t,e){var r=dt;dt|=1;try{return t(e)}finally{dt=r,dt===0&&(ch=ur()+500,bw&&Kl())}}function pu(t){gl!==null&&gl.tag===0&&!(dt&6)&&Gd();var e=dt;dt|=1;var r=Gi.transition,n=Pt;try{if(Gi.transition=null,Pt=1,t)return t()}finally{Pt=n,Gi.transition=r,dt=e,!(dt&6)&&Kl()}}function ek(){li=Pd.current,_t(Pd)}function ou(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,GU(r)),br!==null)for(r=br.return;r!==null;){var n=r;switch(DE(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&iy();break;case 3:ah(),_t(Qn),_t(un),HE();break;case 5:VE(n);break;case 4:ah();break;case 13:_t(Xt);break;case 19:_t(Xt);break;case 10:LE(n.type._context);break;case 22:case 23:ek()}r=r.return}if(_r=t,br=t=Nl(t.current,null),Yr=li=e,Rr=0,Fg=null,JE=kw=hu=0,_n=Zp=null,kc!==null){for(e=0;e<kc.length;e++)if(r=kc[e],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var o=s.next;s.next=i,n.next=o}r.pending=n}kc=null}return t}function IO(t,e){do{var r=br;try{if(BE(),gv.current=hy,fy){for(var n=Zt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}fy=!1}if(fu=0,Br=Nr=Zt=null,Yp=!1,Tg=0,YE.current=null,r===null||r.return===null){Rr=1,Fg=e,br=null;break}e:{var s=t,o=r.return,a=r,l=e;if(e=Yr,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=XC(o);if(p!==null){p.flags&=-257,YC(p,o,a,s,e),p.mode&1&&QC(s,c,e),e=p,l=c;var m=e.updateQueue;if(m===null){var g=new Set;g.add(l),e.updateQueue=g}else m.add(l);break e}else{if(!(e&1)){QC(s,c,e),tk();break e}l=Error(re(426))}}else if(Kt&&a.mode&1){var y=XC(o);if(y!==null){!(y.flags&65536)&&(y.flags|=256),YC(y,o,a,s,e),IE(lh(l,a));break e}}s=l=lh(l,a),Rr!==4&&(Rr=2),Zp===null?Zp=[s]:Zp.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,e&=-e,s.lanes|=e;var v=yO(s,l,e);VC(s,v);break e;case 1:a=l;var w=s.type,b=s.stateNode;if(!(s.flags&128)&&(typeof w.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Al===null||!Al.has(b)))){s.flags|=65536,e&=-e,s.lanes|=e;var E=wO(s,a,e);VC(s,E);break e}}s=s.return}while(s!==null)}LO(r)}catch(A){e=A,br===r&&r!==null&&(br=r=r.return);continue}break}while(!0)}function MO(){var t=py.current;return py.current=hy,t===null?hy:t}function tk(){(Rr===0||Rr===3||Rr===2)&&(Rr=4),_r===null||!(hu&268435455)&&!(kw&268435455)||_a(_r,Yr)}function vy(t,e){var r=dt;dt|=2;var n=MO();(_r!==t||Yr!==e)&&(Co=null,ou(t,e));do try{g6();break}catch(i){IO(t,i)}while(!0);if(BE(),dt=r,py.current=n,br!==null)throw Error(re(261));return _r=null,Yr=0,Rr}function g6(){for(;br!==null;)BO(br)}function m6(){for(;br!==null&&!_L();)BO(br)}function BO(t){var e=zO(t.alternate,t,li);t.memoizedProps=t.pendingProps,e===null?LO(t):br=e,YE.current=null}function LO(t){var e=t;do{var r=e.alternate;if(t=e.return,e.flags&32768){if(r=c6(r,e),r!==null){r.flags&=32767,br=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Rr=6,br=null;return}}else if(r=l6(r,e,li),r!==null){br=r;return}if(e=e.sibling,e!==null){br=e;return}br=e=t}while(e!==null);Rr===0&&(Rr=5)}function cc(t,e,r){var n=Pt,i=Gi.transition;try{Gi.transition=null,Pt=1,v6(t,e,r,n)}finally{Gi.transition=i,Pt=n}return null}function v6(t,e,r,n){do Gd();while(gl!==null);if(dt&6)throw Error(re(327));r=t.finishedWork;var i=t.finishedLanes;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(re(177));t.callbackNode=null,t.callbackPriority=0;var s=r.lanes|r.childLanes;if(JL(t,s),t===_r&&(br=_r=null,Yr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||w0||(w0=!0,_O(Zv,function(){return Gd(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=Gi.transition,Gi.transition=null;var o=Pt;Pt=1;var a=dt;dt|=4,YE.current=null,d6(t,r),FO(r,t),BU(K1),ey=!!W1,K1=W1=null,t.current=r,f6(r),VL(),dt=a,Pt=o,Gi.transition=s}else t.current=r;if(w0&&(w0=!1,gl=t,my=i),s=t.pendingLanes,s===0&&(Al=null),WL(r.stateNode),Yn(t,ur()),e!==null)for(n=t.onRecoverableError,r=0;r<e.length;r++)i=e[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(gy)throw gy=!1,t=fS,fS=null,t;return my&1&&t.tag!==0&&Gd(),s=t.pendingLanes,s&1?t===hS?$p++:($p=0,hS=t):$p=0,Kl(),null}function Gd(){if(gl!==null){var t=yF(my),e=Gi.transition,r=Pt;try{if(Gi.transition=null,Pt=16>t?16:t,gl===null)var n=!1;else{if(t=gl,gl=null,my=0,dt&6)throw Error(re(331));var i=dt;for(dt|=4,le=t.current;le!==null;){var s=le,o=s.child;if(le.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(le=c;le!==null;){var u=le;switch(u.tag){case 0:case 11:case 15:Jp(8,u,s)}var d=u.child;if(d!==null)d.return=u,le=d;else for(;le!==null;){u=le;var h=u.sibling,p=u.return;if(TO(u),u===c){le=null;break}if(h!==null){h.return=p,le=h;break}le=p}}}var m=s.alternate;if(m!==null){var g=m.child;if(g!==null){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(g!==null)}}le=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,le=o;else e:for(;le!==null;){if(s=le,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Jp(9,s,s.return)}var v=s.sibling;if(v!==null){v.return=s.return,le=v;break e}le=s.return}}var w=t.current;for(le=w;le!==null;){o=le;var b=o.child;if(o.subtreeFlags&2064&&b!==null)b.return=o,le=b;else e:for(o=w;le!==null;){if(a=le,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ew(9,a)}}catch(A){or(a,a.return,A)}if(a===o){le=null;break e}var E=a.sibling;if(E!==null){E.return=a.return,le=E;break e}le=a.return}}if(dt=i,Kl(),uo&&typeof uo.onPostCommitFiberRoot=="function")try{uo.onPostCommitFiberRoot(gw,t)}catch{}n=!0}return n}finally{Pt=r,Gi.transition=e}}return!1}function cN(t,e,r){e=lh(r,e),e=yO(t,e,1),t=kl(t,e,1),e=Pn(),t!==null&&(Em(t,1,e),Yn(t,e))}function or(t,e,r){if(t.tag===3)cN(t,t,r);else for(;e!==null;){if(e.tag===3){cN(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Al===null||!Al.has(n))){t=lh(r,t),t=wO(e,t,1),e=kl(e,t,1),t=Pn(),e!==null&&(Em(e,1,t),Yn(e,t));break}}e=e.return}}function y6(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=Pn(),t.pingedLanes|=t.suspendedLanes&r,_r===t&&(Yr&r)===r&&(Rr===4||Rr===3&&(Yr&130023424)===Yr&&500>ur()-ZE?ou(t,0):JE|=r),Yn(t,e)}function UO(t,e){e===0&&(t.mode&1?(e=c0,c0<<=1,!(c0&130023424)&&(c0=4194304)):e=1);var r=Pn();t=oa(t,e),t!==null&&(Em(t,e,r),Yn(t,r))}function w6(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),UO(t,r)}function b6(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(re(314))}n!==null&&n.delete(e),UO(t,r)}var zO;zO=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||Qn.current)Gn=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return Gn=!1,a6(t,e,r);Gn=!!(t.flags&131072)}else Gn=!1,Kt&&e.flags&1048576&&GF(e,ay,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;vv(t,e),t=e.pendingProps;var i=ih(e,un.current);Hd(e,r),i=WE(null,e,n,t,i,r);var s=KE();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Xn(n)?(s=!0,sy(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zE(e),i.updater=Sw,e.stateNode=i,i._reactInternals=e,tS(e,n,t,r),e=iS(null,e,n,!0,s,r)):(e.tag=0,Kt&&s&&OE(e),yn(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(vv(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=S6(n),t=ds(n,t),i){case 0:e=nS(null,e,n,t,r);break e;case 1:e=$C(null,e,n,t,r);break e;case 11:e=JC(null,e,n,t,r);break e;case 14:e=ZC(null,e,n,ds(n.type,t),r);break e}throw Error(re(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:ds(n,i),nS(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:ds(n,i),$C(t,e,n,i,r);case 3:e:{if(EO(e),t===null)throw Error(re(387));n=e.pendingProps,s=e.memoizedState,i=s.element,YF(t,e),uy(e,n,null,r);var o=e.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=lh(Error(re(423)),e),e=eN(t,e,n,r,i);break e}else if(n!==i){i=lh(Error(re(424)),e),e=eN(t,e,n,r,i);break e}
vendor: 5,364 bytes, line 40
40else for(ui=El(e.stateNode.containerInfo.firstChild),pi=e,Kt=!0,Ss=null,r=QF(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(sh(),n===i){e=aa(t,e,r);break e}yn(t,e,n,r)}e=e.child}return e;case 5:return JF(e),t===null&&Z1(e),n=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,q1(n,i)?o=null:s!==null&&q1(n,s)&&(e.flags|=32),SO(t,e),yn(t,e,o,r),e.child;case 6:return t===null&&Z1(e),null;case 13:return kO(t,e,r);case 4:return _E(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=oh(e,null,n,r):yn(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:ds(n,i),JC(t,e,n,i,r);case 7:return yn(t,e,e.pendingProps,r),e.child;case 8:return yn(t,e,e.pendingProps.children,r),e.child;case 12:return yn(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,Mt(ly,n._currentValue),n._currentValue=o,s!==null)if(Ts(s.value,o)){if(s.children===i.children&&!Qn.current){e=aa(t,e,r);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(s.tag===1){l=Jo(-1,r&-r),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),$1(s.return,r,e),a.lanes|=r;break}l=l.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(re(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),$1(o,r,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}yn(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,Hd(e,r),i=Qi(i),n=n(i),e.flags|=1,yn(t,e,n,r),e.child;case 14:return n=e.type,i=ds(n,e.pendingProps),i=ds(n.type,i),ZC(t,e,n,i,r);case 15:return bO(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:ds(n,i),vv(t,e),e.tag=1,Xn(n)?(t=!0,sy(e)):t=!1,Hd(e,r),vO(e,n,i),tS(e,n,i,r),iS(null,e,n,!0,t,r);case 19:return AO(t,e,r);case 22:return xO(t,e,r)}throw Error(re(156,e.tag))};function _O(t,e){return pF(t,e)}function x6(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _i(t,e,r,n){return new x6(t,e,r,n)}function rk(t){return t=t.prototype,!(!t||!t.isReactComponent)}function S6(t){if(typeof t=="function")return rk(t)?1:0;if(t!=null){if(t=t.$$typeof,t===xE)return 11;if(t===SE)return 14}return 2}function Nl(t,e){var r=t.alternate;return r===null?(r=_i(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function bv(t,e,r,n,i,s){var o=2;if(n=t,typeof t=="function")rk(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case yd:return au(r.children,i,s,e);case bE:o=8,i|=8;break;case A1:return t=_i(12,r,e,i|2),t.elementType=A1,t.lanes=s,t;case C1:return t=_i(13,r,e,i),t.elementType=C1,t.lanes=s,t;case N1:return t=_i(19,r,e,i),t.elementType=N1,t.lanes=s,t;case Jj:return Aw(r,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Xj:o=10;break e;case Yj:o=9;break e;case xE:o=11;break e;case SE:o=14;break e;case Ia:o=16,n=null;break e}throw Error(re(130,t==null?t:typeof t,""))}return e=_i(o,r,e,i),e.elementType=t,e.type=n,e.lanes=s,e}function au(t,e,r,n){return t=_i(7,t,n,e),t.lanes=r,t}function Aw(t,e,r,n){return t=_i(22,t,n,e),t.elementType=Jj,t.lanes=r,t.stateNode={isHidden:!1},t}function px(t,e,r){return t=_i(6,t,null,e),t.lanes=r,t}function gx(t,e,r){return e=_i(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function E6(t,e,r,n,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xb(0),this.expirationTimes=Xb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xb(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nk(t,e,r,n,i,s,o,a,l){return t=new E6(t,e,r,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=_i(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},zE(s),t}function k6(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;
vendor: 4,595 bytes, line 40
40return{$$typeof:vd,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function VO(t){if(!t)return Il;t=t._reactInternals;e:{if(Du(t)!==t||t.tag!==1)throw Error(re(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Xn(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(re(171))}if(t.tag===1){var r=t.type;if(Xn(r))return VF(t,r,e)}return e}function HO(t,e,r,n,i,s,o,a,l){return t=nk(r,n,!0,t,i,s,o,a,l),t.context=VO(null),r=t.current,n=Pn(),i=Cl(r),s=Jo(n,i),s.callback=e??null,kl(r,s,i),t.current.lanes=i,Em(t,i,n),Yn(t,n),t}function Cw(t,e,r,n){var i=e.current,s=Pn(),o=Cl(i);return r=VO(r),e.context===null?e.context=r:e.pendingContext=r,e=Jo(s,o),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=kl(i,e,o),t!==null&&(Ns(t,i,o,s),pv(t,i,o)),o}function yy(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function uN(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function ik(t,e){uN(t,e),(t=t.alternate)&&uN(t,e)}function A6(){return null}var GO=typeof reportError=="function"?reportError:function(t){console.error(t)};function sk(t){this._internalRoot=t}Nw.prototype.render=sk.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(re(409));Cw(t,e,null,null)};Nw.prototype.unmount=sk.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;pu(function(){Cw(null,t,null,null)}),e[sa]=null}};function Nw(t){this._internalRoot=t}Nw.prototype.unstable_scheduleHydration=function(t){if(t){var e=xF();t={blockedOn:null,target:t,priority:e};for(var r=0;r<za.length&&e!==0&&e<za[r].priority;r++);za.splice(r,0,t),r===0&&EF(t)}};function ok(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Pw(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function dN(){}function C6(t,e,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var c=yy(o);s.call(c)}}var o=HO(e,n,t,0,null,!1,!1,"",dN);return t._reactRootContainer=o,t[sa]=o.current,kg(t.nodeType===8?t.parentNode:t),pu(),o}for(;i=t.lastChild;)t.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var c=yy(l);a.call(c)}}var l=nk(t,0,!1,null,null,!1,!1,"",dN);return t._reactRootContainer=l,t[sa]=l.current,kg(t.nodeType===8?t.parentNode:t),pu(function(){Cw(e,l,r,n)}),l}function Tw(t,e,r,n,i){var s=r._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=yy(o);a.call(l)}}Cw(e,o,t,i)}else o=C6(r,e,t,i,n);return yy(o)}wF=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=Pp(e.pendingLanes);r!==0&&(AE(e,r|1),Yn(e,ur()),!(dt&6)&&(ch=ur()+500,Kl()))}break;case 13:pu(function(){var n=oa(t,1);if(n!==null){var i=Pn();Ns(n,t,1,i)}}),ik(t,1)}};CE=function(t){if(t.tag===13){var e=oa(t,134217728);if(e!==null){var r=Pn();Ns(e,t,134217728,r)}ik(t,134217728)}};bF=function(t){if(t.tag===13){var e=Cl(t),r=oa(t,e);if(r!==null){var n=Pn();Ns(r,t,e,n)}ik(t,e)}};xF=function(){return Pt};SF=function(t,e){var r=Pt;try{return Pt=t,e()}finally{Pt=r}};B1=function(t,e,r){switch(e){case"input":if(R1(t,r),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var i=ww(n);if(!i)throw Error(re(90));$j(n),R1(n,i)}}}break;case"textarea":tF(t,r);break;case"select":e=r.value,e!=null&&Ud(t,!!r.multiple,e,!1)}};lF=$E;cF=pu;var N6={usingClientEntryPoint:!1,Events:[Am,Sd,ww,oF,aF,$E]},op={findFiberByHostInstance:Ec,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},P6={bundleType:op.bundleType,version:op.version,rendererPackageName:op.rendererPackageName,rendererConfig:op.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=fF(t),t===null?null:t.stateNode},findFiberByHostInstance:op.findFiberByHostInstance||A6,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 b0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!b0.isDisabled&&b0.supportsFiber)try{gw=b0.inject(P6),uo=b0}catch{}}wi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N6;wi.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ok(e))throw Error(re(200));return k6(t,e,null,r)};wi.createRoot=function(t,e){if(!ok(t))throw Error(re(299));var r=!1,n="",i=GO;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=nk(t,1,!1,null,null,r,!1,n,i),t[sa]=e.current,kg(t.nodeType===8?t.parentNode:t),new sk(e)};wi.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(re(188)):(t=Object.keys(t).join(","),Error(re(268,t)));return t=fF(e),t=t===null?null:t.stateNode,t};wi.flushSync=function(t){return pu(t)};wi.hydrate=function(t,e,r){if(!Pw(e))throw Error(re(200));return Tw(null,t,e,!0,r)};wi.hydrateRoot=function(t,e,r){if(!ok(t))throw Error(re(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",o=GO;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),e=HO(e,null,t,1,r??null,i,!1,s,o),t[sa]=e.current,kg(t),n)for(t=0;t<n.length;t++)r=n[t],i=r._getVersion,i=i(r._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[r,i]:e.mutableSourceEagerHydrationData.push(r,i);return new Nw(e)};wi.render=function(t,e,r){if(!Pw(e))throw Error(re(200));return Tw(null,t,e,!1,r)};wi.unmountComponentAtNode=function(t){if(!Pw(t))throw Error(re(40));return t._reactRootContainer?(pu(function(){Tw(null,null,t,!1,function(){t._reactRootContainer=null,t[sa]=null})}),!0):!1};wi.unstable_batchedUpdates=$E;wi.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!Pw(r))throw Error(re(200));if(t==null||t._reactInternals===void 0)throw Error(re(38));return Tw(t,e,r,!1,n)};wi.version="18.3.1-next-f1338f8080-20240426";function WO(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(WO)}catch(t){console.error(t)}}WO(),Wj.exports=wi;var Nm=Wj.exports;const Rw=fE(Nm),T6=Fj({__proto__:null,default:Rw},[Nm]);var fN=Nm;E1.createRoot=fN.createRoot,E1.hydrateRoot=fN.hydrateRoot;const R6=1,j6=1e6;let mx=0;function F6(){return mx=(mx+1)%Number.MAX_SAFE_INTEGER,mx.toString()}const vx=new Map,hN=t=>{if(vx.has(t))return;const e=setTimeout(()=>{vx.delete(t),eg({type:"REMOVE_TOAST",toastId:t})},j6);vx.set(t,e)},O6=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,R6)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(r=>r.id===e.toast.id?{...r,...e.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=e;return r?hN(r):t.toasts.forEach(n=>{hN(n.id)}),{...t,toasts:t.toasts.map(n=>
40n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==e.toastId)}}},xv=[];let Sv={toasts:[]};function eg(t){Sv=O6(Sv,t),xv.forEach(e=>{e(Sv)})}function D6({...t}){const e=F6(),r=i=>eg({type:"UPDATE_TOAST",toast:{...i,id:e}}),n=()=>eg({type:"DISMISS_TOAST",toastId:e});return eg({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:i=>{i||n()}}}),{id:e,dismiss:n,update:r}}function Sr(){const[t,e]=x.useState(Sv);return x.useEffect(()=>(xv.push(e),()=>{const r=xv.indexOf(e);r>-1&&xv.splice(r,1)}),[t]),{...t,toast:D6,dismiss:r=>eg({type:"DISMISS_TOAST",toastId:r})}}function Pe(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t==null||t(i),r===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function I6(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function ak(...t){return e=>t.forEach(r=>I6(r,e))}function ar(...t){return x.useCallback(ak(...t),t)}function M6(t,e=[]){let r=[];function n(s,o){const a=x.createContext(o),l=r.length;r=[...r,o];function c(d){const{scope:h,children:p,...m}=d,g=(h==null?void 0:h[t][l])||a,y=x.useMemo(()=>m,Object.values(m));return f.jsx(g.Provider,{value:y,children:p})}function u(d,h){const p=(h==null?void 0:h[t][l])||a,m=x.useContext(p);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,u]}const i=()=>{const s=r.map(o=>x.createContext(o));return function(a){const l=(a==null?void 0:a[t])||s;return x.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[n,B6(i,...e)]}function B6(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=n.reduce((a,{useScope:l,scopeName:c})=>{const d=l(s)[`__scope${c}`];return{...a,...d}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}var uh=x.forwardRef((t,e)=>{const{children:r,...n}=t,i=x.Children.toArray(r),s=i.find(U6);if(s){const o=s.props.children,a=i.map(l=>l===s?x.Children.count(o)>1?x.Children.only(null):x.isValidElement(o)?o.props.children:null:l);return f.jsx(mS,{...n,ref:e,children:x.isValidElement(o)?x.cloneElement(o,void 0,a):null})}return f.jsx(mS,{...n,ref:e,children:r})});uh.displayName="Slot";var mS=x.forwardRef((t,e)=>{const{children:r,...n}=t;if(x.isValidElement(r)){const i=_6(r);return x.cloneElement(r,{...z6(n,r.props),ref:e?ak(e,i):i})}return x.Children.count(r)>1?x.Children.only(null):null});mS.displayName="SlotClone";var L6=({children:t})=>f.jsx(f.Fragment,{children:t});function U6(t){return x.isValidElement(t)&&t.type===L6}function z6(t,e){const r={...e};for(const n in e){const i=t[n],s=e[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...a)=>{s(...a),i(...a)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...t,...r}}function _6(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function Pm(t){const e=t+"CollectionProvider",[r,n]=M6(e),[i,s]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:m,children:g}=p,y=ne.useRef(null),v=ne.useRef(new Map).current;return f.jsx(i,{scope:m,itemMap:v,collectionRef:y,children:g})};o.displayName=e;const a=t+"CollectionSlot",l=ne.forwardRef((p,m)=>{const{scope:g,children:y}=p,v=s(a,g),w=ar(m,v.collectionRef);return f.jsx(uh,{ref:w,children:y})});l.displayName=a;const c=t+"CollectionItemSlot",u="data-radix-collection-item",d=ne.forwardRef((p,m)=>{const{scope:g,children:y,...v}=p,w=ne.useRef(null),b=ar(m,w),E=s(c,g);return ne.useEffect(()=>(E.itemMap.set(w,{ref:w,...v}),()=>void E.itemMap.delete(w))),f.jsx(uh,{[u]:"",ref:b,children:y})});d.displayName=c;function h(p){const m=s(t+"CollectionConsumer",p);return ne.useCallback(()=>{const y=m.collectionRef.current;if(!y)return[];const v=Array.from(y.querySelectorAll(`[${u}]`));return Array.from(m.itemMap.values()).sort((E,A)=>v.indexOf(E.ref.current)-v.indexOf(A.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:o,Slot:l,ItemSlot:d},h,n]}function V6(t,e){const r=x.createContext(e),n=s=>{const{children:o,...a}=s,l=x.useMemo(()=>a,Object.values(a));return f.jsx(r.Provider,{value:l,children:o})};n.displayName=t+"Provider";function i(s){const o=x.useContext(r);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${s}\` must be used within \`${t}\``)}return[n,i]}function mo(t,e=[]){let r=[];function n(s,o){const a=x.createContext(o),l=r.length;r=[...r,o];const c=d=>{var v;const{scope:h,children:p,...m}=d,g=((v=h==null?void 0:h[t])==null?void 0:v[l])||a,y=x.useMemo(()=>m,Object.values(m));return f.jsx(g.Provider,{value:y,children:p})};c.displayName=s+"Provider";function u(d,h){var g;const p=((g=h==null?void 0:h[t])==null?void 0:g[l])||a,m=x.useContext(p);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[c,u]}const i=()=>{const s=r.map(o=>x.createContext(o));return function(a){const l=(a==null?void 0:a[t])||s;return x.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[n,H6(i,...e)]}function H6(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=n.reduce((a,{useScope:l,scopeName:c}
vendor: 5,034 bytes, line 40
40)=>{const d=l(s)[`__scope${c}`];return{...a,...d}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}var G6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ge=G6.reduce((t,e)=>{const r=x.forwardRef((n,i)=>{const{asChild:s,...o}=n,a=s?uh:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...o,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function wy(t,e){t&&Nm.flushSync(()=>t.dispatchEvent(e))}function wr(t){const e=x.useRef(t);return x.useEffect(()=>{e.current=t}),x.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function W6(t,e=globalThis==null?void 0:globalThis.document){const r=wr(t);x.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var K6="DismissableLayer",vS="dismissableLayer.update",q6="dismissableLayer.pointerDownOutside",Q6="dismissableLayer.focusOutside",pN,KO=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jw=x.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=t,c=x.useContext(KO),[u,d]=x.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=x.useState({}),m=ar(e,P=>d(P)),g=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(y),w=u?g.indexOf(u):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,E=w>=v,A=Y6(P=>{const C=P.target,N=[...c.branches].some(R=>R.contains(C));!E||N||(i==null||i(P),o==null||o(P),P.defaultPrevented||a==null||a())},h),k=J6(P=>{const C=P.target;[...c.branches].some(R=>R.contains(C))||(s==null||s(P),o==null||o(P),P.defaultPrevented||a==null||a())},h);return W6(P=>{w===c.layers.size-1&&(n==null||n(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},h),x.useEffect(()=>{if(u)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(pN=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),gN(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=pN)}},[u,h,r,c]),x.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),gN())},[u,c]),x.useEffect(()=>{const P=()=>p({});return document.addEventListener(vS,P),()=>document.removeEventListener(vS,P)},[]),f.jsx(Ge.div,{...l,ref:m,style:{pointerEvents:b?E?"auto":"none":void 0,...t.style},onFocusCapture:Pe(t.onFocusCapture,k.onFocusCapture),onBlurCapture:Pe(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Pe(t.onPointerDownCapture,A.onPointerDownCapture)})});jw.displayName=K6;var X6="DismissableLayerBranch",qO=x.forwardRef((t,e)=>{const r=x.useContext(KO),n=x.useRef(null),i=ar(e,n);return x.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),f.jsx(Ge.div,{...t,ref:i})});qO.displayName=X6;function Y6(t,e=globalThis==null?void 0:globalThis.document){const r=wr(t),n=x.useRef(!1),i=x.useRef(()=>{});return x.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){QO(q6,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=l,e.addEventListener("click",i.current,{once:!0})):l()}else e.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",s),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function J6(t,e=globalThis==null?void 0:globalThis.document){const r=wr(t),n=x.useRef(!1);return x.useEffect(()=>{const i=s=>{s.target&&!n.current&&QO(Q6,r,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function gN(){const t=new CustomEvent(vS);document.dispatchEvent(t)}function QO(t,e,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?wy(i,s):i.dispatchEvent(s)}var Z6=jw,$6=qO,vi=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},ez="Portal",lk=x.forwardRef((t,e)=>{var a;const{container:r,...n}=t,[i,s]=x.useState(!1);vi(()=>s(!0),[]);const o=r||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Rw.createPortal(f.jsx(Ge.div,{...n,ref:e}),o):null});lk.displayName=ez;function tz(t,e){return x.useReducer((r,n)=>e[r][n]??r,t)}var vo=t=>{const{present:e,children:r}=t,n=rz(e),i=typeof r=="function"?r({present:n.isPresent}):x.Children.only(r),s=ar(n.ref,nz(i));return typeof r=="function"||n.isPresent?x.cloneElement(i,{ref:s}):null};vo.displayName="Presence";
40function rz(t){const[e,r]=x.useState(),n=x.useRef({}),i=x.useRef(t),s=x.useRef("none"),o=t?"mounted":"unmounted",[a,l]=tz(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const c=x0(n.current);s.current=a==="mounted"?c:"none"},[a]),vi(()=>{const c=n.current,u=i.current;if(u!==t){const h=s.current,p=x0(c);t?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),vi(()=>{if(e){let c;const u=e.ownerDocument.defaultView??window,d=p=>{const g=x0(n.current).includes(p.animationName);if(p.target===e&&g&&(l("ANIMATION_END"),!i.current)){const y=e.style.animationFillMode;e.style.animationFillMode="forwards",c=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=y)})}},h=p=>{p.target===e&&(s.current=x0(n.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{u.clearTimeout(c),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function x0(t){return(t==null?void 0:t.animationName)||"none"}function nz(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function yo({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,i]=iz({defaultProp:e,onChange:r}),s=t!==void 0,o=s?t:n,a=wr(r),l=x.useCallback(c=>{if(s){const d=typeof c=="function"?c(t):c;d!==t&&a(d)}else i(c)},[s,t,i,a]);return[o,l]}function iz({defaultProp:t,onChange:e}){const r=x.useState(t),[n]=r,i=x.useRef(n),s=wr(e);return x.useEffect(()=>{i.current!==n&&(s(n),i.current=n)},[n,i,s]),r}var sz="VisuallyHidden",Fw=x.forwardRef((t,e)=>f.jsx(Ge.span,{...t,ref:e,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",...t.style}}));Fw.displayName=sz;var oz=Fw,ck="ToastProvider",[uk,az,lz]=Pm("Toast"),[XO,Lse]=mo("Toast",[lz]),[cz,Ow]=XO(ck),YO=t=>{const{__scopeToast:e,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=t,[a,l]=x.useState(null),[c,u]=x.useState(0),d=x.useRef(!1),h=x.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${ck}\`. Expected non-empty \`string\`.`),f.jsx(uk.Provider,{scope:e,children:f.jsx(cz,{scope:e,label:r,duration:n,swipeDirection:i,swipeThreshold:s,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:x.useCallback(()=>u(p=>p+1),[]),onToastRemove:x.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:o})})};YO.displayName=ck;var JO="ToastViewport",uz=["F8"],yS="toast.viewportPause",wS="toast.viewportResume",ZO=x.forwardRef((t,e)=>{const{__scopeToast:r,hotkey:n=uz,label:i="Notifications ({hotkey})",...s}=t,o=Ow(JO,r),a=az(r),l=x.useRef(null),c=x.useRef(null),u=x.useRef(null),d=x.useRef(null),h=ar(e,d,o.onViewportChange),p=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=o.toastCount>0;x.useEffect(()=>{const y=v=>{var b;n.length!==0&&n.every(E=>v[E]||v.code===E)&&((b=d.current)==null||b.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[n]),x.useEffect(()=>{const y=l.current,v=d.current;if(m&&y&&v){const w=()=>{if(!o.isClosePausedRef.current){const k=new CustomEvent(yS);v.dispatchEvent(k),o.isClosePausedRef.current=!0}},b=()=>{if(o.isClosePausedRef.current){const k=new CustomEvent(wS);v.dispatchEvent(k),o.isClosePausedRef.current=!1}},E=k=>{!y.contains(k.relatedTarget)&&b()},A=()=>{y.contains(document.activeElement)||b()};return y.addEventListener("focusin",w),y.addEventListener("focusout",E),y.addEventListener("pointermove",w),y.addEventListener("pointerleave",A),window.addEventListener("blur",w),window.addEventListener("focus",b),()=>{y.removeEventListener("focusin",w),y.removeEventListener("focusout",E),y.removeEventListener("pointermove",w),y.removeEventListener("pointerleave",A),window.removeEventListener("blur",w),window.removeEventListener("focus",b)}}},[m,o.isClosePausedRef]);const g=x.useCallback(({tabbingDirection:y})=>{const w=a().map(b=>{const E=b.ref.current,A=[E,...Ez(E)];return y==="forwards"?A:A.reverse()});return(y==="forwards"?w.reverse():w).flat()},[a]);return x.useEffect(()=>{const y=d.current;if(y){const v=w=>{var A,k,P;const b=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!b){const C=document.activeElement,N=w.shiftKey;if(w.target===y&&N){(A=c.current)==null||A.focus();return}const B=g({tabbingDirection:N?"backwards":"forwards"}),D=B.findIndex(L=>L===C);yx(B.slice(D+1))?w.preventDefault():N?(k=c.current)==null||k.focus():(P=u.current)==null||P.focus()}};return y.addEventListener("keydown",v),()=>y.removeEventListener("keydown",v)}},[a,g]),f.jsxs($6,{ref:l,role:"region","aria-label":i.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:m?void 0:"none"},children:[m&&f.jsx(bS,{ref:c,onFocusFromOutsideViewport:()=>{const y=g({tabbingDirection:"forwards"});yx(y)}}),f.jsx(uk.Slot,{scope:r,children:f.jsx(Ge.ol,{tabIndex:-1,...s,ref:h})}),m&&f.jsx(bS,{ref:u,onFocusFromOutsideViewport:()=>{const y=g({tabbingDirection:"backwards"});yx(y)}})]})});ZO.displayName=JO;var $O="ToastFocusProxy",bS=x.forwardRef((t,e)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...i}=t,s=Ow($O,r);return f.jsx(Fw,{"aria-hidden":!0,tabIndex:0,...i,ref:e,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=s.viewport)!=null&&c.contains(a))&&n()}})});bS.displayName=$O;var Dw="Toast",dz="toast.swipeStart",fz="toast.swipeMove",hz="toast.swipeCancel",pz="toast.swipeEnd",eD=x.forwardRef((t,e)=>{const{forceMount:r,open:n,defaultOpen:i,onOpenChange:s,...o}=t,[a=!0,l]=yo({prop:n,defaultProp:i,onChange:s});return f.jsx(vo,{present:r||a,children:f.jsx(vz,{open:a,...o,ref:e,onClose:()=>l(!1),onPause:wr(t.onPause),onResume:wr(t.onResume),onSwipeStart:Pe(t.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Pe(t.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Pe(t.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:Pe(t.onSwipeEnd,c=>{const{x:u,y:d}=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",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});eD.displayName=Dw;var[gz,mz]=XO(Dw,{onClose(){}}),vz=x.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:p,...m}=t,g=Ow(Dw,r),[y,v]=x.useState(null),w=ar(e,L=>v(L)),b=x.useRef(null),E=x.useRef(null),A=i||g.duration,k=x.useRef(0),P=x.useRef(A),C=x.useRef(0),{onToastAdd:N,onToastRemove:R}=g,F=wr(()=>{var M;(y==null?void 0:y.contains(document.activeElement))&&((M=g.viewport)==null||M.focus()),o()}),B=x.useCallback(L=>
40{!L||L===1/0||(window.clearTimeout(C.current),k.current=new Date().getTime(),C.current=window.setTimeout(F,L))},[F]);x.useEffect(()=>{const L=g.viewport;if(L){const M=()=>{B(P.current),c==null||c()},_=()=>{const X=new Date().getTime()-k.current;P.current=P.current-X,window.clearTimeout(C.current),l==null||l()};return L.addEventListener(yS,_),L.addEventListener(wS,M),()=>{L.removeEventListener(yS,_),L.removeEventListener(wS,M)}}},[g.viewport,A,l,c,B]),x.useEffect(()=>{s&&!g.isClosePausedRef.current&&B(A)},[s,A,g.isClosePausedRef,B]),x.useEffect(()=>(N(),()=>R()),[N,R]);const D=x.useMemo(()=>y?aD(y):null,[y]);return g.viewport?f.jsxs(f.Fragment,{children:[D&&f.jsx(yz,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:D}),f.jsx(gz,{scope:r,onClose:F,children:Nm.createPortal(f.jsx(uk.ItemSlot,{scope:r,children:f.jsx(Z6,{asChild:!0,onEscapeKeyDown:Pe(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||F(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:f.jsx(Ge.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...m,ref:w,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Pe(t.onKeyDown,L=>{L.key==="Escape"&&(a==null||a(L.nativeEvent),L.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,F()))}),onPointerDown:Pe(t.onPointerDown,L=>{L.button===0&&(b.current={x:L.clientX,y:L.clientY})}),onPointerMove:Pe(t.onPointerMove,L=>{if(!b.current)return;const M=L.clientX-b.current.x,_=L.clientY-b.current.y,X=!!E.current,V=["left","right"].includes(g.swipeDirection),K=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,Z=V?K(0,M):0,Y=V?0:K(0,_),ee=L.pointerType==="touch"?10:2,fe={x:Z,y:Y},ye={originalEvent:L,delta:fe};X?(E.current=fe,S0(fz,d,ye,{discrete:!1})):mN(fe,g.swipeDirection,ee)?(E.current=fe,S0(dz,u,ye,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(M)>ee||Math.abs(_)>ee)&&(b.current=null)}),onPointerUp:Pe(t.onPointerUp,L=>{const M=E.current,_=L.target;if(_.hasPointerCapture(L.pointerId)&&_.releasePointerCapture(L.pointerId),E.current=null,b.current=null,M){const X=L.currentTarget,V={originalEvent:L,delta:M};mN(M,g.swipeDirection,g.swipeThreshold)?S0(pz,p,V,{discrete:!0}):S0(hz,h,V,{discrete:!0}),X.addEventListener("click",K=>K.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),yz=t=>{const{__scopeToast:e,children:r,...n}=t,i=Ow(Dw,e),[s,o]=x.useState(!1),[a,l]=x.useState(!1);return xz(()=>o(!0)),x.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:f.jsx(lk,{asChild:!0,children:f.jsx(Fw,{...n,children:s&&f.jsxs(f.Fragment,{children:[i.label," ",r]})})})},wz="ToastTitle",tD=x.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return f.jsx(Ge.div,{...n,ref:e})});tD.displayName=wz;var bz="ToastDescription",rD=x.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return f.jsx(Ge.div,{...n,ref:e})});rD.displayName=bz;var nD="ToastAction",iD=x.forwardRef((t,e)=>{const{altText:r,...n}=t;return r.trim()?f.jsx(oD,{altText:r,asChild:!0,children:f.jsx(dk,{...n,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${nD}\`. Expected non-empty \`string\`.`),null)});iD.displayName=nD;var sD="ToastClose",dk=x.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,i=mz(sD,r);return f.jsx(oD,{asChild:!0,children:f.jsx(Ge.button,{type:"button",...n,ref:e,onClick:Pe(t.onClick,i.onClose)})})});dk.displayName=sD;var oD=x.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...i}=t;return f.jsx(Ge.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...i,ref:e})});function aD(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),Sz(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",s=n.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=n.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...aD(n))}}),e}function S0(t,e,r,{discrete:n}){const i=r.originalEvent.currentTarget,s=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?wy(i,s):i.dispatchEvent(s)}var mN=(t,e,r=0)=>{const n=Math.abs(t.x),i=Math.abs(t.y),s=n>i;return e==="left"||e==="right"?s&&n>r:!s&&i>r};function xz(t=()=>{}){const e=wr(t);vi(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function Sz(t){return t.nodeType===t.ELEMENT_NODE}function Ez(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function yx(t){const e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}var kz=YO,lD=ZO,cD=eD,uD=tD,dD=rD,fD=iD,hD=dk;function pD(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=pD(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function gD(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=pD(t))&&(n&&(n+=" "),n+=e);return n}const vN=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,yN=gD,Rh=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return yN(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:s}=e,o=Object.keys(i).map(c=>{const u=r==null?void 0:r[c],d=s==null?void 0:s[c];if(u===null)return null;const h=vN(u)||vN(d);return i[c][h]}),a=r&&Object.entries(r).reduce((c,u)=>{let[d,h]=u;return h===void 0||(c[d]=h),c},{}),l=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:d,className:h,...p}=u;return Object.entries(p).every(m=>{let[g,y]=m;return Array.isArray(y)?y.includes({...s,...a}[g]):{...s,...a}[g]===y})?[...c,d,h]:c},[]);return yN(t,o,l,r==null?void 0:r.class,r==null?void 0:r.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 Az=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mD=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).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 Cz={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 Nz=x.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:s,iconNode:o,...a},l)=>x.createElement("svg",{ref:l,...Cz,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:mD("lucide",i),...a},[...o.map(([c,u])=>x.createElement(c,u)),...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 Se=(t,e)=>{const r=x.forwardRef(({className:n,...i},s)=>x.createElement(Nz,{ref:s,iconNode:e,className:mD(`lucide-${Az(t)}`,n),...i}));return r.displayName=`${t}`,r};/**
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 Pz=Se("AlignLeft",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
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 Tz=Se("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
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 Rz=Se("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
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 jz=Se("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
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 Fz=Se("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/**
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 wN=Se("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"}]]);/**
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 gu=Se("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
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 Oz=Se("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
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 ql=Se("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
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 Iw=Se("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
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 Dz=Se("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
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 Iz=Se("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
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 Mz=Se("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/**
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 Bz=Se("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
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 vD=Se("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
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 Lz=Se("CloudUpload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);/**
141 * @license lucide-react v0.462.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const Uz=Se("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
146 * @license lucide-react v0.462.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const by=Se("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"}]]);/**
151 * @license lucide-react v0.462.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const E0=Se("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
156 * @license lucide-react v0.462.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const pc=Se("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);/**
161 * @license lucide-react v0.462.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const zz=Se("FileImage",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]);/**
166 * @license lucide-react v0.462.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const yD=Se("FileOutput",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4 7V4a2 2 0 0 1 2-2 2 2 0 0 0-2 2",key:"1vk7w2"}],["path",{d:"M4.063 20.999a2 2 0 0 0 2 1L18 22a2 2 0 0 0 2-2V7l-5-5H6",key:"1jink5"}],["path",{d:"m5 11-3 3",key:"1dgrs4"}],["path",{d:"m5 17-3-3h10",key:"1mvvaf"}]]);/**
171 * @license lucide-react v0.462.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const _z=Se("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/**
176 * @license lucide-react v0.462.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const Jn=Se("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
181 * @license lucide-react v0.462.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const Vz=Se("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
186 * @license lucide-react v0.462.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const Hz=Se("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
191 * @license lucide-react v0.462.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const wD=Se("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
196 * @license lucide-react v0.462.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const Gz=Se("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
201 * @license lucide-react v0.462.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const mu=Se("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
206 * @license lucide-react v0.462.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const Wz=Se("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
211 * @license lucide-react v0.462.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const Kz=Se("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
216 * @license lucide-react v0.462.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const qz=Se("Merge",[["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}],["path",{d:"M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22",key:"1hyw0i"}],["path",{d:"m20 22-5-5",key:"1m27yz"}]]);/**
221 * @license lucide-react v0.462.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const Qz=Se("MousePointer",[["path",{d:"M12.586 12.586 19 19",key:"ea5xo7"}],["path",{d:"M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z",key:"277e5u"}]]);/**
226 * @license lucide-react v0.462.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const bN=Se("PanelsTopLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);/**
231 * @license lucide-react v0.462.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const Xz=Se("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
236 * @license lucide-react v0.462.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const xN=Se("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
241 * @license lucide-react v0.462.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const Yz=Se("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
246 * @license lucide-react v0.462.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const Jz=Se("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
251 * @license lucide-react v0.462.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const fk=Se("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
256 * @license lucide-react v0.462.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const SN=Se("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);/**
261 * @license lucide-react v0.462.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const hk=Se("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
266 * @license lucide-react v0.462.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const Zz=Se("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
271 * @license lucide-react v0.462.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const pk=Se("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
vendor: 10,384 bytes, lines 275-315
275y:"oel41y"}]]);/**
276 * @license lucide-react v0.462.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const $z=Se("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
281 * @license lucide-react v0.462.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const e_=Se("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);/**
286 * @license lucide-react v0.462.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const t_=Se("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
291 * @license lucide-react v0.462.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const xS=Se("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
296 * @license lucide-react v0.462.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const gk=Se("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
301 * @license lucide-react v0.462.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const EN=Se("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"}]]);/**
306 * @license lucide-react v0.462.0 - ISC
307 *
308 * This source code is licensed under the ISC license.
309 * See the LICENSE file in the root directory of this source tree.
310 */const Og=Se("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/**
311 * @license lucide-react v0.462.0 - ISC
312 *
313 * This source code is licensed under the ISC license.
314 * See the LICENSE file in the root directory of this source tree.
315 */const Tm=Se("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),mk="-",r_=t=>{const e=i_(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:o=>{const a=o.split(mk);return a[0]===""&&a.length!==1&&a.shift(),bD(a,e)||n_(o)},getConflictingClassGroupIds:(o,a)=>{const l=r[o]||[];return a&&n[o]?[...l,...n[o]]:l}}},bD=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),i=n?bD(t.slice(1),n):void 0;if(i)return i;if(e.validators.length===0)return;const s=t.join(mk);return(o=e.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},kN=/^\[(.+)\]$/,n_=t=>{if(kN.test(t)){const e=kN.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},i_=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return o_(Object.entries(t.classGroups),r).forEach(([s,o])=>{SS(o,n,s,e)}),n},SS=(t,e,r,n)=>{t.forEach(i=>{if(typeof i=="string"){const s=i===""?e:AN(e,i);s.classGroupId=r;return}if(typeof i=="function"){if(s_(i)){SS(i(n),e,r,n);return}e.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([s,o])=>{SS(o,AN(e,s),r,n)})})},AN=(t,e)=>{let r=t;return e.split(mk).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},s_=t=>t.isThemeGetter,o_=(t,e)=>e?t.map(([r,n])=>{const i=n.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[e+o,a])):s);return[r,i]}):t,a_=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const i=(s,o)=>{r.set(s,o),e++,e>t&&(e=0,n=r,r=new Map)};return{get(s){let o=r.get(s);if(o!==void 0)return o;if((o=n.get(s))!==void 0)return i(s,o),o},set(s,o){r.has(s)?r.set(s,o):i(s,o)}}},xD="!",l_=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,i=e[0],s=e.length,o=a=>{const l=[];let c=0,u=0,d;for(let y=0;y<a.length;y++){let v=a[y];if(c===0){if(v===i&&(n||a.slice(y,y+s)===e)){l.push(a.slice(u,y)),u=y+s;continue}if(v==="/"){d=y;continue}}v==="["?c++:v==="]"&&c--}const h=l.length===0?a:a.substring(u),p=h.startsWith(xD),m=p?h.substring(1):h,g=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}};return r?a=>r({className:a,parseClassName:o}):o},c_=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},u_=t=>({cache:a_(t.cacheSize),parseClassName:l_(t),...r_(t)}),d_=/\s+/,f_=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=e,s=[],o=t.trim().split(d_);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:p}=r(c);let m=!!p,g=n(m?h.substring(0,p):h);if(!g){if(!m){a=c+(a.length>0?" "+a:a);continue}if(g=n(h),!g){a=c+(a.length>0?" "+a:a);continue}m=!1}const y=c_(u).join(":"),v=d?y+xD:y,w=v+g;if(s.includes(w))continue;s.push(w);const b=i(g,m);for(let E=0;E<b.length;++E){const A=b[E];s.push(v+A)}a=c+(a.length>0?" "+a:a)}return a};function h_(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=SD(e))&&(n&&(n+=" "),n+=r);return n}const SD=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=SD(t[n]))&&(r&&(r+=" "),r+=e);return r};function p_(t,...e){let r,n,i,s=o;function o(l){const c=e.reduce((u,d)=>d(u),t());return r=u_(c),n=r.cache.get,i=r.cache.set,s=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=f_(l,r);return i(l,u),u}return function(){return s(h_.apply(null,arguments))}}const Lt=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},ED=/^\[(?:([a-z-]+):)?(.+)\]$/i,g_=/^\d+\/\d+$/,m_=new Set(["px","full","screen"]),v_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,y_=/\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$/,w_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,b_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,x_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,So=t=>Wd(t)||m_.has(t)||g_.test(t),ya=t=>jh(t,"length",T_),Wd=t=>!!t&&!Number.isNaN(Number(t)),wx=t=>jh(t,"number",Wd),ap=t=>!!t&&Number.isInteger(Number(t)),S_=t=>t.endsWith("%")&&Wd(t.slice(0,-1)),ze=t=>ED.test(t),wa=t=>v_.test(t),E_=new Set(["length","size","percentage"]),k_=t=>jh(t,E_,kD),A_=t=>jh(t,"position",kD),C_=new Set(["image","url"]),N_=t=>jh(t,C_,j_),P_=t=>jh(t,"",R_),lp=()=>!0,jh=(t,e,r)=>{const n=ED.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},T_=t=>y_.test(t)&&!w_.test(t),kD=()=>!1,R_=t=>b_.test(t),j_=t=>x_.test(t),F_=()=>{const t=Lt("colors"),e=Lt("spacing"),r=Lt("blur"),n=Lt("brightness"),i=Lt("borderColor"),s=Lt("borderRadius"),o=Lt("borderSpacing"),a=Lt("borderWidth"),l=Lt("contrast"),c=Lt("grayscale"),u=Lt("hueRotate"),d=Lt("invert"),h=Lt("gap"),p=Lt("gradientColorStops"),m=Lt("gradientColorStopPositions"),g=Lt("inset"),y=Lt("margin"),v=Lt("opacity"),w=Lt("padding"),b=Lt("saturate"),E=Lt("scale"),A=Lt("sepia"),k=Lt("skew"),P=Lt("space"),C=Lt("translate"),N=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",ze,e],B=()=>[ze,e],D=()=>["",So,ya],L=()=>["auto",Wd,ze],M=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",ze],Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Wd,ze];return{cacheSize:500,separator:":",theme:{colors:[lp],spacing:[So,ya],blur:["none","",wa,ze],brightness:Y(),borderColor:[t],borderRadius:["none","","full",wa,ze],borderSpacing:B(),borderWidth:D(),contrast:Y(),grayscale:K(),hueRotate:Y(),invert:K(),gap:B(),gradientColorStops:[t],gradientColorStopPositions:[S_,ya],inset:F(),margin:F(),opacity:Y(),padding:B(),saturate:Y(),scale:Y(),sepia:K(),skew:Y(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",ze]}],container:["container"],columns:[{columns:[wa]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"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:[...M(),ze]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}
vendor: 9,946 bytes, line 315
315],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ap,ze]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ze]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",ap,ze]}],"grid-cols":[{"grid-cols":[lp]}],"col-start-end":[{col:["auto",{span:["full",ap,ze]},ze]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[lp]}],"row-start-end":[{row:["auto",{span:[ap,ze]},ze]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ze]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ze]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...V()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...V(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...V(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ze,e]}],"min-w":[{"min-w":[ze,e,"min","max","fit"]}],"max-w":[{"max-w":[ze,e,"none","full","min","max","fit","prose",{screen:[wa]},wa]}],h:[{h:[ze,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ze,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ze,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ze,e,"auto","min","max","fit"]}],"font-size":[{text:["base",wa,ya]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wx]}],"font-family":[{font:[lp]}],"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",ze]}],"line-clamp":[{"line-clamp":["none",Wd,wx]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",So,ze]}],"list-image":[{"list-image":["none",ze]}],"list-style-type":[{list:["none","disc","decimal",ze]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",So,ya]}],"underline-offset":[{"underline-offset":["auto",So,ze]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ze]}],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",ze]}],"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:[...M(),A_]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",k_]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},N_]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],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:[..._(),"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:_()}],"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:["",..._()]}],"outline-offset":[{"outline-offset":[So,ze]}],"outline-w":[{outline:[So,ya]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[So,ya]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",wa,P_]}],"shadow-color":[{shadow:[lp]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",wa,ze]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"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",ze]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",ze]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",ze]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[ap,ze]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ze]}],accent:[{accent:["auto",t]}],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",ze]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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,647 bytes, line 315
315],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",ze]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[So,ya,wx]}],stroke:[{stroke:[t,"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"]}}},O_=p_(F_);function Te(...t){return O_(gD(t))}const D_=kz,AD=x.forwardRef(({className:t,...e},r)=>f.jsx(lD,{ref:r,className:Te("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]",t),...e}));AD.displayName=lD.displayName;const I_=Rh("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"}}),CD=x.forwardRef(({className:t,variant:e,...r},n)=>f.jsx(cD,{ref:n,className:Te(I_({variant:e}),t),...r}));CD.displayName=cD.displayName;const M_=x.forwardRef(({className:t,...e},r)=>f.jsx(fD,{ref:r,className:Te("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",t),...e}));M_.displayName=fD.displayName;const ND=x.forwardRef(({className:t,...e},r)=>f.jsx(hD,{ref:r,className:Te("absolute right-2 top-2 rounded-md p-1 text-foreground
315/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",t),"toast-close":"",...e,children:f.jsx(Tm,{className:"h-4 w-4"})}));ND.displayName=hD.displayName;const PD=x.forwardRef(({className:t,...e},r)=>f.jsx(uD,{ref:r,className:Te("text-sm font-semibold",t),...e}));PD.displayName=uD.displayName;const TD=x.forwardRef(({className:t,...e},r)=>f.jsx(dD,{ref:r,className:Te("text-sm opacity-90",t),...e}));TD.displayName=dD.displayName;function RD(){const{toasts:t}=Sr();return f.jsxs(D_,{children:[t.map(function({id:e,title:r,description:n,action:i,...s}){return f.jsxs(CD,{...s,children:[f.jsxs("div",{className:"grid gap-1",children:[r&&f.jsx(PD,{children:r}),n&&f.jsx(TD,{children:n})]}),i,f.jsx(ND,{})]},e)}),f.jsx(AD,{})]})}var CN=["light","dark"],B_="(prefers-color-scheme: dark)",L_=x.createContext(void 0),U_={setTheme:t=>{},themes:[]},z_=()=>{var t;return(t=x.useContext(L_))!=null?t:U_};x.memo(({forcedTheme:t,storageKey:e,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:s,value:o,attrs:a,nonce:l})=>{let c=s==="system",u=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(m=>`'${m}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,d=i?CN.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(m,g=!1,y=!0)=>{let v=o?o[m]:m,w=g?m+"|| ''":`'${v}'`,b="";return i&&y&&!g&&CN.includes(m)&&(b+=`d.style.colorScheme = '${m}';`),r==="class"?g||v?b+=`c.add(${w})`:b+="null":v&&(b+=`d[s](n,${w})`),b},p=t?`!function(){${u}${h(t)}}()`:n?`!function(){try{${u}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${c})){var t='${B_}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${c?"":"else{"+h(s,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${e}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(s,!1,!1)};}${d}}catch(t){}}();`;return x.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var __=t=>{switch(t){case"success":return G_;case"info":return K_;case"warning":return W_;case"error":return q_;default:return null}},V_=Array(12).fill(0),H_=({visible:t})=>ne.createElement("div",{className:"sonner-loading-wrapper","data-visible":t},ne.createElement("div",{className:"sonner-spinner"},V_.map((e,r)=>ne.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),G_=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.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"})),W_=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ne.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"})),K_=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.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"})),q_=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.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"})),Q_=()=>{let[t,e]=ne.useState(document.hidden);return ne.useEffect(()=>{let r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t},ES=1,X_=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let r=this.subscribers.indexOf(e);this.subscribers.splice(r,1)}),this.publish=e=>
315{this.subscribers.forEach(r=>r(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var r;let{message:n,...i}=e,s=typeof(e==null?void 0:e.id)=="number"||((r=e.id)==null?void 0:r.length)>0?e.id:ES++,o=this.toasts.find(l=>l.id===s),a=e.dismissible===void 0?!0:e.dismissible;return o?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...e,id:s,title:n}),{...l,...e,id:s,dismissible:a,title:n}):l):this.addToast({title:n,...i,dismissible:a,id:s}),s},this.dismiss=e=>(e||this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:e,dismiss:!0})),e),this.message=(e,r)=>this.create({...r,message:e}),this.error=(e,r)=>this.create({...r,message:e,type:"error"}),this.success=(e,r)=>this.create({...r,type:"success",message:e}),this.info=(e,r)=>this.create({...r,type:"info",message:e}),this.warning=(e,r)=>this.create({...r,type:"warning",message:e}),this.loading=(e,r)=>this.create({...r,type:"loading",message:e}),this.promise=(e,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:e,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let i=e instanceof Promise?e:e(),s=n!==void 0;return i.then(async o=>{if(J_(o)&&!o.ok){s=!1;let a=typeof r.error=="function"?await r.error(`HTTP error! status: ${o.status}`):r.error,l=typeof r.description=="function"?await r.description(`HTTP error! status: ${o.status}`):r.description;this.create({id:n,type:"error",message:a,description:l})}else if(r.success!==void 0){s=!1;let a=typeof r.success=="function"?await r.success(o):r.success,l=typeof r.description=="function"?await r.description(o):r.description;this.create({id:n,type:"success",message:a,description:l})}}).catch(async o=>{if(r.error!==void 0){s=!1;let a=typeof r.error=="function"?await r.error(o):r.error,l=typeof r.description=="function"?await r.description(o):r.description;this.create({id:n,type:"error",message:a,description:l})}}).finally(()=>{var o;s&&(this.dismiss(n),n=void 0),(o=r.finally)==null||o.call(r)}),n},this.custom=(e,r)=>{let n=(r==null?void 0:r.id)||ES++;return this.create({jsx:e(n),id:n,...r}),n},this.subscribers=[],this.toasts=[]}},ai=new X_,Y_=(t,e)=>{let r=(e==null?void 0:e.id)||ES++;return ai.addToast({title:t,...e,id:r}),r},J_=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",Z_=Y_,$_=()=>ai.toasts,Ue=Object.assign(Z_,{success:ai.success,info:ai.info,warning:ai.warning,error:ai.error,custom:ai.custom,message:ai.message,promise:ai.promise,dismiss:ai.dismiss,loading:ai.loading},{getHistory:$_});function e7(t,{insertAt:e}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}e7(`: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;
315left: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}
315: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%)}
316`);function k0(t){return t.label!==void 0}var t7=3,r7="32px",n7=4e3,i7=356,s7=14,o7=20,a7=200;function l7(...t){return t.filter(Boolean).join(" ")}var c7=t=>{var e,r,n,i,s,o,a,l,c,u;let{invert:d,toast:h,unstyled:p,interacting:m,setHeights:g,visibleToasts:y,heights:v,index:w,toasts:b,expanded:E,removeToast:A,defaultRichColors:k,closeButton:P,style:C,cancelButtonStyle:N,actionButtonStyle:R,className:F="",descriptionClassName:B="",duration:D,position:L,gap:M,loadingIcon:_,expandByDefault:X,classNames:V,icons:K,closeButtonAriaLabel:Z="Close toast",pauseWhenPageIsHidden:Y,cn:ee}=t,[fe,ye]=ne.useState(!1),[lt,Ae]=ne.useState(!1),[At,Xe]=ne.useState(!1),[Er,gr]=ne.useState(!1),[er,kr]=ne.useState(0),[Or,We]=ne.useState(0),et=ne.useRef(null),Ht=ne.useRef(null),Dr=w===0,Si=w+1<=y,qt=h.type,fn=h.dismissible!==!1,Ar=h.className||"",Ub=h.descriptionClassName||"",Ei=ne.useMemo(()=>v.findIndex(je=>je.toastId===h.id)||0,[v,h.id]),ec=ne.useMemo(()=>{var je;return(je=h.closeButton)!=null?je:P},[h.closeButton,P]),Qh=ne.useMemo(()=>h.duration||D||n7,[h.duration,D]),tc=ne.useRef(0),hn=ne.useRef(0),ki=ne.useRef(0),bo=ne.useRef(null),[rc,zb]=L.split("-"),ss=ne.useMemo(()=>v.reduce((je,Tt,xt)=>xt>=Ei?je:je+Tt.height,0),[v,Ei]),Xh=Q_(),Zm=h.invert||d,Gu=qt==="loading";hn.current=ne.useMemo(()=>Ei*M+ss,[Ei,ss]),ne.useEffect(()=>{ye(!0)},[]),ne.useLayoutEffect(()=>{if(!fe)return;let je=Ht.current,Tt=je.style.height;je.style.height="auto";let xt=je.getBoundingClientRect().height;je.style.height=Tt,We(xt),g(On=>
316On.find(Ai=>Ai.toastId===h.id)?On.map(Ai=>Ai.toastId===h.id?{...Ai,height:xt}:Ai):[{toastId:h.id,height:xt,position:h.position},...On])},[fe,h.title,h.description,g,h.id]);let Ms=ne.useCallback(()=>{Ae(!0),kr(hn.current),g(je=>je.filter(Tt=>Tt.toastId!==h.id)),setTimeout(()=>{A(h)},a7)},[h,A,g,hn]);ne.useEffect(()=>{if(h.promise&&qt==="loading"||h.duration===1/0||h.type==="loading")return;let je,Tt=Qh;return E||m||Y&&Xh?(()=>{if(ki.current<tc.current){let xt=new Date().getTime()-tc.current;Tt=Tt-xt}ki.current=new Date().getTime()})():Tt!==1/0&&(tc.current=new Date().getTime(),je=setTimeout(()=>{var xt;(xt=h.onAutoClose)==null||xt.call(h,h),Ms()},Tt)),()=>clearTimeout(je)},[E,m,X,h,Qh,Ms,h.promise,qt,Y,Xh]),ne.useEffect(()=>{let je=Ht.current;if(je){let Tt=je.getBoundingClientRect().height;return We(Tt),g(xt=>[{toastId:h.id,height:Tt,position:h.position},...xt]),()=>g(xt=>xt.filter(On=>On.toastId!==h.id))}},[g,h.id]),ne.useEffect(()=>{h.delete&&Ms()},[Ms,h.delete]);function $m(){return K!=null&&K.loading?ne.createElement("div",{className:"sonner-loader","data-visible":qt==="loading"},K.loading):_?ne.createElement("div",{className:"sonner-loader","data-visible":qt==="loading"},_):ne.createElement(H_,{visible:qt==="loading"})}return ne.createElement("li",{"aria-live":h.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Ht,className:ee(F,Ar,V==null?void 0:V.toast,(e=h==null?void 0:h.classNames)==null?void 0:e.toast,V==null?void 0:V.default,V==null?void 0:V[qt],(r=h==null?void 0:h.classNames)==null?void 0:r[qt]),"data-sonner-toast":"","data-rich-colors":(n=h.richColors)!=null?n:k,"data-styled":!(h.jsx||h.unstyled||p),"data-mounted":fe,"data-promise":!!h.promise,"data-removed":lt,"data-visible":Si,"data-y-position":rc,"data-x-position":zb,"data-index":w,"data-front":Dr,"data-swiping":At,"data-dismissible":fn,"data-type":qt,"data-invert":Zm,"data-swipe-out":Er,"data-expanded":!!(E||X&&fe),style:{"--index":w,"--toasts-before":w,"--z-index":b.length-w,"--offset":`${lt?er:hn.current}px`,"--initial-height":X?"auto":`${Or}px`,...C,...h.style},onPointerDown:je=>{Gu||!fn||(et.current=new Date,kr(hn.current),je.target.setPointerCapture(je.pointerId),je.target.tagName!=="BUTTON"&&(Xe(!0),bo.current={x:je.clientX,y:je.clientY}))},onPointerUp:()=>{var je,Tt,xt,On;if(Er||!fn)return;bo.current=null;let Ai=Number(((je=Ht.current)==null?void 0:je.style.getPropertyValue("--swipe-amount").replace("px",""))||0),nc=new Date().getTime()-((Tt=et.current)==null?void 0:Tt.getTime()),_b=Math.abs(Ai)/nc;if(Math.abs(Ai)>=o7||_b>.11){kr(hn.current),(xt=h.onDismiss)==null||xt.call(h,h),Ms(),gr(!0);return}(On=Ht.current)==null||On.style.setProperty("--swipe-amount","0px"),Xe(!1)},onPointerMove:je=>{var Tt;if(!bo.current||!fn)return;let xt=je.clientY-bo.current.y,On=je.clientX-bo.current.x,Ai=(rc==="top"?Math.min:Math.max)(0,xt),nc=je.pointerType==="touch"?10:2;Math.abs(Ai)>nc?(Tt=Ht.current)==null||Tt.style.setProperty("--swipe-amount",`${xt}px`):Math.abs(On)>nc&&(bo.current=null)}},ec&&!h.jsx?ne.createElement("button",{"aria-label":Z,"data-disabled":Gu,"data-close-button":!0,onClick:Gu||!fn?()=>{}:()=>{var je;Ms(),(je=h.onDismiss)==null||je.call(h,h)},className:ee(V==null?void 0:V.closeButton,(i=h==null?void 0:h.classNames)==null?void 0:i.closeButton)},ne.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"},ne.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ne.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,h.jsx||ne.isValidElement(h.title)?h.jsx||h.title:ne.createElement(ne.Fragment,null,qt||h.icon||h.promise?ne.createElement("div",{"data-icon":"",className:ee(V==null?void 0:V.icon,(s=h==null?void 0:h.classNames)==null?void 0:s.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||$m():null,h.type!=="loading"?h.icon||(K==null?void 0:K[qt])||__(qt):null):null,ne.createElement("div",{"data-content":"",className:ee(V==null?void 0:V.content,(o=h==null?void 0:h.classNames)==null?void 0:o.content)},ne.createElement("div",{"data-title":"",className:ee(V==null?void 0:V.title,(a=h==null?void 0:h.classNames)==null?void 0:a.title)},h.title),h.description?ne.createElement("div",{"data-description":"",className:ee(B,Ub,V==null?void 0:V.description,(l=h==null?void 0:h.classNames)==null?void 0:l.description)},h.description):null),ne.isValidElement(h.cancel)?h.cancel:h.cancel&&k0(h.cancel)?ne.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||N,onClick:je=>{var Tt,xt;k0(h.cancel)&&fn&&((xt=(Tt=h.cancel).onClick)==null||xt.call(Tt,je),Ms())},className:ee(V==null?void 0:V.cancelButton,(c=h==null?void 0:h.classNames)==null?void 0:c.cancelButton)},h.cancel.label):null,ne.isValidElement(h.action)?h.action:h.action&&k0(h.action)?ne.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||R,onClick:je=>{var Tt,xt;k0(h.action)&&(je.defaultPrevented||((xt=(Tt=h.action).onClick)==null||xt.call(Tt,je),Ms()))},className:ee(V==null?void 0:V.actionButton,(u=h==null?void 0:h.classNames)==null?void 0:u.actionButton)},h.action.label):null))};function NN(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}var u7=t=>{let{invert:e,position:r="bottom-right",hotkey:n=["altKey","KeyT"],expand:i,closeButton:s,className:o,offset:a,theme:l="light",richColors:c,duration:u,style:d,visibleToasts:h=t7,toastOptions:p,dir:m=NN(),gap:g=s7,loadingIcon:y,icons:v,containerAriaLabel:w="Notifications",pauseWhenPageIsHidden:b,cn:E=l7}=t,[A,k]=ne.useState([]),P=ne.useMemo(()=>Array.from(new Set([r].concat(A.filter(Y=>Y.position).map(Y=>Y.position)))),[A,r]),[C,N]=ne.useState([]),[R,F]=ne.useState(!1),[B,D]=ne.useState(!1),[L,M]=ne.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
316k":"light"),_=ne.useRef(null),X=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),V=ne.useRef(null),K=ne.useRef(!1),Z=ne.useCallback(Y=>{var ee;(ee=A.find(fe=>fe.id===Y.id))!=null&&ee.delete||ai.dismiss(Y.id),k(fe=>fe.filter(({id:ye})=>ye!==Y.id))},[A]);return ne.useEffect(()=>ai.subscribe(Y=>{if(Y.dismiss){k(ee=>ee.map(fe=>fe.id===Y.id?{...fe,delete:!0}:fe));return}setTimeout(()=>{Rw.flushSync(()=>{k(ee=>{let fe=ee.findIndex(ye=>ye.id===Y.id);return fe!==-1?[...ee.slice(0,fe),{...ee[fe],...Y},...ee.slice(fe+1)]:[Y,...ee]})})})}),[]),ne.useEffect(()=>{if(l!=="system"){M(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?M("dark"):M("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:Y})=>{M(Y?"dark":"light")})},[l]),ne.useEffect(()=>{A.length<=1&&F(!1)},[A]),ne.useEffect(()=>{let Y=ee=>{var fe,ye;n.every(lt=>ee[lt]||ee.code===lt)&&(F(!0),(fe=_.current)==null||fe.focus()),ee.code==="Escape"&&(document.activeElement===_.current||(ye=_.current)!=null&&ye.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[n]),ne.useEffect(()=>{if(_.current)return()=>{V.current&&(V.current.focus({preventScroll:!0}),V.current=null,K.current=!1)}},[_.current]),A.length?ne.createElement("section",{"aria-label":`${w} ${X}`,tabIndex:-1},P.map((Y,ee)=>{var fe;let[ye,lt]=Y.split("-");return ne.createElement("ol",{key:Y,dir:m==="auto"?NN():m,tabIndex:-1,ref:_,className:o,"data-sonner-toaster":!0,"data-theme":L,"data-y-position":ye,"data-x-position":lt,style:{"--front-toast-height":`${((fe=C[0])==null?void 0:fe.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||r7,"--width":`${i7}px`,"--gap":`${g}px`,...d},onBlur:Ae=>{K.current&&!Ae.currentTarget.contains(Ae.relatedTarget)&&(K.current=!1,V.current&&(V.current.focus({preventScroll:!0}),V.current=null))},onFocus:Ae=>{Ae.target instanceof HTMLElement&&Ae.target.dataset.dismissible==="false"||K.current||(K.current=!0,V.current=Ae.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{B||F(!1)},onPointerDown:Ae=>{Ae.target instanceof HTMLElement&&Ae.target.dataset.dismissible==="false"||D(!0)},onPointerUp:()=>D(!1)},A.filter(Ae=>!Ae.position&&ee===0||Ae.position===Y).map((Ae,At)=>{var Xe,Er;return ne.createElement(c7,{key:Ae.id,icons:v,index:At,toast:Ae,defaultRichColors:c,duration:(Xe=p==null?void 0:p.duration)!=null?Xe:u,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:e,visibleToasts:h,closeButton:(Er=p==null?void 0:p.closeButton)!=null?Er:s,interacting:B,position:Y,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:Z,toasts:A.filter(gr=>gr.position==Ae.position),heights:C.filter(gr=>gr.position==Ae.position),setHeights:N,expandByDefault:i,gap:g,loadingIcon:y,expanded:R,pauseWhenPageIsHidden:b,cn:E})}))})):null};const vk=({...t})=>{const{theme:e="system"}=z_();return f.jsx(u7,{theme:e,className:"toaster group",position:"top-right",expand:!1,richColors:!0,closeButton:!0,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"}},...t})},d7=({children:t})=>f.jsxs(f.Fragment,{children:[t,f.jsx(RD,{}),f.jsx(vk,{})]});/**
317 * @remix-run/router v1.20.0
318 *
319 * Copyright (c) Remix Software Inc.
320 *
321 * This source code is licensed under the MIT license found in the
322 * LICENSE.md file in the root directory of this source tree.
323 *
324 * @license MIT
325 */function Wt(){return Wt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
vendor: 3,112 bytes, line 325
325for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Wt.apply(this,arguments)}var vr;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(vr||(vr={}));const PN="popstate";function f7(t){t===void 0&&(t={});function e(n,i){let{pathname:s,search:o,hash:a}=n.location;return Dg("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:vu(i)}return p7(e,r,null,t)}function qe(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function dh(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function h7(){return Math.random().toString(36).substr(2,8)}function TN(t,e){return{usr:t.state,key:t.key,idx:e}}function Dg(t,e,r,n){return r===void 0&&(r=null),Wt({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ql(e):e,{state:r,key:e&&e.key||n||h7()})}function vu(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ql(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function p7(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,o=i.history,a=vr.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Wt({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){a=vr.Pop;let y=u(),v=y==null?null:y-c;c=y,l&&l({action:a,location:g.location,delta:v})}function h(y,v){a=vr.Push;let w=Dg(g.location,y,v);c=u()+1;let b=TN(w,c),E=g.createHref(w);try{o.pushState(b,"",E)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(E)}s&&l&&l({action:a,location:g.location,delta:1})}function p(y,v){a=vr.Replace;let w=Dg(g.location,y,v);c=u();let b=TN(w,c),E=g.createHref(w);o.replaceState(b,"",E),s&&l&&l({action:a,location:g.location,delta:0})}function m(y){let v=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof y=="string"?y:vu(y);return w=w.replace(/ $/,"%20"),qe(v,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,v)}let g={get action(){return a},get location(){return t(i,o)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(PN,d),l=y,()=>{i.removeEventListener(PN,d),l=null}},createHref(y){return e(i,y)},createURL:m,encodeLocation(y){let v=m(y);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:p,go(y){return o.go(y)}};return g}var Ft;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Ft||(Ft={}));const g7=new Set(["lazy","caseSensitive","path","id","index","children"]);function m7(t){return t.index===!0}function xy(t,e,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),t.map((i,s)=>{let o=[...r,String(s)],a=typeof i.id=="string"?i.id:o.join("-");if(qe(i.index!==!0||!i.children,"Cannot specify children on an index route"),qe(!n[a],'Found a route id collision on i
325d "'+a+`".  Route id's must be globally unique within Data Router usages`),m7(i)){let l=Wt({},i,e(i),{id:a});return n[a]=l,l}else{let l=Wt({},i,e(i),{id:a,children:void 0});return n[a]=l,i.children&&(l.children=xy(i.children,e,o,n)),l}})}function gc(t,e,r){return r===void 0&&(r="/"),Ev(t,e,r,!1)}function Ev(t,e,r,n){let i=typeof e=="string"?Ql(e):e,s=Fh(i.pathname||"/",r);if(s==null)return null;let o=jD(t);y7(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=T7(s);a=N7(o[l],c,n)}return a}function v7(t,e){let{route:r,pathname:n,params:i}=t;return{id:r.id,pathname:n,params:i,data:e[r.id],handle:r.handle}}function jD(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");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("/")&&(qe(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Zo([n,l.relativePath]),u=r.concat(l);s.children&&s.children.length>0&&(qe(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),jD(s.children,e,u,c)),!(s.path==null&&!s.index)&&e.push({path:c,score:A7(c,s.index),routesMeta:u})};return t.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of FD(s.path))i(s,o,l)}),e}function FD(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let o=FD(n.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function y7(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:C7(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const w7=/^:[\w-]+$/,b7=3,x7=2,S7=1,E7=10,k7=-2,RN=t=>t==="*";function A7(t,e){let r=t.split("/"),n=r.length;return r.some(RN)&&(n+=k7),e&&(n+=x7),r.filter(i=>!RN(i)).reduce((i,s)=>i+(w7.test(s)?b7:s===""?S7:E7),n)}function C7(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function N7(t,e,r){r===void 0&&(r=!1);let{routesMeta:n}=t,i={},s="/",o=[];for(let a=0;a<n.length;++a){let l=n[a],c=a===n.length-1,u=s==="/"?e:e.slice(s.length)||"/",d=jN({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!d&&c&&r&&!n[n.length-1].route.index&&(d=jN({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;
vendor: 44,616 bytes, lines 325-335
325Object.assign(i,d.params),o.push({params:i,pathname:Zo([s,d.pathname]),pathnameBase:F7(Zo([s,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(s=Zo([s,d.pathnameBase]))}return o}function jN(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=P7(t.path,t.caseSensitive,t.end),i=e.match(r);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:n.reduce((c,u,d)=>{let{paramName:h,isOptional:p}=u;if(h==="*"){let g=a[d]||"";o=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}const m=a[d];return p&&!m?c[h]=void 0:c[h]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:t}}function P7(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),dh(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function T7(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return dh(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Fh(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function R7(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?Ql(t):t;return{pathname:r?r.startsWith("/")?r:j7(r,e):e,search:O7(n),hash:D7(i)}}function j7(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function bx(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function OD(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function Mw(t,e){let r=OD(t);return e?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Bw(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=Ql(t):(i=Wt({},t),qe(!i.pathname||!i.pathname.includes("?"),bx("?","pathname","search",i)),qe(!i.pathname||!i.pathname.includes("#"),bx("#","pathname","hash",i)),qe(!i.search||!i.search.includes("#"),bx("#","search","hash",i)));let s=t===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=r;else{let d=e.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}a=d>=0?e[d]:"/"}let l=R7(i,a),c=o&&o!=="/"&&o.endsWith("/"),u=(s||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Zo=t=>t.join("/").replace(/\/\/+/g,"/"),F7=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),O7=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,D7=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class Sy{constructor(e,r,n,i){i===void 0&&(i=!1),this.status=e,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Lw(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const DD=["post","put","patch","delete"],I7=new Set(DD),M7=["get",...DD],B7=new Set(M7),L7=new Set([301,302,303,307,308]),U7=new Set([307,308]),xx={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},z7={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},cp={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},yk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_7=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),ID="remix-router-transitions";function V7(t){const e=t.window?t.window:typeof window<"u"?window:void 0,r=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",n=!r;qe(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(t.mapRouteProperties)i=t.mapRouteProperties;else if(t.detectErrorBoundary){let I=t.detectErrorBoundary;i=H=>({hasErrorBoundary:I(H)})}else i=_7;let s={},o=xy(t.routes,i,void 0,s),a,l=t.basename||"/",c=t.dataStrategy||K7,u=t.patchRoutesOnNavigation,d=Wt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},t.future),h=null,p=new Set,m=null,g=null,y=null,v=t.hydrationData!=null,w=gc(o,t.history.location,l),b=null;if(w==null&&!u){let I=Ln(404,{pathname:t.history.location.pathname}),{matches:H,route:q}=VN(o);w=H,b={[q.id]:I}}w&&!t.hydrationData&&e0(w,o,t.history.location.pathname).active&&(w=null);let E;if(w)if(w.some(I=>I.route.lazy))E=!1;else if(!w.some(I=>I.route.loader))E=!0;else if(d.v7_partialHydration){let I=t.hydrationData?t.hydrationData.loaderData:null,H=t.hydrationData?t.hydrationData.errors:null;if(H){let q=w.findIndex(te=>H[te.route.id]!==void 0);E=w.slice(0,q+1).every(te=>!AS(te.route,I,H))}else E=w.every(q=>!AS(q.route,I,H))}else E=t.hydrationData!=null;else if(E=!1,w=[],d.v7_partialHydration){let I=e0(null,o,t.history.location.pathname);I.active&&I.matches&&(w=I.matches)}let A,k={historyAction:t.history.action,location:t.history.location,matches:w,initialized:E,navigation:xx,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||b,fetchers:new Map,blockers:new Map},P=vr.Pop,C=!1,N,R=!1,F=new Map,B=null,D=!1,L=!1,M=[],_=new Set,X=new Map,V=0,K=-1,Z=new Map,Y=new Set,ee=new Map,fe=new Map,ye=new Set,lt=new Map,Ae=new Map,At;function Xe(){if(h=t.history.listen(I=>{let{action:H,location:q,delta:te}=I;if(At){At(),At=void 0;return}dh(Ae.size===0||te!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let ue=Tt({currentLocation:k.location,nextLocation:q,historyAction:H});if(ue&&te!=null){let we=new Promise(De=>{At=De});t.history.go(te*-1),je(ue,{state:"blocked",location:q,proceed(){je(ue,{state:"proceeding",proceed:void 0,reset:void 0,location:q}),we.then(()=>t.history.go(te))},reset(){let De=new Map(k.blockers);De.set(ue,cp),er({blockers:De})}});return}return et(H,q)}),r){o9(e,F);let I=()=>a9(e,F);e.addEventListener("pagehide",I),B=()=>e.removeEventListener("pagehide",I)}return k.initialized||et(vr.Pop,k.location,{initialHydration:!0}),A}function Er(){h&&h(),B&&B(),p.clear(),N&&N.abort(),k.fetchers.forEach((I,H)=>rc(H)),k.blockers.forEach((I,H)=>$m(H))}function gr(I){return p.add(I),()=>p.delete(I)}function er(I,H){H===void 0&&(H={}),k=Wt({},k,I);let q=[],te=[];d.v7_fetcherPersist&&k.fetchers.forEach((ue,we)=>{ue.state==="idle"&&(ye.has(we)?te.push(we):q.push(we))}),[...p].forEach(ue=>ue(k,{deletedFetchers:te,viewTransitionOpts:H.viewTransitionOpts,flushSync:H.flushSync===!0})),d.v7_fetcherPersist&&(q.forEach(ue=>k.fetchers.delete(ue)),te.forEach(ue=>rc(ue)))}function kr(I,H,q){var te,ue;let{flushSync:we}=q===void 0?{}:q,De=k.actionData!=null&&k.navigation.formMethod!=null&&bs(k.navigation.formMethod)&&k.navigation.state==="loading"&&((te=I.state)==null?void 0:te._isRedirect)!==!0,he;H.actionData?Object.keys(H.actionData).length>0?he=H.actionData:he=null:De?he=k.actionData:he=null;let pe=H.loaderData?zN(k.loaderData,H.loaderData,H.matches||[],H.errors):k.loaderData,de=k.blockers;de.size>0&&(de=new Map(de),de.forEach((ct,Vr)=>de.set(Vr,cp)));let be=C===!0||k.navigation.formMethod!=null&&bs(k.navigation.formMethod)&&((ue=I.state)==null?void 0:ue._isRedirect)!==!0;a&&(o=a,a=void 0),D||P===vr.Pop||(P===vr.Push?t.history.push(I,I.state):P===vr.Replace&&t.history.replace(I,I.state));let Ye;if(P===vr.Pop){let ct=F.get(k.location.pathname);ct&&ct.has(I.pathname)?Ye={currentLocation:k.location,nextLocation:I}:F.has(I.pathname)&&(Ye={currentLocation:I,nextLocation:k.location})}else if(R){let ct=F.get(k.location.pathname);ct?ct.add(I.pathname):(ct=new Set([I.pathname]),F.set(k.location.pathname,ct)),Ye={currentLocation:k.location,nextLocation:I}}er(Wt({},H,{actionData:he,loaderData:pe,historyAction:P,location:I,initialized:!0,navigation:xx,revalidation:"idle",restoreScrollPosition:tC(I,H.matches||k.matches),preventScrollReset:be,blockers:de}),{viewTransitionOpts:Ye,flushSync:we===!0}),P=vr.Pop,C=!1,R=!1,D=!1,L=!1,M=[]}async function Or(I,H){if(typeof I=="number"){t.history.go(I);return}let q=kS(k.location,k.matches,l,d.v7_prependBasename,I,d.v7_relativeSplatPath,H==null?void 0:H.fromRouteId,H==null?void 0:H.relative),{path:te,submission:ue,error:we}=FN(d.v7_normalizeFormMethod,!1,q,H),De=k.location,he=Dg(k.location,te,H&&H.state);he=Wt({},he,t.history.encodeLocation(he));let pe=H&&H.replace!=null?H.replace:void 0,de=vr.Push;pe===!0?de=vr.Replace:pe===!1||ue!=null&&bs(ue.formMethod)&&ue.formAction===k.location.pathname+k.location.search&&(de=vr.Replace);let be=H&&"preventScrollReset"in H?H.preventScrollReset===!0:void 0,Ye=(H&&H.flushSync)===!0,ct=Tt({currentLocation:De,nextLocation:he,historyAction:de});if(ct){je(ct,{state:"blocked",location:he,proceed(){je(ct,{state:"proceeding",proceed:void 0,reset:void 0,location:he}),Or(I,H)},reset(){let Vr=new Map(k.blockers);Vr.set(ct,cp),er({blockers:Vr})}});return}return await et(de,he,{submission:ue,pendingError:we,preventScrollReset:be,replace:H&&H.replace,enableViewTransition:H&&H.viewTransition,flushSync:Ye})}function We(){if(tc(),er({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){et(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}et(P||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:R===!0})}}async function et(I,H,q){N&&N.abort(),N=null,P=I,D=(q&&q.startUninterruptedRevalidation)===!0,_b(k.location,k.matches),C=(q&&q.preventScrollReset)===!0,R=(q&&q.enableViewTransition)===!0;let te=a||o,ue=q&&q.overrideNavigation,we=gc(te,H,l),De=(q&&q.flushSync)===!0,he=e0(we,te,H.pathname);if(he.active&&he.matches&&(we=he.matches),!we){let{error:Dt,notFoundMatches:mt,route:tr}=xt(H.pathname);kr(H,{matches:mt,loaderData:{},errors:{[tr.id]:Dt}},{flushSync:De});return}if(k.initialized&&!L&&Z7(k.location,H)&&!(q&&q.submission&&bs(q.submission.formMethod))){kr(H,{matches:we},{flushSync:De});return}N=new AbortController;let pe=Xu(t.history,H,N.signal,q&&q.submission),de;if(q&&q.pendingError)de=[mc(we).route.id,{type:Ft.error,error:q.pendingError}];else if(q&&q.submission&&bs(q.submission.formMethod)){let Dt=await Ht(pe,H,q.submission,we,he.active,{replace:q.replace,flushSync:De});if(Dt.shortCircuited)return;if(Dt.pendingActionResult){let[mt,tr]=Dt.pendingActionResult;if(ci(tr)&&Lw(tr.error)&&tr.error.status===404){N=null,kr(H,{matches:Dt.matches,loaderData:{},errors:{[mt]:tr.error}});return}}we=Dt.matches||we,de=Dt.pendingActionResult,ue=Sx(H,q.submission),De=!1,he.active=!1,pe=Xu(t.history,pe.url,pe.signal)}let{shortCircuited:be,matches:Ye,loaderData:ct,errors:Vr}=await Dr(pe,H,we,he.active,ue,q&&q.submission,q&&q.fetcherSubmission,q&&q.replace,q&&q.initialHydration===!0,De,de);be||(N=null,kr(H,Wt({matches:Ye||we},_N(de),{loaderData:ct,errors:Vr})))}async function Ht(I,H,q,te,ue,we){we===void 0&&(we={}),tc();let De=i9(H,q);if(er({navigation:De},{flushSync:we.flushSync===!0}),ue){let de=await t0(te,H.pathname,I.signal);if(de.type==="aborted")return{shortCircuited:!0};if(de.type==="error"){let be=mc(de.partialMatches).route.id;return{matches:de.partialMatches,pendingActionResult:[be,{type:Ft.error,error:de.error}]}}else if(de.matches)te=de.matches;else{let{notFoundMatches:be,error:Ye,route:ct}=xt(H.pathname);return{matches:be,pendingActionResult:[ct.id,{type:Ft.error,error:Ye}]}}}let he,pe=Rp(te,H);if(!pe.route.action&&!pe.route.lazy)he={type:Ft.error,error:Ln(405,{method:I.method,pathname:H.pathname,routeId:pe.route.id})};else if(he=(await ec("action",k,I,[pe],te,null))[pe.route.id],I.signal.aborted)return{shortCircuited:!0};if(Cc(he)){let de;return we&&we.replace!=null?de=we.replace:de=BN(he.response.headers.get("Location"),new URL(I.url),l)===k.location.pathname+k.location.search,await Ei(I,he,!0,{submission:q,replace:de}),{shortCircuited:!0}}if(ml(he))throw Ln(400,{type:"defer-action"});if(ci(he)){let de=mc(te,pe.route.id);return(we&&we.replace)!==!0&&(P=vr.Push),{matches:te,pendingActionResult:[de.route.id,he]}}return{matches:te,pendingActionResult:[pe.route.id,he]}}async function Dr(I,H,q,te,ue,we,De,he,pe,de,be){let Ye=ue||Sx(H,we),ct=we||De||GN(Ye),Vr=!D&&(!d.v7_partialHydration||!pe);if(te){if(Vr){let rr=Si(be);er(Wt({navigation:Ye},rr!==void 0?{actionData:rr}:{}),{flushSync:de})}let ft=await t0(q,H.pathname,I.signal);if(ft.type==="aborted")return{shortCircuited:!0};if(ft.type==="error"){let rr=mc(ft.partialMatches).route.id;return{matches:ft.partialMatches,loaderData:{},errors:{[rr]:ft.error}}}else if(ft.matches)q=ft.matches;else{let{error:rr,notFoundMatches:Ku,route:Zh}=xt(H.pathname);return{matches:Ku,loaderData:{},errors:{[Zh.id]:rr}}}}let Dt=a||o,[mt,tr]=DN(t.history,k,q,ct,H,d.v7_partialHydration&&pe===!0,d.v7_skipActionErrorRevalidation,L,M,_,ye,ee,Y,Dt,l,be);if(On(ft=>!(q&&q.some(rr=>rr.route.id===ft))||mt&&mt.some(rr=>rr.route.id===ft)),K=++V,mt.length===0&&tr.length===0){let ft=Zm();return kr(H,Wt({matches:q,loaderData:{},errors:be&&ci(be[1])?{[be[0]]:be[1].error}:null},_N(be),ft?{fetchers:new Map(k.fetchers)}:{}),{flushSync:de}),{shortCircuited:!0}}if(Vr){let ft={};if(!te){ft.navigation=Ye;let rr=Si(be);rr!==void 0&&(ft.actionData=rr)}tr.length>0&&(ft.fetchers=qt(tr)),er(ft,{flushSync:de})}tr.forEach(ft=>{ss(ft.key),ft.controller&&X.set(ft.key,ft.controller)});let Wu=()=>tr.forEach(ft=>ss(ft.key));N&&N.signal.addEventListener("abort",Wu);let{loaderResults:Yh,fetcherResults:xo}=await Qh(k,q,mt,tr,I);if(I.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",Wu),tr.forEach(ft=>X.delete(ft.key));let Bs=A0(Yh);if(Bs)return await Ei(I,Bs.result,!0,{replace:he}),{shortCircuited:!0};if(Bs=A0(xo),Bs)return Y.add(Bs.key),await Ei(I,Bs.result,!0,{replace:he}),{shortCircuited:!0};let{loaderData:Vb,errors:Jh}=UN(k,q,Yh,be,tr,xo,lt);lt.forEach((ft,rr)=>{ft.subscribe(Ku=>{(Ku||ft.done)&&lt.delete(rr)})}),d.v7_partialHydration&&pe&&k.errors&&(Jh=Wt({},k.errors,Jh));let ic=Zm(),r0=Gu(K),n0=ic||r0||tr.length>0;return Wt({matches:q,loaderData:Vb,errors:Jh},n0?{fetchers:new Map(k.fetchers)}:{})}function Si(I){if(I&&!ci(I[1]))return{[I[0]]:I[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function qt(I){return I.forEach(H=>{let q=k.fetchers.get(H.key),te=up(void 0,q?q.data:void 0);k.fetchers.set(H.key,te)}),new Map(k.fetchers)}function fn(I,H,q,te){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ss(I);let ue=(te&&te.flushSync)===!0,we=a||o,De=kS(k.location,k.matches,l,d.v7_prependBasename,q,d.v7_relativeSplatPath,H,te==null?void 0:te.relative),he=gc(we,De,l),pe=e0(he,we,De);if(pe.active&&pe.matches&&(he=pe.matches),!he){ki(I,H,Ln(404,{pathname:De}),{flushSync:ue});return}let{path:de,submission:be,error:Ye}=FN(d.v7_normalizeFormMethod,!0,De,te);if(Ye){ki(I,H,Ye,{flushSync:ue});return}let ct=Rp(he,de),Vr=(te&&te.preventScrollReset)===!0;if(be&&bs(be.formMethod)){Ar(I,H,de,ct,he,pe.active,ue,Vr,be);return}ee.set(I,{routeId:H,path:de}),Ub(I,H,de,ct,he,pe.active,ue,Vr,be)}async function Ar(I,H,q,te,ue,we,De,he,pe){tc(),ee.delete(I);function de(mr){if(!mr.route.action&&!mr.route.lazy){let qu=Ln(405,{method:pe.formMethod,pathname:q,routeId:H});return ki(I,H,qu,{flushSync:De}),!0}return!1}if(!we&&de(te))return;let be=k.fetchers.get(I);hn(I,s9(pe,be),{flushSync:De});let Ye=new AbortController,ct=Xu(t.history,q,Ye.signal,pe);if(we){let mr=await t0(ue,q,ct.signal);if(mr.type==="aborted")return;if(mr.type==="error"){ki(I,H,mr.error,{flushSync:De});return}else if(mr.matches){if(ue=mr.matches,te=Rp(ue,q),de(te))return}else{ki(I,H,Ln(404,{pathname:q}),{flushSync:De});return}}X.set(I,Ye);let Vr=V,mt=(await ec("action",k,ct,[te],ue,I))[te.route.id];if(ct.signal.aborted){X.get(I)===Ye&&X.delete(I);return}if(d.v7_fetcherPersist&&ye.has(I)){if(Cc(mt)||ci(mt)){hn(I,Na(void 0));return}}else{if(Cc(mt))if(X.delete(I),K>Vr){hn(I,Na(void 0));return}else return Y.add(I),hn(I,up(pe)),Ei(ct,mt,!1,{fetcherSubmission:pe,preventScrollReset:he});if(ci(mt)){ki(I,H,mt.error);return}}if(ml(mt))throw Ln(400,{type:"defer-action"});let tr=k.navigation.location||k.location,Wu=Xu(t.history,tr,Ye.signal),Yh=a||o,xo=k.navigation.state!=="idle"?gc(Yh,k.navigation.location,l):k.matches;qe(xo,"Didn't find any matches after fetcher action");let Bs=++V;Z.set(I,Bs);let Vb=up(pe,mt.data);k.fetchers.set(I,Vb);let[Jh,ic]=DN(t.history,k,xo,pe,tr,!1,d.v7_skipActionErrorRevalidation,L,M,_,ye,ee,Y,Yh,l,[te.route.id,mt]);ic.filter(mr=>mr.key!==I).forEach(mr=>{let qu=mr.key,rC=k.fetchers.get(qu),eL=up(void 0,rC?rC.data:void 0);k.fetchers.set(qu,eL),ss(qu),mr.controller&&X.set(qu,mr.controller)}),er({fetchers:new Map(k.fetchers)});let r0=()=>ic.forEach(mr=>ss(mr.key));Ye.signal.addEventListener("abort",r0);let{loaderResults:n0,fetcherResults:ft}=await Qh(k,xo,Jh,ic,Wu);if(Ye.signal.aborted)return;Ye.signal.removeEventListener("abort",r0),Z.delete(I),X.delete(I),ic.forEach(mr=>X.delete(mr.key));let rr=A0(n0);if(rr)return Ei(Wu,rr.result,!1,{preventScrollReset:he});if(rr=A0(ft),rr)return Y.add(rr.key),Ei(Wu,rr.result,!1,{preventScrollReset:he});let{loaderData:Ku,errors:Zh}=UN(k,xo,n0,void 0,ic,ft,lt);if(k.fetchers.has(I)){let mr=Na(mt.data);k.fetchers.set(I,mr)}Gu(Bs),k.navigation.state==="loading"&&Bs>K?(qe(P,"Expected pending action"),N&&N.abort(),kr(k.navigation.location,{matches:xo,loaderData:Ku,errors:Zh,fetchers:new Map(k.fetchers)})):(er({errors:Zh,loaderData:zN(k.loaderData,Ku,xo,Zh),fetchers:new Map(k.fetchers)}),L=!1)}async function Ub(I,H,q,te,ue,we,De,he,pe){let de=k.fetchers.get(I);hn(I,up(pe,de?de.data:void 0),{flushSync:De});let be=new AbortController,Ye=Xu(t.history,q,be.signal);if(we){let mt=await t0(ue,q,Ye.signal);if(mt.type==="aborted")return;if(mt.type==="error"){ki(I,H,mt.error,{flushSync:De});return}else if(mt.matches)ue=mt.matches,te=Rp(ue,q);else{ki(I,H,Ln(404,{pathname:q}),{flushSync:De});return}}X.set(I,be);let ct=V,Dt=(await ec("loader",k,Ye,[te],ue,I))[te.route.id];if(ml(Dt)&&(Dt=await wk(Dt,Ye.signal,!0)||Dt),X.get(I)===be&&X.delete(I),!Ye.signal.aborted){if(ye.has(I)){hn(I,Na(void 0));return}if(Cc(Dt))if(K>ct){hn(I,Na(void 0));return}else{Y.add(I),await Ei(Ye,Dt,!1,{preventScrollReset:he});return}if(ci(Dt)){ki(I,H,Dt.error);return}qe(!ml(Dt),"Unhandled fetcher deferred data"),hn(I,Na(Dt.data))}}async function Ei(I,H,q,te){let{submission:ue,fetcherSubmission:we,preventScrollReset:De,replace:he}=te===void 0?{}:te;H.response.headers.has("X-Remix-Revalidate")&&(L=!0);let pe=H.response.headers.get("Location");qe(pe,"Expected a Location header on the redirect Response"),pe=BN(pe,new URL(I.url),l);let de=Dg(k.location,pe,{_isRedirect:!0});if(r){let mt=!1;if(H.response.headers.has("X-Remix-Reload-Document"))mt=!0;else if(yk.test(pe)){const tr=t.history.createURL(pe);mt=tr.origin!==e.location.origin||Fh(tr.pathname,l)==null}if(mt){he?e.location.replace(pe):e.location.assign(pe);return}}N=null;let be=he===!0||H.response.headers.has("X-Remix-Replace")?vr.Replace:vr.Push,{formMethod:Ye,formAction:ct,formEncType:Vr}=k.navigation;!ue&&!we&&Ye&&ct&&Vr&&(ue=GN(k.navigation));let Dt=ue||we;if(U7.has(H.response.status)&&Dt&&bs(Dt.formMethod))await et(be,de,{submission:Wt({},Dt,{formAction:pe}),preventScrollReset:De||C,enableViewTransition:q?R:void 0});else{let mt=Sx(de,ue);await et(be,de,{overrideNavigation:mt,fetcherSubmission:we,preventScrollReset:De||C,enableViewTransition:q?R:void 0})}}async function ec(I,H,q,te,ue,we){let De,he={};try{De=await q7(c,I,H,q,te,ue,we,s,i)}catch(pe){return te.forEach(de=>{he[de.route.id]={type:Ft.error,error:pe}}),he}for(let[pe,de]of Object.entries(De))if($7(de)){let be=de.result;he[pe]={type:Ft.redirect,response:Y7(be,q,pe,ue,l,d.v7_relativeSplatPath)}}else he[pe]=await X7(de);return he}async function Qh(I,H,q,te,ue){let we=I.matches,De=ec("loader",I,ue,q,H,null),he=Promise.all(te.map(async be=>{if(be.matches&&be.match&&be.controller){let ct=(await ec("loader",I,Xu(t.history,be.path,be.controller.signal),[be.match],be.matches,be.key))[be.match.route.id];return{[be.key]:ct}}else return Promise.resolve({[be.key]:{type:Ft.error,error:Ln(404,{pathname:be.path})}})})),pe=await De,de=(await he).reduce((be,Ye)=>Object.assign(be,Ye),{});return await Promise.all([r9(H,pe,ue.signal,we,I.loaderData),n9(H,de,te)]),{loaderResults:pe,fetcherResults:de}}function tc(){L=!0,M.push(...On()),ee.forEach((I,H)=>{X.has(H)&&_.add(H),ss(H)})}function hn(I,H,q){q===void 0&&(q={}),k.fetchers.set(I,H),er({fetchers:new Map(k.fetchers)},{flushSync:(q&&q.flushSync)===!0})}function ki(I,H,q,te){te===void 0&&(te={});let ue=mc(k.matches,H);rc(I),er({errors:{[ue.route.id]:q},fetchers:new Map(k.fetchers)},{flushSync:(te&&te.flushSync)===!0})}function bo(I){return d.v7_fetcherPersist&&(fe.set(I,(fe.get(I)||0)+1),ye.has(I)&&ye.delete(I)),k.fetchers.get(I)||z7}function rc(I){let H=k.fetchers.get(I);X.has(I)&&!(H&&H.state==="loading"&&Z.has(I))&&ss(I),ee.delete(I),Z.delete(I),Y.delete(I),ye.delete(I),_.delete(I),k.fetchers.delete(I)}function zb(I){if(d.v7_fetcherPersist){let H=(fe.get(I)||0)-1;H<=0?(fe.delete(I),ye.add(I)):fe.set(I,H)}else rc(I);er({fetchers:new Map(k.fetchers)})}function ss(I){let H=X.get(I);H&&(H.abort(),X.delete(I))}function Xh(I){for(let H of I){let q=bo(H),te=Na(q.data);k.fetchers.set(H,te)}}function Zm(){let I=[],H=!1;for(let q of Y){let te=k.fetchers.get(q);qe(te,"Expected fetcher: "+q),te.state==="loading"&&(Y.delete(q),I.push(q),H=!0)}return Xh(I),H}function Gu(I){let H=[];for(let[q,te]of Z)if(te<I){let ue=k.fetchers.get(q);qe(ue,"Expected fetcher: "+q),ue.state==="loading"&&(ss(q),Z.delete(q),H.push(q))}return Xh(H),H.length>0}function Ms(I,H){let q=k.blockers.get(I)||cp;return Ae.get(I)!==H&&Ae.set(I,H),q}function $m(I){k.blockers.delete(I),Ae.delete(I)}function je(I,H){let q=k.blockers.get(I)||cp;qe(q.state==="unblocked"&&H.state==="blocked"||q.state==="blocked"&&H.state==="blocked"||q.state==="blocked"&&H.state==="proceeding"||q.state==="blocked"&&H.state==="unblocked"||q.state==="proceeding"&&H.state==="unblocked","Invalid blocker state transition: "+q.state+" -> "+H.state);let te=new Map(k.blockers);te.set(I,H),er({blockers:te})}function Tt(I){let{currentLocation:H,nextLocation:q,historyAction:te}=I;if(Ae.size===0)return;Ae.size>1&&dh(!1,"A router only supports one blocker at a time");let ue=Array.from(Ae.entries()),[we,De]=ue[ue.length-1],he=k.blockers.get(we);if(!(he&&he.state==="proceeding")&&De({currentLocation:H,nextLocation:q,historyAction:te}))return we}function xt(I){let H=Ln(404,{pathname:I}),q=a||o,{matches:te,route:ue}=VN(q);return On(),{notFoundMatches:te,route:ue,error:H}}function On(I){let H=[];return lt.forEach((q,te)=>{(!I||I(te))&&(q.cancel(),H.push(te),lt.delete(te))}),H}function Ai(I,H,q){if(m=I,y=H,g=q||null,!v&&k.navigation===xx){v=!0;let te=tC(k.location,k.matches);te!=null&&er({restoreScrollPosition:te})}return()=>{m=null,y=null,g=null}}function nc(I,H){return g&&g(I,H.map(te=>v7(te,k.loaderData)))||I.key}function _b(I,H){if(m&&y){let q=nc(I,H);m[q]=y()}}function tC(I,H){if(m){let q=nc(I,H),te=m[q];if(typeof te=="number")return te}return null}function e0(I,H,q){if(u)if(I){if(Object.keys(I[0].params).length>0)return{active:!0,matches:Ev(H,q,l,!0)}}else return{active:!0,matches:Ev(H,q,l,!0)||[]};return{active:!1,matches:null}}async function t0(I,H,q){if(!u)return{type:"success",matches:I};let te=I;for(;;){let ue=a==null,we=a||o,De=s;try{await u({path:H,matches:te,patch:(de,be)=>{q.aborted||MN(de,be,we,De,i)}})}catch(de){return{type:"error",error:de,partialMatches:te}}finally{ue&&!q.aborted&&(o=[...o])}if(q.aborted)return{type:"aborted"};let he=gc(we,H,l);if(he)return{type:"success",matches:he};let pe=Ev(we,H,l,!0);if(!pe||te.length===pe.length&&te.every((de,be)=>de.route.id===pe[be].route.id))return{type:"success",matches:null};te=pe}}function ZB(I){s={},a=xy(I,i,void 0,s)}function $B(I,H){let q=a==null;MN(I,H,a||o,s,i),q&&(o=[...o],er({}))}return A={get basename(){return l},get future(){return d},get state(){return k},get routes(){return o},get window(){return e},initialize:Xe,subscribe:gr,enableScrollRestoration:Ai,navigate:Or,fetch:fn,revalidate:We,createHref:I=>t.history.createHref(I),encodeLocation:I=>t.history.encodeLocation(I),getFetcher:bo,deleteFetcher:zb,dispose:Er,getBlocker:Ms,deleteBlocker:$m,patchRoutes:$B,_internalFetchControllers:X,_internalActiveDeferreds:lt,_internalSetRoutes:ZB},A}function H7(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function kS(t,e,r,n,i,s,o,a){let l,c;if(o){l=[];for(let d of e)if(l.push(d),d.route.id===o){c=d;break}}else l=e,c=e[e.length-1];let u=Bw(i||".",Mw(l,s),Fh(t.pathname,r)||t.pathname,a==="path");if(i==null&&(u.search=t.search,u.hash=t.hash),(i==null||i===""||i===".")&&c){let d=bk(u.search);if(c.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&d){let h=new URLSearchParams(u.search),p=h.getAll("index");h.delete("index"),p.filter(g=>g).forEach(g=>h.append("index",g));let m=h.toString();u.search=m?"?"+m:""}}return n&&r!=="/"&&(u.pathname=u.pathname==="/"?r:Zo([r,u.pathname])),vu(u)}function FN(t,e,r,n){if(!n||!H7(n))return{path:r};if(n.formMethod&&!t9(n.formMethod))return{path:r,error:Ln(405,{method:n.formMethod})};let i=()=>({path:r,error:Ln(400,{type:"invalid-body"})}),s=n.formMethod||"get",o=t?s.toUpperCase():s.toLowerCase(),a=LD(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!bs(o))return i();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((p,m)=>{let[g,y]=m;return""+p+g+"="+y+`
326`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!bs(o))return i();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}qe(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=CS(n.formData),c=n.formData;else if(n.body instanceof FormData)l=CS(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=LN(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=LN(l)}catch{return i()}let u={formMethod:o,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(bs(u.formMethod))return{path:r,submission:u};let d=Ql(r);return e&&d.search&&bk(d.search)&&l.append("index",""),d.search="?"+l,{path:vu(d),submission:u}}function ON(t,e,r){r===void 0&&(r=!1);let n=t.findIndex(i=>i.route.id===e);return n>=0?t.slice(0,r?n+1:n):t}function DN(t,e,r,n,i,s,o,a,l,c,u,d,h,p,m,g){let y=g?ci(g[1])?g[1].error:g[1].data:void 0,v=t.createURL(e.location),w=t.createURL(i),b=r;s&&e.errors?b=ON(r,Object.keys(e.errors)[0],!0):g&&ci(g[1])&&(b=ON(r,g[0]));let E=g?g[1].statusCode:void 0,A=o&&E&&E>=400,k=b.filter((C,N)=>{let{route:R}=C;if(R.lazy)return!0;if(R.loader==null)return!1;if(s)return AS(R,e.loaderData,e.errors);if(G7(e.loaderData,e.matches[N],C)||l.some(D=>D===C.route.id))return!0;let F=e.matches[N],B=C;return IN(C,Wt({currentUrl:v,currentParams:F.params,nextUrl:w,nextParams:B.params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:A?!1:a||v.pathname+v.search===w.pathname+w.search||v.search!==w.search||MD(F,B)}))}),P=[];return d.forEach((C,N)=>{if(s||!r.some(L=>L.route.id===C.routeId)||u.has(N))return;let R=gc(p,C.path,m);if(!R){P.push({key:N,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let F=e.fetchers.get(N),B=Rp(R,C.path),D=!1;h.has(N)?D=!1:c.has(N)?(c.delete(N),D=!0):F&&F.state!=="idle"&&F.data===void 0?D=a:D=IN(B,Wt({currentUrl:v,currentParams:e.matches[e.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:A?!1:a})),D&&P.push({key:N,routeId:C.routeId,path:C.path,matches:R,match:B,controller:new AbortController})}),[k,P]}function AS(t,e,r){if(t.lazy)return!0;if(!t.loader)return!1;let n=e!=null&&e[t.id]!==void 0,i=r!=null&&r[t.id]!==void 0;return!n&&i?!1:typeof t.loader=="function"&&t.loader.hydrate===!0?!0:!n&&!i}function G7(t,e,r){let n=!e||r.route.id!==e.route.id,i=t[r.route.id]===void 0;return n||i}function MD(t,e){let r=t.route.path;return t.pathname!==e.pathname||r!=null&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function IN(t,e){if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate(e);if(typeof r=="boolean")return r}return e.defaultShouldRevalidate}function MN(t,e,r,n,i){var s;let o;if(t){let c=n[t];qe(c,"No route found to patch children into: routeId = "+t),c.children||(c.children=[]),o=c.children}else o=r;let a=e.filter(c=>!o.some(u=>BD(c,u))),l=xy(a,i,[t||"_","patch",String(((s=o)==null?void 0:s.length)||"0")],n);o.push(...l)}function BD(t,e){return"id"in t&&"id"in e&&t.id===e.id?!0:t.index===e.index&&t.path===e.path&&t.caseSensitive===e.caseSensitive?(!t.children||t.children.length===0)&&(!e.children||e.children.length===0)?!0:t.children.every((r,n)=>{var i;return(i=e.children)==null?void 0:i.some(s=>BD(r,s))}):!1}async function W7(t,e,r){if(!t.lazy)return;let n=await t.lazy();if(!t.lazy)return;let i=r[t.id];qe(i,"No route found in manifest");let s={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";dh(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!g7.has(o)&&(s[o]=n[o])}Object.assign(i,s),Object.assign(i,Wt({},e(i),{lazy:void 0}))}async function K7(t){let{matches:e}=t,r=e.filter(i=>i.shouldLoad);return(await Promise.all(r.map(i=>i.resolve()))).reduce((i,s,o)=>Object.assign(i,{[r[o].route.id]:s}),{})}async function q7(t,e,r,n,i,s,o,a,l,c){let u=s.map(p=>p.route.lazy?W7(p.route,l,a):void 0),d=s.map((p,m)=>{let g=u[m],y=i.some(w=>w.route.id===p.route.id);return Wt({},p,{shouldLoad:y,resolve:async w=>(w&&n.method==="GET"&&(p.route.lazy||p.route.loader)&&(y=!0),y?Q7(e,n,p,g,w,c):Promise.resolve({type:Ft.data,result:void 0}))})}),h=await t({matches:d,request:n,params:s[0].params,fetcherKey:o,context:c});try{await Promise.all(u)}catch{}return h}async function Q7(t,e,r,n,i,s){let o,a,l=c=>{let u,d=new Promise((m,g)=>u=g);a=()=>u(),e.signal.addEventListener("abort",a);let h=m=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+t+'" [routeId: '+r.route.id+"]"))):c({request:e,params:r.params,context:s},...m!==void 0?[m]:[]),p=(async()=>{try{return{type:"data",result:await(i?i(g=>h(g)):h())}}catch(m){return{type:"error",result:m}}})();return Promise.race([p,d])};try{let c=r.route[t];if(n)if(c){let u,[d]=await Promise.all([l(c).catch(h=>{u=h}),n]);if(u!==void 0)throw u;o=d}else if(await n,c=r.route[t],c)o=await l(c);else if(t==="action"){let u=new URL(e.url),d=u.pathname+u.search;throw Ln(405,{method:e.method,pathname:d,routeId:r.route.id})}else return{type:Ft.data,result:void 0};else if(c)o=await l(c);else{let u=new URL(e.url),d=u.pathname+u.search;throw Ln(404,{pathname:d})}qe(o.result!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:Ft.error,result:c}}finally{a&&e.signal.removeEventListener("abort",a)}return o}async function X7(t){let{result:e,type:r}=t;if(UD(e)){let c;try{let u=e.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?e.body==null?c=null:c=await e.json():c=await e.text()}catch(u){return{type:Ft.error,error:u}}return r===Ft.error?{type:Ft.error,error:new Sy(e.status,e.statusText,c),statusCode:e.status,headers:e.headers}:{type:Ft.data,data:c,statusCode:e.status,headers:e.headers}}if(r===Ft.error){if(HN(e)){var n;if(e.data instanceof Error){var i;return{type:Ft.error,error:e.data,statusCode:(i=e.init)==null?void 0:i.status}}e=new Sy(((n=e.init)==null?void 0:n.status)||500,void 0,e.data)}return{type:Ft.error,error:e,statusCode:Lw(e)?e.status:void 0}}if(e9(e)){var s,o;return{type:Ft.deferred,deferredData:e,statusCode:(s=e.init)==null?void 0:s.status,headers:((o=e.init)==null?void 0:o.headers)&&new Headers(e.init.headers)}}if(HN(e)){var a,l;return{type:Ft.data,data:e.data,statusCode:(a=e.init)==null?void 0:a.status,headers:(l=e.init)!=null&&l.headers?new Headers(e.init.headers):void 0}}return{type:Ft.data,data:e}}function Y7(t,e,r,n,i,s){let o=t.headers.get("Location");if(qe(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!yk.test(o)){let a=n.slice(0,n.findIndex(l=>l.route.id===r)+1);o=kS(new URL(e.url),a,i,!0,o,s),t.headers.set("Location",o)}return t}function BN(t,e,r){if(yk.test(t)){let n=t,i=n.startsWith("//")?new URL(e.protocol+n):new URL(n),s=Fh(i.pathname,r)!=null;if(i.origin===e.origin&&s)return i.pathname+i.search+i.hash}return t}function Xu(t,e,r,n){let i=t.createURL(LD(e)).toString(),s={signal:r};if(n&&bs(n.formMethod)){let{formMethod:o,formEncType:a}=n;s.method=o.toUpperCase(),a==="application/json"?(s.headers=new Headers({"Content-Type":a}),s.body=JSON.stringify(n.json)):a==="text/plain"?s.body=n.text:a==="application/x-www-form-urlencoded"&&n.formData?s.body=CS(n.formData):s.body=n.formData}return new Request(i,s)}function CS(t){let e=new URLSearchParams;for(let[r,n]of t.entries())e.append(r,typeof n=="string"?n:n.name);return e}function LN(t){let e=new FormData;for(let[r,n]of t.entries())e.append(r,n);return e}function J7(t,e,r,n,i){let s={},o=null,a,l=!1,c={},u=r&&ci(r[1])?r[1].error:void 0;return t.forEach(d=>{if(!(d.route.id in e))return;let h=d.route.id,p=e[h];if(qe(!Cc(p),"Cannot handle redirect results in processLoaderData"),ci(p)){let m=p.error;u!==void 0&&(m=u,u=void 0),o=o||{};{let g=mc(t,h);o[g.route.id]==null&&(o[g.route.id]=m)}s[h]=void 0,l||(l=!0,a=Lw(p.error)?p.error.status:500),p.headers&&(c[h]=p.headers)}else ml(p)?(n.set(h,p.deferredData),s[h]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(a=p.statusCode),p.headers&&(c[h]=p.headers)):(s[h]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(a=p.statusCode),p.headers&&(c[h]=p.headers))}),u!==void 0&&r&&(o={[r[0]]:u},s[r[0]]=void 0),{loaderData:s,errors:o,statusCode:a||200,loaderHeaders:c}}function UN(t,e,r,n,i,s,o){let{loaderData:a,errors:l}=J7(e,r,n,o);return i.forEach(c=>{let{key:u,match:d,controller:h}=c,p=s[u];if(qe(p,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(ci(p)){let m=mc(t.matches,d==null?void 0:d.route.id);l&&l[m.route.id]||(l=Wt({},l,{[m.route.id]:p.error})),t.fetchers.delete(u)}else if(Cc(p))qe(!1,"Unhandled fetcher revalidation redirect");else if(ml(p))qe(!1,"Unhandled fetcher deferred data");else{let m=Na(p.data);t.fetchers.set(u,m)}}),{loaderData:a,errors:l}}function zN(t,e,r,n){let i=Wt({},e);for(let s of r){let o=s.route.id;if(e.hasOwnProperty(o)?e[o]!==void 0&&(i[o]=e[o]):t[o]!==void 0&&s.route.loader&&(i[o]=t[o]),n&&n.hasOwnProperty(o))break}return i}function _N(t){return t?ci(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function mc(t,e){return(e?t.slice(0,t.findIndex(n=>n.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function VN(t){let e=t.length===1?t[0]:t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Ln(t,e){let{pathname:r,routeId:n,method:i,type:s,message:o}=e===void 0?{}:e,a="Unknown Server Error",l="Unknown @remix-run/router error";return t===400?(a="Bad Request",i&&r&&n?l="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":s==="defer-action"?l="defer() is not supported in actions":s==="invalid-body"&&(l="Unable to encode submission body")):t===403?(a="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):t===404?(a="Not Found",l='No route matches URL "'+r+'"'):t===405&&(a="Method Not Allowed",i&&r&&n?l="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new Sy(t||500,a,new Error(l),!0)}function A0(t){let e=Object.entries(t);for(let r=e.length-1;r>=0;r--){let[n,i]=e[r];if(Cc(i))return{key:n,result:i}}}function LD(t){let e=typeof t=="string"?Ql(t):t;return vu(Wt({},e,{hash:""}))}function Z7(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function $7(t){return UD(t.result)&&L7.has(t.result.status)}function ml(t){return t.type===Ft.deferred}function ci(t){return t.type===Ft.error}function Cc(t){return(t&&t.type)===Ft.redirect}function HN(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function e9(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function UD(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function t9(t){return B7.has(t.toLowerCase())}function bs(t){return I7.has(t.toLowerCase())}async function r9(t,e,r,n,i){let s=Object.entries(e);for(let o=0;o<s.length;o++){let[a,l]=s[o],c=t.find(h=>(h==null?void 0:h.route.id)===a);if(!c)continue;let u=n.find(h=>h.route.id===c.route.id),d=u!=null&&!MD(u,c)&&(i&&i[c.route.id])!==void 0;ml(l)&&d&&await wk(l,r,!1).then(h=>{h&&(e[a]=h)})}}async function n9(t,e,r){for(let n=0;n<r.length;n++){let{key:i,routeId:s,controller:o}=r[n],a=e[i];t.find(c=>(c==null?void 0:c.route.id)===s)&&ml(a)&&(qe(o,"Expected an AbortController for revalidating fetcher deferred result"),await wk(a,o.signal,!0).then(c=>{c&&(e[i]=c)}))}}async function wk(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:Ft.data,data:t.deferredData.unwrappedData}}catch(i){return{type:Ft.error,error:i}}return{type:Ft.data,data:t.deferredData.data}}}function bk(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function Rp(t,e){let r=typeof e=="string"?Ql(e).search:e.search;if(t[t.length-1].route.index&&bk(r||""))return t[t.length-1];let n=OD(t);return n[n.length-1]}function GN(t){let{formMethod:e,formAction:r,formEncType:n,text:i,formData:s,json:o}=t;if(!(!e||!r||!n)){if(i!=null)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:e,formAction:r,formEncType:n,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function Sx(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function i9(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function up(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function s9(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Na(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function o9(t,e){try{let r=t.sessionStorage.getItem(ID);if(r){let n=JSON.parse(r);for(let[i,s]of Object.entries(n||{}))s&&Array.isArray(s)&&e.set(i,new Set(s||[]))}}catch{}}function a9(t,e){if(e.size>0){let r={};for(let[n,i]of e)r[n]=[...i];try{t.sessionStorage.setItem(ID,JSON.stringify(r))}catch(n){dh(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/**
327 * React Router v6.27.0
328 *
329 * Copyright (c) Remix Software Inc.
330 *
331 * This source code is licensed under the MIT license found in the
332 * LICENSE.md file in the root directory of this source tree.
333 *
334 * @license MIT
335 */function Ey(){return Ey=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ey.apply(this,arguments)}const Uw=x.createContext(null),zD=x.createContext(null),Xl=x.createContext(null),xk=x.createContext(null),Yl=x.createContext({outlet:null,matches:[],isDataRoute:!1}),_D=x.createContext(null);function l9(t,e){let{relative:r}=e===void 0?{}:e;Oh()||qe(!1);let{basename:n,navigator:i}=x.useContext(Xl),{hash:s,pathname:o,search:a}=HD(t,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:Zo([n,o])),i.createHref({pathname:l,search:a,hash:s})}function Oh(){return x.useContext(xk)!=null}function rs(){return Oh()||qe(!1),x.useContext(xk).location}function VD(t){x.useContext(Xl).static||x.useLayoutEffect(t)}function da(){let{isDataRoute:t}=x.useContext(Yl);return t?b9():c9()}function c9(){Oh()||qe(!1);let t=x.useContext(Uw),{basename:e,future:r,navigator:n}=x.useContext(Xl),{matches:i}=x.useContext(Yl),{pathname:s}=rs(),o=JSON.stringify(Mw(i,r.v7_relativeSplatPath)),a=x.useRef(!1);return VD(()=>{a.current=!0}),x.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){n.go(c);return}let d=Bw(c,JSON.parse(o),s,u.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:Zo([e,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[e,n,o,s,t])}function HD(t,e){let{relative:r}=e===void 0?{}:e,{future:n}=x.useContext(Xl),{matches:i}=x.useContext(Yl),{pathname:s}=rs(),o=JSON.stringify(Mw(i,n.v7_relativeSplatPath));return x.useMemo(()=>Bw(t,JSON.parse(o),s,r==="path"),[t,o,s,r])}function u9(t,e,r,n){Oh()||qe(!1);let{navigator:i}=x.useContext(Xl),{matches:s}=x.useContext(Yl),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=rs(),u;u=c;let d=u.pathname||"/",h=d;if(l!=="/"){let g=l.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(g.length).join("/")}let p=gc(t,{pathname:h});return g9(p&&p.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:Zo([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Zo([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),s,r,n)}function d9(){let t=w9(),e=Lw(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application 
335Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},e),r?x.createElement("pre",{style:i},r):null,null)}const f9=x.createElement(d9,null);class h9 extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?x.createElement(Yl.Provider,{value:this.props.routeContext},x.createElement(_D.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function p9(t){let{routeContext:e,match:r,children:n}=t,i=x.useContext(Uw);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),x.createElement(Yl.Provider,{value:e},n)}function g9(t,e,r,n){var i;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var s;if(!r)return null;if(r.errors)t=r.matches;else if((s=n)!=null&&s.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,a=(i=r)==null?void 0:i.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||qe(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:h,errors:p}=r,m=d.route.loader&&h[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||m){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,h)=>{let p,m=!1,g=null,y=null;r&&(p=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||f9,l&&(c<0&&h===0?(x9("route-fallback"),m=!0,y=null):c===h&&(m=!0,y=d.route.hydrateFallbackElement||null)));let v=e.concat(o.slice(0,h+1)),w=()=>{let b;return p?b=g:m?b=y:d.route.Component?b=x.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=u,x.createElement(p9,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:r!=null},children:b})};return r&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?x.createElement(h9,{location:r.location,revalidation:r.revalidation,component:g,error:p,children:w(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):w()},null)}var GD=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(GD||{}),ky=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(ky||{});function m9(t){let e=x.useContext(Uw);return e||qe(!1),e}function v9(t){let e=x.useContext(zD);return e||qe(!1),e}function y9(t){let e=x.useContext(Yl);return e||qe(!1),e}function WD(t){let e=y9(),r=e.matches[e.matches.length-1];return r.route.id||qe(!1),r.route.id}function w9(){var t;let e=x.useContext(_D),r=v9(ky.UseRouteError),n=WD(ky.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function b9(){let{router:t}=m9(GD.UseNavigateStable),e=WD(ky.UseNavigateStable),r=x.useRef(!1);return VD(()=>{r.current=!0}),x.useCallback(function(i,s){s===void 0&&(s={}),r.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,Ey({fromRouteId:e},s)))},[t,e])}const WN={};function x9(t,e,r){WN[t]||(WN[t]=!0)}function Ex(t){let{to:e,replace:r,state:n,relative:i}=t;Oh()||qe(!1);let{future:s,static:o}=x.useContext(Xl),{matches:a}=x.useContext(Yl),{pathname:l}=rs(),c=da(),u=Bw(e,Mw(a,s.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(u);return x.useEffect(()=>c(JSON.parse(d),{replace:r,state:n,relative:i}),[c,d,i,r,n]),null}function S9(t){let{basename:e="/",children:r=null,location:n,navigationType:i=vr.Pop,navigator:s,static:o=!1,future:a}=t;Oh()&&qe(!1);let l=e.replace(/^\/*/,"/"),c=x.useMemo(()=>({basename:l,navigator:s,static:o,future:Ey({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof n=="string"&&(n=Ql(n));
vendor: 5,942 bytes, lines 335-344
335let{pathname:u="/",search:d="",hash:h="",state:p=null,key:m="default"}=n,g=x.useMemo(()=>{let y=Fh(u,l);return y==null?null:{location:{pathname:y,search:d,hash:h,state:p,key:m},navigationType:i}},[l,u,d,h,p,m,i]);return g==null?null:x.createElement(Xl.Provider,{value:c},x.createElement(xk.Provider,{children:r,value:g}))}new Promise(()=>{});function E9(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:x.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:x.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:x.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/**
336 * React Router DOM v6.27.0
337 *
338 * Copyright (c) Remix Software Inc.
339 *
340 * This source code is licensed under the MIT license found in the
341 * LICENSE.md file in the root directory of this source tree.
342 *
343 * @license MIT
344 */function Ig(){return Ig=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ig.apply(this,arguments)}function k9(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,s;for(s=0;s<n.length;s++)i=n[s],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function A9(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function C9(t,e){return t.button===0&&(!e||e==="_self")&&!A9(t)}function NS(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,r)=>{let n=t[r];return e.concat(Array.isArray(n)?n.map(i=>[r,i]):[[r,n]])},[]))}function N9(t,e){let r=NS(t);return e&&e.forEach((n,i)=>{r.has(i)||e.getAll(i).forEach(s=>{r.append(i,s)})}),r}const P9=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],T9="6";try{window.__reactRouterVersion=T9}catch{}function R9(t,e){return V7({basename:void 0,future:Ig({},void 0,{v7_prependBasename:!0}),history:f7({window:void 0}),hydrationData:j9(),routes:t,mapRouteProperties:E9,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function j9(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=Ig({},e,{errors:F9(e.errors)})),e}function F9(t){if(!t)return null;let e=Object.entries(t),r={};for(let[n,i]of e)if(i&&i.__type==="RouteErrorResponse")r[n]=new Sy(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let s=window[i.__subType];if(typeof s=="function")try{let o=new s(i.message);o.stack="",r[n]=o}catch{}}if(r[n]==null){let s=new Error(i.message);s.stack="",r[n]=s}}else r[n]=i;return r}const O9=x.createContext({isTransitioning:!1}),D9=x.createContext(new Map),I9="startTransition",KN=Hj[I9],M9="flushSync",qN=T6[M9];function B9(t){KN?KN(t):t()}function dp(t){qN?qN(t):t()}let L9=class{constructor(){this.status="pending",this.promise=new Promise((e,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}};function U9(t){let{fallbackElement:e,router:r,future:n}=t,[i,s]=x.useState(r.state),[o,a]=x.useState(),[l,c]=x.useState({isTransitioning:!1}),[u,d]=x.useState(),[h,p]=x.useState(),[m,g]=x.useState(),y=x.useRef(new Map),{v7_startTransition:v}=n||{},w=x.useCallback(C=>{v?B9(C):C()},[v]),b=x.useCallback((C,N)=>{let{deletedFetchers:R,flushSync:F,viewTransitionOpts:B}=N;R.forEach(L=>y.current.delete(L)),C.fetchers.forEach((L,M)=>{L.data!==void 0&&y.current.set(M,L.data)});let D=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!B||D){F?dp(()=>s(C)):w(()=>s(C));return}if(F){dp(()=>{h&&(u&&u.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let L=r.window.document.startViewTransition(()=>{dp(()=>s(C))});L.finished.finally(()=>{dp(()=>{d(void 0),p(void 0),a(void 0),c({isTransitioning:!1})})}),dp(()=>p(L));return}h?(u&&u.resolve(),h.skipTransition(),g({state:C,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(a(C),c({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[r.window,h,u,y,w]);x.useLayoutEffect(()=>r.subscribe(b),[r,b]),x.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new L9)},[l]),x.useEffect(()=>{if(u&&o&&r.window){let C=o,N=u.promise,R=r.window.document.startViewTransition(async()=>{w(()=>s(C)),await N});R.finished.finally(()=>{d(void 0),p(void 0),a(void 0),c({isTransitioning:!1})}),p(R)}},[w,o,u,r.window]),x.useEffect(()=>{u&&o&&i.location.key===o.location.key&&u.resolve()},[u,h,i.location,o]),x.useEffect(()=>{!l.isTransitioning&&m&&(a(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[l.isTransitioning,m]),x.useEffect(()=>{},[]);let E=x.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:C=>r.navigate(C),push:(C,N,R)=>r.navigate(C,{state:N,preventScrollReset:R==null?void 0:R.preventScrollReset}),replace:(C,N,R)=>r.navigate(C,{replace:!0,state:N,preventScrollReset:R==null?void 0:R.preventScrollReset})}),[r]),A=r.basename||"/",k=x.useMemo(()=>({router:r,navigator:E,static:!1,basename:A}),[r,E,A]),P=x.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return x.createElement(x.Fragment,null,x.createElement(Uw.Provider,{value:k},x.createElement(zD.Provider,{value:i},x.createElement(D9.Provider,{value:y.current},x.createElement(O9.Provider,{value:l},x.createElement(S9,{basename:A,location:i.location,navigationType:i.historyAction,navigator:E,future:P},i.initialized||r.future.v7_partialHydration?x.createElement(z9,{routes:r.routes,future:r.future,state:i}):e))))),null)}
344const z9=x.memo(_9);function _9(t){let{routes:e,future:r,state:n}=t;return u9(e,void 0,n,r)}const V9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",H9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,St=x.forwardRef(function(e,r){let{onClick:n,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=e,h=k9(e,P9),{basename:p}=x.useContext(Xl),m,g=!1;if(typeof c=="string"&&H9.test(c)&&(m=c,V9))try{let b=new URL(window.location.href),E=c.startsWith("//")?new URL(b.protocol+c):new URL(c),A=Fh(E.pathname,p);E.origin===b.origin&&A!=null?c=A+E.search+E.hash:g=!0}catch{}let y=l9(c,{relative:i}),v=G9(c,{replace:o,state:a,target:l,preventScrollReset:u,relative:i,viewTransition:d});function w(b){n&&n(b),b.defaultPrevented||v(b)}return x.createElement("a",Ig({},h,{href:m||y,onClick:g||s?n:w,ref:r,target:l}))});var QN;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(QN||(QN={}));var XN;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(XN||(XN={}));function G9(t,e){let{target:r,replace:n,state:i,preventScrollReset:s,relative:o,viewTransition:a}=e===void 0?{}:e,l=da(),c=rs(),u=HD(t,{relative:o});return x.useCallback(d=>{if(C9(d,r)){d.preventDefault();let h=n!==void 0?n:vu(c)===vu(u);l(t,{replace:h,state:i,preventScrollReset:s,relative:o,viewTransition:a})}},[c,l,u,n,i,r,t,s,o,a])}function W9(t){let e=x.useRef(NS(t)),r=x.useRef(!1),n=rs(),i=x.useMemo(()=>N9(n.search,r.current?null:e.current),[n.search]),s=da(),o=x.useCallback((a,l)=>{const c=NS(typeof a=="function"?a(i):a);r.current=!0,s("?"+c,l)},[s,i]);return[i,o]}const K9=Rh("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"}}),oe=x.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...i},s)=>{const o=n?uh:"button";return f.jsx(o,{className:Te(K9({variant:e,size:r,className:t})),ref:s,...i})});oe.displayName="Button";const q9="modulepreload",Q9=function(t){return"/"+t},YN={},fh=function(e,r,n){let i=Promise.resolve();if(r&&r.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(r.map(l=>{if(l=Q9(l),l in YN)return;YN[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":q9,c||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((h,p)=>{d.addEventListener("load",h),d.addEventListener("error",()=>p(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 e().catch(s)})},X9=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...r)=>fh(async()=>{const{default:n}=await Promise.resolve().then(()=>Dh);return{default:n}},void 0).then(({default:n})=>n(...r)):e=fetch,(...r)=>e(...r)};
344class Sk extends Error{constructor(e,r="FunctionsError",n){super(e),this.name=r,this.context=n}}class Y9 extends Sk{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class J9 extends Sk{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class Z9 extends Sk{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var PS;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(PS||(PS={}));var $9=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};class eV{constructor(e,{headers:r={},customFetch:n,region:i=PS.Any}={}){this.url=e,this.headers=r,this.region=i,this.fetch=X9(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,r={}){var n;return $9(this,void 0,void 0,function*(){try{const{headers:i,method:s,body:o}=r;let a={},{region:l}=r;l||(l=this.region),l&&l!=="any"&&(a["x-region"]=l);let c;o&&(i&&!Object.prototype.hasOwnProperty.call(i,"Content-Type")||!i)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",c=o):typeof o=="string"?(a["Content-Type"]="text/plain",c=o):typeof FormData<"u"&&o instanceof FormData?c=o:(a["Content-Type"]="application/json",c=JSON.stringify(o)));const u=yield this.fetch(`${this.url}/${e}`,{method:s||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),i),body:c}).catch(m=>{throw new Y9(m)}),d=u.headers.get("x-relay-error");if(d&&d==="true")throw new J9(u);if(!u.ok)throw new Z9(u);let h=((n=u.headers.get("Content-Type"))!==null&&n!==void 0?n:"text/plain").split(";")[0].trim(),p;return h==="application/json"?p=yield u.json():h==="application/octet-stream"?p=yield u.blob():h==="text/event-stream"?p=u:h==="multipart/form-data"?p=yield u.formData():p=yield u.text(),{data:p,error:null}}catch(i){return{data:null,error:i}}})}}var Vn={},Ek={},zw={},Rm={},_w={},Vw={},tV=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},hh=tV();const rV=hh.fetch,KD=hh.fetch.bind(hh),qD=hh.Headers,nV=hh.Request,iV=hh.Response,Dh=Object.freeze(Object.defineProperty({__proto__:null,Headers:qD,Request:nV,Response:iV,default:KD,fetch:rV},Symbol.toStringTag,{value:"Module"})),sV=nL(Dh);var Hw={};Object.defineProperty(Hw,"__esModule",{value:!0});let oV=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
344de=e.code}};Hw.default=oV;var QD=qi&&qi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vw,"__esModule",{value:!0});const aV=QD(sV),lV=QD(Hw);let cV=class{constructor(e){this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=e.headers,this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=e.shouldThrowOnError,this.signal=e.signal,this.isMaybeSingle=e.isMaybeSingle,e.fetch?this.fetch=e.fetch:typeof fetch>"u"?this.fetch=aV.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,r){return this.headers=Object.assign({},this.headers),this.headers[e]=r,this}then(e,r){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const n=this.fetch;let i=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{var o,a,l;let c=null,u=null,d=null,h=s.status,p=s.statusText;if(s.ok){if(this.method!=="HEAD"){const v=await s.text();v===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?u=v:u=JSON.parse(v))}const g=(o=this.headers.Prefer)===null||o===void 0?void 0:o.match(/count=(exact|planned|estimated)/),y=(a=s.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");g&&y&&y.length>1&&(d=parseInt(y[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(u)&&(u.length>1?(c={code:"PGRST116",details:`Results contain ${u.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},u=null,d=null,h=406,p="Not Acceptable"):u.length===1?u=u[0]:u=null)}else{const g=await s.text();try{c=JSON.parse(g),Array.isArray(c)&&s.status===404&&(u=[],c=null,h=200,p="OK")}catch{s.status===404&&g===""?(h=204,p="No Content"):c={message:g}}if(c&&this.isMaybeSingle&&(!((l=c==null?void 0:c.details)===null||l===void 0)&&l.includes("0 rows"))&&(c=null,h=200,p="OK"),c&&this.shouldThrowOnError)throw new lV.default(c)}return{error:c,data:u,count:d,status:h,statusText:p}});return this.shouldThrowOnError||(i=i.catch(s=>{var o,a,l;return{error:{message:`${(o=s==null?void 0:s.name)!==null&&o!==void 0?o:"FetchError"}: ${s==null?void 0:s.message}`,details:`${(a=s==null?void 0:s.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=s==null?void 0:s.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),i.then(e,r)}returns(){return this}overrideTypes(){return this}};Vw.default=cV;var uV=qi&&qi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_w,"__esModule",{value:!0});const dV=uV(Vw);let fV=class extends dV.default{select(e){let r=!1;const n=(e??"*").split("").map(i=>/\s/.test(i)&&!r?"":(i==='"'&&(r=!r),i)).join("");return this.url.searchParams.set("select",n),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(e,{ascending:r=!0,nullsFirst:n,foreignTable:i,referencedTable:s=i}={}){const o=s?`${s}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${e}.${r?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:r,referencedTable:n=r}={}){const i=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(i,`${e}`),this}range(e,r,{foreignTable:n,referencedTable:i=n}={}){const s=typeof i>"u"?"offset":`${i}.offset`,o=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(o,`${r-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}
344explain({analyze:e=!1,verbose:r=!1,settings:n=!1,buffers:i=!1,wal:s=!1,format:o="text"}={}){var a;const l=[e?"analyze":null,r?"verbose":null,n?"settings":null,i?"buffers":null,s?"wal":null].filter(Boolean).join("|"),c=(a=this.headers.Accept)!==null&&a!==void 0?a:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${c}"; options=${l};`,o==="json"?this:this}rollback(){var e;return((e=this.headers.Prefer)!==null&&e!==void 0?e:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};_w.default=fV;var hV=qi&&qi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Rm,"__esModule",{value:!0});const pV=hV(_w);let gV=class extends pV.default{eq(e,r){return this.url.searchParams.append(e,`eq.${r}`),this}neq(e,r){return this.url.searchParams.append(e,`neq.${r}`),this}gt(e,r){return this.url.searchParams.append(e,`gt.${r}`),this}gte(e,r){return this.url.searchParams.append(e,`gte.${r}`),this}lt(e,r){return this.url.searchParams.append(e,`lt.${r}`),this}lte(e,r){return this.url.searchParams.append(e,`lte.${r}`),this}like(e,r){return this.url.searchParams.append(e,`like.${r}`),this}likeAllOf(e,r){return this.url.searchParams.append(e,`like(all).{${r.join(",")}}`),this}likeAnyOf(e,r){return this.url.searchParams.append(e,`like(any).{${r.join(",")}}`),this}ilike(e,r){return this.url.searchParams.append(e,`ilike.${r}`),this}ilikeAllOf(e,r){return this.url.searchParams.append(e,`ilike(all).{${r.join(",")}}`),this}ilikeAnyOf(e,r){return this.url.searchParams.append(e,`ilike(any).{${r.join(",")}}`),this}is(e,r){return this.url.searchParams.append(e,`is.${r}`),this}in(e,r){const n=Array.from(new Set(r)).map(i=>typeof i=="string"&&new RegExp("[,()]").test(i)?`"${i}"`:`${i}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}contains(e,r){return typeof r=="string"?this.url.searchParams.append(e,`cs.${r}`):Array.isArray(r)?this.url.searchParams.append(e,`cs.{${r.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(r)}`),this}containedBy(e,r){return typeof r=="string"?this.url.searchParams.append(e,`cd.${r}`):Array.isArray(r)?this.url.searchParams.append(e,`cd.{${r.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(r)}`),this}rangeGt(e,r){return this.url.searchParams.append(e,`sr.${r}`),this}rangeGte(e,r){return this.url.searchParams.append(e,`nxl.${r}`),this}rangeLt(e,r){return this.url.searchParams.append(e,`sl.${r}`),this}rangeLte(e,r){return this.url.searchParams.append(e,`nxr.${r}`),this}rangeAdjacent(e,r){return this.url.searchParams.append(e,`adj.${r}`),this}overlaps(e,r){return typeof r=="string"?this.url.searchParams.append(e,`ov.${r}`):this.url.searchParams.append(e,`ov.{${r.join(",")}}`),this}textSearch(e,r,{config:n,type:i}={}){let s="";i==="plain"?s="pl":i==="phrase"?s="ph":i==="websearch"&&(s="w");const o=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${s}fts${o}.${r}`),this}match(e){return Object.entries(e).forEach(([r,n])=>{this.url.searchParams.append(r,`eq.${n}`)}),this}not(e,r,n){return this.url.searchParams.append(e,`not.${r}.${n}`),this}or(e,{foreignTable:r,referencedTable:n=r}={}){const i=n?`${n}.or`:"or";return this.url.searchParams.append(i,`(${e})`),this}filter(e,r,n){return this.url.searchParams.append(e,`${r}.${n}`),this}};Rm.default=gV;var mV=qi&&qi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zw,"__esModule",{value:!0});const fp=mV(Rm);let vV=class{constructor(e,{headers:r={},schema:n,fetch:i}){this.url=e,this.headers=r,this.schema=n,this.fetch=i}select(e,{head:r=!1,count:n}={}){const i=r?"HEAD":"GET";let s=!1;const o=(e??"*").split("").map(a=>/\s/.test(a)&&!s?"":(a==='"'&&(s=!s),a)).join("");return this.url.searchParams.set("select",o),n&&(this.headers.Prefer=`count=${n}`),new fp.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(e,{count:r,defaultToNull:n=!0}={}){const i="POST",s=[];if(this.headers.Prefer&&s.push(this.headers.Prefer),r&&s.push(`count=${r}`),n||s.push("missing=default"),this.headers.Prefer=s.join(","),Array.isArray(e)){const o=e.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(o.length>
3440){const a=[...new Set(o)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new fp.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}upsert(e,{onConflict:r,ignoreDuplicates:n=!1,count:i,defaultToNull:s=!0}={}){const o="POST",a=[`resolution=${n?"ignore":"merge"}-duplicates`];if(r!==void 0&&this.url.searchParams.set("on_conflict",r),this.headers.Prefer&&a.push(this.headers.Prefer),i&&a.push(`count=${i}`),s||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(e)){const l=e.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(l.length>0){const c=[...new Set(l)].map(u=>`"${u}"`);this.url.searchParams.set("columns",c.join(","))}}return new fp.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}update(e,{count:r}={}){const n="PATCH",i=[];return this.headers.Prefer&&i.push(this.headers.Prefer),r&&i.push(`count=${r}`),this.headers.Prefer=i.join(","),new fp.default({method:n,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}delete({count:e}={}){const r="DELETE",n=[];return e&&n.push(`count=${e}`),this.headers.Prefer&&n.unshift(this.headers.Prefer),this.headers.Prefer=n.join(","),new fp.default({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};zw.default=vV;var Gw={},Ww={};Object.defineProperty(Ww,"__esModule",{value:!0});Ww.version=void 0;Ww.version="0.0.0-automated";Object.defineProperty(Gw,"__esModule",{value:!0});Gw.DEFAULT_HEADERS=void 0;const yV=Ww;Gw.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${yV.version}`};var XD=qi&&qi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ek,"__esModule",{value:!0});const wV=XD(zw),bV=XD(Rm),xV=Gw;let SV=class YD{constructor(e,{headers:r={},schema:n,fetch:i}={}){this.url=e,this.headers=Object.assign(Object.assign({},xV.DEFAULT_HEADERS),r),this.schemaName=n,this.fetch=i}from(e){const r=new URL(`${this.url}/${e}`);return new wV.default(r,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new YD(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,r={},{head:n=!1,get:i=!1,count:s}={}){let o;const a=new URL(`${this.url}/rpc/${e}`);let l;n||i?(o=n?"HEAD":"GET",Object.entries(r).filter(([u,d])=>d!==void 0).map(([u,d])=>[u,Array.isArray(d)?`{${d.join(",")}}`:`${d}`]).forEach(([u,d])=>{a.searchParams.append(u,d)})):(o="POST",l=r);const c=Object.assign({},this.headers);return s&&(c.Prefer=`count=${s}`),new bV.default({method:o,url:a,headers:c,schema:this.schemaName,body:l,fetch:this.fetch,allowEmpty:!1})}};Ek.default=SV;var Ih=qi&&qi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.PostgrestError=Vn.PostgrestBuilder=Vn.PostgrestTransformBuilder=Vn.PostgrestFilterBuilder=Vn.PostgrestQueryBuilder=Vn.PostgrestClient=void 0;const JD=Ih(Ek);Vn.PostgrestClient=JD.default;const ZD=Ih(zw);Vn.PostgrestQueryBuilder=ZD.default;const $D=Ih(Rm);Vn.PostgrestFilterBuilder=$D.default;const e3=Ih(_w);Vn.PostgrestTransformBuilder=e3.default;const t3=Ih(Vw);Vn.PostgrestBuilder=t3.default;const r3=Ih(Hw);Vn.PostgrestError=r3.default;var EV=Vn.default={PostgrestClient:JD.default,PostgrestQueryBuilder:ZD.default,PostgrestFilterBuilder:$D.default,PostgrestTransformBuilder:e3.default,PostgrestBuilder:t3.default,PostgrestError:r3.default};const{PostgrestClient:kV,PostgrestQueryBuilder:Kse,PostgrestFilterBuilder:qse,PostgrestTransformBuilder:Qse,PostgrestBuilder:Xse,PostgrestError:Yse}=EV,AV="2.11.2",CV={"X-Client-Info":`realtime-js/${AV}`},NV="1.0.0",n3=1e4,PV=1e3;var Kd;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(Kd||(Kd={}));var ei;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(ei||(ei={}));var xs;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(xs||(xs={}));var TS;(function(t){t.websocket="websocket"})(TS||(TS={}));var vc;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(vc||(vc={}));class TV{constructor(){this.HEADER_LENGTH=1}decode(e,r){return e.constructor===ArrayBuffer?r(this._binaryDecode(e)):r(typeof e=="string"?JSON.parse(e):{})}_binaryDecode(e){const r=new DataView(e),n=new TextDecoder;return this._decodeBroadcast(e,r,n)}_decodeBroadcast(e,r,n){const i=r.getUint8(1),s=r.getUint8(2);let o=this.HEADER_LENGTH+2;const a=n.decode(e.slice(o,o+i));o=o+i;const l=n.decode(e.slice(o,o+s));o=o+s;const c=JSON.parse(n.decode(e.slice(o,e.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class i3{constructor(e,r){this.callback=e,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=r}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))}}var It;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.t
vendor: 14,495 bytes, lines 344-349
344srange="tsrange",t.tstzrange="tstzrange"})(It||(It={}));const JN=(t,e,r={})=>{var n;const i=(n=r.skipTypes)!==null&&n!==void 0?n:[];return Object.keys(e).reduce((s,o)=>(s[o]=RV(o,t,e,i),s),{})},RV=(t,e,r,n)=>{const i=e.find(a=>a.name===t),s=i==null?void 0:i.type,o=r[t];return s&&!n.includes(s)?s3(s,o):RS(o)},s3=(t,e)=>{if(t.charAt(0)==="_"){const r=t.slice(1,t.length);return DV(e,r)}switch(t){case It.bool:return jV(e);case It.float4:case It.float8:case It.int2:case It.int4:case It.int8:case It.numeric:case It.oid:return FV(e);case It.json:case It.jsonb:return OV(e);case It.timestamp:return IV(e);case It.abstime:case It.date:case It.daterange:case It.int4range:case It.int8range:case It.money:case It.reltime:case It.text:case It.time:case It.timestamptz:case It.timetz:case It.tsrange:case It.tstzrange:return RS(e);default:return RS(e)}},RS=t=>t,jV=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},FV=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},OV=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},DV=(t,e)=>{if(typeof t!="string")return t;const r=t.length-1,n=t[r];if(t[0]==="{"&&n==="}"){let s;const o=t.slice(1,r);try{s=JSON.parse("["+o+"]")}catch{s=o?o.split(","):[]}return s.map(a=>s3(e,a))}return t},IV=t=>typeof t=="string"?t.replace(" ","T"):t,o3=t=>{let e=t;return e=e.replace(/^ws/i,"http"),e=e.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),e.replace(/\/+$/,"")};class kx{constructor(e,r,n={},i=n3){this.channel=e,this.event=r,this.payload=n,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,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()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,r){var n;return this._hasReceived(e)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:e,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:r}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(r))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var ZN;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(ZN||(ZN={}));class tg{constructor(e,r){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},i=>{const{onJoin:s,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=tg.syncState(this.state,i,s,o),this.pendingDiffs.forEach(l=>{this.state=tg.syncDiff(this.state,l,s,o)}),this.pendingDiffs=[],a()}),this.channel._on(n.diff,{},i=>{const{onJoin:s,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=tg.syncDiff(this.state,i,s,o),a())}),this.onJoin((i,s,o)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:s,newPresences:o})}),this.onLeave((i,s,o)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:s,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,r,n,i){const s=this.cloneDeep(e),o=this.transformState(r),a={},l={};return this.map(s,(c,u)=>{o[c]||(l[c]=u)}),this.map(o,(c,u)=>{const d=s[c];if(d){const h=u.map(y=>y.presence_ref),p=d.map(y=>y.presence_ref),m=u.filter(y=>p.indexOf(y.presence_ref)<0),g=d.filter(y=>h.indexOf(y.presence_ref)<0);m.length>0&&(a[c]=m),g.length>0&&(l[c]=g)}else a[c]=u}),this.syncDiff(s,{joins:a,leaves:l},n,i)}static syncDiff(e,r,n,i){const{joins:s,leaves:o}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),i||(i=()=>{}),this.map(s,(a,l)=>{var c;const u=(c=e[a])!==null&&c!==void 0?c:[];if(e[a]=this.cloneDeep(l),u.length>0){const d=e[a].map(p=>p.presence_ref),h=u.filter(p=>d.indexOf(p.presence_ref)<0);e[a].unshift(...h)}n(a,u,l)}),this.map(o,(a,l)=>{let c=e[a];if(!c)return;const u=l.map(d=>d.presence_ref);c=c.filter(d=>u.indexOf(d.presence_ref)<0),e[a]=c,i(a,c,l),c.length===0&&delete e[a]}),e}static map(e,r){return Object.getOwnPropertyNames(e).map(n=>r(n,e[n]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((r,n)=>{const i=e[n];return"metas"in i?r[n]=i.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):r[n]=i,r},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var $N;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})($N||($N={}));var eP;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(eP||(eP={}));var No;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(No||(No={}));class kk{constructor(e,r={config:{}},n){this.topic=e,this.params=r,this.socket=n,this.bindings={},this.state=ei.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new kx(this,xs.join,this.params,this.timeout),this.rejoinTimer=new i3(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=ei.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=ei.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=ei.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=ei.errored,this.rejoinTimer.scheduleTimeout())}),this._on(xs.reply,{},(i,s)=>{this._trigger(this._replyEventName(s),i)}),this.presence=new tg(this),this.broadcastEndpointURL=o3(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(e,r=this.timeout){var n,i;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:s,presence:o,private:a}}=this.params;this._onError(u=>e==null?void 0:e(No.CHANNEL_ERROR,u)),this._onClose(()=>e==null?void 0:e(No.CLOSED));const l={},c={broadcast:s,presence:o,postgres_changes:(i=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(u=>u.filter))!==null&&i!==void 0?i:[],private:a};this.socket.accessTokenValue&&(l.access_token=this.socket.accessTokenValue),this.updateJoinPayload(Object.assign({config:c},l)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:u})=>{var d;if(this.socket.setAuth(),u===void 0){e==null||e(No.SUBSCRIBED);return}else{const h=this.bindings.postgres_changes,p=(d=h==null?void 0:h.length)!==null&&d!==void 0?d:0,m=[];for(let g=0;g<p;g++){const y=h[g],{filter:{event:v,schema:w,table:b,filter:E}}=y,A=u&&u[g];if(A&&A.event===v&&A.schema===w&&A.table===b&&A.filter===E)m.push(Object.assign(Object.assign({},y),{id:A.id}));else{this.unsubscribe(),e==null||e(No.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=m,e&&e(No.SUBSCRIBED);return}}).receive("error",u=>{e==null||e(No.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(u).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(No.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,r={}){return await this.send({type:"presence",event:"track",payload:e},r.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,r,n){return this._on(e,r,n)}async send(e,r={}){var n,i;if(!this._canPush()&&e.type==="broadcast"){const{event:s,payload:o}=e,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n: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._push(e.type,e,r.timeout||this.timeout);e.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(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=ei.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(xs.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(n=>{const i=new kx(this,xs.leave,{},e);i.receive("ok",()=>{r(),n("ok")}).receive("timeout",()=>{r(),n("timed out")}).receive("error",()=>{n("error")}),i.send(),this._canPush()||i.trigger("ok",{})})}async _fetchWithTimeout(e,r,n){const i=new AbortController,s=setTimeout(()=>i.abort(),n),o=await this.socket.fetch(e,Object.assign(Object.assign({},r),{signal:i.signal}));return clearTimeout(s),o}_push(e,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new kx(this,e,r,n);return this._canPush()?i.send():(i.startTimeout(),this.pushBuffer.push(i)),i}_onMessage(e,r,n){return r}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,r,n){var i,s;const o=e.toLocaleLowerCase(),{close:a,error:l,leave:c,join:u}=xs;if(n&&[a,l,c,u].indexOf(o)>=0&&n!==this._joinRef())return;let h=this._onMessage(o,r,n);if(r&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(p=>{var m,g,y;return((m=p.filter)===null||m===void 0?void 0:m.event)==="*"||((y=(g=p.filter)===null||g===void 0?void 0:g.event)===null||y===void 0?void 0:y.toLocaleLowerCase())===o}).map(p=>p.callback(h,n)):(s=this.bindings[o])===null||s===void 0||s.filter(p=>{var m,g,y,v,w,b;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in p){const E=p.id,A=(m=p.filter)===null||m===void 0?void 0:m.event;return E&&((g=r.ids)===null||g===void 0?void 0:g.includes(E))&&(A==="*"||(A==null?void 0:A.toLocaleLowerCase())===((y=r.data)===null||y===void 0?void 0:y.type.toLocaleLowerCase()))}else{const E=(w=(v=p==null?void 0:p.filter)===null||v===void 0?void 0:v.event)===null||w===void 0?void 0:w.toLocaleLowerCase();return E==="*"||E===((b=r==null?void 0:r.event)===null||b===void 0?void 0:b.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===o}).map(p=>{if(typeof h=="object"&&"ids"in h){const m=h.data,{schema:g,table:y,commit_timestamp:v,type:w,errors:b}=m;h=Object.assign(Object.assign({},{schema:g,table:y,commit_timestamp:v,eventType:w,new:{},old:{},errors:b}),this._getPayloadRecords(m))}p.callback(h,n)})}_isClosed(){return this.state===ei.closed}_isJoined(){return this.state===ei.joined}_isJoining(){return this.state===ei.joining}_isLeaving(){return this.state===ei.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,r,n){const i=e.toLocaleLowerCase(),s={type:i,filter:r,callback:n};return this.bindings[i]?this.bindings[i].push(s):this.bindings[i]=[s],this}_off(e,r){const n=e.toLocaleLowerCase();return this.bindings[n]=this.bindings[n].filter(i=>{var s;return!(((s=i.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===n&&kk.isEqual(i.filter,r))}),this}static isEqual(e,r){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(const n in e)if(e[n]!==r[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(xs.close,{},e)}_onError(e){this._on(xs.error,{},r=>e(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=ei.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const r={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(r.new=JN(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(r.old=JN(e.columns,e.old_record)),r}}const MV=()=>{},BV=typeof WebSocket<"u",LV=`
345  addEventListener("message", (e) => {
346    if (e.data.event === "start") {
347      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
348    }
349  });`;class UV{constructor(e,r){var n;this.accessTokenValue=null,this.apiKey=null,this.channels=[],this.endPoint="",this.httpEndpoint="",this.headers=CV,this.params={},this.timeout=n3,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=MV,this.conn=null,this.sendBuffer=[],this.serializer
349=new TV,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=s=>{let o;return s?o=s:typeof fetch>"u"?o=(...a)=>fh(async()=>{const{default:l}=await Promise.resolve().then(()=>Dh);return{default:l}},void 0).then(({default:l})=>l(...a)):o=fetch,(...a)=>o(...a)},this.endPoint=`${e}/${TS.websocket}`,this.httpEndpoint=o3(e),r!=null&&r.transport?this.transport=r.transport:this.transport=null,r!=null&&r.params&&(this.params=r.params),r!=null&&r.headers&&(this.headers=Object.assign(Object.assign({},this.headers),r.headers)),r!=null&&r.timeout&&(this.timeout=r.timeout),r!=null&&r.logger&&(this.logger=r.logger),r!=null&&r.heartbeatIntervalMs&&(this.heartbeatIntervalMs=r.heartbeatIntervalMs);const i=(n=r==null?void 0:r.params)===null||n===void 0?void 0:n.apikey;if(i&&(this.accessTokenValue=i,this.apiKey=i),this.reconnectAfterMs=r!=null&&r.reconnectAfterMs?r.reconnectAfterMs:s=>[1e3,2e3,5e3,1e4][s-1]||1e4,this.encode=r!=null&&r.encode?r.encode:(s,o)=>o(JSON.stringify(s)),this.decode=r!=null&&r.decode?r.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new i3(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(r==null?void 0:r.fetch),r!=null&&r.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=(r==null?void 0:r.worker)||!1,this.workerUrl=r==null?void 0:r.workerUrl}this.accessToken=(r==null?void 0:r.accessToken)||null}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this.endpointURL(),void 0,{headers:this.headers});return}if(BV){this.conn=new WebSocket(this.endpointURL()),this.setupConnection();return}this.conn=new zV(this.endpointURL(),void 0,{close:()=>{this.conn=null}}),fh(async()=>{const{default:e}=await import("./browser-By2kMrZ5.js").then(r=>r.b);return{default:e}},[]).then(({default:e})=>{this.conn=new e(this.endpointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:NV}))}disconnect(e,r){this.conn&&(this.conn.onclose=function(){},e?this.conn.close(e,r??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(e){const r=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const e=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.disconnect(),e}log(e,r,n){this.logger(e,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case Kd.connecting:return vc.Connecting;case Kd.open:return vc.Open;case Kd.closing:return vc.Closing;default:return vc.Closed}}isConnected(){return this.connectionState()===vc.Open}channel(e,r={config:{}}){const n=new kk(`realtime:${e}`,r,this);return this.channels.push(n),n}push(e){const{topic:r,event:n,payload:i,ref:s}=e,o=()=>{this.encode(e,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${r} ${n} (${s})`,i),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(e=null){let r=e||this.accessToken&&await this.accessToken()||this.accessTokenValue;if(r){let n=null;try{n=JSON.parse(atob(r.split(".")[1]))}catch{}if(n&&n.exp&&!(Math.floor(Date.now()/1e3)-n.exp<0))return this.log("auth",`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${n.exp}`),Promise.reject(`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${n.exp}`);this.accessTokenValue=r,this.channels.forEach(i=>{r&&i.updateJoinPayload({access_token:r}),i.joinedOnce&&i._isJoined()&&i._push(xs.access_token,{access_token:r})})}}async sendHeartbeat(){var e;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(e=this.conn)===null||e===void 0||e.close(PV,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth()}}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>
3490&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let r=this.channels.find(n=>n.topic===e&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${e}"`),r.unsubscribe())}_remove(e){this.channels=this.channels.filter(r=>r._joinRef()!==e._joinRef())}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_onConnMessage(e){this.decode(e.data,r=>{let{topic:n,event:i,payload:s,ref:o}=r;o&&o===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.log("receive",`${s.status||""} ${n} ${i} ${o&&"("+o+")"||""}`,s),this.channels.filter(a=>a._isMember(n)).forEach(a=>a._trigger(i,s,o)),this.stateChangeCallbacks.message.forEach(a=>a(r))})}async _onConnOpen(){if(this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this.reconnectTimer.reset(),!this.worker)this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs);else{this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this.workerRef.terminate()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}this.stateChangeCallbacks.open.forEach(e=>e())}_onConnClose(e){this.log("transport","close",e),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(r=>r(e))}_onConnError(e){this.log("transport",e.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(r=>r(e))}_triggerChanError(){this.channels.forEach(e=>e._trigger(xs.error))}_appendParams(e,r){if(Object.keys(r).length===0)return e;const n=e.match(/\?/)?"&":"?",i=new URLSearchParams(r);return`${e}${n}${i}`}_workerObjectUrl(e){let r;if(e)r=e;else{const n=new Blob([LV],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}}class zV{constructor(e,r,n){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=Kd.connecting,this.send=()=>{},this.url=null,this.url=e,this.close=n.close}}class Ak extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function Mr(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class _V extends Ak{constructor(e,r){super(e),this.name="StorageApiError",this.status=r}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class jS extends Ak{constructor(e,r){super(e),this.name="StorageUnknownError",this.originalError=r}}var VV=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const a3=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...r)=>fh(async()=>{const{default:n}=await Promise.resolve().then(()=>Dh);return{default:n}},void 0).then(({default:n})=>n(...r)):e=fetch,(...r)=>e(...r)},HV=()=>VV(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield fh(()=>Promise.resolve().then(()=>Dh),void 0)).Response:Response}),FS=t=>{if(Array.isArray(t))return t.map(r=>FS(r));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([r,n])=>{const i=r.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));e[i]=FS(n)}),e};var Iu=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Ax=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),GV=(t,e,r)=>Iu(void 0,void 0,void 0,function*(){const n=yield HV();t instanceof n&&!(r!=null&&r.noResolveJson)?t.json().then(i=>{e(new _V(Ax(i),t.status||500))}).catch(i=>{e(new jS(Ax(i),i))}):e(new jS(Ax(t),t))}),WV=(t,e,r,n)=>{const i={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),n&&(i.body=JSON.stringify(n)),Object.assign(Object.assign({},i),r))};function jm(t,e,r,n,i,s){return Iu(this,void 0,void 0,function*(){return new Promise((o,a)=>{t(r,WV(e,n,i,s)).then(l=>{if(!l.ok)throw l;return n!=null&&n.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>GV(l,a,n))})})}function Ay(t,e,r,n){return Iu(this,void 0,void 0,function*(){return jm(t,"GET",e,r,n)})}function Ba(t,e,r,n,i){return Iu(this,void 0,void 0,function*(){return jm(t,"POST",e,n,i,r)})}function KV(t,e,r,n,i){return Iu(this,void 0,void 0,function*(){return jm(t,"PUT",e,n,i,r)})}function qV(t,e,r,n){return Iu(this,void 0,void 0,function*(){return jm(t,"HEAD",e,Object.assign(Object.assign({},r),{noResolveJson:!0}),n)})}function l3(t,e,r,n,i){return Iu(this,void 0,void 0,function*(){return jm(t,"DELETE",e,n,i,r)})}var Dn=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const QV={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},tP={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class XV{constructor(e,r={},n,i){this.url=e,this.headers=r,this.bucketId=n,this.fetch=a3(i)}uploadOrUpdate(e,r,n,i){return Dn(this,void 0,void 0,function*(){try{let s;const o=Object.assign(Object.assign({},tP),i);let a=Object.assign(Object.assign({},this.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",this.encodeMetadata(l)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.append("cacheControl",o.cacheControl),l&&s.append("metadata",this.encodeMetadata(l))):(s=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),i!=null&&i.headers&&(a=Object.assign(Object.assign({},a),i.headers));const c=this._removeEmptyFolders(r),u=this._getFinalPath(c),d=yield this.fetch(`${this.url}/object/${u}`,Object.assign({method:e,body:s,headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{})),h=yield d.json();return d.ok?{data:{path:c,id:h.Id,fullPath:h.Key},error:null}:{data:null,error:h}}catch(s){if(Mr(s))return{data:null,error:s};throw s}})}upload(e,r,n){return Dn(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,r,n)})}uploadToSignedUrl(e,r,n,i){return Dn(this,void 0,void 0,function*(){const s=this._removeEmptyFolders(e),o=this._getFinalPath(s),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",r);try{let l;const c=Object.assign({upsert:tP.upsert},i),u=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});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,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType);const d=yield this.fetch(a.toString(),{method:"PUT",body:l,headers:u}),h=yield d.json();return d.ok?{data:{path:s,fullPath:h.Key},error:null}:{data:null,error:h}}catch(l){if(Mr(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(e,r){return Dn(this,void 0,void 0,function*(){try{let n=this._getFinalPath(e);const i=Object.assign({},this.headers);r!=null&&r.upsert&&(i["x-upsert"]="true");const s=yield Ba(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:i}),o=new URL(this.url+s.url),a=o.searchParams.get("token");if(!a)throw new Ak("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:a},error:null}}catch(n){if(Mr(n))return{data:null,error:n};throw n}})}update(e,r,n){return Dn(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,r,n)})}move(e,r,n){return Dn(this,void 0,void 0,function*(){try{return{data:yield Ba(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers}),error:null}}catch(i){if(Mr(i))return{data:null,error:i};throw i}})}copy(e,r,n){return Dn(this,void 0,void 0,function*(){try{return{data:{path:(yield Ba(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers})).Key},error:null}}catch(i){if(Mr(i))return{data:null,error:i};throw i}})}createSignedUrl(e,r,n){return Dn(this,void 0,void 0,function*(){try{let i=this._getFinalPath(e),s=yield Ba(this.fetch,`${this.url}/object/sign/${i}
349`,Object.assign({expiresIn:r},n!=null&&n.transform?{transform:n.transform}:{}),{headers:this.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return s={signedUrl:encodeURI(`${this.url}${s.signedURL}${o}`)},{data:s,error:null}}catch(i){if(Mr(i))return{data:null,error:i};throw i}})}createSignedUrls(e,r,n){return Dn(this,void 0,void 0,function*(){try{const i=yield Ba(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:r,paths:e},{headers:this.headers}),s=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:i.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${s}`):null})),error:null}}catch(i){if(Mr(i))return{data:null,error:i};throw i}})}download(e,r){return Dn(this,void 0,void 0,function*(){const i=typeof(r==null?void 0:r.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((r==null?void 0:r.transform)||{}),o=s?`?${s}`:"";try{const a=this._getFinalPath(e);return{data:yield(yield Ay(this.fetch,`${this.url}/${i}/${a}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(Mr(a))return{data:null,error:a};throw a}})}info(e){return Dn(this,void 0,void 0,function*(){const r=this._getFinalPath(e);try{const n=yield Ay(this.fetch,`${this.url}/object/info/${r}`,{headers:this.headers});return{data:FS(n),error:null}}catch(n){if(Mr(n))return{data:null,error:n};throw n}})}exists(e){return Dn(this,void 0,void 0,function*(){const r=this._getFinalPath(e);try{return yield qV(this.fetch,`${this.url}/object/${r}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(Mr(n)&&n instanceof jS){const i=n.originalError;if([400,404].includes(i==null?void 0:i.status))return{data:!1,error:n}}throw n}})}getPublicUrl(e,r){const n=this._getFinalPath(e),i=[],s=r!=null&&r.download?`download=${r.download===!0?"":r.download}`:"";s!==""&&i.push(s);const a=typeof(r==null?void 0:r.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});l!==""&&i.push(l);let c=i.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${n}${c}`)}}}remove(e){return Dn(this,void 0,void 0,function*(){try{return{data:yield l3(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(r){if(Mr(r))return{data:null,error:r};throw r}})}list(e,r,n){return Dn(this,void 0,void 0,function*(){try{const i=Object.assign(Object.assign(Object.assign({},QV),r),{prefix:e||""});return{data:yield Ba(this.fetch,`${this.url}/object/list/${this.bucketId}`,i,{headers:this.headers},n),error:null}}catch(i){if(Mr(i))return{data:null,error:i};throw i}})}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}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const r=[];return e.width&&r.push(`width=${e.width}`),e.height&&r.push(`height=${e.height}`),e.resize&&r.push(`resize=${e.resize}`),e.format&&r.push(`format=${e.format}`),e.quality&&r.push(`quality=${e.quality}`),r.join("&")}}const YV="2.7.1",JV={"X-Client-Info":`storage-js/${YV}`};var Yu=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};class ZV{constructor(e,r={},n){this.url=e,this.headers=Object.assign(Object.assign({},JV),r),this.fetch=a3(n)}listBuckets(){return Yu(this,void 0,void 0,function*(){try{return{data:yield Ay(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(e){if(Mr(e))return{data:null,error:e};throw e}})}getBucket(e){return Yu(this,void 0,void 0,function*(){try{return{data:yield Ay(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(r){if(Mr(r))return{data:null,error:r};throw r}})}createBucket(e,r={public:!1}){return Yu(this,void 0,void 0,function*(){try{return{data:yield Ba(this.fetch,`${this.url}/bucket`,{id:e,name:e,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(Mr(n))return{data:null,error:n};throw n}})}updateBucket(e,r){return Yu(this,void 0,void 0,function*(){try{return{data:yield KV(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(Mr(n))return{data:null,error:n};throw n}})}emptyBucket(e){return Yu(this,void 0,void 0,function*(){try{return{data:yield Ba(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(Mr(r))return{data:null,error:r};throw r}})}deleteBucket(e){return Yu(this,void 0,void 0,function*(){try{return{data:yield l3(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(r){if(Mr(r))return{data:null,error:r};throw r}})}}class $V extends ZV{constructor(e,r={},n){super(e,r,n)}from(e){return new XV(this.url,this.headers,e,this.fetch)}}const eH="2.49.1";let jp="";typeof Deno<"u"?jp="deno":typeof document<"u"?jp="web":typeof navigator<"u"&&navigator.product==="ReactNative"?jp="react-native":jp="node";const tH={"X-Client-Info":`supabase-js-${jp}/${eH}`},rH={headers:tH},nH={schema:"public"},iH={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},sH={};var oH=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const aH=t=>{let e;return t?e=t:typeof fetch>"u"?e=KD:e=fetch,(...r)=>e(...r)},lH=()=>typeof Headers>"u"?qD:Headers,cH=(t,e,r)=>{const n=aH(r),i=lH();return(s,o)=>oH(void 0,void 0,void 0,function*(){var a;const l=(a=yield e())!==null&&a!==void 0?a:t;
349let c=new i(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",t),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),n(s,Object.assign(Object.assign({},o),{headers:c}))})};var uH=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};function dH(t){return t.replace(/\/$/,"")}function fH(t,e){const{db:r,auth:n,realtime:i,global:s}=t,{db:o,auth:a,realtime:l,global:c}=e,u={db:Object.assign(Object.assign({},o),r),auth:Object.assign(Object.assign({},a),n),realtime:Object.assign(Object.assign({},l),i),global:Object.assign(Object.assign({},c),s),accessToken:()=>uH(this,void 0,void 0,function*(){return""})};return t.accessToken?u.accessToken=t.accessToken:delete u.accessToken,u}const c3="2.68.0",hd=30*1e3,OS=3,Cx=OS*hd,hH="http://localhost:9999",pH="supabase.auth.token",gH={"X-Client-Info":`gotrue-js/${c3}`},DS="X-Supabase-Api-Version",u3={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}};function mH(t){return Math.round(Date.now()/1e3)+t}function vH(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const Hs=()=>typeof window<"u"&&typeof document<"u",sc={tested:!1,writable:!1},rg=()=>{if(!Hs())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(sc.tested)return sc.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),sc.tested=!0,sc.writable=!0}catch{sc.tested=!0,sc.writable=!1}return sc.writable};function yH(t){const e={},r=new URL(t);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((i,s)=>{e[s]=i})}catch{}return r.searchParams.forEach((n,i)=>{e[i]=n}),e}const d3=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...r)=>fh(async()=>{const{default:n}=await Promise.resolve().then(()=>Dh);return{default:n}},void 0).then(({default:n})=>n(...r)):e=fetch,(...r)=>e(...r)},wH=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",f3=async(t,e,r)=>{await t.setItem(e,JSON.stringify(r))},C0=async(t,e)=>{const r=await t.getItem(e);if(!r)return null;try{return JSON.parse(r)}catch{return r}},N0=async(t,e)=>{await t.removeItem(e)};function bH(t){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let r="",n,i,s,o,a,l,c,u=0;for(t=t.replace("-","+").replace("_","/");u<t.length;)o=e.indexOf(t.charAt(u++)),a=e.indexOf(t.charAt(u++)),l=e.indexOf(t.charAt(u++)),c=e.indexOf(t.charAt(u++)),n=o<<2|a>>4,i=(a&15)<<4|l>>2,s=(l&3)<<6|c,r=r+String.fromCharCode(n),l!=64&&i!=0&&(r=r+String.fromCharCode(i)),c!=64&&s!=0&&(r=r+String.fromCharCode(s));return r}class Kw{constructor(){this.promise=new Kw.promiseConstructor((e,r)=>{this.resolve=e,this.reject=r})}}Kw.promiseConstructor=Promise;function rP(t){const e=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i,r=t.split(".");if(r.length!==3)throw new Error("JWT is not valid: not a JWT structure");if(!e.test(r[1]))throw new Error("JWT is not valid: payload is not in base64url format");const n=r[1];return JSON.parse(bH(n))}async function xH(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function SH(t,e){return new Promise((n,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const o=await t(s);if(!e(s,null,o)){n(o);return}}catch(o){if(!e(s,o)){i(o);return}}})()})}function EH(t){return("0"+t.toString(16)).substr(-2)}function kH(){const e=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let i="";for(let s=0;s<56;s++)i+=r.charAt(Math.floor(Math.random()*n));return i}return crypto.getRandomValues(e),Array.from(e,EH).join("")}async function AH(t){const r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r),i=new Uint8Array(n);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}function CH(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function NH(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code 
349challenge method will default to use plain instead of sha256."),t;const r=await AH(t);return CH(r)}async function Ju(t,e,r=!1){const n=kH();let i=n;r&&(i+="/PASSWORD_RECOVERY"),await f3(t,`${e}-code-verifier`,i);const s=await NH(n);return[s,n===s?"plain":"s256"]}const PH=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function TH(t){const e=t.headers.get(DS);if(!e||!e.match(PH))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}class Ck extends Error{constructor(e,r,n){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function Ve(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class RH extends Ck{constructor(e,r,n){super(e,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function jH(t){return Ve(t)&&t.name==="AuthApiError"}class h3 extends Ck{constructor(e,r){super(e),this.name="AuthUnknownError",this.originalError=r}}class Mu extends Ck{constructor(e,r,n,i){super(e,n,i),this.name=r,this.status=n}}class Pa extends Mu{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function FH(t){return Ve(t)&&t.name==="AuthSessionMissingError"}class Nx extends Mu{constructor(){super("Auth session or user missing","AuthInvalidToken
349ResponseError",500,void 0)}}class P0 extends Mu{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class T0 extends Mu{constructor(e,r=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function OH(t){return Ve(t)&&t.name==="AuthImplicitGrantRedirectError"}class nP extends Mu{constructor(e,r=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class IS extends Mu{constructor(e,r){super(e,"AuthRetryableFetchError",r,void 0)}}function Px(t){return Ve(t)&&t.name==="AuthRetryableFetchError"}class iP extends Mu{constructor(e,r,n){super(e,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}var DH=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};const uc=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),IH=[502,503,504];async function sP(t){var e;if(!wH(t))throw new IS(uc(t),0);if(IH.includes(t.status))throw new IS(uc(t),t.status);let r;try{r=await t.json()}catch(s){throw new h3(uc(s),s)}let n;const i=TH(t);if(i&&i.getTime()>=u3["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new iP(uc(r),t.status,((e=r.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(n==="session_not_found")throw new Pa}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((s,o)=>s&&typeof o=="string",!0))throw new iP(uc(r),t.status,r.weak_password.reasons);throw new RH(uc(r),t.status||500,n)}const MH=(t,e,r,n)=>{const i={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),i.body=JSON.stringify(n),Object.assign(Object.assign({},i),r))};async function rt(t,e,r,n){var i;const s=Object.assign({},n==null?void 0:n.headers);s[DS]||(s[DS]=u3["2024-01-01"].name),n!=null&&n.jwt&&(s.Authorization=`Bearer ${n.jwt}`);const o=(i=n==null?void 0:n.query)!==null&&i!==void 0?i:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await BH(t,e,r+a,{headers:s,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(l):{data:Object.assign({},l),error:null}}async function BH(t,e,r,n,i,s){const o=MH(e,n,i,s);let a;try{a=await t(r,Object.assign({},o))}catch(l){throw console.error(l),new IS(uc(l),0)}if(a.ok||await sP(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(l){await sP(l)}}function Ta(t){var e;let r=null;_H(t)&&(r=Object.assign({},t),t.expires_at||(r.expires_at=mH(t.expires_in)));const n=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:r,user:n},error:null}}function oP(t){const e=Ta(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Va(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function LH(t){return{data:t,error:null}}function UH(t){const{action_link:e,email_otp:r,hashed_token:n,redirect_to:i,verification_type:s}=t,o=DH(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:e,email_otp:r,hashed_token:n,redirect_to:i,verification_type:s},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function zH(t){return t}function _H(t){return t.access_token&&t.refresh_token&&t.expires_in}var VH=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};class HH{constructor({url:e="",headers:r={},fetch:n}){this.url=e,this.headers=r,this.fetch=d3(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(e,r="global"){try{return await rt(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Ve(n))return{data:null,error:n};throw n}}async inviteUserByEmail(e,r={}){try{return await rt(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Va})}catch(n){if(Ve(n))return{data:{user:null},error:n};throw n}}async generateLink(e){try{const{options:r}=e,n=VH(e,["options"]),i=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(i.new_email=n==null?void 0:n.newEmail,delete i.newEmail),await rt(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:UH,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(Ve(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(e){try{return await rt(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Va})}catch(r){if(Ve(r))return{data:{user:null},error:r};throw r}}async listUsers(e){var r,n,i,s,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await rt(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=e==null?void 0:e.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(s=(i=e==null?void 0:e.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:zH});if(u.error)throw u.error;const d=await u.json(),h=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>
3490&&(p.forEach(m=>{const g=parseInt(m.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(m.split(";")[1].split("=")[1]);c[`${y}Page`]=g}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(Ve(c))return{data:{users:[]},error:c};throw c}}async getUserById(e){try{return await rt(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Va})}catch(r){if(Ve(r))return{data:{user:null},error:r};throw r}}async updateUserById(e,r){try{return await rt(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:r,headers:this.headers,xform:Va})}catch(n){if(Ve(n))return{data:{user:null},error:n};throw n}}async deleteUser(e,r=!1){try{return await rt(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:r},xform:Va})}catch(n){if(Ve(n))return{data:{user:null},error:n};throw n}}async _listFactors(e){try{const{data:r,error:n}=await rt(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:r,error:n}}catch(r){if(Ve(r))return{data:null,error:r};throw r}}async _deleteFactor(e){try{return{data:await rt(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(r){if(Ve(r))return{data:null,error:r};throw r}}}const GH={getItem:t=>rg()?globalThis.localStorage.getItem(t):null,setItem:(t,e)=>{rg()&&globalThis.localStorage.setItem(t,e)},removeItem:t=>{rg()&&globalThis.localStorage.removeItem(t)}};function aP(t={}){return{getItem:e=>t[e]||null,setItem:(e,r)=>{t[e]=r},removeItem:e=>{delete t[e]}}}function WH(){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)}}const Zu={debug:!!(globalThis&&rg()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class p3 extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class KH extends p3{}async function qH(t,e,r){Zu.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const n=new globalThis.AbortController;return e>0&&setTimeout(()=>{n.abort(),Zu.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async i=>{if(i){Zu.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,i.name);try{return await r()}finally{Zu.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,i.name)}}else{if(e===0)throw Zu.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new KH(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(Zu.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null,"  "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}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"),await r()}}))}WH();const QH={url:hH,storageKey:pH,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:gH,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function lP(t,e,r){return await r()}class Mg{constructor(e){var r,n;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=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,this.instanceID=Mg.nextInstanceID,Mg.nextInstanceID+=1,this.instanceID>0&&Hs()&&console.warn("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.");const i=Object.assign(Object.assign({},QH),e);if(this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.persistSession=i.persistSession,this.storageKey=i.storageKey,this.autoRefreshToken=i.autoRefreshToken,this.admin=new HH({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=d3(i.fetch),this.lock=i.lock||lP,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,i.lock?this.lock=i.lock:Hs()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=qH:this.lock=lP,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)},this.persistSession?i.storage?this.storage=i.storage:rg()?this.storage=GH:(this.memoryStorage={},this.storage=aP(this.memoryStorage)):(this.memoryStorage={},this.storage=aP(this.memoryStorage)),Hs()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(s){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",s)}(n=this.broadcastChannel)===null||n===void 0||n.addEventListener("message",async s=>{this._debug("received broadcast notification from other tab or client",s),await this._notifyAllSubscribers(s.data.event,s.data.session,!1)})}this.initialize()}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${c3}) ${new Date().toISOString()}`,...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{const r=yH(window.location.href);let n="none";if(this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce"),Hs()&&this.detectSessionInUrl&&n!=="none"){const{data:i,error:s}=await this._getSessionFromURL(r,n);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),OH(s)){const l=(e=s.details)===null||e===void 0?void 0:e.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:s}}return await this._removeSession(),{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(r){return Ve(r)?{error:r}:{error:new h3("Unexpected error during initialization",r)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var r,n,i;try{const s=await rt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=e==null?void 0:e.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(i=e==null?void 0:e.options)===null||i===void 0?void 0:i.captchaToken}},xform:Ta}),{data:o,error:a}=s;
349if(a||!o)return{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)),{data:{user:c,session:l},error:null}}catch(s){if(Ve(s))return{data:{user:null,session:null},error:s};throw s}}async signUp(e){var r,n,i;try{let s;if("email"in e){const{email:u,password:d,options:h}=e;let p=null,m=null;this.flowType==="pkce"&&([p,m]=await Ju(this.storage,this.storageKey)),s=await rt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:u,password:d,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:p,code_challenge_method:m},xform:Ta})}else if("phone"in e){const{phone:u,password:d,options:h}=e;s=await rt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:d,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},channel:(i=h==null?void 0:h.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Ta})}else throw new P0("You must provide either an email or phone number and a password");const{data:o,error:a}=s;
349if(a||!o)return{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)),{data:{user:c,session:l},error:null}}catch(s){if(Ve(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithPassword(e){try{let r;if("email"in e){const{email:s,password:o,options:a}=e;r=await rt(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:oP})}else if("phone"in e){const{phone:s,password:o,options:a}=e;r=await rt(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:oP})}else throw new P0("You must provide either an email or phone number and a password");const{data:n,error:i}=r;return i?{data:{user:null,session:null},error:i}:!n||!n.session||!n.user?{data:{user:null,session:null},error:new Nx}:(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:i})}catch(r){if(Ve(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOAuth(e){var r,n,i,s;return await this._handleProviderSignIn(e.provider,{redirectTo:(r=e.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=e.options)===null||n===void 0?void 0:n.scopes,queryParams:(i=e.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=e.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async _exchangeCodeForSession(e){const r=await C0(this.storage,`${this.storageKey}-code-verifier`),[n,i]=(r??"").split("/");try{const{data:s,error:o}=await rt(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:n},xform:Ta});if(await N0(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!s||!s.session||!s.user?{data:{user:null,session:null,redirectType:null},error:new Nx}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:o})}catch(s){if(Ve(s))return{data:{user:null,session:null,redirectType:null},error:s};throw s}}async signInWithIdToken(e){try{const{options:r,provider:n,token:i,access_token:s,nonce:o}=e,a=await rt(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:i,access_token:s,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Ta}),{data:l,error:c}=a;return c?{data:{user:null,session:null},error:c}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Nx}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:c})}catch(r){if(Ve(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOtp(e){var r,n,i,s,o;try{if("email"in e){const{email:a,options:l}=e;let c=null,u=null;this.flowType==="pkce"&&([c,u]=await Ju(this.storage,this.storageKey));const{error:d}=await rt(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:d}}if("phone"in e){const{phone:a,options:l}=e,{data:c,error:u}=await rt(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{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u}}throw new P0("You must provide either an email or phone number.")}catch(a){if(Ve(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(e){var r,n;try{let i,s;"options"in e&&(i=(r=e.options)===null||r===void 0?void 0:r.redirectTo,s=(n=e.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:a}=await rt(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:Ta});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(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(i){if(Ve(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithSSO(e){var r,n,i;try{let s=null,o=null;return this.flowType==="pkce"&&([s,o]=await Ju(this.storage,this.storageKey)),await rt(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(n=(r=e.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((i=e==null?void 0:e.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:s,code_challenge_method:o}),headers:this.headers,xform:LH})}catch(s){if(Ve(s))return{data:null,error:s};throw s}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:r},error:n}=e;if(n)throw n;if(!r)throw new Pa;const{error:i}=await rt(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return{data:{user:null,session:null},error:i}})}catch(e){if(Ve(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{const r=`${this.url}/resend`;if("email"in e){const{email:n,type:i,options:s}=e,{error:o}=await rt(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in e){const{phone:n,type:i,options:s}=e,{data:o,error:a}=await rt(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a}}throw new P0("You must provide either an email or phone number and a type")}catch(r){if(Ve(r))return{data:{user:null,session:null},error:r};throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(e,r){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await e(r)}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 e=null;const r=await C0(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?e=r:(this._debug("#getSession()","session from storage is not val
349id"),await this._removeSession())),!e)return{data:{session:null},error:null};const n=e.expires_at?e.expires_at*1e3-Date.now()<Cx:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",e.expires_at),!n){if(this.storage.isServer){let o=this.suppressGetSessionWarning;e=new Proxy(e,{get:(l,c,u)=>(!o&&c==="user"&&(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."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,c,u))})}return{data:{session:e},error:null}}const{session:i,error:s}=await this._callRefreshToken(e.refresh_token);return s?{data:{session:null},error:s}:{data:{session:i},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await rt(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Va}):await this._useSession(async r=>{var n,i,s;const{data:o,error:a}=r;if(a)throw a;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Pa}:await rt(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:Va})})}catch(r){if(Ve(r))return FH(r)&&(await this._removeSession(),await N0(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:r};throw r}}async updateUser(e,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,r))}async _updateUser(e,r={}){try{return await this._useSession(async n=>{const{data:i,error:s}=n;if(s)throw s;if(!i.session)throw new Pa;const o=i.session;let a=null,l=null;this.flowType==="pkce"&&e.email!=null&&([a,l]=await Ju(this.storage,this.storageKey));const{data:c,error:u}=await rt(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Va});if(u)throw u;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(n){if(Ve(n))return{data:{user:null},error:n};throw n}}_decodeJWT(e){return rP(e)}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Pa;const r=Date.now()/1e3;let n=r,i=!0,s=null;const o=rP(e.access_token);if(o.exp&&(n=o.exp,i=n<=r),i){const{session:a,error:l}=await this._callRefreshToken(e.refresh_token);if(l)return{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(e.access_token);if(l)throw l;s={access_token:e.access_token,refresh_token:e.refresh_token,user:a.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return{data:{user:s.user,session:s},error:null}}catch(r){if(Ve(r))return{data:{session:null,user:null},error:r};throw r}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async r=>{var n;if(!e){const{data:o,error:a}=r;if(a)throw a;e=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(e!=null&&e.refresh_token))throw new Pa;const{session:i,error:s}=await this._callRefreshToken(e.refresh_token);return s?{data:{user:null,session:null},error:s}:i?{data:{user:i.user,session:i},error:null}:{data:{user:null,session:null},error:null}})}catch(r){if(Ve(r))return{data:{user:null,session:null},error:r};throw r}}async _getSessionFromURL(e,r){try{if(!Hs())throw new T0("No browser detected.");
349if(e.error||e.error_description||e.error_code)throw new T0(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new nP("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new T0("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new nP("No code detected.");const{data:w,error:b}=await this._exchangeCodeForSession(e.code);if(b)throw b;const E=new URL(window.location.href);return E.searchParams.delete("code"),window.history.replaceState(window.history.state,"",E.toString()),{data:{session:w.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:i,access_token:s,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=e;if(!s||!a||!o||!c)throw new T0("No session defined in URL");const u=Math.round(Date.now()/1e3),d=parseInt(a);let h=u+d;l&&(h=parseInt(l));const p=h-u;p*1e3<=hd&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${d}s`);const m=h-d;u-m>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",m,h,u):u-m<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",m,h,u);const{data:g,error:y}=await this._getUser(s);if(y)throw y;const v={provider_token:n,provider_refresh_token:i,access_token:s,expires_in:d,expires_at:h,refresh_token:o,token_type:c,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:v,redirectType:e.type},error:null}}catch(n){if(Ve(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const r=await C0(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&r)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:i,error:s}=r;if(s)return{error:s};const o=(n=i.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:a}=await this.admin.signOut(o,e);if(a&&!(jH(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return e!=="others"&&(await this._removeSession(),await N0(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){const r=vH(),n={id:r,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async r=>{var n,i;try{const{data:{session:s},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(e))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",e,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(e))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",s),console.error(s)}})}async resetPasswordForEmail(e,r={}){let n=null,i=null;this.flowType==="pkce"&&([n,i]=await Ju(this.storage,this.storageKey,!0));try{return await rt(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:i,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(s){if(Ve(s))return{data:null,error:s};throw s}}async getUserIdentities(){var e;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return{data:{identities:(e=r.user.identities)!==null&&e!==void 0?e:[]},error:null}}catch(r){if(Ve(r))return{data:null,error:r};throw r}}async linkIdentity(e){var r;try{const{data:n,error:i}=await this._useSession(async s=>{var o,a,l,c,u;const{data:d,error:h}=s;if(h)throw h;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await rt(this.fetch,"GET",p,{headers:this.headers,jwt:(u=(c=d.session)===null||c===void 0?void 0:c.access_token)!==null&&u!==void 0?u:void 0})});if(i)throw i;return Hs()&&!(!((r=e.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),{data:{provider:e.provider,url:n==null?void 0:n.url},error:null}}catch(n){if(Ve(n))return{data:{provider:e.provider,url:null},error:n};throw n}}async unlinkIdentity(e){try{return await this._useSession(async r=>{var n,i;const{data:s,error:o}=r;if(o)throw o;
349return await rt(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(i=(n=s.session)===null||n===void 0?void 0:n.access_token)!==null&&i!==void 0?i:void 0})})}catch(r){if(Ve(r))return{data:null,error:r};throw r}}async _refreshAccessToken(e){const r=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await SH(async i=>(i>0&&await xH(200*Math.pow(2,i-1)),this._debug(r,"refreshing attempt",i),await rt(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Ta})),(i,s)=>{const o=200*Math.pow(2,i);return s&&Px(s)&&Date.now()+o-n<hd})}catch(n){if(this._debug(r,"error",n),Ve(n))return{data:{session:null,user:null},error:n};throw n}finally{this._debug(r,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",r,"url",n),Hs()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}}async _recoverAndRefresh(){var e;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const n=await C0(this.storage,this.storageKey);if(this._debug(r,"session from storage",n),!this._isValidSession(n)){this._debug(r,"session is not valid"),n!==null&&await this._removeSession();return}const i=((e=n.expires_at)!==null&&e!==void 0?e:1/0)*1e3-Date.now()<Cx;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${Cx}s`),i){if(this.autoRefreshToken&&n.refresh_token){const{error:s}=await this._callRefreshToken(n.refresh_token);s&&(console.error(s),Px(s)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",s),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",n)}catch(n){this._debug(r,"error",n),console.error(n);return}finally{this._debug(r,"end")}}async _callRefreshToken(e){var r,n;if(!e)throw new Pa;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new Kw;const{data:s,error:o}=await this._refreshAccessToken(e);if(o)throw o;if(!s.session)throw new Pa;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={session:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(i,"error",s),Ve(s)){const o={session:null,error:s};return Px(s)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(e,r,n=!0){const i=`#_notifyAllSubscribers(${e})`;this._debug(i,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:r});const s=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(e,r)}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(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await f3(this.storage,this.storageKey,e)}async _removeSession(){this._debug("#_removeSession()"),await N0(this.storage,this.storageKey),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Hs()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),hd);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}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 e=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((n.expires_at*1e3-e)/hd);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${hd}ms, refresh threshold is ${OS} ticks`),i<=OS&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof p3)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Hs()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const r=`#_onVisibilityChanged(${e})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(
349await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"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(e,r,n){const i=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&i.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&i.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[s,o]=await Ju(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(a.toString())}if(n!=null&&n.queryParams){const s=new URLSearchParams(n.queryParams);i.push(s.toString())}return n!=null&&n.skipBrowserRedirect&&i.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${e}?${i.join("&")}`}async _unenroll(e){try{return await this._useSession(async r=>{var n;const{data:i,error:s}=r;return s?{data:null,error:s}:await rt(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(Ve(r))return{data:null,error:r};throw r}}async _enroll(e){try{return await this._useSession(async r=>{var n,i;const{data:s,error:o}=r;if(o)return{data:null,error:o};const a=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:{issuer:e.issuer}),{data:l,error:c}=await rt(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return c?{data:null,error:c}:(e.factorType==="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}`),{data:l,error:null})})}catch(r){if(Ve(r))return{data:null,error:r};throw r}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:s}=r;if(s)return{data:null,error:s};const{data:o,error:a}=await rt(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(r){if(Ve(r))return{data:null,error:r};throw r}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:s}=r;return s?{data:null,error:s}:await rt(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:{channel:e.channel},headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(Ve(r))return{data:null,error:r};throw r}})}async _challengeAndVerify(e){const{data:r,error:n}=await this._challenge({factorId:e.factorId});return n?{data:null,error:n}:await this._verify({factorId:e.factorId,challengeId:r.id,code:e.code})}async _listFactors(){const{data:{user:e},error:r}=await this.getUser();if(r)return{data:null,error:r};const n=(e==null?void 0:e.factors)||[],i=n.filter(o=>o.factor_type==="totp"&&o.status==="verified"),s=n.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:n,totp:i,phone:s},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var r,n;const{data:{session:i},error:s}=e;if(s)return{data:null,error:s};if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const o=this._decodeJWT(i.access_token);let a=null;o.aal&&(a=o.aal);let l=a;((n=(r=i.user.factors)===null||r===void 0?void 0:r.filter(d=>d.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(l="aal2");const u=o.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:u},error:null}}))}}Mg.nextInstanceID=0;const XH=Mg;class YH extends XH{constructor(e){super(e)}}var JH=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};class ZH{constructor(e,r,n){var i,s,o;if(this.supabaseUrl=e,this.supabaseKey=r,!e)throw new Error("supabaseUrl is required.");
349if(!r)throw new Error("supabaseKey is required.");const a=dH(e);this.realtimeUrl=`${a}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${a}/auth/v1`,this.storageUrl=`${a}/storage/v1`,this.functionsUrl=`${a}/functions/v1`;const l=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,c={db:nH,realtime:sH,auth:Object.assign(Object.assign({},iH),{storageKey:l}),global:rH},u=fH(n??{},c);this.storageKey=(i=u.auth.storageKey)!==null&&i!==void 0?i:"",this.headers=(s=u.global.headers)!==null&&s!==void 0?s:{},u.accessToken?(this.accessToken=u.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=u.auth)!==null&&o!==void 0?o:{},this.headers,u.global.fetch),this.fetch=cH(r,this._getAccessToken.bind(this),u.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},u.realtime)),this.rest=new kV(`${a}/rest/v1`,{headers:this.headers,schema:u.db.schema,fetch:this.fetch}),u.accessToken||this._listenForAuthEvents()}get functions(){return new eV(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new $V(this.storageUrl,this.headers,this.fetch)}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,r={},n={}){return this.rest.rpc(e,r,n)}channel(e,r={config:{}}){return this.realtime.channel(e,r)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,r;return JH(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:n}=yield this.auth.getSession();return(r=(e=n.session)===null||e===void 0?void 0:e.access_token)!==null&&r!==void 0?r:null})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:r,detectSessionInUrl:n,storage:i,storageKey:s,flowType:o,lock:a,debug:l},c,u){const d={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new YH({url:this.authUrl,headers:Object.assign(Object.assign({},d),c),storageKey:s,autoRefreshToken:e,persistSession:r,detectSessionInUrl:n,storage:i,flowType:o,lock:a,debug:l,fetch:u,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(e){return new UV(this.realtimeUrl,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((r,n)=>{this._handleTokenChanged(r,"CLIENT",n==null?void 0:n.access_token)})}_handleTokenChanged(e,r,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?this.changedAccessToken=n:e==="SIGNED_OUT"&&(this.realtime.setAuth(),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const $H=(t,e,r)=>new ZH(t,e,r),eG="https://pguodpigjaxzcrsoveri.supabase.co",tG="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBndW9kcGlnamF4emNyc292ZXJpIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDE0MzEyNjIsImV4cCI6MjA1NzAwNzI2Mn0.aoYKC6MvOgvduhIe9i7ygnS_OxZx-gFmFmWCagjXXPE",Nt=$H(eG,tG),g3=x.createContext(void 0),rG=({children:t})=>{const[e,r]=x.useState(null),[n,i]=x.useState(null),[s,o]=x.useState(!0),[a,l]=x.useState(!1),c=v=>v.startsWith("/verify")||v.startsWith("/auth")?!0:["/","/pricing"].some(b=>v===b||v.startsWith(b+"?")),u=async()=>{if(!window.location.hash)return!1;console.log("Found hash fragment in URL:",window.location.hash);try{const v=window.location.hash.startsWith("#")?window.location.hash.substring(1):window.location.hash;if(v&&v.length<3)return console.log("Non-auth hash fragment detected:",v),!1;if(v.includes("error=")){const w=new URLSearchParams(v),b=w.get("error"),E=w.get("error_description");return console.error("Auth error in hash fragment:",{error:b,errorDescription:E}),b==="invalid_token"?(console.log("Invalid token detected. Magic link expired or is invalid."),window.history.replaceState(null,"",window.location.pathname+window.location.search),!1):(window.history.replaceState(null,"",window.location.pathname+window.location.search),!1)}if(v.includes("access_token")||v.includes("type=")||v.includes("expires_in")){const w=new URLSearchParams(v),b=w.get("access_token"),E=w.get("refresh_token"),A=w.get("type");if(console.log("Extracted token type:",A),b&&E){console.log("Extracted tokens from URL hash, trying to set session");try{const{data:k,error:P}=await Nt.auth.setSession({access_token:b,refresh_token:E});if(P){if(console.error("Error setting session from URL hash:",P),A==="recovery"||A==="signup"||A==="magiclink"){console.log("Attempting to process as a recovery, signup, or magic link flow");const{data:C,error:N}=await Nt.auth.getSession();if(N)return console.error("Failed to get session after token extraction:",N),window.history.replaceState(null,"",window.location.pathname+window.location.search),!1;if(C!=null&&C.session)return console.log("Successfully obtained session via getSession"),i(C.session),r(C.session.user),window.history.replaceState(null,"",window.location.pathname+window.location.search),!0}return window.history.replaceState(null,"",window.location.pathname+window.location.search),!1}if(k!=null&&k.session)return console.log("Successfully set session from URL hash"),i(k.session),r(k.session.user),window.history.replaceState(null,"",window.location.pathname+window.location.search),!0}catch(k){return console.error("Exception during session setting:",k),window.history.replaceState(null,"",window.location.pathname+window.location.search),!1}}else console.error("Missing required tokens in hash fragment")}else console.log("Hash fragment doesn't contain auth tokens:",v);return!1}catch(v){return console.error("Exception during hash fragment handling:",v),window.history.replaceState(null,"",window.location.pathname+window.location.search),!1}};x.useEffect(()=>{(async()=>{window.location.hash&&(console.log("Initial page load with hash fragment:",window.location.hash),await u())})();const{data:{subscription:w}}=Nt.auth.onAuthStateChange((E,A)=>{var k;if(console.log("Auth state change event:",E),A?(console.log("Session found in auth state change:",A.user.id),Ue.success("Successfully authenticated")):console.log("No session in auth state change event"),i(A),r((A==null?void 0:A.user)??null),o(!1),(k=A==null?void 0:A.user)!=null&&k.email){const C=["[email protected]","[email protected]"].includes(A.user.email.toLowerCase());l(C),console.log(`Admin status check in AuthContext for ${A.user.email}: ${C}`)}else l(!1)});return(async()=>{var E,A,k;try{console.log("Getting initial session...");const{data:P}=await Nt.auth.getSession();if(P.session?console.log("Initial session found:",P.session.user.id):console.log("No initial session found"),i(P.session),r(((E=P.session)==null?void 0:E.user)??null),(k=(A=P.session)==null?void 0:A.user)!=null&&k.email){const N=["[email protected]","[email protected]"].includes(P.session.user.email.toLowerCase());l(N),console.log(`Initial admin status for ${P.session.user.email}: ${N}`)}}catch(P){console.error("Error getting initial session:",P)}finally{o(!1)}})(),()=>{w.unsubscribe()}},[]);const y={user:e,session:n,isLoading:s,signOut:async()=>{try{console.log("Signing out user"),await Nt.auth.signOut(),r(null),i(null),console.log("User signed out successfully")}catch(v){console.error("Error signing out:",v),r(null),i(null)}},isPublicRoute:c,handleHashFragment:u,isAdmin:a,getAuthSettings:async()=>{try{console.log("Retrieving auth settings from Supabase...");const v={smtp:{host:"smtp.mailgun.org",port:587,user:"[email protected]",pass:"***********",secure:!1},redirectUrls:["https://securesignnft.com","http://localhost:5173"],disableSignup:!1,emailConfirmationRequired:!0};return console.log("Auth settings retrieved successfully"),{data:v,error:null}}catch(v){return console.error("Error getting auth settings:",v),{data:null,error:v}}}
349,signInWithGoogle:async()=>{try{console.log("Initiating Google sign in");let v=window.location.origin;v.includes("lovable.dev")&&(v="https://pdf-nft-signer.lovable.app"),console.log("Using application URL for auth:",v);const w=`${v}/auth?redirect=/`;console.log("Using Google OAuth redirect URL:",w);const{data:b,error:E}=await Nt.auth.signInWithOAuth({provider:"google",options:{redirectTo:w,queryParams:{access_type:"offline",prompt:"consent"}}});if(E)throw console.error("Google OAuth initialization error:",E),Ue.error("Failed to start Google sign in"),E;b!=null&&b.url?(console.log("Google OAuth URL generated, redirecting to:",b.url),window.location.href=b.url):(console.error("No OAuth URL returned from Supabase"),Ue.error("Authentication system error")),console.log("Google sign in initiated successfully")}catch(v){throw console.error("Exception during Google sign in initiation:",v),Ue.error("Something went wrong with Google sign in"),v}},signInWithEmail:async(v,w)=>{try{console.log("Initiating email sign in for:",v);const{data:b,error:E}=await Nt.auth.signInWithPassword({email:v,password:w});if(E)throw console.error("Email sign in error:",E),new Error(E.message);if(b!=null&&b.user){console.log("Email sign in successful for:",b.user.id),r(b.user),i(b.session);return}throw new Error("No user returned from authentication")}catch(b){throw console.error("Exception during email sign in:",b),b}},signUpWithEmail:async(v,w)=>{try{console.log("Initiating email sign up for:",v);let b=window.location.origin;b.includes("lovable.dev")&&(b="https://pdf-nft-signer.lovable.app");const{data:E,error:A}=await Nt.auth.signUp({email:v,password:w,options:{emailRedirectTo:`${b}/auth`}});if(A)throw console.error("Email sign up error:",A),new Error(A.message);if(E!=null&&E.user){if(console.log("Email sign up successful for:",E.user.id),E.user.identities&&E.user.identities.length===0)throw new Error("Email already registered. Please sign in instead.");return}throw new Error("No user returned from registration")}catch(b){throw console.error("Exception during email sign up:",b),b}}};return f.jsx(g3.Provider,{value:y,children:t})},xi=()=>{const t=x.useContext(g3);if(t===void 0)throw new Error("useAuth must be used within an AuthProvider");return t};var nG=x.createContext(void 0);function Mh(t){const e=x.useContext(nG);return t||e||"ltr"}var iG=Hj.useId||(()=>{}),sG=0;function Pl(t){const[e,r]=x.useState(iG());return vi(()=>{t||r(n=>n??String(sG++))},[t]),t||(e?`radix-${e}`:"")}function qw(t){const e=x.useRef({value:t,previous:t});return x.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var Bh="NavigationMenu",[Nk,m3,oG]=Pm(Bh),[MS,aG,lG]=Pm(Bh),[Pk,Jse]=mo(Bh,[oG,lG]),[cG,ns]=Pk(Bh),[uG,dG]=Pk(Bh),v3=x.forwardRef((t,e)=>{const{__scopeNavigationMenu:r,value:n,onValueChange:i,defaultValue:s,delayDuration:o=200,skipDelayDuration:a=300,orientation:l="horizontal",dir:c,...u}=t,[d,h]=x.useState(null),p=ar(e,N=>h(N)),m=Mh(c),g=x.useRef(0),y=x.useRef(0),v=x.useRef(0),[w,b]=x.useState(!0),[E="",A]=yo({prop:n,onChange:N=>{const R=N!=="",F=a>0;R?(window.clearTimeout(v.current),F&&b(!1)):(window.clearTimeout(v.current),v.current=window.setTimeout(()=>b(!0),a)),i==null||i(N)},defaultProp:s}),k=x.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>A(""),150)},[A]),P=x.useCallback(N=>{window.clearTimeout(y.current),A(N)},[A]),C=x.useCallback(N=>{E===N?window.clearTimeout(y.current):g.current=window.setTimeout(()=>{window.clearTimeout(y.current),A(N)},o)},[E,A,o]);return x.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(y.current),window.clearTimeout(v.current)},[]),f.jsx(w3,{scope:r,isRootMenu:!0,value:E,dir:m,orientation:l,rootNavigationMenu:d,onTriggerEnter:N=>{window.clearTimeout(g.current),w?C(N):P(N)},onTriggerLeave:()=>{window.clearTimeout(g.current),k()},onContentEnter:()=>window.clearTimeout(y.current),onContentLeave:k,onItemSelect:N=>{A(R=>R===N?"":N)},onItemDismiss:()=>A(""),children:f.jsx(Ge.nav,{"aria-label":"Main","data-orientation":l,dir:m,...u,ref:p})})});v3.displayName=Bh;var y3="NavigationMenuSub",fG=x.forwardRef((t,e)=>{const{__scopeNavigationMenu:r,value:n,onValueChange:i,defaultValue:s,orientation:o="horizontal",...a}=t,l=ns(y3,r),[c="",u]=yo({prop:n,onChange:i,defaultProp:s});return f.jsx(w3,{scope:r,isRootMenu:!1,value:c,dir:l.dir,orientation:o,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:d=>u(d),onItemSelect:d=>u(d),onItemDismiss:()=>u(""),children:f.jsx(Ge.div,{"data-orientation":o,...a,ref:e})})});fG.displayName=y3;var w3=t=>{const{scope:e,isRootMenu:r,rootNavigationMenu:n,dir:i,orientation:s,children:o,value:a,onItemSelect:l,onItemDismiss:c,onTriggerEnter:u,onTriggerLeave:d,onContentEnter:h,onContentLeave:p}
vendor: 4,888 bytes, line 349
349=t,[m,g]=x.useState(null),[y,v]=x.useState(new Map),[w,b]=x.useState(null);return f.jsx(cG,{scope:e,isRootMenu:r,rootNavigationMenu:n,value:a,previousValue:qw(a),baseId:Pl(),dir:i,orientation:s,viewport:m,onViewportChange:g,indicatorTrack:w,onIndicatorTrackChange:b,onTriggerEnter:wr(u),onTriggerLeave:wr(d),onContentEnter:wr(h),onContentLeave:wr(p),onItemSelect:wr(l),onItemDismiss:wr(c),onViewportContentChange:x.useCallback((E,A)=>{v(k=>(k.set(E,A),new Map(k)))},[]),onViewportContentRemove:x.useCallback(E=>{v(A=>A.has(E)?(A.delete(E),new Map(A)):A)},[]),children:f.jsx(Nk.Provider,{scope:e,children:f.jsx(uG,{scope:e,items:y,children:o})})})},b3="NavigationMenuList",x3=x.forwardRef((t,e)=>{const{__scopeNavigationMenu:r,...n}=t,i=ns(b3,r),s=f.jsx(Ge.ul,{"data-orientation":i.orientation,...n,ref:e});return f.jsx(Ge.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:f.jsx(Nk.Slot,{scope:r,children:i.isRootMenu?f.jsx(j3,{asChild:!0,children:s}):s})})});x3.displayName=b3;var S3="NavigationMenuItem",[hG,E3]=Pk(S3),k3=x.forwardRef((t,e)=>{const{__scopeNavigationMenu:r,value:n,...i}=t,s=Pl(),o=n||s||"LEGACY_REACT_AUTO_VALUE",a=x.useRef(null),l=x.useRef(null),c=x.useRef(null),u=x.useRef(()=>{}),d=x.useRef(!1),h=x.useCallback((m="start")=>{if(a.current){u.current();const g=LS(a.current);g.length&&jk(m==="start"?g:g.reverse())}},[]),p=x.useCallback(()=>{if(a.current){const m=LS(a.current);m.length&&(u.current=bG(m))}},[]);return f.jsx(hG,{scope:r,value:o,triggerRef:l,contentRef:a,focusProxyRef:c,wasEscapeCloseRef:d,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:p,onContentFocusOutside:p,children:f.jsx(Ge.li,{...i,ref:e})})});k3.displayName=S3;var BS="NavigationMenuTrigger",A3=x.forwardRef((t,e)=>{const{__scopeNavigationMenu:r,disabled:n,...i}=t,s=ns(BS,t.__scopeNavigationMenu),o=E3(BS,t.__scopeNavigationMenu),a=x.useRef(null),l=ar(a,o.triggerRef,e),c=O3(s.baseId,o.value),u=D3(s.baseId,o.value),d=x.useRef(!1),h=x.useRef(!1),p=o.value===s.value;return f.jsxs(f.Fragment,{children:[f.jsx(Nk.ItemSlot,{scope:r,value:o.value,children:f.jsx(F3,{asChild:!0,children:f.jsx(Ge.button,{id:c,disabled:n,"data-disabled":n?"":void 0,"data-state":Fk(p),"aria-expanded":p,"aria-controls":u,...i,ref:l,onPointerEnter:Pe(t.onPointerEnter,()=>{h.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:Pe(t.onPointerMove,Cy(()=>{n||h.current||o.wasEscapeCloseRef.current||d.current||(s.onTriggerEnter(o.value),d.current=!0)})),onPointerLeave:Pe(t.onPointerLeave,Cy(()=>{n||(s.onTriggerLeave(),d.current=!1)})),onClick:Pe(t.onClick,()=>{s.onItemSelect(o.value),h.current=p}),onKeyDown:Pe(t.onKeyDown,m=>{const y={horizontal:"ArrowDown",vertical:s.dir==="rtl"?"ArrowLeft":"ArrowRight"}[s.orientation];p&&m.key===y&&(o.onEntryKeyDown(),m.preventDefault())})})})}),p&&f.jsxs(f.Fragment,{children:[f.jsx(oz,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:m=>{const g=o.contentRef.current,y=m.relatedTarget,v=y===a.current,w=g==null?void 0:g.contains(y);(v||!w)&&o.onFocusProxyEnter(v?"start":"end")}}),s.viewport&&f.jsx("span",{"aria-owns":u})]})]})});A3.displayName=BS;var pG="NavigationMenuLink",cP="navigationMenu.linkSelect",C3=x.forwardRef((t,e)=>{const{__scopeNavigationMenu:r,active:n,onSelect:i,...s}=t;return f.jsx(F3,{asChild:!0,children:f.jsx(Ge.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...s,ref:e,onClick:Pe(t.onClick,o=>{const a=o.target,l=new CustomEvent(cP,{bubbles:!0,cancelable:!0});if(a.addEventListener(cP,c=>i==null?void 0:i(c),{once:!0}),wy(a,l),!l.defaultPrevented&&!o.metaKey){const c=new CustomEvent(kv,{bubbles:!0,cancelable:!0});wy(a,c)}},{checkForDefaultPrevented:!1})})})});C3.displayName=pG;var Tk="NavigationMenuIndicator",N3=x.forwardRef((t,e)=>{const{forceMount:r,...n}=t,i=ns(Tk,t.__scopeNavigationMenu),s=!!i.value;return i.indicatorTrack?Rw.createPortal(f.jsx(vo,{present:r||s,children:f.jsx(gG,{...n,ref:e})}),i.indicatorTrack):null});N3.displayName=Tk;var gG=x.forwardRef((t,e)=>{const{__scopeNavigationMenu:r,...n}=t,i=ns(Tk,r),s=m3(r),[o,a]=x.useState(null),[l,c]=x.useState(null),u=i.orientation==="horizontal",d=!!i.value;x.useEffect(()=>{var g;const m=(g=s().find(y=>y.value===i.value))==null?void 0:g.ref.current;m&&a(m)},[s,i.value]);const h=()=>{o&&c({size:u?o.offsetWidth:o.offsetHeight,offset:u?o.offsetLeft:o.offsetTop})};return US(o,h),US(i.indicatorTrack,h),l?f.jsx(Ge.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation,...n,ref:e,style:{position:"absolute",...u?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...n.style}}):null}),ph="NavigationMenuContent",P3=x.forwardRef((t,e)=>{const{forceMount:r,...n}=t,i=ns(ph,t.__scopeNavigationMenu),s=E3(ph,t.__scopeNavigationMenu),o=ar(s.contentRef,e),a=s.value===i.value,l={value:s.value,triggerRef:s.triggerRef,focu
349sProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...n};return i.viewport?f.jsx(mG,{forceMount:r,...l,ref:o}):f.jsx(vo,{present:r||a,children:f.jsx(T3,{"data-state":Fk(a),...l,ref:o,onPointerEnter:Pe(t.onPointerEnter,i.onContentEnter),onPointerLeave:Pe(t.onPointerLeave,Cy(i.onContentLeave)),style:{pointerEvents:!a&&i.isRootMenu?"none":void 0,...l.style}})})});P3.displayName=ph;var mG=x.forwardRef((t,e)=>{const r=ns(ph,t.__scopeNavigationMenu),{onViewportContentChange:n,onViewportContentRemove:i}=r;return vi(()=>{n(t.value,{ref:e,...t})},[t,e,n]),vi(()=>()=>i(t.value),[t.value,i]),null}),kv="navigationMenu.rootContentDismiss",T3=x.forwardRef((t,e)=>{const{__scopeNavigationMenu:r,value:n,triggerRef:i,focusProxyRef:s,wasEscapeCloseRef:o,onRootContentClose:a,onContentFocusOutside:l,...c}=t,u=ns(ph,r),d=x.useRef(null),h=ar(d,e),p=O3(u.baseId,n),m=D3(u.baseId,n),g=m3(r),y=x.useRef(null),{onItemDismiss:v}=u;x.useEffect(()=>{const b=d.current;if(u.isRootMenu&&b){const E=()=>{var A;v(),a(),b.contains(document.activeElement)&&((A=i.current)==null||A.focus())};return b.addEventListener(kv,E),()=>b.removeEventListener(kv,E)}},[u.isRootMenu,t.value,i,v,a]);const w=x.useMemo(()=>{const E=g().map(R=>R.value);u.dir==="rtl"&&E.reverse();const A=E.indexOf(u.value),k=E.indexOf(u.previousValue),P=n===u.value,C=k===E.indexOf(n);if(!P&&!C)return y.current;const N=(()=>{if(A!==k){if(P&&k!==-1)return A>k?"from-end":"from-start";if(C&&A!==-1)return A>k?"to-start":"to-end"}return null})();return y.current=N,N},[u.previousValue,u.value,u.dir,g,n]);return f.jsx(j3,{asChild:!0,children:f.jsx(jw,{id:m,"aria-labelledby":p,"data-motion":w,"data-orientation":u.orientation,...c,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var E;const b=new Event(kv,{bubbles:!0,cancelable:!0});(E=d.current)==null||E.dispatchEvent(b)},onFocusOutside:Pe(t.onFocusOutside,b=>{var A;l();const E=b.target;(A=u.rootNavigationMenu)!=null&&A.contains(E)&&b.preventDefault()}),onPointerDownOutside:Pe(t.onPointerDownOutside,b=>{var P;const E=b.target,A=g().some(C=>{var N;return(N=C.ref.current)==null?void 0:N.contains(E)}),k=u.isRootMenu&&((P=u.viewport)==null?void 0:P.contains(E));(A||k||!u.isRootMenu)&&b.preventDefault()}),onKeyDown:Pe(t.onKeyDown,b=>{var k;const E=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!E){const P=LS(b.currentTarget),C=document.activeElement,N=P.findIndex(B=>B===C),F=b.shiftKey?P.slice(0,N).reverse():P.slice(N+1,P.length);jk(F)?b.preventDefault():(k=s.current)==null||k.focus()}}),onEscapeKeyDown:Pe(t.onEscapeKeyDown,b=>{o.current=!0})})})}),Rk="NavigationMenuViewport",R3=x.forwardRef((t,e)=>{const{forceMount:r,...n}=t,s=!!ns(Rk,t.__scopeNavigationMenu).value;return f.jsx(vo,{present:r||s,children:f.jsx(vG,{...n,ref:e})})});R3.displayName=Rk;var vG=x.forwardRef((t,e)=>{const{__scopeNavigationMenu:r,children:n,...i}=t,s=ns(Rk,r),o=ar(e,s.onViewportChange),a=dG(ph,t.__scopeNavigationMenu),[l,c]=x.useState(null),[u,d]=x.useState(null),h=l?(l==null?void 0:l.width)+"px":void 0,p=l?(l==null?void 0:l.height)+"px":void 0,m=!!s.value,g=m?s.value:s.previousValue;return US(u,()=>{u&&c({width:u.offsetWidth,height:u.offsetHeight})}),f.jsx(Ge.div,{"data-state":Fk(m),"data-orientation":s.orientation,...i,ref:o,style:{pointerEvents:!m&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":p,...i.style},onPointerEnter:Pe(t.onPointerEnter,s.onContentEnter),onPointerLeave:Pe(t.onPointerLeave,Cy(s.onContentLeave)),children:Array.from(a.items).map(([v,{ref:w,forceMount:b,...E}])=>{const A=g===v;return f.jsx(vo,{present:b||A,children:f.jsx(T3,{...E,ref:ak(w,k=>{A&&k&&d(k)})})},v)})})}),yG="FocusGroup",j3=x.forwardRef((t,e)=>{const{__scopeNavigationMenu:r,...n}=t,i=ns(yG,r);return f.jsx(MS.Provider,{scope:r,children:f.jsx(MS.Slot,{scope:r,children:f.jsx(Ge.div,{dir:i.dir,...n,ref:e})})})}),uP=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],wG="FocusGroupItem",F3=x.forwardRef((t,e)=>{const{__scopeNavigationMenu:r,...n}=t,i=aG(r),s=ns(wG,r);return f.jsx(MS.ItemSlot,{scope:r,children:f.jsx(Ge.button,{...n,ref:e,onKeyDown:Pe(t.onKeyDown,o=>{if(["Home","End",...uP].includes(o.key)){let l=i().map(d=>d.ref.current);if([s.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&l.reverse(),uP.includes(o.key)){const d=l.indexOf(o.currentTarget);l=l.slice(d+1)}setTimeout(()=>jk(l)),o.preventDefault()}})})})});function LS(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function jk(t){const e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}
349function bG(t){return t.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{t.forEach(e=>{const r=e.dataset.tabindex;e.setAttribute("tabindex",r)})}}function US(t,e){const r=wr(e);vi(()=>{let n=0;if(t){const i=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return i.observe(t),()=>{window.cancelAnimationFrame(n),i.unobserve(t)}}},[t,r])}function Fk(t){return t?"open":"closed"}function O3(t,e){return`${t}-trigger-${e}`}function D3(t,e){return`${t}-content-${e}`}function Cy(t){return e=>e.pointerType==="mouse"?t(e):void 0}var I3=v3,M3=x3,xG=k3,B3=A3,SG=C3,L3=N3,U3=P3,z3=R3;const _3=x.forwardRef(({className:t,children:e,...r},n)=>f.jsxs(I3,{ref:n,className:Te("relative z-10 flex max-w-max flex-1 items-center justify-center",t),...r,children:[e,f.jsx(W3,{})]}));_3.displayName=I3.displayName;const V3=x.forwardRef(({className:t,...e},r)=>f.jsx(M3,{ref:r,className:Te("group flex flex-1 list-none items-center justify-center space-x-1",t),...e}));V3.displayName=M3.displayName;const Tx=xG,EG=Rh("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),H3=x.forwardRef(({className:t,children:e,...r},n)=>f.jsxs(B3,{ref:n,className:Te(EG(),"group",t),...r,children:[e," ",f.jsx(Oz,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));H3.displayName=B3.displayName;const G3=x.forwardRef(({className:t,...e},r)=>f.jsx(U3,{ref:r,className:Te("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",t),...e}));G3.displayName=U3.displayName;const kG=SG,W3=x.forwardRef(({className:t,...e},r)=>f.jsx("div",{className:Te("absolute left-0 top-full flex justify-center"),children:f.jsx(z3,{className:Te("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",t),ref:r,...e})}));W3.displayName=z3.displayName;const AG=x.forwardRef(({className:t,...e},r)=>f.jsx(L3,{ref:r,className:Te("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",t),...e,children:f.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));AG.displayName=L3.displayName;const CG=ne.forwardRef(({className:t,title:e,children:r,...n},i)=>f.jsx("li",{children:f.jsx(kG,{asChild:!0,children:f.jsxs("a",{ref:i,className:Te("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",t),...n,children:[f.jsx("div",{className:"text-sm font-medium leading-none",children:e}),f.jsx("p",{className:"line-clamp-2 text-sm leading-snug text-muted-foreground",children:r})]})})}));CG.displayName="ListItem";const Ml=()=>{const{user:t,signOut:e,session:r,isAdmin:n}=xi(),i=r!==null&&t!==null,[s,o]=x.useState(!1);return f.jsxs("nav",{className:"bg-background border-b border-border sticky top-0 z-40",children:[f.jsxs("div",{className:"container mx-auto px-4 py-3 flex items-center justify-between",children:[f.jsxs(St,{to:"/",className:"flex items-center",children:[f.jsx(pk,{className:"h-6 w-6 mr-2 text-web3-purple"}),f.jsx("div",{className:"flex flex-col",children:f.jsxs("span",{className:"text-xl font-bold tracking-tight bg-gradient-to-r from-web3-purple to-web3-accent bg-clip-text text-transparent",children:["SecureSign",f.jsx("span",{className:"text-web3-light",children:"NFT"})]})})]}),f.jsxs("div",{className:"hidden md:flex items-center space-x-4",children:[f.jsx(_3,{children:f.jsxs(V3,{children:[f.jsx(Tx,{children:f.jsx(St,{to:"/pricing",className:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus:outline-none focus:bg-accent focus:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none bg-background hover:bg-accent hover:text-accent-foreground h-10 py-2 px-4 group",children:"Pricing"})}),i&&f.jsxs(f.Fragment,{children:[f.jsx(Tx,{children:f.jsxs(St,{to:"/pdf-tools",className:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus:outline-none focus:bg-accent focus:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none bg-background hover:bg-accent hover:text-accent-foreground h-10 py-2 px-4 group",children:[f.jsx(Jn,{className:"h-4 w-4 mr-2"}),"PDF Tools"]})}),f.jsxs(Tx,{children:[f.jsx(H3,{children:"Account"}),f.jsx(G3,{children:f.jsxs("ul",{className:"grid w-[250px] gap-3 p-4",children:[f.jsx("li",{className:"border-b pb-2",children:f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(EN,{className:"h-4 w-4"}),f.jsx("span",{className:"font-medium text-sm",children:t==null?void 0:t.email})]})}),f.jsx("li",{children:f.jsx(St,{to:"/sign",className:"block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",children:"Sign"})}),f.jsx("li",{children:f.jsx(St,{to:"/history",className:"block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",children:"History"})}),n&&f.jsx("li",{children:f.jsx(St,{to:"/admin",className:"block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",children:"Admin Dashboard"})})]})})]})]})]})}),i?f.jsx(oe,{variant:"outline",size:"sm",onClick:()=>e(),children:"Sign Out"}):f.jsx(St,{to:"/auth",children:f.jsx(oe,{variant:"outline",size:"sm",children:"Sign In"})})]}),f.jsx("button",{className:"md:hidden text-gray-600",onClick:()=>o(!s),children:s?f.jsx(Tm,{className:"h-6 w-6"}):f.jsx(Kz,{className:"h-6 w-6"})})]}),s&&f.jsx("div",{className:"md:hidden px-4 py-2 pb-4 bg-background",children:f.jsxs("div",{className:"flex flex-col space-y-2",children:[i&&f.jsx("div",{className:"px-3 py-2 border-b mb-2",children:f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(EN,{className:"h-4 w-4"}),f.jsx("span",{className:"font-medium text-sm",children:t==null?void 0:t.email})]})}),f.jsx(St,{to:"/pricing",className:"px-3 py-2 rounded hover:bg-accent",onClick:()=>o(!1),children:"Pricing"}),i&&f.jsxs(f.Fragment,{children:[f.jsxs(St,{to:"/pdf-tools",className:"px-3 py-2 rounded hover:bg-accent flex items-center",onClick:()=>o(!1),children:[f.jsx(Jn,{className:"h-4 w-4 mr-2"}),"PDF Tools"]}),f.jsx(St,{to:"/sign",className:"px-3 py-2 rounded hover:bg-accent",onClick:()=>o(!1),children:"Sign"}),f.jsx(St,{to:"/history",className:"px-3 py-2 rounded hover:bg-accent",onClick:()=>o(!1),children:"History"}),n&&f.jsx(St,{to:"/admin",className:"px-3 py-2 rounded hover:bg-accent",onClick:()=>o(!1),children:"Admin Dashboard"})]}),f.jsx("div",{className:"pt-2",children:i?f.jsx(oe,{variant:"outline",size:"sm",onClick:()=>{e(),o(!1)},className:"w-full",children:"Sign Out"}):f.jsx(St,{to:"/auth",className:"w-full block",onClick:()=>o(!1),children:f.jsx(oe,{variant:"outline",size:"sm",className:"w-full",children:"Sign In"})})})]})})]})},Vt=x.forwardRef(({className:t,...e},r)=>f.jsx("div",{ref:r,className:Te("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));
349Vt.displayName="Card";const Yi=x.forwardRef(({className:t,...e},r)=>f.jsx("div",{ref:r,className:Te("flex flex-col space-y-1.5 p-6",t),...e}));Yi.displayName="CardHeader";const Ji=x.forwardRef(({className:t,...e},r)=>f.jsx("h3",{ref:r,className:Te("text-2xl font-semibold leading-none tracking-tight",t),...e}));Ji.displayName="CardTitle";const Zi=x.forwardRef(({className:t,...e},r)=>f.jsx("p",{ref:r,className:Te("text-sm text-muted-foreground",t),...e}));Zi.displayName="CardDescription";const Jt=x.forwardRef(({className:t,...e},r)=>f.jsx("div",{ref:r,className:Te("p-6 pt-0",t),...e}));Jt.displayName="CardContent";const Ok=x.forwardRef(({className:t,...e},r)=>f.jsx("div",{ref:r,className:Te("flex items-center p-6 pt-0",t),...e}));Ok.displayName="CardFooter";const NG=()=>{const t=[{icon:f.jsx(pc,{className:"h-10 w-10 text-web3-purple"}),title:"Secure PDF Signing",description:"Sign your PDFs with blockchain technology for tamper-proof authentication."},{icon:f.jsx(pk,{className:"h-10 w-10 text-web3-purple"}),title:"NFT Certification",description:"Convert your signed documents into unique NFTs with provable authenticity."},{icon:f.jsx(hk,{className:"h-10 w-10 text-web3-purple"}),title:"Easy Verification",description:"Instantly verify the authenticity of any document signed on our platform."},{icon:f.jsx(Og,{className:"h-10 w-10 text-web3-purple"}),title:"Multi-wallet Support",description:"Connect with popular wallets like MetaMask, WalletConnect, and more."}];return f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:t.map((e,r)=>f.jsxs(Vt,{className:"border border-purple-500/20 bg-card/50 backdrop-blur-sm hover:border-purple-500/50 transition-all",children:[f.jsxs(Yi,{children:[f.jsx("div",{className:"mb-4",children:e.icon}),f.jsx(Ji,{children:e.title})]}),f.jsx(Jt,{children:f.jsx(Zi,{children:e.description})})]},r))})},Bl=()=>f.jsx("footer",{className:"border-t border-purple-500/20 py-12 mt-auto",children:f.jsxs("div",{className:"container",children:[f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("h3",{className:"font-bold text-xl",children:["SecureSign",f.jsx("span",{className:"text-web3-purple",children:"NFT"})]}),f.jsx("p",{className:"text-muted-foreground",children:"Secure document signing with blockchain verification and NFT certification."})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"font-semibold mb-4",children:"Product"}),f.jsxs("ul",{className:"space-y-2",children:[f.jsx("li",{children:f.jsx(St,{to:"/sign",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Sign PDF"})}),f.jsx("li",{children:f.jsx(St,{to:"/verify",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Verify Document"})}),f.jsx("li",{children:f.jsx(St,{to:"/pricing",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Pricing"})})]})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"font-semibold mb-4",children:"Company"}),f.jsxs("ul",{className:"space-y-2",children:[f.jsx("li",{children:f.jsx(St,{to:"/about",className:"text-muted-foreground hover:text-foreground transition-colors",children:"About Us"})}),f.jsx("li",{children:f.jsx(St,{to:"/contact",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Contact"})}),f.jsx("li",{children:f.jsx(St,{to:"/blog",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Blog"})})]})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"font-semibold mb-4",children:"Legal"}),f.jsxs("ul",{className:"space-y-2",children:[f.jsx("li",{children:f.jsx(St,{to:"/terms",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Terms of Service"})}),f.jsx("li",{children:f.jsx(St,{to:"/privacy",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Privacy Policy"})})]})]})]}),f.jsxs("div",{className:"mt-12 pt-6 border-t border-border flex flex-col md:flex-row justify-between items-center",children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"© 2025 SecureSignNFT. All rights reserved by SynapseImpact, LLC"}),f.jsxs("div",{className:"flex items-center gap-4 mt-4 md:mt-0",children:[f.jsxs("a",{href:"#",className:"text-muted-foreground hover:text-foreground",children:[f.jsx("span",{className:"sr-only",children:"Twitter"}),f.jsx("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{d:"M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"})})]}),f.jsxs("a",{href:"#",className:"text-muted-foreground hover:text-foreground",children:[f.jsx("span",{className:"sr-only",children:"GitHub"}),f.jsx("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158
349-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})})]})]})]})]})}),PG=()=>f.jsxs("div",{className:"flex flex-col min-h-screen",children:[f.jsx(Ml,{}),f.jsxs("main",{className:"flex-grow",children:[f.jsx("section",{className:"py-20 px-4",children:f.jsx("div",{className:"container mx-auto max-w-6xl",children:f.jsxs("div",{className:"flex flex-col md:flex-row gap-12 items-center",children:[f.jsxs("div",{className:"md:w-1/2 space-y-6",children:[f.jsxs("h1",{className:"text-4xl md:text-5xl font-bold leading-tight",children:["Secure Document Signing with ",f.jsx("span",{className:"gradient-text",children:"Blockchain Verification"})]}),f.jsx("p",{className:"text-xl text-muted-foreground",children:"Sign PDFs with cryptographic proof, mint as NFTs, and verify authenticity - all in one platform."}),f.jsxs("div",{className:"flex flex-wrap gap-4 pt-4",children:[f.jsx(oe,{asChild:!0,className:"bg-web3-purple hover:bg-web3-purple/80 text-white px-8 py-6",children:f.jsx(St,{to:"/sign",children:"Start Signing"})}),f.jsx(oe,{asChild:!0,variant:"outline",className:"border-web3-purple text-web3-purple hover:bg-web3-purple/10 px-8 py-6",children:f.jsx(St,{to:"/verify",children:"Verify Document"})})]}),f.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[f.jsx(pk,{className:"h-4 w-4"}),f.jsx("span",{children:"Military-grade encryption and blockchain verification"})]})]}),f.jsxs("div",{className:"md:w-1/2 relative",children:[f.jsx("div",{className:"absolute -inset-0.5 bg-gradient-to-r from-purple-600 to-blue-600 rounded-lg blur opacity-30"}),f.jsxs("div",{className:"relative document-container overflow-hidden rounded-lg p-1",children:[f.jsx("img",{src:"https://placehold.co/600x400/1a1f2c/e5deff?text=Secure+Document+Signing",alt:"Secure Document Signing",className:"rounded-lg w-full h-auto"}),f.jsxs("div",{className:"absolute bottom-4 left-4 right-4 p-4 backdrop-blur-md bg-black/30 rounded-md border border-white/10",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Og,{className:"h-5 w-5 text-web3-purple"}),f.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full"}),f.jsx("span",{className:"text-sm",children:"Connected to Ethereum Mainnet"})]}),f.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[f.jsx(Jn,{className:"h-5 w-5 text-web3-purple"}),f.jsx("span",{className:"text-sm",children:"Document_Contract_01.pdf is ready to sign"})]})]})]})]})]})})}),f.jsx("section",{className:"py-20 px-4 bg-web3-background/50",children:f.jsxs("div",{className:"container mx-auto max-w-6xl",children:[f.jsxs("div",{className:"text-center mb-16",children:[f.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Advanced Features"}),f.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Our platform combines the security of blockchain with the convenience of traditional PDF signing."})]}),f.jsx(NG,{})]})}),f.jsx("section",{className:"py-20 px-4",children:f.jsxs("div",{className:"container mx-auto max-w-6xl",children:[f.jsxs("div",{className:"text-center mb-16",children:[f.jsx("h2",{className:"text-3xl font-bold mb-4",children:"How It Works"}),f.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Simple, secure, and blockchain-powered document signing in just three steps."})]}),f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-12",children:[f.jsxs("div",{className:"flex flex-col items-center text-center",children:[f.jsx("div",{className:"w-16 h-16 rounded-full bg-web3-purple/20 flex items-center justify-center mb-6",children:f.jsx("span",{className:"text-2xl font-bold text-web3-purple",children:"1"})}),f.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Upload Your PDF"}),f.jsx("p",{className:"text-muted-foreground",children:"Upload any PDF document that you need to sign or verify with blockchain technology."})]}),f.jsxs("div",{className:"flex flex-col items-center text-center",children:[f.jsx("div",{className:"w-16 h-16 rounded-full bg-web3-purple/20 flex items-center justify-center mb-6",children:f.jsx("span",{className:"text-2xl font-bold text-web3-purple",children:"2"})}),f.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Sign & Mint NFT"}),f.jsx("p",{className:"text-muted-foreground",children:"Sign your document and mint it as an NFT with a unique hash stored on the blockchain."})]}),f.jsxs("div",{className:"flex flex-col items-center text-center",children:[f.jsx("div",{className:"w-16 h-16 rounded-full bg-web3-purple/20 flex items-center justify-center mb-6",children:f.jsx("span",{className:"text-2xl font-bold text-web3-purple",children:"3"})}),f.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Verify Anytime"}),f.jsx("p",{className:"text-muted-foreground",children:"Share your document with a verification link that anyone can use to confirm authenticity."})]})]}),f.jsx("div",{className:"mt-16 text-center",children:f.jsx(oe,{asChild:!0,className:"bg-web3-purple hover:bg-web3-purple/80 text-white px-8",children:f.jsx(St,{to:"/sign",children:"Try It Now"})})})]})})]}),f.jsx(Bl,{})]}),TG=()=>{const t=rs();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",t.pathname)},[t.pathname]),f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:f.jsxs("div",{className:"text-center",children:[f.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),f.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),f.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},hr=x.forwardRef(({className:t,type:e,...r},n)=>f.jsx("input",{type:e,className:Te("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",t),ref:n,...r}));hr.displayName="Input";function dP(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function RG(...t){return e=>{let r=!1;const n=t.map(i=>{const s=dP(i,e);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let i=0;i<n.length;i++){const s=n[i];typeof s=="function"?s():dP(t[i],null)}}}}var K3=x.forwardRef((t,e)=>{const{children:r,...n}=t,i=x.Children.toArray(r),s=i.find(FG);if(s){const o=s.props.children,a=i.map(l=>l===s?x.Children.count(o)>1?x.Children.only(null):x.isValidElement(o)?o.props.children:null:l);return f.jsx(zS,{...n,ref:e,children:x.isValidElement(o)?x.cloneElement(o,void 0,a):null})}return f.jsx(zS,{...n,ref:e,children:r})});K3.displayName="Slot";var zS=x.forwardRef((t,e)=>{const{children:r,...n}=t;if(x.isValidElement(r)){const i=DG(r),s=OG(n,r.props);return r.type!==x.Fragment&&(s.ref=e?RG(e,i):i),x.cloneElement(r,s)}return x.Children.count(r)>1?x.Children.only(null):null});zS.displayName="SlotClone";var jG=({children:t})=>f.jsx(f.Fragment,{children:t});function FG(t){return x.isValidElement(t)&&t.type===jG}function OG(t,e){const r={...e};for(const n in e){const i=t[n],s=e[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...a)=>{s(...a),i(...a)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}
vendor: 4,965 bytes, line 349
349:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...t,...r}}function DG(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var IG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],MG=IG.reduce((t,e)=>{const r=x.forwardRef((n,i)=>{const{asChild:s,...o}=n,a=s?K3:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...o,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{}),BG="Label",q3=x.forwardRef((t,e)=>f.jsx(MG.label,{...t,ref:e,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=t.onMouseDown)==null||i.call(t,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));q3.displayName=BG;var Q3=q3;const LG=Rh("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),gt=x.forwardRef(({className:t,...e},r)=>f.jsx(Q3,{ref:r,className:Te(LG(),t),...e}));gt.displayName=Q3.displayName;const UG=()=>null;function zG(t,e=[]){let r=[];function n(s,o){const a=x.createContext(o),l=r.length;r=[...r,o];function c(d){const{scope:h,children:p,...m}=d,g=(h==null?void 0:h[t][l])||a,y=x.useMemo(()=>m,Object.values(m));return f.jsx(g.Provider,{value:y,children:p})}function u(d,h){const p=(h==null?void 0:h[t][l])||a,m=x.useContext(p);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,u]}const i=()=>{const s=r.map(o=>x.createContext(o));return function(a){const l=(a==null?void 0:a[t])||s;return x.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[n,_G(i,...e)]}function _G(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=n.reduce((a,{useScope:l,scopeName:c})=>{const d=l(s)[`__scope${c}`];return{...a,...d}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}var Rx="rovingFocusGroup.onEntryFocus",VG={bubbles:!1,cancelable:!0},Qw="RovingFocusGroup",[_S,X3,HG]=Pm(Qw),[GG,Y3]=zG(Qw,[HG]),[WG,KG]=GG(Qw),J3=x.forwardRef((t,e)=>f.jsx(_S.Provider,{scope:t.__scopeRovingFocusGroup,children:f.jsx(_S.Slot,{scope:t.__scopeRovingFocusGroup,children:f.jsx(qG,{...t,ref:e})})}));J3.displayName=Qw;var qG=x.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=t,h=x.useRef(null),p=ar(e,h),m=Mh(s),[g=null,y]=yo({prop:o,defaultProp:a,onChange:l}),[v,w]=x.useState(!1),b=wr(c),E=X3(r),A=x.useRef(!1),[k,P]=x.useState(0);return x.useEffect(()=>{const C=h.current;if(C)return C.addEventListener(Rx,b),()=>C.removeEventListener(Rx,b)},[b]),f.jsx(WG,{scope:r,orientation:n,dir:m,loop:i,currentTabStopId:g,onItemFocus:x.useCallback(C=>y(C),[y]),onItemShiftTab:x.useCallback(()=>w(!0),[]),onFocusableItemAdd:x.useCallback(()=>P(C=>C+1),[]),onFocusableItemRemove:x.useCallback(()=>P(C=>C-1),[]),children:f.jsx(Ge.div,{tabIndex:v||k===0?-1:0,"data-orientation":n,...d,ref:p,style:{outline:"none",...t.style},onMouseDown:Pe(t.onMouseDown,()=>{A.current=!0}),onFocus:Pe(t.onFocus,C=>{const N=!A.current;if(C.target===C.currentTarget&&N&&!v){const R=new CustomEvent(Rx,VG);if(C.currentTarget.dispatchEvent(R),!R.defaultPrevented){const F=E().filter(_=>_.focusable),B=F.find(_=>_.active),D=F.find(_=>_.id===g),M=[B,D,...F].filter(Boolean).map(_=>_.ref.current);eI(M,u)}}A.current=!1}),onBlur:Pe(t.onBlur,()=>w(!1))})})}),Z3="RovingFocusGroupItem",$3=x.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:s,...o}=t,a=Pl(),l=s||a,c=KG(Z3,r),u=c.currentTabStopId===l,d=X3(r),{onFocusableItemAdd:h,onFocusableItemRemove:p}=c;return x.useEffect(()=>{if(n)return h(),()=>p()},[n,h,p]),f.jsx(_S.ItemSlot,{scope:r,id:l,focusable:n,active:i,children:f.jsx(Ge.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...o,ref:e,onMouseDown:Pe(t.onMouseDown,m=>{n?c.onItemFocus(l):m.preventDefault()}),onFocus:Pe(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:Pe(t.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const g=YG(m,c.orientation,c.dir);if(g!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let v=d().filter(w=>w.focusable).map(w=>w.ref.current);if(g==="last")v.reverse();else if(g==="prev"||g==="next"){g==="prev"&&v.reverse();const w=v.indexOf(m.currentTarget);v=c.loop?JG(v,w+1):v.slice(w+1)}setTimeout(()=>eI(v))}})})})});$3.displayName=Z3;var QG={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};
vendor: 4,484 bytes, line 349
349function XG(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function YG(t,e,r){const n=XG(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return QG[n]}function eI(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function JG(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var ZG=J3,$G=$3,Dk="Tabs",[eW,Zse]=mo(Dk,[Y3]),tI=Y3(),[tW,Ik]=eW(Dk),rI=x.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,onValueChange:i,defaultValue:s,orientation:o="horizontal",dir:a,activationMode:l="automatic",...c}=t,u=Mh(a),[d,h]=yo({prop:n,onChange:i,defaultProp:s});return f.jsx(tW,{scope:r,baseId:Pl(),value:d,onValueChange:h,orientation:o,dir:u,activationMode:l,children:f.jsx(Ge.div,{dir:u,"data-orientation":o,...c,ref:e})})});rI.displayName=Dk;var nI="TabsList",iI=x.forwardRef((t,e)=>{const{__scopeTabs:r,loop:n=!0,...i}=t,s=Ik(nI,r),o=tI(r);return f.jsx(ZG,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:n,children:f.jsx(Ge.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:e})})});iI.displayName=nI;var sI="TabsTrigger",oI=x.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,disabled:i=!1,...s}=t,o=Ik(sI,r),a=tI(r),l=cI(o.baseId,n),c=uI(o.baseId,n),u=n===o.value;return f.jsx($G,{asChild:!0,...a,focusable:!i,active:u,children:f.jsx(Ge.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l,...s,ref:e,onMouseDown:Pe(t.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?o.onValueChange(n):d.preventDefault()}),onKeyDown:Pe(t.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&o.onValueChange(n)}),onFocus:Pe(t.onFocus,()=>{const d=o.activationMode!=="manual";!u&&!i&&d&&o.onValueChange(n)})})})});oI.displayName=sI;var aI="TabsContent",lI=x.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,forceMount:i,children:s,...o}=t,a=Ik(aI,r),l=cI(a.baseId,n),c=uI(a.baseId,n),u=n===a.value,d=x.useRef(u);return x.useEffect(()=>{const h=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(h)},[]),f.jsx(vo,{present:i||u,children:({present:h})=>f.jsx(Ge.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0,...o,ref:e,style:{...t.style,animationDuration:d.current?"0s":void 0},children:h&&s})})});lI.displayName=aI;function cI(t,e){return`${t}-trigger-${e}`}function uI(t,e){return`${t}-content-${e}`}var rW=rI,dI=iI,fI=oI,hI=lI;const Fm=rW,Lh=x.forwardRef(({className:t,...e},r)=>f.jsx(dI,{ref:r,className:Te("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t),...e}));Lh.displayName=dI.displayName;const Wn=x.forwardRef(({className:t,...e},r)=>f.jsx(fI,{ref:r,className:Te("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",t),...e}));Wn.displayName=fI.displayName;const Kn=x.forwardRef(({className:t,...e},r)=>f.jsx(hI,{ref:r,className:Te("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...e}));Kn.displayName=hI.displayName;const nW=()=>{const[t,e]=x.useState(!1),[r,n]=x.useState(!1),[i,s]=x.useState(!1),[o,a]=x.useState(null),[l,c]=x.useState(""),[u,d]=x.useState(""),[h,p]=x.useState(""),[m,g]=x.useState("signin"),y=da(),v=rs(),{user:w,handleHashFragment:b,signInWithGoogle:E,signInWithEmail:A,signUpWithEmail:k}=xi(),{toast:P}=Sr(),N=new URLSearchParams(v.search).get("redirect")||"/";x.useEffect(()=>{if(window.location.hash&&window.location.hash.includes("error=")){const D=new URLSearchParams(window.location.hash.substring(1)),L=D.get("error"),M=D.get("error_description");L&&M&&(console.error("Auth error from redirect:",{error:L,errorDescription:M}),a(M),P({title:"Authentication error",description:M||"An error occurred during authentication",variant:"destructive"}),Ue.error("Authentication error: "+M),window.history.replaceState(null,"",window.location.pathname+window.location.search))}},[P]),x.useEffect(()=>{(async()=>
349{if(window.location.hash&&window.location.hash.includes("access_token")){s(!0);try{console.log("Auth page: Processing auth with hash fragment"),await b()?(P({title:"Signed in successfully!",description:"You've been signed in."}),Ue.success("Signed in successfully!"),setTimeout(()=>{y(N,{replace:!0}),s(!1)},500)):(P({title:"Sign in failed",description:"Unable to sign in. Please try again.",variant:"destructive"}),Ue.error("Sign in failed"),s(!1))}catch(L){console.error("Error handling auth:",L),P({title:"Sign in error",description:"An error occurred during sign in. Please try again.",variant:"destructive"}),Ue.error("Error handling auth"),s(!1)}}})()},[y,N,P,b]),x.useEffect(()=>{w&&!i&&y(N,{replace:!0})},[w,y,N,i]);const R=async()=>{e(!0),a(null);try{let D=window.location.origin;D.includes("lovable.dev")&&(D="https://pdf-nft-signer.lovable.app"),console.log("Starting Google sign in process from AuthPage"),console.log("Current URL:",window.location.href),console.log("Expected redirect back to:",`${D}/auth?redirect=/`),await E()}catch(D){console.error("Google sign in error caught in AuthPage:",D),a(D.message||"Failed to sign in with Google"),P({title:"Google sign in error",description:D.message||"Failed to sign in with Google. Please try again.",variant:"destructive"}),Ue.error("Google sign in error: "+D.message)}finally{e(!1)}},F=async D=>{D.preventDefault(),n(!0),a(null);try{if(!l||!u)throw new Error("Email and password are required");console.log("Starting email sign in process"),await A(l,u),P({title:"Signed in successfully!",description:"You've been signed in with your email."}),Ue.success("Signed in successfully!"),y(N,{replace:!0})}catch(L){console.error("Email sign in error:",L),a(L.message||"Failed to sign in with email"),P({title:"Sign in error",description:L.message||"Failed to sign in with email. Please check your credentials and try again.",variant:"destructive"}),Ue.error("Sign in error: "+L.message)}finally{n(!1)}},B=async D=>{D.preventDefault(),n(!0),a(null);try{if(!l||!u||!h)throw new Error("All fields are required");if(u!==h)throw new Error("Passwords do not match");if(u.length<6)throw new Error("Password must be at least 6 characters");console.log("Starting email sign up process"),await k(l,u),P({title:"Account created successfully!",description:"Your account has been created. You can now sign in."}),Ue.success("Account created successfully!"),g("signin"),d(""),p("")}catch(L){console.error("Email sign up error:",L),a(L.message||"Failed to create account"),P({title:"Sign up error",description:L.message||"Failed to create account. Please try again.",variant:"destructive"}),Ue.error("Sign up error: "+L.message)}finally{n(!1)}};return i?f.jsxs("div",{className:"flex flex-col min-h-screen",children:[f.jsx(Ml,{}),f.jsx("div",{className:"flex-grow flex items-center justify-center p-4",children:f.jsxs(Vt,{className:"w-full max-w-md",children:[f.jsxs(Yi,{children:[f.jsx(Ji,{children:"Signing you in"}),f.jsx(Zi,{children:"Please wait while we sign you in..."})]}),f.jsx(Jt,{className:"flex justify-center py-8",children:f.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-web3-purple"})})]})}),f.jsx(Bl,{})]}):f.jsxs("div",{className:"flex flex-col min-h-screen",children:[f.jsx(Ml,{}),f.jsx("div",{className:"flex-grow flex items-center justify-center p-4",children:f.jsx("div",{className:"w-full max-w-md",children:f.jsxs(Vt,{className:"border-web3-purple/20 shadow-lg",children:[f.jsxs(Yi,{className:"space-y-1",children:[f.jsx(Ji,{className:"text-2xl font-bold",children:N!=="/"?"Authentication Required":"Sign In / Sign Up"}),f.jsx(Zi,{children:N!=="/"?"Sign in to continue to the document verification":"Sign in to your account or create a new one"})]}),o&&f.jsxs("div",{className:"mx-6 mb-4 p-3 bg-red-50 border border-red-200 rounded-md text-red-800 flex items-start",children:[f.jsx(ql,{className:"h-5 w-5 mr-2 flex-shrink-0 mt-0.5"}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium",children:"Authentication Error"}),f.jsx("p",{className:"text-sm",children:o})]})]}),f.jsxs(Jt,{className:"space-y-4 pt-5",children:[f.jsxs(Fm,{defaultValue:"signin",value:m,onValueChange:D=>g(D),children:[f.jsxs(Lh,{className:"grid w-full grid-cols-2 mb-4",children:[f.jsx(Wn,{value:"signin",children:"Sign In"}),f.jsx(Wn,{value:"signup",children:"Sign Up"})]}),f.jsx(Kn,{value:"signin",className:"mt-0",children:f.jsxs("form",{onSubmit:F,className:"space-y-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsx(gt,{htmlFor:"email",children:"Email"}),f.jsx(hr,{id:"email",type:"email",placeholder:"[email protected]",value:l,onCh
349ange:D=>c(D.target.value),disabled:r,required:!0})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx("div",{className:"flex justify-between items-center",children:f.jsx(gt,{htmlFor:"password",children:"Password"})}),f.jsx(hr,{id:"password",type:"password",placeholder:"••••••••",value:u,onChange:D=>d(D.target.value),disabled:r,required:!0})]}),f.jsx(oe,{type:"submit",className:"w-full bg-web3-purple hover:bg-web3-purple/90",disabled:r,children:r?"Signing in...":"Sign In with Email"})]})}),f.jsx(Kn,{value:"signup",className:"mt-0",children:f.jsxs("form",{onSubmit:B,className:"space-y-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsx(gt,{htmlFor:"signup-email",children:"Email"}),f.jsx(hr,{id:"signup-email",type:"email",placeholder:"[email protected]",value:l,onChange:D=>c(D.target.value),disabled:r,required:!0})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(gt,{htmlFor:"signup-password",children:"Password"}),f.jsx(hr,{id:"signup-password",type:"password",placeholder:"••••••••",value:u,onChange:D=>d(D.target.value),disabled:r,required:!0}),f.jsx("p",{className:"text-xs text-muted-foreground",children:"Password must be at least 6 characters"})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(gt,{htmlFor:"confirm-password",children:"Confirm Password"}),f.jsx(hr,{id:"confirm-password",type:"password",placeholder:"••••••••",value:h,onChange:D=>p(D.target.value),disabled:r,required:!0})]}),f.jsx(oe,{type:"submit",className:"w-full bg-web3-purple hover:bg-web3-purple/90",disabled:r,children:r?"Creating Account...":"Create Account"})]})})]}),f.jsxs("div",{className:"relative",children:[f.jsx("div",{className:"absolute inset-0 flex items-center",children:f.jsx("span",{className:"w-full border-t"})}),f.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:f.jsx("span",{className:"bg-card px-2 text-muted-foreground",children:"Or continue with"})})]}),f.jsxs(oe,{type:"button",variant:"outline",className:"w-full flex items-center justify-center",onClick:R,disabled:t,children:[f.jsx("svg",{className:"h-4 w-4 mr-2",viewBox:"0 0 24 24",children:f.jsxs("g",{transform:"matrix(1, 0, 0, 1, 27.009001, -39.238998)",children:[f.jsx("path",{fill:"#4285F4",d:"M -3.264 51.509 C -3.264 50.719 -3.334 49.969 -3.454 49.239 L -14.754 49.239 L -14.754 53.749 L -8.284 53.749 C -8.574 55.229 -9.424 56.479 -10.684 57.329 L -10.684 60.329 L -6.824 60.329 C -4.564 58.239 -3.264 55.159 -3.264 51.509 Z"}),f.jsx("path",{fill:"#34A853",d:"M -14.754 63.239 C -11.514 63.239 -8.804 62.159 -6.824 60.329 L -10.684 57.329 C -11.764 58.049 -13.134 58.489 -14.754 58.489 C -17.884 58.489 -20.534 56.379 -21.484 53.529 L -25.464 53.529 L -25.464 56.619 C -23.494 60.539 -19.444 63.239 -14.754 63.239 Z"}),f.jsx("path",{fill:"#FBBC05",d:"M -21.484 53.529 C -21.734 52.809 -21.864 52.039 -21.864 51.239 C -21.864 50.439 -21.724 49.669 -21.484 48.949 L -21.484 45.859 L -25.464 45.859 C -26.284 47.479 -26.754 49.299 -26.754 51.239 C -26.754 53.179 -26.284 54.999 -25.464 56.619 L -21.484 53.529 Z"}),f.jsx("path",{fill:"#EA4335",d:"M -14.754 43.989 C -12.984 43.989 -11.404 44.599 -10.154 45.789 L -6.734 42.369 C -8.804 40.429 -11.514 39.239 -14.754 39.239 C -19.444 39.239 -23.494 41.939 -25.464 45.859 L -21.484 48.949 C -20.534 46.099 -17.884 43.989 -14.754 43.989 Z"})]})}),t?"Signing in with Google...":"Sign in with Google"]})]}),N!=="/"&&f.jsx("div",{className:"px-6 pb-4",children:f.jsx("div",{className:"text-sm text-muted-foreground",children:f.jsx("div",{className:"flex items-center",children:f.jsx("p",{children:"You'll be redirected to verification after sign in"})})})}),f.jsxs("div",{className:"px-6 pb-6",children:[f.jsx("div",{className:"p-3 bg-blue-50 border border-blue-200 rounded-md text-blue-800 mt-4",children:f.jsxs("div",{className:"flex items-start",children:[f.jsx(Iz,{className:"h-5 w-5 mr-2 flex-shrink-0 mt-0.5 text-blue-600"}),f.jsxs("div",{className:"text-sm",children:[f.jsx("p",{className:"font-medium",children:"Authentication Info"}),f.jsx("p",{children:"You can sign in with your email/password or Google account."}),f.jsx("p",{className:"mt-1 text-blue-700",children:"If you're new, you can create an account using the Sign Up tab or with Google."})]})]})}),f.jsx("div",{className:"mt-4",id:"smtp-debug-info",children:f.jsx(UG,{})})]})]})})}),f.jsx(Bl,{})]})},iW="6.13.5";function sW(t,e,r){const n=e.split("|").map(s=>s.trim());for(let s=0;s<n.length;s++)switch(e){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof t===e)return}const i=new Error(`invalid value for type ${e}`);throw i.code="INVALID_ARGUMENT",i.argument=`value.${r}`,i.value=t,i}async function wn(t){const e=Object.keys(t);return(await Promise.all(e.map(n=>Promise.resolve(t[n])))).reduce((n,i,s)=>(n[e[s]]=i,n),{})}function xe(t,e,r){for(let n in e){let i=e[n];const s=r?r[n]:null;s&&sW(i,s,n),Object.defineProperty(t,n,{enumerable:!0,value:i,writable:!1})}}function Td(t){if(t==null)return"null";if(Array.isArray(t))return"[ "+t.map(Td).join(", ")+" ]";if(t instanceof Uint8Array){const e="0123456789abcdef";let r="0x";for(let n=0;n<t.length;n++)r+=e[t[n]>>4],r+=e[t[n]&15];return r}if(typeof t=="object"&&typeof t.toJSON=="function")return Td(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":return BigInt(t).toString();case"number":return t.toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{ "+e.map(r=>`${Td(r)}: ${Td(t[r])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function qr(t,e){return t&&t.code===e}function Mk(t){return qr(t,"CALL_EXCEPTION")}function ir(t,e,r){let n=t;{const s=[];if(r){if("message"in r||"code"in r||"name"in r)throw new Error(`value will over
349write populated values: ${Td(r)}`);for(const o in r){if(o==="shortMessage")continue;const a=r[o];s.push(o+"="+Td(a))}}s.push(`code=${e}`),s.push(`version=${iW}`),s.length&&(t+=" ("+s.join(", ")+")")}let i;switch(e){case"INVALID_ARGUMENT":i=new TypeError(t);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":i=new RangeError(t);break;default:i=new Error(t)}return xe(i,{code:e}),r&&Object.assign(i,r),i.shortMessage==null&&xe(i,{shortMessage:n}),i}function J(t,e,r,n){if(!t)throw ir(e,r,n)}function U(t,e,r,n){J(t,e,"INVALID_ARGUMENT",{argument:r,value:n})}function pI(t,e,r){r==null&&(r=""),r&&(r=": "+r),J(t>=e,"missing argument"+r,"MISSING_ARGUMENT",{count:t,expectedCount:e}),J(t<=e,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:t,expectedCount:e})}["NFD","NFC","NFKD","NFKC"].reduce((t,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");t.push(e)}catch{}return t},[]);function Om(t,e,r){if(r==null&&(r=""),t!==e){let n=r,i="new";r&&(n+=".",i+=" "+r),J(!1,`private constructor; use ${n}from* methods`,"UNSUPPORTED_OPERATION",{operation:i})}}function gI(t,e,r){if(t instanceof Uint8Array)return r?new Uint8Array(t):t;if(typeof t=="string"&&t.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){const n=new Uint8Array((t.length-2)/2);let i=2;for(let s=0;s<n.length;s++)n[s]=parseInt(t.substring(i,i+2),16),i+=2;return n}U(!1,"invalid BytesLike value",e||"value",t)}function at(t,e){return gI(t,e,!1)}function xn(t,e){return gI(t,e,!0)}function Bt(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||typeof e=="number"&&t.length!==2+2*e||e===!0&&t.length%2!==0)}function Bk(t){return Bt(t,!0)||t instanceof Uint8Array}const fP="0123456789abcdef";function ce(t){const e=at(t);let r="0x";for(let n=0;n<e.length;n++){const i=e[n];r+=fP[(i&240)>>4]+fP[i&15]}return r}function pr(t){return"0x"+t.map(e=>ce(e).substring(2)).join("")}function qd(t){return Bt(t,!0)?(t.length-2)/2:at(t).length}function sr(t,e,r){const n=at(t);return r!=null&&r>n.length&&J(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:r}),ce(n.slice(e??0,r??n.length))}function mI(t,e,r){const n=at(t);J(e>=n.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(n),length:e,offset:e+1});const i=new Uint8Array(e);return i.fill(0),r?i.set(n,e-n.length):i.set(n,0),ce(i)}function yu(t,e){return mI(t,e,!0)}function oW(t,e){return mI(t,e,!1)}const Xw=BigInt(0),As=BigInt(1),Rd=9007199254740991;function Ny(t,e){const r=Yw(t,"value"),n=BigInt(He(e,"width"));if(J(r>>n===Xw,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),r>>n-As){const i=(As<<n)-As;return-((~r&i)+As)}return r}function vI(t,e){let r=ge(t,"value");const n=BigInt(He(e,"width")),i=As<<n-As;if(r<Xw){r=-r,J(r<=i,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:t});const s=(As<<n)-As;return(~r&s)+As}else J(r<i,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:t});return r}function Nc(t,e){const r=Yw(t,"value"),n=BigInt(He(e,"bits"));return r&(As<<n)-As}function ge(t,e){switch(typeof t){case"bigint":return t;case"number":return U(Number.isInteger(t),"underflow",e||"value",t),U(t>=-Rd&&t<=Rd,"overflow",e||"value",t),BigInt(t);case"string":try{if(t==="")throw new Error("empty string");return t[0]==="-"&&t[1]!=="-"?-BigInt(t.substring(1)):BigInt(t)}catch(r){U(!1,`invalid BigNumberish string: ${r.message}`,e||"value",t)}}U(!1,"invalid BigNumberish value",e||"value",t)}function Yw(t,e){const r=ge(t,e);return J(r>=Xw,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),r}const hP="0123456789abcdef";function Jw(t){if(t instanceof Uint8Array){let e="0x0";for(const r of t)e+=hP[r>>4],e+=hP[r&15];return BigInt(e)}return ge(t)}function He(t,e){switch(typeof t){case"bigint":return U(t>=-Rd&&t<=Rd,"overflow",e||"value",t),Number(t);case"number":return U(Number.isInteger(t),"underflow",e||"value",t),U(t>=-Rd&&t<=Rd,"overflow",e||"value",t),t;case"string":try{if(t==="")throw new Error("empty string");
349return He(BigInt(t),e)}catch(r){U(!1,`invalid numeric string: ${r.message}`,e||"value",t)}}U(!1,"invalid numeric value",e||"value",t)}function aW(t){return He(Jw(t))}function Ll(t,e){let n=Yw(t,"value").toString(16);if(e==null)n.length%2&&(n="0"+n);else{const i=He(e,"width");for(J(i*2>=n.length,`value exceeds width (${i} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:t});n.length<i*2;)n="0"+n}return"0x"+n}function kn(t){const e=Yw(t,"value");if(e===Xw)return new Uint8Array([]);let r=e.toString(16);r.length%2&&(r="0"+r);const n=new Uint8Array(r.length/2);for(let i=0;i<n.length;i++){const s=i*2;n[i]=parseInt(r.substring(s,s+2),16)}return n}function jd(t){let e=ce(Bk(t)?t:kn(t)).substring(2);for(;e.startsWith("0");)e=e.substring(1);return e===""&&(e="0"),"0x"+e}const pP="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";BigInt(0);const gP=BigInt(58);function lW(t){const e=at(t);let r=Jw(e),n="";for(;r;)n=pP[Number(r%gP)]+n,r/=gP;for(let i=0;i<e.length&&!e[i];i++)n=pP[0]+n;return n}function cW(t){t=atob(t);const e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return at(e)}function uW(t){const e=at(t);let r="";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}var nf;class yI{constructor(e,r,n){W(this,"filter");W(this,"emitter");z(this,nf);T(this,nf,r),xe(this,{emitter:e,filter:n})}async removeListener(){S(this,nf)!=null&&await this.emitter.off(this.filter,S(this,nf))}}nf=new WeakMap;function dW(t,e,r,n,i){U(!1,`invalid codepoint at offset ${e}; ${t}`,"bytes",r)}function wI(t,e,r,n,i){if(t==="BAD_PREFIX"||t==="UNEXPECTED_CONTINUE"){let s=0;for(let o=e+1;o<r.length&&r[o]>>6===2;o++)s++;return s}return t==="OVERRUN"?r.length-e-1:0}function fW(t,e,r,n,i){return t==="OVERLONG"?(U(typeof i=="number","invalid bad code point for replacement","badCodepoint",i),n.push(i),0):(n.push(65533),wI(t,e,r))}const hW=Object.freeze({error:dW,ignore:wI,replace:fW});function pW(t,e){e==null&&(e=hW.error);const r=at(t,"bytes"),n=[];let i=0;for(;i<r.length;){const s=r[i++];if(!(s>>7)){n.push(s);continue}let o=null,a=null;if((s&224)===192)o=1,a=127;else if((s&240)===224)o=2,a=2047;else if((s&248)===240)o=3,a=65535;else{(s&192)===128?i+=e("UNEXPECTED_CONTINUE",i-1,r,n):i+=e("BAD_PREFIX",i-1,r,n);continue}if(i-1+o>=r.length){i+=e("OVERRUN",i-1,r,n);continue}let l=s&(1<<8-o-1)-1;for(let c=0;c<o;c++){let u=r[i];if((u&192)!=128){i+=e("MISSING_CONTINUE",i,r,n),l=null;break}l=l<<6|u&63,i++}if(l!==null){if(l>1114111){i+=e("OUT_OF_RANGE",i-1-o,r,n,l);continue}if(l>=55296&&l<=57343){i+=e("UTF16_SURROGATE",i-1-o,r,n,l);continue}if(l<=a){i+=e("OVERLONG",i-1-o,r,n,l);continue}n.push(l)}}return n}function ho(t,e){U(typeof t=="string","invalid string value","str",t);let r=[];for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;const s=t.charCodeAt(n);U(n<t.length&&(s&64512)===56320,"invalid surrogate pair","str",t);const o=65536+((i&1023)<<10)+(s&1023);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return new Uint8Array(r)}function gW(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function Py(t,e){return gW(pW(t,e))}function bI(t){async function e(r,n){J(n==null||!n.cancelled,"request cancelled before sending","CANCELLED");const i=r.url.split(":")[0].toLowerCase();J(i==="http"||i==="https",`unsupported protocol ${i}`,"UNSUPPORTED_OPERATION",{info:{protocol:i},operation:"request"}),J(i==="https"||!r.credentials||r.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let s=null;const o=new AbortController,a=setTimeout(()=>{s=ir("request timeout","TIMEOUT"),o.abort()},r.timeout);n&&n.addListener(()=>{s=ir("request cancelled","CANCELLED"),o.abort()});const l={method:r.method,headers:new Headers(Array.from(r)),body:r.body||void 0,signal:o.signal};let c;try{c=await fetch(r.url,l)}catch(p){throw clearTimeout(a),s||p}clearTimeout(a);const u={};
349c.headers.forEach((p,m)=>{u[m.toLowerCase()]=p});const d=await c.arrayBuffer(),h=d==null?null:new Uint8Array(d);return{statusCode:c.status,statusMessage:c.statusText,headers:u,body:h}}return e}const mW=12,vW=250;let mP=bI();const yW=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),wW=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let jx=!1;async function xI(t,e){try{const r=t.match(yW);if(!r)throw new Error("invalid data");return new Tl(200,"OK",{"content-type":r[1]||"text/plain"},r[2]?cW(r[3]):xW(r[3]))}catch{return new Tl(599,"BAD REQUEST (invalid data: URI)",{},null,new la(t))}}function SI(t){async function e(r,n){try{const i=r.match(wW);if(!i)throw new Error("invalid link");return new la(`${t}${i[2]}`)}catch{return new Tl(599,"BAD REQUEST (invalid IPFS URI)",{},null,new la(r))}}return e}const R0={data:xI,ipfs:SI("https://gateway.ipfs.io/ipfs/")},EI=new WeakMap;var Oc,Ga;class bW{constructor(e){z(this,Oc);z(this,Ga);T(this,Oc,[]),T(this,Ga,!1),EI.set(e,()=>{if(!S(this,Ga)){T(this,Ga,!0);for(const r of S(this,Oc))setTimeout(()=>{r()},0);T(this,Oc,[])}})}addListener(e){J(!S(this,Ga),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),S(this,Oc).push(e)}get cancelled(){return S(this,Ga)}checkSignal(){J(!this.cancelled,"cancelled","CANCELLED",{})}}Oc=new WeakMap,Ga=new WeakMap;function j0(t){if(t==null)throw new Error("missing signal; should not happen");return t.checkSignal(),t}var sf,of,hs,Io,af,lf,Ir,ri,Mo,Dc,Ic,Mc,Ws,ps,Wa,Bc,Fp;const aw=class aw{constructor(e){z(this,Bc);z(this,sf);z(this,of);z(this,hs);z(this,Io);z(this,af);z(this,lf);z(this,Ir);z(this,ri);z(this,Mo);z(this,Dc);z(this,Ic);z(this,Mc);z(this,Ws);z(this,ps);z(this,Wa);T(this,lf,String(e)),T(this,sf,!1),T(this,of,!0),T(this,hs,{}),T(this,Io,""),T(this,af,3e5),T(this,ps,{slotInterval:vW,maxAttempts:mW}),T(this,Wa,null)}get url(){return S(this,lf)}set url(e){T(this,lf,String(e))}get body(){return S(this,Ir)==null?null:new Uint8Array(S(this,Ir))}set body(e){if(e==null)T(this,Ir,void 0),T(this,ri,void 0);else if(typeof e=="string")T(this,Ir,ho(e)),T(this,ri,"text/plain");else if(e instanceof Uint8Array)T(this,Ir,e),T(this,ri,"application/octet-stream");else if(typeof e=="object")T(this,Ir,ho(JSON.stringify(e))),T(this,ri,"application/json");else throw new Error("invalid body")}hasBody(){return S(this,Ir)!=null}get method(){return S(this,Io)?S(this,Io):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),T(this,Io,String(e).toUpperCase())}get headers(){const e=Object.assign({},S(this,hs));return S(this,Mo)&&(e.authorization=`Basic ${uW(ho(S(this,Mo)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&S(this,ri)&&(e["content-type"]=S(this,ri)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,r){S(this,hs)[String(e).toLowerCase()]=String(r)}clearHeaders(){T(this,hs,{})}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n<r.length){const i=r[n++];return{value:[i,e[i]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return S(this,Mo)||null}setCredentials(e,r){U(!e.match(/:/),"invalid basic authentication username","username","[REDACTED]"),T(this,Mo,`${e}:${r}`)}get allowGzip(){return S(this,of)}set allowGzip(e){T(this,of,!!e)}get allowInsecureAuthentication(){return!!S(this,sf)}set allowInsecureAuthentication(e){T(this,sf,!!e)}get timeout(){return S(this,af)}set timeout(e){U(e>=0,"timeout must be non-zero","timeout",e),T(this,af,e)}get preflightFunc(){return S(this,Dc)||null}set preflightFunc(e){T(this,Dc,e)}get processFunc(){return S(this,Ic)||null}set processFunc(e){T(this,Ic,e)}get retryFunc(){return S(this,Mc)||null}set retryFunc(e){T(this,Mc,e)}get getUrlFunc(){return S(this,Wa)||mP}set getUrlFunc(e){T(this,Wa,e)}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${S(this,Ir)?ce(S(this,Ir)):"null"}>`}setThrottleParams(e){e.slotInterval!=null&&(S(this,ps).slotInterval=e.slotInterval),e.maxAttempts!=null&&(S(this,ps).maxAttempts=e.maxAttempts)}send(){return J(S(this,Ws)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),T(this,Ws,new bW(this)),Q(this,Bc,Fp).call(this,0,vP()+this.timeout,0,this,new Tl(0,"",{},null,this))}cancel(){J(S(this,Ws)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=EI.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const r=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();J(this.method==="GET"&&(r!=="https"||n!=="http")&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const i=new aw(e);return i.method="GET",i.allowGzip=this.allowGzip,i.timeout=this.timeout,T(i,hs,Object.assign({},S(this,hs))),S(this,Ir)&&T(i,Ir,new Uint8Array(S(this,Ir))),T(i,ri,S(this,ri)),i}clone(){const e=new aw(this.url);return T(e,Io,S(this,Io)),S(this,Ir)&&T(e,Ir,S(this,Ir)),T(e,ri,S(this,ri)),T(e,hs,Object.assign({},S(this,hs))),T(e,Mo,S(this,Mo)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),T(e,Dc,S(this,Dc)),T(e,Ic,S(this,Ic)),T(e,Mc,S(this,Mc)),T(e,ps,Object.assign({},S(this,ps))),T(e,Wa,S(this,Wa)),e}static lockConfig(){jx=!0}static getGateway(e){return R0[e.toLowerCase()]||null}static registerGateway(e,r){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(jx)throw new Error("gateways locked");R0[e]=r}static registerGetUrl(e){if(jx)throw new Error("gateways locked");mP=e}static createGetUrlFunc(e){return bI()}static createDataGateway(){return xI}static createIpfsGatewayFunc(e){return SI(e)}};sf=new WeakMap,of=new WeakMap,hs=new WeakMap,Io=new WeakMap,af=new WeakMap,lf=new WeakMap,Ir=new WeakMap,ri=new WeakMap,Mo=new WeakMap,Dc=new WeakMap,Ic=new WeakMap,Mc=new WeakMap,Ws=new WeakMap,ps=new WeakMap,Wa=new WeakMap,Bc=new WeakSet,Fp=async function(e,r,n,i,s){var u,d,h;if(e>=S(this,ps).maxAttempts)return s.makeServerError("exceeded maximum retry limit");J(vP()<=r,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:i}),n>0&&await SW(n);let o=this.clone();const a=(o.url.split(":")[0]||"").toLowerCase();if(a in R0){const p=await R0[a](o.url,j0(S(i,Ws)));if(p instanceof Tl){let m=p;if(this.processFunc){j0(S(i,Ws));try{m=await this.processFunc(o,m)}catch(g){(g.throttle==null||typeof g.stall!="number")&&m.makeServerError("error in post-processing function",g).assertOk()}}return m}o=p}this.preflightFunc&&(o=await this.preflightFunc(o));const l=await this.getUrlFunc(o,j0(S(i,Ws)));let c=new Tl(l.statusCode,l.statusMessage,l.headers,l.body,i);if(c.statusCode===301||c.statusCode===302){try{const p=c.headers.location||"";return Q(u=o.redirect(p),Bc,Fp).call(u,e+1,r,0,i,c)}catch{}return c}else if(c.statusCode===429&&(this.retryFunc==null||await this.retryFunc(o,c,e))){const p=c.headers["retry-after"];let m=S(this,ps).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return typeof p=="string"&&p.match(/^[1-9][0-9]*$/)&&(m=parseInt(p)),Q(d=o.clone(),Bc,Fp).call(d,e+1,r,m,i,c)}if(this.processFunc){j0(S(i,Ws));try{c=await this.processFunc(o,c)}catch(p){(p.throttle==null||typeof p.stall!="number")&&c.makeServerError("error in post-processing function",p).assertOk();let m=S(this,ps).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return p.stall>=0&&(m=p.stall),Q(h=o.clone(),Bc,Fp).call(h,e+1,r,m,i,c)}}return c};let la=aw;var om,am,lm,ni,cf,Lc;const ZA=class ZA{constructor(e,r,n,i,s){z(this,om);z(this,am);z(this,lm);z(this,ni);z(this,cf);z(this,Lc);T(this,om,e),T(this,am,r),T(this,lm,Object.keys(n).reduce((o,a)=>(o[a.toLowerCase()]=String(n[a]),o),{})),T(this,ni,i==null?null:new Uint8Array(i)),T(this,cf,s||null),T(this,Lc,{message:""})}toString(){return`<FetchResponse status=${this.statusCode} body=${S(this,ni)?ce(S(this,ni)):"null"}>`}get statusCode(){return S(this,om)}get statusMessage(){return S(this,am)}get headers(){return Object.assign({},S(this,lm))}get body(){return S(this,ni)==null?null:new Uint8Array(S(this,ni))}get bodyText(){try{return S(this,ni)==null?"":Py(S(this,ni))}
349catch{J(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{J(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n<r.length){const i=r[n++];return{value:[i,e[i]],done:!1}}return{value:void 0,done:!0}}}}makeServerError(e,r){let n;e?n=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:(e=`${this.statusCode} ${this.statusMessage}`,n=`CLIENT ESCALATED SERVER ERROR (${e})`);const i=new ZA(599,n,this.headers,this.body,S(this,cf)||void 0);return T(i,Lc,{message:e,error:r}),i}throwThrottleError(e,r){r==null?r=-1:U(Number.isInteger(r)&&r>=0,"invalid stall timeout","stall",r);const n=new Error(e||"throttling requests");throw xe(n,{stall:r,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return S(this,ni)!=null}get request(){return S(this,cf)}ok(){return S(this,Lc).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:r}=S(this,Lc);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let n=null;this.request&&(n=this.request.url);let i=null;try{S(this,ni)&&(i=Py(S(this,ni)))}catch{}J(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:r,info:{requestUrl:n,responseBody:i,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}};om=new WeakMap,am=new WeakMap,lm=new WeakMap,ni=new WeakMap,cf=new WeakMap,Lc=new WeakMap;let Tl=ZA;function vP(){return new Date().getTime()}function xW(t){return ho(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function SW(t){return new Promise(e=>setTimeout(e,t))}const EW=BigInt(-1),ls=BigInt(0),Fd=BigInt(1),kW=BigInt(5),$u={};let Qd="0000";for(;Qd.length<80;)Qd+=Qd;function oc(t){let e=Qd;for(;e.length<t;)e+=e;return BigInt("1"+e.substring(0,t))}function hp(t,e,r){const n=BigInt(e.width);if(e.signed){const i=Fd<<n-Fd;J(r==null||t>=-i&&t<i,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:t}),t>ls?t=Ny(Nc(t,n),n):t=-Ny(Nc(-t,n),n)}else{const i=Fd<<n;J(r==null||t>=0&&t<i,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:t}),t=(t%i+i)%i&i-Fd}return t}function Fx(t){typeof t=="number"&&(t=`fixed128x${t}`);let e=!0,r=128,n=18;if(typeof t=="string"){if(t!=="fixed")if(t==="ufixed")e=!1;else{const s=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);U(s,"invalid fixed format","format",t),e=s[1]!=="u",r=parseInt(s[2]),n=parseInt(s[3])}}else if(t){const s=t,o=(a,l,c)=>s[a]==null?c:(U(typeof s[a]===l,"invalid fixed format ("+a+" not "+l+")","format."+a,s[a]),s[a]);e=o("signed","boolean",e),r=o("width","number",r),n=o("decimals","number",n)}U(r%8===0,"invalid FixedNumber width (not byte aligned)","format.width",r),U(n<=80,"invalid FixedNumber decimals (too large)","format.decimals",n);const i=(e?"":"u")+"fixed"+String(r)+"x"+String(n);return{signed:e,width:r,decimals:n,name:i}}function AW(t,e){let r="";t<ls&&(r="-",t*=EW);let n=t.toString();if(e===0)return r+n;for(;n.length<=e;)n=Qd+n;const i=n.length-e;for(n=n.substring(0,i)+"."+n.substring(i);n[0]==="0"&&n[1]!==".";)n=n.substring(1);for(;n[n.length-1]==="0"&&n[n.length-2]!==".";)n=n.substring(0,n.length-1);return r+n}var gs,Rt,pn,Et,dc,ko,HS,GS,WS,KS;const Ua=class Ua{constructor(e,r,n){z(this,Et);W(this,"format");z(this,gs);z(this,Rt);z(this,pn);W(this,"_value");Om(e,$u,"FixedNumber"),T(this,Rt,r),T(this,gs,n);const i=AW(r,n.decimals);xe(this,{format:n.name,_value:i}),T(this,pn,oc(n.decimals))}get signed(){return S(this,gs).signed}get width(){return S(this,gs).width}get decimals(){return S(this,gs).decimals}get value(){return S(this,Rt)}addUnsafe(e){return Q(this,Et,HS).call(this,e)}add(e){return Q(this,Et,HS).call(this,e,"add")}subUnsafe(e){return Q(this,Et,GS).call(this,e)}sub(e){return Q(this,Et,GS).call(this,e,"sub")}mulUnsafe(e){return Q(this,Et,WS).call(this,e)}mul(e){return Q(this,Et,WS).call(this,e,"mul")}mulSignal(e){Q(this,Et,dc).call(this,e);const r=S(this,Rt)*S(e,Rt);return J(r%S(this,pn)===ls,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),Q(this,Et,ko).call(this,r/S(this,pn),"mulSignal")}divUnsafe(e){return Q(this,Et,KS).call(this,e)}div(e){return Q(this,Et,KS).call(this,e,"div")}divSignal(e){J(S(e,Rt)!==ls,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),Q(this,Et,dc).call(this,e);const r=S(this,Rt)*S(this,pn);return J(r%S(e,Rt)===ls,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),Q(this,Et,ko).call(this,r/S(e,Rt),"divSignal")}
349cmp(e){let r=this.value,n=e.value;const i=this.decimals-e.decimals;return i>0?n*=oc(i):i<0&&(r*=oc(-i)),r<n?-1:r>n?1:0}eq(e){return this.cmp(e)===0}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=S(this,Rt);return S(this,Rt)<ls&&(e-=S(this,pn)-Fd),e=S(this,Rt)/S(this,pn)*S(this,pn),Q(this,Et,ko).call(this,e,"floor")}ceiling(){let e=S(this,Rt);return S(this,Rt)>ls&&(e+=S(this,pn)-Fd),e=S(this,Rt)/S(this,pn)*S(this,pn),Q(this,Et,ko).call(this,e,"ceiling")}round(e){if(e==null&&(e=0),e>=this.decimals)return this;const r=this.decimals-e,n=kW*oc(r-1);let i=this.value+n;const s=oc(r);return i=i/s*s,hp(i,S(this,gs),"round"),new Ua($u,i,S(this,gs))}isZero(){return S(this,Rt)===ls}isNegative(){return S(this,Rt)<ls}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return Ua.fromString(this.toString(),e)}static fromValue(e,r,n){const i=r==null?0:He(r),s=Fx(n);let o=ge(e,"value");const a=i-s.decimals;if(a>0){const l=oc(a);J(o%l===ls,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),o/=l}else a<0&&(o*=oc(-a));return hp(o,s,"fromValue"),new Ua($u,o,s)}static fromString(e,r){const n=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);U(n&&n[2].length+n[3].length>0,"invalid FixedNumber string value","value",e);const i=Fx(r);let s=n[2]||"0",o=n[3]||"";for(;o.length<i.decimals;)o+=Qd;J(o.substring(i.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:e}),o=o.substring(0,i.decimals);const a=BigInt(n[1]+s+o);return hp(a,i,"fromString"),new Ua($u,a,i)}static fromBytes(e,r){let n=Jw(at(e,"value"));const i=Fx(r);return i.signed&&(n=Ny(n,i.width)),hp(n,i,"fromBytes"),new Ua($u,n,i)}};gs=new WeakMap,Rt=new WeakMap,pn=new WeakMap,Et=new WeakSet,dc=function(e){U(this.format===e.format,"incompatible format; use fixedNumber.toFormat","other",e)},ko=function(e,r){return e=hp(e,S(this,gs),r),new Ua($u,e,S(this,gs))},HS=function(e,r){return Q(this,Et,dc).call(this,e),Q(this,Et,ko).call(this,S(this,Rt)+S(e,Rt),r)},GS=function(e,r){return Q(this,Et,dc).call(this,e),Q(this,Et,ko).call(this,S(this,Rt)-S(e,Rt),r)},WS=function(e,r){return Q(this,Et,dc).call(this,e),Q(this,Et,ko).call(this,S(this,Rt)*S(e,Rt)/S(this,pn),r)},KS=function(e,r){return J(S(e,Rt)!==ls,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),Q(this,Et,dc).call(this,e),Q(this,Et,ko).call(this,S(this,Rt)*S(this,pn)/S(e,Rt),r)};let VS=Ua;function CW(t){let e=t.toString(16);for(;e.length<2;)e="0"+e;return"0x"+e}function yP(t,e,r){let n=0;for(let i=0;i<r;i++)n=n*256+t[e+i];return n}function wP(t,e,r,n){const i=[];for(;r<e+1+n;){const s=kI(t,r);i.push(s.result),r+=s.consumed,J(r<=e+1+n,"child data too short","BUFFER_OVERRUN",{buffer:t,length:n,offset:e})}return{consumed:1+n,result:i}}function kI(t,e){J(t.length!==0,"data too short","BUFFER_OVERRUN",{buffer:t,length:0,offset:1});const r=n=>{J(n<=t.length,"data short segment too short","BUFFER_OVERRUN",{buffer:t,length:t.length,offset:n})};if(t[e]>=248){const n=t[e]-247;r(e+1+n);const i=yP(t,e+1,n);return r(e+1+n+i),wP(t,e,e+1+n,n+i)}else if(t[e]>=192){const n=t[e]-192;return r(e+1+n),wP(t,e,e+1,n)}else if(t[e]>=184){const n=t[e]-183;r(e+1+n);const i=yP(t,e+1,n);r(e+1+n+i);const s=ce(t.slice(e+1+n,e+1+n+i));return{consumed:1+n+i,result:s}}else if(t[e]>=128){const n=t[e]-128;r(e+1+n);const i=ce(t.slice(e+1,e+1+n));return{consumed:1+n,result:i}}return{consumed:1,result:CW(t[e])}}function Zw(t){const e=at(t,"data"),r=kI(e,0);return U(r.consumed===e.length,"unexpected junk after rlp payload","data",t),r.result}function bP(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function AI(t){if(Array.isArray(t)){let n=[];if(t.forEach(function(s){n=n.concat(AI(s))}),n.length<=55)return n.unshift(192+n.length),n;const i=bP(n.length);return i.unshift(247+i.length),i.concat(n)}const e=Array.prototype.slice.call(at(t,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const r=bP(e.length);return r.unshift(183+r.length),r.concat(e)}const xP="0123456789abcdef";function wu(t){let e="0x";for(const r of AI(t))e+=xP[r>>4],e+=xP[r&15];return e}function NW(t,e){U(typeof t=="string","value must be a string","value",t);let r=18;return r=He(e,"unit"),VS.fromString(t,{decimals:r,width:512}).value}function PW(t){return NW(t,18)}const An=32,qS=new Uint8Array(An),TW=["then"],F0={},CI=new WeakMap;function yc(t){return CI.get(t)}function SP(t,e){CI.set(t,e)}function pp(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);throw r.error=e,r}function QS(t,e,r){return t.indexOf(null)>=0?e.map((n,i)=>n instanceof gh?QS(yc(n),n,r):n):t.reduce((n,i,s)=>{let o=e.getValue(i);return i in n||(r&&o instanceof gh&&(o=QS(yc(o),o,r)),n[i]=o),n},{})}var uf;const Md=class Md extends Array{constructor(...r){const n=r[0];let i=r[1],s=(r[2]||[]).slice(),o=!0;n!==F0&&(i=r,s=[],o=!1);super(i.length);z(this,uf);
349i.forEach((c,u)=>{this[u]=c});const a=s.reduce((c,u)=>(typeof u=="string"&&c.set(u,(c.get(u)||0)+1),c),new Map);if(SP(this,Object.freeze(i.map((c,u)=>{const d=s[u];return d!=null&&a.get(d)===1?d:null}))),T(this,uf,[]),S(this,uf)==null&&S(this,uf),!o)return;Object.freeze(this);const l=new Proxy(this,{get:(c,u,d)=>{if(typeof u=="string"){if(u.match(/^[0-9]+$/)){const p=He(u,"%index");if(p<0||p>=this.length)throw new RangeError("out of result range");const m=c[p];return m instanceof Error&&pp(`index ${p}`,m),m}if(TW.indexOf(u)>=0)return Reflect.get(c,u,d);const h=c[u];if(h instanceof Function)return function(...p){return h.apply(this===d?c:this,p)};if(!(u in c))return c.getValue.apply(this===d?c:this,[u])}return Reflect.get(c,u,d)}});return SP(l,yc(this)),l}toArray(r){const n=[];return this.forEach((i,s)=>{i instanceof Error&&pp(`index ${s}`,i),r&&i instanceof Md&&(i=i.toArray(r)),n.push(i)}),n}toObject(r){const n=yc(this);return n.reduce((i,s,o)=>(J(s!=null,`value at index ${o} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),QS(n,this,r)),{})}slice(r,n){r==null&&(r=0),r<0&&(r+=this.length,r<0&&(r=0)),n==null&&(n=this.length),n<0&&(n+=this.length,n<0&&(n=0)),n>this.length&&(n=this.length);const i=yc(this),s=[],o=[];for(let a=r;a<n;a++)s.push(this[a]),o.push(i[a]);return new Md(F0,s,o)}filter(r,n){const i=yc(this),s=[],o=[];for(let a=0;a<this.length;a++){const l=this[a];l instanceof Error&&pp(`index ${a}`,l),r.call(n,l,a,this)&&(s.push(l),o.push(i[a]))}return new Md(F0,s,o)}map(r,n){const i=[];for(let s=0;s<this.length;s++){const o=this[s];o instanceof Error&&pp(`index ${s}`,o),i.push(r.call(n,o,s,this))}return i}getValue(r){const n=yc(this).indexOf(r);if(n===-1)return;const i=this[n];return i instanceof Error&&pp(`property ${JSON.stringify(r)}`,i.error),i}static fromItems(r,n){return new Md(F0,r,n)}};uf=new WeakMap;let gh=Md;function EP(t){let e=kn(t);return J(e.length<=An,"value out-of-bounds","BUFFER_OVERRUN",{buffer:e,length:An,offset:e.length}),e.length!==An&&(e=xn(pr([qS.slice(e.length%An),e]))),e}class fa{constructor(e,r,n,i){W(this,"name");W(this,"type");W(this,"localName");W(this,"dynamic");xe(this,{name:e,type:r,localName:n,dynamic:i},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(e,r){U(!1,e,this.localName,r)}}var Bo,Uc,df,Av;class XS{constructor(){z(this,df);z(this,Bo);z(this,Uc);T(this,Bo,[]),T(this,Uc,0)}get data(){return pr(S(this,Bo))}get length(){return S(this,Uc)}appendWriter(e){return Q(this,df,Av).call(this,xn(e.data))}writeBytes(e){let r=xn(e);const n=r.length%An;return n&&(r=xn(pr([r,qS.slice(n)]))),Q(this,df,Av).call(this,r)}writeValue(e){return Q(this,df,Av).call(this,EP(e))}writeUpdatableValue(){const e=S(this,Bo).length;return S(this,Bo).push(qS),T(this,Uc,S(this,Uc)+An),r=>{S(this,Bo)[e]=EP(r)}}}Bo=new WeakMap,Uc=new WeakMap,df=new WeakSet,Av=function(e){return S(this,Bo).push(e),T(this,Uc,S(this,Uc)+e.length),e.length};var In,ii,zc,_c,Ka,Fu,JS,NI;const $A=class $A{constructor(e,r,n){z(this,Fu);W(this,"allowLoose");z(this,In);z(this,ii);z(this,zc);z(this,_c);z(this,Ka);xe(this,{allowLoose:!!r}),T(this,In,xn(e)),T(this,zc,0),T(this,_c,null),T(this,Ka,n??1024),T(this,ii,0)}get data(){return ce(S(this,In))}get dataLength(){return S(this,In).length}get consumed(){return S(this,ii)}get bytes(){return new Uint8Array(S(this,In))}subReader(e){const r=new $A(S(this,In).slice(S(this,ii)+e),this.allowLoose,S(this,Ka));return T(r,_c,this),r}readBytes(e,r){let n=Q(this,Fu,NI).call(this,0,e,!!r);return Q(this,Fu,JS).call(this,e),T(this,ii,S(this,ii)+n.length),n.slice(0,e)}readValue(){return Jw(this.readBytes(An))}readIndex(){return aW(this.readBytes(An))}};In=new WeakMap,ii=new WeakMap,zc=new WeakMap,_c=new WeakMap,Ka=new WeakMap,Fu=new WeakSet,JS=function(e){var r;if(S(this,_c))return Q(r=S(this,_c),Fu,JS).call(r,e);T(this,zc,S(this,zc)+e),J(S(this,Ka)<1||S(this,zc)<=S(this,Ka)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${S(this,Ka)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:xn(S(this,In)),offset:S(this,ii),length:e,info:{bytesRead:S(this,zc),dataLength:this.dataLength}})},NI=function(e,r,n){let i=Math.ceil(r/An)*An;return S(this,ii)+i>S(this,In).length&&(this.allowLoose&&n&&S(this,ii)+r<=S(this,In).length?i=r:J(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:xn(S(this,In)),length:S(this,In).length,offset:S(this,ii)+i})),S(this,In).slice(S(this,ii),S(this,ii)+i)};let YS=$A;function Ty(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function Lk(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function RW(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Ty(t.outputLen),Ty(t.blockLen)}function mh(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function PI(t,e){Lk(t);const r=e.outputLen;if(t.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}const Ox=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const TI=t=>t instanceof Uint8Array,jW=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),Dx=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Us=(t,e)=>t<<32-e|t>>>e,FW=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!FW)throw new Error("Non little-endian hardware is not supported");function OW(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function $w(t){if(typeof t=="string"&&(t=OW(t)),!TI(t))throw new Error(`expected Uint8Array, got ${typeof t}`);return t}function DW(...t){const e=new Uint8Array(t.reduce((n,i)=>n+i.length,0));let r=0;return t.forEach(n=>{if(!TI(n))throw new Error("Uint8Array expected");
vendor: 7,305 bytes, line 349
349e.set(n,r),r+=n.length}),e}class Uk{clone(){return this._cloneInto()}}function zk(t){const e=n=>t().update($w(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function IW(t=32){if(Ox&&typeof Ox.getRandomValues=="function")return Ox.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}class RI extends Uk{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,RW(e);const n=$w(r);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,s=new Uint8Array(i);s.set(n.length>i?e.create().update(n).digest():n);for(let o=0;o<s.length;o++)s[o]^=54;this.iHash.update(s),this.oHash=e.create();for(let o=0;o<s.length;o++)s[o]^=106;this.oHash.update(s),s.fill(0)}update(e){return mh(this),this.iHash.update(e),this}digestInto(e){mh(this),Lk(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:i,destroyed:s,blockLen:o,outputLen:a}=this;return e=e,e.finished=i,e.destroyed=s,e.blockLen=o,e.outputLen=a,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const jI=(t,e,r)=>new RI(t,e).update(r).digest();jI.create=(t,e)=>new RI(t,e);function MW(t,e,r,n){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,r,n);const i=BigInt(32),s=BigInt(4294967295),o=Number(r>>i&s),a=Number(r&s),l=n?4:0,c=n?0:4;t.setUint32(e+l,o,n),t.setUint32(e+c,a,n)}class FI extends Uk{constructor(e,r,n,i){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Dx(this.buffer)}update(e){mh(this);const{view:r,buffer:n,blockLen:i}=this;e=$w(e);const s=e.length;for(let o=0;o<s;){const a=Math.min(i-this.pos,s-o);if(a===i){const l=Dx(e);for(;i<=s-o;o+=i)this.process(l,o);continue}n.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===i&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){mh(this),PI(e,this),this.finished=!0;const{buffer:r,view:n,blockLen:i,isLE:s}=this;let{pos:o}=this;r[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>i-o&&(this.process(n,0),o=0);for(let d=o;d<i;d++)r[d]=0;MW(n,i-8,BigInt(this.length*8),s),this.process(n,0);const a=Dx(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=l/4,u=this.get();if(c>u.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d<c;d++)a.setUint32(4*d,u[d],s)}digest(){const{buffer:e,outputLen:r}=this;this.digestInto(e);const n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:r,buffer:n,length:i,finished:s,destroyed:o,pos:a}=this;return e.length=i,e.pos=a,e.finished=s,e.destroyed=o,i%r&&e.buffer.set(n),e}}const BW=(t,e,r)=>t&e^~t&r,LW=(t,e,r)=>t&e^t&r^e&r,UW=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ba=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),xa=new Uint32Array(64);class zW extends FI{constructor(){super(64,32,8,!1),this.A=ba[0]|0,this.B=ba[1]|0,this.C=ba[2]|0,this.D=ba[3]|0,this.E=ba[4]|0,this.F=ba[5]|0,this.G=ba[6]|0,this.H=ba[7]|0}get(){const{A:e,B:r,C:n,D:i,E:s,F:o,G:a,H:l}=this;return[e,r,n,i,s,o,a,l]}set(e,r,n,i,s,o,a,l){this.A=e|0,this.B=r|0,this.C=n|0,this.D=i|0,this.E=s|0,this.F=o|0,this.G=a|0,this.H=l|0}process(e,r){for(let d=0;d<16;d++,r+=4)xa[d]=e.getUint32(r,!1);for(let d=16;d<64;d++){const h=xa[d-15],p=xa[d-2],m=Us(h,7)^Us(h,18)^h>>>3,g=Us(p,17)^Us(p,19)^p>>>10;xa[d]=g+xa[d-7]+m+xa[d-16]|0}let{A:n,B:i,C:s,D:o,E:a,F:l,G:c,H:u}=this;for(let d=0;d<64;d++){const h=Us(a,6)^Us(a,11)^Us(a,25),p=u+h+BW(a,l,c)+UW[d]+xa[d]|0,g=(Us(n,2)^Us(n,13)^Us(n,22))+LW(n,i,s)|0;u=c,c=l,l=a,a=o+p|0,o=s,s=i,i=n,n=p+g|0}n=n+this.A|0,i=i+this.B|0,s=s+this.C|0,o=o+this.D|0,a=a+this.E|0,l=l+this.F|0,c=c+this.G|0,u=u+this.H|0,this.set(n,i,s,o,a,l,c,u)}roundClean(){xa.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const OI=zk(()=>new zW),O0=BigInt(2**32-1),ZS=BigInt(32);function DI(t,e=!1){return e?{h:Number(t&O0),l:Number(t>>ZS&O0)}:{h:Number(t>>ZS&O0)|0,l:Number(t&O0)|0}}function II(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let i=0;i<t.length;i++){const{h:s,l:o}=DI(t[i],e);[r[i],n[i]]=[s,o]}return[r,n]}const _W=(t,e)=>BigInt(t>>>0)<<ZS|BigInt(e>>>0),VW=(t,e,r)=>t>>>r,HW=(t,e,r)=>t<<32-r|e>>>r,GW=(t,e,r)=>t>>>r|e<<32-r,WW=(t,e,r)=>t<<32-r|e>>>r,KW=(t,e,r)=>t<<64-r|e>>>r-32,qW=(t,e,r)=>t>>>r-32|e<<64-r,QW=(t,e)=>e,XW=(t,e)=>t,MI=(t,e,r)=>t<<r|e>>>32-r,BI=(t,e,r)=>e<<r|t>>>32-r,LI=(t,e,r)=>e<<r-32|t>>>64-r,UI=(t,e,r)=>t<<r-32|e>>>64-r;function YW(t,e,r,n){const i=(e>>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:i|0}}const JW=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),ZW=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,$W=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),eK=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,tK=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0),rK=(t,e,r,n,i,s)=>e+r+n+i+s+(t/2**32|0)|0,_e={fromBig:DI,split:II,toBig:_W,shrSH:VW,shrSL:HW,rotrSH:GW,rotrSL:WW,rotrBH:KW,rotrBL:qW,rotr32H:QW,rotr32L:XW,rotlSH:MI,rotlSL:BI,rotlBH:LI,rotlBL:UI,add:YW,add3L:JW,add3H:ZW,add4L:$W,add4H:eK,add5H:rK,add5L:tK},[nK,iK]=_e.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
3495771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),Sa=new Uint32Array(80),Ea=new Uint32Array(80);class sK extends FI{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:r,Bh:n,Bl:i,Ch:s,Cl:o,Dh:a,Dl:l,Eh:c,El:u,Fh:d,Fl:h,Gh:p,Gl:m,Hh:g,Hl:y}=this;return[e,r,n,i,s,o,a,l,c,u,d,h,p,m,g,y]}set(e,r,n,i,s,o,a,l,c,u,d,h,p,m,g,y){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=i|0,this.Ch=s|0,this.Cl=o|0,this.Dh=a|0,this.Dl=l|0,this.Eh=c|0,this.El=u|0,this.Fh=d|0,this.Fl=h|0,this.Gh=p|0,this.Gl=m|0,this.Hh=g|0,this.Hl=y|0}process(e,r){for(let b=0;b<16;b++,r+=4)Sa[b]=e.getUint32(r),Ea[b]=e.getUint32(r+=4);for(let b=16;b<80;b++){const E=Sa[b-15]|0,A=Ea[b-15]|0,k=_e.rotrSH(E,A,1)^_e.rotrSH(E,A,8)^_e.shrSH(E,A,7),P=_e.rotrSL(E,A,1)^_e.rotrSL(E,A,8)^_e.shrSL(E,A,7),C=Sa[b-2]|0,N=Ea[b-2]|0,R=_e.rotrSH(C,N,19)^_e.rotrBH(C,N,61)^_e.shrSH(C,N,6),F=_e.rotrSL(C,N,19)^_e.rotrBL(C,N,61)^_e.shrSL(C,N,6),B=_e.add4L(P,F,Ea[b-7],Ea[b-16]),D=_e.add4H(B,k,R,Sa[b-7],Sa[b-16]);Sa[b]=D|0,Ea[b]=B|0}let{Ah:n,Al:i,Bh:s,Bl:o,Ch:a,Cl:l,Dh:c,Dl:u,Eh:d,El:h,Fh:p,Fl:m,Gh:g,Gl:y,Hh:v,Hl:w}=this;for(let b=0;b<80;b++){const E=_e.rotrSH(d,h,14)^_e.rotrSH(d,h,18)^_e.rotrBH(d,h,41),A=_e.rotrSL(d,h,14)^_e.rotrSL(d,h,18)^_e.rotrBL(d,h,41),k=d&p^~d&g,P=h&m^~h&y,C=_e.add5L(w,A,P,iK[b],Ea[b]),N=_e.add5H(C,v,E,k,nK[b],Sa[b]),R=C|0,F=_e.rotrSH(n,i,28)^_e.rotrBH(n,i,34)^_e.rotrBH(n,i,39),B=_e.rotrSL(n,i,28)^_e.rotrBL(n,i,34)^_e.rotrBL(n,i,39),D=n&s^n&a^s&a,L=i&o^i&l^o&l;v=g|0,w=y|0,g=p|0,y=m|0,p=d|0,m=h|0,{h:d,l:h}=_e.add(c|0,u|0,N|0,R|0),c=a|0,u=l|0,a=s|0,l=o|0,s=n|0,o=i|0;const M=_e.add3L(R,B,L);n=_e.add3H(M,N,F,D),i=M|0}({h:n,l:i}=_e.add(this.Ah|0,this.Al|0,n|0,i|0)),{h:s,l:o}=_e.add(this.Bh|0,this.Bl|0,s|0,o|0),{h:a,l}=_e.add(this.Ch|0,this.Cl|0,a|0,l|0),{h:c,l:u}=_e.add(this.Dh|0,this.Dl|0,c|0,u|0),{h:d,l:h}=_e.add(this.Eh|0,this.El|0,d|0,h|0),{h:p,l:m}=_e.add(this.Fh|0,this.Fl|0,p|0,m|0),{h:g,l:y}=_e.add(this.Gh|0,this.Gl|0,g|0,y|0),{h:v,l:w}=_e.add(this.Hh|0,this.Hl|0,v|0,w|0),this.set(n,i,s,o,a,l,c,u,d,h,p,m,g,y,v,w)}roundClean(){Sa.fill(0),Ea.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const oK=zk(()=>new sK);function aK(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const kP=aK();kP.crypto||kP.msCrypto;function lK(t){switch(t){case"sha256":return OI.create();case"sha512":return oK.create()}U(!1,"invalid hashing algorithm name","algorithm",t)}const[zI,_I,VI]=[[],[],[]],cK=BigInt(0),gp=BigInt(1),uK=BigInt(2),dK=BigInt(7),fK=BigInt(256),hK=BigInt(113);for(let t=0,e=gp,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],zI.push(2*(5*n+r)),_I.push((t+1)*(t+2)/2%64);let i=cK;for(let s=0;s<7;s++)e=(e<<gp^(e>>dK)*hK)%fK,e&uK&&(i^=gp<<(gp<<BigInt(s))-gp);VI.push(i)}const[pK,gK]=II(VI,!0),AP=(t,e,r)=>r>32?LI(t,e,r):MI(t,e,r),CP=(t,e,r)=>r>32?UI(t,e,r):BI(t,e,r);function mK(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let o=0;o<10;o++)r[o]=t[o]^t[o+10]^t[o+20]^t[o+30]^t[o+40];for(let o=0;o<10;o+=2){const a=(o+8)%10,l=(o+2)%10,c=r[l],u=r[l+1],d=AP(c,u,1)^r[a],h=CP(c,u,1)^r[a+1];for(let p=0;p<50;p+=10)t[o+p]^=d,t[o+p+1]^=h}let i=t[2],s=t[3];for(let o=0;o<24;o++){const a=_I[o],l=AP(i,s,a),c=CP(i,s,a),u=zI[o];i=t[u],s=t[u+1],t[u]=l,t[u+1]=c}for(let o=0;o<50;o+=10){for(let a=0;a<10;a++)r[a]=t[o+a];for(let a=0;a<10;a++)t[o+a]^=~r[(a+2)%10]&r[(a+4)%10]}t[0]^=pK[n],t[1]^=gK[n]}r.fill(0)}class _k extends Uk{constructor(e,r,n,i=!1,s=24){if(super(),this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Ty(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=jW(this.state)}keccak(){mK(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){mh(this);const{blockLen:r,state:n}=this;e=$w(e);const i=e.length;for(let s=0;s<i;){const o=Math.min(r-this.pos,i-s);for(let a=0;a<o;a++)n[this.pos++]^=e[s++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:r,pos:n,blockLen:i}=this;e[n]^=r,r&128&&n===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){mh(this,!1),Lk(e),this.finish();const r=this.state,{blockLen:n}=this;for(let i=0,s=e.length;i<s;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,s-i);e.set(r.subarray(this.posOut,this.posOut+o),i),this.posOut+=o,i+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return Ty(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(PI(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:r,suffix:n,outputLen:i,rounds:s,enableXOF:o}=this;return e||(e=new _k(r,n,i,o,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=n,e.outputLen=i,e.enableXOF=o,e.destroyed=this.destroyed,e}}const vK=(t,e,r)=>zk(()=>new _k(e,t,r)),yK=vK(1,136,256/8);let HI=!1;const GI=function(t){return yK(t)};let WI=GI;function xr(t){const e=at(t,"data");return ce(WI(e))}xr._=GI;xr.lock=function(){HI=!0};xr.register=function(t){if(HI)throw new TypeError("keccak256 is locked");WI=t};Object.freeze(xr);const KI=function(t){return lK("sha256").update(t).digest()};let qI=KI,QI=!1;function Uh(t){const e=at(t,"data");return ce(qI(e))}Uh._=KI;Uh.lock=function(){QI=!0};Uh.register=function(t){if(QI)throw new Error("sha256 is locked");qI=t};Object.freeze(Uh);Object.freeze(Uh);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const XI=BigInt(0),eb=BigInt(1),wK=BigInt(2),tb=t=>t instanceof Uint8Array,bK=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function vh(t){if(!tb(t))throw new Error("Uint8Array expected");let e="";for(let r=0;r<t.length;r++)e+=bK[t[r]];return e}function YI(t){const e=t.toString(16);return e.length&1?`0${e}`:e}function Vk(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);return BigInt(t===""?"0":`0x${t}`)}function yh(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const e=t.length;if(e%2)throw new Error("padded hex string expected, got unpadded hex of length "+e);
vendor: 7,925 bytes, line 349
349const r=new Uint8Array(e/2);for(let n=0;n<r.length;n++){const i=n*2,s=t.slice(i,i+2),o=Number.parseInt(s,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");r[n]=o}return r}function lu(t){return Vk(vh(t))}function Hk(t){if(!tb(t))throw new Error("Uint8Array expected");return Vk(vh(Uint8Array.from(t).reverse()))}function wh(t,e){return yh(t.toString(16).padStart(e*2,"0"))}function Gk(t,e){return wh(t,e).reverse()}function xK(t){return yh(YI(t))}function fs(t,e,r){let n;if(typeof e=="string")try{n=yh(e)}catch(s){throw new Error(`${t} must be valid hex string, got "${e}". Cause: ${s}`)}else if(tb(e))n=Uint8Array.from(e);else throw new Error(`${t} must be hex string or Uint8Array`);const i=n.length;if(typeof r=="number"&&i!==r)throw new Error(`${t} expected ${r} bytes, got ${i}`);return n}function Bg(...t){const e=new Uint8Array(t.reduce((n,i)=>n+i.length,0));let r=0;return t.forEach(n=>{if(!tb(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}function SK(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function EK(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function kK(t){let e;for(e=0;t>XI;t>>=eb,e+=1);return e}function AK(t,e){return t>>BigInt(e)&eb}const CK=(t,e,r)=>t|(r?eb:XI)<<BigInt(e),Wk=t=>(wK<<BigInt(t-1))-eb,Ix=t=>new Uint8Array(t),NP=t=>Uint8Array.from(t);function JI(t,e,r){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=Ix(t),i=Ix(t),s=0;const o=()=>{n.fill(1),i.fill(0),s=0},a=(...d)=>r(i,n,...d),l=(d=Ix())=>{i=a(NP([0]),d),n=a(),d.length!==0&&(i=a(NP([1]),d),n=a())},c=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const h=[];for(;d<e;){n=a();const p=n.slice();h.push(p),d+=n.length}return Bg(...h)};return(d,h)=>{o(),l(d);let p;for(;!(p=h(c()));)l();return o(),p}}const NK={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||t instanceof Uint8Array,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function Dm(t,e,r={}){const n=(i,s,o)=>{const a=NK[s];if(typeof a!="function")throw new Error(`Invalid validator "${s}", expected function`);const l=t[i];if(!(o&&l===void 0)&&!a(l,t))throw new Error(`Invalid param ${String(i)}=${l} (${typeof l}), expected ${s}`)};for(const[i,s]of Object.entries(e))n(i,s,!1);for(const[i,s]of Object.entries(r))n(i,s,!0);return t}const PK=Object.freeze(Object.defineProperty({__proto__:null,bitGet:AK,bitLen:kK,bitMask:Wk,bitSet:CK,bytesToHex:vh,bytesToNumberBE:lu,bytesToNumberLE:Hk,concatBytes:Bg,createHmacDrbg:JI,ensureBytes:fs,equalBytes:SK,hexToBytes:yh,hexToNumber:Vk,numberToBytesBE:wh,numberToBytesLE:Gk,numberToHexUnpadded:YI,numberToVarBytesBE:xK,utf8ToBytes:EK,validateObject:Dm},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const zr=BigInt(0),dr=BigInt(1),wc=BigInt(2),TK=BigInt(3),$S=BigInt(4),PP=BigInt(5),TP=BigInt(8);BigInt(9);BigInt(16);function Un(t,e){const r=t%e;return r>=zr?r:e+r}function RK(t,e,r){if(r<=zr||e<zr)throw new Error("Expected power/modulo > 0");if(r===dr)return zr;let n=dr;for(;e>zr;)e&dr&&(n=n*t%r),t=t*t%r,e>>=dr;return n}function Ci(t,e,r){let n=t;for(;e-- >zr;)n*=n,n%=r;return n}function e2(t,e){if(t===zr||e<=zr)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=Un(t,e),n=e,i=zr,s=dr;for(;r!==zr;){const a=n/r,l=n%r,c=i-s*a;n=r,r=l,i=s,s=c}if(n!==dr)throw new Error("invert: does not exist");return Un(i,e)}function jK(t){const e=(t-dr)/wc;let r,n,i;for(r=t-dr,n=0;r%wc===zr;r/=wc,n++);for(i=wc;i<t&&RK(i,e,t)!==t-dr;i++);if(n===1){const o=(t+dr)/$S;return function(l,c){const u=l.pow(c,o);if(!l.eql(l.sqr(u),c))throw new Error("Cannot find square root");return u}}const s=(r+dr)/wc;return function(a,l){if(a.pow(l,e)===a.neg(a.ONE))throw new Error("Cannot find square root");let c=n,u=a.pow(a.mul(a.ONE,i),r),d=a.pow(l,s),h=a.pow(l,r);for(;!a.eql(h,a.ONE);){if(a.eql(h,a.ZERO))return a.ZERO;let p=1;for(let g=a.sqr(h);p<c&&!a.eql(g,a.ONE);p++)g=a.sqr(g);const m=a.pow(u,dr<<BigInt(c-p-1));u=a.sqr(m),d=a.mul(d,m),h=a.mul(h,u),c=p}return d}}function FK(t){if(t%$S===TK){const e=(t+dr)/$S;return function(n,i){const s=n.pow(i,e);if(!n.eql(n.sqr(s),i))throw new Error("Cannot find square root");return s}}if(t%TP===PP){const e=(t-PP)/TP;return function(n,i){const s=n.mul(i,wc),o=n.pow(s,e),a=n.mul(i,o),l=n.mul(n.mul(a,wc),o),c=n.mul(a,n.sub(l,n.ONE));if(!n.eql(n.sqr(c),i))throw new Error("Cannot find square root");return c}}return jK(t)}const OK=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function DK(t){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=OK.reduce((n,i)=>(n[i]="function",n),e);return Dm(t,r)}function IK(t,e,r){if(r<zr)throw new Error("Expected power > 0");if(r===zr)return t.ONE;if(r===dr)return e;let n=t.ONE,i=e;for(;r>zr;)r&dr&&(n=t.mul(n,i)),i=t.sqr(i),r>>=dr;return n}function MK(t,e){const r=new Array(e.length),n=e.reduce((s,o,a)=>t.is0(o)?s:(r[a]=s,t.mul(s,o)),t.ONE),i=t.inv(n);return e.reduceRight((s,o,a)=>t.is0(o)?s:(r[a]=t.mul(s,r[a]),t.mul(s,o)),i),r}function ZI(t,e){const r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function BK(t,e,r=!1,n={}){if(t<=zr)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:i,nByteLength:s}=ZI(t,e);if(s>2048)throw new Error("Field lengths over 2048 bytes are not supported");const o=FK(t),a=Object.freeze({ORDER:t,BITS:i,BYTES:s,MASK:Wk(i),ZERO:zr,ONE:dr,create:l=>Un(l,t),isValid:l=>{if(typeof l!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof l}`);return zr<=l&&l<t},is0:l=>l===zr,isOdd:l=>(l&dr)===dr,neg:l=>Un(-l,t),eql:(l,c)=>l===c,sqr:l=>Un(l*l,t),add:(l,c)=>Un(l+c,t),sub:(l,c)=>Un(l-c,t),mul:(l,c)=>Un(l*c,t),pow:(l,c)=>IK(a,l,c),div:(l,c)=>Un(l*e2(c,t),t),sqrN:l=>l*l,addN:(l,c)=>l+c,subN:(l,c)=>l-c,mulN:(l,c)=>l*c,inv:l=>e2(l,t),sqrt:n.sqrt||(l=>o(a,l)),invertBatch:l=>MK(a,l),cmov:(l,c,u)=>u?c:l,toBytes:l=>r?Gk(l,s):wh(l,s),fromBytes:l=>{if(l.length!==s)throw new Error(`Fp.fromBytes: expected ${s}, got ${l.length}`);return r?Hk(l):lu(l)}});return Object.freeze(a)}function $I(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function e4(t){const e=$I(t);return e+Math.ceil(e/2)}function LK(t,e,r=!1){const n=t.length,i=$I(e),s=e4(e);if(n<16||n<s||n>1024)throw new Error(`expected ${s}-1024 bytes of input, got ${n}`);const o=r?lu(t):Hk(t),a=Un(o,e-dr)+dr;return r?Gk(a,i):wh(a,i)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const UK=BigInt(0),Mx=BigInt(1);function zK(t,e){const r=(i,s)=>{const o=s.negate();return i?o:s},n=i=>{const s=Math.ceil(e/i)+1,o=2**(i-1);return{windows:s,windowSize:o}};return{constTimeNegate:r,unsafeLadder(i,s){let o=t.ZERO,a=i;for(;s>UK;)s&Mx&&(o=o.add(a)),a=a.double(),s>>=Mx;return o},precomputeWindow(i,s){const{windows:o,windowSize:a}=n(s),l=[];let c=i,u=c;for(let d=0;d<o;d++){u=c,l.push(u);for(let h=1;h<a;h++)u=u.add(c),l.push(u);c=u.double()}return l},wNAF(i,s,o){const{windows:a,windowSize:l}=n(i);let c=t.ZERO,u=t.BASE;const d=BigInt(2**i-1),h=2**i,p=BigInt(i);for(let m=0;m<a;m++){const g=m*l;let y=Number(o&d);o>>=p,y>l&&(y-=h,o+=Mx);const v=g,w=g+Math.abs(y)-1,b=m%2!==0,E=y<0;y===0?u=u.add(r(b,s[v])):c=c.add(r(E,s[w]))}return{p:c,f:u}},wNAFCached(i,s,o,a){const l=i._WINDOW_SIZE||1;let c=s.get(i);
349return c||(c=this.precomputeWindow(i,l),l!==1&&s.set(i,a(c))),this.wNAF(l,c,o)}}}function t4(t){return DK(t.Fp),Dm(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...ZI(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function _K(t){const e=t4(t);Dm(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:i}=e;if(r){if(!n.eql(i,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:VK,hexToBytes:HK}=PK,Pc={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(t){const{Err:e}=Pc;if(t.length<2||t[0]!==2)throw new e("Invalid signature integer tag");const r=t[1],n=t.subarray(2,r+2);if(!r||n.length!==r)throw new e("Invalid signature integer: wrong length");if(n[0]&128)throw new e("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:VK(n),l:t.subarray(r+2)}},toSig(t){const{Err:e}=Pc,r=typeof t=="string"?HK(t):t;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let n=r.length;if(n<2||r[0]!=48)throw new e("Invalid signature tag");if(r[1]!==n-2)throw new e("Invalid signature: incorrect length");const{d:i,l:s}=Pc._parseInt(r.subarray(2)),{d:o,l:a}=Pc._parseInt(s);if(a.length)throw new e("Invalid signature: left bytes after parsing");return{r:i,s:o}},hexFromSig(t){const e=c=>Number.parseInt(c[0],16)&8?"00"+c:c,r=c=>{const u=c.toString(16);return u.length&1?`0${u}`:u},n=e(r(t.s)),i=e(r(t.r)),s=n.length/2,o=i.length/2,a=r(s),l=r(o);return`30${r(o+s+4)}02${l}${i}02${a}${n}`}},qo=BigInt(0),Ii=BigInt(1);BigInt(2);const RP=BigInt(3);BigInt(4);function GK(t){const e=_K(t),{Fp:r}=e,n=e.toBytes||((m,g,y)=>{const v=g.toAffine();return Bg(Uint8Array.from([4]),r.toBytes(v.x),r.toBytes(v.y))}),i=e.fromBytes||(m=>{const g=m.subarray(1),y=r.fromBytes(g.subarray(0,r.BYTES)),v=r.fromBytes(g.subarray(r.BYTES,2*r.BYTES));return{x:y,y:v}});function s(m){const{a:g,b:y}=e,v=r.sqr(m),w=r.mul(v,m);return r.add(r.add(w,r.mul(m,g)),y)}if(!r.eql(r.sqr(e.Gy),s(e.Gx)))throw new Error("bad generator point: equation left != right");function o(m){return typeof m=="bigint"&&qo<m&&m<e.n}function a(m){if(!o(m))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function l(m){const{allowedPrivateKeyLengths:g,nByteLength:y,wrapPrivateKey:v,n:w}=e;if(g&&typeof m!="bigint"){if(m instanceof Uint8Array&&(m=vh(m)),typeof m!="string"||!g.includes(m.length))throw new Error("Invalid key");m=m.padStart(y*2,"0")}let b;try{b=typeof m=="bigint"?m:lu(fs("private key",m,y))}catch{throw new Error(`private key must be ${y} bytes, hex or bigint, not ${typeof m}`)}return v&&(b=Un(b,w)),a(b),b}const c=new Map;function u(m){if(!(m instanceof d))throw new Error("ProjectivePoint expected")}class d{constructor(g,y,v){if(this.px=g,this.py=y,this.pz=v,g==null||!r.isValid(g))throw new Error("x required");if(y==null||!r.isValid(y))throw new Error("y required");if(v==null||!r.isValid(v))throw new Error("z required")}static fromAffine(g){const{x:y,y:v}=g||{};if(!g||!r.isValid(y)||!r.isValid(v))throw new Error("invalid affine point");if(g instanceof d)throw new Error("projective point not allowed");const w=b=>r.eql(b,r.ZERO);return w(y)&&w(v)?d.ZERO:new d(y,v,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(g){const y=r.invertBatch(g.map(v=>v.pz));return g.map((v,w)=>v.toAffine(y[w])).map(d.fromAffine)}static fromHex(g){const y=d.fromAffine(i(fs("pointHex",g)));return y.assertValidity(),y}static fromPrivateKey(g){return d.BASE.multiply(l(g))}_setWindowSize(g){this._WINDOW_SIZE=g,c.delete(this)}
349assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:g,y}=this.toAffine();if(!r.isValid(g)||!r.isValid(y))throw new Error("bad point: x or y not FE");const v=r.sqr(y),w=s(g);if(!r.eql(v,w))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:g}=this.toAffine();if(r.isOdd)return!r.isOdd(g);throw new Error("Field doesn't support isOdd")}equals(g){u(g);const{px:y,py:v,pz:w}=this,{px:b,py:E,pz:A}=g,k=r.eql(r.mul(y,A),r.mul(b,w)),P=r.eql(r.mul(v,A),r.mul(E,w));return k&&P}negate(){return new d(this.px,r.neg(this.py),this.pz)}double(){const{a:g,b:y}=e,v=r.mul(y,RP),{px:w,py:b,pz:E}=this;let A=r.ZERO,k=r.ZERO,P=r.ZERO,C=r.mul(w,w),N=r.mul(b,b),R=r.mul(E,E),F=r.mul(w,b);return F=r.add(F,F),P=r.mul(w,E),P=r.add(P,P),A=r.mul(g,P),k=r.mul(v,R),k=r.add(A,k),A=r.sub(N,k),k=r.add(N,k),k=r.mul(A,k),A=r.mul(F,A),P=r.mul(v,P),R=r.mul(g,R),F=r.sub(C,R),F=r.mul(g,F),F=r.add(F,P),P=r.add(C,C),C=r.add(P,C),C=r.add(C,R),C=r.mul(C,F),k=r.add(k,C),R=r.mul(b,E),R=r.add(R,R),C=r.mul(R,F),A=r.sub(A,C),P=r.mul(R,N),P=r.add(P,P),P=r.add(P,P),new d(A,k,P)}add(g){u(g);const{px:y,py:v,pz:w}=this,{px:b,py:E,pz:A}=g;let k=r.ZERO,P=r.ZERO,C=r.ZERO;const N=e.a,R=r.mul(e.b,RP);let F=r.mul(y,b),B=r.mul(v,E),D=r.mul(w,A),L=r.add(y,v),M=r.add(b,E);L=r.mul(L,M),M=r.add(F,B),L=r.sub(L,M),M=r.add(y,w);let _=r.add(b,A);return M=r.mul(M,_),_=r.add(F,D),M=r.sub(M,_),_=r.add(v,w),k=r.add(E,A),_=r.mul(_,k),k=r.add(B,D),_=r.sub(_,k),C=r.mul(N,M),k=r.mul(R,D),C=r.add(k,C),k=r.sub(B,C),C=r.add(B,C),P=r.mul(k,C),B=r.add(F,F),B=r.add(B,F),D=r.mul(N,D),M=r.mul(R,M),B=r.add(B,D),D=r.sub(F,D),D=r.mul(N,D),M=r.add(M,D),F=r.mul(B,M),P=r.add(P,F),F=r.mul(_,M),k=r.mul(L,k),k=r.sub(k,F),F=r.mul(L,B),C=r.mul(_,C),C=r.add(C,F),new d(k,P,C)}subtract(g){return this.add(g.negate())}is0(){return this.equals(d.ZERO)}wNAF(g){return p.wNAFCached(this,c,g,y=>{const v=r.invertBatch(y.map(w=>w.pz));return y.map((w,b)=>w.toAffine(v[b])).map(d.fromAffine)})}multiplyUnsafe(g){const y=d.ZERO;if(g===qo)return y;if(a(g),g===Ii)return this;const{endo:v}=e;if(!v)return p.unsafeLadder(this,g);let{k1neg:w,k1:b,k2neg:E,k2:A}=v.splitScalar(g),k=y,P=y,C=this;for(;b>qo||A>qo;)b&Ii&&(k=k.add(C)),A&Ii&&(P=P.add(C)),C=C.double(),b>>=Ii,A>>=Ii;return w&&(k=k.negate()),E&&(P=P.negate()),P=new d(r.mul(P.px,v.beta),P.py,P.pz),k.add(P)}multiply(g){a(g);let y=g,v,w;const{endo:b}=e;if(b){const{k1neg:E,k1:A,k2neg:k,k2:P}=b.splitScalar(y);let{p:C,f:N}=this.wNAF(A),{p:R,f:F}=this.wNAF(P);C=p.constTimeNegate(E,C),R=p.constTimeNegate(k,R),R=new d(r.mul(R.px,b.beta),R.py,R.pz),v=C.add(R),w=N.add(F)}else{const{p:E,f:A}=this.wNAF(y);v=E,w=A}return d.normalizeZ([v,w])[0]}multiplyAndAddUnsafe(g,y,v){const w=d.BASE,b=(A,k)=>k===qo||k===Ii||!A.equals(w)?A.multiplyUnsafe(k):A.multiply(k),E=b(this,y).add(b(g,v));return E.is0()?void 0:E}toAffine(g){const{px:y,py:v,pz:w}=this,b=this.is0();g==null&&(g=b?r.ONE:r.inv(w));const E=r.mul(y,g),A=r.mul(v,g),k=r.mul(w,g);if(b)return{x:r.ZERO,y:r.ZERO};if(!r.eql(k,r.ONE))throw new Error("invZ was invalid");return{x:E,y:A}}isTorsionFree(){const{h:g,isTorsionFree:y}=e;if(g===Ii)return!0;if(y)return y(d,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:g,clearCofactor:y}=e;return g===Ii?this:y?y(d,this):this.multiplyUnsafe(e.h)}toRawBytes(g=!0){return this.assertValidity(),n(d,this,g)}toHex(g=!0){return vh(this.toRawBytes(g))}}d.BASE=new d(e.Gx,e.Gy,r.ONE),d.ZERO=new d(r.ZERO,r.ONE,r.ZERO);const h=e.nBitLength,p=zK(d,e.endo?Math.ceil(h/2):h);return{CURVE:e,ProjectivePoint:d,normPrivateKeyToScalar:l,weierstrassEquation:s,isWithinCurveOrder:o}}function WK(t){const e=t4(t);return Dm(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function KK(t){const e=WK(t),{Fp:r,n}=e,i=r.BYTES+1,s=2*r.BYTES+1;function o(M){return qo<M&&M<r.ORDER}function a(M){return Un(M,n)}function l(M){return e2(M,n)}const{ProjectivePoint:c,normPrivateKeyToScalar:u,weierstrassEquation:d,isWithinCurveOrder:h}=GK({...e,toBytes(M,_,X){const V=_.toAffine(),K=r.toBytes(V.x),Z=Bg;return X?Z(Uint8Array.from([_.hasEvenY()?2:3]),K):Z(Uint8Array.from([4]),K,r.toBytes(V.y))},fromBytes(M){const _=M.length,X=M[0],V=M.subarray(1);if(_===i&&(X===2||X===3)){const K=lu(V);if(!o(K))throw new Error("Point is not on curve");const Z=d(K);let Y=r.sqrt(Z);const ee=(Y&Ii)===Ii;return(X&1)===1!==ee&&(Y=r.neg(Y)),{x:K,y:Y}}else if(_===s&&X===4){const K=r.fromBytes(V.subarray(0,r.BYTES)),Z=r.fromBytes(V.subarray(r.BYTES,2*r.BYTES));return{x:K,y:Z}}else throw new Error(`Point of length ${_}
349 was invalid. Expected ${i} compressed bytes or ${s} uncompressed bytes`)}}),p=M=>vh(wh(M,e.nByteLength));function m(M){const _=n>>Ii;return M>_}function g(M){return m(M)?a(-M):M}const y=(M,_,X)=>lu(M.slice(_,X));class v{constructor(_,X,V){this.r=_,this.s=X,this.recovery=V,this.assertValidity()}static fromCompact(_){const X=e.nByteLength;return _=fs("compactSignature",_,X*2),new v(y(_,0,X),y(_,X,2*X))}static fromDER(_){const{r:X,s:V}=Pc.toSig(fs("DER",_));return new v(X,V)}assertValidity(){if(!h(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!h(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(_){return new v(this.r,this.s,_)}recoverPublicKey(_){const{r:X,s:V,recovery:K}=this,Z=P(fs("msgHash",_));if(K==null||![0,1,2,3].includes(K))throw new Error("recovery id invalid");const Y=K===2||K===3?X+e.n:X;if(Y>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const ee=K&1?"03":"02",fe=c.fromHex(ee+p(Y)),ye=l(Y),lt=a(-Z*ye),Ae=a(V*ye),At=c.BASE.multiplyAndAddUnsafe(fe,lt,Ae);if(!At)throw new Error("point at infinify");return At.assertValidity(),At}hasHighS(){return m(this.s)}normalizeS(){return this.hasHighS()?new v(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return yh(this.toDERHex())}toDERHex(){return Pc.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return yh(this.toCompactHex())}toCompactHex(){return p(this.r)+p(this.s)}}const w={isValidPrivateKey(M){try{return u(M),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const M=e4(e.n);return LK(e.randomBytes(M),e.n)},precompute(M=8,_=c.BASE){return _._setWindowSize(M),_.multiply(BigInt(3)),_}};function b(M,_=!0){return c.fromPrivateKey(M).toRawBytes(_)}function E(M){const _=M instanceof Uint8Array,X=typeof M=="string",V=(_||X)&&M.length;return _?V===i||V===s:X?V===2*i||V===2*s:M instanceof c}function A(M,_,X=!0){if(E(M))throw new Error("first arg must be private key");if(!E(_))throw new Error("second arg must be public key");return c.fromHex(_).multiply(u(M)).toRawBytes(X)}const k=e.bits2int||function(M){const _=lu(M),X=M.length*8-e.nBitLength;return X>0?_>>BigInt(X):_},P=e.bits2int_modN||function(M){return a(k(M))},C=Wk(e.nBitLength);function N(M){if(typeof M!="bigint")throw new Error("bigint expected");if(!(qo<=M&&M<C))throw new Error(`bigint expected < 2^${e.nBitLength}`);return wh(M,e.nByteLength)}function R(M,_,X=F){if(["recovered","canonical"].some(Er=>Er in X))throw new Error("sign() legacy options not supported");const{hash:V,randomBytes:K}=e;let{lowS:Z,prehash:Y,extraEntropy:ee}=X;Z==null&&(Z=!0),M=fs("msgHash",M),Y&&(M=fs("prehashed msgHash",V(M)));const fe=P(M),ye=u(_),lt=[N(ye),N(fe)];if(ee!=null){const Er=ee===!0?K(r.BYTES):ee;lt.push(fs("extraEntropy",Er))}const Ae=Bg(...lt),At=fe;function Xe(Er){const gr=k(Er);if(!h(gr))return;const er=l(gr),kr=c.BASE.multiply(gr).toAffine(),Or=a(kr.x);if(Or===qo)return;const We=a(er*a(At+Or*ye));if(We===qo)return;let et=(kr.x===Or?0:2)|Number(kr.y&Ii),Ht=We;return Z&&m(We)&&(Ht=g(We),et^=1),new v(Or,Ht,et)}return{seed:Ae,k2sig:Xe}}const F={lowS:e.lowS,prehash:!1},B={lowS:e.lowS,prehash:!1};function D(M,_,X=F){const{seed:V,k2sig:K}=R(M,_,X),Z=e;return JI(Z.hash.outputLen,Z.nByteLength,Z.hmac)(V,K)}c.BASE._setWindowSize(8);function L(M,_,X,V=B){var kr;const K=M;if(_=fs("msgHash",_),X=fs("publicKey",X),"strict"in V)throw new Error("options.strict was renamed to lowS");const{lowS:Z,prehash:Y}=V;let ee,fe;try{if(typeof K=="string"||K instanceof Uint8Array)try{ee=v.fromDER(K)}catch(Or){if(!(Or instanceof Pc.Err))throw Or;ee=v.fromCompact(K)}else if(typeof K=="object"&&typeof K.r=="bigint"&&typeof K.s=="bigint"){const{r:Or,s:We}=K;ee=new v(Or,We)}else throw new Error("PARSE");fe=c.fromHex(X)}catch(Or){if(Or.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Z&&ee.hasHighS())return!1;Y&&(_=e.hash(_));const{r:ye,s:lt}=ee,Ae=P(_),At=l(lt),Xe=a(Ae*At),Er=a(ye*At),gr=(kr=c.BASE.multiplyAndAddUnsafe(fe,Xe,Er))==null?void 0:kr.toAffine();return gr?a(gr.x)===ye:!1}return{CURVE:e,getPublicKey:b,getSharedSecret:A,sign:D,verify:L,ProjectivePoint:c,Signature:v,utils:w}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function qK(t){return{hash:t,hmac:(e,...r)=>jI(t,e,DW(...r)),randomBytes:IW}}function QK(t,e){const r=n=>KK({...t,...qK(n)});return Object.freeze({...r(e),create:r})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const r4=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),jP=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),XK=BigInt(1),t2=BigInt(2),FP=(t,e)=>(t+e/t2)/e;function YK(t){const e=r4,r=BigInt(3),n=BigInt(6),i=BigInt(11),s=BigInt(22),o=BigInt(23),a=BigInt(44),l=BigInt(88),c=t*t*t%e,u=c*c*t%e,d=Ci(u,r,e)*u%e,h=Ci(d,r,e)*u%e,p=Ci(h,t2,e)*c%e,m=Ci(p,i,e)*p%e,g=Ci(m,s,e)*m%e,y=Ci(g,a,e)*g%e,v=Ci(y,l,e)*y%e,w=Ci(v,a,e)*g%e,b=Ci(w,r,e)*u%e,E=Ci(b,o,e)*m%e,A=Ci(E,n,e)*c%e,k=Ci(A,t2,e);if(!r2.eql(r2.sqr(k),t))throw new Error("Cannot find square root");return k}const r2=BK(r4,void 0,void 0,{sqrt:YK}),Ra=QK({a:BigInt(0),b:BigInt(7),Fp:r2,n:jP,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=jP,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-XK*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=r,o=BigInt("0x100000000000000000000000000000000"),a=FP(s*t,e),l=FP(-n*t,e);let c=Un(t-a*r-l*i,e),u=Un(-a*n-l*s,e);const d=c>o,h=u>o;if(d&&(c=e-c),h&&(u=e-u),c>o||u>o)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:d,k1:c,k2neg:h,k2:u}}}},OI);BigInt(0);Ra.ProjectivePoint;const Lg="0x0000000000000000000000000000000000000000",OP="0x0000000000000000000000000000000000000000000000000000000000000000",DP=BigInt(0),IP=BigInt(1),MP=BigInt(2),BP=BigInt(27),LP=BigInt(28),D0=BigInt(35),ed={};function UP(t){return yu(kn(t),32)}var ff,hf,pf,Vc;const us=class us{constructor(e,r,n,i){z(this,ff);z(this,hf);z(this,pf);z(this,Vc);Om(e,ed,"Signature"),T(this,ff,r),T(this,hf,n),T(this,pf,i),T(this,Vc,null)}get r(){return S(this,ff)}
349set r(e){U(qd(e)===32,"invalid r","value",e),T(this,ff,ce(e))}get s(){return S(this,hf)}set s(e){U(qd(e)===32,"invalid s","value",e);const r=ce(e);U(parseInt(r.substring(0,3))<8,"non-canonical s","value",r),T(this,hf,r)}get v(){return S(this,pf)}set v(e){const r=He(e,"value");U(r===27||r===28,"invalid v","v",e),T(this,pf,r)}get networkV(){return S(this,Vc)}get legacyChainId(){const e=this.networkV;return e==null?null:us.getChainId(e)}get yParity(){return this.v===27?0:1}get yParityAndS(){const e=at(this.s);return this.yParity&&(e[0]|=128),ce(e)}get compactSerialized(){return pr([this.r,this.yParityAndS])}get serialized(){return pr([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new us(ed,this.r,this.s,this.v);return this.networkV&&T(e,Vc,this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:e!=null?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const r=ge(e,"v");return r==BP||r==LP?DP:(U(r>=D0,"invalid EIP-155 v","v",e),(r-D0)/MP)}static getChainIdV(e,r){return ge(e)*MP+BigInt(35+r-27)}static getNormalizedV(e){const r=ge(e);return r===DP||r===BP?27:r===IP||r===LP?28:(U(r>=D0,"invalid v","v",e),r&IP?27:28)}static from(e){function r(c,u){U(c,u,"signature",e)}if(e==null)return new us(ed,OP,OP,27);if(typeof e=="string"){const c=at(e,"signature");if(c.length===64){const u=ce(c.slice(0,32)),d=c.slice(32,64),h=d[0]&128?28:27;return d[0]&=127,new us(ed,u,ce(d),h)}if(c.length===65){const u=ce(c.slice(0,32)),d=c.slice(32,64);r((d[0]&128)===0,"non-canonical s");const h=us.getNormalizedV(c[64]);return new us(ed,u,ce(d),h)}r(!1,"invalid raw signature length")}if(e instanceof us)return e.clone();const n=e.r;r(n!=null,"missing r");const i=UP(n),s=function(c,u){if(c!=null)return UP(c);if(u!=null){r(Bt(u,32),"invalid yParityAndS");const d=at(u);return d[0]&=127,ce(d)}r(!1,"missing s")}(e.s,e.yParityAndS);r((at(s)[0]&128)==0,"non-canonical s");const{networkV:o,v:a}=function(c,u,d){if(c!=null){const h=ge(c);return{networkV:h>=D0?h:void 0,v:us.getNormalizedV(h)}}if(u!=null)return r(Bt(u,32),"invalid yParityAndS"),{v:at(u)[0]&128?28:27};if(d!=null){switch(He(d,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}r(!1,"invalid yParity")}r(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),l=new us(ed,i,s,a);return o&&T(l,Vc,o),r(e.yParity==null||He(e.yParity,"sig.yParity")===l.yParity,"yParity mismatch"),r(e.yParityAndS==null||e.yParityAndS===l.yParityAndS,"yParityAndS mismatch"),l}};ff=new WeakMap,hf=new WeakMap,pf=new WeakMap,Vc=new WeakMap;let Rs=us;var Lo;const xc=class xc{constructor(e){z(this,Lo);
349U(qd(e)===32,"invalid private key","privateKey","[REDACTED]"),T(this,Lo,ce(e))}get privateKey(){return S(this,Lo)}get publicKey(){return xc.computePublicKey(S(this,Lo))}get compressedPublicKey(){return xc.computePublicKey(S(this,Lo),!0)}sign(e){U(qd(e)===32,"invalid digest length","digest",e);const r=Ra.sign(xn(e),xn(S(this,Lo)),{lowS:!0});return Rs.from({r:Ll(r.r,32),s:Ll(r.s,32),v:r.recovery?28:27})}computeSharedSecret(e){const r=xc.computePublicKey(e);return ce(Ra.getSharedSecret(xn(S(this,Lo)),at(r),!1))}static computePublicKey(e,r){let n=at(e,"key");if(n.length===32){const s=Ra.getPublicKey(n,!!r);return ce(s)}if(n.length===64){const s=new Uint8Array(65);s[0]=4,s.set(n,1),n=s}const i=Ra.ProjectivePoint.fromHex(n);return ce(i.toRawBytes(r))}static recoverPublicKey(e,r){U(qd(e)===32,"invalid digest length","digest",e);const n=Rs.from(r);let i=Ra.Signature.fromCompact(xn(pr([n.r,n.s])));i=i.addRecoveryBit(n.yParity);const s=i.recoverPublicKey(xn(e));return U(s!=null,"invalid signautre for digest","signature",r),"0x"+s.toHex(!1)}static addPoints(e,r,n){const i=Ra.ProjectivePoint.fromHex(xc.computePublicKey(e).substring(2)),s=Ra.ProjectivePoint.fromHex(xc.computePublicKey(r).substring(2));return"0x"+i.add(s).toHex(!!n)}};Lo=new WeakMap;let Ug=xc;const JK=BigInt(0),ZK=BigInt(36);function zP(t){t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let i=0;i<40;i++)r[i]=e[i].charCodeAt(0);const n=at(xr(r));for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(n[i>>1]&15)>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}const Kk={};for(let t=0;t<10;t++)Kk[String(t)]=String(t);for(let t=0;t<26;t++)Kk[String.fromCharCode(65+t)]=String(10+t);const _P=15;function $K(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>Kk[n]).join("");for(;e.length>=_P;){let n=e.substring(0,_P);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}const eq=function(){const t={};for(let e=0;e<36;e++){const r="0123456789abcdefghijklmnopqrstuvwxyz"[e];t[r]=BigInt(e)}return t}();function tq(t){t=t.toLowerCase();let e=JK;for(let r=0;r<t.length;r++)e=e*ZK+eq[t[r]];return e}function Ot(t){if(U(typeof t=="string","invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/)){t.startsWith("0x")||(t="0x"+t);const e=zP(t);return U(!t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||e===t,"bad address checksum","address",t),e}if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){U(t.substring(2,4)===$K(t),"bad icap checksum","address",t);let e=tq(t.substring(4)).toString(16);for(;e.length<40;)e="0"+e;return zP("0x"+e)}U(!1,"invalid address","address",t)}function rq(t){const e=Ot(t.from);let n=ge(t.nonce,"tx.nonce").toString(16);return n==="0"?n="0x":n.length%2?n="0x0"+n:n="0x"+n,Ot(sr(xr(wu([e,n])),12))}function n4(t){return t&&typeof t.getAddress=="function"}async function Bx(t,e){const r=await e;return(r==null||r==="0x0000000000000000000000000000000000000000")&&(J(typeof t!="string","unconfigured name","UNCONFIGURED_NAME",{value:t}),U(!1,"invalid AddressLike value; did not resolve to a value address","target",t)),Ot(r)}function Cn(t,e){if(typeof t=="string")return t.match(/^0x[0-9a-f]{40}$/i)?Ot(t):(J(e!=null,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),Bx(t,e.resolveName(t)));if(n4(t))return Bx(t,t.getAddress());if(t&&typeof t.then=="function")return Bx(t,t);U(!1,"unsupported addressable value","target",t)}const Po={};function ae(t,e){let r=!1;return e<0&&(r=!0,e*=-1),new cn(Po,`${r?"":"u"}int${e}`,t,{signed:r,width:e})}function ht(t,e){return new cn(Po,`bytes${e||""}`,t,{size:e})}const VP=Symbol.for("_ethers_typed");var Hc;const Ro=class Ro{constructor(e,r,n,i){W(this,"type");W(this,"value");z(this,Hc);W(this,"_typedSymbol");i==null&&(i=null),Om(Po,e,"Typed"),xe(this,{_typedSymbol:VP,type:r,value:n}),T(this,Hc,i),this.format()}format(){if(this.type==="array")throw new Error("");if(this.type==="dynamicArray")throw new Error("");return this.type==="tuple"?`tuple(${this.value.map(e=>e.format()).join(",")}
349)`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return S(this,Hc)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return S(this,Hc)===!0?-1:S(this,Hc)===!1?this.value.length:null}static from(e,r){return new Ro(Po,e,r)}static uint8(e){return ae(e,8)}static uint16(e){return ae(e,16)}static uint24(e){return ae(e,24)}static uint32(e){return ae(e,32)}static uint40(e){return ae(e,40)}static uint48(e){return ae(e,48)}static uint56(e){return ae(e,56)}static uint64(e){return ae(e,64)}static uint72(e){return ae(e,72)}static uint80(e){return ae(e,80)}static uint88(e){return ae(e,88)}static uint96(e){return ae(e,96)}static uint104(e){return ae(e,104)}static uint112(e){return ae(e,112)}static uint120(e){return ae(e,120)}static uint128(e){return ae(e,128)}static uint136(e){return ae(e,136)}static uint144(e){return ae(e,144)}static uint152(e){return ae(e,152)}static uint160(e){return ae(e,160)}static uint168(e){return ae(e,168)}static uint176(e){return ae(e,176)}static uint184(e){return ae(e,184)}static uint192(e){return ae(e,192)}static uint200(e){return ae(e,200)}static uint208(e){return ae(e,208)}static uint216(e){return ae(e,216)}static uint224(e){return ae(e,224)}static uint232(e){return ae(e,232)}static uint240(e){return ae(e,240)}static uint248(e){return ae(e,248)}static uint256(e){return ae(e,256)}static uint(e){return ae(e,256)}static int8(e){return ae(e,-8)}static int16(e){return ae(e,-16)}static int24(e){return ae(e,-24)}static int32(e){return ae(e,-32)}static int40(e){return ae(e,-40)}static int48(e){return ae(e,-48)}static int56(e){return ae(e,-56)}static int64(e){return ae(e,-64)}static int72(e){return ae(e,-72)}static int80(e){return ae(e,-80)}static int88(e){return ae(e,-88)}static int96(e){return ae(e,-96)}static int104(e){return ae(e,-104)}static int112(e){return ae(e,-112)}static int120(e){return ae(e,-120)}static int128(e){return ae(e,-128)}static int136(e){return ae(e,-136)}static int144(e){return ae(e,-144)}static int152(e){return ae(e,-152)}static int160(e){return ae(e,-160)}static int168(e){return ae(e,-168)}static int176(e){return ae(e,-176)}static int184(e){return ae(e,-184)}static int192(e){return ae(e,-192)}static int200(e){return ae(e,-200)}static int208(e){return ae(e,-208)}static int216(e){return ae(e,-216)}static int224(e){return ae(e,-224)}static int232(e){return ae(e,-232)}static int240(e){return ae(e,-240)}static int248(e){return ae(e,-248)}static int256(e){return ae(e,-256)}static int(e){return ae(e,-256)}static bytes1(e){return ht(e,1)}static bytes2(e){return ht(e,2)}static bytes3(e){return ht(e,3)}static bytes4(e){return ht(e,4)}static bytes5(e){return ht(e,5)}static bytes6(e){return ht(e,6)}static bytes7(e){return ht(e,7)}static bytes8(e){return ht(e,8)}static bytes9(e){return ht(e,9)}static bytes10(e){return ht(e,10)}static bytes11(e){return ht(e,11)}static bytes12(e){return ht(e,12)}static bytes13(e){return ht(e,13)}static bytes14(e){return ht(e,14)}static bytes15(e){return ht(e,15)}static bytes16(e){return ht(e,16)}static bytes17(e){return ht(e,17)}static bytes18(e){return ht(e,18)}static bytes19(e){return ht(e,19)}static bytes20(e){return ht(e,20)}static bytes21(e){return ht(e,21)}static bytes22(e){return ht(e,22)}static bytes23(e){return ht(e,23)}static bytes24(e){return ht(e,24)}static bytes25(e){return ht(e,25)}static bytes26(e){return ht(e,26)}static bytes27(e){return ht(e,27)}static bytes28(e){return ht(e,28)}static bytes29(e){return ht(e,29)}static bytes30(e){return ht(e,30)}static bytes31(e){return ht(e,31)}static bytes32(e){return ht(e,32)}static address(e){return new Ro(Po,"address",e)}static bool(e){return new Ro(Po,"bool",!!e)}static bytes(e){return new Ro(Po,"bytes",e)}static string(e){return new Ro(Po,"string",e)}static array(e,r){throw new Error("not implemented yet")}static tuple(e,r){throw new Error("not implemented yet")}static overrides(e){return new Ro(Po,"overrides",Object.assign({},e))}static isTyped(e){return e&&typeof e=="object"&&"_typedSymbol"in e&&e._typedSymbol===VP}static dereference(e,r){if(Ro.isTyped(e)){if(e.type!==r)throw new Error(`invalid type: expecetd ${r}, got ${e.type}`);return e.value}return e}};Hc=new WeakMap;let cn=Ro;
349class nq extends fa{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){let n=cn.dereference(r,"string");try{n=Ot(n)}catch(i){return this._throwError(i.message,r)}return e.writeValue(n)}decode(e){return Ot(Ll(e.readValue(),20))}}class iq extends fa{constructor(r){super(r.name,r.type,"_",r.dynamic);W(this,"coder");this.coder=r}defaultValue(){return this.coder.defaultValue()}encode(r,n){return this.coder.encode(r,n)}decode(r){return this.coder.decode(r)}}function i4(t,e,r){let n=[];if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let l={};n=e.map(c=>{const u=c.localName;return J(u,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:c},value:r}),J(!l[u],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:c},value:r}),l[u]=!0,r[u]})}else U(!1,"invalid tuple value","tuple",r);U(e.length===n.length,"types/value length mismatch","tuple",r);let i=new XS,s=new XS,o=[];e.forEach((l,c)=>{let u=n[c];if(l.dynamic){let d=s.length;l.encode(s,u);let h=i.writeUpdatableValue();o.push(p=>{h(p+d)})}else l.encode(i,u)}),o.forEach(l=>{l(i.length)});let a=t.appendWriter(i);return a+=t.appendWriter(s),a}function s4(t,e){let r=[],n=[],i=t.subReader(0);return e.forEach(s=>{let o=null;if(s.dynamic){let a=t.readIndex(),l=i.subReader(a);try{o=s.decode(l)}catch(c){if(qr(c,"BUFFER_OVERRUN"))throw c;o=c,o.baseType=s.name,o.name=s.localName,o.type=s.type}}else try{o=s.decode(t)}catch(a){if(qr(a,"BUFFER_OVERRUN"))throw a;o=a,o.baseType=s.name,o.name=s.localName,o.type=s.type}if(o==null)throw new Error("investigate");r.push(o),n.push(s.localName||null)}),gh.fromItems(r,n)}class sq extends fa{constructor(r,n,i){const s=r.type+"["+(n>=0?n:"")+"]",o=n===-1||r.dynamic;super("array",s,i,o);W(this,"coder");W(this,"length");xe(this,{coder:r,length:n})}defaultValue(){const r=this.coder.defaultValue(),n=[];for(let i=0;i<this.length;i++)n.push(r);return n}encode(r,n){const i=cn.dereference(n,"array");Array.isArray(i)||this._throwError("expected array value",i);let s=this.length;s===-1&&(s=i.length,r.writeValue(i.length)),pI(i.length,s,"coder array"+(this.localName?" "+this.localName:""));let o=[];for(let a=0;a<i.length;a++)o.push(this.coder);return i4(r,o,i)}decode(r){let n=this.length;n===-1&&(n=r.readIndex(),J(n*An<=r.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:r.bytes,offset:n*An,length:r.dataLength}));let i=[];for(let s=0;s<n;s++)i.push(new iq(this.coder));return s4(r,i)}}class oq extends fa{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,r){const n=cn.dereference(r,"bool");return e.writeValue(n?1:0)}decode(e){return!!e.readValue()}}class o4 extends fa{constructor(e,r){super(e,e,r,!0)}defaultValue(){return"0x"}encode(e,r){r=xn(r);let n=e.writeValue(r.length);return n+=e.writeBytes(r),n}decode(e){return e.readBytes(e.readIndex(),!0)}}class aq extends o4{constructor(e){super("bytes",e)}decode(e){return ce(super.decode(e))}}class lq extends fa{constructor(r,n){let i="bytes"+String(r);super(i,i,n,!1);W(this,"size");xe(this,{size:r},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(r,n){let i=xn(cn.dereference(n,this.type));return i.length!==this.size&&this._throwError("incorrect data length",n),r.writeBytes(i)}decode(r){return ce(r.readBytes(this.size))}}const cq=new Uint8Array([]);class uq extends fa{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,r){return r!=null&&this._throwError("not null",r),e.writeBytes(cq)}decode(e){return e.readBytes(0),null}}const dq=BigInt(0),fq=BigInt(1),hq=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class pq extends fa{constructor(r,n,i){const s=(n?"int":"uint")+r*8;super(s,s,i,!1);W(this,"size");W(this,"signed");xe(this,{size:r,signed:n},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(r,n){let i=ge(cn.dereference(n,this.type)),s=Nc(hq,An*8);if(this.signed){let o=Nc(s,this.size*8-1);(i>o||i<-(o+fq))&&this._throwError("value out-of-bounds",n),i=vI(i,8*An)}else(i<dq||i>Nc(s,this.size*8))&&this._throwError("value out-of-bounds",n);return r.writeValue(i)}decode(r){let n=Nc(r.readValue(),this.size*8);return this.signed&&(n=Ny(n,this.size*8)),n}}class gq extends o4{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,ho(cn.dereference(r,"string")))}decode(e){return Py(super.decode(e))}}class I0 extends fa{constructor(r,n){let i=!1;const s=[];r.forEach(a=>{a.dynamic&&(i=!0),s.push(a.type)});const o="tuple("+s.join(",")+")";super("tuple",o,n,i);W(this,"coders");xe(this,{coders:Object.freeze(r.slice())})}defaultValue(){const r=[];
349this.coders.forEach(i=>{r.push(i.defaultValue())});const n=this.coders.reduce((i,s)=>{const o=s.localName;return o&&(i[o]||(i[o]=0),i[o]++),i},{});return this.coders.forEach((i,s)=>{let o=i.localName;!o||n[o]!==1||(o==="length"&&(o="_length"),r[o]==null&&(r[o]=r[s]))}),Object.freeze(r)}encode(r,n){const i=cn.dereference(n,"tuple");return i4(r,this.coders,i)}decode(r){return s4(r,this.coders)}}function bu(t){return xr(ho(t))}var mq="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6Q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Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const HP=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),GP=4;function vq(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),i=1,s=[0,1];for(let A=1;A<n;A++)s.push(i+=r());let o=r(),a=e;e+=o;let l=0,c=0;function u(){return l==0&&(c=c<<8|t[e++],l=8),c>>--l&1}const d=31,h=2**d,p=h>>>1,m=p>>1,g=h-1;let y=0;for(let A=0;A<d;A++)y=y<<1|u();let v=[],w=0,b=h;for(;;){let A=Math.floor(((y-w+1)*i-1)/b),k=0,P=n;for(;P-k>1;){let R=k+P>>>1;A<s[R]?P=R:k=R}if(k==0)break;v.push(k);let C=w+Math.floor(b*s[k]/i),N=w+Math.floor(b*s[k+1]/i)-1;for(;!((C^N)&p);)y=y<<1&g|u(),C=C<<1&g,N=N<<1&g|1;for(;C&~N&m;)y=y&p|y<<1&g>>>1|u(),C=C<<1^p,N=(N^p)<<1|p|1;w=C,b=1+N-C}let E=n-4;return v.map(A=>{switch(A-E){case 3:return E+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return E+256+(t[a++]<<8|t[a++]);case 1:return E+t[a++];default:return A-1}})}function yq(t){let e=0;return()=>t[e++]}function a4(t){return yq(vq(wq(t)))}function wq(t){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((i,s)=>
349e[i.charCodeAt(0)]=s);let r=t.length,n=new Uint8Array(6*r>>3);for(let i=0,s=0,o=0,a=0;i<r;i++)a=a<<6|e[t.charCodeAt(i)],o+=6,o>=8&&(n[s++]=a>>(o-=8));return n}function bq(t){return t&1?~t>>1:t>>1}function xq(t,e){let r=Array(t);for(let n=0,i=0;n<t;n++)r[n]=i+=bq(e());return r}function zg(t,e=0){let r=[];for(;;){let n=t(),i=t();if(!i)break;e+=n;for(let s=0;s<i;s++)r.push(e+s);e+=i+1}return r}function l4(t){return _g(()=>{let e=zg(t);if(e.length)return e})}function c4(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(Sq(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(Eq(r,t))}return e.flat()}function _g(t){let e=[];for(;;){let r=t(e.length);if(!r)break;e.push(r)}return e}function u4(t,e,r){let n=Array(t).fill().map(()=>[]);for(let i=0;i<e;i++)xq(t,r).forEach((s,o)=>n[o].push(s));return n}function Sq(t,e){let r=1+e(),n=e(),i=_g(e);return u4(i.length,1+t,e).flatMap((o,a)=>{let[l,...c]=o;return Array(i[a]).fill().map((u,d)=>{let h=d*n;return[l+d*r,c.map(p=>p+h)]})})}function Eq(t,e){let r=1+e();return u4(r,1+t,e).map(i=>[i[0],i.slice(1)])}function kq(t){let e=[],r=zg(t);return i(n([]),[]),e;function n(s){let o=t(),a=_g(()=>{let l=zg(t).map(c=>r[c]);if(l.length)return n(l)});return{S:o,B:a,Q:s}}function i({S:s,B:o},a,l){if(!(s&4&&l===a[a.length-1])){s&2&&(l=a[a.length-1]),s&1&&e.push(a);for(let c of o)for(let u of c.Q)i(c,[...a,u],l)}}}function Aq(t){return t.toString(16).toUpperCase().padStart(2,"0")}function d4(t){return`{${Aq(t)}}`}function Cq(t){let e=[];for(let r=0,n=t.length;r<n;){let i=t.codePointAt(r);r+=i<65536?1:2,e.push(i)}return e}function bh(t){let r=t.length;if(r<4096)return String.fromCodePoint(...t);let n=[];for(let i=0;i<r;)n.push(String.fromCodePoint(...t.slice(i,i+=4096)));return n.join("")}function Nq(t,e){let r=t.length,n=r-e.length;for(let i=0;n==0&&i<r;i++)n=t[i]-e[i];return n}var Pq=
vendor: 7,453 bytes, line 349
349"AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj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Kz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g"
349;const Vg=44032,Ry=4352,jy=4449,Fy=4519,f4=19,h4=21,xh=28,Oy=h4*xh,Tq=f4*Oy,Rq=Vg+Tq,jq=Ry+f4,Fq=jy+h4,Oq=Fy+xh;function Op(t){return t>>24&255}function p4(t){return t&16777215}let n2,WP,i2,Cv;function Dq(){let t=a4(Pq);n2=new Map(l4(t).flatMap((e,r)=>e.map(n=>[n,r+1<<24]))),WP=new Set(zg(t)),i2=new Map,Cv=new Map;for(let[e,r]of c4(t)){if(!WP.has(e)&&r.length==2){let[n,i]=r,s=Cv.get(n);s||(s=new Map,Cv.set(n,s)),s.set(i,e)}i2.set(e,r.reverse())}}function g4(t){return t>=Vg&&t<Rq}function Iq(t,e){if(t>=Ry&&t<jq&&e>=jy&&e<Fq)return Vg+(t-Ry)*Oy+(e-jy)*xh;if(g4(t)&&e>Fy&&e<Oq&&(t-Vg)%xh==0)return t+(e-Fy);{let r=Cv.get(t);return r&&(r=r.get(e),r)?r:-1}}function m4(t){n2||Dq();let e=[],r=[],n=!1;function i(s){let o=n2.get(s);o&&(n=!0,s|=o),e.push(s)}for(let s of t)for(;;){if(s<128)e.push(s);else if(g4(s)){let o=s-Vg,a=o/Oy|0,l=o%Oy/xh|0,c=o%xh;i(Ry+a),i(jy+l),c>0&&i(Fy+c)}else{let o=i2.get(s);o?r.push(...o):i(s)}if(!r.length)break;s=r.pop()}if(n&&e.length>1){let s=Op(e[0]);for(let o=1;o<e.length;o++){let a=Op(e[o]);if(a==0||s<=a){s=a;continue}let l=o-1;for(;;){let c=e[l+1];if(e[l+1]=e[l],e[l]=c,!l||(s=Op(e[--l]),s<=a))break}s=Op(e[o])}}return e}function Mq(t){let e=[],r=[],n=-1,i=0;for(let s of t){let o=Op(s),a=p4(s);if(n==-1)o==0?n=a:e.push(a);else if(i>0&&i>=o)o==0?(e.push(n,...r),r.length=0,n=a):r.push(a),i=o;else{let l=Iq(n,a);l>=0?n=l:i==0&&o==0?(e.push(n),n=a):(r.push(a),i=o)}}return n>=0&&e.push(n,...r),e}function v4(t){return m4(t).map(p4)}function Bq(t){return Mq(m4(t))}const KP=45,y4=".",w4=65039,b4=1,Dy=t=>Array.from(t);function Hg(t,e){return t.P.has(e)||t.Q.has(e)}class Lq extends Array{get is_emoji(){return!0}}let s2,x4,Tc,o2,S4,Xd,Lx,pd,fc,qP,a2;
349function qk(){if(s2)return;let t=a4(mq);const e=()=>zg(t),r=()=>new Set(e()),n=(u,d)=>d.forEach(h=>u.add(h));s2=new Map(c4(t)),x4=r(),Tc=e(),o2=new Set(e().map(u=>Tc[u])),Tc=new Set(Tc),S4=r(),r();let i=l4(t),s=t();const o=()=>{let u=new Set;return e().forEach(d=>n(u,i[d])),n(u,e()),u};Xd=_g(u=>{let d=_g(t).map(h=>h+96);if(d.length){let h=u>=s;d[0]-=32,d=bh(d),h&&(d=`Restricted[${d}]`);let p=o(),m=o(),g=!t();return{N:d,P:p,Q:m,M:g,R:h}}}),Lx=r(),pd=new Map;let a=e().concat(Dy(Lx)).sort((u,d)=>u-d);a.forEach((u,d)=>{let h=t(),p=a[d]=h?a[d-h]:{V:[],M:new Map};p.V.push(u),Lx.has(u)||pd.set(u,p)});for(let{V:u,M:d}of new Set(pd.values())){let h=[];for(let m of u){let g=Xd.filter(v=>Hg(v,m)),y=h.find(({G:v})=>g.some(w=>v.has(w)));y||(y={G:new Set,V:[]},h.push(y)),y.V.push(m),n(y.G,g)}let p=h.flatMap(m=>Dy(m.G));for(let{G:m,V:g}of h){let y=new Set(p.filter(v=>!m.has(v)));for(let v of g)d.set(v,y)}}fc=new Set;let l=new Set;const c=u=>fc.has(u)?l.add(u):fc.add(u);for(let u of Xd){for(let d of u.P)c(d);for(let d of u.Q)c(d)}for(let u of fc)!pd.has(u)&&!l.has(u)&&pd.set(u,b4);n(fc,v4(fc)),qP=kq(t).map(u=>Lq.from(u)).sort(Nq),a2=new Map;for(let u of qP){let d=[a2];for(let h of u){let p=d.map(m=>{let g=m.get(h);return g||(g=new Map,m.set(h,g)),g});h===w4?d.push(...p):d=p}for(let h of d)h.V=u}}function Qk(t){return(E4(t)?"":`${Xk(rb([t]))} `)+d4(t)}function Xk(t){return`"${t}"‎`}function Uq(t){if(t.length>=4&&t[2]==KP&&t[3]==KP)throw new Error(`invalid label extension: "${bh(t.slice(0,4))}"`)}function zq(t){for(let r=t.lastIndexOf(95);r>0;)if(t[--r]!==95)throw new Error("underscore allowed only at start")}function _q(t){let e=t[0],r=HP.get(e);if(r)throw ng(`leading ${r}`);let n=t.length,i=-1;for(let s=1;s<n;s++){e=t[s];let o=HP.get(e);if(o){if(i==s)throw ng(`${r} + ${o}`);i=s+1,r=o}}if(i==n)throw ng(`trailing ${r}`)}function rb(t,e=1/0,r=d4){let n=[];Vq(t[0])&&n.push("◌"),t.length>e&&(e>>=1,t=[...t.slice(0,e),8230,...t.slice(-e)]);let i=0,s=t.length;for(let o=0;o<s;o++){let a=t[o];E4(a)&&(n.push(bh(t.slice(i,o))),n.push(r(a)),i=o+1)}return n.push(bh(t.slice(i,s))),n.join("")}function Vq(t){return qk(),Tc.has(t)}function E4(t){return qk(),S4.has(t)}function Hq(t){return qq(Gq(t,Bq,Yq))}function Gq(t,e,r){if(!t)return[];qk();let n=0;return t.split(y4).map(i=>{let s=Cq(i),o={input:s,offset:n};n+=s.length+1;try{let a=o.tokens=Xq(s,e,r),l=a.length,c;if(!l)throw new Error("empty label");let u=o.output=a.flat();if(zq(u),!(o.emoji=l>1||a[0].is_emoji)&&u.every(h=>h<128))Uq(u),c="ASCII";else{let h=a.flatMap(p=>p.is_emoji?[]:p);if(!h.length)c="Emoji";else{if(Tc.has(u[0]))throw ng("leading combining mark");for(let g=1;g<l;g++){let y=a[g];
349if(!y.is_emoji&&Tc.has(y[0]))throw ng(`emoji + combining mark: "${bh(a[g-1])} + ${rb([y[0]])}"`)}_q(u);let p=Dy(new Set(h)),[m]=Kq(p);Qq(m,h),Wq(m,p),c=m.N}}o.type=c}catch(a){o.error=a}return o})}function Wq(t,e){let r,n=[];for(let i of e){let s=pd.get(i);if(s===b4)return;if(s){let o=s.M.get(i);if(r=r?r.filter(a=>o.has(a)):Dy(o),!r.length)return}else n.push(i)}if(r){for(let i of r)if(n.every(s=>Hg(i,s)))throw new Error(`whole-script confusable: ${t.N}/${i.N}`)}}function Kq(t){let e=Xd;for(let r of t){let n=e.filter(i=>Hg(i,r));if(!n.length)throw Xd.some(i=>Hg(i,r))?A4(e[0],r):k4(r);if(e=n,n.length==1)break}return e}function qq(t){return t.map(({input:e,error:r,output:n})=>{if(r){let i=r.message;throw new Error(t.length==1?i:`Invalid label ${Xk(rb(e,63))}: ${i}`)}return bh(n)}).join(y4)}function k4(t){return new Error(`disallowed character: ${Qk(t)}`)}function A4(t,e){let r=Qk(e),n=Xd.find(i=>i.P.has(e));return n&&(r=`${n.N} ${r}`),new Error(`illegal mixture: ${t.N} + ${r}`)}function ng(t){return new Error(`illegal placement: ${t}`)}function Qq(t,e){for(let r of e)if(!Hg(t,r))throw A4(t,r);if(t.M){let r=v4(e);for(let n=1,i=r.length;n<i;n++)if(o2.has(r[n])){let s=n+1;for(let o;s<i&&o2.has(o=r[s]);s++)for(let a=n;a<s;a++)if(r[a]==o)throw new Error(`duplicate non-spacing marks: ${Qk(o)}`);if(s-n>GP)throw new Error(`excessive non-spacing marks: ${Xk(rb(r.slice(n-1,s)))} (${s-n}/${GP})`);n=s}}}function Xq(t,e,r){let n=[],i=[];for(t=t.slice().reverse();t.length;){let s=Jq(t);if(s)i.length&&(n.push(e(i)),i=[]),n.push(r(s));else{let o=t.pop();if(fc.has(o))i.push(o);else{let a=s2.get(o);if(a)i.push(...a);else if(!x4.has(o))throw k4(o)}}}return i.length&&n.push(e(i)),n}function Yq(t){return t.filter(e=>e!=w4)}function Jq(t,e){let r=a2,n,i=t.length;for(;i&&(r=r.get(t[--i]),!!r);){let{V:s}=r;s&&(n=s,t.length=i)}return n}const C4=new Uint8Array(32);C4.fill(0);function QP(t){return U(t.length!==0,"invalid ENS name; empty component","comp",t),t}function N4(t){const e=ho(Zq(t)),r=[];if(t.length===0)return r;let n=0;for(let i=0;i<e.length;i++)e[i]===46&&(r.push(QP(e.slice(n,i))),n=i+1);return U(n<e.length,"invalid ENS name; empty component","name",t),r.push(QP(e.slice(n))),r}function Zq(t){try{if(t.length===0)throw new Error("empty label");return Hq(t)}catch(e){U(!1,`invalid ENS name (${e.message})`,"name",t)}}function l2(t){U(typeof t=="string","invalid ENS name; not a string","name",t),U(t.length,"invalid ENS name (empty label)","name",t);let e=C4;const r=N4(t);for(;r.length;)e=xr(pr([e,xr(r.pop())]));return ce(e)}function $q(t,e){const r=e;return U(r<=255,"DNS encoded label cannot exceed 255","length",r),ce(pr(N4(t).map(n=>{U(n.length<=r,`label ${JSON.stringify(t)} exceeds ${r} bytes`,"name",t);const i=new Uint8Array(n.length+1);return i.set(n,1),i[0]=i.length-1,i})))+"00"}function Ux(t,e){return{address:Ot(t),storageKeys:e.map((r,n)=>(U(Bt(r,32),"invalid slot",`storageKeys[${n}]`,r),r.toLowerCase()))}}function Bu(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(U(r.length===2,"invalid slot set",`value[${n}]`,r),Ux(r[0],r[1])):(U(r!=null&&typeof r=="object","invalid address-slot set","value",t),Ux(r.address,r.storageKeys)));U(t!=null&&typeof t=="object","invalid access list","value",t);const e=Object.keys(t).map(r=>{const n=t[r].reduce((i,s)=>(i[s]=!0,i),{});return Ux(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function eQ(t){let e;return typeof t=="string"?e=Ug.computePublicKey(t,!1):e=t.publicKey,Ot(xr("0x"+e.substring(4)).substring(26))}function tQ(t,e){return eQ(Ug.recoverPublicKey(t,e))}const Lr=BigInt(0),rQ=BigInt(2),nQ=BigInt(27),iQ=BigInt(28),sQ=BigInt(35),oQ=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),zx=4096*32;function XP(t,e){let r=t.toString(16);for(;r.length<2;)r="0"+r;return r+=Uh(e).substring(4),"0x"+r}function nb(t){return t==="0x"?null:Ot(t)}function Yk(t,e){try{return Bu(t)}catch(r){U(!1,r.message,e,t)}}function Im(t,e){return t==="0x"?0:He(t,e)}function fr(t,e){if(t==="0x")return Lr;const r=ge(t,e);return U(r<=oQ,"value exceeds uint size",e,r),r}function zt(t,e){const r=ge(t,"value"),n=kn(r);return U(n.length<=32,"value too large",`tx.${e}`,r),n}function Jk(t){return Bu(t).map(e=>[e.address,e.storageKeys])}function aQ(t,e){U(Array.isArray(t),`invalid ${e}`,"value",t);for(let r=0;r<t.length;r++)U(Bt(t[r],32),"invalid ${ param } hash",`value[${r}]`,t[r]);return t}function lQ(t){const e=Zw(t);U(Array.isArray(e)&&(e.length===9||e.length===6),"invalid field count for legacy transaction","data",t);const r={type:0,nonce:Im(e[0],"nonce"),gasPrice:fr(e[1],"gasPrice"),gasLimit:fr(e[2],"gasLim
349it"),to:nb(e[3]),value:fr(e[4],"value"),data:ce(e[5]),chainId:Lr};if(e.length===6)return r;const n=fr(e[6],"v"),i=fr(e[7],"r"),s=fr(e[8],"s");if(i===Lr&&s===Lr)r.chainId=n;else{let o=(n-sQ)/rQ;o<Lr&&(o=Lr),r.chainId=o,U(o!==Lr||n===nQ||n===iQ,"non-canonical legacy v","v",e[6]),r.signature=Rs.from({r:yu(e[7],32),s:yu(e[8],32),v:n})}return r}function cQ(t,e){const r=[zt(t.nonce,"nonce"),zt(t.gasPrice||0,"gasPrice"),zt(t.gasLimit,"gasLimit"),t.to||"0x",zt(t.value,"value"),t.data];let n=Lr;if(t.chainId!=Lr)n=ge(t.chainId,"tx.chainId"),U(!e||e.networkV==null||e.legacyChainId===n,"tx.chainId/sig.v mismatch","sig",e);else if(t.signature){const s=t.signature.legacyChainId;s!=null&&(n=s)}if(!e)return n!==Lr&&(r.push(kn(n)),r.push("0x"),r.push("0x")),wu(r);let i=BigInt(27+e.yParity);return n!==Lr?i=Rs.getChainIdV(n,e.v):BigInt(e.v)!==i&&U(!1,"tx.chainId/sig.v mismatch","sig",e),r.push(kn(i)),r.push(kn(e.r)),r.push(kn(e.s)),wu(r)}function Zk(t,e){let r;try{if(r=Im(e[0],"yParity"),r!==0&&r!==1)throw new Error("bad yParity")}catch{U(!1,"invalid yParity","yParity",e[0])}const n=yu(e[1],32),i=yu(e[2],32),s=Rs.from({r:n,s:i,yParity:r});t.signature=s}function uQ(t){const e=Zw(at(t).slice(1));U(Array.isArray(e)&&(e.length===9||e.length===12),"invalid field count for transaction type: 2","data",ce(t));const r={type:2,chainId:fr(e[0],"chainId"),nonce:Im(e[1],"nonce"),maxPriorityFeePerGas:fr(e[2],"maxPriorityFeePerGas"),maxFeePerGas:fr(e[3],"maxFeePerGas"),gasPrice:null,gasLimit:fr(e[4],"gasLimit"),to:nb(e[5]),value:fr(e[6],"value"),data:ce(e[7]),accessList:Yk(e[8],"accessList")};return e.length===9||Zk(r,e.slice(9)),r}function dQ(t,e){const r=[zt(t.chainId,"chainId"),zt(t.nonce,"nonce"),zt(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),zt(t.maxFeePerGas||0,"maxFeePerGas"),zt(t.gasLimit,"gasLimit"),t.to||"0x",zt(t.value,"value"),t.data,Jk(t.accessList||[])];return e&&(r.push(zt(e.yParity,"yParity")),r.push(kn(e.r)),r.push(kn(e.s))),pr(["0x02",wu(r)])}function fQ(t){const e=Zw(at(t).slice(1));U(Array.isArray(e)&&(e.length===8||e.length===11),"invalid field count for transaction type: 1","data",ce(t));const r={type:1,chainId:fr(e[0],"chainId"),nonce:Im(e[1],"nonce"),gasPrice:fr(e[2],"gasPrice"),gasLimit:fr(e[3],"gasLimit"),to:nb(e[4]),value:fr(e[5],"value"),data:ce(e[6]),accessList:Yk(e[7],"accessList")};return e.length===8||Zk(r,e.slice(8)),r}function hQ(t,e){const r=[zt(t.chainId,"chainId"),zt(t.nonce,"nonce"),zt(t.gasPrice||0,"gasPrice"),zt(t.gasLimit,"gasLimit"),t.to||"0x",zt(t.value,"value"),t.data,Jk(t.accessList||[])];return e&&(r.push(zt(e.yParity,"recoveryParam")),r.push(kn(e.r)),r.push(kn(e.s))),pr(["0x01",wu(r)])}function pQ(t){let e=Zw(at(t).slice(1)),r="3",n=null;if(e.length===4&&Array.isArray(e[0])){r="3 (network format)";const s=e[1],o=e[2],a=e[3];U(Array.isArray(s),"invalid network format: blobs not an array","fields[1]",s),U(Array.isArray(o),"invalid network format: commitments not an array","fields[2]",o),U(Array.isArray(a),"invalid network format: proofs not an array","fields[3]",a),U(s.length===o.length,"invalid network format: blobs/commitments length mismatch","fields",e),U(s.length===a.length,"invalid network format: blobs/proofs length mismatch","fields",e),n=[];for(let l=0;l<e[1].length;l++)n.push({data:s[l],commitment:o[l],proof:a[l]});e=e[0]}U(Array.isArray(e)&&(e.length===11||e.length===14),`invalid field count for transaction type: ${r}`,"data",ce(t));const i={type:3,chainId:fr(e[0],"chainId"),nonce:Im(e[1],"nonce"),maxPriorityFeePerGas:fr(e[2],"maxPriorityFeePerGas"),maxFeePerGas:fr(e[3],"maxFeePerGas"),gasPrice:null,gasLimit:fr(e[4],"gasLimit"),to:nb(e[5]),value:fr(e[6],"value"),data:ce(e[7]),accessList:Yk(e[8],"accessList"),maxFeePerBlobGas:fr(e[9],"maxFeePerBlobGas"),blobVersionedHashes:e[10]};n&&(i.blobs=n),U(i.to!=null,`invalid address for transaction type: ${r}`,"data",t),U(Array.isArray(i.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",t);for(let s=0;s<i.blobVersionedHashes.length;s++)U(Bt(i.blobVersionedHashes[s],32),`invalid blobVersionedHash at index ${s}: must be length 32`,"data",t);return e.length===11||Zk(i,e.slice(11)),i}function gQ(t,e,r){const n=[zt(t.chainId,"chainId"),zt(t.nonce,"nonce"),zt(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),zt(t.maxFeePerGas||0,"maxFeePerGas"),zt(t.gasLimit,"gasLimit"),t.to||Lg,zt(t.value,"value"),t.data,Jk(t.accessList||[]),zt(t.maxFeePerBlobGas||0,"maxFeePerBlobGas"),aQ(t.blobVersionedHashes||[],"blobVersionedHashes")];return e&&(n.push(zt(e.yParity,"yParity")),n.push(kn(e.r)),n.push(kn(e.s)),r)?pr(["0x03",wu([n,r.map(i=>i.data),r.map(i=>i.commitment),r.map(i=>i.proof)])]):pr(["0x03",wu(n)])}var Ks,gf,mf,vf,yf,wf,bf,xf,Sf,Ef,kf,Af,Gc,qa,Uo,Qa,Cf,Nv;const jo=class jo{constructor(){z(this,Cf);z(this,Ks);z(this,gf);z(this,mf);z(this,vf);z(this,yf);z(this,wf);z(this,bf);z(this,xf);z(this,Sf);z(this,Ef);z(this,kf);z(this,Af);z(this,Gc);z(this,qa);z(this,Uo);z(this,Qa);T(this,Ks,null),T(this,gf,null),T(this,vf,0),T(this,yf,Lr),T(this,wf,null),T(this,bf,null),T(this,xf,
349null),T(this,mf,"0x"),T(this,Sf,Lr),T(this,Ef,Lr),T(this,kf,null),T(this,Af,null),T(this,Gc,null),T(this,qa,null),T(this,Qa,null),T(this,Uo,null)}get type(){return S(this,Ks)}set type(e){switch(e){case null:T(this,Ks,null);break;case 0:case"legacy":T(this,Ks,0);break;case 1:case"berlin":case"eip-2930":T(this,Ks,1);break;case 2:case"london":case"eip-1559":T(this,Ks,2);break;case 3:case"cancun":case"eip-4844":T(this,Ks,3);break;default:U(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){const e=S(this,gf);return e==null&&this.type===3?Lg:e}set to(e){T(this,gf,e==null?null:Ot(e))}get nonce(){return S(this,vf)}set nonce(e){T(this,vf,He(e,"value"))}get gasLimit(){return S(this,yf)}set gasLimit(e){T(this,yf,ge(e))}get gasPrice(){const e=S(this,wf);return e==null&&(this.type===0||this.type===1)?Lr:e}set gasPrice(e){T(this,wf,e==null?null:ge(e,"gasPrice"))}get maxPriorityFeePerGas(){const e=S(this,bf);return e??(this.type===2||this.type===3?Lr:null)}set maxPriorityFeePerGas(e){T(this,bf,e==null?null:ge(e,"maxPriorityFeePerGas"))}get maxFeePerGas(){const e=S(this,xf);return e??(this.type===2||this.type===3?Lr:null)}set maxFeePerGas(e){T(this,xf,e==null?null:ge(e,"maxFeePerGas"))}get data(){return S(this,mf)}set data(e){T(this,mf,ce(e))}get value(){return S(this,Sf)}set value(e){T(this,Sf,ge(e,"value"))}get chainId(){return S(this,Ef)}set chainId(e){T(this,Ef,ge(e))}get signature(){return S(this,kf)||null}set signature(e){T(this,kf,e==null?null:Rs.from(e))}get accessList(){const e=S(this,Af)||null;return e??(this.type===1||this.type===2||this.type===3?[]:null)}set accessList(e){T(this,Af,e==null?null:Bu(e))}get maxFeePerBlobGas(){const e=S(this,Gc);return e==null&&this.type===3?Lr:e}set maxFeePerBlobGas(e){T(this,Gc,e==null?null:ge(e,"maxFeePerBlobGas"))}get blobVersionedHashes(){let e=S(this,qa);return e==null&&this.type===3?[]:e}set blobVersionedHashes(e){if(e!=null){U(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let r=0;r<e.length;r++)U(Bt(e[r],32),"invalid blobVersionedHash",`value[${r}]`,e[r])}T(this,qa,e)}get blobs(){return S(this,Qa)==null?null:S(this,Qa).map(e=>Object.assign({},e))}set blobs(e){if(e==null){T(this,Qa,null);return}const r=[],n=[];for(let i=0;i<e.length;i++){const s=e[i];if(Bk(s)){J(S(this,Uo),"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let o=at(s);if(U(o.length<=zx,"blob is too large",`blobs[${i}]`,s),o.length!==zx){const c=new Uint8Array(zx);c.set(o),o=c}const a=S(this,Uo).blobToKzgCommitment(o),l=ce(S(this,Uo).computeBlobKzgProof(o,a));r.push({data:ce(o),commitment:ce(a),proof:l}),n.push(XP(1,a))}else{const o=ce(s.commitment);r.push({data:ce(s.data),commitment:o,proof:ce(s.proof)}),n.push(XP(1,o))}}T(this,Qa,r),T(this,qa,n)}get kzg(){return S(this,Uo)}set kzg(e){T(this,Uo,e)}get hash(){return this.signature==null?null:xr(Q(this,Cf,Nv).call(this,!0,!1))}get unsignedHash(){return xr(this.unsignedSerialized)}get from(){return this.signature==null?null:tQ(this.unsignedHash,this.signature)}get fromPublicKey(){return this.signature==null?null:Ug.recoverPublicKey(this.unsignedHash,this.signature)}isSigned(){return this.signature!=null}get serialized(){return Q(this,Cf,Nv).call(this,!0,!0)}get unsignedSerialized(){return Q(this,Cf,Nv).call(this,!1,!1)}inferType(){const e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){const e=this.gasPrice!=null,r=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,n=this.accessList!=null,i=S(this,Gc)!=null||S(this,qa);this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&J(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),J(!r||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),J(this.type!==0||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const s=[];return this.type!=null?s.push(this.type):r?s.push(2):e?(s.push(1),n||s.push(0)):n?(s.push(1),s.push(2)):(i&&this.to||(s.push(0),s.push(1),s.push(2)),s.push(3)),s.sort(),s}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}clone(){return jo.from(this)}toJSON(){const e=r=>r==null?null:r.toString();
349return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(e==null)return new jo;if(typeof e=="string"){const n=at(e);if(n[0]>=127)return jo.from(lQ(n));switch(n[0]){case 1:return jo.from(fQ(n));case 2:return jo.from(uQ(n));case 3:return jo.from(pQ(n))}J(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const r=new jo;return e.type!=null&&(r.type=e.type),e.to!=null&&(r.to=e.to),e.nonce!=null&&(r.nonce=e.nonce),e.gasLimit!=null&&(r.gasLimit=e.gasLimit),e.gasPrice!=null&&(r.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(r.maxFeePerGas=e.maxFeePerGas),e.maxFeePerBlobGas!=null&&(r.maxFeePerBlobGas=e.maxFeePerBlobGas),e.data!=null&&(r.data=e.data),e.value!=null&&(r.value=e.value),e.chainId!=null&&(r.chainId=e.chainId),e.signature!=null&&(r.signature=Rs.from(e.signature)),e.accessList!=null&&(r.accessList=e.accessList),e.blobVersionedHashes!=null&&(r.blobVersionedHashes=e.blobVersionedHashes),e.kzg!=null&&(r.kzg=e.kzg),e.blobs!=null&&(r.blobs=e.blobs),e.hash!=null&&(U(r.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),U(r.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(U(r.isSigned(),"unsigned transaction cannot define '.from'","tx",e),U(r.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),r}};Ks=new WeakMap,gf=new WeakMap,mf=new WeakMap,vf=new WeakMap,yf=new WeakMap,wf=new WeakMap,bf=new WeakMap,xf=new WeakMap,Sf=new WeakMap,Ef=new WeakMap,kf=new WeakMap,Af=new WeakMap,Gc=new WeakMap,qa=new WeakMap,Uo=new WeakMap,Qa=new WeakMap,Cf=new WeakSet,Nv=function(e,r){J(!e||this.signature!=null,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const n=e?this.signature:null;switch(this.inferType()){case 0:return cQ(this,n);case 1:return hQ(this,n);case 2:return dQ(this,n);case 3:return gQ(this,n,r?this.blobs:null)}J(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})};let Iy=jo;const P4=new Uint8Array(32);P4.fill(0);const mQ=BigInt(-1),T4=BigInt(0),R4=BigInt(1),vQ=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function yQ(t){const e=at(t),r=e.length%32;return r?pr([e,P4.slice(r)]):ce(e)}const wQ=Ll(R4,32),bQ=Ll(T4,32),YP={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},_x=["name","version","chainId","verifyingContract","salt"];function JP(t){return function(e){return U(typeof e=="string",`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const xQ={name:JP("name"),version:JP("version"),chainId:function(t){const e=ge(t,"domain.chainId");return U(e>=0,"invalid chain ID","domain.chainId",t),Number.isSafeInteger(e)?Number(e):jd(e)},verifyingContract:function(t){try{return Ot(t).toLowerCase()}catch{}U(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){const e=at(t,"domain.salt");return U(e.length===32,'invalid domain value "salt"',"domain.salt",t),ce(e)}};function Vx(t){{const e=t.match(/^(u?)int(\d+)$/);if(e){const r=e[1]==="",n=parseInt(e[2]);U(n%8===0&&n!==0&&n<=256&&e[2]===String(n),"invalid numeric width","type",t);const i=Nc(vQ,r?n-1:n),s=r?(i+R4)*mQ:T4;return function(o){const a=ge(o,"value");return U(a>=s&&a<=i,`value out-of-bounds for ${t}`,"value",a),Ll(r?vI(a,256):a,32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return U(r!==0&&r<=32&&e[1]===String(r),"invalid bytes width","type",t),function(n){const i=at(n);return U(i.length===r,`invalid length for ${t}`,"value",n),yQ(n)}}}switch(t){case"address":return function(e){return yu(Ot(e),32)};case"bool":return function(e){return e?wQ:bQ};case"bytes":return function(e){return xr(e)};case"string":return function(e){return bu(e)}}return null}function ZP(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}function M0(t){const e=t.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return e?{base:e[1],index:e[2]+e[4],array:{base:e[1],prefix:e[1]+e[2],count:e[5]?parseInt(e[5]):-1}}:{base:t}}var cm,zo,Nf,lw,j4;const Pi=class Pi{constructor(e){z(this,lw);W(this,"primaryType");z(this,cm);z(this,zo);z(this,Nf);T(this,zo,new Map),T(this,Nf,new Map);const r=new Map,n=new Map,i=new Map,s={};Object.keys(e).forEach(l=>{s[l]=e[l].map(({name:c,type:u})=>{let{base:d,index:h}=M0(u);return d==="int"&&!e.int&&(d="int256"),d==="uint"&&!e.uint&&(d="uint256"),{name:c,type:d+(h||"")}}),r.set(l,new Set),n.set(l,[]),i.set(l,new Set)}),T(this,cm,JSON.stringify(s));for(const l in s){const c=new Set;for(const u of s[l]){U(!c.has(u.name),`duplicate variable name ${JSON.stringify(u.name)} in ${JSON.stringify(l)}`,"types",e),c.add(u.name);const d=M0(u.type).base;U(d!==l,`circular type reference to ${JSON.stringify(d)}`,"types",e),!Vx(d)&&(U(n.has(d),`unknown type ${JSON.stringify(d)}`,"types",e),n.get(d).push(l),r.get(l).add(d))}}const o=Array.from(n.keys()).filter(l=>n.get(l).length===0);U(o.length!==0,"missing primary type","types",e),U(o.length===1,`ambiguous primary types or unused types: ${o.map(l=>JSON.stringify(l)).join(", ")}`,"types",e),xe(this,{primaryType:o[0]});function a(l,c){U(!c.has(l),`circular type reference to ${JSON.stringify(l)}`,"types",e),c.add(l);for(const u of r.get(l))if(n.has(u)){a(u,c);for(const d of c)i.get(d).add(u)}c.delete(l)}
349a(this.primaryType,new Set);for(const[l,c]of i){const u=Array.from(c);u.sort(),S(this,zo).set(l,ZP(l,s[l])+u.map(d=>ZP(d,s[d])).join(""))}}get types(){return JSON.parse(S(this,cm))}getEncoder(e){let r=S(this,Nf).get(e);return r||(r=Q(this,lw,j4).call(this,e),S(this,Nf).set(e,r)),r}encodeType(e){const r=S(this,zo).get(e);return U(r,`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return xr(this.encodeData(e,r))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,r,n){if(Vx(e))return n(e,r);const i=M0(e).array;if(i)return U(i.count===-1||i.count===r.length,`array length mismatch; expected length ${i.count}`,"value",r),r.map(o=>this._visit(i.prefix,o,n));const s=this.types[e];if(s)return s.reduce((o,{name:a,type:l})=>(o[a]=this._visit(l,r[a],n),o),{});U(!1,`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new Pi(e)}static getPrimaryType(e){return Pi.from(e).primaryType}static hashStruct(e,r,n){return Pi.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){if(e[n]==null)continue;const i=YP[n];U(i,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:i})}return r.sort((n,i)=>_x.indexOf(n.name)-_x.indexOf(i.name)),Pi.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return pr(["0x1901",Pi.hashDomain(e),Pi.from(r).hash(n)])}static hash(e,r,n){return xr(Pi.encode(e,r,n))}static async resolveNames(e,r,n,i){e=Object.assign({},e);for(const a in e)e[a]==null&&delete e[a];const s={};e.verifyingContract&&!Bt(e.verifyingContract,20)&&(s[e.verifyingContract]="0x");const o=Pi.from(r);o.visit(n,(a,l)=>(a==="address"&&!Bt(l,20)&&(s[l]="0x"),l));for(const a in s)s[a]=await i(a);return e.verifyingContract&&s[e.verifyingContract]&&(e.verifyingContract=s[e.verifyingContract]),n=o.visit(n,(a,l)=>a==="address"&&s[l]?s[l]:l),{domain:e,value:n}}static getPayload(e,r,n){Pi.hashDomain(e);const i={},s=[];_x.forEach(l=>{const c=e[l];c!=null&&(i[l]=xQ[l](c),s.push({name:l,type:YP[l]}))});const o=Pi.from(r);r=o.types;const a=Object.assign({},r);return U(a.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",r),a.EIP712Domain=s,o.encode(n),{types:a,domain:i,primaryType:o.primaryType,message:o.visit(n,(l,c)=>{if(l.match(/^bytes(\d*)/))return ce(at(c));if(l.match(/^u?int/))return ge(c).toString();switch(l){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return U(typeof c=="string","invalid string","value",c),c}U(!1,"unsupported type","type",l)})}}};cm=new WeakMap,zo=new WeakMap,Nf=new WeakMap,lw=new WeakSet,j4=function(e){{const i=Vx(e);if(i)return i}const r=M0(e).array;if(r){const i=r.prefix,s=this.getEncoder(i);return o=>{U(r.count===-1||r.count===o.length,`array length mismatch; expected length ${r.count}`,"value",o);let a=o.map(s);return S(this,zo).has(i)&&(a=a.map(xr)),xr(pr(a))}}const n=this.types[e];if(n){const i=bu(S(this,zo).get(e));return s=>{const o=n.map(({name:a,type:l})=>{const c=this.getEncoder(l)(s[a]);return S(this,zo).has(l)?xr(c):c});return o.unshift(i),pr(o)}}U(!1,`unknown type: ${e}`,"type",e)};let My=Pi;function Nn(t){const e=new Set;return t.forEach(r=>e.add(r)),Object.freeze(e)}const SQ="external public payable override",EQ=Nn(SQ.split(" ")),F4="constant external internal payable private public pure view override",kQ=Nn(F4.split(" ")),O4="constructor error event fallback function receive struct",D4=Nn(O4.split(" ")),I4="calldata memory storage payable indexed",AQ=Nn(I4.split(" ")),CQ="tuple returns",NQ=[O4,I4,CQ,F4].join(" "),PQ=Nn(NQ.split(" ")),TQ={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},RQ=new RegExp("^(\\s*)"),jQ=new RegExp("^([0-9]+)"),FQ=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),M4=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),B4=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var Hr,ms,um,c2;const cw=class cw{constructor(e){z(this,um);z(this,Hr);z(this,ms);T(this,Hr,0),T(this,ms,e.slice())}get offset(){return S(this,Hr)}get length(){return S(this,ms).length-S(this,Hr)}clone(){return new cw(S(this,ms))}reset(){T(this,Hr,0)}popKeyword(e){const r=this.peek();if(r.type!=="KEYWORD"||!e.has(r.text))throw new Error(`expected keyword ${r.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){const r=this.peek();throw new Error(`expected ${e}; got ${r.type} ${JSON.stringify(r.text)}`)}return this.pop().text}popParen(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const r=Q(this,um,c2).call(this,S(this,Hr)+1,e.match+1);return T(this,Hr,e.match+1),r}popParams(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const r=[];for(;S(this,Hr)<e.match-1;){const n=this.peek().linkNext;r.push(Q(this,um,c2).call(this,S(this,Hr)+1,n)),T(this,Hr,n)}return T(this,Hr,e.match+1),r}peek(){if(S(this,Hr)>=S(this,ms).length)throw new Error("out-of-bounds");return S(this,ms)[S(this,Hr)]}peekKeyword(e){const r=this.peekType("KEYWORD");return r!=null&&e.has(r)?r:null}peekType(e){if(this.length===0)return null;const r=this.peek();return r.type===e?r.text:null}pop(){const e=this.peek();return ma(this,Hr)._++,e}toString(){const e=[];for(let r=S(this,Hr);r<S(this,ms).length;r++){const n=S(this,ms)[r];e.push(`${n.type}:${n.text}`)}return`<TokenString ${e.join(" ")}>`}};Hr=new WeakMap,ms=new WeakMap,um=new WeakSet,c2=function(e=0,r=0){return new cw(S(this,ms).slice(e,r).map(n=>Object.freeze(Object.assign({},n,{match:n.match-e,linkBack:n.linkBack-e,linkNext:n.linkNext-e}))))};let js=cw;function Jl(t){const e=[],r=o=>{const a=s<t.length?JSON.stringify(t[s]):"$EOI";throw new Error(`invalid token ${a} at ${s}: ${o}`)};let n=[],i=[],s=0;for(;s<t.length;){let o=t.substring(s),a=o.match(RQ);a&&(s+=a[1].length,o=t.substring(s));const l={depth:n.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:s,value:-1};e.push(l);let c=TQ[o[0]]||"";if(c){if(l.type=c,l.text=o[0],s++,c==="OPEN_PAREN")n.push(e.length-1),i.push(e.length-1);else if(c=="CLOSE_PAREN")n.length===0&&r("no matching open bracket"),l.match=n.pop(),e[l.match].match=e.length-1,l.depth--,l.linkBack=i.pop(),e[l.linkBack].linkNext=e.length-1;else if(c==="COMMA")l.linkBack=i.pop(),e[l.linkBack].linkNext=e.length-1,i.push(e.length-1);else if(c==="OPEN_BRACKET")l.type="BRACKET";else if(c==="CLOSE_BRACKET"){let u=e.pop().text;if(e.length>0&&e[e.length-1].type==="NUMBER"){const d=e.pop().text;u=d+u,e[e.length-1].value=He(d)}if(e.length===0||e[e.length-1].type!=="BRACKET")throw new Error("missing opening bracket");e[e.length-1].text+=u}continue}if(a=o.match(FQ),a){if(l.text=a[1],s+=l.text.length,PQ.has(l.text)){l.type="KEYWORD";continue}if(l.text.match(B4)){l.type="TYPE";continue}l.type="ID";continue}if(a=o.match(jQ),a){l.text=a[1],l.type="NUMBER",s+=l.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(o[0])} at position ${s}`)}return new js(e.map(o=>Object.freeze(o)))}function $P(t,e){let r=[];for(const n in e.keys())t.has(n)&&r.push(n);if(r.length>1)throw new Error(`conflicting types: ${r.join(", ")}`)}function ib(t,e){if(e.peekKeyword(D4)){const r=e.pop().text;if(r!==t)throw new Error(`expected ${t}, got ${r}`)}return e.popType("ID")}function ca(t,e){const r=new Set;for(;;){const n=t.peekType("KEYWORD");if(n==null||e&&!e.has(n))break;if(t.pop(),r.has(n))throw new Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function L4(t){let e=ca(t,kQ);return $P(e,Nn("constant payable nonpayable".split(" "))),$P(e,Nn("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function $o(t,e){return t.popParams().map(r=>Jr.from(r,e))}
349function U4(t){if(t.peekType("AT")){if(t.pop(),t.peekType("NUMBER"))return ge(t.pop().text);throw new Error("invalid gas")}return null}function xu(t){if(t.length)throw new Error(`unexpected tokens at offset ${t.offset}: ${t.toString()}`)}const OQ=new RegExp(/^(.*)\[([0-9]*)\]$/);function eT(t){const e=t.match(B4);if(U(e,"invalid type","type",t),t==="uint")return"uint256";if(t==="int")return"int256";if(e[2]){const r=parseInt(e[2]);U(r!==0&&r<=32,"invalid bytes length","type",t)}else if(e[3]){const r=parseInt(e[3]);U(r!==0&&r<=256&&r%8===0,"invalid numeric width","type",t)}return t}const Yt={},Zn=Symbol.for("_ethers_internal"),tT="_ParamTypeInternal",rT="_ErrorInternal",nT="_EventInternal",iT="_ConstructorInternal",sT="_FallbackInternal",oT="_FunctionInternal",aT="_StructInternal";var Pf,Pv;const Ti=class Ti{constructor(e,r,n,i,s,o,a,l){z(this,Pf);W(this,"name");W(this,"type");W(this,"baseType");W(this,"indexed");W(this,"components");W(this,"arrayLength");W(this,"arrayChildren");if(Om(e,Yt,"ParamType"),Object.defineProperty(this,Zn,{value:tT}),o&&(o=Object.freeze(o.slice())),i==="array"){if(a==null||l==null)throw new Error("")}else if(a!=null||l!=null)throw new Error("");if(i==="tuple"){if(o==null)throw new Error("")}else if(o!=null)throw new Error("");xe(this,{name:r,type:n,baseType:i,indexed:s,components:o,arrayLength:a,arrayChildren:l})}format(e){if(e==null&&(e="sighash"),e==="json"){const n=this.name||"";if(this.isArray()){const s=JSON.parse(this.arrayChildren.format("json"));return s.name=n,s.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(s)}const i={type:this.baseType==="tuple"?"tuple":this.type,name:n};return typeof this.indexed=="boolean"&&(i.indexed=this.indexed),this.isTuple()&&(i.components=this.components.map(s=>JSON.parse(s.format(e)))),JSON.stringify(i)}let r="";return this.isArray()?(r+=this.arrayChildren.format(e),r+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?r+="("+this.components.map(n=>n.format(e)).join(e==="full"?", ":",")+")":r+=this.type,e!=="sighash"&&(this.indexed===!0&&(r+=" indexed"),e==="full"&&this.name&&(r+=" "+this.name)),r}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(e,r){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map(i=>n.arrayChildren.walk(i,r))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map((i,s)=>n.components[s].walk(i,r))}return r(this.type,e)}async walkAsync(e,r){const n=[],i=[e];return Q(this,Pf,Pv).call(this,n,e,r,s=>{i[0]=s}),n.length&&await Promise.all(n),i[0]}static from(e,r){if(Ti.isParamType(e))return e;if(typeof e=="string")try{return Ti.from(Jl(e),r)}catch{U(!1,"invalid param type","obj",e)}else if(e instanceof js){let a="",l="",c=null;ca(e,Nn(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(l="tuple",c=e.popParams().map(g=>Ti.from(g)),a=`tuple(${c.map(g=>g.format()).join(",")})`):(a=eT(e.popType("TYPE")),l=a);let u=null,d=null;for(;e.length&&e.peekType("BRACKET");){const g=e.pop();u=new Ti(Yt,"",a,l,null,c,d,u),d=g.value,a+=g.text,l="array",c=null}let h=null;if(ca(e,AQ).has("indexed")){if(!r)throw new Error("");h=!0}const m=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new Ti(Yt,m,a,l,h,c,d,u)}const n=e.name;U(!n||typeof n=="string"&&n.match(M4),"invalid name","obj.name",n);let i=e.indexed;i!=null&&(U(r,"parameter cannot be indexed","obj.indexed",e.indexed),i=!!i);let s=e.type,o=s.match(OQ);if(o){const a=parseInt(o[2]||"-1"),l=Ti.from({type:o[1],components:e.components});return new Ti(Yt,n||"",s,"array",i,null,a,l)}if(s==="tuple"||s.startsWith("tuple(")||s.startsWith("(")){const a=e.components!=null?e.components.map(c=>Ti.from(c)):null;return new Ti(Yt,n||"",s,"tuple",i,a,null,null)}return s=eT(e.type),new Ti(Yt,n||"",s,s,i,null,null,null)}static isParamType(e){return e&&e[Zn]===tT}};Pf=new WeakSet,Pv=function(e,r,n,i){if(this.isArray()){if(!Array.isArray(r))throw new Error("invalid array value");if(this.arrayLength!==-1&&r.length!==this.arrayLength)throw new Error("array is wrong length");const o=this.arrayChildren,a=r.slice();a.forEach((l,c)=>{var u;
349Q(u=o,Pf,Pv).call(u,e,l,n,d=>{a[c]=d})}),i(a);return}if(this.isTuple()){const o=this.components;let a;if(Array.isArray(r))a=r.slice();else{if(r==null||typeof r!="object")throw new Error("invalid tuple value");a=o.map(l=>{if(!l.name)throw new Error("cannot use object value with unnamed components");if(!(l.name in r))throw new Error(`missing value for component ${l.name}`);return r[l.name]})}if(a.length!==this.components.length)throw new Error("array is wrong length");a.forEach((l,c)=>{var u;Q(u=o[c],Pf,Pv).call(u,e,l,n,d=>{a[c]=d})}),i(a);return}const s=n(this.type,r);s.then?e.push(async function(){i(await s)}()):i(s)};let Jr=Ti;class Su{constructor(e,r,n){W(this,"type");W(this,"inputs");Om(e,Yt,"Fragment"),n=Object.freeze(n.slice()),xe(this,{type:r,inputs:n})}static from(e){if(typeof e=="string"){try{Su.from(JSON.parse(e))}catch{}return Su.from(Jl(e))}if(e instanceof js)switch(e.peekKeyword(D4)){case"constructor":return Yo.from(e);case"error":return Hn.from(e);case"event":return io.from(e);case"fallback":case"receive":return Oo.from(e);case"function":return so.from(e);case"struct":return cu.from(e)}else if(typeof e=="object"){switch(e.type){case"constructor":return Yo.from(e);case"error":return Hn.from(e);case"event":return io.from(e);case"fallback":case"receive":return Oo.from(e);case"function":return so.from(e);case"struct":return cu.from(e)}J(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}U(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return Yo.isFragment(e)}static isError(e){return Hn.isFragment(e)}static isEvent(e){return io.isFragment(e)}static isFunction(e){return so.isFragment(e)}static isStruct(e){return cu.isFragment(e)}}class sb extends Su{constructor(r,n,i,s){super(r,n,s);W(this,"name");U(typeof i=="string"&&i.match(M4),"invalid identifier","name",i),s=Object.freeze(s.slice()),xe(this,{name:i})}}function Gg(t,e){return"("+e.map(r=>r.format(t)).join(t==="full"?", ":",")+")"}class Hn extends sb{constructor(e,r,n){super(e,"error",r,n),Object.defineProperty(this,Zn,{value:rT})}get selector(){return bu(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});const r=[];return e!=="sighash"&&r.push("error"),r.push(this.name+Gg(e,this.inputs)),r.join(" ")}static from(e){if(Hn.isFragment(e))return e;if(typeof e=="string")return Hn.from(Jl(e));if(e instanceof js){const r=ib("error",e),n=$o(e);return xu(e),new Hn(Yt,r,n)}return new Hn(Yt,e.name,e.inputs?e.inputs.map(Jr.from):[])}static isFragment(e){return e&&e[Zn]===rT}}class io extends sb{constructor(r,n,i,s){super(r,"event",n,i);W(this,"anonymous");Object.defineProperty(this,Zn,{value:nT}),xe(this,{anonymous:s})}get topicHash(){return bu(this.format("sighash"))}format(r){if(r==null&&(r="sighash"),r==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(i=>JSON.parse(i.format(r)))});const n=[];return r!=="sighash"&&n.push("event"),n.push(this.name+Gg(r,this.inputs)),r!=="sighash"&&this.anonymous&&n.push("anonymous"),n.join(" ")}static getTopicHash(r,n){return n=(n||[]).map(s=>Jr.from(s)),new io(Yt,r,n,!1).topicHash}static from(r){if(io.isFragment(r))return r;if(typeof r=="string")try{return io.from(Jl(r))}catch{U(!1,"invalid event fragment","obj",r)}else if(r instanceof js){const n=ib("event",r),i=$o(r,!0),s=!!ca(r,Nn(["anonymous"])).has("anonymous");return xu(r),new io(Yt,n,i,s)}return new io(Yt,r.name,r.inputs?r.inputs.map(n=>Jr.from(n,!0)):[],!!r.anonymous)}static isFragment(r){return r&&r[Zn]===nT}}class Yo extends Su{constructor(r,n,i,s,o){super(r,n,i);W(this,"payable");W(this,"gas");Object.defineProperty(this,Zn,{value:iT}),xe(this,{payable:s,gas:o})}format(r){if(J(r!=null&&r!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),r==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(i=>JSON.parse(i.format(r)))});const n=[`constructor${Gg(r,this.inputs)}`];return this.payable&&n.push("payable"),this.gas!=null&&n.push(`@${this.gas.toString()}`),n.join(" ")}static from(r){if(Yo.isFragment(r))return r;if(typeof r=="string")try{return Yo.from(Jl(r))}catch{U(!1,"invalid constuctor fragment","obj",r)}else if(r instanceof js){ca(r,Nn(["constructor"]));const n=$o(r),i=!!ca(r,EQ).has("payable"),s=U4(r);return xu(r),new Yo(Yt,"constructor",n,i,s)}
349return new Yo(Yt,"constructor",r.inputs?r.inputs.map(Jr.from):[],!!r.payable,r.gas!=null?r.gas:null)}static isFragment(r){return r&&r[Zn]===iT}}class Oo extends Su{constructor(r,n,i){super(r,"fallback",n);W(this,"payable");Object.defineProperty(this,Zn,{value:sT}),xe(this,{payable:i})}format(r){const n=this.inputs.length===0?"receive":"fallback";if(r==="json"){const i=this.payable?"payable":"nonpayable";return JSON.stringify({type:n,stateMutability:i})}return`${n}()${this.payable?" payable":""}`}static from(r){if(Oo.isFragment(r))return r;if(typeof r=="string")try{return Oo.from(Jl(r))}catch{U(!1,"invalid fallback fragment","obj",r)}else if(r instanceof js){const n=r.toString(),i=r.peekKeyword(Nn(["fallback","receive"]));if(U(i,"type must be fallback or receive","obj",n),r.popKeyword(Nn(["fallback","receive"]))==="receive"){const l=$o(r);return U(l.length===0,"receive cannot have arguments","obj.inputs",l),ca(r,Nn(["payable"])),xu(r),new Oo(Yt,[],!0)}let o=$o(r);o.length?U(o.length===1&&o[0].type==="bytes","invalid fallback inputs","obj.inputs",o.map(l=>l.format("minimal")).join(", ")):o=[Jr.from("bytes")];const a=L4(r);if(U(a==="nonpayable"||a==="payable","fallback cannot be constants","obj.stateMutability",a),ca(r,Nn(["returns"])).has("returns")){const l=$o(r);U(l.length===1&&l[0].type==="bytes","invalid fallback outputs","obj.outputs",l.map(c=>c.format("minimal")).join(", "))}return xu(r),new Oo(Yt,o,a==="payable")}if(r.type==="receive")return new Oo(Yt,[],!0);if(r.type==="fallback"){const n=[Jr.from("bytes")],i=r.stateMutability==="payable";return new Oo(Yt,n,i)}U(!1,"invalid fallback description","obj",r)}static isFragment(r){return r&&r[Zn]===sT}}class so extends sb{constructor(r,n,i,s,o,a){super(r,"function",n,s);W(this,"constant");W(this,"outputs");W(this,"stateMutability");W(this,"payable");W(this,"gas");Object.defineProperty(this,Zn,{value:oT}),o=Object.freeze(o.slice()),xe(this,{constant:i==="view"||i==="pure",gas:a,outputs:o,payable:i==="payable",stateMutability:i})}get selector(){return bu(this.format("sighash")).substring(0,10)}format(r){if(r==null&&(r="sighash"),r==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(i=>JSON.parse(i.format(r))),outputs:this.outputs.map(i=>JSON.parse(i.format(r)))});const n=[];return r!=="sighash"&&n.push("function"),n.push(this.name+Gg(r,this.inputs)),r!=="sighash"&&(this.stateMutability!=="nonpayable"&&n.push(this.stateMutability),this.outputs&&this.outputs.length&&(n.push("returns"),n.push(Gg(r,this.outputs))),this.gas!=null&&n.push(`@${this.gas.toString()}`)),n.join(" ")}static getSelector(r,n){return n=(n||[]).map(s=>Jr.from(s)),new so(Yt,r,"view",n,[],null).selector}static from(r){if(so.isFragment(r))return r;if(typeof r=="string")try{return so.from(Jl(r))}catch{U(!1,"invalid function fragment","obj",r)}else if(r instanceof js){const i=ib("function",r),s=$o(r),o=L4(r);let a=[];ca(r,Nn(["returns"])).has("returns")&&(a=$o(r));const l=U4(r);return xu(r),new so(Yt,i,o,s,a,l)}let n=r.stateMutability;return n==null&&(n="payable",typeof r.constant=="boolean"?(n="view",r.constant||(n="payable",typeof r.payable=="boolean"&&!r.payable&&(n="nonpayable"))):typeof r.payable=="boolean"&&!r.payable&&(n="nonpayable")),new so(Yt,r.name,n,r.inputs?r.inputs.map(Jr.from):[],r.outputs?r.outputs.map(Jr.from):[],r.gas!=null?r.gas:null)}static isFragment(r){return r&&r[Zn]===oT}}class cu extends sb{constructor(e,r,n){super(e,"struct",r,n),Object.defineProperty(this,Zn,{value:aT})}format(){throw new Error("@TODO")}static from(e){if(typeof e=="string")try{return cu.from(Jl(e))}catch{U(!1,"invalid struct fragment","obj",e)}else if(e instanceof js){const r=ib("struct",e),n=$o(e);return xu(e),new cu(Yt,r,n)}return new cu(Yt,e.name,e.inputs?e.inputs.map(Jr.from):[])}static isFragment(e){return e&&e[Zn]===aT}}const Fs=new Map;Fs.set(0,"GENERIC_PANIC");Fs.set(1,"ASSERT_FALSE");Fs.set(17,"OVERFLOW");Fs.set(18,"DIVIDE_BY_ZERO");Fs.set(33,"ENUM_RANGE_ERROR");Fs.set(34,"BAD_STORAGE_DATA");Fs.set(49,"STACK_UNDERFLOW");Fs.set(50,"ARRAY_RANGE_ERROR");Fs.set(65,"OUT_OF_MEMORY");Fs.set(81,"UNINITIALIZED_FUNCTION_CALL");const DQ=new RegExp(/^bytes([0-9]*)$/),IQ=new RegExp(/^(u?int)([0-9]*)$/);let Hx=null,lT=1024;function MQ(t,e,r,n){let i="missing revert data",s=null;const o=null;let a=null;if(r){i="execution reverted";const c=at(r);if(r=ce(r),c.length===0)i+=" (no data present; likely require(false) occurred",s="require(false)";else if(c.length%32!==4)i+=" (could not decode reason; invalid data length)";else if(ce(c.slice(0,4))==="0x08c379a0")try{s=n.decode(["string"],c.slice(4))[0],a={signature:"Error(string)",name:"Error",args:[s]},i+=`: ${JSON.stringify(s)}`}catch{i+=" (could not decode reason; invalid string data)"}else if(ce(c.slice(0,4))==="0x4e487b71")try{const u=Number(n.decode(["uint256"],c.slice(4))[0]);a={signature:"Panic(uint256)",name:"Panic",args:[u]},s=`Panic due to ${Fs.get(u)||"UNKNOWN"}(${u})`,i+=`: ${s}`}catch{i+=" (could not decode panic code)"}else i+=" (unknown custom error)"}const l={to:e.to?Ot(e.to):null,data:e.data||"0x"};return e.from&&(l.from=Ot(e.from)),ir(i,"CALL_EXCEPTION",{action:t,data:r,reason:s,transaction:l,invocation:o,revert:a})}var Xa,gd;const uw=class uw{constructor(){z(this,Xa)}getDefaultValue(e){const r=e.map(i=>Q(this,Xa,gd).call(this,Jr.from(i)));return new I0(r,"_").defaultValue()}encode(e,r){pI(r.length,e.length,"types/values length mismatch");const n=e.map(o=>Q(this,Xa,gd).call(this,Jr.from(o))),i=new I0(n,"_"),s=new XS;return i.encode(s,r),s.data}decode(e,r,n){const i=e.map(o=>Q(this,Xa,gd).call(this,Jr.from(o)));return new I0(i,"_").decode(new YS(r,n,lT))}static _setDefaultMaxInflation(e){U(typeof e=="number"&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),lT=e}static defaultAbiCoder(){return Hx==null&&(Hx=new uw),Hx}static getBuiltinCallException(e,r,n){return MQ(e,r,n,uw.defaultAbiCoder())}};Xa=new WeakSet,gd=function(e){if(e.isArray())return new sq(Q(this,Xa,gd).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new I0(e.components.map(n=>Q(this,Xa,gd).call(this,n)),e.name);switch(e.baseType){case"address":return new nq(e.name);
349case"bool":return new oq(e.name);case"string":return new gq(e.name);case"bytes":return new aq(e.name);case"":return new uq(e.name)}let r=e.type.match(IQ);if(r){let n=parseInt(r[2]||"256");return U(n!==0&&n<=256&&n%8===0,"invalid "+r[1]+" bit length","param",e),new pq(n/8,r[1]==="int",e.name)}if(r=e.type.match(DQ),r){let n=parseInt(r[1]);return U(n!==0&&n<=32,"invalid bytes length","param",e),new lq(n,e.name)}U(!1,"invalid type","type",e.type)};let Wg=uw;class BQ{constructor(e,r,n){W(this,"fragment");W(this,"name");W(this,"signature");W(this,"topic");W(this,"args");const i=e.name,s=e.format();xe(this,{fragment:e,name:i,signature:s,topic:r,args:n})}}class LQ{constructor(e,r,n,i){W(this,"fragment");W(this,"name");W(this,"args");W(this,"signature");W(this,"selector");W(this,"value");const s=e.name,o=e.format();xe(this,{fragment:e,name:s,args:n,signature:o,selector:r,value:i})}}class UQ{constructor(e,r,n){W(this,"fragment");W(this,"name");W(this,"args");W(this,"signature");W(this,"selector");const i=e.name,s=e.format();xe(this,{fragment:e,name:i,args:n,signature:s,selector:r})}}class cT{constructor(e){W(this,"hash");W(this,"_isIndexed");xe(this,{hash:e,_isIndexed:!0})}static isIndexed(e){return!!(e&&e._isIndexed)}}const uT={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},dT={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:t=>`reverted with reason string ${JSON.stringify(t)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:t=>{let e="unknown panic code";return t>=0&&t<=255&&uT[t.toString()]&&(e=uT[t.toString()]),`reverted with panic code 0x${t.toString(16)} (${e})`}}};var qs,Qs,Xs,nn,po,Tv,Rv;const Sc=class Sc{constructor(e){z(this,po);W(this,"fragments");W(this,"deploy");W(this,"fallback");W(this,"receive");z(this,qs);z(this,Qs);z(this,Xs);z(this,nn);let r=[];typeof e=="string"?r=JSON.parse(e):r=e,T(this,Xs,new Map),T(this,qs,new Map),T(this,Qs,new Map);const n=[];for(const o of r)try{n.push(Su.from(o))}catch(a){console.log(`[Warning] Invalid Fragment ${JSON.stringify(o)}:`,a.message)}xe(this,{fragments:Object.freeze(n)});let i=null,s=!1;T(this,nn,this.getAbiCoder()),this.fragments.forEach((o,a)=>{let l;switch(o.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}xe(this,{deploy:o});return;case"fallback":o.inputs.length===0?s=!0:(U(!i||o.payable!==i.payable,"conflicting fallback fragments",`fragments[${a}]`,o),i=o,s=i.payable);return;case"function":l=S(this,Xs);break;case"event":l=S(this,Qs);break;case"error":l=S(this,qs);break;default:return}const c=o.format();l.has(c)||l.set(c,o)}),this.deploy||xe(this,{deploy:Yo.from("constructor()")}),xe(this,{fallback:i,receive:s})}format(e){const r=e?"minimal":"full";return this.fragments.map(i=>i.format(r))}formatJson(){const e=this.fragments.map(r=>r.format("json"));return JSON.stringify(e.map(r=>JSON.parse(r)))}getAbiCoder(){return Wg.defaultAbiCoder()}getFunctionName(e){const r=Q(this,po,Tv).call(this,e,null,!1);return U(r,"no matching function","key",e),r.name}hasFunction(e){return!!Q(this,po,Tv).call(this,e,null,!1)}getFunction(e,r){return Q(this,po,Tv).call(this,e,r||null,!0)}forEachFunction(e){const r=Array.from(S(this,Xs).keys());r.sort((n,i)=>n.localeCompare(i));for(let n=0;n<r.length;n++){const i=r[n];e(S(this,Xs).get(i),n)}}getEventName(e){const r=Q(this,po,Rv).call(this,e,null,!1);return U(r,"no matching event","key",e),r.name}hasEvent(e){return!!Q(this,po,Rv).call(this,e,null,!1)}getEvent(e,r){return Q(this,po,Rv).call(this,e,r||null,!0)}forEachEvent(e){const r=Array.from(S(this,Qs).keys());r.sort((n,i)=>n.localeCompare(i));for(let n=0;n<r.length;n++){const i=r[n];e(S(this,Qs).get(i),n)}}getError(e,r){if(Bt(e)){const i=e.toLowerCase();if(dT[i])return Hn.from(dT[i].signature);for(const s of S(this,qs).values())if(i===s.selector)return s;return null}if(e.indexOf("(")===-1){const i=[];for(const[s,o]of S(this,qs))s.split("(")[0]===e&&i.push(o);if(i.length===0)return e==="Error"?Hn.from("error Error(string)"):e==="Panic"?Hn.from("error Panic(uint256)"):null;if(i.length>1){const s=i.map(o=>JSON.stringify(o.format())).join(", ");U(!1,`ambiguous error description (i.e. ${s})`,"name",e)}return i[0]}if(e=Hn.from(e).format(),e==="Error(string)")return Hn.from("error Error(string)");if(e==="Panic(uint256)")return Hn.from("error Panic(uint256)");const n=S(this,qs).get(e);return n||null}forEachError(e){const r=Array.from(S(this,qs).keys());r.sort((n,i)=>n.localeCompare(i));for(let n=0;n<r.length;n++){const i=r[n];e(S(this,qs).get(i),n)}}_decodeParams(e,r){return S(this,nn).decode(e,r)}_encodeParams(e,r){return S(this,nn).encode(e,r)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,r){if(typeof e=="string"){const n=this.getError(e);U(n,"unknown error","fragment",e),e=n}return U(sr(r,0,4)===e.selector,`data signature does not match error ${e.name}.`,"data",r),this._decodeParams(e.inputs,sr(r,4))}encodeErrorResult(e,r){if(typeof e=="string"){const n=this.getError(e);U(n,"unknown error","fragment",e),e=n}return pr([e.selector,this._encodeParams(e.inputs,r||[])])}decodeFunctionData(e,r){if(typeof e=="string"){const n=this.getFunction(e);U(n,"unknown function","fragment",e),e=n}return U(sr(r,0,4)===e.selector,`data signature does not match function ${e.name}.`,"data",r),this._decodeParams(e.inputs,sr(r,4))}encodeFunctionData(e,r){if(typeof e=="string"){const n=this.getFunction(e);U(n,"unknown function","fragment",e),e=n}return pr([e.selector,this._encodeParams(e.inputs,r||[])])}decodeFunctionResult(e,r){if(typeof e=="string"){const s=this.getFunction(e);U(s,"unknown function","fragment",e),e=s}let n="invalid length for result data";const i=xn(r);if(i.length%32===0)try{return S(this,nn).decode(e.outputs,i)}
349catch{n="could not decode result data"}J(!1,n,"BAD_DATA",{value:ce(i),info:{method:e.name,signature:e.format()}})}makeError(e,r){const n=at(e,"data"),i=Wg.getBuiltinCallException("call",r,n);if(i.message.startsWith("execution reverted (unknown custom error)")){const a=ce(n.slice(0,4)),l=this.getError(a);if(l)try{const c=S(this,nn).decode(l.inputs,n.slice(4));i.revert={name:l.name,signature:l.format(),args:c},i.reason=i.revert.signature,i.message=`execution reverted: ${i.reason}`}catch{i.message="execution reverted (coult not decode custom error)"}}const o=this.parseTransaction(r);return o&&(i.invocation={method:o.name,signature:o.signature,args:o.args}),i}encodeFunctionResult(e,r){if(typeof e=="string"){const n=this.getFunction(e);U(n,"unknown function","fragment",e),e=n}return ce(S(this,nn).encode(e.outputs,r||[]))}encodeFilterTopics(e,r){if(typeof e=="string"){const s=this.getEvent(e);U(s,"unknown event","eventFragment",e),e=s}J(r.length<=e.inputs.length,`too many arguments for ${e.format()}`,"UNEXPECTED_ARGUMENT",{count:r.length,expectedCount:e.inputs.length});const n=[];e.anonymous||n.push(e.topicHash);const i=(s,o)=>s.type==="string"?bu(o):s.type==="bytes"?xr(ce(o)):(s.type==="bool"&&typeof o=="boolean"?o=o?"0x01":"0x00":s.type.match(/^u?int/)?o=Ll(o):s.type.match(/^bytes/)?o=oW(o,32):s.type==="address"&&S(this,nn).encode(["address"],[o]),yu(ce(o),32));for(r.forEach((s,o)=>{const a=e.inputs[o];if(!a.indexed){U(s==null,"cannot filter non-indexed parameters; must be null","contract."+a.name,s);return}s==null?n.push(null):a.baseType==="array"||a.baseType==="tuple"?U(!1,"filtering with tuples or arrays not supported","contract."+a.name,s):Array.isArray(s)?n.push(s.map(l=>i(a,l))):n.push(i(a,s))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,r){if(typeof e=="string"){const o=this.getEvent(e);U(o,"unknown event","eventFragment",e),e=o}const n=[],i=[],s=[];return e.anonymous||n.push(e.topicHash),U(r.length===e.inputs.length,"event arguments/values mismatch","values",r),e.inputs.forEach((o,a)=>{const l=r[a];if(o.indexed)if(o.type==="string")n.push(bu(l));else if(o.type==="bytes")n.push(xr(l));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");n.push(S(this,nn).encode([o.type],[l]))}else i.push(o),s.push(l)}),{data:S(this,nn).encode(i,s),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"){const p=this.getEvent(e);U(p,"unknown event","eventFragment",e),e=p}if(n!=null&&!e.anonymous){const p=e.topicHash;U(Bt(n[0],32)&&n[0].toLowerCase()===p,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const i=[],s=[],o=[];e.inputs.forEach((p,m)=>{p.indexed?p.type==="string"||p.type==="bytes"||p.baseType==="tuple"||p.baseType==="array"?(i.push(Jr.from({type:"bytes32",name:p.name})),o.push(!0)):(i.push(p),o.push(!1)):(s.push(p),o.push(!1))});const a=n!=null?S(this,nn).decode(i,pr(n)):null,l=S(this,nn).decode(s,r,!0),c=[],u=[];let d=0,h=0;return e.inputs.forEach((p,m)=>{let g=null;if(p.indexed)if(a==null)g=new cT(null);else if(o[m])g=new cT(a[h++]);else try{g=a[h++]}catch(y){g=y}else try{g=l[d++]}catch(y){g=y}c.push(g),u.push(p.name||null)}),gh.fromItems(c,u)}parseTransaction(e){const r=at(e.data,"tx.data"),n=ge(e.value!=null?e.value:0,"tx.value"),i=this.getFunction(ce(r.slice(0,4)));if(!i)return null;const s=S(this,nn).decode(i.inputs,r.slice(4));return new LQ(i,i.selector,s,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new BQ(r,r.topicHash,this.decodeEventLog(r,e.data,e.topics))}parseError(e){const r=ce(e),n=this.getError(sr(r,0,4));if(!n)return null;const i=S(this,nn).decode(n.inputs,sr(r,4));return new UQ(n,n.selector,i)}static from(e){return e instanceof Sc?e:typeof e=="string"?new Sc(JSON.parse(e)):typeof e.formatJson=="function"?new Sc(e.formatJson()):typeof e.format=="function"?new Sc(e.format("json")):new Sc(e)}};qs=new WeakMap,Qs=new WeakMap,Xs=new WeakMap,nn=new WeakMap,po=new WeakSet,Tv=function(e,r,n){if(Bt(e)){const s=e.toLowerCase();for(const o of S(this,Xs).values())if(s===o.selector)return o;return null}if(e.indexOf("(")===-1){const s=[];for(const[o,a]of S(this,Xs))o.split("(")[0]===e&&s.push(a);if(r){const o=r.length>0?r[r.length-1]:null;let a=r.length,l=!0;cn.isTyped(o)&&o.type==="overrides"&&(l=!1,a--);for(let c=s.length-1;c>=0;c--){const u=s[c].inputs.length;u!==a&&(!l||u!==a-1)&&s.splice(c,1)}for(let c=s.length-1;c>=0;c--){const u=s[c].inputs;for(let d=0;d<r.length;d++)if(cn.isTyped(r[d])){if(d>=u.length){if(r[d].type==="overrides")continue;s.splice(c,1);break}if(r[d].type!==u[d].baseType){s.splice(c,1);break}}}}if(s.length===1&&r&&r.length!==s[0].inputs.length){const o=r[r.length-1];(o==null||Array.isArray(o)||typeof o!="object")&&s.splice(0,1)}if(s.length===0)return null;if(s.length>1&&n){const o=s.map(a=>JSON.stringify(a.format())).join(", ");U(!1,`ambiguous function description (i.e. matches ${o})`,"key",e)}return s[0]}const i=S(this,Xs).get(so.from(e).format());return i||null},Rv=function(e,r,n){if(Bt(e)){const s=e.toLowerCase();for(const o of S(this,Qs).values())if(s===o.topicHash)return o;return null}if(e.indexOf("(")===-1){const s=[];for(const[o,a]of S(this,Qs))o.split("(")[0]===e&&s.push(a);if(r){for(let o=s.length-1;o>=0;o--)s[o].inputs.length<r.length&&s.splice(o,1);for(let o=s.length-1;o>=0;o--){const a=s[o].inputs;for(let l=0;l<r.length;l++)if(cn.isTyped(r[l])&&r[l].type!==a[l].baseType){s.splice(o,1);break}}}if(s.length===0)return null;if(s.length>1&&n){const o=s.map(a=>JSON.stringify(a.format())).join(", ");U(!1,`ambiguous event description (i.e. matches ${o})`,"key",e)}return s[0]}const i=S(this,Qs).get(io.from(e).format());return i||null};let u2=Sc;const z4=BigInt(0);function Yd(t){return t??null}function cr(t){return t==null?null:t.toString()}class fT{constructor(e,r,n){W(this,"gasPrice");W(this,"maxFeePerGas");W(this,"maxPriorityFeePerGas");xe(this,{gasPrice:Yd(e),maxFeePerGas:Yd(r),maxPriorityFeePerGas:Yd(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:r,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:cr(e),maxFeePerGas:cr(r),maxPriorityFeePerGas:cr(n)}}}function By(t){const e={};t.to&&(e.to=t.to),t.from&&(e.from=t.from),t.data&&(e.data=ce(t.data));const r="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const i of r)!(i in t)||t[i]==null||(e[i]=ge(t[i],`request.${i}`));const n="type,nonce".split(/,/);for(const i of n)!(i in t)||t[i]==null||(e[i]=He(t[i],`request.${i}`));return t.accessList&&(e.accessList=Bu(t.accessList)),"blockTag"in t&&(e.blockTag=t.blockTag),"enableCcipRead"in t&&(e.enableCcipRead=!!t.enableCcipRead),"customData"in t&&(e.customData=t.customData),"blobVersionedHashes"in t&&t.blobVersionedHashes&&(e.blobVersionedHashes=t.blobVersionedHashes.slice()),"kzg"in t&&(e.kzg=t.kzg),"blobs"in t&&t.blobs&&(e.blobs=t.blobs.map(i=>Bk(i)?ce(i):Object.assign({},i))),e}var _o;class zQ{constructor(e,r){W(this,"provider");W(this,"number");W(this,"hash");W(this,"timestamp");W(this,"parentHash");W(this,"parentBeaconBlockRoot");W(this,"nonce");W(this,"difficulty");
349W(this,"gasLimit");W(this,"gasUsed");W(this,"stateRoot");W(this,"receiptsRoot");W(this,"blobGasUsed");W(this,"excessBlobGas");W(this,"miner");W(this,"prevRandao");W(this,"extraData");W(this,"baseFeePerGas");z(this,_o);T(this,_o,e.transactions.map(n=>typeof n!="string"?new Kg(n,r):n)),xe(this,{provider:r,hash:Yd(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:Yd(e.prevRandao),extraData:e.extraData,baseFeePerGas:Yd(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return S(this,_o).map(e=>typeof e=="string"?e:e.hash)}get prefetchedTransactions(){const e=S(this,_o).slice();return e.length===0?[]:(J(typeof e[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:r,extraData:n,gasLimit:i,gasUsed:s,hash:o,miner:a,prevRandao:l,nonce:c,number:u,parentHash:d,parentBeaconBlockRoot:h,stateRoot:p,receiptsRoot:m,timestamp:g,transactions:y}=this;return{_type:"Block",baseFeePerGas:cr(e),difficulty:cr(r),extraData:n,gasLimit:cr(i),gasUsed:cr(s),blobGasUsed:cr(this.blobGasUsed),excessBlobGas:cr(this.excessBlobGas),hash:o,miner:a,prevRandao:l,nonce:c,number:u,parentHash:d,timestamp:g,parentBeaconBlockRoot:h,stateRoot:p,receiptsRoot:m,transactions:y}}[Symbol.iterator](){let e=0;const r=this.transactions;return{next:()=>e<this.length?{value:r[e++],done:!1}:{value:void 0,done:!0}}}get length(){return S(this,_o).length}get date(){return this.timestamp==null?null:new Date(this.timestamp*1e3)}async getTransaction(e){let r;if(typeof e=="number")r=S(this,_o)[e];else{const n=e.toLowerCase();for(const i of S(this,_o))if(typeof i=="string"){if(i!==n)continue;r=i;break}else{if(i.hash!==n)continue;r=i;break}}if(r==null)throw new Error("no such tx");return typeof r=="string"?await this.provider.getTransaction(r):r}getPrefetchedTransaction(e){const r=this.prefetchedTransactions;if(typeof e=="number")return r[e];e=e.toLowerCase();for(const n of r)if(n.hash===e)return n;U(!1,"no matching transaction","indexOrHash",e)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw new Error("");return _Q(this)}}_o=new WeakMap;class Mm{constructor(e,r){W(this,"provider");W(this,"transactionHash");W(this,"blockHash");W(this,"blockNumber");W(this,"removed");W(this,"address");W(this,"data");W(this,"topics");W(this,"index");W(this,"transactionIndex");this.provider=r;const n=Object.freeze(e.topics.slice());xe(this,{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,removed:e.removed,address:e.address,data:e.data,topics:n,index:e.index,transactionIndex:e.transactionIndex})}toJSON(){const{address:e,blockHash:r,blockNumber:n,data:i,index:s,removed:o,topics:a,transactionHash:l,transactionIndex:c}=this;return{_type:"log",address:e,blockHash:r,blockNumber:n,data:i,index:s,removed:o,topics:a,transactionHash:l,transactionIndex:c}}async getBlock(){const e=await this.provider.getBlock(this.blockHash);return J(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransaction(){const e=await this.provider.getTransaction(this.transactionHash);return J(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransactionReceipt(){const e=await this.provider.getTransactionReceipt(this.transactionHash);return J(!!e,"failed to find transaction receipt","UNKNOWN_ERROR",{}),e}removedEvent(){return VQ(this)}}var dm;class _4{constructor(e,r){W(this,"provider");W(this,"to");W(this,"from");W(this,"contractAddress");W(this,"hash");W(this,"index");W(this,"blockHash");W(this,"blockNumber");W(this,"logsBloom");W(this,"gasUsed");W(this,"blobGasUsed");W(this,"cumulativeGasUsed");W(this,"gasPrice");W(this,"blobGasPrice");W(this,"type");W(this,"status");W(this,"root");z(this,dm);T(this,dm,Object.freeze(e.logs.map(i=>new Mm(i,r))));let n=z4;e.effectiveGasPrice!=null?n=e.effectiveGasPrice:e.gasPrice!=null&&(n=e.gasPrice),xe(this,{provider:r,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:n,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return S(this,dm)}toJSON(){const{to:e,from:r,contractAddress:n,hash:i,index:s,blockHash:o,blockNumber:a,logsBloom:l,logs:c,status:u,root:d}=this;return{_type:"TransactionReceipt",blockHash:o,blockNumber:a,contractAddress:n,cumulativeGasUsed:cr(this.cumulativeGasUsed),from:r,gasPrice:cr(this.gasPrice),blobGasUsed:cr(this.blobGasUsed),blobGasPrice:cr(this.blobGasPrice),gasUsed:cr(this.gasUsed),hash:i,index:s,logs:c,logs
349Bloom:l,root:d,status:u,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e<this.length?{value:this.logs[e++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){const e=await this.provider.getBlock(this.blockHash);if(e==null)throw new Error("TODO");return e}async getTransaction(){const e=await this.provider.getTransaction(this.hash);if(e==null)throw new Error("TODO");return e}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return H4(this)}reorderedEvent(e){return J(!e||e.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),V4(this,e)}}dm=new WeakMap;var Ya;const eC=class eC{constructor(e,r){W(this,"provider");W(this,"blockNumber");W(this,"blockHash");W(this,"index");W(this,"hash");W(this,"type");W(this,"to");W(this,"from");W(this,"nonce");W(this,"gasLimit");W(this,"gasPrice");W(this,"maxPriorityFeePerGas");W(this,"maxFeePerGas");W(this,"maxFeePerBlobGas");W(this,"data");W(this,"value");W(this,"chainId");W(this,"signature");W(this,"accessList");W(this,"blobVersionedHashes");z(this,Ya);this.provider=r,this.blockNumber=e.blockNumber!=null?e.blockNumber:null,this.blockHash=e.blockHash!=null?e.blockHash:null,this.hash=e.hash,this.index=e.index,this.type=e.type,this.from=e.from,this.to=e.to||null,this.gasLimit=e.gasLimit,this.nonce=e.nonce,this.data=e.data,this.value=e.value,this.gasPrice=e.gasPrice,this.maxPriorityFeePerGas=e.maxPriorityFeePerGas!=null?e.maxPriorityFeePerGas:null,this.maxFeePerGas=e.maxFeePerGas!=null?e.maxFeePerGas:null,this.maxFeePerBlobGas=e.maxFeePerBlobGas!=null?e.maxFeePerBlobGas:null,this.chainId=e.chainId,this.signature=e.signature,this.accessList=e.accessList!=null?e.accessList:null,this.blobVersionedHashes=e.blobVersionedHashes!=null?e.blobVersionedHashes:null,T(this,Ya,-1)}toJSON(){const{blockNumber:e,blockHash:r,index:n,hash:i,type:s,to:o,from:a,nonce:l,data:c,signature:u,accessList:d,blobVersionedHashes:h}=this;return{_type:"TransactionResponse",accessList:d,blockNumber:e,blockHash:r,blobVersionedHashes:h,chainId:cr(this.chainId),data:c,from:a,gasLimit:cr(this.gasLimit),gasPrice:cr(this.gasPrice),hash:i,maxFeePerGas:cr(this.maxFeePerGas),maxPriorityFeePerGas:cr(this.maxPriorityFeePerGas),maxFeePerBlobGas:cr(this.maxFeePerBlobGas),nonce:l,signature:u,to:o,index:n,type:s,value:cr(this.value)}}async getBlock(){let e=this.blockNumber;if(e==null){const n=await this.getTransaction();n&&(e=n.blockNumber)}if(e==null)return null;const r=this.provider.getBlock(e);if(r==null)throw new Error("TODO");return r}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(this.blockNumber==null){const{tx:r,blockNumber:n}=await wn({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return r==null||r.blockNumber==null?0:n-r.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(e,r){const n=e??1,i=r??0;let s=S(this,Ya),o=-1,a=s===-1;const l=async()=>{if(a)return null;const{blockNumber:h,nonce:p}=await wn({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(p<this.nonce){s=h;return}if(a)return null;const m=await this.getTransaction();if(!(m&&m.blockNumber!=null))for(o===-1&&(o=s-3,o<S(this,Ya)&&(o=S(this,Ya)));o<=h;){if(a)return null;const g=await this.provider.getBlock(o,!0);if(g==null)return;for(const y of g)if(y===this.hash)return;for(let y=0;y<g.length;y++){const v=await g.getTransaction(y);if(v.from===this.from&&v.nonce===this.nonce){if(a)return null;const w=await this.provider.getTransactionReceipt(v.hash);if(w==null||h-w.blockNumber+1<n)return;let b="replaced";v.data===this.data&&v.to===this.to&&v.value===this.value?b="repriced":v.data==="0x"&&v.from===v.to&&v.value===z4&&(b="cancelled"),J(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:b==="replaced"||b==="cancelled",reason:b,replacement:v.replaceableTransaction(s),hash:v.hash,receipt:w})}}o++}},c=h=>{if(h==null||h.status!==0)return h;J(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:h.to,from:h.from,data:""},receipt:h})},u=await this.provider.getTransactionReceipt(this.hash);if(n===0)return c(u);if(u){if(await u.confirmations()>=n)return c(u)}else if(await l(),n===0)return null;return await new Promise((h,p)=>{const m=[],g=()=>{m.forEach(v=>v())};if(m.push(()=>{a=!0}),i>0){const v=setTimeout(()=>{g(),p(ir("wait for transaction timeout","TIMEOUT"))},i);m.push(()=>{clearTimeout(v)})}const y=async v=>{if(await v.confirmations()>=n){g();try{h(c(v))}catch(w){p(w)}}};if(m.push(()=>{this.provider.off(this.hash,y)}),this.provider.on(this.hash,y),s>=0){const v=async()=>{try{await l()}catch(w){if(qr(w,"TRANSACTION_REPLACED")){g(),p(w);return}}a||this.provider.once("block",v)};m.push(()=>{this.provider.off("block",v)}),this.provider.once("block",v)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}removedEvent(){return J(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),H4(this)}reorderedEvent(e){return J(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),J(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),V4(this,e)}replaceableTransaction(e){U(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const r=new eC(this,this.provider);return T(r,Ya,e),r}};Ya=new WeakMap;let Kg=eC;function _Q(t){return{orphan:"drop-block",hash:t.hash,number:t.number}}function V4(t,e){return{orphan:"reorder-transaction",tx:t,other:e}}function H4(t){return{orphan:"drop-transaction",tx:t}}function VQ(t){return{orphan:"drop-log",log:{transactionHash:t.transactionHash,blockHash:t.blockHash,blockNumber:t.blockNumber,address:t.address,data:t.data,topics:Object.freeze(t.topics.slice()),index:t.index}}}class $k extends Mm{constructor(r,n,i){super(r,r.provider);W(this,"interface");W(this,"fragment");W(this,"args");const s=n.decodeEventLog(i,r.data,r.topics);xe(this,{args:s,fragment:i,interface:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class G4 extends Mm{constructor(r,n){super(r,r.provider);W(this,"error");xe(this,{error:n})}}var Tf;class HQ extends _4{constructor(r,n,i){super(i,n);z(this,Tf);T(this,Tf,r)}get logs(){return super.logs.map(r=>{const n=r.topics.length?S(this,Tf).getEvent(r.topics[0]):null;if(n)try{return new $k(r,S(this,Tf),n)}catch(i){return new G4(r,i)}return r})}}Tf=new WeakMap;var fm;class eA extends Kg{constructor(r,n,i){super(i,n);z(this,fm);T(this,fm,r)}async wait(r,n){const i=await super.wait(r,n);return i==null?null:new HQ(S(this,fm),this.provider,i)}}fm=new WeakMap;class W4 extends yI{constructor(r,n,i,s){super(r,n,i);W(this,"log");xe(this,{log:s})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class GQ extends W4{constructor(e,r,n,i,s){super(e,r,n,new $k(s,e.interface,i));const o=e.interface.decodeEventLog(i,this.log.data,this.log.topics);xe(this,{args:o,fragment:i})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const hT=BigInt(0);function K4(t){return t&&typeof t.call=="function"}function q4(t){return t&&typeof t.estimateGas=="function"}function ob(t){return t&&typeof t.resolveName=="function"}function Q4(t){return t&&typeof t.sendTransaction=="function"}function X4(t){if(t!=null){if(ob(t))return t;if(t.provider)return t.provider}}var hm;class WQ{constructor(e,r,n){z(this,hm);W(this,"fragment");
349if(xe(this,{fragment:r}),r.inputs.length<n.length)throw new Error("too many arguments");const i=Eu(e.runner,"resolveName"),s=ob(i)?i:null;T(this,hm,async function(){const o=await Promise.all(r.inputs.map((a,l)=>n[l]==null?null:a.walkAsync(n[l],(u,d)=>u==="address"?Array.isArray(d)?Promise.all(d.map(h=>Cn(h,s))):Cn(d,s):d)));return e.interface.encodeFilterTopics(r,o)}())}getTopicFilter(){return S(this,hm)}}hm=new WeakMap;function Eu(t,e){return t==null?null:typeof t[e]=="function"?t:t.provider&&typeof t.provider[e]=="function"?t.provider:null}function Rc(t){return t==null?null:t.provider||null}async function Y4(t,e){const r=cn.dereference(t,"overrides");U(typeof r=="object","invalid overrides parameter","overrides",t);const n=By(r);return U(n.to==null||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",n.to),U(n.data==null||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",n.data),n.from&&(n.from=n.from),n}async function KQ(t,e,r){const n=Eu(t,"resolveName"),i=ob(n)?n:null;return await Promise.all(e.map((s,o)=>s.walkAsync(r[o],(a,l)=>(l=cn.dereference(l,a),a==="address"?Cn(l,i):l))))}function qQ(t){const e=async function(o){const a=await Y4(o,["data"]);a.to=await t.getAddress(),a.from&&(a.from=await Cn(a.from,X4(t.runner)));const l=t.interface,c=ge(a.value||hT,"overrides.value")===hT,u=(a.data||"0x")==="0x";l.fallback&&!l.fallback.payable&&l.receive&&!u&&!c&&U(!1,"cannot send data to receive or send value to non-payable fallback","overrides",o),U(l.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data);const d=l.receive||l.fallback&&l.fallback.payable;return U(d||c,"cannot send value to non-payable fallback","overrides.value",a.value),U(l.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data),a},r=async function(o){const a=Eu(t.runner,"call");J(K4(a),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const l=await e(o);try{return await a.call(l)}catch(c){throw Mk(c)&&c.data?t.interface.makeError(c.data,l):c}},n=async function(o){const a=t.runner;J(Q4(a),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const l=await a.sendTransaction(await e(o)),c=Rc(t.runner);return new eA(t.interface,c,l)},i=async function(o){const a=Eu(t.runner,"estimateGas");return J(q4(a),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await a.estimateGas(await e(o))},s=async o=>await n(o);return xe(s,{_contract:t,estimateGas:i,populateTransaction:e,send:n,staticCall:r}),s}function QQ(t,e){const r=function(...c){const u=t.interface.getFunction(e,c);return J(u,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:c}}),u},n=async function(...c){const u=r(...c);let d={};if(u.inputs.length+1===c.length&&(d=await Y4(c.pop()),d.from&&(d.from=await Cn(d.from,X4(t.runner)))),u.inputs.length!==c.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const h=await KQ(t.runner,u.inputs,c);return Object.assign({},d,await wn({to:t.getAddress(),data:t.interface.encodeFunctionData(u,h)}))},i=async function(...c){const u=await a(...c);return u.length===1?u[0]:u},s=async function(...c){const u=t.runner;J(Q4(u),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const d=await u.sendTransaction(await n(...c)),h=Rc(t.runner);return new eA(t.interface,h,d)},o=async function(...c){const u=Eu(t.runner,"estimateGas");return J(q4(u),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await u.estimateGas(await n(...c))},a=async function(...c){const u=Eu(t.runner,"call");J(K4(u),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const d=await n(...c);let h="0x";try{h=await u.call(d)}catch(m){throw Mk(m)&&m.data?t.interface.makeError(m.data,d):m}const p=r(...c);return t.interface.decodeFunctionResult(p,h)},l=async(...c)=>r(...c).constant?await i(...c):await s(...c);return xe(l,{name:t.interface.getFunctionName(e),_contract:t,_key:e,getFragment:r,estimateGas:o,populateTransaction:n,send:s,staticCall:i,staticCallResult:a}),Object.defineProperty(l,"fragment",{configurable:!1,enumerable:!0,get:()=>{const c=t.interface.getFunction(e);return J(c,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),c}}),l}function XQ(t,e){const r=function(...i){const s=t.interface.getEvent(e,i);return J(s,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:i}}),s},n=function(...i){return new WQ(t,r(...i),i)};return xe(n,{name:t.interface.getEventName(e),_contract:t,_key:e,getFragment:r}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{const i=t.interface.getEvent(e);return J(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),i}}),n}const Ly=Symbol.for("_ethersInternal_contract"),J4=new WeakMap;function YQ(t,e){J4.set(t[Ly],e)}function ti(t){return J4.get(t[Ly])}function JQ(t){return t&&typeof t=="object"&&"getTopicFilter"in t&&typeof t.getTopicFilter=="function"&&t.fragment}async function tA(t,e){let r,n=null;
349if(Array.isArray(e)){const s=function(o){if(Bt(o,32))return o;const a=t.interface.getEvent(o);return U(a,"unknown fragment","name",o),a.topicHash};r=e.map(o=>o==null?null:Array.isArray(o)?o.map(s):s(o))}else e==="*"?r=[null]:typeof e=="string"?Bt(e,32)?r=[e]:(n=t.interface.getEvent(e),U(n,"unknown fragment","event",e),r=[n.topicHash]):JQ(e)?r=await e.getTopicFilter():"fragment"in e?(n=e.fragment,r=[n.topicHash]):U(!1,"unknown event name","event",e);r=r.map(s=>{if(s==null)return null;if(Array.isArray(s)){const o=Array.from(new Set(s.map(a=>a.toLowerCase())).values());return o.length===1?o[0]:(o.sort(),o)}return s.toLowerCase()});const i=r.map(s=>s==null?"null":Array.isArray(s)?s.join("|"):s).join("&");return{fragment:n,tag:i,topics:r}}async function Dp(t,e){const{subs:r}=ti(t);return r.get((await tA(t,e)).tag)||null}async function pT(t,e,r){const n=Rc(t.runner);J(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:i,tag:s,topics:o}=await tA(t,r),{addr:a,subs:l}=ti(t);let c=l.get(s);if(!c){const d={address:a||t,topics:o},h=y=>{let v=i;if(v==null)try{v=t.interface.getEvent(y.topics[0])}catch{}if(v){const w=v,b=i?t.interface.decodeEventLog(i,y.data,y.topics):[];f2(t,r,b,E=>new GQ(t,E,r,w,y))}else f2(t,r,[],w=>new W4(t,w,r,y))};let p=[];c={tag:s,listeners:[],start:()=>{p.length||p.push(n.on(d,h))},stop:async()=>{if(p.length==0)return;let y=p;p=[],await Promise.all(y),n.off(d,h)}},l.set(s,c)}return c}let d2=Promise.resolve();async function ZQ(t,e,r,n){await d2;const i=await Dp(t,e);if(!i)return!1;const s=i.listeners.length;return i.listeners=i.listeners.filter(({listener:o,once:a})=>{const l=Array.from(r);n&&l.push(n(a?null:o));try{o.call(t,...l)}catch{}return!a}),i.listeners.length===0&&(i.stop(),ti(t).subs.delete(i.tag)),s>0}async function f2(t,e,r,n){try{await d2}catch{}const i=ZQ(t,e,r,n);return d2=i,await i}const B0=["then"];var Sj;Sj=Ly;const gg=class gg{constructor(e,r,n,i){W(this,"target");W(this,"interface");W(this,"runner");W(this,"filters");W(this,Sj);W(this,"fallback");U(typeof e=="string"||n4(e),"invalid value for Contract target","target",e),n==null&&(n=null);const s=u2.from(r);xe(this,{target:e,runner:n,interface:s}),Object.defineProperty(this,Ly,{value:{}});let o,a=null,l=null;if(i){const d=Rc(n);l=new eA(this.interface,d,i)}let c=new Map;if(typeof e=="string")if(Bt(e))a=e,o=Promise.resolve(e);else{const d=Eu(n,"resolveName");if(!ob(d))throw ir("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});o=d.resolveName(e).then(h=>{if(h==null)throw ir("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return ti(this).addr=h,h})}else o=e.getAddress().then(d=>{if(d==null)throw new Error("TODO");return ti(this).addr=d,d});YQ(this,{addrPromise:o,addr:a,deployTx:l,subs:c});const u=new Proxy({},{get:(d,h,p)=>{if(typeof h=="symbol"||B0.indexOf(h)>=0)return Reflect.get(d,h,p);try{return this.getEvent(h)}catch(m){if(!qr(m,"INVALID_ARGUMENT")||m.argument!=="key")throw m}},has:(d,h)=>B0.indexOf(h)>=0?Reflect.has(d,h):Reflect.has(d,h)||this.interface.hasEvent(String(h))});return xe(this,{filters:u}),xe(this,{fallback:s.receive||s.fallback?qQ(this):null}),new Proxy(this,{get:(d,h,p)=>{if(typeof h=="symbol"||h in d||B0.indexOf(h)>=0)return Reflect.get(d,h,p);try{return d.getFunction(h)}catch(m){if(!qr(m,"INVALID_ARGUMENT")||m.argument!=="key")throw m}},has:(d,h)=>typeof h=="symbol"||h in d||B0.indexOf(h)>=0?Reflect.has(d,h):d.interface.hasFunction(h)})}connect(e){return new gg(this.target,this.interface,e)}attach(e){return new gg(e,this.interface,this.runner)}async getAddress(){return await ti(this).addrPromise}async getDeployedCode(){const e=Rc(this.runner);J(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const r=await e.getCode(await this.getAddress());return r==="0x"?null:r}async waitForDeployment(){const e=this.deploymentTransaction();
349if(e)return await e.wait(),this;if(await this.getDeployedCode()!=null)return this;const n=Rc(this.runner);return J(n!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((i,s)=>{const o=async()=>{try{if(await this.getDeployedCode()!=null)return i(this);n.once("block",o)}catch(a){s(a)}};o()})}deploymentTransaction(){return ti(this).deployTx}getFunction(e){return typeof e!="string"&&(e=e.format()),QQ(this,e)}getEvent(e){return typeof e!="string"&&(e=e.format()),XQ(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,r,n){r==null&&(r=0),n==null&&(n="latest");const{addr:i,addrPromise:s}=ti(this),o=i||await s,{fragment:a,topics:l}=await tA(this,e),c={address:o,topics:l,fromBlock:r,toBlock:n},u=Rc(this.runner);return J(u,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await u.getLogs(c)).map(d=>{let h=a;if(h==null)try{h=this.interface.getEvent(d.topics[0])}catch{}if(h)try{return new $k(d,this.interface,h)}catch(p){return new G4(d,p)}return new Mm(d,u)})}async on(e,r){const n=await pT(this,"on",e);return n.listeners.push({listener:r,once:!1}),n.start(),this}async once(e,r){const n=await pT(this,"once",e);return n.listeners.push({listener:r,once:!0}),n.start(),this}async emit(e,...r){return await f2(this,e,r,null)}async listenerCount(e){if(e){const i=await Dp(this,e);return i?i.listeners.length:0}const{subs:r}=ti(this);let n=0;for(const{listeners:i}of r.values())n+=i.length;return n}async listeners(e){if(e){const i=await Dp(this,e);return i?i.listeners.map(({listener:s})=>s):[]}const{subs:r}=ti(this);let n=[];for(const{listeners:i}of r.values())n=n.concat(i.map(({listener:s})=>s));return n}async off(e,r){const n=await Dp(this,e);if(!n)return this;if(r){const i=n.listeners.map(({listener:s})=>s).indexOf(r);i>=0&&n.listeners.splice(i,1)}return(r==null||n.listeners.length===0)&&(n.stop(),ti(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const r=await Dp(this,e);if(!r)return this;r.stop(),ti(this).subs.delete(r.tag)}else{const{subs:r}=ti(this);for(const{tag:n,stop:i}of r.values())i(),r.delete(n)}return this}async addListener(e,r){return await this.on(e,r)}async removeListener(e,r){return await this.off(e,r)}static buildClass(e){class r extends gg{constructor(i,s=null){super(i,e,s)}}return r}static from(e,r,n){return n==null&&(n=null),new this(e,r,n)}};let h2=gg;function $Q(){return h2}class ig extends $Q(){}function Gx(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):U(!1,"unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}class eX{constructor(e){W(this,"name");xe(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,r){throw new Error("unsupported coin")}async decodeAddress(e,r){throw new Error("unsupported coin")}}const Z4=new RegExp("^(ipfs)://(.*)$","i"),gT=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),Z4,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var Ja,Wc,Za,md,dw,$4;const Bd=class Bd{constructor(e,r,n){z(this,Za);W(this,"provider");W(this,"address");W(this,"name");z(this,Ja);z(this,Wc);xe(this,{provider:e,address:r,name:n}),T(this,Ja,null),T(this,Wc,new ig(r,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e))}async supportsWildcard(){return S(this,Ja)==null&&T(this,Ja,(async()=>{try{return await S(this,Wc).supportsInterface("0x9061b923")}catch(e){if(qr(e,"CALL_EXCEPTION"))return!1;throw T(this,Ja,null),e}})()),await S(this,Ja)}async getAddress(e){if(e==null&&(e=60),e===60)try{const s=await Q(this,Za,md).call(this,"addr(bytes32)");return s==null||s===Lg?null:s}catch(s){if(qr(s,"CALL_EXCEPTION"))return null;throw s}if(e>=0&&e<2147483648){let s=e+2147483648;const o=await Q(this,Za,md).call(this,"addr(bytes32,uint)",[s]);if(Bt(o,20))return Ot(o)}let r=null;for(const s of this.provider.plugins)if(s instanceof eX&&s.supportsCoinType(e)){r=s;break}if(r==null)return null;const n=await Q(this,Za,md).call(this,"addr(bytes32,uint)",[e]);if(n==null||n==="0x")return null;const i=await r.decodeAddress(e,n);if(i!=null)return i;J(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const r=await Q(this,Za,md).call(this,"text(bytes32,string)",[e]);return r==null||r==="0x"?null:r}async getContentHash(){const e=await Q(this,Za,md).call(this,"contenthash(bytes32)");if(e==null||e==="0x")return null;const r=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){const i=r[1]==="e3010170"?"ipfs":"ipns",s=parseInt(r[4],16);if(r[5].length===s*2)return`${i}://${lW("0x"+r[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&n[1].length===64)return`bzz://${n[1]}`;J(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const r=await this.getText("avatar");if(r==null)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:r});for(let n=0;n<gT.length;n++){const i=r.match(gT[n]);if(i==null)continue;const s=i[1].toLowerCase();switch(s){case"https":case"data":return e.push({type:"url",value:r}),{linkage:e,url:r};case"ipfs":{const o=Gx(r);return e.push({type:"ipfs",value:r}),e.push({type:"url",value:o}),{linkage:e,url:o}}case"erc721":case"erc1155":{const o=s==="erc721"?"tokenURI(uint256)":"uri(uint256)";e.push({type:s,value:r});const a=await this.getAddress();if(a==null)return e.push({type:"!owner",value:""}),{url:null,linkage:e};const l=(i[2]||"").split("/");if(l.length!==2)return e.push({type:`!${s}caip`,value:i[2]||""}),{url:null,linkage:e};const c=l[1],u=new ig(l[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if(s==="erc721"){const g=await u.ownerOf(c);if(a!==g)return e.push({type:"!owner",value:g}),{url:null,linkage:e};e.push({type:"owner",value:g})}else if(s==="erc1155"){const g=await u.balanceOf(a,c);
349if(!g)return e.push({type:"!balance",value:"0"}),{url:null,linkage:e};e.push({type:"balance",value:g.toString()})}let d=await u[o](c);if(d==null||d==="0x")return e.push({type:"!metadata-url",value:""}),{url:null,linkage:e};e.push({type:"metadata-url-base",value:d}),s==="erc1155"&&(d=d.replace("{id}",Ll(c,32).substring(2)),e.push({type:"metadata-url-expanded",value:d})),d.match(/^ipfs:/i)&&(d=Gx(d)),e.push({type:"metadata-url",value:d});let h={};const p=await new la(d).send();p.assertOk();try{h=p.bodyJson}catch{try{e.push({type:"!metadata",value:p.bodyText})}catch{const v=p.body;return v&&e.push({type:"!metadata",value:ce(v)}),{url:null,linkage:e}}return{url:null,linkage:e}}if(!h)return e.push({type:"!metadata",value:""}),{url:null,linkage:e};e.push({type:"metadata",value:JSON.stringify(h)});let m=h.image;if(typeof m!="string")return e.push({type:"!imageUrl",value:""}),{url:null,linkage:e};if(!m.match(/^(https:\/\/|data:)/i)){if(m.match(Z4)==null)return e.push({type:"!imageUrl-ipfs",value:m}),{url:null,linkage:e};e.push({type:"imageUrl-ipfs",value:m}),m=Gx(m)}return e.push({type:"url",value:m}),{linkage:e,url:m}}}}}catch{}return{linkage:e,url:null}}static async getEnsAddress(e){const r=await e.getNetwork(),n=r.getPlugin("org.ethers.plugins.network.Ens");return J(n,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:r}}),n.address}static async fromName(e,r){var i;let n=r;for(;;){if(n===""||n==="."||r!=="eth"&&n==="eth")return null;const s=await Q(i=Bd,dw,$4).call(i,e,n);if(s!=null){const o=new Bd(e,s,r);return n!==r&&!await o.supportsWildcard()?null:o}n=n.split(".").slice(1).join(".")}}};Ja=new WeakMap,Wc=new WeakMap,Za=new WeakSet,md=async function(e,r){r=(r||[]).slice();const n=S(this,Wc).interface;r.unshift(l2(this.name));let i=null;await this.supportsWildcard()&&(i=n.getFunction(e),J(i,"missing fragment","UNKNOWN_ERROR",{info:{funcName:e}}),r=[$q(this.name,255),n.encodeFunctionData(i,r)],e="resolve(bytes,bytes)"),r.push({enableCcipRead:!0});try{const s=await S(this,Wc)[e](...r);return i?n.decodeFunctionResult(i,s)[0]:s}catch(s){if(!qr(s,"CALL_EXCEPTION"))throw s}return null},dw=new WeakSet,$4=async function(e,r){const n=await Bd.getEnsAddress(e);try{const s=await new ig(n,["function resolver(bytes32) view returns (address)"],e).resolver(l2(r),{enableCcipRead:!0});return s===Lg?null:s}catch(i){throw i}return null},z(Bd,dw);let Uy=Bd;const mT=BigInt(0);function ot(t,e){return function(r){return r==null?e:t(r)}}function ab(t,e){return r=>{if(e&&r==null)return null;if(!Array.isArray(r))throw new Error("not an array");return r.map(n=>t(n))}}function Bm(t,e){return r=>{const n={};for(const i in t){let s=i;if(e&&i in e&&!(s in r)){for(const o of e[i])if(o in r){s=o;break}}try{const o=t[i](r[s]);o!==void 0&&(n[i]=o)}catch(o){const a=o instanceof Error?o.message:"not-an-error";J(!1,`invalid value for value.${i} (${a})`,"BAD_DATA",{value:r})}}return n}}function tX(t){switch(t){case!0:case"true":return!0;case!1:case"false":return!1}U(!1,`invalid boolean; ${JSON.stringify(t)}`,"value",t)}function Sh(t){return U(Bt(t,!0),"invalid data","value",t),t}function Wr(t){return U(Bt(t,32),"invalid hash","value",t),t}const rX=Bm({address:Ot,blockHash:Wr,blockNumber:He,data:Sh,index:He,removed:ot(tX,!1),topics:ab(Wr),transactionHash:Wr,transactionIndex:He},{index:["logIndex"]});function nX(t){return rX(t)}const iX=Bm({hash:ot(Wr),parentHash:Wr,parentBeaconBlockRoot:ot(Wr,null),number:He,timestamp:He,nonce:ot(Sh),difficulty:ge,gasLimit:ge,gasUsed:ge,stateRoot:ot(Wr,null),receiptsRoot:ot(Wr,null),blobGasUsed:ot(ge,null),excessBlobGas:ot(ge,null),miner:ot(Ot),prevRandao:ot(Wr,null),extraData:Sh,baseFeePerGas:ot(ge)},{prevRandao:["mixHash"]});function sX(t){const e=iX(t);return e.transactions=t.transactions.map(r=>typeof r=="string"?r:e8(r)),e}const oX=Bm({transactionIndex:He,blockNumber:He,transactionHash:Wr,address:Ot,topics:ab(Wr),data:Sh,index:He,blockHash:Wr},{index:["logIndex"]});function aX(t){return oX(t)}const lX=Bm({to:ot(Ot,null),from:ot(Ot,null),contractAddress:ot(Ot,null),index:He,root:ot(ce),gasUsed:ge,blobGasUsed:ot(ge,null),logsBloom:ot(Sh),blockHash:Wr,hash:Wr,logs:ab(aX),blockNumber:He,cumulativeGasUsed:ge,effectiveGasPrice:ot(ge),blobGasPrice:ot(ge,null),status:ot(He),type:ot(He,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function cX(t){return lX(t)}function e8(t){t.to&&ge(t.to)===mT&&(t.to="0x0000000000000000000000000000000000000000");const e=Bm({hash:Wr,index:ot(He,void 0),type:r=>r==="0x"||r==null?0:He(r),accessList:ot(Bu,null),blobVersionedHashes:ot(ab(Wr,!0),null),blockHash:ot(Wr,null),blockNumber:ot(He,null),transactionIndex:ot(He,null),from:Ot,gasPrice:ot(ge),maxPriorityFeePerGas:ot(ge),maxFeePerGas:ot(ge),maxFeePerBlobGas:ot(ge,null),gasLimit:ge,to:ot(Ot,null),value:ge,nonce:He,data:Sh,creates:ot(Ot,null),chainId:ot(ge,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(t);if(e.to==null&&e.creates==null&&(e.creates=rq(e)),(t.type===1||t.type===2)&&t.accessList==null&&(e.accessList=[]),t.signature?e.signature=Rs.from(t.signature):e.signature=Rs.from(t),e.chainId==null){const r=e.signature.legacyChainId;r!=null&&(e.chainId=r)}return e.blockHash&&ge(e.blockHash)===mT&&(e.blockHash=null),e}const uX="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class Lm{constructor(e){W(this,"name");xe(this,{name:e})}clone(){return new Lm(this.name)}}class lb extends Lm{constructor(r,n){r==null&&(r=0);super(`org.ethers.network.plugins.GasCost#${r||0}`);W(this,"effectiveBlock");W(this,"txBase");W(this,"txCreate");W(this,"txDataZero");W(this,"txDataNonzero");W(this,"txAccessListStorageKey");W(this,"txAccessListAddress");const i={effectiveBlock:r};function s(o,a){let l=(n||{})[o];l==null&&(l=a),U(typeof l=="number",`invalud value for ${o}`,"costs",n),i[o]=l}s("txBase",21e3),s("txCreate",32e3),s("txDataZero",4),s("txDataNonzero",16),s("txAccessListStorageKey",1900),s("txAccessListAddress",2400),xe(this,i)}clone(){return new lb(this.effectiveBlock,this)}}class cb extends Lm{constructor(r,n){super("org.ethers.plugins.network.Ens");W(this,"address");W(this,"targetNetwork");xe(this,{address:r||uX,targetNetwork:n??1})}clone(){return new cb(this.address,this.targetNetwork)}}var pm,gm;class dX extends Lm{constructor(r,n){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");z(this,pm);z(this,gm);T(this,pm,r),T(this,gm,n)}get url(){return S(this,pm)}get processFunc(){return S(this,gm)}clone(){return this}}pm=new WeakMap,gm=new WeakMap;const Wx=new Map;var Rf,jf,$a;const Ld=class Ld{constructor(e,r){z(this,Rf);z(this,jf);z(this,$a);T(this,Rf,e),T(this,jf,ge(r)),T(this,$a,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return S(this,Rf)}set name(e){T(this,Rf,e)}get chainId(){return S(this,jf)}set chainId(e){T(this,jf,ge(e,"chainId"))}matches(e){if(e==null)return!1;if(typeof e=="string"){try{return this.chainId===ge(e)}catch{}return this.name===e}if(typeof e=="number"||typeof e=="bigint"){try{return this.chainId===ge(e)}catch{}return!1}if(typeof e=="object"){if(e.chainId!=null){try{return this.chainId===ge(e.chainId)}catch{}return!1}return e.name!=null?this.name===e.name:!1}return!1}get plugins(){return Array.from(S(this,$a).values())}attachPlugin(e){if(S(this,$a).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return S(this,$a).set(e.name,e.clone()),this}getPlugin(e){return S(this,$a).get(e)||null}getPlugins(e){return this.plugins.filter(r=>r.name.split("#")[0]===e)}clone(){const e=new Ld(this.name,this.chainId);return this.plugins.forEach(r=>{e.attachPlugin(r.clone())}),e}computeIntrinsicGas(e){const r=this.getPlugin("org.ethers.plugins.network.GasCost")||new lb;let n=r.txBase;if(e.to==null&&(n+=r.txCreate),e.data)for(let i=2;i<e.data.length;i+=2)e.data.substring(i,i+2)==="00"?n+=r.txDataZero:n+=r.txDataNonzero;if(e.accessList){const i=Bu(e.accessList);for(const s in i)n+=r.txAccessListAddress+r.txAccessListStorageKey*i[s].storageKeys.length}return n}static from(e){if(fX(),e==null)return Ld.from("mainnet");if(typeof e=="number"&&(e=BigInt(e)),typeof e=="string"||typeof e=="bigint"){const r=Wx.get(e);if(r)return r();if(typeof e=="bigint")return new Ld("unknown",e);U(!1,"unknown network","network",e)}if(typeof e.clone=="function")return e.clone();if(typeof e=="object"){U(typeof e.name=="string"&&typeof e.chainId=="number","invali
349d network object name or chainId","network",e);const r=new Ld(e.name,e.chainId);return(e.ensAddress||e.ensNetwork!=null)&&r.attachPlugin(new cb(e.ensAddress,e.ensNetwork)),r}U(!1,"invalid network","network",e)}static register(e,r){typeof e=="number"&&(e=BigInt(e));const n=Wx.get(e);n&&U(!1,`conflicting network for ${JSON.stringify(n.name)}`,"nameOrChainId",e),Wx.set(e,r)}};Rf=new WeakMap,jf=new WeakMap,$a=new WeakMap;let co=Ld;function vT(t,e){const r=String(t);if(!r.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${t}`);const n=r.split(".");if(n.length===1&&n.push(""),n.length!==2)throw new Error(`invalid gwei value: ${t}`);for(;n[1].length<e;)n[1]+="0";if(n[1].length>9){let i=BigInt(n[1].substring(0,9));n[1].substring(9).match(/^0+$/)||i++,n[1]=i.toString()}return BigInt(n[0]+n[1])}function yT(t){return new dX(t,async(e,r,n)=>{n.setHeader("User-Agent","ethers");let i;try{const[s,o]=await Promise.all([n.send(),e()]);i=s;const a=i.bodyJson.standard;return{gasPrice:o.gasPrice,maxFeePerGas:vT(a.maxFee,9),maxPriorityFeePerGas:vT(a.maxPriorityFee,9)}}catch(s){J(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:i,error:s})}})}let wT=!1;function fX(){if(wT)return;wT=!0;function t(e,r,n){const i=function(){const s=new co(e,r);return n.ensNetwork!=null&&s.attachPlugin(new cb(null,n.ensNetwork)),s.attachPlugin(new lb),(n.plugins||[]).forEach(o=>{s.attachPlugin(o)}),s};co.register(e,i),co.register(r,i),n.altNames&&n.altNames.forEach(s=>{co.register(s,i)})}t("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),t("ropsten",3,{ensNetwork:3}),t("rinkeby",4,{ensNetwork:4}),t("goerli",5,{ensNetwork:5}),t("kovan",42,{ensNetwork:42}),t("sepolia",11155111,{ensNetwork:11155111}),t("holesky",17e3,{ensNetwork:17e3}),t("classic",61,{}),t("classicKotti",6,{}),t("arbitrum",42161,{ensNetwork:1}),t("arbitrum-goerli",421613,{}),t("arbitrum-sepolia",421614,{}),t("base",8453,{ensNetwork:1}),t("base-goerli",84531,{}),t("base-sepolia",84532,{}),t("bnb",56,{ensNetwork:1}),t("bnbt",97,{}),t("linea",59144,{ensNetwork:1}),t("linea-goerli",59140,{}),t("linea-sepolia",59141,{}),t("matic",137,{ensNetwork:1,plugins:[yT("https://gasstation.polygon.technology/v2")]}),t("matic-amoy",80002,{}),t("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[yT("https://gasstation-testnet.polygon.technology/v2")]}),t("optimism",10,{ensNetwork:1,plugins:[]}),t("optimism-goerli",420,{}),t("optimism-sepolia",11155420,{}),t("xdai",100,{ensNetwork:1})}function p2(t){return JSON.parse(JSON.stringify(t))}var Vo,Ri,el,Ys,Ff,jv;class hX{constructor(e){z(this,Ff);z(this,Vo);z(this,Ri);z(this,el);z(this,Ys);T(this,Vo,e),T(this,Ri,null),T(this,el,4e3),T(this,Ys,-2)}get pollingInterval(){return S(this,el)}set pollingInterval(e){T(this,el,e)}start(){S(this,Ri)||(T(this,Ri,S(this,Vo)._setTimeout(Q(this,Ff,jv).bind(this),S(this,el))),Q(this,Ff,jv).call(this))}stop(){S(this,Ri)&&(S(this,Vo)._clearTimeout(S(this,Ri)),T(this,Ri,null))}pause(e){this.stop(),e&&T(this,Ys,-2)}resume(){this.start()}}Vo=new WeakMap,Ri=new WeakMap,el=new WeakMap,Ys=new WeakMap,Ff=new WeakSet,jv=async function(){try{const e=await S(this,Vo).getBlockNumber();if(S(this,Ys)===-2){T(this,Ys,e);return}if(e!==S(this,Ys)){for(let r=S(this,Ys)+1;r<=e;r++){if(S(this,Ri)==null)return;await S(this,Vo).emit("block",r)}T(this,Ys,e)}}catch{}S(this,Ri)!=null&&T(this,Ri,S(this,Vo)._setTimeout(Q(this,Ff,jv).bind(this),S(this,el)))};var Kc,qc,tl;class rA{constructor(e){z(this,Kc);z(this,qc);z(this,tl);T(this,Kc,e),T(this,tl,!1),T(this,qc,r=>{this._poll(r,S(this,Kc))})}async _poll(e,r){throw new Error("sub-classes must override this")}start(){S(this,tl)||(T(this,tl,!0),S(this,qc).call(this,-2),S(this,Kc).on("block",S(this,qc)))}stop(){S(this,tl)&&(T(this,tl,!1),S(this,Kc).off("block",S(this,qc)))}pause(e){this.stop()}resume(){this.start()}}Kc=new WeakMap,qc=new WeakMap,tl=new WeakMap;var Of,Ho;class pX extends rA{constructor(r,n){super(r);z(this,Of);z(this,Ho);T(this,Of,n),T(this,Ho,-2)}pause(r){r&&T(this,Ho,-2),super.pause(r)}async _poll(r,n){const i=await n.getBlock(S(this,Of));i!=null&&(S(this,Ho)===-2?T(this,Ho,i.number):i.number>S(this,Ho)&&(n.emit(S(this,Of),i.number),T(this,Ho,i.number)))}}Of=new WeakMap,Ho=new WeakMap;var fw;class gX extends rA{constructor(r,n){super(r);z(this,fw);T(this,fw,p2(n))}async _poll(r,n){throw new Error("@TODO")}}fw=new WeakMap;var Df;class mX extends rA{constructor(r,n){super(r);z(this,Df);T(this,Df,n)}async _poll(r,n){const i=await n.getTransactionReceipt(S(this,Df));i&&n.emit(S(this,Df),i)}}Df=new WeakMap;var Go,If,Mf,rl,ji,hw,t8;class nA{constructor(e,r){z(this,hw);z(this,Go);z(this,If);z(this,Mf);z(this,rl);z(this,ji);T(this,Go,e),T(this,If,p2(r)),T(this,Mf,Q(this,hw,t8).bind(this)),T(this,rl,!1),T(this,ji,-2)}start(){S(this,rl)||(T(this,rl,!0),S(this,ji)===-2&&S(this,Go).getBlockNumber().then(e=>{T(this,ji,e)}),S(this,Go).on("block",S(this,Mf)))}stop(){S(this,rl)&&(T(this,rl,!1),S(this,Go).off("block",S(this,Mf)))}pause(e){this.stop(),e&&T(this,ji,-2)}resume(){this.start()}}Go=new WeakMap,If=new WeakMap,Mf=new WeakMap,rl=new WeakMap,ji=new WeakMap,hw=new WeakSet,t8=async function(e){if(S(this,ji)===-2)return;const r=p2(S(this,If));r.fromBlock=S(this,ji)+1,r.toBlock=e;const n=await S(this,Go).getLogs(r);if(n.length===0){S(this,ji)<e-60&&T(this,ji,e-60);return}for(const i of n)S(this,Go).emit(S(this,If),i),T(this,ji,i.blockNumber)};const vX=BigInt(2),yX=10;function L0(t){return t&&typeof t.then=="function"}function Fv(t,e){return t+":"+JSON.stringify(e,(r,n)=>{if(n==null)return"null";if(typeof n=="bigint")return`bigint:${n.toString()}`;if(typeof n=="string")return n.toLowerCase();if(typeof n=="object"&&!Array.isArray(n)){const i=Object.keys(n);return i.sort(),i.reduce((s,o)=>(s[o]=n[o],s),{})}return n})}class r8{constructor(e){W(this,"name");xe(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function wX(t){return JSON.parse(JSON.stringify(t))}function g2(t){return t=Array.from(new Set(t).values()),t.sort(),t}async function Kx(t,e){if(t==null)throw new Error("invalid event");
349if(Array.isArray(t)&&(t={topics:t}),typeof t=="string")switch(t){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:t,tag:t}}if(Bt(t,32)){const r=t.toLowerCase();return{type:"transaction",tag:Fv("tx",{hash:r}),hash:r}}if(t.orphan){const r=t;return{type:"orphan",tag:Fv("orphan",r),filter:wX(r)}}if(t.address||t.topics){const r=t,n={topics:(r.topics||[]).map(i=>i==null?null:Array.isArray(i)?g2(i.map(s=>s.toLowerCase())):i.toLowerCase())};if(r.address){const i=[],s=[],o=a=>{Bt(a)?i.push(a):s.push((async()=>{i.push(await Cn(a,e))})())};Array.isArray(r.address)?r.address.forEach(o):o(r.address),s.length&&await Promise.all(s),n.address=g2(i.map(a=>a.toLowerCase()))}return{filter:n,tag:Fv("event",n),type:"event"}}U(!1,"unknown ProviderEvent","event",t)}function qx(){return new Date().getTime()}const bX={cacheTimeout:250,pollingInterval:4e3};var sn,nl,on,Bf,si,Qc,il,Wo,mm,Fi,Lf,Uf,Ke,$n,m2,v2,Ip,y2,Mp,Ov;class xX{constructor(e,r){z(this,Ke);z(this,sn);z(this,nl);z(this,on);z(this,Bf);z(this,si);z(this,Qc);z(this,il);z(this,Wo);z(this,mm);z(this,Fi);z(this,Lf);z(this,Uf);if(T(this,Uf,Object.assign({},bX,r||{})),e==="any")T(this,Qc,!0),T(this,si,null);else if(e){const n=co.from(e);T(this,Qc,!1),T(this,si,Promise.resolve(n)),setTimeout(()=>{this.emit("network",n,null)},0)}else T(this,Qc,!1),T(this,si,null);T(this,Wo,-1),T(this,il,new Map),T(this,sn,new Map),T(this,nl,new Map),T(this,on,null),T(this,Bf,!1),T(this,mm,1),T(this,Fi,new Map),T(this,Lf,!1)}get pollingInterval(){return S(this,Uf).pollingInterval}get provider(){return this}get plugins(){return Array.from(S(this,nl).values())}attachPlugin(e){if(S(this,nl).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return S(this,nl).set(e.name,e.connect(this)),this}getPlugin(e){return S(this,nl).get(e)||null}get disableCcipRead(){return S(this,Lf)}set disableCcipRead(e){T(this,Lf,!!e)}async ccipReadFetch(e,r,n){if(this.disableCcipRead||n.length===0||e.to==null)return null;const i=e.to.toLowerCase(),s=r.toLowerCase(),o=[];for(let a=0;a<n.length;a++){const l=n[a],c=l.replace("{sender}",i).replace("{data}",s),u=new la(c);l.indexOf("{data}")===-1&&(u.body={data:s,sender:i}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:u,index:a,urls:n});let d="unknown error",h;try{h=await u.send()}catch(p){o.push(p.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:u,result:{error:p}});continue}try{const p=h.bodyJson;if(p.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:u,result:p}),p.data;p.message&&(d=p.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:u,result:p})}catch{}J(h.statusCode<400||h.statusCode>=500,`response not found during CCIP fetch: ${d}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:l,errorMessage:d}}),o.push(d)}J(!1,`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:o}})}_wrapBlock(e,r){return new zQ(sX(e),this)}_wrapLog(e,r){return new Mm(nX(e),this)}_wrapTransactionReceipt(e,r){return new _4(cX(e),this)}_wrapTransactionResponse(e,r){return new Kg(e8(e),this)}_detectNetwork(){J(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){J(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=He(await Q(this,Ke,$n).call(this,{method:"getBlockNumber"}),"%response");return S(this,Wo)>=0&&T(this,Wo,e),e}_getAddress(e){return Cn(e,this)}_getBlockTag(e){if(e==null)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}if(Bt(e))return Bt(e,32)?e:jd(e);if(typeof e=="bigint"&&(e=He(e,"blockTag")),typeof e=="number")return e>=0?jd(e):S(this,Wo)>=0?jd(S(this,Wo)+e):this.getBlockNumber().then(r=>jd(r+e));U(!1,"invalid blockTag","blockTag",e)}_getFilter(e){const r=(e.topics||[]).map(l=>l==null?null:Array.isArray(l)?g2(l.map(c=>c.toLowerCase())):l.toLowerCase()),n="blockHash"in e?e.blockHash:void 0,i=(l,c,u)=>{let d;switch(l.length){case 0:break;case 1:d=l[0];break;default:l.sort(),d=l}if(n&&(c!=null||u!=null))throw new Error("invalid filter");const h={};return d&&(h.address=d),r.length&&(h.topics=r),c&&(h.fromBlock=c),u&&(h.toBlock=u),n&&(h.blockHash=n),h};let s=[];if(e.address)if(Array.isArray(e.address))for(const l of e.address)s.push(this._getAddress(l));else s.push(this._getAddress(e.address));let o;"fromBlock"in e&&(o=this._getBlockTag(e.fromBlock));let a;return"toBlock"in e&&(a=this._getBlockTag(e.toBlock)),s.filter(l=>typeof l!="string").length||o!=null&&typeof o!="string"||a!=null&&typeof a!="string"?Promise.all([Promise.all(s),o,a]).then(l=>i(l[0],l[1],l[2])):i(s,o,a)}_getTransactionRequest(e){const r=By(e),n=[];if(["to","from"].forEach(i=>
349{if(r[i]==null)return;const s=Cn(r[i],this);L0(s)?n.push(async function(){r[i]=await s}()):r[i]=s}),r.blockTag!=null){const i=this._getBlockTag(r.blockTag);L0(i)?n.push(async function(){r.blockTag=await i}()):r.blockTag=i}return n.length?async function(){return await Promise.all(n),r}():r}async getNetwork(){if(S(this,si)==null){const i=(async()=>{try{const s=await this._detectNetwork();return this.emit("network",s,null),s}catch(s){throw S(this,si)===i&&T(this,si,null),s}})();return T(this,si,i),(await i).clone()}const e=S(this,si),[r,n]=await Promise.all([e,this._detectNetwork()]);return r.chainId!==n.chainId&&(S(this,Qc)?(this.emit("network",n,r),S(this,si)===e&&T(this,si,Promise.resolve(n))):J(!1,`network changed: ${r.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),r.clone()}async getFeeData(){const e=await this.getNetwork(),r=async()=>{const{_block:i,gasPrice:s,priorityFee:o}=await wn({_block:Q(this,Ke,y2).call(this,"latest",!1),gasPrice:(async()=>{try{const u=await Q(this,Ke,$n).call(this,{method:"getGasPrice"});return ge(u,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const u=await Q(this,Ke,$n).call(this,{method:"getPriorityFee"});return ge(u,"%response")}catch{}return null})()});let a=null,l=null;const c=this._wrapBlock(i,e);return c&&c.baseFeePerGas&&(l=o??BigInt("1000000000"),a=c.baseFeePerGas*vX+l),new fT(s,a,l)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const i=new la(n.url),s=await n.processFunc(r,this,i);return new fT(s.gasPrice,s.maxFeePerGas,s.maxPriorityFeePerGas)}return await r()}async estimateGas(e){let r=this._getTransactionRequest(e);return L0(r)&&(r=await r),ge(await Q(this,Ke,$n).call(this,{method:"estimateGas",transaction:r}),"%response")}async call(e){const{tx:r,blockTag:n}=await wn({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await Q(this,Ke,v2).call(this,Q(this,Ke,m2).call(this,r,n,e.enableCcipRead?0:-1))}async getBalance(e,r){return ge(await Q(this,Ke,Ip).call(this,{method:"getBalance"},e,r),"%response")}async getTransactionCount(e,r){return He(await Q(this,Ke,Ip).call(this,{method:"getTransactionCount"},e,r),"%response")}async getCode(e,r){return ce(await Q(this,Ke,Ip).call(this,{method:"getCode"},e,r))}async getStorage(e,r,n){const i=ge(r,"position");return ce(await Q(this,Ke,Ip).call(this,{method:"getStorage",position:i},e,n))}async broadcastTransaction(e){const{blockNumber:r,hash:n,network:i}=await wn({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),s=Iy.from(e);if(s.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(s,i).replaceableTransaction(r)}async getBlock(e,r){const{network:n,params:i}=await wn({network:this.getNetwork(),params:Q(this,Ke,y2).call(this,e,!!r)});return i==null?null:this._wrapBlock(i,n)}async getTransaction(e){const{network:r,params:n}=await wn({network:this.getNetwork(),params:Q(this,Ke,$n).call(this,{method:"getTransaction",hash:e})});return n==null?null:this._wrapTransactionResponse(n,r)}async getTransactionReceipt(e){const{network:r,params:n}=await wn({network:this.getNetwork(),params:Q(this,Ke,$n).call(this,{method:"getTransactionReceipt",hash:e})});if(n==null)return null;if(n.gasPrice==null&&n.effectiveGasPrice==null){const i=await Q(this,Ke,$n).call(this,{method:"getTransaction",hash:e});if(i==null)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=i.gasPrice}return this._wrapTransactionReceipt(n,r)}async getTransactionResult(e){const{result:r}=await wn({network:this.getNetwork(),result:Q(this,Ke,$n).call(this,{method:"getTransactionResult",hash:e})});return r==null?null:ce(r)}async getLogs(e){let r=this._getFilter(e);L0(r)&&(r=await r);const{network:n,params:i}=await wn({network:this.getNetwork(),params:Q(this,Ke,$n).call(this,{method:"getLogs",filter:r})});return i.map(s=>this._wrapLog(s,n))}_getProvider(e){J(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await Uy.fromName(this,e)}async getAvatar(e){const r=await this.getResolver(e);return r?await r.getAvatar():null}async resolveName(e){const r=await this.getResolver(e);return r?await r.getAddress():null}async lookupAddress(e){e=Ot(e);const r=l2(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await Uy.getEnsAddress(this),s=await new ig(n,["function resolver(bytes32) view returns (address)"],this).resolver(r);if(s==null||s===Lg)return null;const a=await new ig(s,["function name(bytes32) view returns (string)"],this).name(r);return await this.resolveName(a)!==e?null:a}catch(n){if(qr(n,"BAD_DATA")&&n.value==="0x"||qr(n,"CALL_EXCEPTION"))return null;throw n}return null}async waitForTransaction(e,r,n){const i=r??1;return i===0?this.getTransactionReceipt(e):new Promise(async(s,o)=>{let a=null;const l=async c=>{try{const u=await this.getTransactionReceipt(e);
349if(u!=null&&c-u.blockNumber+1>=i){s(u),a&&(clearTimeout(a),a=null);return}}catch(u){console.log("EEE",u)}this.once("block",l)};n!=null&&(a=setTimeout(()=>{a!=null&&(a=null,this.off("block",l),o(ir("timeout","TIMEOUT",{reason:"timeout"})))},n)),l(await this.getBlockNumber())})}async waitForBlock(e){J(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const r=S(this,Fi).get(e);r&&(r.timer&&clearTimeout(r.timer),S(this,Fi).delete(e))}_setTimeout(e,r){r==null&&(r=0);const n=ma(this,mm)._++,i=()=>{S(this,Fi).delete(n),e()};if(this.paused)S(this,Fi).set(n,{timer:null,func:i,time:r});else{const s=setTimeout(i,r);S(this,Fi).set(n,{timer:s,func:i,time:qx()})}return n}_forEachSubscriber(e){for(const r of S(this,sn).values())e(r.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new r8(e.type);case"block":{const r=new hX(this);return r.pollingInterval=this.pollingInterval,r}case"safe":case"finalized":return new pX(this,e.type);case"event":return new nA(this,e.filter);case"transaction":return new mX(this,e.hash);case"orphan":return new gX(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,r){for(const n of S(this,sn).values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=r,n.started&&r.start(),S(this,on)!=null&&r.pause(S(this,on));break}}async on(e,r){const n=await Q(this,Ke,Ov).call(this,e);return n.listeners.push({listener:r,once:!1}),n.started||(n.subscriber.start(),n.started=!0,S(this,on)!=null&&n.subscriber.pause(S(this,on))),this}async once(e,r){const n=await Q(this,Ke,Ov).call(this,e);return n.listeners.push({listener:r,once:!0}),n.started||(n.subscriber.start(),n.started=!0,S(this,on)!=null&&n.subscriber.pause(S(this,on))),this}async emit(e,...r){const n=await Q(this,Ke,Mp).call(this,e,r);if(!n||n.listeners.length===0)return!1;const i=n.listeners.length;return n.listeners=n.listeners.filter(({listener:s,once:o})=>{const a=new yI(this,o?null:s,e);try{s.call(this,...r,a)}catch{}return!o}),n.listeners.length===0&&(n.started&&n.subscriber.stop(),S(this,sn).delete(n.tag)),i>0}async listenerCount(e){if(e){const n=await Q(this,Ke,Mp).call(this,e);return n?n.listeners.length:0}let r=0;for(const{listeners:n}of S(this,sn).values())r+=n.length;return r}async listeners(e){if(e){const n=await Q(this,Ke,Mp).call(this,e);return n?n.listeners.map(({listener:i})=>i):[]}let r=[];for(const{listeners:n}of S(this,sn).values())r=r.concat(n.map(({listener:i})=>i));return r}async off(e,r){const n=await Q(this,Ke,Mp).call(this,e);if(!n)return this;if(r){const i=n.listeners.map(({listener:s})=>s).indexOf(r);i>=0&&n.listeners.splice(i,1)}return(!r||n.listeners.length===0)&&(n.started&&n.subscriber.stop(),S(this,sn).delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:r,started:n,subscriber:i}=await Q(this,Ke,Ov).call(this,e);n&&i.stop(),S(this,sn).delete(r)}else for(const[r,{started:n,subscriber:i}]of S(this,sn))n&&i.stop(),S(this,sn).delete(r);return this}async addListener(e,r){return await this.on(e,r)}async removeListener(e,r){return this.off(e,r)}get destroyed(){return S(this,Bf)}destroy(){this.removeAllListeners();for(const e of S(this,Fi).keys())this._clearTimeout(e);T(this,Bf,!0)}get paused(){return S(this,on)!=null}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(T(this,Wo,-1),S(this,on)!=null){if(S(this,on)==!!e)return;J(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(r=>r.pause(e)),T(this,on,!!e);for(const r of S(this,Fi).values())r.timer&&clearTimeout(r.timer),r.time=qx()-r.time}resume(){if(S(this,on)!=null){this._forEachSubscriber(e=>e.resume()),T(this,on,null);for(const e of S(this,Fi).values()){let r=e.time;r<0&&(r=0),e.time=qx(),setTimeout(e.func,r)}}}}sn=new WeakMap,nl=new WeakMap,on=new WeakMap,Bf=new WeakMap,si=new WeakMap,Qc=new WeakMap,il=new WeakMap,Wo=new WeakMap,mm=new WeakMap,Fi=new WeakMap,Lf=new WeakMap,Uf=new WeakMap,Ke=new WeakSet,$n=async function(e){const r=S(this,Uf).cacheTimeout;if(r<0)return await this._perform(e);const n=Fv(e.method,e);let i=S(this,il).get(n);
349return i||(i=this._perform(e),S(this,il).set(n,i),setTimeout(()=>{S(this,il).get(n)===i&&S(this,il).delete(n)},r)),await i},m2=async function(e,r,n){J(n<yX,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},e,{blockTag:r,enableCcipRead:!0})});const i=By(e);try{return ce(await this._perform({method:"call",transaction:i,blockTag:r}))}catch(s){if(!this.disableCcipRead&&Mk(s)&&s.data&&n>=0&&r==="latest"&&i.to!=null&&sr(s.data,0,4)==="0x556f1830"){const o=s.data,a=await Cn(i.to,this);let l;try{l=CX(sr(s.data,4))}catch(d){J(!1,d.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:i,info:{data:o}})}J(l.sender.toLowerCase()===a.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:o,reason:"OffchainLookup",transaction:i,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:l.errorArgs}});const c=await this.ccipReadFetch(i,l.calldata,l.urls);J(c!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:i,info:{data:s.data,errorArgs:l.errorArgs}});const u={to:a,data:pr([l.selector,AX([c,l.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:u});try{const d=await Q(this,Ke,m2).call(this,u,r,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},u),result:d}),d}catch(d){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},u),error:d}),d}}throw s}},v2=async function(e){const{value:r}=await wn({network:this.getNetwork(),value:e});return r},Ip=async function(e,r,n){let i=this._getAddress(r),s=this._getBlockTag(n);return(typeof i!="string"||typeof s!="string")&&([i,s]=await Promise.all([i,s])),await Q(this,Ke,v2).call(this,Q(this,Ke,$n).call(this,Object.assign(e,{address:i,blockTag:s})))},y2=async function(e,r){if(Bt(e,32))return await Q(this,Ke,$n).call(this,{method:"getBlock",blockHash:e,includeTransactions:r});let n=this._getBlockTag(e);return typeof n!="string"&&(n=await n),await Q(this,Ke,$n).call(this,{method:"getBlock",blockTag:n,includeTransactions:r})},Mp=async function(e,r){let n=await Kx(e,this);return n.type==="event"&&r&&r.length>0&&r[0].removed===!0&&(n=await Kx({orphan:"drop-log",log:r[0]},this)),S(this,sn).get(n.tag)||null},Ov=async function(e){const r=await Kx(e,this),n=r.tag;let i=S(this,sn).get(n);return i||(i={subscriber:this._getSubscriber(r),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},S(this,sn).set(n,i)),i};function SX(t,e){try{const r=w2(t,e);if(r)return Py(r)}catch{}return null}function w2(t,e){if(t==="0x")return null;try{const r=He(sr(t,e,e+32)),n=He(sr(t,r,r+32));return sr(t,r+32,r+32+n)}catch{}return null}function bT(t){const e=kn(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function EX(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}const kX=new Uint8Array([]);function AX(t){const e=[];let r=0;for(let n=0;n<t.length;n++)e.push(kX),r+=32;for(let n=0;n<t.length;n++){const i=at(t[n]);e[n]=bT(r),e.push(bT(i.length)),e.push(EX(i)),r+=32+Math.ceil(i.length/32)*32}return pr(e)}const xT="0x0000000000000000000000000000000000000000000000000000000000000000";function CX(t){const e={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};J(qd(t)>=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const r=sr(t,0,32);J(sr(r,0,12)===sr(xT,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=sr(r,12);try{const n=[],i=He(sr(t,32,64)),s=He(sr(t,i,i+32)),o=sr(t,i+32);for(let a=0;a<s;a++){const l=SX(o,a*32);if(l==null)throw new Error("abort");n.push(l)}e.urls=n}catch{J(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{const n=w2(t,64);if(n==null)throw new Error("abort");e.calldata=n}catch{J(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}J(sr(t,100,128)===sr(xT,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),e.selector=sr(t,96,100);try{const n=w2(t,128);if(n==null)throw new Error("abort");e.extraData=n}catch{J(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}
349return e.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map(n=>e[n]),e}function td(t,e){if(t.provider)return t.provider;J(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function ST(t,e){let r=By(e);if(r.to!=null&&(r.to=Cn(r.to,t)),r.from!=null){const n=r.from;r.from=Promise.all([t.getAddress(),Cn(n,t)]).then(([i,s])=>(U(i.toLowerCase()===s.toLowerCase(),"transaction from mismatch","tx.from",s),i))}else r.from=t.getAddress();return await wn(r)}class NX{constructor(e){W(this,"provider");xe(this,{provider:e||null})}async getNonce(e){return td(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await ST(this,e)}async populateTransaction(e){const r=td(this,"populateTransaction"),n=await ST(this,e);n.nonce==null&&(n.nonce=await this.getNonce("pending")),n.gasLimit==null&&(n.gasLimit=await this.estimateGas(n));const i=await this.provider.getNetwork();if(n.chainId!=null){const o=ge(n.chainId);U(o===i.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=i.chainId;const s=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||s)?U(!1,"eip-1559 transaction do not support gasPrice","tx",e):(n.type===0||n.type===1)&&s&&U(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1){const o=await r.getFeeData();J(o.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),n.gasPrice==null&&(n.gasPrice=o.gasPrice)}else{const o=await r.getFeeData();if(n.type==null)if(o.maxFeePerGas!=null&&o.maxPriorityFeePerGas!=null)if(n.type=2,n.gasPrice!=null){const a=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=a,n.maxPriorityFeePerGas=a}else n.maxFeePerGas==null&&(n.maxFeePerGas=o.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=o.maxPriorityFeePerGas);else o.gasPrice!=null?(J(!s,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=o.gasPrice),n.type=0):J(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else(n.type===2||n.type===3)&&(n.maxFeePerGas==null&&(n.maxFeePerGas=o.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=o.maxPriorityFeePerGas))}return await wn(n)}async estimateGas(e){return td(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return td(this,"call").call(await this.populateCall(e))}async resolveName(e){return await td(this,"resolveName").resolveName(e)}async sendTransaction(e){const r=td(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const i=Iy.from(n);return await r.broadcastTransaction(await this.signTransaction(i))}}function PX(t){return JSON.parse(JSON.stringify(t))}var gn,Js,Xc,sl,Yc,zf,Hl,b2,x2;class n8{constructor(e){z(this,Hl);z(this,gn);z(this,Js);z(this,Xc);z(this,sl);z(this,Yc);z(this,zf);T(this,gn,e),T(this,Js,null),T(this,Xc,Q(this,Hl,b2).bind(this)),T(this,sl,!1),T(this,Yc,null),T(this,zf,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,r){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}start(){S(this,sl)||(T(this,sl,!0),Q(this,Hl,b2).call(this,-2))}stop(){S(this,sl)&&(T(this,sl,!1),T(this,zf,!0),Q(this,Hl,x2).call(this),S(this,gn).off("block",S(this,Xc)))}pause(e){e&&Q(this,Hl,x2).call(this),S(this,gn).off("block",S(this,Xc))}resume(){this.start()}}gn=new WeakMap,Js=new WeakMap,Xc=new WeakMap,sl=new WeakMap,Yc=new WeakMap,zf=new WeakMap,Hl=new WeakSet,b2=async function(e){try{S(this,Js)==null&&T(this,Js,this._subscribe(S(this,gn)));let r=null;try{r=await S(this,Js)}catch(s){if(!qr(s,"UNSUPPORTED_OPERATION")||s.operation!=="eth_newFilter")throw s}if(r==null){T(this,Js,null),S(this,gn)._recoverSubscriber(this,this._recover(S(this,gn)));return}const n=await S(this,gn).getNetwork();if(S(this,Yc)||T(this,Yc,n),S(this,Yc).chainId!==n.chainId)throw new Error("chaid changed");if(S(this,zf))return;const i=await S(this,gn).send("eth_getFilterChanges",[r]);await this._emitResults(S(this,gn),i)}catch(r){console.log("@TODO",r)}S(this,gn).once("block",S(this,Xc))},x2=function(){const e=S(this,Js);e&&(T(this,Js,null),e.then(r=>{S(this,gn).destroyed||S(this,gn).send("eth_uninstallFilter",[r])}))};var Jc;class TX extends n8{constructor(r,n){super(r);z(this,Jc);T(this,Jc,PX(n))}_recover(r){return new nA(r,S(this,Jc))}async _subscribe(r){return await r.send("eth_newFilter",[S(this,Jc)])}async _emitResults(r,n){for(const i of n)r.emit(S(this,Jc),r._wrapLog(i,r._network))}}Jc=new WeakMap;class RX extends n8{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,r){for(const n of r)e.emit("pending",n)}}const jX="bigint,boolean,function,number,string,symbol".split(/,/g);function Dv(t){if(t==null||jX.indexOf(typeof t)>=0||typeof t.getAddress=="function")return t;if(Array.isArray(t))return t.map(Dv);if(typeof t=="object")return Object.keys(t).reduce((e,r)=>(e[r]=t[r],e),{});throw new Error(`should not happen: ${t} (${typeof t})`)}function FX(t){return new Promise(e=>{setTimeout(e,t)})}function rd(t){return t&&t.toLowerCase()}function ET(t){return t&&typeof t.pollingInterval=="number"}const i8={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class Qx extends NX{constructor(r,n){super(r);W(this,"address");n=Ot(n),xe(this,{address:n})}
349connect(r){J(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(r){return await this.populateCall(r)}async sendUncheckedTransaction(r){const n=Dv(r),i=[];if(n.from){const o=n.from;i.push((async()=>{const a=await Cn(o,this.provider);U(a!=null&&a.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",r),n.from=a})())}else n.from=this.address;if(n.gasLimit==null&&i.push((async()=>{n.gasLimit=await this.provider.estimateGas({...n,from:this.address})})()),n.to!=null){const o=n.to;i.push((async()=>{n.to=await Cn(o,this.provider)})())}i.length&&await Promise.all(i);const s=this.provider.getRpcTransaction(n);return this.provider.send("eth_sendTransaction",[s])}async sendTransaction(r){const n=await this.provider.getBlockNumber(),i=await this.sendUncheckedTransaction(r);return await new Promise((s,o)=>{const a=[1e3,100];let l=0;const c=async()=>{try{const u=await this.provider.getTransaction(i);if(u!=null){s(u.replaceableTransaction(n));return}}catch(u){if(qr(u,"CANCELLED")||qr(u,"BAD_DATA")||qr(u,"NETWORK_ERROR")||qr(u,"UNSUPPORTED_OPERATION")){u.info==null&&(u.info={}),u.info.sendTransactionHash=i,o(u);return}if(qr(u,"INVALID_ARGUMENT")&&(l++,u.info==null&&(u.info={}),u.info.sendTransactionHash=i,l>10)){o(u);return}this.provider.emit("error",ir("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:u}))}this.provider._setTimeout(()=>{c()},a.pop()||4e3)};c()})}async signTransaction(r){const n=Dv(r);if(n.from){const s=await Cn(n.from,this.provider);U(s!=null&&s.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",r),n.from=s}else n.from=this.address;const i=this.provider.getRpcTransaction(n);return await this.provider.send("eth_signTransaction",[i])}async signMessage(r){const n=typeof r=="string"?ho(r):r;return await this.provider.send("personal_sign",[ce(n),this.address.toLowerCase()])}async signTypedData(r,n,i){const s=Dv(i),o=await My.resolveNames(r,n,s,async a=>{const l=await Cn(a);return U(l!=null,"TypedData does not support null address","value",a),l});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(My.getPayload(o.domain,n,o.value))])}async unlock(r){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),r,null])}async _legacySignMessage(r){const n=typeof r=="string"?ho(r):r;return await this.provider.send("eth_sign",[this.address.toLowerCase(),ce(n)])}}var Zc,_f,Ko,Zs,vs,Oi,Mn,vm,S2;class OX extends xX{constructor(r,n){super(r,n);z(this,vm);z(this,Zc);z(this,_f);z(this,Ko);z(this,Zs);z(this,vs);z(this,Oi);z(this,Mn);T(this,_f,1),T(this,Zc,Object.assign({},i8,n||{})),T(this,Ko,[]),T(this,Zs,null),T(this,Oi,null),T(this,Mn,null);{let s=null;const o=new Promise(a=>{s=a});T(this,vs,{promise:o,resolve:s})}const i=this._getOption("staticNetwork");typeof i=="boolean"?(U(!i||r!=="any","staticNetwork cannot be used on special network 'any'","options",n),i&&r!=null&&T(this,Oi,co.from(r))):i&&(U(r==null||i.matches(r),"staticNetwork MUST match network object","options",n),T(this,Oi,i))}_getOption(r){return S(this,Zc)[r]}get _network(){return J(S(this,Oi),"network is not available yet","NETWORK_ERROR"),S(this,Oi)}async _perform(r){if(r.method==="call"||r.method==="estimateGas"){let i=r.transaction;if(i&&i.type!=null&&ge(i.type)&&i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null){const s=await this.getFeeData();s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null&&(r=Object.assign({},r,{transaction:Object.assign({},i,{type:void 0})}))}}const n=this.getRpcRequest(r);return n!=null?await this.send(n.method,n.args):super._perform(r)}async _detectNetwork(){const r=this._getOption("staticNetwork");if(r)if(r===!0){if(S(this,Oi))return S(this,Oi)}else return r;return S(this,Mn)?await S(this,Mn):this.ready?(T(this,Mn,(async()=>{try{const n=co.from(ge(await this.send("eth_chainId",[])));return T(this,Mn,null),n}catch(n){throw T(this,Mn,null),n}})()),await S(this,Mn)):(T(this,Mn,(async()=>{const n={id:ma(this,_f)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};
349this.emit("debug",{action:"sendRpcPayload",payload:n});let i;try{i=(await this._send(n))[0],T(this,Mn,null)}catch(s){throw T(this,Mn,null),this.emit("debug",{action:"receiveRpcError",error:s}),s}if(this.emit("debug",{action:"receiveRpcResult",result:i}),"result"in i)return co.from(ge(i.result));throw this.getRpcError(n,i)})()),await S(this,Mn))}_start(){S(this,vs)==null||S(this,vs).resolve==null||(S(this,vs).resolve(),T(this,vs,null),(async()=>{for(;S(this,Oi)==null&&!this.destroyed;)try{T(this,Oi,await this._detectNetwork())}catch(r){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",ir("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:r}})),await FX(1e3)}Q(this,vm,S2).call(this)})())}async _waitUntilReady(){if(S(this,vs)!=null)return await S(this,vs).promise}_getSubscriber(r){return r.type==="pending"?new RX(this):r.type==="event"?this._getOption("polling")?new nA(this,r.filter):new TX(this,r.filter):r.type==="orphan"&&r.filter.orphan==="drop-log"?new r8("orphan"):super._getSubscriber(r)}get ready(){return S(this,vs)==null}getRpcTransaction(r){const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(i=>{if(r[i]==null)return;let s=i;i==="gasLimit"&&(s="gas"),n[s]=jd(ge(r[i],`tx.${i}`))}),["from","to","data"].forEach(i=>{r[i]!=null&&(n[i]=ce(r[i]))}),r.accessList&&(n.accessList=Bu(r.accessList)),r.blobVersionedHashes&&(n.blobVersionedHashes=r.blobVersionedHashes.map(i=>i.toLowerCase())),n}getRpcRequest(r){switch(r.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[rd(r.address),r.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[rd(r.address),r.blockTag]};case"getCode":return{method:"eth_getCode",args:[rd(r.address),r.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[rd(r.address),"0x"+r.position.toString(16),r.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[r.signedTransaction]};case"getBlock":if("blockTag"in r)return{method:"eth_getBlockByNumber",args:[r.blockTag,!!r.includeTransactions]};if("blockHash"in r)return{method:"eth_getBlockByHash",args:[r.blockHash,!!r.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[r.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[r.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(r.transaction),r.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(r.transaction)]};case"getLogs":return r.filter&&r.filter.address!=null&&(Array.isArray(r.filter.address)?r.filter.address=r.filter.address.map(rd):r.filter.address=rd(r.filter.address)),{method:"eth_getLogs",args:[r.filter]}}return null}getRpcError(r,n){const{method:i}=r,{error:s}=n;if(i==="eth_estimateGas"&&s.message){const l=s.message;if(!l.match(/revert/i)&&l.match(/insufficient funds/i))return ir("insufficient funds","INSUFFICIENT_FUNDS",{transaction:r.params[0],info:{payload:r,error:s}})}if(i==="eth_call"||i==="eth_estimateGas"){const l=E2(s),c=Wg.getBuiltinCallException(i==="eth_call"?"call":"estimateGas",r.params[0],l?l.data:null);return c.info={error:s,payload:r},c}const o=JSON.stringify(IX(s));if(typeof s.message=="string"&&s.message.match(/user denied|ethers-user-denied/i))return ir("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[i]||"unknown",reason:"rejected",info:{payload:r,error:s}});if(i==="eth_sendRawTransaction"||i==="eth_sendTransaction"){const l=r.params[0];if(o.match(/insufficient funds|base fee exceeds gas limit/i))return ir("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:l,info:{error:s}});if(o.match(/nonce/i)&&o.match(/too low/i))return ir("nonce has already been used","NONCE_EXPIRED",{transaction:l,info:{error:s}});if(o.match(/replacement transaction/i)&&o.match(/underpriced/i))return ir("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:l,info:{error:s}});if(o.match(/only replay-protected/i))return ir("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:i,info:{transaction:l,info:{error:s}}})}let a=!!o.match(/the method .* does not exist/i);return a||s&&s.details&&s.details.startsWith("Unauthorized method:")&&(a=!0),a?ir("unsupported operation","UNSUPPORTED_OPERATION",{operation:r.method,info:{error:s,payload:r}}):ir("could not coalesce error","UNKNOWN_ERROR",{error:s,payload:r})}send(r,n){if(this.destroyed)return Promise.reject(ir("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:r}));const i=ma(this,_f)._++,s=new Promise((o,a)=>{S(this,Ko).push({resolve:o,reject:a,payload:{method:r,params:n,id:i,jsonrpc:"2.0"}})});return Q(this,vm,S2).call(this),s}async getSigner(r){r==null&&(r=0);const n=this.send("eth_accounts",[]);if(typeof r=="number"){const s=await n;if(r>=s.length)throw new Error("no such account");return new Qx(this,s[r])}const{accounts:i}=await wn({network:this.getNetwork(),accounts:n});r=Ot(r);for(const s of i)if(Ot(s)===r)return new Qx(this,r);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(n=>new Qx(this,n))}destroy(){S(this,Zs)&&(clearTimeout(S(this,Zs)),T(this,Zs,null));for(const{payload:r,reject:n}of S(this,Ko))n(ir("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:r.method}));T(this,Ko,[]),super.destroy()}}Zc=new WeakMap,_f=new WeakMap,Ko=new WeakMap,Zs=new WeakMap,vs=new WeakMap,Oi=new WeakMap,Mn=new WeakMap,vm=new WeakSet,S2=function(){if(S(this,Zs))return;const r=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");T(this,Zs,setTimeout(()=>{T(this,Zs,null);const n=S(this,Ko);for(T(this,Ko,[]);n.length;){const i=[n.shift()];for(;n.length&&i.length!==S(this,Zc).batchMaxCount;)if(i.push(n.shift()),JSON.stringify(i.map(o=>o.payload)).length>S(this,Zc).batchMaxSize){n.unshift(i.pop());break}(async()=>{const s=i.length===1?i[0].payload:i.map(o=>o.payload);
349this.emit("debug",{action:"sendRpcPayload",payload:s});try{const o=await this._send(s);this.emit("debug",{action:"receiveRpcResult",result:o});for(const{resolve:a,reject:l,payload:c}of i){if(this.destroyed){l(ir("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:c.method}));continue}const u=o.filter(d=>d.id===c.id)[0];if(u==null){const d=ir("missing response for request","BAD_DATA",{value:o,info:{payload:c}});this.emit("error",d),l(d);continue}if("error"in u){l(this.getRpcError(c,u));continue}a(u.result)}}catch(o){this.emit("debug",{action:"receiveRpcError",error:o});for(const{reject:a}of i)a(o)}})()}},r))};var ol;class s8 extends OX{constructor(r,n){super(r,n);z(this,ol);let i=this._getOption("pollingInterval");i==null&&(i=i8.pollingInterval),T(this,ol,i)}_getSubscriber(r){const n=super._getSubscriber(r);return ET(n)&&(n.pollingInterval=S(this,ol)),n}get pollingInterval(){return S(this,ol)}set pollingInterval(r){if(!Number.isInteger(r)||r<0)throw new Error("invalid interval");T(this,ol,r),this._forEachSubscriber(n=>{ET(n)&&(n.pollingInterval=S(this,ol))})}}ol=new WeakMap;var Vf;class DX extends s8{constructor(r,n,i){r==null&&(r="http://localhost:8545");super(n,i);z(this,Vf);typeof r=="string"?T(this,Vf,new la(r)):T(this,Vf,r.clone())}_getConnection(){return S(this,Vf).clone()}async send(r,n){return await this._start(),await super.send(r,n)}async _send(r){const n=this._getConnection();n.body=JSON.stringify(r),n.setHeader("content-type","application/json");const i=await n.send();i.assertOk();let s=i.bodyJson;return Array.isArray(s)||(s=[s]),s}}Vf=new WeakMap;function E2(t){if(t==null)return null;if(typeof t.message=="string"&&t.message.match(/revert/i)&&Bt(t.data))return{message:t.message,data:t.data};if(typeof t=="object"){for(const e in t){const r=E2(t[e]);if(r)return r}return null}if(typeof t=="string")try{return E2(JSON.parse(t))}catch{}return null}function k2(t,e){if(t!=null){if(typeof t.message=="string"&&e.push(t.message),typeof t=="object")for(const r in t)k2(t[r],e);if(typeof t=="string")try{return k2(JSON.parse(t),e)}catch{}}}function IX(t){const e=[];return k2(t,e),e}var Hf;class kT extends s8{constructor(r,n,i){const s=Object.assign({},i??{},{batchMaxCount:1});U(r&&r.request,"invalid EIP-1193 provider","ethereum",r);super(n,s);z(this,Hf);T(this,Hf,async(o,a)=>{const l={method:o,params:a};this.emit("debug",{action:"sendEip1193Request",payload:l});try{const c=await r.request(l);return this.emit("debug",{action:"receiveEip1193Result",result:c}),c}catch(c){const u=new Error(c.message);throw u.code=c.code,u.data=c.data,u.payload=l,this.emit("debug",{action:"receiveEip1193Error",error:u}),u}})}async send(r,n){return await this._start(),await super.send(r,n)}async _send(r){U(!Array.isArray(r),"EIP-1193 does not support batch request","payload",r);try{const n=await S(this,Hf).call(this,r.method,r.params||[]);return[{id:r.id,result:n}]}catch(n){return[{id:r.id,error:{code:n.code,data:n.data,message:n.message}}]}}getRpcError(r,n){switch(n=JSON.parse(JSON.stringify(n)),n.error.code||-1){case 4001:n.error.message=`ethers-user-denied: ${n.error.message}`;break;case 4200:n.error.message=`ethers-unsupported: ${n.error.message}`;break}return super.getRpcError(r,n)}async hasSigner(r){r==null&&(r=0);const n=await this.send("eth_accounts",[]);return typeof r=="number"?n.length>r:(r=r.toLowerCase(),n.filter(i=>i.toLowerCase()===r).length!==0)}async getSigner(r){if(r==null&&(r=0),!await this.hasSigner(r))try{await S(this,Hf).call(this,"eth_requestAccounts",[])}catch(n){const i=n.payload;throw this.getRpcError(i,{id:i.id,error:n})}return await super.getSigner(r)}}Hf=new WeakMap;const o8=x.createContext(void 0),a8=()=>{const t=x.useContext(o8);if(t===void 0)throw new Error("useWallet must be used within a WalletProvider");return t},MX=({children:t})=>{const[e,r]=x.useState(!1),[n,i]=x.useState(!1),[s,o]=x.useState(null),[a,l]=x.useState(null),[c,u]=x.useState(null),[d,h]=x.useState(null),[p,m]=x.useState(!1);x.useEffect(()=>{(()=>{const N=typeof window<"u"&&window.ethereum!==void 0&&window.ethereum.isMetaMask===!0;return m(N),N})(),g()},[]);const g=async()=>{try{if(window.ethereum){console.log("Ethereum provider detected, checking connection status");const C=new kT(window.ethereum),N=await C.listAccounts();if(N.length>0){console.log(`Found ${N.length} connected accounts, getting signer`);const R=await C.getSigner(),F=await C.getNetwork();u(C),h(R),o(N[0].address),l(Number(F.chainId)),r(!0),console.log("Wallet connected:",N[0].address),Ue.success("Wallet connected",{description:`Connected to account: ${N[0].address.slice(0,6)}...${N[0].address.slice(-4)}`})}else console.log("No accounts connected yet")}else console.log("No Ethereum wallet detected"),typeof window<"u"&&Ue.info("No wallet detected",{description:"Install MetaMask to use premium features",action:{label:"Get MetaMask",onClick:()=>window.open("https://metamask.io/download/","_blank")}})}catch(C){console.error("Error checking wallet connection:",C)}};x.useEffect(()=>(window.ethereum&&(window.ethereum.on("accountsChanged",y),window.ethereum.on("chainChanged",v),window.ethereum.on("disconnect",w)),()=>{window.ethereum&&(window.ethereum.removeListener("accountsChanged",y),window.ethereum.removeListener("chainChanged",v),window.ethereum.removeListener("disconnect",w))}),[]);const y=C=>{C.length===0?A():(o(C[0]),g())},v=C=>{const N=parseInt(C,16);l(N),g(),Ue.info(`Network changed to ${b(N)}`)},w=()=>{A()},b=C=>{switch(C){case 1:return"Ethereum Mainnet";case 5:return"Goerli Testnet";case 11155111:return"Sepolia Testnet";case 137:return"Polygon Mainnet";case 80001:return"Mumbai Testnet";default:return`Chain ID: ${C}`}},E=async()=>
349{if(!window.ethereum){Ue.error("No Ethereum wallet detected",{description:"Please install MetaMask to connect your wallet",action:{label:"Install MetaMask",onClick:()=>window.open("https://metamask.io/download/","_blank")}});return}i(!0);try{console.log("Attempting to connect to wallet...");const C=new kT(window.ethereum);await window.ethereum.request({method:"eth_requestAccounts"});const N=await C.listAccounts(),R=await C.getSigner(),F=await C.getNetwork();u(C),h(R),o(N[0].address),l(Number(F.chainId)),r(!0),console.log("Connected to wallet successfully:",N[0].address),Ue.success("MetaMask connected",{description:`Connected to ${b(Number(F.chainId))}`})}catch(C){console.error("Error connecting wallet:",C),C.code===4001?Ue.error("Connection rejected",{description:"You rejected the MetaMask connection request"}):Ue.error("Error connecting wallet",{description:C.message||"An unexpected error occurred"})}finally{i(!1)}},A=()=>{u(null),h(null),o(null),l(null),r(!1),Ue.info("Wallet disconnected")},P={isConnected:e,connecting:n,account:s,chainId:a,provider:c,signer:d,connectWallet:E,disconnectWallet:A,switchNetwork:async C=>{if(!window.ethereum)return!1;try{return await window.ethereum.request({method:"wallet_switchEthereumChain",params:[{chainId:`0x${C.toString(16)}`}]}),!0}catch(N){return console.error("Error switching network:",N),Ue.error("Could not switch network",{description:"Please switch your network manually in MetaMask"}),!1}},isMetaMaskInstalled:p};return f.jsx(o8.Provider,{value:P,children:t})},BX=({isWalletConnected:t})=>f.jsxs("div",{className:"mb-8",children:[f.jsx("h1",{className:"text-3xl font-bold mb-3",children:"Sign Document"}),f.jsxs("p",{className:"text-muted-foreground mb-6",children:["Upload and sign your documents with blockchain certification.",t&&f.jsx("span",{className:"ml-2 text-green-600",children:"Wallet connected for premium features."})]})]}),LX=Rh("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Sn=x.forwardRef(({className:t,variant:e,...r},n)=>f.jsx("div",{ref:n,role:"alert",className:Te(LX({variant:e}),t),...r}));Sn.displayName="Alert";const Eh=x.forwardRef(({className:t,...e},r)=>f.jsx("h5",{ref:r,className:Te("mb-1 font-medium leading-none tracking-tight",t),...e}));Eh.displayName="AlertTitle";const En=x.forwardRef(({className:t,...e},r)=>f.jsx("div",{ref:r,className:Te("text-sm [&_p]:leading-relaxed",t),...e}));En.displayName="AlertDescription";const UX=({errorMessage:t,title:e="Error"})=>f.jsxs(Sn,{variant:"destructive",className:"mb-6",children:[f.jsx(ql,{className:"h-4 w-4"}),f.jsx(Eh,{children:e}),f.jsx(En,{children:t})]});function zX(t,e=[]){let r=[];function n(s,o){const a=x.createContext(o),l=r.length;r=[...r,o];function c(d){const{scope:h,children:p,...m}=d,g=(h==null?void 0:h[t][l])||a,y=x.useMemo(()=>m,Object.values(m));return f.jsx(g.Provider,{value:y,children:p})}function u(d,h){const p=(h==null?void 0:h[t][l])||a,m=x.useContext(p);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,u]}const i=()=>{const s=r.map(o=>x.createContext(o));return function(a){const l=(a==null?void 0:a[t])||s;return x.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[n,_X(i,...e)]}function _X(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=n.reduce((a,{useScope:l,scopeName:c})=>{const d=l(s)[`__scope${c}`];return{...a,...d}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}var iA="Progress",sA=100,[VX,eoe]=zX(iA),[HX,GX]=VX(iA),l8=x.forwardRef((t,e)=>{const{__scopeProgress:r,value:n=null,max:i,getValueLabel:s=WX,...o}=t;(i||i===0)&&!AT(i)&&console.error(KX(`${i}`,"Progress"));const a=AT(i)?i:sA;n!==null&&!CT(n,a)&&console.error(qX(`${n}`,"Progress"));const l=CT(n,a)?n:null,c=zy(l)?s(l,a):void 0;return f.jsx(HX,{scope:r,value:l,max:a,children:f.jsx(Ge.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":zy(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":d8(l,a),"data-value":l??void 0,"data-max":a,...o,ref:e})})});l8.displayName=iA;var c8="ProgressIndicator",u8=x.forwardRef((t,e)=>{const{__scopeProgress:r,...n}=t,i=GX(c8,r);return f.jsx(Ge.div,{"data-state":d8(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...n,ref:e})});u8.displayName=c8;function WX(t,e){return`${Math.round(t/e*100)}%`}function d8(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function zy(t){return typeof t=="number"}function AT(t){return zy(t)&&!isNaN(t)&&t>0}function CT(t,e){return zy(t)&&!isNaN(t)&&t<=e&&t>=0}function KX(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${sA}\`.`}function qX(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be:
350  - a positive number
351  - less than the value passed to \`max\` (or ${sA} if no \`max\` prop is set)
352  - \`null\` or \`undefined\` if the progress is indeterminate.
353
354Defaulting to \`null\`.`}var f8=l8,QX=u8;const h8=x.forwardRef(({className:t,value:e,...r},n)=>f.jsx(f8,{ref:n,className:Te("relative h-4 w-full overflow-hidden rounded-full bg-secondary",t),...r,children:f.jsx(QX,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(e||0)}%)`}})}));h8.displayName=f8.displayName;const XX=Rh("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 YX({className:t,variant:e,...r}){return f.jsx("div",{className:Te(XX({variant:e}),t),...r})}const JX=({stage:t,progress:e,errorMessage:r})=>{const n=()=>{switch(t){case"preparing":return"Preparing document";case"hashing":return"Generating secure hash";case"signing":return"Signing with wallet";case"recording":return"Recording on blockchain";
354case"verifying":return"Verifying signature";case"completed":return"Signature complete";case"error":return"Error occurred";default:return"Processing"}},i=()=>t==="error"?null:t==="completed"?f.jsx(Iw,{className:"h-4 w-4 text-green-500"}):e<100?f.jsx(mu,{className:"h-4 w-4 animate-spin"}):f.jsx(vD,{className:"h-4 w-4"}),s=["preparing","hashing","signing","recording","verifying","completed"],o=s.indexOf(t);return f.jsxs("div",{className:"space-y-4 max-w-md mx-auto my-6",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[i(),f.jsx("span",{className:"font-medium",children:n()})]}),f.jsx(YX,{variant:t==="error"?"destructive":t==="completed"?"outline":"secondary",className:t==="completed"?"bg-green-50 text-green-700 border-green-200":"",children:t==="error"?"Failed":`${Math.round(e)}%`})]}),f.jsx(h8,{value:e,className:t==="error"?"bg-red-100":""}),t==="error"&&r&&f.jsx("p",{className:"text-sm text-red-600 mt-2",children:r}),f.jsx("div",{className:"flex justify-between text-xs text-muted-foreground mt-1",children:s.map((a,l)=>f.jsx("div",{className:`${l<=o?"text-primary font-medium":""}`,children:a==="preparing"?"Start":a==="completed"?"Complete":""},a))})]})},ZX=({value:t,onChange:e,disabled:r=!1})=>f.jsxs(Vt,{className:"border border-purple-500/20",children:[f.jsxs(Yi,{children:[f.jsx(Ji,{children:"Select Signature Type"}),f.jsx(Zi,{children:"Choose between standard and premium signature options"})]}),f.jsx(Jt,{children:f.jsxs(Fm,{value:t,onValueChange:n=>e(n),children:[f.jsxs(Lh,{className:`grid grid-cols-2 mb-6 ${r?"opacity-70 pointer-events-none":""}`,children:[f.jsx(Wn,{value:"standard",children:"Standard"}),f.jsx(Wn,{value:"premium",children:"Premium"})]}),f.jsx(Kn,{value:"standard",children:f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx("div",{className:"p-2 rounded-full bg-web3-purple/20 shrink-0",children:f.jsx(Wz,{className:"h-5 w-5 text-web3-purple"})}),f.jsxs("div",{children:[f.jsx("h4",{className:"font-medium",children:"Basic Blockchain Signature"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"Document signed and verified on the blockchain with basic NFT minting."})]})]}),f.jsx("p",{className:"text-sm font-medium",children:"Free Tier Features:"}),f.jsxs("ul",{className:"text-sm text-muted-foreground space-y-2",children:[f.jsx("li",{children:"• Basic blockchain certification"}),f.jsx("li",{children:"• Public verification page"}),f.jsx("li",{children:"• 7-day verification history"}),f.jsx("li",{children:"• Demo transactions (no wallet required)"})]})]})}),f.jsx(Kn,{value:"premium",children:f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx("div",{className:"p-2 rounded-full bg-web3-purple/20 shrink-0",children:f.jsx(Gz,{className:"h-5 w-5 text-web3-purple"})}),f.jsxs("div",{children:[f.jsx("h4",{className:"font-medium",children:"Premium NFT Certificate"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"Enhanced security with cryptographic wallet signatures and on-chain verification."})]})]}),f.jsx("p",{className:"text-sm font-medium",children:"Premium Features:"}),f.jsxs("ul",{className:"text-sm text-muted-foreground space-y-2",children:[f.jsx("li",{children:"• Cryptographic wallet signatures"}),f.jsx("li",{children:"• True on-chain verification"}),f.jsx("li",{children:"• Tamper-evident digital seals"}),f.jsx("li",{children:"• Private verification links"}),f.jsx("li",{children:"• 1-year verification history"}),f.jsxs("li",{children:["• ",f.jsx("span",{className:"text-green-600 font-medium",children:"Uses real transactions from your wallet"})]})]})]})})]})})]}),p8=({isConnected:t,status:e})=>{const{connectWallet:r}=a8();if(!t)return f.jsxs(Sn,{className:"bg-amber-50 border-amber-200",children:[f.jsx(Og,{className:"h-4 w-4 text-amber-600"}),f.jsxs(En,{className:"flex items-center justify-between w-full",children:[f.jsx("span",{className:"text-amber-700",children:"Wallet not connected. Connect your wallet for premium signatures."}),f.jsx(oe,{variant:"outline",size:"sm",className:"bg-amber-100 border-amber-300 text-amber-800 hover:bg-amber-200",onClick:r,children:"Connect Wallet"})]})]});
354switch(e){case"pending":return f.jsxs(Sn,{className:"bg-blue-50 border-blue-200",children:[f.jsx(mu,{className:"h-4 w-4 text-blue-600 animate-spin"}),f.jsx(En,{className:"text-blue-700",children:"Signing with your wallet. Please confirm the signature in your wallet..."})]});case"success":return f.jsxs(Sn,{className:"bg-green-50 border-green-200",children:[f.jsx(Iw,{className:"h-4 w-4 text-green-600"}),f.jsx(En,{className:"text-green-700",children:"Document signed successfully with your wallet."})]});case"error":return f.jsxs(Sn,{variant:"destructive",children:[f.jsx(ql,{className:"h-4 w-4"}),f.jsx(En,{children:"Failed to sign with wallet. Please try again."})]});default:return f.jsxs(Sn,{className:"bg-gray-100 border-gray-200",children:[f.jsx(Og,{className:"h-4 w-4 text-gray-600"}),f.jsx(En,{className:"text-gray-700",children:"Wallet connected and ready for premium signatures."})]})}},oA=({onFileUpload:t})=>{const[e,r]=x.useState(!1),[n,i]=x.useState(null),{toast:s}=Sr(),o=d=>{d.preventDefault(),d.stopPropagation(),d.type==="dragenter"||d.type==="dragover"?r(!0):d.type==="dragleave"&&r(!1)},a=d=>{if(d.preventDefault(),d.stopPropagation(),r(!1),d.dataTransfer.files&&d.dataTransfer.files[0]){const h=d.dataTransfer.files[0];h.type==="application/pdf"?c(h):s({title:"Invalid file type",description:"Please upload a PDF file",variant:"destructive"})}},l=d=>{if(d.target.files&&d.target.files[0]){const h=d.target.files[0];h.type==="application/pdf"?c(h):s({title:"Invalid file type",description:"Please upload a PDF file",variant:"destructive"})}},c=d=>{i(d),t(d),s({title:"File uploaded",description:`${d.name} has been uploaded successfully`})},u=()=>{i(null)};return f.jsx(Vt,{className:`border border-dashed ${e?"border-web3-purple":"border-gray-500"} bg-secondary/50`,children:f.jsx(Jt,{className:"p-6",children:n?f.jsxs("div",{className:"flex items-center justify-between p-3",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"p-2 rounded-full bg-web3-purple/20",children:f.jsx(Jn,{className:"h-6 w-6 text-web3-purple"})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium truncate max-w-[200px]",children:n.name}),f.jsxs("p",{className:"text-xs text-muted-foreground",children:[(n.size/1024/1024).toFixed(2)," MB"]})]})]}),f.jsx(oe,{variant:"ghost",size:"icon",onClick:u,className:"text-muted-foreground hover:text-destructive",children:f.jsx(Tm,{className:"h-5 w-5"})})]}):f.jsxs("div",{className:"flex flex-col items-center justify-center p-6 rounded-md",onDragEnter:o,onDragLeave:o,onDragOver:o,onDrop:a,children:[f.jsx("div",{className:"mb-4 p-3 rounded-full bg-web3-purple/20",children:f.jsx(gk,{className:"h-10 w-10 text-web3-purple"})}),f.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Upload your PDF"}),f.jsx("p",{className:"text-muted-foreground text-center mb-4",children:"Drag and drop your PDF file here, or click to browse"}),f.jsxs("div",{className:"relative",children:[f.jsx(hr,{id:"file-upload",type:"file",accept:"application/pdf",onChange:l,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer"}),f.jsx(oe,{className:"bg-web3-purple hover:bg-web3-purple/80",children:"Select PDF"})]})]})})})};function $X({className:t,...e}){return f.jsx("div",{className:Te("animate-pulse rounded-md bg-muted",t),...e})}const aA=({file:t})=>{const[e,r]=x.useState(null),[n,i]=x.useState(!1),{toast:s}=Sr();x.useEffect(()=>{if(t){i(!0);const l=URL.createObjectURL(t);return r(l),()=>{URL.revokeObjectURL(l)}}else r(null)},[t]);const o=()=>{i(!1)},a=()=>{i(!1),s({title:"Error loading PDF",description:"There was a problem displaying the PDF. Try another file or browser.",variant:"destructive"})};return t?f.jsxs(Vt,{className:"document-container overflow-hidden h-[500px]",children:[n&&f.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:f.jsx($X,{className:"w-full h-full"})}),e&&f.jsx("iframe",{src:`${e}#toolbar=0`,className:"w-full h-full",onLoad:o,onError:a,title:"PDF Viewer"})]}):f.jsx(Vt,{className:"document-container flex items-center justify-center p-6 h-[500px]",children:f.jsx("div",{className:"text-center text-muted-foreground",children:f.jsx("p",{children:"Upload a PDF to view and sign"})})})};function g8(t,[e,r]){return Math.min(r,Math.max(e,t))}
354function lA(t){const[e,r]=x.useState(void 0);return vi(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=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=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var m8=["PageUp","PageDown"],v8=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y8={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},zh="Slider",[A2,eY,tY]=Pm(zh),[w8,toe]=mo(zh,[tY]),[rY,ub]=w8(zh),b8=x.forwardRef((t,e)=>{const{name:r,min:n=0,max:i=100,step:s=1,orientation:o="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[n],value:u,onValueChange:d=()=>{},onValueCommit:h=()=>{},inverted:p=!1,form:m,...g}=t,y=x.useRef(new Set),v=x.useRef(0),b=o==="horizontal"?nY:iY,[E=[],A]=yo({prop:u,defaultProp:c,onChange:F=>{var D;(D=[...y.current][v.current])==null||D.focus(),d(F)}}),k=x.useRef(E);function P(F){const B=cY(E,F);R(F,B)}function C(F){R(F,v.current)}function N(){const F=k.current[v.current];E[v.current]!==F&&h(E)}function R(F,B,{commit:D}={commit:!1}){const L=hY(s),M=pY(Math.round((F-n)/s)*s+n,L),_=g8(M,[n,i]);A((X=[])=>{const V=aY(X,_,B);if(fY(V,l*s)){v.current=V.indexOf(_);const K=String(V)!==String(X);return K&&D&&h(V),K?V:X}else return X})}return f.jsx(rY,{scope:t.__scopeSlider,name:r,disabled:a,min:n,max:i,valueIndexToChangeRef:v,thumbs:y.current,values:E,orientation:o,form:m,children:f.jsx(A2.Provider,{scope:t.__scopeSlider,children:f.jsx(A2.Slot,{scope:t.__scopeSlider,children:f.jsx(b,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:e,onPointerDown:Pe(g.onPointerDown,()=>{a||(k.current=E)}),min:n,max:i,inverted:p,onSlideStart:a?void 0:P,onSlideMove:a?void 0:C,onSlideEnd:a?void 0:N,onHomeKeyDown:()=>!a&&R(n,0,{commit:!0}),onEndKeyDown:()=>!a&&R(i,E.length-1,{commit:!0}),onStepKeyDown:({event:F,direction:B})=>{if(!a){const M=m8.includes(F.key)||F.shiftKey&&v8.includes(F.key)?10:1,_=v.current,X=E[_],V=s*M*B;R(X+V,_,{commit:!0})}}})})})})});b8.displayName=zh;var[x8,S8]=w8(zh,{startEdge:"left",endEdge:"right",size:"width",direction:1}),nY=x.forwardRef((t,e)=>{const{min:r,max:n,dir:i,inverted:s,onSlideStart:o,onSlideMove:a,onSlideEnd:l,onStepKeyDown:c,...u}=t,[d,h]=x.useState(null),p=ar(e,b=>h(b)),m=x.useRef(),g=Mh(i),y=g==="ltr",v=y&&!s||!y&&s;function w(b){const E=m.current||d.getBoundingClientRect(),A=[0,E.width],P=cA(A,v?[r,n]:[n,r]);return m.current=E,P(b-E.left)}return f.jsx(x8,{scope:t.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:f.jsx(E8,{dir:g,"data-orientation":"horizontal",...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{const E=w(b.clientX);o==null||o(E)},onSlideMove:b=>{const E=w(b.clientX);a==null||a(E)},onSlideEnd:()=>{m.current=void 0,l==null||l()},onStepKeyDown:b=>{const A=y8[v?"from-left":"from-right"].includes(b.key);c==null||c({event:b,direction:A?-1:1})}})})}),iY=x.forwardRef((t,e)=>{const{min:r,max:n,inverted:i,onSlideStart:s,onSlideMove:o,onSlideEnd:a,onStepKeyDown:l,...c}=t,u=x.useRef(null),d=ar(e,u),h=x.useRef(),p=!i;function m(g){const y=h.current||u.current.getBoundingClientRect(),v=[0,y.height],b=cA(v,p?[n,r]:[r,n]);return h.current=y,b(g-y.top)}return f.jsx(x8,{scope:t.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:f.jsx(E8,{"data-orientation":"vertical",...c,ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const y=m(g.clientY);s==null||s(y)},onSlideMove:g=>{const y=m(g.clientY);o==null||o(y)},onSlideEnd:()=>{h.current=void 0,a==null||a()},onStepKeyDown:g=>{const v=y8[p?"from-bottom":"from-top"].includes(g.key);l==null||l({event:g,direction:v?-1:1})}})})}),E8=x.forwardRef((t,e)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:i,onSlideEnd:s,onHomeKeyDown:o,onEndKeyDown:a,onStepKeyDown:l,...c}=t,u=ub(zh,r);return f.jsx(Ge.span,{...c,ref:e,onKeyDown:Pe(t.onKeyDown,d=>{d.key==="Home"?(o(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):m8.concat(v8).includes(d.key)&&(l(d
354),d.preventDefault())}),onPointerDown:Pe(t.onPointerDown,d=>{const h=d.target;h.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(h)?h.focus():n(d)}),onPointerMove:Pe(t.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&i(d)}),onPointerUp:Pe(t.onPointerUp,d=>{const h=d.target;h.hasPointerCapture(d.pointerId)&&(h.releasePointerCapture(d.pointerId),s(d))})})}),k8="SliderTrack",A8=x.forwardRef((t,e)=>{const{__scopeSlider:r,...n}=t,i=ub(k8,r);return f.jsx(Ge.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...n,ref:e})});A8.displayName=k8;var C2="SliderRange",C8=x.forwardRef((t,e)=>{const{__scopeSlider:r,...n}=t,i=ub(C2,r),s=S8(C2,r),o=x.useRef(null),a=ar(e,o),l=i.values.length,c=i.values.map(h=>P8(h,i.min,i.max)),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return f.jsx(Ge.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...n,ref:a,style:{...t.style,[s.startEdge]:u+"%",[s.endEdge]:d+"%"}})});C8.displayName=C2;var N2="SliderThumb",N8=x.forwardRef((t,e)=>{const r=eY(t.__scopeSlider),[n,i]=x.useState(null),s=ar(e,a=>i(a)),o=x.useMemo(()=>n?r().findIndex(a=>a.ref.current===n):-1,[r,n]);return f.jsx(sY,{...t,ref:s,index:o})}),sY=x.forwardRef((t,e)=>{const{__scopeSlider:r,index:n,name:i,...s}=t,o=ub(N2,r),a=S8(N2,r),[l,c]=x.useState(null),u=ar(e,w=>c(w)),d=l?o.form||!!l.closest("form"):!0,h=lA(l),p=o.values[n],m=p===void 0?0:P8(p,o.min,o.max),g=lY(n,o.values.length),y=h==null?void 0:h[a.size],v=y?uY(y,m,a.direction):0;return x.useEffect(()=>{if(l)return o.thumbs.add(l),()=>{o.thumbs.delete(l)}},[l,o.thumbs]),f.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${m}% + ${v}
354px)`},children:[f.jsx(A2.ItemSlot,{scope:t.__scopeSlider,children:f.jsx(Ge.span,{role:"slider","aria-label":t["aria-label"]||g,"aria-valuemin":o.min,"aria-valuenow":p,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0,...s,ref:u,style:p===void 0?{display:"none"}:t.style,onFocus:Pe(t.onFocus,()=>{o.valueIndexToChangeRef.current=n})})}),d&&f.jsx(oY,{name:i??(o.name?o.name+(o.values.length>1?"[]":""):void 0),form:o.form,value:p},n)]})});N8.displayName=N2;var oY=t=>{const{value:e,...r}=t,n=x.useRef(null),i=qw(e);return x.useEffect(()=>{const s=n.current,o=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(o,"value").set;if(i!==e&&l){const c=new Event("input",{bubbles:!0});l.call(s,e),s.dispatchEvent(c)}},[i,e]),f.jsx("input",{style:{display:"none"},...r,ref:n,defaultValue:e})};function aY(t=[],e,r){const n=[...t];return n[r]=e,n.sort((i,s)=>i-s)}function P8(t,e,r){const s=100/(r-e)*(t-e);return g8(s,[0,100])}function lY(t,e){return e>2?`Value ${t+1} of ${e}`:e===2?["Minimum","Maximum"][t]:void 0}function cY(t,e){if(t.length===1)return 0;const r=t.map(i=>Math.abs(i-e)),n=Math.min(...r);return r.indexOf(n)}function uY(t,e,r){const n=t/2,s=cA([0,50],[0,n]);return(n-s(e)*r)*r}function dY(t){return t.slice(0,-1).map((e,r)=>t[r+1]-e)}function fY(t,e){if(e>0){const r=dY(t);return Math.min(...r)>=e}return!0}function cA(t,e){return r=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const n=(e[1]-e[0])/(t[1]-t[0]);return e[0]+n*(r-t[0])}}function hY(t){return(String(t).split(".")[1]||"").length}function pY(t,e){const r=Math.pow(10,e);return Math.round(t*r)/r}var T8=b8,gY=A8,mY=C8,vY=N8;const R8=x.forwardRef(({className:t,...e},r)=>f.jsxs(T8,{ref:r,className:Te("relative flex w-full touch-none select-none items-center",t),...e,children:[f.jsx(gY,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:f.jsx(mY,{className:"absolute h-full bg-primary"})}),f.jsx(vY,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background 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"})]}));R8.displayName=T8.displayName;var Xx="focusScope.autoFocusOnMount",Yx="focusScope.autoFocusOnUnmount",NT={bubbles:!1,cancelable:!0},yY="FocusScope",j8=x.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=t,[a,l]=x.useState(null),c=wr(i),u=wr(s),d=x.useRef(null),h=ar(e,g=>l(g)),p=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(n){let g=function(b){if(p.paused||!a)return;const E=b.target;a.contains(E)?d.current=E:ja(d.current,{select:!0})},y=function(b){if(p.paused||!a)return;const E=b.relatedTarget;E!==null&&(a.contains(E)||ja(d.current,{select:!0}))},v=function(b){if(document.activeElement===document.body)for(const A of b)A.removedNodes.length>0&&ja(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",y);const w=new MutationObserver(v);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),w.disconnect()}}},[n,a,p.paused]),x.useEffect(()=>{if(a){TT.add(p);const g=document.activeElement;if(!a.contains(g)){const v=new CustomEvent(Xx,NT);a.addEventListener(Xx,c),a.dispatchEvent(v),v.defaultPrevented||(wY(kY(F8(a)),{select:!0}),document.activeElement===g&&ja(a))}return()=>{a.removeEventListener(Xx,c),setTimeout(()=>{const v=new CustomEvent(Yx,NT);a.addEventListener(Yx,u),a.dispatchEvent(v),v.defaultPrevented||ja(g??document.body,{select:!0}),a.removeEventListener(Yx,u),TT.remove(p)},0)}}},[a,c,u,p]);const m=x.useCallback(g=>{if(!r&&!n||p.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(y&&v){const w=g.currentTarget,[b,E]=bY(w);b&&E?!g.shiftKey&&v===E?(g.preventDefault(),r&&ja(b,{select:!0})):g.shiftKey&&v===b&&(g.preventDefault(),r&&ja(E,{select:!0})):v===w&&g.preventDefault()}},[r,n,p.paused]);return f.jsx(Ge.div,{tabIndex:-1,...o,ref:h,onKeyDown:m})});j8.displayName=yY;function wY(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(ja(n,{select:e}),document.activeElement!==r)return}function bY(t){const e=F8(t),r=PT(e,t),n=PT(e.reverse(),t);return[r,n]}function F8(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function PT(t,e){for(const r of t)if(!xY(r,{upTo:e}))return r}function xY(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function SY(t){return t instanceof HTMLInputElement&&"select"in t}function ja(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&SY(t)&&e&&t.select()}}var TT=EY();function EY(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=RT(t,e),t.unshift(e)},remove(e){var r;t=RT(t,e),(r=t[0])==null||r.resume()}}}function RT(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function kY(t){return t.filter(e=>e.tagName!=="A")}var Jx=0;function AY(){x.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??jT()),document.body.insertAdjacentElement("beforeend",t[1]??jT()),Jx++,()=>{Jx===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
vendor: 1,642 bytes, line 354
354=>e.remove()),Jx--}},[])}function jT(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var oo=function(){return oo=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},oo.apply(this,arguments)};function O8(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function CY(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;n<i;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))}var Iv="right-scroll-bar-position",Mv="width-before-scroll-bar",NY="with-scroll-bars-hidden",PY="--removed-body-scroll-bar-size";function Zx(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function TY(t,e){var r=x.useState(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=e,r.facade}var RY=typeof window<"u"?x.useLayoutEffect:x.useEffect,FT=new WeakMap;function jY(t,e){var r=TY(null,function(n){return t.forEach(function(i){return Zx(i,n)})});return RY(function(){var n=FT.get(r);if(n){var i=new Set(n),s=new Set(t),o=r.current;
vendor: 7,138 bytes, lines 354-394
354i.forEach(function(a){s.has(a)||Zx(a,null)}),s.forEach(function(a){i.has(a)||Zx(a,o)})}FT.set(r,t)},[t]),r}function FY(t){return t}function OY(t,e){e===void 0&&(e=FY);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(s){var o=e(s,n);return r.push(o),function(){r=r.filter(function(a){return a!==o})}},assignSyncMedium:function(s){for(n=!0;r.length;){var o=r;r=[],o.forEach(s)}r={push:function(a){return s(a)},filter:function(){return r}}},assignMedium:function(s){n=!0;var o=[];if(r.length){var a=r;r=[],a.forEach(s),o=r}var l=function(){var u=o;o=[],u.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),r}}}};return i}function DY(t){t===void 0&&(t={});var e=OY(null);return e.options=oo({async:!0,ssr:!1},t),e}var D8=function(t){var e=t.sideCar,r=O8(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw new Error("Sidecar medium not found");return x.createElement(n,oo({},r))};D8.isSideCarExport=!0;function IY(t,e){return t.useMedium(e),D8}var I8=DY(),$x=function(){},db=x.forwardRef(function(t,e){var r=x.useRef(null),n=x.useState({onScrollCapture:$x,onWheelCapture:$x,onTouchMoveCapture:$x}),i=n[0],s=n[1],o=t.forwardProps,a=t.children,l=t.className,c=t.removeScrollBar,u=t.enabled,d=t.shards,h=t.sideCar,p=t.noIsolation,m=t.inert,g=t.allowPinchZoom,y=t.as,v=y===void 0?"div":y,w=t.gapMode,b=O8(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,A=jY([r,e]),k=oo(oo({},b),i);return x.createElement(x.Fragment,null,u&&x.createElement(E,{sideCar:I8,removeScrollBar:c,shards:d,noIsolation:p,inert:m,setCallbacks:s,allowPinchZoom:!!g,lockRef:r,gapMode:w}),o?x.cloneElement(x.Children.only(a),oo(oo({},k),{ref:A})):x.createElement(v,oo({},k,{className:l,ref:A}),a))});db.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};db.classNames={fullWidth:Mv,zeroRight:Iv};var MY=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function BY(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=MY();return e&&t.setAttribute("nonce",e),t}function LY(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function UY(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var zY=function(){var t=0,e=null;return{add:function(r){t==0&&(e=BY())&&(LY(e,r),UY(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},_Y=function(){var t=zY();return function(e,r){x.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},M8=function(){var t=_Y(),e=function(r){var n=r.styles,i=r.dynamic;return t(n,i),null};return e},VY={left:0,top:0,right:0,gap:0},e1=function(t){return parseInt(t||"",10)||0},HY=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],n=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[e1(r),e1(n),e1(i)]},GY=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return VY;var e=HY(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},WY=M8(),Jd="data-scroll-locked",KY=function(t,e,r,n){var i=t.left,s=t.top,o=t.right,a=t.gap;return r===void 0&&(r="margin"),`
355  .`.concat(NY,` {
356   overflow: hidden `).concat(n,`;
357   padding-right: `).concat(a,"px ").concat(n,`;
358  }
359  body[`).concat(Jd,`] {
360    overflow: hidden `).concat(n,`;
361    overscroll-behavior: contain;
362    `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&`
363    padding-left: `.concat(i,`px;
364    padding-top: `).concat(s,`px;
365    padding-right: `).concat(o,`px;
366    margin-left:0;
367    margin-top:0;
368    margin-right: `).concat(a,"px ").concat(n,`;
369    `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
370  }
371  
372  .`).concat(Iv,` {
373    right: `).concat(a,"px ").concat(n,`;
374  }
375  
376  .`).concat(Mv,` {
377    margin-right: `).concat(a,"px ").concat(n,`;
378  }
379  
380  .`).concat(Iv," .").concat(Iv,` {
381    right: 0 `).concat(n,`;
382  }
383  
384  .`).concat(Mv," .").concat(Mv,` {
385    margin-right: 0 `).concat(n,`;
386  }
387  
388  body[`).concat(Jd,`] {
389    `).concat(PY,": ").concat(a,`px;
390  }
391`)},OT=function(){var t=parseInt(document.body.getAttribute(Jd)||"0",10);return isFinite(t)?t:0},qY=function(){x.useEffect(function(){return document.body.setAttribute(Jd,(OT()+1).toString()),function(){var t=OT()-1;t<=0?document.body.removeAttribute(Jd):document.body.setAttribute(Jd,t.toString())}},[])},QY=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n;qY();var s=x.useMemo(function(){return GY(i)},[i]);return x.createElement(WY,{styles:KY(s,!e,i,r?"":"!important")})},P2=!1;if(typeof window<"u")try{var U0=Object.defineProperty({},"passive",{get:function(){return P2=!0,!0}});window.addEventListener("test",U0,U0),window.removeEventListener("test",U0,U0)}catch{P2=!1}var nd=P2?{passive:!1}:!1,XY=function(t){return t.tagName==="TEXTAREA"},B8=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!XY(t)&&r[e]==="visible")},YY=function(t){return B8(t,"overflowY")},JY=function(t){return B8(t,"overflowX")},DT=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=L8(t,n);if(i){var s=U8(t,n),o=s[1],a=s[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ZY=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},$Y=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},L8=function(t,e){return t==="v"?YY(e):JY(e)},U8=function(t,e){return t==="v"?ZY(e):$Y(e)},eJ=function(t,e){return t==="h"&&e==="rtl"?-1:1},tJ=function(t,e,r,n,i){var s=eJ(t,window.getComputedStyle(e).direction),o=s*n,a=r.target,l=e.contains(a),c=!1,u=o>0,d=0,h=0;do{var p=U8(t,a),m=p[0],g=p[1],y=p[2],v=g-y-s*m;(m||v)&&L8(t,a)&&(d+=v,h+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(u&&(Math.abs(d)<1||!i)||!u&&(Math.abs(h)<1||!i))&&(c=!0),c},z0=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},IT=function(t){return[t.deltaX,t.deltaY]},MT=function(t){return t&&"current"in t?t.current:t},rJ=function(t,e){return t[0]===e[0]&&t[1]===e[1]},nJ=function(t){return`
392  .block-interactivity-`.concat(t,` {pointer-events: none;}
393  .allow-interactivity-`).concat(t,` {pointer-events: all;}
394`)},iJ=0,id=[];function sJ(t){var e=x.useRef([]),r=x.useRef([0,0]),n=x.useRef(),i=x.useState(iJ++)[0],s=x.useState(M8)[0],o=x.useRef(t);x.useEffect(function(){o.current=t},[t]),x.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));
vendor: 1,180 bytes, line 394
394var g=CY([t.lockRef.current],(t.shards||[]).map(MT),!0).filter(Boolean);return g.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=x.useCallback(function(g,y){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var v=z0(g),w=r.current,b="deltaX"in g?g.deltaX:w[0]-v[0],E="deltaY"in g?g.deltaY:w[1]-v[1],A,k=g.target,P=Math.abs(b)>Math.abs(E)?"h":"v";if("touches"in g&&P==="h"&&k.type==="range")return!1;var C=DT(P,k);if(!C)return!0;if(C?A=P:(A=P==="v"?"h":"v",C=DT(P,k)),!C)return!1;if(!n.current&&"changedTouches"in g&&(b||E)&&(n.current=A),!A)return!0;var N=n.current||A;return tJ(N,y,g,N==="h"?b:E,!0)},[]),l=x.useCallback(function(g){var y=g;if(!(!id.length||id[id.length-1]!==s)){var v="deltaY"in y?IT(y):z0(y),w=e.current.filter(function(A){return A.name===y.type&&(A.target===y.target||y.target===A.shadowParent)&&rJ(A.delta,v)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}
vendor: 8,905 bytes, lines 394-398
394if(!w){var b=(o.current.shards||[]).map(MT).filter(Boolean).filter(function(A){return A.contains(y.target)}),E=b.length>0?a(y,b[0]):!o.current.noIsolation;E&&y.cancelable&&y.preventDefault()}}},[]),c=x.useCallback(function(g,y,v,w){var b={name:g,delta:y,target:v,should:w,shadowParent:oJ(v)};e.current.push(b),setTimeout(function(){e.current=e.current.filter(function(E){return E!==b})},1)},[]),u=x.useCallback(function(g){r.current=z0(g),n.current=void 0},[]),d=x.useCallback(function(g){c(g.type,IT(g),g.target,a(g,t.lockRef.current))},[]),h=x.useCallback(function(g){c(g.type,z0(g),g.target,a(g,t.lockRef.current))},[]);x.useEffect(function(){return id.push(s),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,nd),document.addEventListener("touchmove",l,nd),document.addEventListener("touchstart",u,nd),function(){id=id.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,nd),document.removeEventListener("touchmove",l,nd),document.removeEventListener("touchstart",u,nd)}},[]);var p=t.removeScrollBar,m=t.inert;return x.createElement(x.Fragment,null,m?x.createElement(s,{styles:nJ(i)}):null,p?x.createElement(QY,{gapMode:t.gapMode}):null)}function oJ(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const aJ=IY(I8,sJ);var z8=x.forwardRef(function(t,e){return x.createElement(db,oo({},t,{ref:e,sideCar:aJ}))});z8.classNames=db.classNames;var lJ=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},sd=new WeakMap,_0=new WeakMap,V0={},t1=0,_8=function(t){return t&&(t.host||_8(t.parentNode))},cJ=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=_8(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},uJ=function(t,e,r,n){var i=cJ(e,Array.isArray(t)?t:[t]);V0[r]||(V0[r]=new WeakMap);var s=V0[r],o=[],a=new Set,l=new Set(i),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};i.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else try{var p=h.getAttribute(n),m=p!==null&&p!=="false",g=(sd.get(h)||0)+1,y=(s.get(h)||0)+1;sd.set(h,g),s.set(h,y),o.push(h),g===1&&m&&_0.set(h,!0),y===1&&h.setAttribute(r,"true"),m||h.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",h,v)}})};return u(e),a.clear(),t1++,function(){o.forEach(function(d){var h=sd.get(d)-1,p=s.get(d)-1;sd.set(d,h),s.set(d,p),h||(_0.has(d)||d.removeAttribute(n),_0.delete(d)),p||d.removeAttribute(r)}),t1--,t1||(sd=new WeakMap,sd=new WeakMap,_0=new WeakMap,V0={})}},dJ=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=lJ(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),uJ(n,i,r,"aria-hidden")):function(){return null}},uA="Dialog",[V8,roe]=mo(uA),[fJ,Os]=V8(uA),H8=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:o=!0}=t,a=x.useRef(null),l=x.useRef(null),[c=!1,u]=yo({prop:n,defaultProp:i,onChange:s});return f.jsx(fJ,{scope:e,triggerRef:a,contentRef:l,contentId:Pl(),titleId:Pl(),descriptionId:Pl(),open:c,onOpenChange:u,onOpenToggle:x.useCallback(()=>u(d=>!d),[u]),modal:o,children:r})};H8.displayName=uA;var G8="DialogTrigger",W8=x.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Os(G8,r),s=ar(e,i.triggerRef);return f.jsx(Ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":hA(i.open),...n,ref:s,onClick:Pe(t.onClick,i.onOpenToggle)})});W8.displayName=G8;var dA="DialogPortal",[hJ,K8]=V8(dA,{forceMount:void 0}),q8=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:i}=t,s=Os(dA,e);return f.jsx(hJ,{scope:e,forceMount:r,children:x.Children.map(n,o=>f.jsx(vo,{present:r||s.open,children:f.jsx(lk,{asChild:!0,container:i,children:o})}))})};q8.displayName=dA;var _y="DialogOverlay",Q8=x.forwardRef((t,e)=>{const r=K8(_y,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=Os(_y,t.__scopeDialog);return s.modal?f.jsx(vo,{present:n||s.open,children:f.jsx(pJ,{...i,ref:e})}):null});Q8.displayName=_y;var pJ=x.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Os(_y,r);return f.jsx(z8,{as:uh,allowPinchZoom:!0,shards:[i.contentRef],children:f.jsx(Ge.div,{"data-state":hA(i.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),ku="DialogContent",X8=x.forwardRef((t,e)=>{const r=K8(ku,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=Os(ku,t.__scopeDialog);return f.jsx(vo,{present:n||s.open,children:s.modal?f.jsx(gJ,{...i,ref:e}):f.jsx(mJ,{...i,ref:e})})});X8.displayName=ku;var gJ=x.forwardRef((t,e)=>{const r=Os(ku,t.__scopeDialog),n=x.useRef(null),i=ar(e,r.contentRef,n);return x.useEffect(()=>{const s=n.current;if(s)return dJ(s)},[]),f.jsx(Y8,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Pe(t.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Pe(t.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:Pe(t.onFocusOutside,s=>s.preventDefault())})}),mJ=x.forwardRef((t,e)=>{const r=Os(ku,t.__scopeDialog),n=x.useRef(!1),i=x.useRef(!1);return f.jsx(Y8,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o,a;(o=t.onCloseAutoFocus)==null||o.call(t,s),s.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),s.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:s=>{var l,c;(l=t.onInteractOutside)==null||l.call(t,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=s.target;((c=r.triggerRef.current)==null?void 0:c.contains(o))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),Y8=x.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=t,a=Os(ku,r),l=x.useRef(null),c=ar(e,l);return AY(),f.jsxs(f.Fragment,{children:[f.jsx(j8,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s,children:f.jsx(jw,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":hA(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(vJ,{titleId:a.titleId}),f.jsx(wJ,{contentRef:l,descriptionId:a.descriptionId})]})]})}),fA="DialogTitle",J8=x.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Os(fA,r);return f.jsx(Ge.h2,{id:i.titleId,...n,ref:e})});J8.displayName=fA;var Z8="DialogDescription",$8=x.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Os(Z8,r);return f.jsx(Ge.p,{id:i.descriptionId,...n,ref:e})});$8.displayName=Z8;var eM="DialogClose",tM=x.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Os(eM,r);return f.jsx(Ge.button,{type:"button",...n,ref:e,onClick:Pe(t.onClick,()=>i.onOpenChange(!1))})});tM.displayName=eM;function hA(t){return t?"open":"closed"}var rM="DialogTitleWarning",[noe,nM]=V6(rM,{contentName:ku,titleName:fA,docsSlug:"dialog"}),vJ=({titleId:t})=>{const e=nM(rM),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
395
396If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
397
398For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return x.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},yJ="DialogDescriptionWarning",wJ=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${nM(yJ).contentName}}.`;return x.useEffect(()=>{var s;const i=(s=t.current)==null?void 0:s.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},bJ=H8,xJ=W8,SJ=q8,iM=Q8,sM=X8,oM=J8,aM=$8,EJ=tM;const pA=bJ,gA=xJ,kJ=SJ,lM=x.forwardRef(({className:t,...e},r)=>f.jsx(iM,{ref:r,className:Te("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));lM.displayName=iM.displayName;const fb=x.forwardRef(({className:t,children:e,...r},n)=>f.jsxs(kJ,{children:[f.jsx(lM,{}),f.jsxs(sM,{ref:n,className:Te("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
398nded-lg",t),...r,children:[e,f.jsxs(EJ,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[f.jsx(Tm,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));fb.displayName=sM.displayName;const hb=({className:t,...e})=>f.jsx("div",{className:Te("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});hb.displayName="DialogHeader";const pb=({className:t,...e})=>f.jsx("div",{className:Te("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});pb.displayName="DialogFooter";const gb=x.forwardRef(({className:t,...e},r)=>f.jsx(oM,{ref:r,className:Te("text-lg font-semibold leading-none tracking-tight",t),...e}));gb.displayName=oM.displayName;const mb=x.forwardRef(({className:t,...e},r)=>f.jsx(aM,{ref:r,className:Te("text-sm text-muted-foreground",t),...e}));mb.displayName=aM.displayName;const AJ=({onApplyStamp:t})=>{const[e,r]=x.useState(!1),[n,i]=x.useState(!1),[s,o]=x.useState(""),[a,l]=x.useState("draw"),[c,u]=x.useState(2),[d,h]=x.useState({x:50,y:50}),p=x.useRef(null),m=x.useRef(null),g=()=>{const N=p.current;if(!N)return;N.width=N.offsetWidth*3,N.height=N.offsetHeight*3;const R=N.getContext("2d");R&&(R.scale(3,3),R.lineCap="round",R.lineJoin="round",R.strokeStyle="black",R.lineWidth=c,R.clearRect(0,0,N.width,N.height),m.current=R)},y=({nativeEvent:N})=>{if(!m.current)return;const{offsetX:R,offsetY:F}=N;m.current.beginPath(),m.current.moveTo(R,F),i(!0)},v=()=>{m.current&&(m.current.closePath(),i(!1))},w=({nativeEvent:N})=>{if(!n||!m.current)return;const{offsetX:R,offsetY:F}=N;m.current.lineTo(R,F),m.current.stroke()},b=()=>{!p.current||!m.current||m.current.clearRect(0,0,p.current.width,p.current.height)},E=()=>
398{if(!p.current||!m.current)return;b(),m.current.font="italic 24px cursive",m.current.fillStyle="black";const N=m.current.measureText(s).width,F=(p.current.width/3-N)/2;m.current.fillText(s,F,40)},A=N=>{l(N),b(),N==="type"&&s&&setTimeout(E,50)},k=N=>{o(N.target.value),a==="type"&&setTimeout(E,50)},P=N=>{const R=N[0];u(R),m.current&&(m.current.lineWidth=R)},C=()=>{if(!p.current)return;const N=p.current.toDataURL("image/png");t(N,d),r(!1)};return ne.useEffect(()=>{e&&setTimeout(g,100)},[e]),ne.useEffect(()=>{a==="type"&&s&&e&&setTimeout(E,50)},[s,a,e]),f.jsxs(pA,{open:e,onOpenChange:r,children:[f.jsx(gA,{asChild:!0,children:f.jsxs(oe,{variant:"outline",className:"flex items-center gap-2",onClick:()=>r(!0),children:[f.jsx(Mz,{className:"h-4 w-4"}),f.jsx("span",{children:"Add Signature Stamp"})]})}),f.jsxs(fb,{className:"sm:max-w-md",children:[f.jsxs(hb,{children:[f.jsx(gb,{children:"Add Your Signature"}),f.jsx(mb,{children:"Create a signature stamp to apply to your document."})]}),f.jsxs("div",{className:"flex space-x-2 my-4",children:[f.jsxs(oe,{variant:a==="draw"?"default":"outline",size:"sm",onClick:()=>A("draw"),className:"flex-1",children:[f.jsx(Xz,{className:"h-4 w-4 mr-2"}),"Draw"]}),f.jsxs(oe,{variant:a==="type"?"default":"outline",size:"sm",onClick:()=>A("type"),className:"flex-1",children:[f.jsx(Qz,{className:"h-4 w-4 mr-2"}),"Type"]})]}),a==="type"&&f.jsxs("div",{className:"mb-4",children:[f.jsx(gt,{htmlFor:"signature-text",children:"Type your signature"}),f.jsx(hr,{id:"signature-text",value:s,onChange:k,placeholder:"Your Name",className:"font-cursive"})]}),a==="draw"&&f.jsxs("div",{className:"mb-4",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx(gt,{htmlFor:"line-width",children:"Line Width"}),f.jsxs("span",{className:"text-sm text-muted-foreground",children:[c,"px"]})]}),f.jsx(R8,{id:"line-width",min:1,max:5,step:.5,value:[c],onValueChange:P,className:"my-2"})]}),f.jsxs("div",{className:"border border-gray-200 rounded-md relative",children:[f.jsx("canvas",{ref:p,onMouseDown:y,onMouseUp:v,onMouseMove:w,onMouseLeave:v,className:"w-full h-32 cursor-crosshair bg-white rounded-md",style:{touchAction:"none"}}),a==="draw"&&f.jsx(oe,{variant:"ghost",size:"sm",onClick:b,className:"absolute bottom-2 right-2 bg-white/80",children:"Clear"})]}),f.jsxs(pb,{className:"mt-4",children:[f.jsx(oe,{variant:"outline",onClick:()=>r(!1),children:"Cancel"}),f.jsxs(oe,{onClick:C,className:"gap-1",children:[f.jsx(gu,{className:"h-4 w-4"}),"Apply Signature"]})]})]})]})},CJ=({file:t,signedPdfFile:e,errorMessage:r,signatureType:n,setSignatureType:i,isLoading:s,mintingTx:o,verifyingBlockchain:a,isConnected:l,walletSignatureStatus:c,onFileUpload:u,onSignDocument:d,onApplySignature:h})=>{const p=e||t;return f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[f.jsxs("div",{className:"space-y-6",children:[t?f.jsx(Vt,{children:f.jsxs(Jt,{className:"p-6",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[f.jsx("div",{className:"p-2 rounded-full bg-web3-purple/20",children:f.jsx(Jn,{className:"h-6 w-6 text-web3-purple"})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium truncate max-w-[300px]",children:t.name}),f.jsxs("p",{className:"text-xs text-muted-foreground",children:[(t.size/1024/1024).toFixed(2)," MB",e&&f.jsx("span",{className:"ml-2 text-green-600",children:"• Signature Applied"})]})]})]}),f.jsx(ZX,{value:n,onChange:i,disabled:s}),n==="premium"&&f.jsx("div",{className:"mt-4",children:f.jsx(p8,{isConnected:l,status:c})}),h&&f.jsx("div",{className:"mt-4",children:f.jsx(AJ,{onApplyStamp:h})}),f.jsx(oe,{className:"w-full mt-4 bg-web3-purple hover:bg-web3-purple/80",onClick:d,disabled:s||o||a,children:s?o?"Recording on Blockchain...":a?"Verifying on Blockchain...":"Processing...":f.jsxs(f.Fragment,{children:[f.jsx(Lz,{className:"mr-2 h-4 w-4"}),"Sign Document"]})})]})}):f.jsx(oA,{onFileUpload:u}),r&&f.jsxs(Sn,{className:"border-red-200 bg-red-50",children:[f.jsx(ql,{className:"h-4 w-4 text-red-600"}),f.jsx(En,{className:"text-red-600",children:r})]})]}),f.jsx("div",{children:f.jsx(aA,{file:p})})]})},cM=({file:t,showPdf:e})=>{const[r,n]=x.useState(null);return x.useEffect(()=>{if(t&&e){const i=URL.createObjectURL(t);return n(i),()=>{i&&URL.revokeObjectURL(i)}}},[t,e]),!e||!r?null:f.jsx("div",{className:"mt-4 border rounded-lg overflow-hidden h-[400px]",children:f.jsx("iframe",{src:r,className:"w-full h-full",title:"Verified Document"})})},BT=["https://eth-mainnet.g.alchemy.com/v2/demo","https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161","https://rpc.ankr.com/eth","https://rpc.flashbots.net","https://ethereum.publicnode.com"],T2=["0xa7c71af3db915750b1db1b7817bab6972e70af318cd126abc0cfe7eaba08b63d","0x4f53d26cbe5d42f027c883113733d526f1b6ac9125a64d7c97ebb4f8d6f21b22","0xe67071db25331ea3a92a4e28b516c95f2d5b
39862b68329b70386c41df2e2767461","0x49b486e075d5cb000aa6bc7bd4d9bea6ec2f3f2ecde5e399f38bbaf"],Vy=async t=>{if(!t||!t.startsWith("0x")||t.length!==66)return{exists:!1,error:"Invalid transaction hash format"};if(t.includes("MOCK"))return console.log("Mock transaction detected, skipping blockchain verification"),{exists:!1,isMock:!0,error:"This is a simulated transaction for development purposes"};T2.includes(t)&&console.log("Demo transaction detected, attempting verification with extra care");const e=[];for(const r of BT)try{console.log(`Attempting to verify transaction using provider: ${r}`);const n=new DX(r,void 0,{staticNetwork:!0,pollingInterval:5e3});let i=null;for(let a=1;a<=3;a++)try{if(i=await n.getTransactionReceipt(t),i)break;console.log(`Receipt attempt ${a} with ${r} returned null, retrying...`),await new Promise(l=>setTimeout(l,2e3))}catch(l){console.log(`Receipt attempt ${a} failed, retrying...`,l)}if(!i){const a=`Transaction not found on provider: ${r}`;console.log(a),e.push(a);continue}let s=null;for(let a=1;a<=3;a++)try{if(s=await n.getTransaction(t),s)break;console.log(`Transaction attempt ${a} with ${r} returned null, retrying...`),await new Promise(l=>setTimeout(l,2e3))}catch(l){console.log(`Transaction attempt ${a} failed, retrying...`,l)}if(!s){const a=`Transaction details not found on provider: ${r}`;console.log(a),e.push(a);continue}let o=null;for(let a=1;a<=3;a++)try{if(o=await n.getBlock(i.blockNumber),o)break;console.log(`Block attempt ${a} with ${r} returned null, retrying...`),await new Promise(l=>setTimeout(l,2e3))}catch(l){console.log(`Block attempt ${a} failed, retrying...`,l)}return console.log("Transaction verified on blockchain:",{receipt:i,tx:s,block:o}),{exists:!0,details:{blockNumber:i.blockNumber,timestamp:o?new Date(Number(o.timestamp)*1e3):void 0,from:s.from,to:s.to??void 0,status:i.status===1n}}}catch(n){const i=`Error with provider ${r}: ${n instanceof Error?n.message:String(n)}`;console.error(i),e.push(i)}return{exists:!1,error:`Transaction verification failed after trying ${BT.length} providers. Errors: ${e.join(" | ")}`}},uM=t=>/^0x[a-fA-F0-9]{64}$/.test(t),NJ=async(t,e)=>{try{console.log("Signing document with hash:",e);const r=await t.sendTransaction({to:await t.getAddress(),value:PW("0"),data:ce(ho(`Document Hash: ${e}`)),gasLimit:1e5});console.log("Transaction submitted:",r.hash),console.log("Waiting for transaction to be mined...");const n=await r.wait();return console.log("Transaction mined in block:",n==null?void 0:n.blockNumber),r.hash}catch(r){throw console.error("Error signing document on blockchain:",r),new Error(r.message||"Failed to sign document on blockchain")}},LT=()=>{const t=Math.floor(Math.random()*T2.length);return T2[t]},PJ=({file:t,blockchainError:e,verifyingBlockchain:r,signedDocument:n,cryptoSignature:i,onRetryBlockchainVerification:s,onSendVerificationEmail:o})=>{const a=n&&uM(n.transactionHash);return n?f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[f.jsxs("div",{className:"space-y-6",children:[f.jsxs(Vt,{className:"border-green-200",children:[f.jsx(Yi,{className:"bg-green-50 border-b border-green-200",children:f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"p-2 rounded-full bg-green-100",children:f.jsx(pc,{className:"h-6 w-6 text-green-600"})}),f.jsxs("div",{children:[f.jsx(Ji,{children:"Document Signed Successfully"}),f.jsx(Zi,{children:"Your document has been signed and secured"})]})]})}),f.jsx(Jt,{className:"pt-6",children:f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"grid grid-cols-3 gap-2 text-sm",children:[f.jsx("div",{className:"text-muted-foreground",children:"Document:"}),f.jsx("div",{className:"col-span-2 font-medium truncate",children:n.title}),f.jsx("div",{className:"text-muted-foreground",children:"Signer:"}),f.jsx("div",{className:"col-span-2 truncate",children:n.signer}),f.jsx("div",{className:"text-muted-foreground",children:"Timestamp:"}),f.jsx("div",{className:"col-span-2",children:n.timestamp}),f.jsx("div",{className:"text-muted-foreground",children:"Document Hash:"}),f.jsx("div",{className:"col-span-2 font-mono text-xs break-all",children:n.hash}),f.jsx("div",{className:"text-muted-foreground",children:"Transaction:"}),f.jsxs("div",{className:"col-span-2 font-mono text-xs break-all",children:[n.transactionHash,!a&&f.jsx("span",{className:"block text-amber-600 font-normal mt-1",children:"(Simulated for demo purposes)"})]})]}),e&&!n.blockchainVerified&&f.jsxs(Sn,{className:"mt-4 bg-amber-50 border-amber-200",children:[f.jsx(ql,{className:"h-4 w-4 text-amber-600"}),f.jsxs(En,{className:"text-amber-700",children:[e,a&&f.jsx("div",{className:"mt-2",children:f.jsx(oe,{variant:"outline",size:"sm",onClick:s,disabled:r,children:r?f.jsxs(f.Fragment,{children:[f.jsx(mu,{className:"h-4 w-4 mr-2 animate-spin"}),"Verifying..."]}):f.jsxs(f.Fragment,{children:[f.jsx(fk,{className:"h-4 w-4 mr-2"}),"Retry Verification"]})})})]})]})]})})]}),i&&f.jsxs(Vt,{children:[f.jsxs(Yi,{children:[f.jsx(Ji,{children:"Cryptographic Signature"}),f.jsx(Zi,{children:"This unique signature was created using your wallet's private key"})]}),f.jsx(Jt,{children:f.jsx("div",{className:"p-3 bg-gray-50 rounded-md",children:f.jsx("p",{className:"font-mono text-xs break-all",children:i})})})]}),f.jsxs("div",{className:"mt-6 flex flex-wrap gap-4",children:[f.jsx(oe,{onClick:()=>
398{if(t){const l=URL.createObjectURL(t),c=document.createElement("a");c.href=l,c.download=t.name,document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL(l)}},disabled:!t,children:"Download Document"}),f.jsx(oe,{variant:"outline",onClick:()=>{const l=`/verify?hash=${encodeURIComponent(n.hash)}`;window.open(l,"_blank")},children:"Verification Page"})]})]}),f.jsx("div",{children:f.jsx(cM,{file:t,showPdf:!0})})]}):null};/*! *****************************************************************************
399Copyright (c) Microsoft Corporation.
400
401Permission to use, copy, modify, and/or distribute this software for any
402purpose with or without fee is hereby granted.
403
404THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
405REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
406AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
407INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
408LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
409OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
410PERFORMANCE OF THIS SOFTWARE.
411***************************************************************************** */var R2=function(t,e){return R2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},R2(t,e)};function se(t,e){R2(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Fe=function(){return Fe=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];
vendor: 8,700 bytes, line 411
411for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Fe.apply(this,arguments)};function TJ(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function Me(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((n=n.apply(t,[])).next())})}function Be(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],i=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function it(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),i=0,e=0;e<r;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,i++)n[i]=s[o];return n}var Od="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bp=new Uint8Array(256);for(var H0=0;H0<Od.length;H0++)Bp[Od.charCodeAt(H0)]=H0;var RJ=function(t){for(var e="",r=t.length,n=0;n<r;n+=3)e+=Od[t[n]>>2],e+=Od[(t[n]&3)<<4|t[n+1]>>4],e+=Od[(t[n+1]&15)<<2|t[n+2]>>6],e+=Od[t[n+2]&63];return r%3===2?e=e.substring(0,e.length-1)+"=":r%3===1&&(e=e.substring(0,e.length-2)+"=="),e},UT=function(t){var e=t.length*.75,r=t.length,n,i=0,s,o,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var c=new Uint8Array(e);for(n=0;n<r;n+=4)s=Bp[t.charCodeAt(n)],o=Bp[t.charCodeAt(n+1)],a=Bp[t.charCodeAt(n+2)],l=Bp[t.charCodeAt(n+3)],c[i++]=s<<2|o>>4,c[i++]=(o&15)<<4|a>>2,c[i++]=(a&3)<<6|l&63;return c},jJ=/^(data)?:?([\w\/\+]+)?;?(charset=[\w-]+|base64)?.*,/i,FJ=function(t){var e=t.trim(),r=e.substring(0,100),n=r.match(jJ);if(!n)return UT(e);var i=n[0],s=e.substring(i.length);return UT(s)},Re=function(t){return t.charCodeAt(0)},OJ=function(t){return t.codePointAt(0)},Um=function(t,e){return Es(t.toString(16),e,"0").toUpperCase()},vb=function(t){return Um(t,2)},ea=function(t){return String.fromCharCode(t)},DJ=function(t){return ea(parseInt(t,16))},Es=function(t,e,r){for(var n="",i=0,s=e-t.length;i<s;i++)n+=r;return n+t},Qr=function(t,e,r){for(var n=t.length,i=0;i<n;i++)e[r++]=t.charCodeAt(i);return n},IJ=function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},zm=function(t){return t.replace(/\t|\u0085|\u2028|\u2029/g,"    ").replace(/[\b\v]/g,"")},MJ=["\\n","\\f","\\r","\\u000B"],dM=function(t){return/^[\n\f\r\u000B]$/.test(t)},fM=function(t){return t.split(/[\n\f\r\u000B]/)},hM=function(t){return t.replace(/[\n\f\r\u000B]/g," ")},pM=function(t,e){var r=t.charCodeAt(e),n,i=e+1,s=1;return r>=55296&&r<=56319&&t.length>i&&(n=t.charCodeAt(i),n>=56320&&n<=57343&&(s=2)),[t.slice(e,e+s),s]},BJ=function(t){for(var e=[],r=0,n=t.length;r<n;){var i=pM(t,r),s=i[0],o=i[1];e.push(s),r+=o}return e},LJ=function(t){for(var e=MJ.join("|"),r=["$"],n=0,i=t.length;n<i;n++){var s=t[n];if(dM(s))throw new TypeError("`wordBreak` must not include "+e);r.push(s===""?".":IJ(s))}var o=r.join("|");return new RegExp("("+e+")|((.*?)("+o+"))","gm")},UJ=function(t,e,r,n){for(var i=LJ(e),s=zm(t).match(i),o="",a=0,l=[],c=function(){o!==""&&l.push(o),o="",a=0},u=0,d=s.length;u<d;u++){var h=s[u];if(dM(h))c();else{var p=n(h);a+p>r&&c(),o+=h,a+=p}}return c(),l},zJ=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,gM=function(t){var e=t.match(zJ);if(e){var r=e[1],n=e[2],i=n===void 0?"01":n,s=e[3],o=s===void 0?"01":s,a=e[4],l=a===void 0?"00":a,c=e[5],u=c===void 0?"00":c,d=e[6],h=d===void 0?"00":d,p=e[7],m=p===void 0?"Z":p,g=e[8],y=g===void 0?"00":g,v=e[9],w=v===void 0?"00":v,b=m==="Z"?"Z":""+m+y+":"+w,E=new Date(r+"-"+i+"-"+o+"T"+l+":"+u+":"+h+b);return E}},mA=function(t,e){for(var r,n=0,i;n<t.length;){var s=t.substring(n).match(e);if(!s)return{match:i,pos:n};i=s,n+=((r=s.index)!==null&&r!==void 0?r:0)+s[0].length}return{match:i,pos:n}},Hy=function(t){return t[t.length-1]},j2=function(t){if(t instanceof Uint8Array)return t;for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++)r[n]=t.charCodeAt(n);return r},_J=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=t.length,n=[],i=0;i<r;i++){var s=t[i];n[i]=s instanceof Uint8Array?s:j2(s)}for(var o=0,i=0;i<r;i++)o+=t[i].length;for(var a=new Uint8Array(o),l=0,c=0;c<r;c++)for(var u=n[c],d=0,h=u.length;d<h;d++)a[l++]=u[d];return a},VJ=function(t){for(var e=0,r=0,n=t.length;r<n;r++)e+=t[r].length;for(var i=new Uint8Array(e),s=0,r=0,n=t.length;r<n;r++){var o=t[r];i.set(o,s),s+=o.length}return i},mM=function(t){for(var e="",r=0,n=t.length;r<n;r++)e+=ea(t[r]);return e},HJ=function(t,e){return t.id-e.id},GJ=function(t,e){for(var r=[],n=0,i=t.length;n<i;n++){var s=t[n],o=t[n-1];(n===0||e(s)!==e(o))&&r.push(s)}return r},od=function(t){for(var e=t.length,r=0,n=Math.floor(e/2);r<n;r++){var i=r,s=e-r-1,o=t[r];t[i]=t[s],t[s]=o}return t},WJ=function(t){for(var e=0,r=0,n=t.length;r<n;r++)e+=t[r];return e},KJ=function(t,e){for(var r=new Array(e-t),n=0,i=r.length;n<i;n++)r[n]=t+n;return r},qJ=function(t,e){for(var r=new Array(e.length),n=0,i=e.length;n<i;n++)r[n]=t[e[n]];return r},QJ=function(t){return t instanceof Uint8Array||t instanceof ArrayBuffer||typeof t=="string"},mp=function(t){if(typeof t=="string")return FJ(t);if(t instanceof ArrayBuffer)return new Uint8Array(t);if(t instanceof Uint8Array)return t;throw new TypeError("`input` must be one of `string | ArrayBuffer | Uint8Array`")},kh=function(){return new Promise(function(t){setTimeout(function(){return t()},0)})},XJ=function(t,e){e===void 0&&(e=!0);var r=[];e&&r.push(65279);for(var n=0,i=t.length;n<i;){var s=t.codePointAt(n);if(s<65536)r.push(s),n+=1;else if(s<1114112)r.push(vM(s),yM(s)),n+=2;else throw new Error("Invalid code point: 0x"+vb(s))}return new Uint16Array(r)},YJ=function(t){return t>=0&&t<=65535},JJ=function(t){return t>=65536&&t<=1114111},vM=function(t){return Math.floor((t-65536)/1024)+55296},yM=function(t){return(t-65536)%1024+56320},Rl;(function(t){t.BigEndian="BigEndian",t.LittleEndian="LittleEndian"})(Rl||(Rl={}));var vp="�".codePointAt(0),wM=function(t,e){if(e===void 0&&(e=!0),t.length<=1)return String.fromCodePoint(vp);for(var r=e?$J(t):Rl.BigEndian,n=e?2:0,i=[];t.length-n>=2;){var s=_T(t[n++],t[n++],r);if(ZJ(s))if(t.length-n<2)i.push(vp);else{var o=_T(t[n++],t[n++],r);zT(o)?i.push(s,o):i.push(vp)}else zT(s)?(n+=2,i.push(vp)):i.push(s)}return n<t.length&&i.push(vp),String.fromCodePoint.apply(String,i)},ZJ=function(t){return t>=55296&&t<=56319},zT=function(t){return t>=56320&&t<=57343},_T=function(t,e,r){if(r===Rl.LittleEndian)return e<<8|t;if(r===Rl.BigEndian)return t<<8|e;throw new Error("Invalid byteOrder: "+r)},$J=function(t){return bM(t)?Rl.BigEndian:xM(t)?Rl.LittleEndian:Rl.BigEndian},bM=function(t){return t[0]===254&&t[1]===255},xM=function(t){return t[0]===255&&t[1]===254},SM=function(t){return bM(t)||xM(t)},eZ=function(t){var e=String(t);if(Math.abs(t)<1){var r=parseInt(t.toString().split("e-")[1]);if(r){var n=t<0;n&&(t*=-1),t*=Math.pow(10,r-1),e="0."+new Array(r).join("0")+t.toString().substring(2),n&&(e="-"+e)}}else{var r=parseInt(t.toString().split("+")[1]);r>20&&(r-=20,t/=Math.pow(10,r),e=t.toString()+new Array(r+1).join("0"))}return e},Bv=function(t){return Math.ceil(t.toString(2).length/8)},ad=function(t){for(var e=new Uint8Array(Bv(t)),r=1;r<=e.length;r++)e[r-1]=t>>(e.length-r)*8;return e},_m=function(t){throw new Error(t)},ha={};(function(t){var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(s,o){return Object.prototype.hasOwnProperty.call(s,o)}t.assign=function(s){for(var o=Array.prototype.slice.call(arguments,1
vendor: 6,102 bytes, line 411
411);o.length;){var a=o.shift();if(a){if(typeof a!="object")throw new TypeError(a+"must be non-object");for(var l in a)r(a,l)&&(s[l]=a[l])}}return s},t.shrinkBuf=function(s,o){return s.length===o?s:s.subarray?s.subarray(0,o):(s.length=o,s)};var n={arraySet:function(s,o,a,l,c){if(o.subarray&&s.subarray){s.set(o.subarray(a,a+l),c);return}for(var u=0;u<l;u++)s[c+u]=o[a+u]},flattenChunks:function(s){var o,a,l,c,u,d;for(l=0,o=0,a=s.length;o<a;o++)l+=s[o].length;for(d=new Uint8Array(l),c=0,o=0,a=s.length;o<a;o++)u=s[o],d.set(u,c),c+=u.length;return d}},i={arraySet:function(s,o,a,l,c){for(var u=0;u<l;u++)s[c+u]=o[a+u]},flattenChunks:function(s){return[].concat.apply([],s)}};t.setTyped=function(s){s?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,n)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(e)})(ha);var Vm={},wo={},_h={},tZ=ha,rZ=4,VT=0,HT=1,nZ=2;function Vh(t){for(var e=t.length;--e>=0;)t[e]=0}var iZ=0,EM=1,sZ=2,oZ=3,aZ=258,vA=29,Hm=256,qg=Hm+1+vA,Zd=30,yA=19,kM=2*qg+1,jc=15,r1=16,lZ=7,wA=256,AM=16,CM=17,NM=18,F2=[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],Lv=[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],cZ=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],PM=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],uZ=512,Do=new Array((qg+2)*2);Vh(Do);var sg=new Array(Zd*2);Vh(sg);var Qg=new Array(uZ);Vh(Qg);var Xg=new Array(aZ-oZ+1);Vh(Xg);var bA=new Array(vA);Vh(bA);var Gy=new Array(Zd);Vh(Gy);function n1(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}var TM,RM,jM;function i1(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function FM(t){return t<256?Qg[t]:Qg[256+(t>>>7)]}function Yg(t,e){t.pending_buf[t.pending++]=e&255,t.pending_buf[t.pending++]=e>>>8&255}function qn(t,e,r){t.bi_valid>r1-r?(t.bi_buf|=e<<t.bi_valid&65535,Yg(t,t.bi_buf),t.bi_buf=e>>r1-t.bi_valid,t.bi_valid+=r-r1):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function ao(t,e,r){qn(t,r[e*2],r[e*2+1])}function OM(t,e){var r=0;do r|=t&1,t>>>=1,r<<=1;while(--e>0);return r>>>1}function dZ(t){t.bi_valid===16?(Yg(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)}function fZ(t,e){var r=e.dyn_tree,n=e.max_code,i=e.stat_desc.static_tree,s=e.stat_desc.has_stree,o=e.stat_desc.extra_bits,a=e.stat_desc.extra_base,l=e.stat_desc.max_length,c,u,d,h,p,m,g=0;for(h=0;h<=jc;h++)t.bl_count[h]=0;for(r[t.heap[t.heap_max]*2+1]=0,c=t.heap_max+1;c<kM;c++)u=t.heap[c],h=r[r[u*2+1]*2+1]+1,h>l&&(h=l,g++),r[u*2+1]=h,!(u>n)&&(t.bl_count[h]++,p=0,u>=a&&(p=o[u-a]),m=r[u*2],t.opt_len+=m*(h+p),s&&(t.static_len+=m*(i[u*2+1]+p)));if(g!==0){do{for(h=l-1;t.bl_count[h]===0;)h--;t.bl_count[h]--,t.bl_count[h+1]+=2,t.bl_count[l]--,g-=2}while(g>0);for(h=l;h!==0;h--)for(u=t.bl_count[h];u!==0;)d=t.heap[--c],!(d>n)&&(r[d*2+1]!==h&&(t.opt_len+=(h-r[d*2+1])*r[d*2],r[d*2+1]=h),u--)}}function DM(t,e,r){var n=new Array(jc+1),i=0,s,o;for(s=1;s<=jc;s++)n[s]=i=i+r[s-1]<<1;for(o=0;o<=e;o++){var a=t[o*2+1];a!==0&&(t[o*2]=OM(n[a]++,a))}}function hZ(){var t,e,r,n,i,s=new Array(jc+1);for(r=0,n=0;n<vA-1;n++)for(bA[n]=r,t=0;t<1<<F2[n];t++)Xg[r++]=n;for(Xg[r-1]=n,i=0,n=0;n<16;n++)for(Gy[n]=i,t=0;t<1<<Lv[n];t++)Qg[i++]=n;for(i>>=7;n<Zd;n++)for(Gy[n]=i<<7,t=0;t<1<<Lv[n]-7;t++)Qg[256+i++]=n;for(e=0;e<=jc;e++)s[e]=0;for(t=0;t<=143;)Do[t*2+1]=8,t++,s[8]++;for(;t<=255;)Do[t*2+1]=9,t++,s[9]++;for(;t<=279;)Do[t*2+1]=7,t++,s[7]++;for(;t<=287;)Do[t*2+1]=8,t++,s[8]++;for(DM(Do,qg+1,s),t=0;t<Zd;t++)sg[t*2+1]=5,sg[t*2]=OM(t,5);TM=new n1(Do,F2,Hm+1,qg,jc),RM=new n1(sg,Lv,0,Zd,jc),jM=new n1(new Array(0),cZ,0,yA,lZ)}function IM(t){var e;for(e=0;e<qg;e++)t.dyn_ltree[e*2]=0;for(e=0;e<Zd;e++)t.dyn_dtree[e*2]=0;for(e=0;e<yA;e++)t.bl_tree[e*2]=0;t.dyn_ltree[wA*2]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function MM(t){t.bi_valid>8?Yg(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function pZ(t,e,r,n){MM(t),Yg(t,r),Yg(t,~r),tZ.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}function GT(t,e,r,n){var i=e*2,s=r*2;return t[i]<t[s]||t[i]===t[s]&&n[e]<=n[r]}function s1(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&GT(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!GT(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function WT(t,e,r){var n,i,s=0,o,a;if(t.last_lit!==0)do n=t.pending_buf[t.d_buf+s*2]<<8|t.pending_buf[t.d_buf+s*2+1],i=t.pending_buf[t.l_buf+s],s++,n===0?ao(t,i,e):(o=Xg[i],ao(t,o+Hm+1,e),a=F2[o],a!==0&&(i-=bA[o],qn(t,i,a)),n--,o=FM(n),ao(t,o,r),a=Lv[o],a!==0&&(n-=Gy[o],qn(t,n,a)));while(s<t.last_lit);ao(t,wA,e)}function O2(t,e){var r=e.dyn_tree,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,s=e.stat_desc.elems,o,a,l=-1,c;for(t.heap_len=0,t.heap_max=kM,o=0;o<s;o++)r[o*2]!==0?(t.heap[++t.heap_len]=l=o,t.depth[o]=0):r[o*2+1]=0;for(;t.heap_len<2;)c=t.heap[++t.heap_len]=l<2?++l:0,r[c*2]=1,t.depth[c]=0,t.opt_len--,i&&(t.static_len-=n[c*2+1]);for(e.max_code=l,o=t.heap_len>>1;o>=1;o--)s1(t,r,o);c=s;do o=t.heap[1],t.heap[1]=t.heap[t.heap_len--],s1(t,r,1),a=t.heap[1],t.heap[--t.heap_max]=o,t.heap[--t.heap_max]=a,r[c*2]=r[o*2]+r[a*2],t.depth[c]=(t.depth[o]>=t.depth[a]?t.depth[o]:t.depth[a])+1,r[o*2+1]=r[a*2+1]=c,t.heap[1]=c++,s1(t,r,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],fZ(t,e),DM(r,l,t.bl_count)}function KT(t,e,r){var n,i=-1,s,o=e[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),e[(r+1)*2+1]=65535,n=0;n<=r;n++)s=o,o=e[(n+1)*2+1],!(++a<l&&s===o)&&(a<c?t.bl_tree[s*2]+=a:s!==0?(s!==i&&t.bl_tree[s*2]++,t.bl_tree[AM*2]++):a<=10?t.bl_tree[CM*2]++:t.bl_tree[NM*2]++,a=0,i=s,o===0?(l=138,c=3):s===o?(l=6,c=3):(l=7,c=4))}function qT(t,e,r){var n,i=-1,s,o=e[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),n=0;n<=r;n++)if(s=o,o=e[(n+1)*2+1],!(++a<l&&s===o)){if(a<c)do ao(t,s,t.bl_tree);while(--a!==0);else s!==0?(s!==i&&(ao(t,s,t.bl_tree),a--),ao(t,AM,t.bl_tree),qn(t,a-3,2)):a<=10?(ao(t,CM,t.bl_tree),qn(t,a-3,3)):(ao(t,NM,t.bl_tree),qn(t,a-11,7));a=0,i=s,o===0?(l=138,c=3):s===o?(l=6,c=3):(l=7,c=4)}}function gZ(t){var e;
vendor: 1,780 bytes, line 411
411for(KT(t,t.dyn_ltree,t.l_desc.max_code),KT(t,t.dyn_dtree,t.d_desc.max_code),O2(t,t.bl_desc),e=yA-1;e>=3&&t.bl_tree[PM[e]*2+1]===0;e--);return t.opt_len+=3*(e+1)+5+5+4,e}function mZ(t,e,r,n){var i;for(qn(t,e-257,5),qn(t,r-1,5),qn(t,n-4,4),i=0;i<n;i++)qn(t,t.bl_tree[PM[i]*2+1],3);qT(t,t.dyn_ltree,e-1),qT(t,t.dyn_dtree,r-1)}function vZ(t){var e=4093624447,r;for(r=0;r<=31;r++,e>>>=1)if(e&1&&t.dyn_ltree[r*2]!==0)return VT;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return HT;for(r=32;r<Hm;r++)if(t.dyn_ltree[r*2]!==0)return HT;return VT}var QT=!1;function yZ(t){QT||(hZ(),QT=!0),t.l_desc=new i1(t.dyn_ltree,TM),t.d_desc=new i1(t.dyn_dtree,RM),t.bl_desc=new i1(t.bl_tree,jM),t.bi_buf=0,t.bi_valid=0,IM(t)}function BM(t,e,r,n){qn(t,(iZ<<1)+(n?1:0),3),pZ(t,e,r)}function wZ(t){qn(t,EM<<1,3),ao(t,wA,Do),dZ(t)}function bZ(t,e,r,n){var i,s,o=0;t.level>0?(t.strm.data_type===nZ&&(t.strm.data_type=vZ(t)),O2(t,t.l_desc),O2(t,t.d_desc),o=gZ(t),i=t.opt_len+3+7>>>3,s=t.static_len+3+7>>>3,s<=i&&(i=s)):i=s=r+5,r+4<=i&&e!==-1?BM(t,e,r,n):t.strategy===rZ||s===i?(qn(t,(EM<<1)+(n?1:0),3),WT(t,Do,sg)):(qn(t,(sZ<<1)+(n?1:0),3),mZ(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),WT(t,t.dyn_ltree,t.dyn_dtree)),IM(t),n&&MM(t)}function xZ(t,e,r){return t.pending_buf[t.d_buf+t.last_lit*2]=e>>>8&255,t.pending_buf[t.d_buf+t.last_lit*2+1]=e&255,t.pending_buf[t.l_buf+t.last_lit]=r&255,t.last_lit++,e===0?t.dyn_ltree[r*2]++:(t.matches++,e--,t.dyn_ltree[(Xg[r]+Hm+1)*2]++,t.dyn_dtree[FM(e)*2]++),t.last_lit===t.lit_bufsize-1}_h._tr_init=yZ;_h._tr_stored_block=BM;_h._tr_flush_block=bZ;_h._tr_tally=xZ;_h._tr_align=wZ;function SZ(t,e,r,n){for(var i=t&65535|0,s=t>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do i=i+e[n++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0}
vendor: 13,339 bytes, line 411
411var LM=SZ;function EZ(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=t&1?3988292384^t>>>1:t>>>1;e[r]=t}return e}var kZ=EZ();function AZ(t,e,r,n){var i=kZ,s=n+r;t^=-1;for(var o=n;o<s;o++)t=t>>>8^i[(t^e[o])&255];return t^-1}var UM=AZ,xA={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"},bn=ha,Wi=_h,zM=LM,Fa=UM,CZ=xA,Lu=0,NZ=1,PZ=3,jl=4,XT=5,lo=0,YT=1,Ki=-2,TZ=-3,o1=-5,RZ=-1,jZ=1,G0=2,FZ=3,OZ=4,DZ=0,IZ=2,yb=8,MZ=9,BZ=15,LZ=8,UZ=29,zZ=256,D2=zZ+1+UZ,_Z=30,VZ=19,HZ=2*D2+1,GZ=15,nt=3,vl=258,Ps=vl+nt+1,WZ=32,wb=42,I2=69,Uv=73,zv=91,_v=103,Fc=113,Lp=666,Tr=1,Gm=2,Au=3,Hh=4,KZ=3;function yl(t,e){return t.msg=CZ[e],e}function JT(t){return(t<<1)-(t>4?9:0)}function Ha(t){for(var e=t.length;--e>=0;)t[e]=0}function Oa(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),r!==0&&(bn.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,e.pending===0&&(e.pending_out=0))}function Xr(t,e){Wi._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Oa(t.strm)}function pt(t,e){t.pending_buf[t.pending++]=e}function yp(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=e&255}function qZ(t,e,r,n){var i=t.avail_in;return i>n&&(i=n),i===0?0:(t.avail_in-=i,bn.arraySet(e,t.input,t.next_in,i,r),t.state.wrap===1?t.adler=zM(t.adler,e,i,r):t.state.wrap===2&&(t.adler=Fa(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i)}function _M(t,e){var r=t.max_chain_length,n=t.strstart,i,s,o=t.prev_length,a=t.nice_match,l=t.strstart>t.w_size-Ps?t.strstart-(t.w_size-Ps):0,c=t.window,u=t.w_mask,d=t.prev,h=t.strstart+vl,p=c[n+o-1],m=c[n+o];t.prev_length>=t.good_match&&(r>>=2),a>t.lookahead&&(a=t.lookahead);do if(i=e,!(c[i+o]!==m||c[i+o-1]!==p||c[i]!==c[n]||c[++i]!==c[n+1])){n+=2,i++;do;while(c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&n<h);if(s=vl-(h-n),n=h-vl,s>o){if(t.match_start=e,o=s,s>=a)break;p=c[n+o-1],m=c[n+o]}}while((e=d[e&u])>l&&--r!==0);return o<=t.lookahead?o:t.lookahead}function Cu(t){var e=t.w_size,r,n,i,s,o;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-Ps)){bn.arraySet(t.window,t.window,e,e,0),t.match_start-=e,t.strstart-=e,t.block_start-=e,n=t.hash_size,r=n;do i=t.head[--r],t.head[r]=i>=e?i-e:0;while(--n);n=e,r=n;do i=t.prev[--r],t.prev[r]=i>=e?i-e:0;while(--n);s+=e}if(t.strm.avail_in===0)break;if(n=qZ(t.strm,t.window,t.strstart+t.lookahead,s),t.lookahead+=n,t.lookahead+t.insert>=nt)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+nt-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<nt)););}while(t.lookahead<Ps&&t.strm.avail_in!==0)}function QZ(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Cu(t),t.lookahead===0&&e===Lu)return Tr;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((t.strstart===0||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Xr(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-Ps&&(Xr(t,!1),t.strm.avail_out===0))return Tr}return t.insert=0,e===jl?(Xr(t,!0),t.strm.avail_out===0?Au:Hh):(t.strstart>t.block_start&&(Xr(t,!1),t.strm.avail_out===0),Tr)}function a1(t,e){for(var r,n;;){if(t.lookahead<Ps){if(Cu(t),t.lookahead<Ps&&e===Lu)return Tr;if(t.lookahead===0)break}if(r=0,t.lookahead>=nt&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+nt-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),r!==0&&t.strstart-r<=t.w_size-Ps&&(t.match_length=_M(t,r)),t.match_length>=nt)if(n=Wi._tr_tally(t,t.strstart-t.match_start,t.match_length-nt),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=nt){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+nt-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=Wi._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Xr(t,!1),t.strm.avail_out===0))return Tr}return t.insert=t.strstart<nt-1?t.strstart:nt-1,e===jl?(Xr(t,!0),t.strm.avail_out===0?Au:Hh):t.last_lit&&(Xr(t,!1),t.strm.avail_out===0)?Tr:Gm}function ld(t,e){for(var r,n,i;;){if(t.lookahead<Ps){if(Cu(t),t.lookahead<Ps&&e===Lu)return Tr;if(t.lookahead===0)break}if(r=0,t.lookahead>=nt&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+nt-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=nt-1,r!==0&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-Ps&&(t.match_length=_M(t,r),t.match_length<=5&&(t.strategy===jZ||t.match_length===nt&&t.strstart-t.match_start>4096)&&(t.match_length=nt-1)),t.prev_length>=nt&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-nt,n=Wi._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-nt),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+nt-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=nt-1,t.strstart++,n&&(Xr(t,!1),t.strm.avail_out===0))return Tr}else if(t.match_available){if(n=Wi._tr_tally(t,0,t.window[t.strstart-1]),n&&Xr(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return Tr}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=Wi._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<nt-1?t.strstart:nt-1,e===jl?(Xr(t,!0),t.strm.avail_out===0?Au:Hh):t.last_lit&&(Xr(t,!1),t.strm.avail_out===0)?Tr:Gm}function XZ(t,e){for(var r,n,i,s,o=t.window;;){if(t.lookahead<=vl){if(Cu(t),t.lookahead<=vl&&e===Lu)return Tr;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=nt&&t.strstart>0&&(i=t.strstart-1,n=o[i],n===o[++i]&&n===o[++i]&&n===o[++i])){s=t.strstart+vl;do;while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<s);t.match_length=vl-(s-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=nt?(r=Wi._tr_tally(t,1,t.match_length-nt),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=Wi._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Xr(t,!1),t.strm.avail_out===0))return Tr}return t.insert=0,e===jl?(Xr(t,!0),t.strm.avail_out===0?Au:Hh):t.last_lit&&(Xr(t,!1),t.strm.avail_out===0)?Tr:Gm}function YZ(t,e){for(var r;;){if(t.lookahead===0&&(Cu(t),t.lookahead===0)){if(e===Lu)return Tr;break}if(t.match_length=0,r=Wi._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Xr(t,!1),t.strm.avail_out===0))return Tr}return t.insert=0,e===jl?(Xr(t,!0),t.strm.avail_out===0?Au:Hh):t.last_lit&&(Xr(t,!1),t.strm.avail_out===0)?Tr:Gm}function zs(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}var Dd;Dd=[new zs(0,0,0,0,QZ),new zs(4,4,8,4,a1),new zs(4,5,16,8,a1),new zs(4,6,32,32,a1),new zs(4,4,16,16,ld),new zs(8,16,32,32,ld),new zs(8,16,128,128,ld),new zs(8,32,128,256,ld),new zs(32,128,258,1024,ld),new zs(32,258,258,4096,ld)];function JZ(t){t.window_size=2*t.w_size,Ha(t.head),t.max_lazy_match=Dd[t.level].max_lazy,t.good_match=Dd[t.level].good_length,t.nice_match=Dd[t.level].nice_length,t.max_chain_length=Dd[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=nt-1,t.match_available=0,t.ins_h=0}function ZZ(){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=yb,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 bn.Buf16(HZ*2),this.dyn_dtree=new bn.Buf16((2*_Z+1)*2),this.bl_tree=new bn.Buf16((2*VZ+1)*2),Ha(this.dyn_ltree),Ha(this.dyn_dtree),Ha(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new bn.Buf16(GZ+1),this.heap=new bn.Buf16(2*D2+1),Ha(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new bn.Buf16(2*D2+1),Ha(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function VM(t){var e;return!t||!t.state?yl(t,Ki):(t.total_in=t.total_out=0,t.data_type=IZ,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?wb:Fc,t.adler=e.wrap===2?0:1,e.last_flush=Lu,Wi._tr_init(e),lo)}function HM(t){var e=VM(t);return e===lo&&JZ(t.state),e}function $Z(t,e){return!t||!t.state||t.state.wrap!==2?Ki:(t.state.gzhead=e,lo)}function GM(t,e,r,n,i,s){if(!t)return Ki;var o=1;if(e===RZ&&(e=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),i<1||i>MZ||r!==yb||n<8||n>15||e<0||e>9||s<0||s>OZ)return yl(t,Ki);n===8&&(n=9);var a=new ZZ;return t.state=a,a.strm=t,a.wrap=o,a.gzhead=null,a.w_bits=n,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+nt-1)/nt),a.window=new bn.Buf8(a.w_size*2),a.head=new bn.Buf16(a.hash_size),a.prev=new bn.Buf16(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new bn.Buf8(a.pending_buf_size),a.d_buf=1*a.lit_bufsize,a.l_buf=3*a.lit_bufsize,a.level=e,a.strategy=s,a.method=r,HM(t)}function e$(t,e){return GM(t,e,yb,BZ,LZ,DZ)}function t$(t,e){var r,n,i,s;if(!t||!t.state||e>XT||e<0)return t?yl(t,Ki):Ki;if(n=t.state,!t.output||!t.input&&t.avail_in!==0||n.status===Lp&&e!==jl)return yl(t,t.avail_out===0?o1:Ki);if(n.strm=t,r=n.last_flush,n.last_flush=e,n.status===wb)if(n.wrap===2)t.adler=0,pt(n,31),pt(n,139),pt(n,8),n.gzhead?(pt(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)),pt(n,n.gzhead.time&255),pt(n,n.gzhead.time>>8&255),pt(n,n.gzhead.time>>16&255),pt(n,n.gzhead.time>>24&255),pt(n,n.level===9?2:n.strategy>=G0||n.level<2?4:0),pt(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(pt(n,n.gzhead.extra.length&255),pt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=Fa(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=I2):(pt(n,0),pt(n,0),pt(n,0),pt(n,0),pt(n,0),pt(n,n.level===9?2:n.strategy>=G0||n.level<2?4:0),pt(n,KZ),n.status=Fc);else{var o=yb+(n.w_bits-8<<4)<<8,a=-1;n.strategy>=G0||n.level<2?a=0:n.level<6?a=1:n.level===6?a=2:a=3,o|=a<<6,n.strstart!==0&&(o|=WZ),o+=31-o%31,n.status=Fc,yp(n,o),n.strstart!==0&&(yp(n,t.adler>>>16),yp(n,t.adler&65535)),t.adler=1}if(n.status===I2)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(n.gzhead.extra.length&65535)&&!(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=Fa(t.adler,n.pending_buf,n.pending-i,i)),Oa(t),i=n.pending,n.pending===n.pending_buf_size));)pt(n,n.gzhead.extra[n.gzindex]&255),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=Fa(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=Uv)}else n.status=Uv;if(n.status===Uv)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=Fa(t.adler,n.pending_buf,n.pending-i,i)),Oa(t),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}n.gzindex<n.gzhead.name.length?s=n.gzhead.name.charCodeAt(n.gzindex++)&255:s=0,pt(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>i&&(t.adler=Fa(t.adler,n.pending_buf,n.pending-i,i)),s===0&&(n.gzindex=0,n.status=zv)}else n.status=zv;if(n.status===zv)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=Fa(t.adler,n.pending_buf,n.pending-i,i)),Oa(t),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}n.gzindex<n.gzhead.comment.length?s=n.gzhead.comment.charCodeAt(n.gzindex++)&255:s=0,pt(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>i&&(t.adler=Fa(t.adler,n.pending_buf,n.pending-i,i)),s===0&&(n.status=_v)}else n.status=_v;if(n.status===_v&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Oa(t),n.pending+2<=n.pending_buf_size&&(pt(n,t.adler&255),pt(n,t.adler>>8&255),t.adler=0,n.status=Fc)):n.status=Fc),n.pending!==0){if(Oa(t),t.avail_out===0)return n.last_flush=-1,lo}else if(t.avail_in===0&&JT(e)<=JT(r)&&e!==jl)return yl(t,o1);if(n.status===Lp&&t.avail_in!==0)return yl(t,o1);if(t.avail_in!==0||n.lookahead!==0||e!==Lu&&n.status!==Lp){var l=n.strategy===G0?YZ(n,e):n.strategy===FZ?XZ(n,e):Dd[n.level].func(n,e);if((l===Au||l===Hh)&&(n.status=Lp),l===Tr||l===Au)return t.avail_out===0&&(n.last_flush=-1),lo;
vendor: 3,194 bytes, line 411
411if(l===Gm&&(e===NZ?Wi._tr_align(n):e!==XT&&(Wi._tr_stored_block(n,0,0,!1),e===PZ&&(Ha(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Oa(t),t.avail_out===0))return n.last_flush=-1,lo}return e!==jl?lo:n.wrap<=0?YT:(n.wrap===2?(pt(n,t.adler&255),pt(n,t.adler>>8&255),pt(n,t.adler>>16&255),pt(n,t.adler>>24&255),pt(n,t.total_in&255),pt(n,t.total_in>>8&255),pt(n,t.total_in>>16&255),pt(n,t.total_in>>24&255)):(yp(n,t.adler>>>16),yp(n,t.adler&65535)),Oa(t),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?lo:YT)}function r$(t){var e;return!t||!t.state?Ki:(e=t.state.status,e!==wb&&e!==I2&&e!==Uv&&e!==zv&&e!==_v&&e!==Fc&&e!==Lp?yl(t,Ki):(t.state=null,e===Fc?yl(t,TZ):lo))}function n$(t,e){var r=e.length,n,i,s,o,a,l,c,u;if(!t||!t.state||(n=t.state,o=n.wrap,o===2||o===1&&n.status!==wb||n.lookahead))return Ki;for(o===1&&(t.adler=zM(t.adler,e,r,0)),n.wrap=0,r>=n.w_size&&(o===0&&(Ha(n.head),n.strstart=0,n.block_start=0,n.insert=0),u=new bn.Buf8(n.w_size),bn.arraySet(u,e,r-n.w_size,n.w_size,0),e=u,r=n.w_size),a=t.avail_in,l=t.next_in,c=t.input,t.avail_in=r,t.next_in=0,t.input=e,Cu(n);n.lookahead>=nt;){i=n.strstart,s=n.lookahead-(nt-1);do n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+nt-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++;while(--s);n.strstart=i,n.lookahead=nt-1,Cu(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=nt-1,n.match_available=0,t.next_in=l,t.input=c,t.avail_in=a,n.wrap=o,lo}wo.deflateInit=e$;wo.deflateInit2=GM;wo.deflateReset=HM;wo.deflateResetKeep=VM;wo.deflateSetHeader=$Z;wo.deflate=t$;wo.deflateEnd=r$;wo.deflateSetDictionary=n$;wo.deflateInfo="pako deflate (from Nodeca project)";var Uu={},bb=ha,WM=!0,KM=!0;try{String.fromCharCode.apply(null,[0])}catch{WM=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{KM=!1}var Jg=new bb.Buf8(256);for(var ka=0;ka<256;ka++)Jg[ka]=ka>=252?6:ka>=248?5:ka>=240?4:ka>=224?3:ka>=192?2:1;Jg[254]=Jg[254]=1;Uu.string2buf=function(t){var e,r,n,i,s,o=t.length,a=0;for(i=0;i<o;i++)r=t.charCodeAt(i),(r&64512)===55296&&i+1<o&&(n=t.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),a+=r<128?1:r<2048?2:r<65536?3:4;for(e=new bb.Buf8(a),s=0,i=0;s<a;i++)r=t.charCodeAt(i),(r&64512)===55296&&i+1<o&&(n=t.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?e[s++]=r:r<2048?(e[s++]=192|r>>>6,e[s++]=128|r&63):r<65536?(e[s++]=224|r>>>12,e[s++]=128|r>>>6&63,e[s++]=128|r&63):(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63,e[s++]=128|r>>>6&63,e[s++]=128|r&63);return e};function qM(t,e){if(e<65534&&(t.subarray&&KM||!t.subarray&&WM))return String.fromCharCode.apply(null,bb.shrinkBuf(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}Uu.buf2binstring=function(t){return qM(t,t.length)};Uu.binstring2buf=function(t){for(var e=new bb.Buf8(t.length),r=0,n=e.length;r<n;r++)e[r]=t.charCodeAt(r);return e};Uu.buf2string=function(t,e){var r,n,i,s,o=e||t.length,a=new Array(o*2);for(n=0,r=0;r<o;){if(i=t[r++],i<128){a[n++]=i;continue}if(s=Jg[i],s>4){a[n++]=65533,r+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&r<o;)i=i<<6|t[r++]&63,s--;if(s>1){a[n++]=65533;continue}
vendor: 1,582 bytes, line 411
411i<65536?a[n++]=i:(i-=65536,a[n++]=55296|i>>10&1023,a[n++]=56320|i&1023)}return qM(a,n)};Uu.utf8border=function(t,e){var r;for(e=e||t.length,e>t.length&&(e=t.length),r=e-1;r>=0&&(t[r]&192)===128;)r--;return r<0||r===0?e:r+Jg[t[r]]>e?r:e};function i$(){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 QM=i$,og=wo,ag=ha,M2=Uu,B2=xA,s$=QM,XM=Object.prototype.toString,o$=0,l1=4,$d=0,ZT=1,$T=2,a$=-1,l$=0,c$=8;function Nu(t){if(!(this instanceof Nu))return new Nu(t);this.options=ag.assign({level:a$,method:c$,chunkSize:16384,windowBits:15,memLevel:8,strategy:l$,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s$,this.strm.avail_out=0;var r=og.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==$d)throw new Error(B2[r]);if(e.header&&og.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(typeof e.dictionary=="string"?n=M2.string2buf(e.dictionary):XM.call(e.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(e.dictionary):n=e.dictionary,r=og.deflateSetDictionary(this.strm,n),r!==$d)throw new Error(B2[r]);this._dict_set=!0}}Nu.prototype.push=function(t,e){var r=this.strm,n=this.options.chunkSize,i,s;if(this.ended)return!1;s=e===~~e?e:e===!0?l1:o$,typeof t=="string"?r.input=M2.string2buf(t):XM.call(t)==="[object ArrayBuffer]"?r.input
vendor: 13,424 bytes, line 411
411=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new ag.Buf8(n),r.next_out=0,r.avail_out=n),i=og.deflate(r,s),i!==ZT&&i!==$d)return this.onEnd(i),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(s===l1||s===$T))&&(this.options.to==="string"?this.onData(M2.buf2binstring(ag.shrinkBuf(r.output,r.next_out))):this.onData(ag.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&i!==ZT);return s===l1?(i=og.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===$d):(s===$T&&(this.onEnd($d),r.avail_out=0),!0)};Nu.prototype.onData=function(t){this.chunks.push(t)};Nu.prototype.onEnd=function(t){t===$d&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ag.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function SA(t,e){var r=new Nu(e);if(r.push(t,!0),r.err)throw r.msg||B2[r.err];return r.result}function u$(t,e){return e=e||{},e.raw=!0,SA(t,e)}function d$(t,e){return e=e||{},e.gzip=!0,SA(t,e)}Vm.Deflate=Nu;Vm.deflate=SA;Vm.deflateRaw=u$;Vm.gzip=d$;var Wm={},Ds={},W0=30,f$=12,h$=function(e,r){var n,i,s,o,a,l,c,u,d,h,p,m,g,y,v,w,b,E,A,k,P,C,N,R,F;n=e.state,i=e.next_in,R=e.input,s=i+(e.avail_in-5),o=e.next_out,F=e.output,a=o-(r-e.avail_out),l=o+(e.avail_out-257),c=n.dmax,u=n.wsize,d=n.whave,h=n.wnext,p=n.window,m=n.hold,g=n.bits,y=n.lencode,v=n.distcode,w=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{g<15&&(m+=R[i++]<<g,g+=8,m+=R[i++]<<g,g+=8),E=y[m&w];t:for(;;){if(A=E>>>24,m>>>=A,g-=A,A=E>>>16&255,A===0)F[o++]=E&65535;else if(A&16){k=E&65535,A&=15,A&&(g<A&&(m+=R[i++]<<g,g+=8),k+=m&(1<<A)-1,m>>>=A,g-=A),g<15&&(m+=R[i++]<<g,g+=8,m+=R[i++]<<g,g+=8),E=v[m&b];r:for(;;){if(A=E>>>24,m>>>=A,g-=A,A=E>>>16&255,A&16){if(P=E&65535,A&=15,g<A&&(m+=R[i++]<<g,g+=8,g<A&&(m+=R[i++]<<g,g+=8)),P+=m&(1<<A)-1,P>c){e.msg="invalid distance too far back",n.mode=W0;break e}if(m>>>=A,g-=A,A=o-a,P>A){if(A=P-A,A>d&&n.sane){e.msg="invalid distance too far back",n.mode=W0;break e}if(C=0,N=p,h===0){if(C+=u-A,A<k){k-=A;do F[o++]=p[C++];while(--A);C=o-P,N=F}}else if(h<A){if(C+=u+h-A,A-=h,A<k){k-=A;do F[o++]=p[C++];while(--A);if(C=0,h<k){A=h,k-=A;do F[o++]=p[C++];while(--A);C=o-P,N=F}}}else if(C+=h-A,A<k){k-=A;do F[o++]=p[C++];while(--A);C=o-P,N=F}for(;k>2;)F[o++]=N[C++],F[o++]=N[C++],F[o++]=N[C++],k-=3;k&&(F[o++]=N[C++],k>1&&(F[o++]=N[C++]))}else{C=o-P;do F[o++]=F[C++],F[o++]=F[C++],F[o++]=F[C++],k-=3;while(k>2);k&&(F[o++]=F[C++],k>1&&(F[o++]=F[C++]))}}else if(A&64){e.msg="invalid distance code",n.mode=W0;break e}else{E=v[(E&65535)+(m&(1<<A)-1)];continue r}break}}else if(A&64)if(A&32){n.mode=f$;break e}else{e.msg="invalid literal/length code",n.mode=W0;break e}else{E=y[(E&65535)+(m&(1<<A)-1)];continue t}break}}while(i<s&&o<l);k=g>>3,i-=k,g-=k<<3,m&=(1<<g)-1,e.next_in=i,e.next_out=o,e.avail_in=i<s?5+(s-i):5-(i-s),e.avail_out=o<l?257+(l-o):257-(o-l),n.hold=m,n.bits=g},eR=ha,cd=15,tR=852,rR=592,nR=0,c1=1,iR=2,p$=[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],g$=[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],m$=[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],v$=[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],y$=function(e,r,n,i,s,o,a,l){var c=l.bits,u=0,d=0,h=0,p=0,m=0,g=0,y=0,v=0,w=0,b=0,E,A,k,P,C,N=null,R=0,F,B=new eR.Buf16(cd+1),D=new eR.Buf16(cd+1),L=null,M=0,_,X,V;for(u=0;u<=cd;u++)B[u]=0;for(d=0;d<i;d++)B[r[n+d]]++;for(m=c,p=cd;p>=1&&B[p]===0;p--);if(m>p&&(m=p),p===0)return s[o++]=1<<24|64<<16|0,s[o++]=1<<24|64<<16|0,l.bits=1,0;for(h=1;h<p&&B[h]===0;h++);for(m<h&&(m=h),v=1,u=1;u<=cd;u++)if(v<<=1,v-=B[u],v<0)return-1;if(v>0&&(e===nR||p!==1))return-1;for(D[1]=0,u=1;u<cd;u++)D[u+1]=D[u]+B[u];for(d=0;d<i;d++)r[n+d]!==0&&(a[D[r[n+d]]++]=d);if(e===nR?(N=L=a,F=19):e===c1?(N=p$,R-=257,L=g$,M-=257,F=256):(N=m$,L=v$,F=-1),b=0,d=0,u=h,C=o,g=m,y=0,k=-1,w=1<<m,P=w-1,e===c1&&w>tR||e===iR&&w>rR)return 1;for(;;){_=u-y,a[d]<F?(X=0,V=a[d]):a[d]>F?(X=L[M+a[d]],V=N[R+a[d]]):(X=96,V=0),E=1<<u-y,A=1<<g,h=A;do A-=E,s[C+(b>>y)+A]=_<<24|X<<16|V|0;while(A!==0);for(E=1<<u-1;b&E;)E>>=1;if(E!==0?(b&=E-1,b+=E):b=0,d++,--B[u]===0){if(u===p)break;u=r[n+a[d]]}if(u>m&&(b&P)!==k){for(y===0&&(y=m),C+=h,g=u-y,v=1<<g;g+y<p&&(v-=B[g+y],!(v<=0));)g++,v<<=1;if(w+=1<<g,e===c1&&w>tR||e===iR&&w>rR)return 1;k=b&P,s[k]=m<<24|g<<16|C-o|0}}return b!==0&&(s[C+b]=u-y<<24|64<<16|0),l.bits=m,0},di=ha,L2=LM,_s=UM,w$=h$,lg=y$,b$=0,YM=1,JM=2,sR=4,x$=5,K0=6,Pu=0,S$=1,E$=2,$i=-2,ZM=-3,$M=-4,k$=-5,oR=8,e5=1,aR=2,lR=3,cR=4,uR=5,dR=6,fR=7,hR=8,pR=9,gR=10,Wy=11,Eo=12,u1=13,mR=14,d1=15,vR=16,yR=17,wR=18,bR=19,q0=20,Q0=21,xR=22,SR=23,ER=24,kR=25,AR=26,f1=27,CR=28,NR=29,Gt=30,t5=31,A$=32,C$=852,N$=592,P$=15,T$=P$;function PR(t){return(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24)}function R$(){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 di.Buf16(320),this.work=new di.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function r5(t){var e;return!t||!t.state?$i:(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=e5,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new di.Buf32(C$),e.distcode=e.distdyn=new di.Buf32(N$),e.sane=1,e.back=-1,Pu)}function n5(t){var e;return!t||!t.state?$i:(e=t.state,e.wsize=0,e.whave=0,e.wnext=0,r5(t))}function i5(t,e){var r,n;return!t||!t.state||(n=t.state,e<0?(r=0,e=-e):(r=(e>>4)+1,e<48&&(e&=15)),e&&(e<8||e>15))?$i:(n.window!==null&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,n5(t))}function s5(t,e){var r,n;return t?(n=new R$,t.state=n,n.window=null,r=i5(t,e),r!==Pu&&(t.state=null),r):$i}function j$(t){return s5(t,T$)}var TR=!0,h1,p1;function F$(t){if(TR){var e;for(h1=new di.Buf32(512),p1=new di.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(lg(YM,t.lens,0,288,h1,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;lg(JM,t.lens,0,32,p1,0,t.work,{bits:5}),TR=!1}t.lencode=h1,t.lenbits=9,t.distcode=p1,t.distbits=5}function o5(t,e,r,n){var i,s=t.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new di.Buf8(s.wsize)),n>=s.wsize?(di.arraySet(s.window,e,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>n&&(i=n),di.arraySet(s.window,e,r-n,i,s.wnext),n-=i,n?(di.arraySet(s.window,e,r-n,n,0),s.wnext=n,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0}function O$(t,e){var r,n,i,s,o,a,l,c,u,d,h,p,m,g,y=0,v,w,b,E,A,k,P,C,N=new di.Buf8(4),R,F,B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&t.avail_in!==0)return $i;r=t.state,r.mode===Eo&&(r.mode=u1),o=t.next_out,i=t.output,l=t.avail_out,s=t.next_in,n=t.input,a=t.avail_in,c=r.hold,u=r.bits,d=a,h=l,C=Pu;e:for(;;)switch(r.mode){case e5:if(r.wrap===0){r.mode=u1;break}for(;u<16;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}if(r.wrap&2&&c===35615){r.check=0,N[0]=c&255,N[1]=c>>>8&255,r.check=_s(r.check,N,2,0),c=0,u=0,r.mode=aR;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((c&255)<<8)+(c>>8))%31){t.msg="incorrect header check",r.mode=Gt;break}if((c&15)!==oR){t.msg="unknown compression method",r.mode=Gt;break}if(c>>>=4,u-=4,P=(c&15)+8,r.wbits===0)r.wbits=P;else if(P>r.wbits){t.msg="invalid window size",r.mode=Gt;break}r.dmax=1<<P,t.adler=r.check=1,r.mode=c&512?gR:Eo,c=0,u=0;break;case aR:for(;u<16;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}if(r.flags=c,(r.flags&255)!==oR){t.msg="unknown compression method",r.mode=Gt;break}if(r.flags&57344){t.msg="unknown header flags set",r.mode=Gt;break}r.head&&(r.head.text=c>>8&1),r.flags&512&&(N[0]=c&255,N[1]=c>>>8&255,r.check=_s(r.check,N,2,0)),c=0,u=0,r.mode=lR;case lR:for(;u<32;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}r.head&&(r.head.time=c),r.flags&512&&(N[0]=c&255,N[1]=c>>>8&255,N[2]=c>>>16&255,N[3]=c>>>24&255,r.check=_s(r.check,N,4,0)),c=0,u=0,r.mode=cR;case cR:for(;u<16;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}r.head&&(r.head.xflags=c&255,r.head.os=c>>8),r.flags&512&&(N[0]=c&255,N[1]=c>>>8&255,r.check=_s(r.check,N,2,0)),c=0,u=0,r.mode=uR;case uR:if(r.flags&1024){for(;u<16;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}r.length=c,r.head&&(r.head.extra_len=c),r.flags&512&&(N[0]=c&255,N[1]=c>>>8&255,r.check=_s(r.check,N,2,0)),c=0,u=0}else r.head&&(r.head.extra=null);r.mode=dR;case dR:if(r.flags&1024&&(p=r.length,p>a&&(p=a),p&&(r.head&&(P=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),di.arraySet(r.head.extra,n,s,p,P)),r.flags&512&&(r.check=_s(r.check,n,p,s)),a-=p,s+=p,r.length-=p),r.length))break e;r.length=0,r.mode=fR;case fR:if(r.flags&2048){if(a===0)break e;p=0;do P=n[s+p++],r.head&&P&&r.length<65536&&(r.head.name+=String.fromCharCode(P));while(P&&p<a);if(r.flags&512&&(r.check=_s(r.check,n,p,s)),a-=p,s+=p,P)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=hR;case hR:if(r.flags&4096){if(a===0)break e;p=0;do P=n[s+p++],r.head&&P&&r.length<65536&&(r.head.comment+=String.fromCharCode(P));while(P&&p<a);if(r.flags&512&&(r.check=_s(r.check,n,p,s)),a-=p,s+=p,P)break e}else r.head&&(r.head.comment=null);r.mode=pR;case pR:if(r.flags&512){for(;u<16;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}if(c!==(r.check&65535)){t.msg="header crc mismatch",r.mode=Gt;break}c=0,u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Eo;break;case gR:for(;u<32;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}t.adler=r.check=PR(c),c=0,u=0,r.mode=Wy;case Wy:if(r.havedict===0)return t.next_out=o,t.avail_out=l,t.next_in=s,t.avail_in=a,r.hold=c,r.bits=u,E$;t.adler=r.check=1,r.mode=Eo;case Eo:if(e===x$||e===K0)break e;case u1:if(r.last){c>>>=u&7,u-=u&7,r.mode=f1;break}for(;u<3;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}switch(r.last=c&1,c>>>=1,u-=1,c&3){case 0:r.mode=mR;break;case 1:if(F$(r),r.mode=q0,e===K0){c>>>=2,u-=2;break e}break;case 2:r.mode=yR;break;case 3:t.msg="invalid block type",r.mode=Gt}c>>>=2,u-=2;break;case mR:for(c>>>=u&7,u-=u&7;u<32;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}if((c&65535)!==(c>>>16^65535)){t.msg="invalid stored block lengths",r.mode=Gt;break}if(r.length=c&65535,c=0,u=0,r.mode=d1,e===K0)break e;case d1:r.mode=vR;case vR:if(p=r.length,p){if(p>a&&(p=a),p>l&&(p=l),p===0)break e;di.arraySet(i,n,s,p,o),a-=p,s+=p,l-=p,o+=p,r.length-=p;break}r.mode=Eo;break;case yR:for(;u<14;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}if(r.nlen=(c&31)+257,c>>>=5,u-=5,r.ndist=(c&31)+1,c>>>=5,u-=5,r.ncode=(c&15)+4,c>>>=4,u-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=Gt;break}r.have=0,r.mode=wR;case wR:for(;r.have<r.ncode;){for(;u<3;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}r.lens[B[r.have++]]=c&7,c>>>=3,u-=3}for(;r.have<19;)r.lens[B[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},C=lg(b$,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,C){t.msg="invalid code lengths set",r.mode=Gt;break}r.have=0,r.mode=bR;case bR:for(;r.have<r.nlen+r.ndist;){for(;y=r.lencode[c&(1<<r.lenbits)-1],v=y>>>24,w=y>>>16&255,b=y&65535,!(v<=u);){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}if(b<16)c>>>=v,u-=v,r.lens[r.have++]=b;else{if(b===16){for(F=v+2;u<F;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}if(c>>>=v,u-=v,r.have===0){t.msg="invalid bit length repeat",r.mode=Gt;break}P=r.lens[r.have-1],p=3+(c&3),c>>>=2,u-=2}else if(b===17){for(F=v+3;u<F;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}c>>>=v,u-=v,P=0,p=3+(c&7),c>>>=3,u-=3}else{for(F=v+7;u<F;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}c>>>=v,u-=v,P=0,p=11+(c&127),c>>>=7,u-=7}if(r.have+p>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=Gt;break}for(;p--;)r.lens[r.have++]=P}}if(r.mode===Gt)break;if(r.lens[256]===0){t.msg="invalid code -- missing end-of-block",r.mode=Gt;break}if(r.lenbits=9,R={bits:r.lenbits},C=lg(YM,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,C){t.msg="invalid literal/lengths set",r.mode=Gt;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},C=lg(JM,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,C){t.msg="invalid distances set",r.mode=Gt;break}if(r.mode=q0,e===K0)break e;case q0:r.mode=Q0;case Q0:if(a>=6&&l>=258){t.next_out=o,t.avail_out=l,t.next_in=s,t.avail_in=a,r.hold=c,r.bits=u,w$(t,h),o=t.next_out,i=t.output,l=t.avail_out,s=t.next_in,n=t.input,a=t.avail_in,c=r.hold,u=r.bits,r.mode===Eo&&(r.back=-1);break}for(r.back=0;y=r.lencode[c&(1<<r.lenbits)-1],v=y>>>24,w=y>>>16&255,b=y&65535,!(v<=u);){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}if(w&&!(w&240)){for(E=v,A=w,k=b;y=r.lencode[k+((c&(1<<E+A)-1)>>E)],v=y>>>24,w=y>>>16&255,b=y&65535,!(E+v<=u);){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}c>>>=E,u-=E,r.back+=E}if(c>>>=v,u-=v,r.back+=v,r.length=b,w===0){r.mode=AR;break}if(w&32){r.back=-1,r.mode=Eo;break}if(w&64){t.msg="invalid literal/length code",r.mode=Gt;break}r.extra=w&15,r.mode=xR;case xR:if(r.extra){for(F=r.extra;u<F;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=SR;case SR:for(;
vendor: 4,385 bytes, line 411
411y=r.distcode[c&(1<<r.distbits)-1],v=y>>>24,w=y>>>16&255,b=y&65535,!(v<=u);){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}if(!(w&240)){for(E=v,A=w,k=b;y=r.distcode[k+((c&(1<<E+A)-1)>>E)],v=y>>>24,w=y>>>16&255,b=y&65535,!(E+v<=u);){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}c>>>=E,u-=E,r.back+=E}if(c>>>=v,u-=v,r.back+=v,w&64){t.msg="invalid distance code",r.mode=Gt;break}r.offset=b,r.extra=w&15,r.mode=ER;case ER:if(r.extra){for(F=r.extra;u<F;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=Gt;break}r.mode=kR;case kR:if(l===0)break e;if(p=h-l,r.offset>p){if(p=r.offset-p,p>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=Gt;break}p>r.wnext?(p-=r.wnext,m=r.wsize-p):m=r.wnext-p,p>r.length&&(p=r.length),g=r.window}else g=i,m=o-r.offset,p=r.length;p>l&&(p=l),l-=p,r.length-=p;do i[o++]=g[m++];while(--p);r.length===0&&(r.mode=Q0);break;case AR:if(l===0)break e;i[o++]=r.length,l--,r.mode=Q0;break;case f1:if(r.wrap){for(;u<32;){if(a===0)break e;a--,c|=n[s++]<<u,u+=8}if(h-=l,t.total_out+=h,r.total+=h,h&&(t.adler=r.check=r.flags?_s(r.check,i,h,o-h):L2(r.check,i,h,o-h)),h=l,(r.flags?c:PR(c))!==r.check){t.msg="incorrect data check",r.mode=Gt;break}c=0,u=0}r.mode=CR;case CR:if(r.wrap&&r.flags){for(;u<32;){if(a===0)break e;a--,c+=n[s++]<<u,u+=8}if(c!==(r.total&4294967295)){t.msg="incorrect length check",r.mode=Gt;break}c=0,u=0}r.mode=NR;case NR:C=S$;break e;case Gt:C=ZM;break e;case t5:return $M;case A$:default:return $i}return t.next_out=o,t.avail_out=l,t.next_in=s,t.avail_in=a,r.hold=c,r.bits=u,(r.wsize||h!==t.avail_out&&r.mode<Gt&&(r.mode<f1||e!==sR))&&o5(t,t.output,t.next_out,h-t.avail_out),d-=t.avail_in,h-=t.avail_out,t.total_in+=d,t.total_out+=h,r.total+=h,r.wrap&&h&&(t.adler=r.check=r.flags?_s(r.check,i,h,t.next_out-h):L2(r.check,i,h,t.next_out-h)),t.data_type=r.bits+(r.last?64:0)+(r.mode===Eo?128:0)+(r.mode===q0||r.mode===d1?256:0),(d===0&&h===0||e===sR)&&C===Pu&&(C=k$),C}function D$(t){if(!t||!t.state)return $i;var e=t.state;return e.window&&(e.window=null),t.state=null,Pu}function I$(t,e){var r;return!t||!t.state||(r=t.state,!(r.wrap&2))?$i:(r.head=e,e.done=!1,Pu)}function M$(t,e){var r=e.length,n,i,s;return!t||!t.state||(n=t.state,n.wrap!==0&&n.mode!==Wy)?$i:n.mode===Wy&&(i=1,i=L2(i,e,r,0),i!==n.check)?ZM:(s=o5(t,e,r,r),s?(n.mode=t5,$M):(n.havedict=1,Pu))}Ds.inflateReset=n5;Ds.inflateReset2=i5;Ds.inflateResetKeep=r5;Ds.inflateInit=j$;Ds.inflateInit2=s5;Ds.inflate=O$;Ds.inflateEnd=D$;Ds.inflateGetHeader=I$;Ds.inflateSetDictionary=M$;Ds.inflateInfo="pako inflate (from Nodeca project)";var a5={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_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};function B$(){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 L$=B$,ef=Ds,cg=ha,Vv=Uu,lr=a5,U2=xA,U$=QM,z$=L$,l5=Object.prototype.toString;function Tu(t){if(!(this instanceof Tu))return new Tu(t);this.options=cg.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new U$,this.strm.avail_out=0;var r=ef.inflateInit2(this.strm,e.windowBits);if(r!==lr.Z_OK)throw new Error(U2[r]);if(this.header=new z$,ef.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Vv.string2buf(e.dictionary):l5.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=ef.inflateSetDictionary(this.strm,e.dictionary),r!==lr.Z_OK)))throw new Error(U2[r])}Tu.prototype.push=function(t,e){var r=this.strm,n=this.options.chunkSize,i=this.options.dictionary,s,o,a,l,c,u=!1;if(this.ended)return!1;o=e===~~e?e:e===!0?lr.Z_FINISH:lr.Z_NO_FLUSH,typeof t=="string"?r.input
vendor: 4,793 bytes, line 411
411=Vv.binstring2buf(t):l5.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new cg.Buf8(n),r.next_out=0,r.avail_out=n),s=ef.inflate(r,lr.Z_NO_FLUSH),s===lr.Z_NEED_DICT&&i&&(s=ef.inflateSetDictionary(this.strm,i)),s===lr.Z_BUF_ERROR&&u===!0&&(s=lr.Z_OK,u=!1),s!==lr.Z_STREAM_END&&s!==lr.Z_OK)return this.onEnd(s),this.ended=!0,!1;r.next_out&&(r.avail_out===0||s===lr.Z_STREAM_END||r.avail_in===0&&(o===lr.Z_FINISH||o===lr.Z_SYNC_FLUSH))&&(this.options.to==="string"?(a=Vv.utf8border(r.output,r.next_out),l=r.next_out-a,c=Vv.buf2string(r.output,a),r.next_out=l,r.avail_out=n-l,l&&cg.arraySet(r.output,r.output,a,l,0),this.onData(c)):this.onData(cg.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(u=!0)}while((r.avail_in>0||r.avail_out===0)&&s!==lr.Z_STREAM_END);return s===lr.Z_STREAM_END&&(o=lr.Z_FINISH),o===lr.Z_FINISH?(s=ef.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===lr.Z_OK):(o===lr.Z_SYNC_FLUSH&&(this.onEnd(lr.Z_OK),r.avail_out=0),!0)};Tu.prototype.onData=function(t){this.chunks.push(t)};Tu.prototype.onEnd=function(t){t===lr.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=cg.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function EA(t,e){var r=new Tu(e);if(r.push(t,!0),r.err)throw r.msg||U2[r.err];return r.result}function _$(t,e){return e=e||{},e.raw=!0,EA(t,e)}Wm.Inflate=Tu;Wm.inflate=EA;Wm.inflateRaw=_$;Wm.ungzip=EA;var V$=ha.assign,H$=Vm,G$=Wm,W$=a5,c5={};V$(c5,H$,G$,W$);var K$=c5;const xb=fE(K$);var RR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Up=new Uint8Array(256);for(var X0=0;X0<RR.length;X0++)Up[RR.charCodeAt(X0)]=X0;var q$=function(t){var e=t.length*.75,r=t.length,n,i=0,s,o,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var c=new Uint8Array(e);for(n=0;n<r;n+=4)s=Up[t.charCodeAt(n)],o=Up[t.charCodeAt(n+1)],a=Up[t.charCodeAt(n+2)],l=Up[t.charCodeAt(n+3)],c[i++]=s<<2|o>>4,c[i++]=(o&15)<<4|a>>2,c[i++]=(a&3)<<6|l&63;return c},Q$=function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},u5=function(t){return Q$(xb.inflate(q$(t)))},X$=function(t,e,r){for(var n="",i=0,s=e-t.length;i<s;i++)n+=r;return n+t};const Y$="eJyFWdtyGjkQ/RVqnnar8Bb4lpg3jEnCxgEvGDtxKg9iphm01oyILrZxKv++mrGd3az6KC8UnNa0+nrUGr5lI11VVLtskF198FaU1Dns9w9OOkf7/ePDrJu90bWbiorCgpH2RpLZO9WqaCReqZ8lnReJqKTa/SwL8DXJctPs9Lxs4oSS+bAuVVjXC7/tG/lAxYV0+SYbOOOpm402wojckVlQ8+T4wVFdUDHXlaifrTs91Q/Z4PNeMLu7t3/U6746POm+7vW/dLNlWGuUrOlCW+mkrrPBXr/X+4/gciPz25qszQbhyeyKjG2XZb3ewR+9Xi/sMdVO5k+ebHemcaHzW/57p3/y+qQbPk967We//TxoP191hoVeUWexs44q25nUuTZbbYSj4o9OZ6hUZ97osZ05WT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v08vjqv4zDf1N0w3Lf4A8/vwPpfK11w==";var uee={Courier:$$,"Courier-Bold":Y$,"Courier-Oblique":Z$,"Courier-BoldOblique":J$,Helvetica:nee,"Helvetica-Bold":eee,"Helvetica-Oblique":ree,"Helvetica-BoldOblique":tee,"Times-Roman":aee,"Times-Bold":iee,"Times-Italic":oee,"Times-BoldItalic":see,Symbol:lee,ZapfDingbats:cee},Zg;(function(t){t.Courier="Courier",t.CourierBold="Courier-Bold",t.CourierOblique="Courier-Oblique",t.CourierBoldOblique="Courier-BoldOblique",t.Helvetica="Helvetica",t.Helvetica
vendor: 820 bytes, line 411
411Bold="Helvetica-Bold",t.HelveticaOblique="Helvetica-Oblique",t.HelveticaBoldOblique="Helvetica-BoldOblique",t.TimesRoman="Times-Roman",t.TimesRomanBold="Times-Bold",t.TimesRomanItalic="Times-Italic",t.TimesRomanBoldItalic="Times-BoldItalic",t.Symbol="Symbol",t.ZapfDingbats="ZapfDingbats"})(Zg||(Zg={}));var jR={},dee=function(){function t(){var e=this;this.getWidthOfGlyph=function(r){return e.CharWidths[r]},this.getXAxisKerningForPair=function(r,n){return(e.KernPairXAmounts[r]||{})[n]}}return t.load=function(e){var r=jR[e];if(r)return r;var n=u5(uee[e]),i=Object.assign(new t,JSON.parse(n));return i.CharWidths=i.CharMetrics.reduce(function(s,o){return s[o.N]=o.WX,s},{}),i.KernPairXAmounts=i.KernPairs.reduce(function(s,o){var a=o[0],l=o[1],c=o[2];return s[a]||(s[a]={}),s[a][l]=c,s},{}),jR[e]=i,i},t}();const fee=
vendor: 6,083 bytes, line 411
411"eJztWsuy48iN/Ret74KZfHtX47meqfGjPHaXx4/wgpJ4JbooUU1JVXXb0f9u4JwESF13R7TD29koIpFi8gCJBHDA/Pvm+nraTuPmZ3/f5HHzs7/k8WlzvXS7fvPXp02eqyR/2vRfd2N3gqhUUfm0Od9P236+DoczxLWK66fNpZ93/fkGWaOy5mnTnUR67c57lRaZSItM/tnN/XnsX/DfIqg0JOk8HI4UK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4cmfww2ptZ/DDam1n8MPbtZ3GDw9rs9ui3KZPblw4tz8vJiuc208LhMK5/bRAKJzbT28gFE7wp9XCTvCnR1zO8ZeLw7Fwjj8tTlw4x78v0Ern+PcFWukc//4GWulE//6AonSu/7paxrn+zZ2YnRclRK/rBXJsCAjxh2cKEAWVJ02ku/wOoFv2+12XkmnODwHgW4uQGVbZ0uM7mAJ1b/68/JlpUMnWdy5MF6/Vd5eL19YYSPd6FqPwBkNQo/h2NQxdQQ3bn/dpCxrGrqCW7U8rKZl/mfi0Xytk3Am66ZhYbg4y+KAVslDwbXdNL2d5qU5hnYBlTZaa6hs2t1qWdaeeTptcLco+hl5R7w4H5uOGcQbtEkpT18GusOI2xT9dYcVJf7zCSjmbD+Iud2s1NPRb9E+0UICmizb8ZK/+5JOLOulSqwaw5VJr2vB8dSFn89fvv/8H0oq1dA==";
vendor: 240,807 bytes, lines 411-448
411var hee=u5(fee),g1=JSON.parse(hee),m1=function(){function t(e,r){var n=this;this.canEncodeUnicodeCodePoint=function(i){return i in n.unicodeMappings},this.encodeUnicodeCodePoint=function(i){var s=n.unicodeMappings[i];if(!s){var o=String.fromCharCode(i),a="0x"+X$(i.toString(16),4,"0"),l=n.name+' cannot encode "'+o+'" ('+a+")";throw new Error(l)}return{code:s[0],name:s[1]}},this.name=e,this.supportedCodePoints=Object.keys(r).map(Number).sort(function(i,s){return i-s}),this.unicodeMappings=r}return t}(),Y0={Symbol:new m1("Symbol",g1.symbol),ZapfDingbats:new m1("ZapfDingbats",g1.zapfdingbats),WinAnsi:new m1("WinAnsi",g1.win1252)},Sb=function(t){return Object.keys(t).map(function(e){return t[e]})},pee=Sb(Zg),FR=function(t){return pee.includes(t)},J0=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height},Cr=function(t){return"`"+t+"`"},gee=function(t){return"'"+t+"'"},OR=function(t){var e=typeof t;return e==="string"?gee(t):e==="undefined"?Cr(t):t},mee=function(t,e,r){for(var n=new Array(r.length),i=0,s=r.length;i<s;i++){var o=r[i];n[i]=OR(o)}var a=n.join(" or ");return Cr(e)+" must be one of "+a+", but was actually "+OR(t)},wl=function(t,e,r){Array.isArray(r)||(r=Sb(r));for(var n=0,i=r.length;n<i;n++)if(t===r[n])return;throw new TypeError(mee(t,e,r))},Ni=function(t,e,r){Array.isArray(r)||(r=Sb(r)),wl(t,e,r.concat(void 0))},vee=function(t,e,r){Array.isArray(r)||(r=Sb(r));for(var n=0,i=t.length;n<i;n++)wl(t[n],e,r)},yee=function(t){return t===null?"null":t===void 0?"undefined":typeof t=="string"?"string":isNaN(t)?"NaN":typeof t=="number"?"number":typeof t=="boolean"?"boolean":typeof t=="symbol"?"symbol":typeof t=="bigint"?"bigint":t.constructor&&t.constructor.name?t.constructor.name:t.name?t.name:t.constructor?String(t.constructor):String(t)},wee=function(t,e){return e==="null"?t===null:e==="undefined"?t===void 0:e==="string"?typeof t=="string":e==="number"?typeof t=="number"&&!isNaN(t):e==="boolean"?typeof t=="boolean":e==="symbol"?typeof t=="symbol":e==="bigint"?typeof t=="bigint":e===Date?t instanceof Date:e===Array?t instanceof Array:e===Uint8Array?t instanceof Uint8Array:e===ArrayBuffer?t instanceof ArrayBuffer:e===Function?t instanceof Function:t instanceof e[0]},bee=function(t,e,r){for(var n=new Array(r.length),i=0,s=r.length;i<s;i++){var o=r[i];o==="null"&&(n[i]=Cr("null")),o==="undefined"&&(n[i]=Cr("undefined")),o==="string"?n[i]=Cr("string"):o==="number"?n[i]=Cr("number"):o==="boolean"?n[i]=Cr("boolean"):o==="symbol"?n[i]=Cr("symbol"):o==="bigint"?n[i]=Cr("bigint"):o===Array?n[i]=Cr("Array"):o===Uint8Array?n[i]=Cr("Uint8Array"):o===ArrayBuffer?n[i]=Cr("ArrayBuffer"):n[i]=Cr(o[1])}var a=n.join(" or ");return Cr(e)+" must be of type "+a+", but was actually of type "+Cr(yee(t))},G=function(t,e,r){for(var n=0,i=r.length;n<i;n++)if(wee(t,r[n]))return;throw new TypeError(bee(t,e,r))},ie=function(t,e,r){G(t,e,r.concat("undefined"))},d5=function(t,e,r){for(var n=0,i=t.length;n<i;n++)G(t[n],e,r)},fi=function(t,e,r,n){if(G(t,e,["number"]),G(r,"min",["number"]),G(n,"max",["number"]),n=Math.max(r,n),t<r||t>n)throw new Error(Cr(e)+" must be at least "+r+" and at most "+n+", but was actually "+t)},as=function(t,e,r,n){G(t,e,["number","undefined"]),typeof t=="number"&&fi(t,e,r,n)},f5=function(t,e,r){if(G(t,e,["number"]),t%r!==0)throw new Error(Cr(e)+" must be a multiple of "+r+", but was actually "+t)},xee=function(t,e){if(!Number.isInteger(t))throw new Error(Cr(e)+" must be an integer, but was actually "+t)},Eb=function(t,e){if(![1,0].includes(Math.sign(t)))throw new Error(Cr(e)+" must be a positive number or 0, but was actually "+t)},Oe=new Uint16Array(256);for(var Z0=0;Z0<256;Z0++)Oe[Z0]=Z0;Oe[22]=Re("�");Oe[24]=Re("˘");Oe[25]=Re("ˇ");Oe[26]=Re("ˆ");Oe[27]=Re("˙");Oe[28]=Re("˝");Oe[29]=Re("˛");Oe[30]=Re("˚");Oe[31]=Re("˜");Oe[127]=Re("�");Oe[128]=Re("•");Oe[129]=Re("†");Oe[130]=Re("‡");Oe[131]=Re("…");Oe[132]=Re("—");Oe[133]=Re("–");Oe[134]=Re("ƒ");Oe[135]=Re("⁄");Oe[136]=Re("‹");Oe[137]=Re("›");Oe[138]=Re("−");Oe[139]=Re("‰");Oe[140]=Re("„");Oe[141]=Re("“");Oe[142]=Re("”");Oe[143]=Re("‘");Oe[144]=Re("’");Oe[145]=Re("‚");Oe[146]=Re("™");Oe[147]=Re("fi");Oe[148]=Re("fl");Oe[149]=Re("Ł");Oe[150]=Re("Œ");Oe[151]=Re("Å ");Oe[152]=Re("Ÿ");Oe[153]=Re("Ž");Oe[154]=Re("ı");Oe[155]=Re("ł");Oe[156]=Re("œ");Oe[157]=Re("Å¡");Oe[158]=Re("ž");Oe[159]=Re("�");Oe[160]=Re("€");Oe[173]=Re("�");var h5=function(t){for(var e=new Array(t.length),r=0,n=t.length;r<n;r++)e[r]=Oe[t[r]];return String.fromCodePoint.apply(String,e)},ta=function(){function t(e){this.populate=e,this.value=void 0}return t.prototype.getValue=function(){return this.value},t.prototype.access=function(){return this.value||(this.value=this.populate()),this.value},t.prototype.invalidate=function(){this.value=void 0},t.populatedBy=function(e){return new t(e)},t}(),Vi=function(t){se(e,t);function e(r,n){var i=this,s="Method "+r+"."+n+"() not implemented";return i=t.call(this,s)||this,i}return e}(Error),kA=function(t){se(e,t);function e(r){var n=this,i="Cannot construct "+r+" - it has a private constructor";return n=t.call(this,i)||this,n}return e}(Error),Ky=function(t){se(e,t);function e(r,n){var i=this,s=function(l){var c,u;return(c=l==null?void 0:l.name)!==null&&c!==void 0?c:(u=l==null?void 0:l.constructor)===null||u===void 0?void 0:u.name},o=Array.isArray(r)?r.map(s):[s(r)],a="Expected instance of "+o.join(" or ")+", "+("but got instance of "+(n&&s(n)));return i=t.call(this,a)||this,i}return e}(Error),See=function(t){se(e,t);function e(r){var n=this,i=r+" stream encoding not supported";return n=t.call(this,i)||this,n}return e}(Error),AA=function(t){se(e,t);function e(r,n){var i=this,s="Cannot call "+r+"."+n+"() more than once";return i=t.call(this,s)||this,i}return e}(Error);(function(t){se(e,t);function e(r){var n=this,i="Missing catalog (ref="+r+")";return n=t.call(this,i)||this,n}return e})(Error);var Eee=function(t){se(e,t);function e(){var r=this,n="Can't embed page with missing Contents";return r=t.call(this,n)||this,r}return e}(Error),kee=function(t){se(e,t);function e(r){var n,i,s,o=this,a=(s=(i=(n=r==null?void 0:r.contructor)===null||n===void 0?void 0:n.name)!==null&&i!==void 0?i:r==null?void 0:r.name)!==null&&s!==void 0?s:r,l="Unrecognized stream type: "+a;return o=t.call(this,l)||this,o}return e}(Error),Aee=function(t){se(e,t);function e(){var r=this,n="Found mismatched contexts while embedding pages. All pages in the array passed to `PDFDocument.embedPages()` must be from the same document.";return r=t.call(this,n)||this,r}return e}(Error),Cee=function(t){se(e,t);function e(r){var n=this,i="Attempted to convert PDFArray with "+r+" elements to rectangle, but must have exactly 4 elements.";return n=t.call(this,i)||this,n}return e}(Error),p5=function(t){se(e,t);function e(r){var n=this,i='Attempted to convert "'+r+'" to a date, but it does not match the PDF date string format.';return n=t.call(this,i)||this,n}return e}(Error),DR=function(t){se(e,t);function e(r,n){var i=this,s="Invalid targetIndex specified: targetIndex="+r+" must be less than Count="+n;return i=t.call(this,s)||this,i}return e}(Error),IR=function(t){se(e,t);function e(r,n){var i=this,s="Failed to "+n+" at targetIndex="+r+" due to corrupt page tree: It is likely that one or more 'Count' entries are invalid";return i=t.call(this,s)||this,i}return e}(Error),qy=function(t){se(e,t);function e(r,n,i){var s=this,o="index should be at least "+n+" and at most "+i+", but was actually "+r;return s=t.call(this,o)||this,s}return e}(Error),CA=function(t){se(e,t);function e(){var r=this,n="Attempted to set invalid field value";return r=t.call(this,n)||this,r}return e}(Error),Nee=function(t){se(e,t);function e(){var r=this,n="Attempted to select multiple values for single-select field";return r=t.call(this,n)||this,r}return e}(Error),Pee=function(t){se(e,t);function e(r){var n=this,i="No /DA (default appearance) entry found for field: "+r;return n=t.call(this,i)||this,n}return e}(Error),Tee=function(t){se(e,t);function e(r){var n=this,i="No Tf operator found for DA of field: "+r;return n=t.call(this,i)||this,n}return e}(Error),MR=function(t){se(e,t);function e(r,n){var i=this,s="Failed to parse number "+("(line:"+r.line+" col:"+r.column+" offset="+r.offset+'): "'+n+'"');return i=t.call(this,s)||this,i}return e}(Error),Zl=function(t){se(e,t);function e(r,n){var i=this,s="Failed to parse PDF document "+("(line:"+r.line+" col:"+r.column+" offset="+r.offset+"): "+n);return i=t.call(this,s)||this,i}return e}(Error),Ree=function(t){se(e,t);function e(r,n,i){var s=this,o="Expected next byte to be "+n+" but it was actually "+i;return s=t.call(this,r,o)||this,s}return e}(Zl),jee=function(t){se(e,t);function e(r,n){var i=this,s="Failed to parse PDF object starting with the following byte: "+n;return i=t.call(this,r,s)||this,i}return e}(Zl),Fee=function(t){se(e,t);function e(r){var n=this,i="Failed to parse invalid PDF object";return n=t.call(this,r,i)||this,n}return e}(Zl),Oee=function(t){se(e,t);function e(r){var n=this,i="Failed to parse PDF stream";return n=t.call(this,r,i)||this,n}return e}(Zl),Dee=function(t){se(e,t);function e(r){var n=this,i="Failed to parse PDF literal string due to unbalanced parenthesis";return n=t.call(this,r,i)||this,n}return e}(Zl),Iee=function(t){se(e,t);function e(r){var n=this,i="Parser stalled";return n=t.call(this,r,i)||this,n}return e}(Zl),Mee=function(t){se(e,t);function e(r){var n=this,i="No PDF header found";return n=t.call(this,r,i)||this,n}return e}(Zl),Bee=function(t){se(e,t);function e(r,n){var i=this,s="Did not find expected keyword '"+mM(n)+"'";return i=t.call(this,r,s)||this,i}return e}(Zl),z2;(function(t){t[t.Null=0]="Null",t[t.Backspace=8]="Backspace",t[t.Tab=9]="Tab",t[t.Newline=10]="Newline",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationPoint=33]="ExclamationPoint",t[t.Hash=35]="Hash",t[t.Percent=37]="Percent",t[t.LeftParen=40]="LeftParen",t[t.RightParen=41]="RightParen",t[t.Plus=43]="Plus",t[t.Minus=45]="Minus",t[t.Dash=45]="Dash",t[t.Period=46]="Period",t[t.ForwardSlash=47]="ForwardSlash",t[t.Zero=48]="Zero",t[t.One=49]="One",t[t.Two=50]="Two",t[t.Three=51]="Three",t[t.Four=52]="Four",t[t.Five=53]="Five",t[t.Six=54]="Six",t[t.Seven=55]="Seven",t[t.Eight=56]="Eight",t[t.Nine=57]="Nine",t[t.LessThan=60]="LessThan",t[t.GreaterThan=62]="GreaterThan",t[t.A=65]="A",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.O=79]="O",t[t.P=80]="P",t[t.R=82]="R",t[t.LeftSquareBracket=91]="LeftSquareBracket",t[t.BackSlash=92]="BackSlash",t[t.RightSquareBracket=93]="RightSquareBracket",t[t.a=97]="a",t[t.b=98]="b",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.i=105]="i",t[t.j=106]="j",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.x=120]="x",t[t.LeftCurly=123]="LeftCurly",t[t.RightCurly=125]="RightCurly",t[t.Tilde=126]="Tilde"})(z2||(z2={}));const O=z2;var kb=function(){function t(e,r){this.major=String(e),this.minor=String(r)}return t.prototype.toString=function(){var e=ea(129);return"%PDF-"+this.major+"."+this.minor+`
412%`+e+e+e+e},t.prototype.sizeInBytes=function(){return 12+this.major.length+this.minor.length},t.prototype.copyBytesInto=function(e,r){var n=r;return e[r++]=O.Percent,e[r++]=O.P,e[r++]=O.D,e[r++]=O.F,e[r++]=O.Dash,r+=Qr(this.major,e,r),e[r++]=O.Period,r+=Qr(this.minor,e,r),e[r++]=O.Newline,e[r++]=O.Percent,e[r++]=129,e[r++]=129,e[r++]=129,e[r++]=129,r-n},t.forVersion=function(e,r){return new t(e,r)},t}(),Tn=function(){function t(){}return t.prototype.clone=function(e){throw new Vi(this.constructor.name,"clone")},t.prototype.toString=function(){throw new Vi(this.constructor.name,"toString")},t.prototype.sizeInBytes=function(){throw new Vi(this.constructor.name,"sizeInBytes")},t.prototype.copyBytesInto=function(e,r){throw new Vi(this.constructor.name,"copyBytesInto")},t}(),Ce=function(t){se(e,t);function e(r){var n=t.call(this)||this;return n.numberValue=r,n.stringValue=eZ(r),n}return e.prototype.asNumber=function(){return this.numberValue},e.prototype.value=function(){return this.numberValue},e.prototype.clone=function(){return e.of(this.numberValue)},e.prototype.toString=function(){return this.stringValue},e.prototype.sizeInBytes=function(){return this.stringValue.length},e.prototype.copyBytesInto=function(r,n){return n+=Qr(this.stringValue,r,n),this.stringValue.length},e.of=function(r){return new e(r)},e}(Tn),ut=function(t){se(e,t);function e(r){var n=t.call(this)||this;return n.array=[],n.context=r,n}return e.prototype.size=function(){return this.array.length},e.prototype.push=function(r){this.array.push(r)},e.prototype.insert=function(r,n){this.array.splice(r,0,n)},e.prototype.indexOf=function(r){var n=this.array.indexOf(r);return n===-1?void 0:n},e.prototype.remove=function(r){this.array.splice(r,1)},e.prototype.set=function(r,n){this.array[r]=n},e.prototype.get=function(r){return this.array[r]},e.prototype.lookupMaybe=function(r){for(var n,i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return(n=this.context).lookupMaybe.apply(n,it([this.get(r)],i))},e.prototype.lookup=function(r){for(var n,i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return(n=this.context).lookup.apply(n,it([this.get(r)],i))},e.prototype.asRectangle=function(){if(this.size()!==4)throw new Cee(this.size());var r=this.lookup(0,Ce).asNumber(),n=this.lookup(1,Ce).asNumber(),i=this.lookup(2,Ce).asNumber(),s=this.lookup(3,Ce).asNumber(),o=r,a=n,l=i-r,c=s-n;return{x:o,y:a,width:l,height:c}},e.prototype.asArray=function(){return this.array.slice()},e.prototype.clone=function(r){for(var n=e.withContext(r||this.context),i=0,s=this.size();i<s;i++)n.push(this.array[i]);return n},e.prototype.toString=function(){for(var r="[ ",n=0,i=this.size();n<i;n++)r+=this.get(n).toString(),r+=" ";return r+="]",r},e.prototype.sizeInBytes=function(){for(var r=3,n=0,i=this.size();n<i;n++)r+=this.get(n).sizeInBytes()+1;return r},e.prototype.copyBytesInto=function(r,n){var i=n;r[n++]=O.LeftSquareBracket,r[n++]=O.Space;for(var s=0,o=this.size();s<o;s++)n+=this.get(s).copyBytesInto(r,n),r[n++]=O.Space;return r[n++]=O.RightSquareBracket,n-i},e.prototype.scalePDFNumbers=function(r,n){for(var i=0,s=this.size();i<s;i++){var o=this.lookup(i);if(o instanceof Ce){var a=i%2===0?r:n;this.set(i,Ce.of(o.asNumber()*a))}}},e.withContext=function(r){return new e(r)},e}(Tn),v1={},$g=function(t){se(e,t);function e(r,n){var i=this;if(r!==v1)throw new kA("PDFBool");return i=t.call(this)||this,i.value=n,i}return e.prototype.asBoolean=function(){return this.value},e.prototype.clone=function(){return this},e.prototype.toString=function(){return String(this.value)},e.prototype.sizeInBytes=function(){return this.value?4:5},e.prototype.copyBytesInto=function(r,n){return this.value?(r[n++]=O.t,r[n++]=O.r,r[n++]=O.u,r[n++]=O.e,4):(r[n++]=O.f,r[n++]=O.a,r[n++]=O.l,r[n++]=O.s,r[n++]=O.e,5)},e.True=new e(v1,!0),e.False=new e(v1,!1),e}(Tn),is=new Uint8Array(256);is[O.LeftParen]=1;is[O.RightParen]=1;is[O.LessThan]=1;is[O.GreaterThan]=1;is[O.LeftSquareBracket]=1;is[O.RightSquareBracket]=1;is[O.LeftCurly]=1;is[O.RightCurly]=1;is[O.ForwardSlash]=1;is[O.Percent]=1;var pa=new Uint8Array(256);pa[O.Null]=1;pa[O.Tab]=1;pa[O.Newline]=1;pa[O.FormFeed]=1;pa[O.CarriageReturn]=1;pa[O.Space]=1;var NA=new Uint8Array(256);for(var wp=0,Lee=256;wp<Lee;wp++)NA[wp]=pa[wp]||is[wp]?1:0;NA[O.Hash]=1;var Uee=function(t){return t.replace(/#([\dABCDEF]{2})/g,function(e,r){return DJ(r)})},zee=function(t){return t>=O.ExclamationPoint&&t<=O.Tilde&&!NA[t]},BR={},LR=new Map,j=function(t){se(e,t);function e(r,n){var i=this;if(r!==BR)throw new kA("PDFName");i=t.call(this)||this;for(var s="/",o=0,a=n.length;o<a;o++){var l=n[o],c=Re(l);s+=zee(c)?l:"#"+vb(c)}return i.encodedName=s,i}return e.prototype.asBytes=function(){for(var r=[],n="",i=!1,s=function(d){d!==void 0&&r.push(d),i=!1},o=1,a=this.encodedName.length;o<a;o++){var l=this.encodedName[o],c=Re(l),u=this.encodedName[o+1];i?c>=O.Zero&&c<=O.Nine||c>=O.a&&c<=O.f||c>=O.A&&c<=O.F?(n+=l,(n.length===2||!(u>="0"&&u<="9"||u>="a"&&u<="f"||u>="A"&&u<="F"))&&(s(parseInt(n,16)),n="")):s(c):c===O.Hash?i=!0:s(c)}return new Uint8Array(r)},e.prototype.decodeText=function(){var r=this.asBytes();return String.fromCharCode.apply(String,Array.from(r))},e.prototype.asString=function(){return this.encodedName},e.prototype.value=function(){return this.encodedName},e.prototype.clone=function(){return this},e.prototype.toString=function(){return this.encodedName},e.prototype.sizeInBytes=function(){return this.encodedName.length},e.prototype.copyBytesInto=function(r,n){return n+=Qr(this.encodedName,r,n),this.encodedName.length},e.of=function(r){var n=Uee(r),i=LR.get(n);return i||(i=new e(BR,n),LR.set(n,i)),i},e.Length=e.of("Length"),e.FlateDecode=e.of("FlateDecode"),e.Resources=e.of("Resources"),e.Font=e.of("Font"),e.XObject=e.of("XObject"),e.ExtGState=e.of("ExtGState"),e.Contents=e.of("Contents"),e.Type=e.of("Type"),e.Parent=e.of("Parent"),e.MediaBox=e.of("MediaBox"),e.Page=e.of("Page"),e.Annots=e.of("Annots"),e.TrimBox=e.of("TrimBox"),e.ArtBox=e.of("ArtBox"),e.BleedBox=e.of("BleedBox"),e.CropBox=e.of("CropBox"),e.Rotate=e.of("Rotate"),e.Title=e.of("Title"),e.Author=e.of("Author"),e.Subject=e.of("Subject"),e.Creator=e.of("Creator"),e.Keywords=e.of("Keywords"),e.Producer=e.of("Producer"),e.CreationDate=e.of("CreationDate"),e.ModDate=e.of("ModDate"),e}(Tn),_ee=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.asNull=function(){return null},e.prototype.clone=function(){return this},e.prototype.toString=function(){return"null"},e.prototype.sizeInBytes=function(){return 4},e.prototype.copyBytesInto=function(r,n){return r[n++]=O.n,r[n++]=O.u,r[n++]=O.l,r[n++]=O.l,4},e}(Tn);const zn=new _ee;var Ie=function(t){se(e,t);function e(r,n){var i=t.call(this)||this;return i.dict=r,i.context=n,i}return e.prototype.keys=function(){return Array.from(this.dict.keys())},e.prototype.values=function(){return Array.from(this.dict.values())},e.prototype.entries=function(){return Array.from(this.dict.entries())},e.prototype.set=function(r,n){this.dict.set(r,n)},e.prototype.get=function(r,n){n===void 0&&(n=!1);var i=this.dict.get(r);if(!(i===zn&&!n))return i},e.prototype.has=function(r){var n=this.dict.get(r);return n!==void 0&&n!==zn},e.prototype.lookupMaybe=function(r){for(var n,i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];var o=i.includes(zn),a=(n=this.context).lookupMaybe.apply(n,it([this.get(r,o)],i));if(!(a===zn&&!o))return a},e.prototype.lookup=function(r){for(var n,i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];var o=i.includes(zn),a=(n=this.context).lookup.apply(n,it([this.get(r,o)],i));if(!(a===zn&&!o))return a},e.prototype.delete=function(r){return this.dict.delete(r)},e.prototype.asMap=function(){return new Map(this.dict)},e.prototype.uniqueKey=function(r){r===void 0&&(r="");for(var n=this.keys(),i=j.of(this.context.addRandomSuffix(r,10));n.includes(i);)i=j.of(this.context.addRandomSuffix(r,10));return i},e.prototype.clone=function(r){for(var n=e.withContext(r||this.context),i=this.entries(),s=0,o=i.length;s<o;s++){var a=i[s],l=a[0],c=a[1];n.set(l,c)}return n},e.prototype.toString=function(){for(var r=`<<
413`,n=this.entries(),i=0,s=n.length;i<s;i++){var o=n[i],a=o[0],l=o[1];r+=a.toString()+" "+l.toString()+`
414`}return r+=">>",r},e.prototype.sizeInBytes=function(){for(var r=5,n=this.entries(),i=0,s=n.length;i<s;i++){var o=n[i],a=o[0],l=o[1];r+=a.sizeInBytes()+l.sizeInBytes()+2}return r},e.prototype.copyBytesInto=function(r,n){var i=n;r[n++]=O.LessThan,r[n++]=O.LessThan,r[n++]=O.Newline;for(var s=this.entries(),o=0,a=s.length;o<a;o++){var l=s[o],c=l[0],u=l[1];n+=c.copyBytesInto(r,n),r[n++]=O.Space,n+=u.copyBytesInto(r,n),r[n++]=O.Newline}return r[n++]=O.GreaterThan,r[n++]=O.GreaterThan,n-i},e.withContext=function(r){return new e(new Map,r)},e.fromMapWithContext=function(r,n){return new e(r,n)},e}(Tn),gi=function(t){se(e,t);function e(r){var n=t.call(this)||this;return n.dict=r,n}return e.prototype.clone=function(r){throw new Vi(this.constructor.name,"clone")},e.prototype.getContentsString=function(){throw new Vi(this.constructor.name,"getContentsString")},e.prototype.getContents=function(){throw new Vi(this.constructor.name,"getContents")},e.prototype.getContentsSize=function(){throw new Vi(this.constructor.name,"getContentsSize")},e.prototype.updateDict=function(){var r=this.getContentsSize();this.dict.set(j.Length,Ce.of(r))},e.prototype.sizeInBytes=function(){return this.updateDict(),this.dict.sizeInBytes()+this.getContentsSize()+18},e.prototype.toString=function(){this.updateDict();var r=this.dict.toString();return r+=`
415stream
416`,r+=this.getContentsString(),r+=`
417endstream`,r},e.prototype.copyBytesInto=function(r,n){this.updateDict();var i=n;n+=this.dict.copyBytesInto(r,n),r[n++]=O.Newline,r[n++]=O.s,r[n++]=O.t,r[n++]=O.r,r[n++]=O.e,r[n++]=O.a,r[n++]=O.m,r[n++]=O.Newline;for(var s=this.getContents(),o=0,a=s.length;o<a;o++)r[n++]=s[o];return r[n++]=O.Newline,r[n++]=O.e,r[n++]=O.n,r[n++]=O.d,r[n++]=O.s,r[n++]=O.t,r[n++]=O.r,r[n++]=O.e,r[n++]=O.a,r[n++]=O.m,n-i},e}(Tn),em=function(t){se(e,t);function e(r,n){var i=t.call(this,r)||this;return i.contents=n,i}return e.prototype.asUint8Array=function(){return this.contents.slice()},e.prototype.clone=function(r){return e.of(this.dict.clone(r),this.contents.slice())},e.prototype.getContentsString=function(){return mM(this.contents)},e.prototype.getContents=function(){return this.contents},e.prototype.getContentsSize=function(){return this.contents.length},e.of=function(r,n){return new e(r,n)},e}(gi),UR={},zR=new Map,wt=function(t){se(e,t);function e(r,n,i){var s=this;if(r!==UR)throw new kA("PDFRef");return s=t.call(this)||this,s.objectNumber=n,s.generationNumber=i,s.tag=n+" "+i+" R",s}return e.prototype.clone=function(){return this},e.prototype.toString=function(){return this.tag},e.prototype.sizeInBytes=function(){return this.tag.length},e.prototype.copyBytesInto=function(r,n){return n+=Qr(this.tag,r,n),this.tag.length},e.of=function(r,n){n===void 0&&(n=0);var i=r+" "+n+" R",s=zR.get(i);return s||(s=new e(UR,r,n),zR.set(i,s)),s},e}(Tn),$e=function(){function t(e,r){this.name=e,this.args=r||[]}return t.prototype.clone=function(e){for(var r=new Array(this.args.length),n=0,i=r.length;n<i;n++){var s=this.args[n];r[n]=s instanceof Tn?s.clone(e):s}return t.of(this.name,r)},t.prototype.toString=function(){for(var e="",r=0,n=this.args.length;r<n;r++)e+=String(this.args[r])+" ";return e+=this.name,e},t.prototype.sizeInBytes=function(){for(var e=0,r=0,n=this.args.length;r<n;r++){var i=this.args[r];e+=(i instanceof Tn?i.sizeInBytes():i.length)+1}return e+=this.name.length,e},t.prototype.copyBytesInto=function(e,r){for(var n=r,i=0,s=this.args.length;i<s;i++){var o=this.args[i];o instanceof Tn?r+=o.copyBytesInto(e,r):r+=Qr(o,e,r),e[r++]=O.Space}return r+=Qr(this.name,e,r),r-n},t.of=function(e,r){return new t(e,r)},t}(),_2;(function(t){t.NonStrokingColor="sc",t.NonStrokingColorN="scn",t.NonStrokingColorRgb="rg",t.NonStrokingColorGray="g",t.NonStrokingColorCmyk="k",t.NonStrokingColorspace="cs",t.StrokingColor="SC",t.StrokingColorN="SCN",t.StrokingColorRgb="RG",t.StrokingColorGray="G",t.StrokingColorCmyk="K",t.StrokingColorspace="CS",t.BeginMarkedContentSequence="BDC",t.BeginMarkedContent="BMC",t.EndMarkedContent="EMC",t.MarkedContentPointWithProps="DP",t.MarkedContentPoint="MP",t.DrawObject="Do",t.ConcatTransformationMatrix="cm",t.PopGraphicsState="Q",t.PushGraphicsState="q",t.SetFlatness="i",t.SetGraphicsStateParams="gs",t.SetLineCapStyle="J",t.SetLineDashPattern="d",t.SetLineJoinStyle="j",t.SetLineMiterLimit="M",t.SetLineWidth="w",t.SetTextMatrix="Tm",t.SetRenderingIntent="ri",t.AppendRectangle="re",t.BeginInlineImage="BI",t.BeginInlineImageData="ID",t.EndInlineImage="EI",t.ClipEvenOdd="W*",t.ClipNonZero="W",t.CloseAndStroke="s",t.CloseFillEvenOddAndStroke="b*",t.CloseFillNonZeroAndStroke="b",t.ClosePath="h",t.AppendBezierCurve="c",t.CurveToReplicateFinalPoint="y",t.CurveToReplicateInitialPoint="v",t.EndPath="n",t.FillEvenOddAndStroke="B*",t.FillEvenOdd="f*",t.FillNonZeroAndStroke="B",t.FillNonZero="f",t.LegacyFillNonZero="F",t.LineTo="l",t.MoveTo="m",t.ShadingFill="sh",t.StrokePath="S",t.BeginText="BT",t.EndText="ET",t.MoveText="Td",t.MoveTextSetLeading="TD",t.NextLine="T*",t.SetCharacterSpacing="Tc",t.SetFontAndSize="Tf",t.SetTextHorizontalScaling="Tz",t.SetTextLineHeight="TL",t.SetTextRenderingMode="Tr",t.SetTextRise="Ts",t.SetWordSpacing="Tw",t.ShowText="Tj",t.ShowTextAdjusted="TJ",t.ShowTextLine="'",t.ShowTextLineAndSpace='"',t.Type3D0="d0",t.Type3D1="d1",t.BeginCompatibilitySection="BX",t.EndCompatibilitySection="EX"})(_2||(_2={}));const st=_2;var PA=function(t){se(e,t);function e(r,n){var i=t.call(this,r)||this;return i.computeContents=function(){var s=i.getUnencodedContents();return i.encode?xb.deflate(s):s},i.encode=n,n&&r.set(j.of("Filter"),j.of("FlateDecode")),i.contentsCache=ta.populatedBy(i.computeContents),i}return e.prototype.getContents=function(){return this.contentsCache.access()},e.prototype.getContentsSize=function(){return this.contentsCache.access().length},e.prototype.getUnencodedContents=function(){throw new Vi(this.constructor.name,"getUnencodedContents")},e}(gi),ug=function(t){se(e,t);function e(r,n,i){i===void 0&&(i=!0);var s=t.call(this,r,i)||this;return s.operators=n,s}return e.prototype.push=function(){for(var r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];(r=this.operators).push.apply(r,n)},e.prototype.clone=function(r){for(var n=new Array(this.operators.length),i=0,s=this.operators.length;i<s;i++)n[i]=this.operators[i].clone(r);var o=this,a=o.dict,l=o.encode;return e.of(a.clone(r),n,l)},e.prototype.getContentsString=function(){for(var r="",n=0,i=this.operators.length;n<i;n++)r+=this.operators[n]+`
418`;return r},e.prototype.getUnencodedContents=function(){for(var r=new Uint8Array(this.getUnencodedContentsSize()),n=0,i=0,s=this.operators.length;i<s;i++)n+=this.operators[i].copyBytesInto(r,n),r[n++]=O.Newline;return r},e.prototype.getUnencodedContentsSize=function(){for(var r=0,n=0,i=this.operators.length;n<i;n++)r+=this.operators[n].sizeInBytes()+1;return r},e.of=function(r,n,i){return i===void 0&&(i=!0),new e(r,n,i)},e}(PA),Vee=function(){function t(e){this.seed=e}return t.prototype.nextInt=function(){var e=Math.sin(this.seed++)*1e4;return e-Math.floor(e)},t.withSeed=function(e){return new t(e)},t}(),Hee=function(t,e){var r=t[0],n=e[0];return r.objectNumber-n.objectNumber},V2=function(){function t(){this.largestObjectNumber=0,this.header=kb.forVersion(1,7),this.trailerInfo={},this.indirectObjects=new Map,this.rng=Vee.withSeed(1)}return t.prototype.assign=function(e,r){this.indirectObjects.set(e,r),e.objectNumber>this.largestObjectNumber&&(this.largestObjectNumber=e.objectNumber)},t.prototype.nextRef=function(){return this.largestObjectNumber+=1,wt.of(this.largestObjectNumber)},t.prototype.register=function(e){var r=this.nextRef();return this.assign(r,e),r},t.prototype.delete=function(e){return this.indirectObjects.delete(e)},t.prototype.lookupMaybe=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=r.includes(zn),s=e instanceof wt?this.indirectObjects.get(e):e;if(!(!s||s===zn&&!i)){for(var o=0,a=r.length;o<a;o++){var l=r[o];if(l===zn){if(s===zn)return s}else if(s instanceof l)return s}throw new Ky(r,s)}},t.prototype.lookup=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=e instanceof wt?this.indirectObjects.get(e):e;if(r.length===0)return i;for(var s=0,o=r.length;s<o;s++){var a=r[s];if(a===zn){if(i===zn)return i}else if(i instanceof a)return i}throw new Ky(r,i)},t.prototype.getObjectRef=function(e){for(var r=Array.from(this.indirectObjects.entries()),n=0,i=r.length;n<i;n++){var s=r[n],o=s[0],a=s[1];if(a===e)return o}},t.prototype.enumerateIndirectObjects=function(){return Array.from(this.indirectObjects.entries()).sort(Hee)},t.prototype.obj=function(e){if(e instanceof Tn)return e;if(e==null)return zn;if(typeof e=="string")return j.of(e);if(typeof e=="number")return Ce.of(e);if(typeof e=="boolean")return e?$g.True:$g.False;if(Array.isArray(e)){for(var r=ut.withContext(this),n=0,i=e.length;n<i;n++)r.push(this.obj(e[n]));return r}else{for(var s=Ie.withContext(this),o=Object.keys(e),n=0,i=o.length;n<i;n++){var a=o[n],l=e[a];l!==void 0&&s.set(j.of(a),this.obj(l))}return s}},t.prototype.stream=function(e,r){return r===void 0&&(r={}),em.of(this.obj(r),j2(e))},t.prototype.flateStream=function(e,r){return r===void 0&&(r={}),this.stream(xb.deflate(j2(e)),Fe(Fe({},r),{Filter:"FlateDecode"}))},t.prototype.contentStream=function(e,r){return r===void 0&&(r={}),ug.of(this.obj(r),e)},t.prototype.formXObject=function(e,r){return r===void 0&&(r={}),this.contentStream(e,Fe(Fe({BBox:this.obj([0,0,0,0]),Matrix:this.obj([1,0,0,1,0,0])},r),{Type:"XObject",Subtype:"Form"}))},t.prototype.getPushGraphicsStateContentStream=function(){if(this.pushGraphicsStateContentStreamRef)return this.pushGraphicsStateContentStreamRef;var e=this.obj({}),r=$e.of(st.PushGraphicsState),n=ug.of(e,[r]);return this.pushGraphicsStateContentStreamRef=this.register(n),this.pushGraphicsStateContentStreamRef},t.prototype.getPopGraphicsStateContentStream=function(){if(this.popGraphicsStateContentStreamRef)return this.popGraphicsStateContentStreamRef;var e=this.obj({}),r=$e.of(st.PopGraphicsState),n=ug.of(e,[r]);return this.popGraphicsStateContentStreamRef=this.register(n),this.popGraphicsStateContentStreamRef},t.prototype.addRandomSuffix=function(e,r){return r===void 0&&(r=4),e+"-"+Math.floor(this.rng.nextInt()*Math.pow(10,r))},t.create=function(){return new t},t}(),ra=function(t){se(e,t);function e(r,n,i){i===void 0&&(i=!0);var s=t.call(this,r,n)||this;return s.normalized=!1,s.autoNormalizeCTM=i,s}return e.prototype.clone=function(r){for(var n=e.fromMapWithContext(new Map,r||this.context,this.autoNormalizeCTM),i=this.entries(),s=0,o=i.length;s<o;s++){var a=i[s],l=a[0],c=a[1];n.set(l,c)}return n},e.prototype.Parent=function(){return this.lookupMaybe(j.Parent,Ie)},e.prototype.Contents=function(){return this.lookup(j.of("Contents"))},e.prototype.Annots=function(){return this.lookupMaybe(j.Annots,ut)},e.prototype.BleedBox=function(){return this.lookupMaybe(j.BleedBox,ut)},e.prototype.TrimBox=function(){return this.lookupMaybe(j.TrimBox,ut)},e.prototype.ArtBox=function(){return this.lookupMaybe(j.ArtBox,ut)},e.prototype.Resources=function(){var r=this.getInheritableAttribute(j.Resources);return this.context.lookupMaybe(r,Ie)},e.prototype.MediaBox=function(){var r=this.getInheritableAttribute(j.MediaBox);return this.context.lookup(r,ut)},e.prototype.CropBox=function(){var r=this.getInheritableAttribute(j.CropBox);return this.context.lookupMaybe(r,ut)},e.prototype.Rotate=function(){var r=this.getInheritableAttribute(j.Rotate);return this.context.lookupMaybe(r,Ce)},e.prototype.getInheritableAttribute=function(r){var n;return this.ascend(function(i){n||(n=i.get(r))}),n},e.prototype.setParent=function(r){this.set(j.Parent,r)},e.prototype.addContentStream=function(r){var n=this.normalizedEntries().Contents||this.context.obj([]);this.set(j.Contents,n),n.push(r)},e.prototype.wrapContentStreams=function(r,n){var i=this.Contents();return i instanceof ut?(i.insert(0,r),i.push(n),!0):!1},e.prototype.addAnnot=function(r){var n=this.normalizedEntries().Annots;n.push(r)},e.prototype.removeAnnot=function(r){var n=this.normalizedEntries().Annots,i=n.indexOf(r);i!==void 0&&n.remove(i)},e.prototype.setFontDictionary=function(r,n){var i=this.normalizedEntries().Font;i.set(r,n)},e.prototype.newFontDictionaryKey=function(r){var n=this.normalizedEntries().Font;return n.uniqueKey(r)},e.prototype.newFontDictionary=function(r,n){var i=this.newFontDictionaryKey(r);return this.setFontDictionary(i,n),i},e.prototype.setXObject=function(r,n){var i=this.normalizedEntries().XObject;i.set(r,n)},e.prototype.newXObjectKey=function(r){var n=this.normalizedEntries().XObject;return n.uniqueKey(r)},e.prototype.newXObject=function(r,n){var i=this.newXObjectKey(r);return this.setXObject(i,n),i},e.prototype.setExtGState=function(r,n){var i=this.normalizedEntries().ExtGState;i.set(r,n)},e.prototype.newExtGStateKey=function(r){var n=this.normalizedEntries().ExtGState;return n.uniqueKey(r)},e.prototype.newExtGState=function(r,n){var i=this.newExtGStateKey(r);return this.setExtGState(i,n),i},e.prototype.ascend=function(r){r(this);var n=this.Parent();n&&n.ascend(r)},e.prototype.normalize=function(){if(!this.normalized){var r=this.context,n=this.get(j.Contents),i=this.context.lookup(n);i instanceof gi&&this.set(j.Contents,r.obj([n])),this.autoNormalizeCTM&&this.wrapContentStreams(this.context.getPushGraphicsStateContentStream(),this.context.getPopGraphicsStateContentStream());var s=this.getInheritableAttribute(j.Resources),o=r.lookupMaybe(s,Ie)||r.obj({});this.set(j.Resources,o);var a=o.lookupMaybe(j.Font,Ie)||r.obj({});o.set(j.Font,a);var l=o.lookupMaybe(j.XObject,Ie)||r.obj({});o.set(j.XObject,l);var c=o.lookupMaybe(j.ExtGState,Ie)||r.obj({});o.set(j.ExtGState,c);var u=this.Annots()||r.obj([]);this.set(j.Annots,u),this.normalized=!0}},e.prototype.normalizedEntries=function(){this.normalize();var r=this.Annots(),n=this.Resources(),i=this.Contents();return{Annots:r,Resources:n,Contents:i,Font:n.lookup(j.Font,Ie),XObject:n.lookup(j.XObject,Ie),ExtGState:n.lookup(j.ExtGState,Ie)}},e.InheritableEntries=["Resources","MediaBox","CropBox","Rotate"],e.withContextAndParent=function(r,n){var i=new Map;return i.set(j.Type,j.Page),i.set(j.Parent,n),i.set(j.Resources,r.obj({})),i.set(j.MediaBox,r.obj([0,0,612,792])),new e(i,r,!1)},e.fromMapWithContext=function(r,n,i){return i===void 0&&(i=!0),new e(r,n,i)},e}(Ie),_R=function(){function t(e,r){var n=this;this.traversedObjects=new Map,this.copy=function(i){return i instanceof ra?n.copyPDFPage(i):i instanceof Ie?n.copyPDFDict(i):i instanceof ut?n.copyPDFArray(i):i instanceof gi?n.copyPDFStream(i):i instanceof wt?n.copyPDFIndirectObject(i):i.clone()},this.copyPDFPage=function(i){for(var s=i.clone(),o=ra.InheritableEntries,a=0,l=o.length;a<l;a++){var c=j.of(o[a]),u=s.getInheritableAttribute(c);!s.get(c)&&u&&s.set(c,u)}return s.delete(j.of("Parent")),n.copyPDFDict(s)},this.copyPDFDict=function(i){if(n.traversedObjects.has(i))return n.traversedObjects.get(i);var s=i.clone(n.dest);n.traversedObjects.set(i,s);for(var o=i.entries(),a=0,l=o.length;a<l;a++){var c=o[a],u=c[0],d=c[1];s.set(u,n.copy(d))}return s},this.copyPDFArray=function(i){if(n.traversedObjects.has(i))return n.traversedObjects.get(i);var s=i.clone(n.dest);n.traversedObjects.set(i,s);for(var o=0,a=i.size();o<a;o++){var l=i.get(o);s.set(o,n.copy(l))}return s},this.copyPDFStream=function(i){if(n.traversedObjects.has(i))return n.traversedObjects.get(i);var s=i.clone(n.dest);n.traversedObjects.set(i,s);for(var o=i.dict.entries(),a=0,l=o.length;a<l;a++){var c=o[a],u=c[0],d=c[1];s.dict.set(u,n.copy(d))}return s},this.copyPDFIndirectObject=function(i){var s=n.traversedObjects.has(i);if(!s){var o=n.dest.nextRef();n.traversedObjects.set(i,o);var a=n.src.lookup(i);if(a){var l=n.copy(a);n.dest.assign(o,l)}}return n.traversedObjects.get(i)},this.src=e,this.dest=r}return t.for=function(e,r){return new t(e,r)},t}(),g5=function(){function t(e){this.subsections=e?[[e]]:[],this.chunkIdx=0,this.chunkLength=e?1:0}return t.prototype.addEntry=function(e,r){this.append({ref:e,offset:r,deleted:!1})},t.prototype.addDeletedEntry=function(e,r){this.append({ref:e,offset:r,deleted:!0})},t.prototype.toString=function(){for(var e=`xref
419`,r=0,n=this.subsections.length;r<n;r++){var i=this.subsections[r];e+=i[0].ref.objectNumber+" "+i.length+`
420`;for(var s=0,o=i.length;s<o;s++){var a=i[s];e+=Es(String(a.offset),10,"0"),e+=" ",e+=Es(String(a.ref.generationNumber),5,"0"),e+=" ",e+=a.deleted?"f":"n",e+=` 
421`}}return e},t.prototype.sizeInBytes=function(){for(var e=5,r=0,n=this.subsections.length;r<n;r++){var i=this.subsections[r],s=i.length,o=i[0];e+=2,e+=String(o.ref.objectNumber).length,e+=String(s).length,e+=20*s}return e},t.prototype.copyBytesInto=function(e,r){var n=r;return e[r++]=O.x,e[r++]=O.r,e[r++]=O.e,e[r++]=O.f,e[r++]=O.Newline,r+=this.copySubsectionsIntoBuffer(this.subsections,e,r),r-n},t.prototype.copySubsectionsIntoBuffer=function(e,r,n){for(var i=n,s=e.length,o=0;o<s;o++){var a=this.subsections[o],l=String(a[0].ref.objectNumber);n+=Qr(l,r,n),r[n++]=O.Space;var c=String(a.length);n+=Qr(c,r,n),r[n++]=O.Newline,n+=this.copyEntriesIntoBuffer(a,r,n)}return n-i},t.prototype.copyEntriesIntoBuffer=function(e,r,n){for(var i=e.length,s=0;s<i;s++){var o=e[s],a=Es(String(o.offset),10,"0");n+=Qr(a,r,n),r[n++]=O.Space;var l=Es(String(o.ref.generationNumber),5,"0");n+=Qr(l,r,n),r[n++]=O.Space,r[n++]=o.deleted?O.f:O.n,r[n++]=O.Space,r[n++]=O.Newline}return 20*i},t.prototype.append=function(e){if(this.chunkLength===0){this.subsections.push([e]),this.chunkIdx=0,this.chunkLength=1;return}var r=this.subsections[this.chunkIdx],n=r[this.chunkLength-1];e.ref.objectNumber-n.ref.objectNumber>1?(this.subsections.push([e]),this.chunkIdx+=1,this.chunkLength=1):(r.push(e),this.chunkLength+=1)},t.create=function(){return new t({ref:wt.of(0,65535),offset:0,deleted:!0})},t.createEmpty=function(){return new t},t}(),TA=function(){function t(e){this.lastXRefOffset=String(e)}return t.prototype.toString=function(){return`startxref
422`+this.lastXRefOffset+`
423%%EOF`},t.prototype.sizeInBytes=function(){return 16+this.lastXRefOffset.length},t.prototype.copyBytesInto=function(e,r){var n=r;return e[r++]=O.s,e[r++]=O.t,e[r++]=O.a,e[r++]=O.r,e[r++]=O.t,e[r++]=O.x,e[r++]=O.r,e[r++]=O.e,e[r++]=O.f,e[r++]=O.Newline,r+=Qr(this.lastXRefOffset,e,r),e[r++]=O.Newline,e[r++]=O.Percent,e[r++]=O.Percent,e[r++]=O.E,e[r++]=O.O,e[r++]=O.F,r-n},t.forLastCrossRefSectionOffset=function(e){return new t(e)},t}(),Gee=function(){function t(e){this.dict=e}return t.prototype.toString=function(){return`trailer
424`+this.dict.toString()},t.prototype.sizeInBytes=function(){return 8+this.dict.sizeInBytes()},t.prototype.copyBytesInto=function(e,r){var n=r;return e[r++]=O.t,e[r++]=O.r,e[r++]=O.a,e[r++]=O.i,e[r++]=O.l,e[r++]=O.e,e[r++]=O.r,e[r++]=O.Newline,r+=this.dict.copyBytesInto(e,r),r-n},t.of=function(e){return new t(e)},t}(),m5=function(t){se(e,t);function e(r,n,i){i===void 0&&(i=!0);var s=t.call(this,r.obj({}),i)||this;return s.objects=n,s.offsets=s.computeObjectOffsets(),s.offsetsString=s.computeOffsetsString(),s.dict.set(j.of("Type"),j.of("ObjStm")),s.dict.set(j.of("N"),Ce.of(s.objects.length)),s.dict.set(j.of("First"),Ce.of(s.offsetsString.length)),s}return e.prototype.getObjectsCount=function(){return this.objects.length},e.prototype.clone=function(r){return e.withContextAndObjects(r||this.dict.context,this.objects.slice(),this.encode)},e.prototype.getContentsString=function(){for(var r=this.offsetsString,n=0,i=this.objects.length;n<i;n++){var s=this.objects[n],o=s[1];r+=o+`
425`}return r},e.prototype.getUnencodedContents=function(){for(var r=new Uint8Array(this.getUnencodedContentsSize()),n=Qr(this.offsetsString,r,0),i=0,s=this.objects.length;i<s;i++){var o=this.objects[i],a=o[1];n+=a.copyBytesInto(r,n),r[n++]=O.Newline}return r},e.prototype.getUnencodedContentsSize=function(){return this.offsetsString.length+Hy(this.offsets)[1]+Hy(this.objects)[1].sizeInBytes()+1},e.prototype.computeOffsetsString=function(){for(var r="",n=0,i=this.offsets.length;n<i;n++){var s=this.offsets[n],o=s[0],a=s[1];r+=o+" "+a+" "}return r},e.prototype.computeObjectOffsets=function(){for(var r=0,n=new Array(this.objects.length),i=0,s=this.objects.length;i<s;i++){var o=this.objects[i],a=o[0],l=o[1];n[i]=[a.objectNumber,r],r+=l.sizeInBytes()+1}return n},e.withContextAndObjects=function(r,n,i){return i===void 0&&(i=!0),new e(r,n,i)},e}(PA),v5=function(){function t(e,r){var n=this;this.parsedObjects=0,this.shouldWaitForTick=function(i){return n.parsedObjects+=i,n.parsedObjects%n.objectsPerTick===0},this.context=e,this.objectsPerTick=r}return t.prototype.serializeToBuffer=function(){return Me(this,void 0,void 0,function(){var e,r,n,i,s,o,a,l,c,u,d,h,p,m,g,y,v;return Be(this,function(w){switch(w.label){case 0:return[4,this.computeBufferSize()];case 1:e=w.sent(),r=e.size,n=e.header,i=e.indirectObjects,s=e.xref,o=e.trailerDict,a=e.trailer,l=0,c=new Uint8Array(r),l+=n.copyBytesInto(c,l),c[l++]=O.Newline,c[l++]=O.Newline,u=0,d=i.length,w.label=2;case 2:return u<d?(h=i[u],p=h[0],m=h[1],g=String(p.objectNumber),l+=Qr(g,c,l),c[l++]=O.Space,y=String(p.generationNumber),l+=Qr(y,c,l),c[l++]=O.Space,c[l++]=O.o,c[l++]=O.b,c[l++]=O.j,c[l++]=O.Newline,l+=m.copyBytesInto(c,l),c[l++]=O.Newline,c[l++]=O.e,c[l++]=O.n,c[l++]=O.d,c[l++]=O.o,c[l++]=O.b,c[l++]=O.j,c[l++]=O.Newline,c[l++]=O.Newline,v=m instanceof m5?m.getObjectsCount():1,this.shouldWaitForTick(v)?[4,kh()]:[3,4]):[3,5];case 3:w.sent(),w.label=4;case 4:return u++,[3,2];case 5:return s&&(l+=s.copyBytesInto(c,l),c[l++]=O.Newline),o&&(l+=o.copyBytesInto(c,l),c[l++]=O.Newline,c[l++]=O.Newline),l+=a.copyBytesInto(c,l),[2,c]}})})},t.prototype.computeIndirectObjectSize=function(e){var r=e[0],n=e[1],i=r.sizeInBytes()+3,s=n.sizeInBytes()+9;return i+s},t.prototype.createTrailerDict=function(){return this.context.obj({Size:this.context.largestObjectNumber+1,Root:this.context.trailerInfo.Root,Encrypt:this.context.trailerInfo.Encrypt,Info:this.context.trailerInfo.Info,ID:this.context.trailerInfo.ID})},t.prototype.computeBufferSize=function(){return Me(this,void 0,void 0,function(){var e,r,n,i,s,o,a,l,c,u,d;return Be(this,function(h){switch(h.label){case 0:e=kb.forVersion(1,7),r=e.sizeInBytes()+2,n=g5.create(),i=this.context.enumerateIndirectObjects(),s=0,o=i.length,h.label=1;case 1:return s<o?(a=i[s],l=a[0],n.addEntry(l,r),r+=this.computeIndirectObjectSize(a),this.shouldWaitForTick(1)?[4,kh()]:[3,3]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:return c=r,r+=n.sizeInBytes()+1,u=Gee.of(this.createTrailerDict()),r+=u.sizeInBytes()+2,d=TA.forLastCrossRefSectionOffset(c),r+=d.sizeInBytes(),[2,{size:r,header:e,indirectObjects:i,xref:n,trailerDict:u,trailer:d}]}})})},t.forContext=function(e,r){return new t(e,r)},t}(),y5=function(t){se(e,t);function e(r){var n=t.call(this)||this;return n.data=r,n}return e.prototype.clone=function(){return e.of(this.data.slice())},e.prototype.toString=function(){return"PDFInvalidObject("+this.data.length+" bytes)"},e.prototype.sizeInBytes=function(){return this.data.length},e.prototype.copyBytesInto=function(r,n){for(var i=this.data.length,s=0;s<i;s++)r[n++]=this.data[s];return i},e.of=function(r){return new e(r)},e}(Tn),La;(function(t){t[t.Deleted=0]="Deleted",t[t.Uncompressed=1]="Uncompressed",t[t.Compressed=2]="Compressed"})(La||(La={}));var Wee=function(t){se(e,t);function e(r,n,i){i===void 0&&(i=!0);var s=t.call(this,r,i)||this;return s.computeIndex=function(){for(var o=[],a=0,l=0,c=s.entries.length;l<c;l++){var u=s.entries[l],d=s.entries[l-1];l===0?o.push(u.ref.objectNumber):u.ref.objectNumber-d.ref.objectNumber>1&&(o.push(a),o.push(u.ref.objectNumber),a=0),a+=1}return o.push(a),o},s.computeEntryTuples=function(){for(var o=new Array(s.entries.length),a=0,l=s.entries.length;a<l;a++){var c=s.entries[a];if(c.type===La.Deleted){var u=c.type,d=c.nextFreeObjectNumber,h=c.ref;o[a]=[u,d,h.generationNumber]}if(c.type===La.Uncompressed){var u=c.type,p=c.offset,h=c.ref;o[a]=[u,p,h.generationNumber]}if(c.type===La.Compressed){var u=c.type,m=c.objectStreamRef,g=c.index;o[a]=[u,m.objectNumber,g]}}return o},s.computeMaxEntryByteWidths=function(){for(var o=s.entryTuplesCache.access(),a=[0,0,0],l=0,c=o.length;l<c;l++){var u=o[l],d=u[0],h=u[1],p=u[2],m=Bv(d),g=Bv(h),y=Bv(p);m>a[0]&&(a[0]=m),g>a[1]&&(a[1]=g),y>a[2]&&(a[2]=y)}return a},s.entries=n||[],s.entryTuplesCache=ta.populatedBy(s.computeEntryTuples),s.maxByteWidthsCache=ta.populatedBy(s.computeMaxEntryByteWidths),s.indexCache=ta.populatedBy(s.computeIndex),r.set(j.of("Type"),j.of("XRef")),s}return e.prototype.addDeletedEntry=function(r,n){var i=La.Deleted;this.entries.push({type:i,ref:r,nextFreeObjectNumber:n}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addUncompressedEntry=function(r,n){var i=La.Uncompressed;this.entries.push({type:i,ref:r,offset:n}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addCompressedEntry=function(r,n,i){var s=La.Compressed;this.entries.push({type:s,ref:r,objectStreamRef:n,index:i}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.clone=function(r){var n=this,i=n.dict,s=n.entries,o=n.encode;return e.of(i.clone(r),s.slice(),o)},e.prototype.getContentsString=function(){for(var r=this.entryTuplesCache.access(),n=this.maxByteWidthsCache.access(),i="",s=0,o=r.length;s<o;s++){for(var a=r[s],l=a[0],c=a[1],u=a[2],d=od(ad(l)),h=od(ad(c)),p=od(ad(u)),m=n[0]-1;m>=0;m--)i+=(d[m]||0).toString(2);for(var m=n[1]-1;m>=0;m--)i+=(h[m]||0).toString(2);for(var m=n[2]-1;m>=0;m--)i+=(p[m]||0).toString(2)}return i},e.prototype.getUnencodedContents=function(){for(var r=this.entryTuplesCache.access(),n=this.maxByteWidthsCache.access(),i=new Uint8Array(this.getUnencodedContentsSize()),s=0,o=0,a=r.length;o<a;o++){for(var l=r[o],c=l[0],u=l[1],d=l[2],h=od(ad(c)),p=od(ad(u)),m=od(ad(d)),g=n[0]-1;g>=0;g--)i[s++]=h[g]||0;for(var g=n[1]-1;g>=0;g--)i[s++]=p[g]||0;for(var g=n[2]-1;g>=0;g--)i[s++]=m[g]||0}return i},e.prototype.getUnencodedContentsSize=function(){var r=this.maxByteWidthsCache.access(),n=WJ(r);return n*this.entries.length},e.prototype.updateDict=function(){t.prototype.updateDict.call(this);var r=this.maxByteWidthsCache.access(),n=this.indexCache.access(),i=this.dict.context;this.dict.set(j.of("W"),i.obj(r)),this.dict.set(j.of("Index"),i.obj(n))},e.create=function(r,n){n===void 0&&(n=!0);var i=new e(r,[],n);return i.addDeletedEntry(wt.of(0,65535),0),i},e.of=function(r,n,i){return i===void 0&&(i=!0),new e(r,n,i)},e}(PA),Kee=function(t){se(e,t);function e(r,n,i,s){var o=t.call(this,r,n)||this;return o.encodeStreams=i,o.objectsPerStream=s,o}return e.prototype.computeBufferSize=function(){return Me(this,void 0,void 0,function(){var r,n,i,s,o,a,l,c,m,g,u,v,d,h,y,p,m,g,y,v,w,b,E,A;return Be(this,function(k){switch(k.label){case 0:r=this.context.largestObjectNumber+1,n=kb.forVersion(1,7),i=n.sizeInBytes()+2,s=Wee.create(this.createTrailerDict(),this.encodeStreams),o=[],a=[],l=[],c=this.context.enumerateIndirectObjects(),m=0,g=c.length,k.label=1;case 1:return m<g?(u=c[m],v=u[0],d=u[1],h=v===this.context.trailerInfo.Encrypt||d instanceof gi||d instanceof y5||v.generationNumber!==0,h?(o.push(u),s.addUncompressedEntry(v,i),i+=this.computeIndirectObjectSize(u),this.shouldWaitForTick(1)?[4,kh()]:[3,3]):[3,4]):[3,6];case 2:k.sent(),k.label=3;case 3:return[3,5];case 4:y=Hy(a),p=Hy(l),(!y||y.length%this.objectsPerStream===0)&&(y=[],a.push(y),p=wt.of(r++),l.push(p)),s.addCompressedEntry(v,p,y.length),y.push(u),k.label=5;case 5:return m++,[3,1];case 6:m=0,g=a.length,k.label=7;case 7:return m<g?(y=a[m],v=l[m],w=m5.withContextAndObjects(this.context,y,this.encodeStreams),s.addUncompressedEntry(v,i),i+=this.computeIndirectObjectSize([v,w]),o.push([v,w]),this.shouldWaitForTick(y.length)?[4,kh()]:[3,9]):[3,10];case 8:k.sent(),k.label=9;case 9:return m++,[3,7];case 10:return b=wt.of(r++),s.dict.set(j.of("Size"),Ce.of(r)),s.addUncompressedEntry(b,i),E=i,i+=this.computeIndirectObjectSize([b,s]),o.push([b,s]),A=TA.forLastCrossRefSectionOffset(E),i+=A.sizeInBytes(),[2,{size:i,header:n,indirectObjects:o,trailer:A}]}})})},e.forContext=function(r,n,i,s){return i===void 0&&(i=!0),s===void 0&&(s=50),new e(r,n,i,s)},e}(v5),Ee=function(t){se(e,t);function e(r){var n=t.call(this)||this;return n.value=r,n}return e.prototype.asBytes=function(){for(var r=this.value+(this.value.length%2===1?"0":""),n=r.length,i=new Uint8Array(r.length/2),s=0,o=0;s<n;){var a=parseInt(r.substring(s,s+2),16);i[o]=a,s+=2,o+=1}return i},e.prototype.decodeText=function(){var r=this.asBytes();return SM(r)?wM(r):h5(r)},e.prototype.decodeDate=function(){var r=this.decodeText(),n=gM(r);if(!n)throw new p5(r);return n},e.prototype.asString=function(){return this.value},e.prototype.clone=function(){return e.of(this.value)},e.prototype.toString=function(){return"<"+this.value+">"},e.prototype.sizeInBytes=function(){return this.value.length+2},e.prototype.copyBytesInto=function(r,n){return r[n++]=O.LessThan,n+=Qr(this.value,r,n),r[n++]=O.GreaterThan,this.value.length+2},e.of=function(r){return new e(r)},e.fromText=function(r){for(var n=XJ(r),i="",s=0,o=n.length;s<o;s++)i+=Um(n[s],4);return new e(i)},e}(Tn),Qy=function(){function t(e,r){this.encoding=e===Zg.ZapfDingbats?Y0.ZapfDingbats:e===Zg.Symbol?Y0.Symbol:Y0.WinAnsi,this.font=dee.load(e),this.fontName=this.font.FontName,this.customName=r}return t.prototype.encodeText=function(e){for(var r=this.encodeTextAsGlyphs(e),n=new Array(r.length),i=0,s=r.length;i<s;i++)n[i]=vb(r[i].code);return Ee.of(n.join(""))},t.prototype.widthOfTextAtSize=function(e,r){for(var n=this.encodeTextAsGlyphs(e),i=0,s=0,o=n.length;s<o;s++){var a=n[s].name,l=(n[s+1]||{}).name,c=this.font.getXAxisKerningForPair(a,l)||0;i+=this.widthOfGlyph(a)+c}var u=r/1e3;return i*u},t.prototype.heightOfFontAtSize=function(e,r){r===void 0&&(r={});var n=r.descender,i=n===void 0?!0:n,s=this.font,o=s.Ascender,a=s.Descender,l=s.FontBBox,c=o||l[3],u=a||l[1],d=c-u;return i||(d+=a||0),d/1e3*e},t.prototype.sizeOfFontAtHeight=function(e){var r=this.font,n=r.Ascender,i=r.Descender,s=r.FontBBox,o=n||s[3],a=i||s[1];return 1e3*e/(o-a)},t.prototype.embedIntoContext=function(e,r){var n=e.obj({Type:"Font",Subtype:"Type1",BaseFont:this.customName||this.fontName,Encoding:this.encoding===Y0.WinAnsi?"WinAnsiEncoding":void 0});return r?(e.assign(r,n),r):e.register(n)},t.prototype.widthOfGlyph=function(e){return this.font.getWidthOfGlyph(e)||250},t.prototype.encodeTextAsGlyphs=function(e){for(var r=Array.from(e),n=new Array(r.length),i=0,s=r.length;i<s;i++){var o=OJ(r[i]);n[i]=this.encoding.encodeUnicodeCodePoint(o)}return n},t.for=function(e,r){return new t(e,r)},t}(),qee=function(t,e){for(var r=new Array(t.length),n=0,i=t.length;n<i;n++){var s=t[n],o=VR(Hv(e(s))),a=VR.apply(void 0,s.codePoints.map(Xee));r[n]=[o,a]}return Qee(r)},Qee=function(t){return`/CIDInit /ProcSet findresource begin
42612 dict begin
427begincmap
428/CIDSystemInfo <<
429  /Registry (Adobe)
430  /Ordering (UCS)
431  /Supplement 0
432>> def
433/CMapName /Adobe-Identity-UCS def
434/CMapType 2 def
4351 begincodespacerange
436<0000><ffff>
437endcodespacerange
438`+t.length+` beginbfchar
439`+t.map(function(e){var r=e[0],n=e[1];return r+" "+n}).join(`
440`)+`
441endbfchar
442endcmap
443CMapName currentdict /CMap defineresource pop
444end
445end`},VR=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"<"+t.join("")+">"},Hv=function(t){return Um(t,4)},Xee=function(t){if(YJ(t))return Hv(t);if(JJ(t)){var e=vM(t),r=yM(t);return""+Hv(e)+Hv(r)}var n=vb(t),i="0x"+n+" is not a valid UTF-8 or UTF-16 codepoint.";throw new Error(i)},Yee=function(t){var e=0,r=function(n){e|=1<<n-1};return t.fixedPitch&&r(1),t.serif&&r(2),r(3),t.script&&r(4),t.nonsymbolic&&r(6),t.italic&&r(7),t.allCap&&r(17),t.smallCap&&r(18),t.forceBold&&r(19),e},Jee=function(t){var e=t["OS/2"]?t["OS/2"].sFamilyClass:0,r=Yee({fixedPitch:t.post.isFixedPitch,serif:1<=e&&e<=7,symbolic:!0,script:e===10,italic:t.head.macStyle.italic});return r},yt=function(t){se(e,t);function e(r){var n=t.call(this)||this;return n.value=r,n}return e.prototype.asBytes=function(){for(var r=[],n="",i=!1,s=function(d){d!==void 0&&r.push(d),i=!1},o=0,a=this.value.length;o<a;o++){var l=this.value[o],c=Re(l),u=this.value[o+1];i?c===O.Newline||c===O.CarriageReturn?s():c===O.n?s(O.Newline):c===O.r?s(O.CarriageReturn):c===O.t?s(O.Tab):c===O.b?s(O.Backspace):c===O.f?s(O.FormFeed):c===O.LeftParen?s(O.LeftParen):c===O.RightParen?s(O.RightParen):c===O.Backspace?s(O.BackSlash):c>=O.Zero&&c<=O.Seven?(n+=l,(n.length===3||!(u>="0"&&u<="7"))&&(s(parseInt(n,8)),n="")):s(c):c===O.BackSlash?i=!0:s(c)}return new Uint8Array(r)},e.prototype.decodeText=function(){var r=this.asBytes();return SM(r)?wM(r):h5(r)},e.prototype.decodeDate=function(){var r=this.decodeText(),n=gM(r);if(!n)throw new p5(r);return n},e.prototype.asString=function(){return this.value},e.prototype.clone=function(){return e.of(this.value)},e.prototype.toString=function(){return"("+this.value+")"},e.prototype.sizeInBytes=function(){return this.value.length+2},e.prototype.copyBytesInto=function(r,n){return r[n++]=O.LeftParen,n+=Qr(this.value,r,n),r[n++]=O.RightParen,this.value.length+2},e.of=function(r){return new e(r)},e.fromDate=function(r){var n=Es(String(r.getUTCFullYear()),4,"0"),i=Es(String(r.getUTCMonth()+1),2,"0"),s=Es(String(r.getUTCDate()),2,"0"),o=Es(String(r.getUTCHours()),2,"0"),a=Es(String(r.getUTCMinutes()),2,"0"),l=Es(String(r.getUTCSeconds()),2,"0");return new e("D:"+n+i+s+o+a+l+"Z")},e}(Tn),RA=function(){function t(e,r,n,i){var s=this;this.allGlyphsInFontSortedById=function(){for(var o=new Array(s.font.characterSet.length),a=0,l=o.length;a<l;a++){var c=s.font.characterSet[a];o[a]=s.font.glyphForCodePoint(c)}return GJ(o.sort(HJ),function(u){return u.id})},this.font=e,this.scale=1e3/this.font.unitsPerEm,this.fontData=r,this.fontName=this.font.postscriptName||"Font",this.customName=n,this.fontFeatures=i,this.baseFontName="",this.glyphCache=ta.populatedBy(this.allGlyphsInFontSortedById)}return t.for=function(e,r,n,i){return Me(this,void 0,void 0,function(){var s;return Be(this,function(o){switch(o.label){case 0:return[4,e.create(r)];case 1:return s=o.sent(),[2,new t(s,r,n,i)]}})})},t.prototype.encodeText=function(e){for(var r=this.font.layout(e,this.fontFeatures).glyphs,n=new Array(r.length),i=0,s=r.length;i<s;i++)n[i]=Um(r[i].id,4);return Ee.of(n.join(""))},t.prototype.widthOfTextAtSize=function(e,r){for(var n=this.font.layout(e,this.fontFeatures).glyphs,i=0,s=0,o=n.length;s<o;s++)i+=n[s].advanceWidth*this.scale;var a=r/1e3;return i*a},t.prototype.heightOfFontAtSize=function(e,r){r===void 0&&(r={});var n=r.descender,i=n===void 0?!0:n,s=this.font,o=s.ascent,a=s.descent,l=s.bbox,c=(o||l.maxY)*this.scale,u=(a||l.minY)*this.scale,d=c-u;return i||(d-=Math.abs(a)||0),d/1e3*e},t.prototype.sizeOfFontAtHeight=function(e){var r=this.font,n=r.ascent,i=r.descent,s=r.bbox,o=(n||s.maxY)*this.scale,a=(i||s.minY)*this.scale;return 1e3*e/(o-a)},t.prototype.embedIntoContext=function(e,r){return this.baseFontName=this.customName||e.addRandomSuffix(this.fontName),this.embedFontDict(e,r)},t.prototype.embedFontDict=function(e,r){return Me(this,void 0,void 0,function(){var n,i,s;return Be(this,function(o){switch(o.label){case 0:return[4,this.embedCIDFontDict(e)];case 1:return n=o.sent(),i=this.embedUnicodeCmap(e),s=e.obj({Type:"Font",Subtype:"Type0",BaseFont:this.baseFontName,Encoding:"Identity-H",DescendantFonts:[n],ToUnicode:i}),r?(e.assign(r,s),[2,r]):[2,e.register(s)]}})})},t.prototype.isCFF=function(){return this.font.cff},t.prototype.embedCIDFontDict=function(e){return Me(this,void 0,void 0,function(){var r,n;return Be(this,function(i){switch(i.label){case 0:return[4,this.embedFontDescriptor(e)];case 1:return r=i.sent(),n=e.obj({Type:"Font",Subtype:this.isCFF()?"CIDFontType0":"CIDFontType2",CIDToGIDMap:"Identity",BaseFont:this.baseFontName,CIDSystemInfo:{Registry:yt.of("Adobe"),Ordering:yt.of("Identity"),Supplement:0},FontDescriptor:r,W:this.computeWidths()}),[2,e.register(n)]}})})},t.prototype.embedFontDescriptor=function(e){return Me(this,void 0,void 0,function(){var r,n,i,s,o,a,l,c,u,d,h,p,m,g,y;return Be(this,function(v){switch(v.label){case 0:return[4,this.embedFontStream(e)];case 1:return r=v.sent(),n=this.scale,i=this.font,s=i.italicAngle,o=i.ascent,a=i.descent,l=i.capHeight,c=i.xHeight,u=this.font.bbox,d=u.minX,h=u.minY,p=u.maxX,m=u.maxY,g=e.obj((y={Type:"FontDescriptor",FontName:this.baseFontName,Flags:Jee(this.font),FontBBox:[d*n,h*n,p*n,m*n],ItalicAngle:s,Ascent:o*n,Descent:a*n,CapHeight:(l||o)*n,XHeight:(c||0)*n,StemV:0},y[this.isCFF()?"FontFile3":"FontFile2"]=r,y)),[2,e.register(g)]}})})},t.prototype.serializeFont=function(){return Me(this,void 0,void 0,function(){return Be(this,function(e){return[2,this.fontData]})})},t.prototype.embedFontStream=function(e){return Me(this,void 0,void 0,function(){var r,n,i;return Be(this,function(s){switch(s.label){case 0:return i=(n=e).flateStream,[4,this.serializeFont()];case 1:return r=i.apply(n,[s.sent(),{Subtype:this.isCFF()?"CIDFontType0C":void 0}]),[2,e.register(r)]}})})},t.prototype.embedUnicodeCmap=function(e){var r=qee(this.glyphCache.access(),this.glyphId.bind(this)),n=e.flateStream(r);return e.register(n)},t.prototype.glyphId=function(e){return e?e.id:-1},t.prototype.computeWidths=function(){for(var e=this.glyphCache.access(),r=[],n=[],i=0,s=e.length;i<s;i++){var o=e[i],a=e[i-1],l=this.glyphId(o),c=this.glyphId(a);i===0?r.push(l):l-c!==1&&(r.push(n),r.push(l),n=[]),n.push(o.advanceWidth*this.scale)}return r.push(n),r},t}(),Zee=function(t){se(e,t);function e(r,n,i,s){var o=t.call(this,r,n,i,s)||this;return o.subset=o.font.createSubset(),o.glyphs=[],o.glyphCache=ta.populatedBy(function(){return o.glyphs}),o.glyphIdMap=new Map,o}return e.for=function(r,n,i,s){return Me(this,void 0,void 0,function(){var o;return Be(this,function(a){switch(a.label){case 0:return[4,r.create(n)];case 1:return o=a.sent(),[2,new e(o,n,i,s)]}})})},e.prototype.encodeText=function(r){for(var n=this.font.layout(r,this.fontFeatures).glyphs,i=new Array(n.length),s=0,o=n.length;s<o;s++){var a=n[s],l=this.subset.includeGlyph(a);this.glyphs[l-1]=a,this.glyphIdMap.set(a.id,l),i[s]=Um(l,4)}return this.glyphCache.invalidate(),Ee.of(i.join(""))},e.prototype.isCFF=function(){return this.subset.cff},e.prototype.glyphId=function(r){return r?this.glyphIdMap.get(r.id):-1},e.prototype.serializeFont=function(){var r=this;return new Promise(function(n,i){var s=[];r.subset.encodeStream().on("data",function(o){return s.push(o)}).on("end",function(){return n(VJ(s))}).on("error",function(o){return i(o)})})},e}(RA),H2;(function(t){t.Source="Source",t.Data="Data",t.Alternative="Alternative",t.Supplement="Supplement",t.EncryptedPayload="EncryptedPayload",t.FormData="EncryptedPayload",t.Schema="Schema",t.Unspecified="Unspecified"})(H2||(H2={}));var $ee=function(){function t(e,r,n){n===void 0&&(n={}),this.fileData=e,this.fileName=r,this.options=n}return t.for=function(e,r,n){return n===void 0&&(n={}),new t(e,r,n)},t.prototype.embedIntoContext=function(e,r){return Me(this,void 0,void 0,function(){var n,i,s,o,a,l,c,u,d;return Be(this,function(h){return n=this.options,i=n.mimeType,s=n.description,o=n.creationDate,a=n.modificationDate,l=n.afRelationship,c=e.flateStream(this.fileData,{Type:"EmbeddedFile",Subtype:i??void 0,Params:{Size:this.fileData.length,CreationDate:o?yt.fromDate(o):void 0,ModDate:a?yt.fromDate(a):void 0}}),u=e.register(c),d=e.obj({Type:"Filespec",F:yt.of(this.fileName),UF:Ee.fromText(this.fileName),EF:{F:u},Desc:s?Ee.fromText(s):void 0,AFRelationship:l??void 0}),r?(e.assign(r,d),[2,r]):[2,e.register(d)]})})},t}(),HR=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487],tf;(function(t){t.DeviceGray="DeviceGray",t.DeviceRGB="DeviceRGB",t.DeviceCMYK="DeviceCMYK"})(tf||(tf={}));var ete={1:tf.DeviceGray,3:tf.DeviceRGB,4:tf.DeviceCMYK},w5=function(){function t(e,r,n,i,s){this.imageData=e,this.bitsPerComponent=r,this.width=n,this.height=i,this.colorSpace=s}return t.for=function(e){return Me(this,void 0,void 0,function(){var r,n,i,s,o,a,l,c,u,d;return Be(this,function(h){if(r=new DataView(e.buffer),n=r.getUint16(0),n!==65496)throw new Error("SOI not found in JPEG");for(i=2;i<r.byteLength&&(s=r.getUint16(i),i+=2,!HR.includes(s));)i+=r.getUint16(i);if(!HR.includes(s))throw new Error("Invalid JPEG");if(i+=2,o=r.getUint8(i++),a=r.getUint16(i),i+=2,l=r.getUint16(i),i+=2,c=r.getUint8(i++),u=ete[c],!u)throw new Error("Unknown JPEG channel.");return d=u,[2,new t(e,o,l,a,d)]})})},t.prototype.embedIntoContext=function(e,r){return Me(this,void 0,void 0,function(){var n;return Be(this,function(i){return n=e.stream(this.imageData,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.bitsPerComponent,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode",Decode:this.colorSpace===tf.DeviceCMYK?[1,0,1,0,1,0,1,0]:void 0}),r?(e.assign(r,n),[2,r]):[2,e.register(n)]})})},t}(),$={};$.toRGBA8=function(t){var e=t.width,r=t.height;if(t.tabs.acTL==null)return[$.toRGBA8.decodeImage(t.data,e,r,t).buffer];var n=[];t.frames[0].data==null&&(t.frames[0].data=t.data);for(var i=e*r*4,s=new Uint8Array(i),o=new Uint8Array(i),a=new Uint8Array(i),l=0;l<t.frames.length;l++){var c=t.frames[l],u=c.rect.x,d=c.rect.y,h=c.rect.width,p=c.rect.height,m=$.toRGBA8.decodeImage(c.data,h,p,t);if(l!=0)for(var g=0;g<i;g++)a[g]=s[g];if(c.blend==0?$._copyTile(m,h,p,s,e,r,u,d,0):c.blend==1&&$._copyTile(m,h,p,s,e,r,u,d,1),n.push(s.buffer.slice(0)),c.dispose!=0){if(c.dispose==1)$._copyTile(o,h,p,s,e,r,u,d,0);else if(c.dispose==2)for(var g=0;g<i;g++)s[g]=a[g]}}return n};$.toRGBA8.decodeImage=function(t,e,r,n){var i=e*r,s=$.decode._getBPP(n),o=Math.ceil(e*s/8),a=new Uint8Array(i*4),l=new Uint32Array(a.buffer),c=n.ctype,u=n.depth,d=$._bin.readUshort;if(c==6){var h=i<<2;if(u==8)for(var p=0;p<h;p+=4)a[p]=t[p],a[p+1]=t[p+1],a[p+2]=t[p+2],a[p+3]=t[p+3];if(u==16)for(var p=0;p<h;p++)a[p]=t[p<<1]}else if(c==2){var m=n.tabs.tRNS;if(m==null){if(u==8)for(var p=0;p<i;p++){var g=p*3;l[p]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g]}if(u==16)for(var p=0;p<i;p++){var g=p*6;l[p]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g]}}else{var y=m[0],v=m[1],w=m[2];if(u==8)for(var p=0;p<i;p++){var b=p<<2,g=p*3;l[p]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g],t[g]==y&&t[g+1]==v&&t[g+2]==w&&(a[b+3]=0)}if(u==16)for(var p=0;p<i;p++){var b=p<<2,g=p*6;l[p]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g],d(t,g)==y&&d(t,g+2)==v&&d(t,g+4)==w&&(a[b+3]=0)}}}else if(c==3){var E=n.tabs.PLTE,A=n.tabs.tRNS,k=A?A.length:0;if(u==1)for(var P=0;P<r;P++)for(var C=P*o,N=P*e,p=0;p<e;p++){var b=N+p<<2,R=t[C+(p>>3)]>>7-((p&7)<<0)&1,F=3*R;a[b]=E[F],a[b+1]=E[F+1],a[b+2]=E[F+2],a[b+3]=R<k?A[R]:255}if(u==2)for(var P=0;P<r;P++)for(var C=P*o,N=P*e,p=0;p<e;p++){var b=N+p<<2,R=t[C+(p>>2)]>>6-((p&3)<<1)&3,F=3*R;a[b]=E[F],a[b+1]=E[F+1],a[b+2]=E[F+2],a[b+3]=R<k?A[R]:255}if(u==4)for(var P=0;P<r;P++)for(var C=P*o,N=P*e,p=0;p<e;p++){var b=N+p<<2,R=t[C+(p>>1)]>>4-((p&1)<<2)&15,F=3*R;a[b]=E[F],a[b+1]=E[F+1],a[b+2]=E[F+2],a[b+3]=R<k?A[R]:255}if(u==8)for(var p=0;p<i;p++){var b=p<<2,R=t[p],F=3*R;a[b]=E[F],a[b+1]=E[F+1],a[b+2]=E[F+2],a[b+3]=R<k?A[R]:255}}else if(c==4){if(u==8)for(var p=0;p<i;p++){var b=p<<2,B=p<<1,D=t[B];a[b]=D,a[b+1]=D,a[b+2]=D,a[b+3]=t[B+1]}if(u==16)for(var p=0;p<i;p++){var b=p<<2,B=p<<2,D=t[B];a[b]=D,a[b+1]=D,a[b+2]=D,a[b+3]=t[B+2]}}else if(c==0)for(var y=n.tabs.tRNS?n.tabs.tRNS:-1,P=0;P<r;P++){var L=P*o,M=P*e;if(u==1)for(var _=0;_<e;_++){var D=255*(t[L+(_>>>3)]>>>7-(_&7)&1),X=D==y*255?0:255;l[M+_]=X<<24|D<<16|D<<8|D}else if(u==2)for(var _=0;_<e;_++){var D=85*(t[L+(_>>>2)]>>>6-((_&3)<<1)&3),X=D==y*85?0:255;l[M+_]=X<<24|D<<16|D<<8|D}else if(u==4)for(var _=0;_<e;_++){var D=17*(t[L+(_>>>1)]>>>4-((_&1)<<2)&15),X=D==y*17?0:255;l[M+_]=X<<24|D<<16|D<<8|D}else if(u==8)for(var _=0;_<e;_++){var D=t[L+_],X=D==y?0:255;l[M+_]=X<<24|D<<16|D<<8|D}else if(u==16)for(var _=0;_<e;_++){var D=t[L+(_<<1)],X=d(t,L+(_<<p))==y?0:255;l[M+_]=X<<24|D<<16|D<<8|D}}return a};$.decode=function(t){for(var e=new Uint8Array(t),r=8,n=$._bin,i=n.readUshort,s=n.readUint,o={tabs:{},frames:[]},a=new Uint8Array(e.length),l=0,c,u=0,d=[137,80,78,71,13,10,26,10],h=0;h<8;h++)if(e[h]!=d[h])throw"The input is not a PNG file!";for(;r<e.length;){var p=n.readUint(e,r);r+=4;var m=n.readASCII(e,r,4);if(r+=4,m=="IHDR")$.decode._IHDR(e,r,o);else if(m=="IDAT"){for(var h=0;h<p;h++)a[l+h]=e[r+h];l+=p}else if(m=="acTL")o.tabs[m]={num_frames:s(e,r),num_plays:s(e,r+4)},c=new Uint8Array(e.length);else if(m=="fcTL"){if(u!=0){var g=o.frames[o.frames.length-1];g.data=$.decode._decompress(o,c.slice(0,u),g.rect.width,g.rect.height),u=0}var y={x:s(e,r+12),y:s(e,r+16),width:s(e,r+4),height:s(e,r+8)},v=i(e,r+22);v=i(e,r+20)/(v==0?100:v);var w={rect:y,delay:Math.round(v*1e3),dispose:e[r+24],blend:e[r+25]};o.frames.push(w)}else if(m=="fdAT"){for(var h=0;h<p-4;h++)c[u+h]=e[r+h+4];u+=p-4}else if(m=="pHYs")o.tabs[m]=[n.readUint(e,r),n.readUint(e,r+4),e[r+8]];else if(m=="cHRM"){o.tabs[m]=[];for(var h=0;h<8;h++)o.tabs[m].push(n.readUint(e,r+h*4))}else if(m=="tEXt"){o.tabs[m]==null&&(o.tabs[m]={});var b=n.nextZero(e,r),E=n.readASCII(e,r,b-r),A=n.readASCII(e,b+1,r+p-b-1);o.tabs[m][E]=A}else if(m=="iTXt"){o.tabs[m]==null&&(o.tabs[m]={});var b=0,k=r;b=n.nextZero(e,k);var E=n.readASCII(e,k,b-k);k=b+1,e[k],e[k+1],k+=2,b=n.nextZero(e,k),n.readASCII(e,k,b-k),k=b+1,b=n.nextZero(e,k),n.readUTF8(e,k,b-k),k=b+1;var A=n.readUTF8(e,k,p-(k-r));o.tabs[m][E]=A}else if(m=="PLTE")o.tabs[m]=n.readBytes(e,r,p);else if(m=="hIST"){var P=o.tabs.PLTE.length/3;o.tabs[m]=[];for(var h=0;h<P;h++)o.tabs[m].push(i(e,r+h*2))}else if(m=="tRNS")o.ctype==3?o.tabs[m]=n.readBytes(e,r,p):o.ctype==0?o.tabs[m]=i(e,r):o.ctype==2&&(o.tabs[m]=[i(e,r),i(e,r+2),i(e,r+4)]);else if(m=="gAMA")o.tabs[m]=n.readUint(e,r)/1e5;else if(m=="sRGB")o.tabs[m]=e[r];else if(m=="bKGD")o.ctype==0||o.ctype==4?o.tabs[m]=[i(e,r)]:o.ctype==2||o.ctype==6?o.tabs[m]=[i(e,r),i(e,r+2),i(e,r+4)]:o.ctype==3&&(o.tabs[m]=e[r]);else if(m=="IEND")break;r+=p,n.readUint(e,r),r+=4}if(u!=0){var g=o.frames[o.frames.length-1];g.data=$.decode._decompress(o,c.slice(0,u),g.rect.width,g.rect.height),u=0}return o.data=$.decode._decompress(o,a,o.width,o.height),delete o.compress,delete o.interlace,delete o.filter,o};$.decode._decompress=function(t,e,r,n){var i=$.decode._getBPP(t),s=Math.ceil(r*i/8),o=new Uint8Array((s+1+t.interlace)*n);return e=$.decode._inflate(e,o),t.interlace==0?e=$.decode._filterZero(e,t,0,r,n):t.interlace==1&&(e=$.decode._readInterlace(e,t)),e};$.decode._inflate=function(t,e){var r=$.inflateRaw(new Uint8Array(t.buffer,2,t.length-6),e);return r};$.inflateRaw=function(){var t={};return t.H={},t.H.N=function(e,r){var n=Uint8Array,i=0,s=0,o=0,a=0,l=0,c=0,u=0,d=0,h=0,p,m;if(e[0]==3&&e[1]==0)return r||new n(0);var g=t.H,y=g.b,v=g.e,w=g.R,b=g.n,E=g.A,A=g.Z,k=g.m,P=r==null;for(P&&(r=new n(e.length>>>2<<3));i==0;){if(i=y(e,h,1),s=y(e,h+1,2),h+=3,s==0){h&7&&(h+=8-(h&7));var C=(h>>>3)+4,N=e[C-4]|e[C-3]<<8;P&&(r=t.H.W(r,d+N)),r.set(new n(e.buffer,e.byteOffset+C,N),d),h=C+N<<3,d+=N;continue}if(P&&(r=t.H.W(r,d+(1<<17))),s==1&&(p=k.J,m=k.h,c=511,u=31),s==2){o=v(e,h,5)+257,a=v(e,h+5,5)+1,l=v(e,h+10,4)+4,h+=14;for(var R=1,F=0;F<38;F+=2)k.Q[F]=0,k.Q[F+1]=0;for(var F=0;F<l;F++){var B=v(e,h+F*3,3);k.Q[(k.X[F]<<1)+1]=B,B>R&&(R=B)}h+=3*l,b(k.Q,R),E(k.Q,R,k.u),p=k.w,m=k.d,h=w(k.u,(1<<R)-1,o+a,e,h,k.v);var D=g.V(k.v,0,o,k.C);c=(1<<D)-1;var L=g.V(k.v,o,a,k.D);u=(1<<L)-1,b(k.C,D),E(k.C,D,p),b(k.D,L),E(k.D,L,m)}for(;;){var M=p[A(e,h)&c];h+=M&15;var _=M>>>4;if(!(_>>>8))r[d++]=_;else{if(_==256)break;var X=d+_-254;if(_>264){var V=k.q[_-257];X=d+(V>>>3)+v(e,h,V&7),h+=V&7}var K=m[A(e,h)&u];h+=K&15;var Z=K>>>4,Y=k.c[Z],ee=(Y>>>4)+y(e,h,Y&15);for(h+=Y&15;d<X;)r[d]=r[d++-ee],r[d]=r[d++-ee],r[d]=r[d++-ee],r[d]=r[d++-ee];d=X}}}return r.length==d?r:r.slice(0,d)},t.H.W=function(e,r){var n=e.length;if(r<=n)return e;var i=new Uint8Array(n<<1);return i.set(e,0),i},t.H.R=function(e,r,n,i,s,o){for(var a=t.H.e,l=t.H.Z,c=0;c<n;){var u=e[l(i,s)&r];s+=u&15;var d=u>>>4;if(d<=15)o[c]=d,c++;else{var h=0,p=0;d==16?(p=3+a(i,s,2),s+=2,h=o[c-1]):d==17?(p=3+a(i,s,3),s+=3):d==18&&(p=11+a(i,s,7),s+=7);for(var m=c+p;c<m;)o[c]=h,c++}}return s},t.H.V=function(e,r,n,i){for(var s=0,o=0,a=i.length>>>1;o<n;){var l=e[o+r];i[o<<1]=0,i[(o<<1)+1]=l,l>s&&(s=l),o++}for(;o<a;)i[o<<1]=0,i[(o<<1)+1]=0,o++;return s},t.H.n=function(e,r){for(var n=t.H.m,i=e.length,s,o,a,l,c,u=n.j,l=0;l<=r;l++)u[l]=0;for(l=1;l<i;l+=2)u[e[l]]++;var d=n.K;for(s=0,u[0]=0,o=1;o<=r;o++)s=s+u[o-1]<<1,d[o]=s;for(a=0;a<i;a+=2)c=e[a+1],c!=0&&(e[a]=d[c],d[c]++)},t.H.A=function(e,r,n){for(var i=e.length,s=t.H.m,o=s.r,a=0;a<i;a+=2)if(e[a+1]!=0)for(var l=a>>1,c=e[a+1],u=l<<4|c,d=r-c,h=e[a]<<d,p=h+(1<<d);h!=p;){var m=o[h]>>>15-r;n[m]=u,h++}},t.H.l=function(e,r){for(var n=t.H.m.r,i=15-r,s=0;s<e.length;s+=2){var o=e[s]<<r-e[s+1];e[s]=n[o]>>>i}},t.H.M=function(e,r,n){n=n<<(r&7);var i=r>>>3;e[i]|=n,e[i+1]|=n>>>8},t.H.I=function(e,r,n){n=n<<(r&7);var i=r>>>3;e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},t.H.e=function(e,r,n){return(e[r>>>3]|e[(r>>>3)+1]<<8)>>>(r&7)&(1<<n)-1},t.H.b=function(e,r,n){return(e[r>>>3]|e[(r>>>3)+1]<<8|e[(r>>>3)+2]<<16)>>>(r&7)&(1<<n)-1},t.H.Z=function(e,r){return(e[r>>>3]|e[(r>>>3)+1]<<8|e[(r>>>3)+2]<<16)>>>(r&7)},t.H.i=function(e,r){return(e[r>>>3]|e[(r>>>3)+1]<<8|e[(r>>>3)+2]<<16|e[(r>>>3)+3]<<24)>>>(r&7)},t.H.m=function(){var e=Uint16Array,r=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[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,999,999,999],T:[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],q:new e(32),p:[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,65535,65535],z:[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],c:new r(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new r(286),Y:new r(30),a:new r(19),t:new r(15e3),k:new e(65536),g:new e(32768)}}(),function(){for(var e=t.H.m,r=32768,n=0;n<r;n++){var i=n;i=(i&2863311530)>>>1|(i&1431655765)<<1,i=(i&3435973836)>>>2|(i&858993459)<<2,i=(i&4042322160)>>>4|(i&252645135)<<4,i=(i&4278255360)>>>8|(i&16711935)<<8,e.r[n]=(i>>>16|i<<16)>>>17}function s(o,a,l){for(;a--!=0;)o.push(0,l)}for(var n=0;n<32;n++)e.q[n]=e.S[n]<<3|e.T[n],e.c[n]=e.p[n]<<4|e.z[n];s(e._,144,8),s(e._,112,9),s(e._,24,7),s(e._,8,8),t.H.n(e._,9),t.H.A(e._,9,e.J),t.H.l(e._,9),s(e.$,32,5),t.H.n(e.$,5),t.H.A(e.$,5,e.h),t.H.l(e.$,5),s(e.Q,19,0),s(e.C,286,0),s(e.D,30,0),s(e.v,320,0)}(),t.H.N}();$.decode._readInterlace=function(t,e){for(var r=e.width,n=e.height,i=$.decode._getBPP(e),s=i>>3,o=Math.ceil(r*i/8),a=new Uint8Array(n*o),l=0,c=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],d=[8,8,8,4,4,2,2],h=[8,8,4,4,2,2,1],p=0;p<7;){for(var m=d[p],g=h[p],y=0,v=0,w=c[p];w<n;)w+=m,v++;for(var b=u[p];b<r;)b+=g,y++;var E=Math.ceil(y*i/8);$.decode._filterZero(t,e,l,y,v);for(var A=0,k=c[p];k<n;){for(var P=u[p],C=l+A*E<<3;P<r;){if(i==1){var N=t[C>>3];N=N>>7-(C&7)&1,a[k*o+(P>>3)]|=N<<7-((P&7)<<0)}if(i==2){var N=t[C>>3];N=N>>6-(C&7)&3,a[k*o+(P>>2)]|=N<<6-((P&3)<<1)}if(i==4){var N=t[C>>3];N=N>>4-(C&7)&15,a[k*o+(P>>1)]|=N<<4-((P&1)<<2)}if(i>=8)for(var R=k*o+P*s,F=0;F<s;F++)a[R+F]=t[(C>>3)+F];C+=i,P+=g}A++,k+=m}y*v!=0&&(l+=v*(1+E)),p=p+1}return a};$.decode._getBPP=function(t){var e=[1,null,3,1,2,null,4][t.ctype];return e*t.depth};$.decode._filterZero=function(t,e,r,n,i){var s=$.decode._getBPP(e),o=Math.ceil(n*s/8),a=$.decode._paeth;s=Math.ceil(s/8);var l=0,c=1,u=t[r],d=0;if(u>1&&(t[r]=[0,0,1][u-2]),u==3)for(d=s;d<o;d++)t[d+1]=t[d+1]+(t[d+1-s]>>>1)&255;for(var h=0;h<i;h++)if(l=r+h*o,c=l+h+1,u=t[c-1],d=0,u==0)for(;d<o;d++)t[l+d]=t[c+d];else if(u==1){for(;d<s;d++)t[l+d]=t[c+d];for(;d<o;d++)t[l+d]=t[c+d]+t[l+d-s]}else if(u==2)for(;d<o;d++)t[l+d]=t[c+d]+t[l+d-o];else if(u==3){for(;d<s;d++)t[l+d]=t[c+d]+(t[l+d-o]>>>1);for(;d<o;d++)t[l+d]=t[c+d]+(t[l+d-o]+t[l+d-s]>>>1)}else{for(;d<s;d++)t[l+d]=t[c+d]+a(0,t[l+d-o],0);for(;d<o;d++)t[l+d]=t[c+d]+a(t[l+d-s],t[l+d-o],t[l+d-s-o])}return t};$.decode._paeth=function(t,e,r){var n=t+e-r,i=n-t,s=n-e,o=n-r;return i*i<=s*s&&i*i<=o*o?t:s*s<=o*o?e:r};$.decode._IHDR=function(t,e,r){var n=$._bin;r.width=n.readUint(t,e),e+=4,r.height=n.readUint(t,e),e+=4,r.depth=t[e],e++,r.ctype=t[e],e++,r.compress=t[e],e++,r.filter=t[e],e++,r.interlace=t[e],e++};$._bin={nextZero:function(t,e){for(;t[e]!=0;)e++;return e},readUshort:function(t,e){return t[e]<<8|t[e+1]},writeUshort:function(t,e,r){t[e]=r>>8&255,t[e+1]=r&255},readUint:function(t,e){return t[e]*(256*256*256)+(t[e+1]<<16|t[e+2]<<8|t[e+3])},writeUint:function(t,e,r){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=r&255},readASCII:function(t,e,r){for(var n="",i=0;i<r;i++)n+=String.fromCharCode(t[e+i]);return n},writeASCII:function(t,e,r){for(var n=0;n<r.length;n++)t[e+n]=r.charCodeAt(n)},readBytes:function(t,e,r){for(var n=[],i=0;i<r;i++)n.push(t[e+i]);return n},pad:function(t){return t.length<2?"0"+t:t},readUTF8:function(t,e,r){for(var n="",i,s=0;s<r;s++)n+="%"+$._bin.pad(t[e+s].toString(16));try{i=decodeURIComponent(n)}catch{return $._bin.readASCII(t,e,r)}return i}};$._copyTile=function(t,e,r,n,i,s,o,a,l){for(var c=Math.min(e,i),u=Math.min(r,s),d=0,h=0,p=0;p<u;p++)for(var m=0;m<c;m++)if(o>=0&&a>=0?(d=p*e+m<<2,h=(a+p)*i+o+m<<2):(d=(-a+p)*e-o+m<<2,h=p*i+m<<2),l==0)n[h]=t[d],n[h+1]=t[d+1],n[h+2]=t[d+2],n[h+3]=t[d+3];else if(l==1){var g=t[d+3]*.00392156862745098,y=t[d]*g,v=t[d+1]*g,w=t[d+2]*g,b=n[h+3]*(1/255),E=n[h]*b,A=n[h+1]*b,k=n[h+2]*b,P=1-g,C=g+b*P,N=C==0?0:1/C;n[h+3]=255*C,n[h+0]=(y+E*P)*N,n[h+1]=(v+A*P)*N,n[h+2]=(w+k*P)*N}else if(l==2){var g=t[d+3],y=t[d],v=t[d+1],w=t[d+2],b=n[h+3],E=n[h],A=n[h+1],k=n[h+2];g==b&&y==E&&v==A&&w==k?(n[h]=0,n[h+1]=0,n[h+2]=0,n[h+3]=0):(n[h]=y,n[h+1]=v,n[h+2]=w,n[h+3]=g)}else if(l==3){var g=t[d+3],y=t[d],v=t[d+1],w=t[d+2],b=n[h+3],E=n[h],A=n[h+1],k=n[h+2];if(g==b&&y==E&&v==A&&w==k)continue;if(g<220&&b>20)return!1}return!0};$.encode=function(t,e,r,n,i,s,o){n==null&&(n=0),o==null&&(o=!1);var a=$.encode.compress(t,e,r,n,[!1,!1,!1,0,o]);return $.encode.compressPNG(a,-1),$.encode._main(a,e,r,i,s)};$.encodeLL=function(t,e,r,n,i,s,o,a){for(var l={ctype:0+(n==1?0:2)+(i==0?0:4),depth:s,frames:[]},c=(n+i)*s,u=c*e,d=0;d<t.length;d++)l.frames.push({rect:{x:0,y:0,width:e,height:r},img:new Uint8Array(t[d]),blend:0,dispose:1,bpp:Math.ceil(c/8),bpl:Math.ceil(u/8)});$.encode.compressPNG(l,0,!0);var h=$.encode._main(l,e,r,o,a);return h};$.encode._main=function(t,e,r,n,i){i==null&&(i={});var s=$.crc.crc,o=$._bin.writeUint,a=$._bin.writeUshort,l=$._bin.writeASCII,c=8,u=t.frames.length>1,d=!1,h=33+(u?20:0);if(i.sRGB!=null&&(h+=13),i.pHYs!=null&&(h+=21),t.ctype==3){for(var p=t.plte.length,m=0;m<p;m++)t.plte[m]>>>24!=255&&(d=!0);h+=8+p*3+4+(d?8+p*1+4:0)}for(var g=0;g<t.frames.length;g++){var y=t.frames[g];u&&(h+=38),h+=y.cimg.length+12,g!=0&&(h+=4)}h+=12;for(var v=new Uint8Array(h),w=[137,80,78,71,13,10,26,10],m=0;m<8;m++)v[m]=w[m];if(o(v,c,13),c+=4,l(v,c,"IHDR"),c+=4,o(v,c,e),c+=4,o(v,c,r),c+=4,v[c]=t.depth,c++,v[c]=t.ctype,c++,v[c]=0,c++,v[c]=0,c++,v[c]=0,c++,o(v,c,s(v,c-17,17)),c+=4,i.sRGB!=null&&(o(v,c,1),c+=4,l(v,c,"sRGB"),c+=4,v[c]=i.sRGB,c++,o(v,c,s(v,c-5,5)),c+=4),i.pHYs!=null&&(o(v,c,9),c+=4,l(v,c,"pHYs"),c+=4,o(v,c,i.pHYs[0]),c+=4,o(v,c,i.pHYs[1]),c+=4,v[c]=i.pHYs[2],c++,o(v,c,s(v,c-13,13)),c+=4),u&&(o(v,c,8),c+=4,l(v,c,"acTL"),c+=4,o(v,c,t.frames.length),c+=4,o(v,c,i.loop!=null?i.loop:0),c+=4,o(v,c,s(v,c-12,12)),c+=4),t.ctype==3){var p=t.plte.length;o(v,c,p*3),c+=4,l(v,c,"PLTE"),c+=4;for(var m=0;m<p;m++){var b=m*3,E=t.plte[m],A=E&255,k=E>>>8&255,P=E>>>16&255;v[c+b+0]=A,v[c+b+1]=k,v[c+b+2]=P}if(c+=p*3,o(v,c,s(v,c-p*3-4,p*3+4)),c+=4,d){o(v,c,p),c+=4,l(v,c,"tRNS"),c+=4;for(var m=0;m<p;m++)v[c+m]=t.plte[m]>>>24&255;c+=p,o(v,c,s(v,c-p-4,p+4)),c+=4}}for(var C=0,g=0;g<t.frames.length;g++){var y=t.frames[g];u&&(o(v,c,26),c+=4,l(v,c,"fcTL"),c+=4,o(v,c,C++),c+=4,o(v,c,y.rect.width),c+=4,o(v,c,y.rect.height),c+=4,o(v,c,y.rect.x),c+=4,o(v,c,y.rect.y),c+=4,a(v,c,n[g]),c+=2,a(v,c,1e3),c+=2,v[c]=y.dispose,c++,v[c]=y.blend,c++,o(v,c,s(v,c-30,30)),c+=4);var N=y.cimg,p=N.length;o(v,c,p+(g==0?0:4)),c+=4;var R=c;l(v,c,g==0?"IDAT":"fdAT"),c+=4,g!=0&&(o(v,c,C++),c+=4),v.set(N,c),c+=p,o(v,c,s(v,R,c-R)),c+=4}return o(v,c,0),c+=4,l(v,c,"IEND"),c+=4,o(v,c,s(v,c-4,4)),c+=4,v.buffer};$.encode.compressPNG=function(t,e,r){for(var n=0;n<t.frames.length;n++){var i=t.frames[n];i.rect.width;var s=i.rect.height,o=new Uint8Array(s*i.bpl+s);i.cimg=$.encode._filterZero(i.img,s,i.bpp,i.bpl,o,e,r)}};$.encode.compress=function(t,e,r,n,i){for(var s=i[0],o=i[1],a=i[2],l=i[3],c=i[4],u=6,d=8,h=255,p=0;p<t.length;p++)for(var m=new Uint8Array(t[p]),g=m.length,y=0;y<g;y+=4)h&=m[y+3];var v=h!=255,w=$.encode.framize(t,e,r,s,o,a),b={},E=[],A=[];if(n!=0){for(var k=[],y=0;y<w.length;y++)k.push(w[y].img.buffer);for(var P=$.encode.concatRGBA(k),C=$.quantize(P,n),N=0,R=new Uint8Array(C.abuf),y=0;y<w.length;y++){var F=w[y].img,B=F.length;A.push(new Uint8Array(C.inds.buffer,N>>2,B>>2));for(var p=0;p<B;p+=4)F[p]=R[N+p],F[p+1]=R[N+p+1],F[p+2]=R[N+p+2],F[p+3]=R[N+p+3];N+=B}for(var y=0;y<C.plte.length;y++)E.push(C.plte[y].est.rgba)}else for(var p=0;p<w.length;p++){var D=w[p],L=new Uint32Array(D.img.buffer),M=D.rect.width,g=L.length,_=new Uint8Array(g);A.push(_);for(var y=0;y<g;y++){var X=L[y];if(y!=0&&X==L[y-1])_[y]=_[y-1];else if(y>M&&X==L[y-M])_[y]=_[y-M];else{var V=b[X];if(V==null&&(b[X]=V=E.length,E.push(X),E.length>=300))break;_[y]=V}}}var K=E.length;K<=256&&c==!1&&(K<=2?d=1:K<=4?d=2:K<=16?d=4:d=8,d=Math.max(d,l));for(var p=0;p<w.length;p++){var D=w[p];D.rect.x,D.rect.y;var M=D.rect.width,Z=D.rect.height,Y=D.img;new Uint32Array(Y.buffer);var ee=4*M,fe=4;if(K<=256&&c==!1){ee=Math.ceil(d*M/8);for(var ye=new Uint8Array(ee*Z),lt=A[p],Ae=0;Ae<Z;Ae++){var y=Ae*ee,At=Ae*M;if(d==8)for(var Xe=0;Xe<M;Xe++)ye[y+Xe]=lt[At+Xe];else if(d==4)for(var Xe=0;Xe<M;Xe++)ye[y+(Xe>>1)]|=lt[At+Xe]<<4-(Xe&1)*4;else if(d==2)for(var Xe=0;Xe<M;Xe++)ye[y+(Xe>>2)]|=lt[At+Xe]<<6-(Xe&3)*2;else if(d==1)for(var Xe=0;Xe<M;Xe++)ye[y+(Xe>>3)]|=lt[At+Xe]<<7-(Xe&7)*1}Y=ye,u=3,fe=1}else if(v==!1&&w.length==1){for(var ye=new Uint8Array(M*Z*3),Er=M*Z,y=0;y<Er;y++){var F=y*3,gr=y*4;ye[F]=Y[gr],ye[F+1]=Y[gr+1],ye[F+2]=Y[gr+2]}Y=ye,u=2,fe=3,ee=3*M}D.img=Y,D.bpl=ee,D.bpp=fe}return{ctype:u,depth:d,plte:E,frames:w}};$.encode.framize=function(t,e,r,n,i,s){for(var o=[],a=0;a<t.length;a++){var l=new Uint8Array(t[a]),c=new Uint32Array(l.buffer),u,d=0,h=0,p=e,m=r,g=n?1:0;if(a!=0){for(var y=s||n||a==1||o[a-2].dispose!=0?1:2,v=0,w=1e9,b=0;b<y;b++){for(var D=new Uint8Array(t[a-1-b]),E=new Uint32Array(t[a-1-b]),A=e,k=r,P=-1,C=-1,N=0;N<r;N++)for(var R=0;R<e;R++){var F=N*e+R;c[F]!=E[F]&&(R<A&&(A=R),R>P&&(P=R),N<k&&(k=N),N>C&&(C=N))}P==-1&&(A=k=P=C=0),i&&((A&1)==1&&A--,(k&1)==1&&k--);var B=(P-A+1)*(C-k+1);B<w&&(w=B,v=b,d=A,h=k,p=P-A+1,m=C-k+1)}var D=new Uint8Array(t[a-1-v]);v==1&&(o[a-1].dispose=2),u=new Uint8Array(p*m*4),$._copyTile(D,e,r,u,p,m,-d,-h,0),g=$._copyTile(l,e,r,u,p,m,-d,-h,3)?1:0,g==1?$.encode._prepareDiff(l,e,r,u,{x:d,y:h,width:p,height:m}):$._copyTile(l,e,r,u,p,m,-d,-h,0)}else u=l.slice(0);o.push({rect:{x:d,y:h,width:p,height:m},img:u,blend:g,dispose:0})}if(n)for(var a=0;a<o.length;a++){var L=o[a];if(L.blend!=1){var M=L.rect,_=o[a-1].rect,X=Math.min(M.x,_.x),V=Math.min(M.y,_.y),K=Math.max(M.x+M.width,_.x+_.width),Z=Math.max(M.y+M.height,_.y+_.height),Y={x:X,y:V,width:K-X,height:Z-V};o[a-1].dispose=1,a-1!=0&&$.encode._updateFrame(t,e,r,o,a-1,Y,i),$.encode._updateFrame(t,e,r,o,a,Y,i)}}var ee=0;if(t.length!=1)for(var F=0;F<o.length;F++){var L=o[F];ee+=L.rect.width*L.rect.height}return o};$.encode._updateFrame=function(t,e,r,n,i,s,o){for(var a=Uint8Array,l=Uint32Array,c=new a(t[i-1]),u=new l(t[i-1]),d=i+1<t.length?new a(t[i+1]):null,h=new a(t[i]),p=new l(h.buffer),m=e,g=r,y=-1,v=-1,w=0;w<s.height;w++)for(var b=0;b<s.width;b++){var E=s.x+b,A=s.y+w,k=A*e+E,P=p[k];P==0||n[i-1].dispose==0&&u[k]==P&&(d==null||d[k*4+3]!=0)||(E<m&&(m=E),E>y&&(y=E),A<g&&(g=A),A>v&&(v=A))}y==-1&&(m=g=y=v=0),o&&((m&1)==1&&m--,(g&1)==1&&g--),s={x:m,y:g,width:y-m+1,height:v-g+1};var C=n[i];C.rect=s,C.blend=1,C.img=new Uint8Array(s.width*s.height*4),n[i-1].dispose==0?($._copyTile(c,e,r,C.img,s.width,s.height,-s.x,-s.y,0),$.encode._prepareDiff(h,e,r,C.img,s)):$._copyTile(h,e,r,C.img,s.width,s.height,-s.x,-s.y,0)};$.encode._prepareDiff=function(t,e,r,n,i){$._copyTile(t,e,r,n,i.width,i.height,-i.x,-i.y,2)};$.encode._filterZero=function(t,e,r,n,i,s,o){var a=[],l=[0,1,2,3,4];s!=-1?l=[s]:(e*n>5e5||r==1)&&(l=[0]);var c;o&&(c={level:0});for(var u=o&&UZIP!=null?UZIP:xb,d=0;d<l.length;d++){for(var h=0;h<e;h++)$.encode._filterLine(i,t,h,n,r,l[d]);a.push(u.deflate(i,c))}for(var p,m=1e9,d=0;d<a.length;d++)a[d].length<m&&(p=d,m=a[d].length);return a[p]};$.encode._filterLine=function(t,e,r,n,i,s){var o=r*n,a=o+r,l=$.decode._paeth;if(t[a]=s,a++,s==0)if(n<500)for(var c=0;c<n;c++)t[a+c]=e[o+c];else t.set(new Uint8Array(e.buffer,o,n),a);else if(s==1){for(var c=0;c<i;c++)t[a+c]=e[o+c];for(var c=i;c<n;c++)t[a+c]=e[o+c]-e[o+c-i]+256&255}else if(r==0){for(var c=0;c<i;c++)t[a+c]=e[o+c];if(s==2)for(var c=i;c<n;c++)t[a+c]=e[o+c];if(s==3)for(var c=i;c<n;c++)t[a+c]=e[o+c]-(e[o+c-i]>>1)+256&255;if(s==4)for(var c=i;c<n;c++)t[a+c]=e[o+c]-l(e[o+c-i],0,0)+256&255}else{if(s==2)for(var c=0;c<n;c++)t[a+c]=e[o+c]+256-e[o+c-n]&255;if(s==3){for(var c=0;c<i;c++)t[a+c]=e[o+c]+256-(e[o+c-n]>>1)&255;for(var c=i;c<n;c++)t[a+c]=e[o+c]+256-(e[o+c-n]+e[o+c-i]>>1)&255}if(s==4){for(var c=0;c<i;c++)t[a+c]=e[o+c]+256-l(0,e[o+c-n],0)&255;for(var c=i;c<n;c++)t[a+c]=e[o+c]+256-l(e[o+c-i],e[o+c-n],e[o+c-i-n])&255}}};$.crc={table:function(){for(var t=new Uint32Array(256),e=0;e<256;e++){for(var r=e,n=0;n<8;n++)r&1?r=3988292384^r>>>1:r=r>>>1;t[e]=r}return t}(),update:function(t,e,r,n){for(var i=0;i<n;i++)t=$.crc.table[(t^e[r+i])&255]^t>>>8;return t},crc:function(t,e,r){return $.crc.update(4294967295,t,e,r)^4294967295}};$.quantize=function(t,e){var r=new Uint8Array(t),n=r.slice(0),i=new Uint32Array(n.buffer),s=$.quantize.getKDtree(n,e),o=s[0],a=s[1];$.quantize.planeDst;for(var l=r,c=i,u=l.length,d=new Uint8Array(r.length>>2),h=0;h<u;h+=4){var p=l[h]*.00392156862745098,m=l[h+1]*(1/255),g=l[h+2]*(1/255),y=l[h+3]*(1/255),v=$.quantize.getNearest(o,p,m,g,y);d[h>>2]=v.ind,c[h>>2]=v.est.rgba}return{abuf:n.buffer,inds:d,plte:a}};$.quantize.getKDtree=function(t,e,r){r==null&&(r=1e-4);var n=new Uint32Array(t.buffer),i={i0:0,i1:t.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=$.quantize.stats(t,i.i0,i.i1),i.est=$.quantize.estats(i.bst);for(var s=[i];s.length<e;){for(var o=0,a=0,l=0;l<s.length;l++)s[l].est.L>o&&(o=s[l].est.L,a=l);if(o<r)break;var c=s[a],u=$.quantize.splitPixels(t,n,c.i0,c.i1,c.est.e,c.est.eMq255),d=c.i0>=u||c.i1<=u;if(d){c.est.L=0;continue}var h={i0:c.i0,i1:u,bst:null,est:null,tdst:0,left:null,right:null};h.bst=$.quantize.stats(t,h.i0,h.i1),h.est=$.quantize.estats(h.bst);var p={i0:u,i1:c.i1,bst:null,est:null,tdst:0,left:null,right:null};p.bst={R:[],m:[],N:c.bst.N-h.bst.N};for(var l=0;l<16;l++)p.bst.R[l]=c.bst.R[l]-h.bst.R[l];for(var l=0;l<4;l++)p.bst.m[l]=c.bst.m[l]-h.bst.m[l];p.est=$.quantize.estats(p.bst),c.left=h,c.right=p,s[a]=h,s.push(p)}s.sort(function(m,g){return g.bst.N-m.bst.N});for(var l=0;l<s.length;l++)s[l].ind=l;return[i,s]};$.quantize.getNearest=function(t,e,r,n,i){if(t.left==null)return t.tdst=$.quantize.dist(t.est.q,e,r,n,i),t;var s=$.quantize.planeDst(t.est,e,r,n,i),o=t.left,a=t.right;s>0&&(o=t.right,a=t.left);var l=$.quantize.getNearest(o,e,r,n,i);if(l.tdst<=s*s)return l;var c=$.quantize.getNearest(a,e,r,n,i);return c.tdst<l.tdst?c:l};$.quantize.planeDst=function(t,e,r,n,i){var s=t.e;return s[0]*e+s[1]*r+s[2]*n+s[3]*i-t.eMq};$.quantize.dist=function(t,e,r,n,i){var s=e-t[0],o=r-t[1],a=n-t[2],l=i-t[3];return s*s+o*o+a*a+l*l};$.quantize.splitPixels=function(t,e,r,n,i,s){var o=$.quantize.vecDot;for(n-=4;r<n;){for(;o(t,r,i)<=s;)r+=4;for(;o(t,n,i)>s;)n-=4;if(r>=n)break;var a=e[r>>2];e[r>>2]=e[n>>2],e[n>>2]=a,r+=4,n-=4}for(;o(t,r,i)>s;)r-=4;return r+4};$.quantize.vecDot=function(t,e,r){return t[e]*r[0]+t[e+1]*r[1]+t[e+2]*r[2]+t[e+3]*r[3]};$.quantize.stats=function(t,e,r){for(var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],s=r-e>>2,o=e;o<r;o+=4){var a=t[o]*.00392156862745098,l=t[o+1]*(1/255),c=t[o+2]*(1/255),u=t[o+3]*(1/255);i[0]+=a,i[1]+=l,i[2]+=c,i[3]+=u,n[0]+=a*a,n[1]+=a*l,n[2]+=a*c,n[3]+=a*u,n[5]+=l*l,n[6]+=l*c,n[7]+=l*u,n[10]+=c*c,n[11]+=c*u,n[15]+=u*u}return n[4]=n[1],n[8]=n[2],n[9]=n[6],n[12]=n[3],n[13]=n[7],n[14]=n[11],{R:n,m:i,N:s}};$.quantize.estats=function(t){var e=t.R,r=t.m,n=t.N,i=r[0],s=r[1],o=r[2],a=r[3],l=n==0?0:1/n,c=[e[0]-i*i*l,e[1]-i*s*l,e[2]-i*o*l,e[3]-i*a*l,e[4]-s*i*l,e[5]-s*s*l,e[6]-s*o*l,e[7]-s*a*l,e[8]-o*i*l,e[9]-o*s*l,e[10]-o*o*l,e[11]-o*a*l,e[12]-a*i*l,e[13]-a*s*l,e[14]-a*o*l,e[15]-a*a*l],u=c,d=$.M4,h=[.5,.5,.5,.5],p=0,m=0;if(n!=0)for(var g=0;g<10&&(h=d.multVec(u,h),m=Math.sqrt(d.dot(h,h)),h=d.sml(1/m,h),!(Math.abs(m-p)<1e-9));g++)p=m;var y=[i*l,s*l,o*l,a*l],v=d.dot(d.sml(255,y),h);return{Cov:c,q:y,e:h,L:p,eMq255:v,eMq:d.dot(h,y),rgba:(Math.round(255*y[3])<<24|Math.round(255*y[2])<<16|Math.round(255*y[1])<<8|Math.round(255*y[0])<<0)>>>0}};$.M4={multVec:function(t,e){return[t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3],t[4]*e[0]+t[5]*e[1]+t[6]*e[2]+t[7]*e[3],t[8]*e[0]+t[9]*e[1]+t[10]*e[2]+t[11]*e[3],t[12]*e[0]+t[13]*e[1]+t[14]*e[2]+t[15]*e[3]]},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},sml:function(t,e){return[t*e[0],t*e[1],t*e[2],t*e[3]]}};$.encode.concatRGBA=function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r].byteLength;for(var n=new Uint8Array(e),i=0,r=0;r<t.length;r++){for(var s=new Uint8Array(t[r]),o=s.length,a=0;a<o;a+=4){var l=s[a],c=s[a+1],u=s[a+2],d=s[a+3];d==0&&(l=c=u=0),n[i+a]=l,n[i+a+1]=c,n[i+a+2]=u,n[i+a+3]=d}i+=o}return n.buffer};var tte=function(t){if(t===0)return bc.Greyscale;if(t===2)return bc.Truecolour;if(t===3)return bc.IndexedColour;if(t===4)return bc.GreyscaleWithAlpha;if(t===6)return bc.TruecolourWithAlpha;throw new Error("Unknown color type: "+t)},rte=function(t){for(var e=Math.floor(t.length/4),r=new Uint8Array(e*3),n=new Uint8Array(e*1),i=0,s=0,o=0;i<t.length;)r[s++]=t[i++],r[s++]=t[i++],r[s++]=t[i++],n[o++]=t[i++];return{rgbChannel:r,alphaChannel:n}},bc;(function(t){t.Greyscale="Greyscale",t.Truecolour="Truecolour",t.IndexedColour="IndexedColour",t.GreyscaleWithAlpha="GreyscaleWithAlpha",t.TruecolourWithAlpha="TruecolourWithAlpha"})(bc||(bc={}));var nte=function(){function t(e){var r=$.decode(e),n=$.toRGBA8(r);if(n.length>1)throw new Error("Animated PNGs are not supported");var i=new Uint8Array(n[0]),s=rte(i),o=s.rgbChannel,a=s.alphaChannel;this.rgbChannel=o;var l=a.some(function(c){return c<255});l&&(this.alphaChannel=a),this.type=tte(r.ctype),this.width=r.width,this.height=r.height,this.bitsPerComponent=8}return t.load=function(e){return new t(e)},t}(),b5=function(){function t(e){this.image=e,this.bitsPerComponent=e.bitsPerComponent,this.width=e.width,this.height=e.height,this.colorSpace="DeviceRGB"}return t.for=function(e){return Me(this,void 0,void 0,function(){var r;return Be(this,function(n){return r=nte.load(e),[2,new t(r)]})})},t.prototype.embedIntoContext=function(e,r){return Me(this,void 0,void 0,function(){var n,i;return Be(this,function(s){return n=this.embedAlphaChannel(e),i=e.flateStream(this.image.rgbChannel,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.image.bitsPerComponent,Width:this.image.width,Height:this.image.height,ColorSpace:this.colorSpace,SMask:n}),r?(e.assign(r,i),[2,r]):[2,e.register(i)]})})},t.prototype.embedAlphaChannel=function(e){if(this.image.alphaChannel){var r=e.flateStream(this.image.alphaChannel,{Type:"XObject",Subtype:"Image",Height:this.image.height,Width:this.image.width,BitsPerComponent:this.image.bitsPerComponent,ColorSpace:"DeviceGray",Decode:[0,1]});return e.register(r)}},t}(),x5=function(){function t(e,r,n){this.bytes=e,this.start=r||0,this.pos=this.start,this.end=r&&n?r+n:this.bytes.length}return Object.defineProperty(t.prototype,"length",{get:function(){return this.end-this.start},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.length===0},enumerable:!1,configurable:!0}),t.prototype.getByte=function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},t.prototype.getUint16=function(){var e=this.getByte(),r=this.getByte();return e===-1||r===-1?-1:(e<<8)+r},t.prototype.getInt32=function(){var e=this.getByte(),r=this.getByte(),n=this.getByte(),i=this.getByte();return(e<<24)+(r<<16)+(n<<8)+i},t.prototype.getBytes=function(e,r){r===void 0&&(r=!1);var n=this.bytes,i=this.pos,s=this.end;if(e){var a=i+e;a>s&&(a=s),this.pos=a;var o=n.subarray(i,a);return r?new Uint8ClampedArray(o):o}else{var o=n.subarray(i,s);return r?new Uint8ClampedArray(o):o}},t.prototype.peekByte=function(){var e=this.getByte();return this.pos--,e},t.prototype.peekBytes=function(e,r){r===void 0&&(r=!1);var n=this.getBytes(e,r);return this.pos-=n.length,n},t.prototype.skip=function(e){e||(e=1),this.pos+=e},t.prototype.reset=function(){this.pos=this.start},t.prototype.moveStart=function(){this.start=this.pos},t.prototype.makeSubStream=function(e,r){return new t(this.bytes,e,r)},t.prototype.decode=function(){return this.bytes},t}(),ite=new Uint8Array(0),Km=function(){function t(e){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=ite,this.minBufferLength=512,e)for(;this.minBufferLength<e;)this.minBufferLength*=2}return Object.defineProperty(t.prototype,"isEmpty",{get:function(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0},enumerable:!1,configurable:!0}),t.prototype.getByte=function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},t.prototype.getUint16=function(){var e=this.getByte(),r=this.getByte();return e===-1||r===-1?-1:(e<<8)+r},t.prototype.getInt32=function(){var e=this.getByte(),r=this.getByte(),n=this.getByte(),i=this.getByte();return(e<<24)+(r<<16)+(n<<8)+i},t.prototype.getBytes=function(e,r){r===void 0&&(r=!1);var n,i=this.pos;if(e){for(this.ensureBuffer(i+e),n=i+e;!this.eof&&this.bufferLength<n;)this.readBlock();var s=this.bufferLength;n>s&&(n=s)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}this.pos=n;var o=this.buffer.subarray(i,n);return r&&!(o instanceof Uint8ClampedArray)?new Uint8ClampedArray(o):o},t.prototype.peekByte=function(){var e=this.getByte();return this.pos--,e},t.prototype.peekBytes=function(e,r){r===void 0&&(r=!1);var n=this.getBytes(e,r);return this.pos-=n.length,n},t.prototype.skip=function(e){e||(e=1),this.pos+=e},t.prototype.reset=function(){this.pos=0},t.prototype.makeSubStream=function(e,r){for(var n=e+r;this.bufferLength<=n&&!this.eof;)this.readBlock();return new x5(this.buffer,e,r)},t.prototype.decode=function(){for(;!this.eof;)this.readBlock();return this.buffer.subarray(0,this.bufferLength)},t.prototype.readBlock=function(){throw new Vi(this.constructor.name,"readBlock")},t.prototype.ensureBuffer=function(e){var r=this.buffer;if(e<=r.byteLength)return r;for(var n=this.minBufferLength;n<e;)n*=2;var i=new Uint8Array(n);return i.set(r),this.buffer=i},t}(),GR=function(t){return t===32||t===9||t===13||t===10},ste=function(t){se(e,t);function e(r,n){var i=t.call(this,n)||this;return i.stream=r,i.input=new Uint8Array(5),n&&(n=.8*n),i}return e.prototype.readBlock=function(){for(var r=126,n=122,i=-1,s=this.stream,o=s.getByte();GR(o);)o=s.getByte();if(o===i||o===r){this.eof=!0;return}var a=this.bufferLength,l,c;if(o===n){for(l=this.ensureBuffer(a+4),c=0;c<4;++c)l[a+c]=0;this.bufferLength+=4}else{var u=this.input;for(u[0]=o,c=1;c<5;++c){for(o=s.getByte();GR(o);)o=s.getByte();if(u[c]=o,o===i||o===r)break}if(l=this.ensureBuffer(a+c-1),this.bufferLength+=c-1,c<5){for(;c<5;++c)u[c]=117;this.eof=!0}var d=0;for(c=0;c<5;++c)d=d*85+(u[c]-33);for(c=3;c>=0;--c)l[a+c]=d&255,d>>=8}},e}(Km),ote=function(t){se(e,t);function e(r,n){var i=t.call(this,n)||this;return i.stream=r,i.firstDigit=-1,n&&(n=.5*n),i}return e.prototype.readBlock=function(){var r=8e3,n=this.stream.getBytes(r);if(!n.length){this.eof=!0;return}for(var i=n.length+1>>1,s=this.ensureBuffer(this.bufferLength+i),o=this.bufferLength,a=this.firstDigit,l=0,c=n.length;l<c;l++){var u=n[l],d=void 0;if(u>=48&&u<=57)d=u&15;else if(u>=65&&u<=70||u>=97&&u<=102)d=(u&15)+9;else if(u===62){this.eof=!0;break}else continue;a<0?a=d:(s[o++]=a<<4|d,a=-1)}a>=0&&this.eof&&(s[o++]=a<<4,a=-1),this.firstDigit=a,this.bufferLength=o},e}(Km),WR=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ate=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),lte=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),cte=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],ute=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],dte=function(t){se(e,t);function e(r,n){var i=t.call(this,n)||this;i.stream=r;var s=r.getByte(),o=r.getByte();if(s===-1||o===-1)throw new Error("Invalid header in flate stream: "+s+", "+o);if((s&15)!==8)throw new Error("Unknown compression method in flate stream: "+s+", "+o);if(((s<<8)+o)%31!==0)throw new Error("Bad FCHECK in flate stream: "+s+", "+o);if(o&32)throw new Error("FDICT bit set in flate stream: "+s+", "+o);return i.codeSize=0,i.codeBuf=0,i}return e.prototype.readBlock=function(){var r,n,i=this.stream,s=this.getBits(3);if(s&1&&(this.eof=!0),s>>=1,s===0){var o=void 0;if((o=i.getByte())===-1)throw new Error("Bad block header in flate stream");var a=o;if((o=i.getByte())===-1)throw new Error("Bad block header in flate stream");if(a|=o<<8,(o=i.getByte())===-1)throw new Error("Bad block header in flate stream");var l=o;if((o=i.getByte())===-1)throw new Error("Bad block header in flate stream");if(l|=o<<8,l!==(~a&65535)&&(a!==0||l!==0))throw new Error("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var c=this.bufferLength;r=this.ensureBuffer(c+a);var u=c+a;if(this.bufferLength=u,a===0)i.peekByte()===-1&&(this.eof=!0);else for(var d=c;d<u;++d){if((o=i.getByte())===-1){this.eof=!0;break}r[d]=o}return}var h,p;if(s===1)h=cte,p=ute;else if(s===2){var m=this.getBits(5)+257,g=this.getBits(5)+1,y=this.getBits(4)+4,v=new Uint8Array(WR.length),w=void 0;for(w=0;w<y;++w)v[WR[w]]=this.getBits(3);var b=this.generateHuffmanTable(v);n=0,w=0;for(var E=m+g,A=new Uint8Array(E),k=void 0,P=void 0,C=void 0;w<E;){var N=this.getCode(b);if(N===16)k=2,P=3,C=n;else if(N===17)k=3,P=3,C=n=0;else if(N===18)k=7,P=11,C=n=0;else{A[w++]=n=N;continue}for(var R=this.getBits(k)+P;R-- >0;)A[w++]=C}h=this.generateHuffmanTable(A.subarray(0,m)),p=this.generateHuffmanTable(A.subarray(m,E))}else throw new Error("Unknown block type in flate stream");r=this.buffer;for(var F=r?r.length:0,B=this.bufferLength;;){var D=this.getCode(h);if(D<256){B+1>=F&&(r=this.ensureBuffer(B+1),F=r.length),r[B++]=D;continue}if(D===256){this.bufferLength=B;return}D-=257,D=ate[D];var L=D>>16;L>0&&(L=this.getBits(L)),n=(D&65535)+L,D=this.getCode(p),D=lte[D],L=D>>16,L>0&&(L=this.getBits(L));var M=(D&65535)+L;B+n>=F&&(r=this.ensureBuffer(B+n),F=r.length);for(var _=0;_<n;++_,++B)r[B]=r[B-M]}},e.prototype.getBits=function(r){for(var n=this.stream,i=this.codeSize,s=this.codeBuf,o;i<r;){if((o=n.getByte())===-1)throw new Error("Bad encoding in flate stream");s|=o<<i,i+=8}return o=s&(1<<r)-1,this.codeBuf=s>>r,this.codeSize=i-=r,o},e.prototype.getCode=function(r){for(var n=this.stream,i=r[0],s=r[1],o=this.codeSize,a=this.codeBuf,l;o<s&&(l=n.getByte())!==-1;)a|=l<<o,o+=8;var c=i[a&(1<<s)-1];typeof i=="number"&&console.log("FLATE:",c);var u=c>>16,d=c&65535;if(u<1||o<u)throw new Error("Bad encoding in flate stream");return this.codeBuf=a>>u,this.codeSize=o-u,d},e.prototype.generateHuffmanTable=function(r){var n=r.length,i=0,s;for(s=0;s<n;++s)r[s]>i&&(i=r[s]);for(var o=1<<i,a=new Int32Array(o),l=1,c=0,u=2;l<=i;++l,c<<=1,u<<=1)for(var d=0;d<n;++d)if(r[d]===l){var h=0,p=c;for(s=0;s<l;++s)h=h<<1|p&1,p>>=1;for(s=h;s<o;s+=u)a[s]=l<<16|d;++c}return[a,i]},e}(Km),fte=function(t){se(e,t);function e(r,n,i){var s=t.call(this,n)||this;s.stream=r,s.cachedData=0,s.bitsCached=0;for(var o=4096,a={earlyChange:i,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(o),dictionaryLengths:new Uint16Array(o),dictionaryPrevCodes:new Uint16Array(o),currentSequence:new Uint8Array(o),currentSequenceLength:0},l=0;l<256;++l)a.dictionaryValues[l]=l,a.dictionaryLengths[l]=1;return s.lzwState=a,s}return e.prototype.readBlock=function(){var r=512,n=r*2,i=r,s,o,a,l=this.lzwState;if(l){var c=l.earlyChange,u=l.nextCode,d=l.dictionaryValues,h=l.dictionaryLengths,p=l.dictionaryPrevCodes,m=l.codeLength,g=l.prevCode,y=l.currentSequence,v=l.currentSequenceLength,w=0,b=this.bufferLength,E=this.ensureBuffer(this.bufferLength+n);for(s=0;s<r;s++){var A=this.readBits(m),k=v>0;if(!A||A<256)y[0]=A,v=1;else if(A>=258)if(A<u)for(v=h[A],o=v-1,a=A;o>=0;o--)y[o]=d[a],a=p[a];else y[v++]=y[0];else if(A===256){m=9,u=258,v=0;continue}else{this.eof=!0,delete this.lzwState;break}if(k&&(p[u]=g,h[u]=h[g]+1,d[u]=y[0],u++,m=u+c&u+c-1?m:Math.min(Math.log(u+c)/.6931471805599453+1,12)|0),g=A,w+=v,n<w){do n+=i;while(n<w);E=this.ensureBuffer(this.bufferLength+n)}for(o=0;o<v;o++)E[b++]=y[o]}l.nextCode=u,l.codeLength=m,l.prevCode=g,l.currentSequenceLength=v,this.bufferLength=b}},e.prototype.readBits=function(r){for(var n=this.bitsCached,i=this.cachedData;n<r;){var s=this.stream.getByte();if(s===-1)return this.eof=!0,null;i=i<<8|s,n+=8}return this.bitsCached=n-=r,this.cachedData=i,i>>>n&(1<<r)-1},e}(Km),hte=function(t){se(e,t);function e(r,n){var i=t.call(this,n)||this;return i.stream=r,i}return e.prototype.readBlock=function(){var r=this.stream.getBytes(2);if(!r||r.length<2||r[0]===128){this.eof=!0;return}var n,i=this.bufferLength,s=r[0];if(s<128){if(n=this.ensureBuffer(i+s+1),n[i++]=r[1],s>0){var o=this.stream.getBytes(s);n.set(o,i),i+=s}}else{s=257-s;var a=r[1];n=this.ensureBuffer(i+s+1);for(var l=0;l<s;l++)n[i++]=a}this.bufferLength=i},e}(Km),KR=function(t,e,r){if(e===j.of("FlateDecode"))return new dte(t);if(e===j.of("LZWDecode")){var n=1;if(r instanceof Ie){var i=r.lookup(j.of("EarlyChange"));i instanceof Ce&&(n=i.asNumber())}return new fte(t,void 0,n)}if(e===j.of("ASCII85Decode"))return new ste(t);if(e===j.of("ASCIIHexDecode"))return new ote(t);if(e===j.of("RunLengthDecode"))return new hte(t);throw new See(e.asString())},S5=function(t){var e=t.dict,r=t.contents,n=new x5(r),i=e.lookup(j.of("Filter")),s=e.lookup(j.of("DecodeParms"));if(i instanceof j)n=KR(n,i,s);else if(i instanceof ut)for(var o=0,a=i.size();o<a;o++)n=KR(n,i.lookup(o,j),s&&s.lookupMaybe(o,Ie));else if(i)throw new Ky([j,ut],i);return n},pte=function(t){var e=t.MediaBox(),r=e.lookup(2,Ce).asNumber()-e.lookup(0,Ce).asNumber(),n=e.lookup(3,Ce).asNumber()-e.lookup(1,Ce).asNumber();return{left:0,bottom:0,right:r,top:n}},gte=function(t){return[1,0,0,1,-t.left,-t.bottom]},E5=function(){function t(e,r,n){this.page=e;var i=r??pte(e);this.width=i.right-i.left,this.height=i.top-i.bottom,this.boundingBox=i,this.transformationMatrix=n??gte(i)}return t.for=function(e,r,n){return Me(this,void 0,void 0,function(){return Be(this,function(i){return[2,new t(e,r,n)]})})},t.prototype.embedIntoContext=function(e,r){return Me(this,void 0,void 0,function(){var n,i,s,o,a,l,c,u,d,h;return Be(this,function(p){if(n=this.page.normalizedEntries(),i=n.Contents,s=n.Resources,!i)throw new Eee;return o=this.decodeContents(i),a=this.boundingBox,l=a.left,c=a.bottom,u=a.right,d=a.top,h=e.flateStream(o,{Type:"XObject",Subtype:"Form",FormType:1,BBox:[l,c,u,d],Matrix:this.transformationMatrix,Resources:s}),r?(e.assign(r,h),[2,r]):[2,e.register(h)]})})},t.prototype.decodeContents=function(e){for(var r=Uint8Array.of(O.Newline),n=[],i=0,s=e.size();i<s;i++){var o=e.lookup(i,gi),a=void 0;if(o instanceof em)a=S5(o).decode();else if(o instanceof ug)a=o.getUnencodedContents();else throw new kee(o);n.push(a,r)}return _J.apply(void 0,n)},t}(),$0=function(t,e){if(t!==void 0)return e[t]},dg;(function(t){t.UseNone="UseNone",t.UseOutlines="UseOutlines",t.UseThumbs="UseThumbs",t.UseOC="UseOC"})(dg||(dg={}));var fg;(function(t){t.L2R="L2R",t.R2L="R2L"})(fg||(fg={}));var hg;(function(t){t.None="None",t.AppDefault="AppDefault"})(hg||(hg={}));var Xy;(function(t){t.Simplex="Simplex",t.DuplexFlipShortEdge="DuplexFlipShortEdge",t.DuplexFlipLongEdge="DuplexFlipLongEdge"})(Xy||(Xy={}));var qR=function(){function t(e){this.dict=e}return t.prototype.lookupBool=function(e){var r=this.dict.lookup(j.of(e));if(r instanceof $g)return r},t.prototype.lookupName=function(e){var r=this.dict.lookup(j.of(e));if(r instanceof j)return r},t.prototype.HideToolbar=function(){return this.lookupBool("HideToolbar")},t.prototype.HideMenubar=function(){return this.lookupBool("HideMenubar")},t.prototype.HideWindowUI=function(){return this.lookupBool("HideWindowUI")},t.prototype.FitWindow=function(){return this.lookupBool("FitWindow")},t.prototype.CenterWindow=function(){return this.lookupBool("CenterWindow")},t.prototype.DisplayDocTitle=function(){return this.lookupBool("DisplayDocTitle")},t.prototype.NonFullScreenPageMode=function(){return this.lookupName("NonFullScreenPageMode")},t.prototype.Direction=function(){return this.lookupName("Direction")},t.prototype.PrintScaling=function(){return this.lookupName("PrintScaling")},t.prototype.Duplex=function(){return this.lookupName("Duplex")},t.prototype.PickTrayByPDFSize=function(){return this.lookupBool("PickTrayByPDFSize")},t.prototype.PrintPageRange=function(){var e=this.dict.lookup(j.of("PrintPageRange"));if(e instanceof ut)return e},t.prototype.NumCopies=function(){var e=this.dict.lookup(j.of("NumCopies"));if(e instanceof Ce)return e},t.prototype.getHideToolbar=function(){var e,r;return(r=(e=this.HideToolbar())===null||e===void 0?void 0:e.asBoolean())!==null&&r!==void 0?r:!1},t.prototype.getHideMenubar=function(){var e,r;return(r=(e=this.HideMenubar())===null||e===void 0?void 0:e.asBoolean())!==null&&r!==void 0?r:!1},t.prototype.getHideWindowUI=function(){var e,r;return(r=(e=this.HideWindowUI())===null||e===void 0?void 0:e.asBoolean())!==null&&r!==void 0?r:!1},t.prototype.getFitWindow=function(){var e,r;return(r=(e=this.FitWindow())===null||e===void 0?void 0:e.asBoolean())!==null&&r!==void 0?r:!1},t.prototype.getCenterWindow=function(){var e,r;return(r=(e=this.CenterWindow())===null||e===void 0?void 0:e.asBoolean())!==null&&r!==void 0?r:!1},t.prototype.getDisplayDocTitle=function(){var e,r;return(r=(e=this.DisplayDocTitle())===null||e===void 0?void 0:e.asBoolean())!==null&&r!==void 0?r:!1},t.prototype.getNonFullScreenPageMode=function(){var e,r,n=(e=this.NonFullScreenPageMode())===null||e===void 0?void 0:e.decodeText();return(r=$0(n,dg))!==null&&r!==void 0?r:dg.UseNone},t.prototype.getReadingDirection=function(){var e,r,n=(e=this.Direction())===null||e===void 0?void 0:e.decodeText();return(r=$0(n,fg))!==null&&r!==void 0?r:fg.L2R},t.prototype.getPrintScaling=function(){var e,r,n=(e=this.PrintScaling())===null||e===void 0?void 0:e.decodeText();return(r=$0(n,hg))!==null&&r!==void 0?r:hg.AppDefault},t.prototype.getDuplex=function(){var e,r=(e=this.Duplex())===null||e===void 0?void 0:e.decodeText();return $0(r,Xy)},t.prototype.getPickTrayByPDFSize=function(){var e;return(e=this.PickTrayByPDFSize())===null||e===void 0?void 0:e.asBoolean()},t.prototype.getPrintPageRange=function(){var e=this.PrintPageRange();if(!e)return[];for(var r=[],n=0;n<e.size();n+=2){var i=e.lookup(n,Ce).asNumber(),s=e.lookup(n+1,Ce).asNumber();r.push({start:i,end:s})}return r},t.prototype.getNumCopies=function(){var e,r;return(r=(e=this.NumCopies())===null||e===void 0?void 0:e.asNumber())!==null&&r!==void 0?r:1},t.prototype.setHideToolbar=function(e){var r=this.dict.context.obj(e);this.dict.set(j.of("HideToolbar"),r)},t.prototype.setHideMenubar=function(e){var r=this.dict.context.obj(e);this.dict.set(j.of("HideMenubar"),r)},t.prototype.setHideWindowUI=function(e){var r=this.dict.context.obj(e);this.dict.set(j.of("HideWindowUI"),r)},t.prototype.setFitWindow=function(e){var r=this.dict.context.obj(e);this.dict.set(j.of("FitWindow"),r)},t.prototype.setCenterWindow=function(e){var r=this.dict.context.obj(e);this.dict.set(j.of("CenterWindow"),r)},t.prototype.setDisplayDocTitle=function(e){var r=this.dict.context.obj(e);this.dict.set(j.of("DisplayDocTitle"),r)},t.prototype.setNonFullScreenPageMode=function(e){wl(e,"nonFullScreenPageMode",dg);var r=j.of(e);this.dict.set(j.of("NonFullScreenPageMode"),r)},t.prototype.setReadingDirection=function(e){wl(e,"readingDirection",fg);var r=j.of(e);this.dict.set(j.of("Direction"),r)},t.prototype.setPrintScaling=function(e){wl(e,"printScaling",hg);var r=j.of(e);this.dict.set(j.of("PrintScaling"),r)},t.prototype.setDuplex=function(e){wl(e,"duplex",Xy);var r=j.of(e);this.dict.set(j.of("Duplex"),r)},t.prototype.setPickTrayByPDFSize=function(e){var r=this.dict.context.obj(e);this.dict.set(j.of("PickTrayByPDFSize"),r)},t.prototype.setPrintPageRange=function(e){Array.isArray(e)||(e=[e]);for(var r=[],n=0,i=e.length;n<i;n++)r.push(e[n].start),r.push(e[n].end);d5(r,"printPageRange",["number"]);var s=this.dict.context.obj(r);this.dict.set(j.of("PrintPageRange"),s)},t.prototype.setNumCopies=function(e){fi(e,"numCopies",1,Number.MAX_VALUE),xee(e,"numCopies");var r=this.dict.context.obj(e);this.dict.set(j.of("NumCopies"),r)},t.fromDict=function(e){return new t(e)},t.create=function(e){var r=e.obj({});return new t(r)},t}(),mte=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+Tf/,k5=function(){function t(e,r){this.dict=e,this.ref=r}return t.prototype.T=function(){return this.dict.lookupMaybe(j.of("T"),yt,Ee)},t.prototype.Ff=function(){var e=this.getInheritableAttribute(j.of("Ff"));return this.dict.context.lookupMaybe(e,Ce)},t.prototype.V=function(){var e=this.getInheritableAttribute(j.of("V"));return this.dict.context.lookup(e)},t.prototype.Kids=function(){return this.dict.lookupMaybe(j.of("Kids"),ut)},t.prototype.DA=function(){var e=this.dict.lookup(j.of("DA"));if(e instanceof yt||e instanceof Ee)return e},t.prototype.setKids=function(e){this.dict.set(j.of("Kids"),this.dict.context.obj(e))},t.prototype.getParent=function(){var e=this.dict.get(j.of("Parent"));if(e instanceof wt){var r=this.dict.lookup(j.of("Parent"),Ie);return new t(r,e)}},t.prototype.setParent=function(e){e?this.dict.set(j.of("Parent"),e):this.dict.delete(j.of("Parent"))},t.prototype.getFullyQualifiedName=function(){var e=this.getParent();return e?e.getFullyQualifiedName()+"."+this.getPartialName():this.getPartialName()},t.prototype.getPartialName=function(){var e;return(e=this.T())===null||e===void 0?void 0:e.decodeText()},t.prototype.setPartialName=function(e){e?this.dict.set(j.of("T"),Ee.fromText(e)):this.dict.delete(j.of("T"))},t.prototype.setDefaultAppearance=function(e){this.dict.set(j.of("DA"),yt.of(e))},t.prototype.getDefaultAppearance=function(){var e=this.DA();return e instanceof Ee?e.decodeText():e==null?void 0:e.asString()},t.prototype.setFontSize=function(e){var r,n=(r=this.getFullyQualifiedName())!==null&&r!==void 0?r:"",i=this.getDefaultAppearance();if(!i)throw new Pee(n);var s=mA(i,mte);if(!s.match)throw new Tee(n);var o=i.slice(0,s.pos-s.match[0].length),a=s.pos<=i.length?i.slice(s.pos):"",l=s.match[1],c=o+" /"+l+" "+e+" Tf "+a;this.setDefaultAppearance(c)},t.prototype.getFlags=function(){var e,r;return(r=(e=this.Ff())===null||e===void 0?void 0:e.asNumber())!==null&&r!==void 0?r:0},t.prototype.setFlags=function(e){this.dict.set(j.of("Ff"),Ce.of(e))},t.prototype.hasFlag=function(e){var r=this.getFlags();return(r&e)!==0},t.prototype.setFlag=function(e){var r=this.getFlags();this.setFlags(r|e)},t.prototype.clearFlag=function(e){var r=this.getFlags();this.setFlags(r&~e)},t.prototype.setFlagTo=function(e,r){r?this.setFlag(e):this.clearFlag(e)},t.prototype.getInheritableAttribute=function(e){var r;return this.ascend(function(n){r||(r=n.dict.get(e))}),r},t.prototype.ascend=function(e){e(this);var r=this.getParent();r&&r.ascend(e)},t}(),y1=function(){function t(e){this.dict=e}return t.prototype.W=function(){var e=this.dict.lookup(j.of("W"));if(e instanceof Ce)return e},t.prototype.getWidth=function(){var e,r;return(r=(e=this.W())===null||e===void 0?void 0:e.asNumber())!==null&&r!==void 0?r:1},t.prototype.setWidth=function(e){var r=this.dict.context.obj(e);this.dict.set(j.of("W"),r)},t.fromDict=function(e){return new t(e)},t}(),vte=function(){function t(e){this.dict=e}return t.prototype.Rect=function(){return this.dict.lookup(j.of("Rect"),ut)},t.prototype.AP=function(){return this.dict.lookupMaybe(j.of("AP"),Ie)},t.prototype.F=function(){var e=this.dict.lookup(j.of("F"));return this.dict.context.lookupMaybe(e,Ce)},t.prototype.getRectangle=function(){var e,r=this.Rect();return(e=r==null?void 0:r.asRectangle())!==null&&e!==void 0?e:{x:0,y:0,width:0,height:0}},t.prototype.setRectangle=function(e){var r=e.x,n=e.y,i=e.width,s=e.height,o=this.dict.context.obj([r,n,r+i,n+s]);this.dict.set(j.of("Rect"),o)},t.prototype.getAppearanceState=function(){var e=this.dict.lookup(j.of("AS"));if(e instanceof j)return e},t.prototype.setAppearanceState=function(e){this.dict.set(j.of("AS"),e)},t.prototype.setAppearances=function(e){this.dict.set(j.of("AP"),e)},t.prototype.ensureAP=function(){var e=this.AP();return e||(e=this.dict.context.obj({}),this.dict.set(j.of("AP"),e)),e},t.prototype.getNormalAppearance=function(){var e=this.ensureAP(),r=e.get(j.of("N"));if(r instanceof wt||r instanceof Ie)return r;throw new Error("Unexpected N type: "+(r==null?void 0:r.constructor.name))},t.prototype.setNormalAppearance=function(e){var r=this.ensureAP();r.set(j.of("N"),e)},t.prototype.setRolloverAppearance=function(e){var r=this.ensureAP();r.set(j.of("R"),e)},t.prototype.setDownAppearance=function(e){var r=this.ensureAP();r.set(j.of("D"),e)},t.prototype.removeRolloverAppearance=function(){var e=this.AP();e==null||e.delete(j.of("R"))},t.prototype.removeDownAppearance=function(){var e=this.AP();e==null||e.delete(j.of("D"))},t.prototype.getAppearances=function(){var e=this.AP();if(e){var r=e.lookup(j.of("N"),Ie,gi),n=e.lookupMaybe(j.of("R"),Ie,gi),i=e.lookupMaybe(j.of("D"),Ie,gi);return{normal:r,rollover:n,down:i}}},t.prototype.getFlags=function(){var e,r;return(r=(e=this.F())===null||e===void 0?void 0:e.asNumber())!==null&&r!==void 0?r:0},t.prototype.setFlags=function(e){this.dict.set(j.of("F"),Ce.of(e))},t.prototype.hasFlag=function(e){var r=this.getFlags();return(r&e)!==0},t.prototype.setFlag=function(e){var r=this.getFlags();this.setFlags(r|e)},t.prototype.clearFlag=function(e){var r=this.getFlags();this.setFlags(r&~e)},t.prototype.setFlagTo=function(e,r){r?this.setFlag(e):this.clearFlag(e)},t.fromDict=function(e){return new t(e)},t}(),w1=function(){function t(e){this.dict=e}return t.prototype.R=function(){var e=this.dict.lookup(j.of("R"));if(e instanceof Ce)return e},t.prototype.BC=function(){var e=this.dict.lookup(j.of("BC"));if(e instanceof ut)return e},t.prototype.BG=function(){var e=this.dict.lookup(j.of("BG"));if(e instanceof ut)return e},t.prototype.CA=function(){var e=this.dict.lookup(j.of("CA"));if(e instanceof Ee||e instanceof yt)return e},t.prototype.RC=function(){var e=this.dict.lookup(j.of("RC"));if(e instanceof Ee||e instanceof yt)return e},t.prototype.AC=function(){var e=this.dict.lookup(j.of("AC"));if(e instanceof Ee||e instanceof yt)return e},t.prototype.getRotation=function(){var e;return(e=this.R())===null||e===void 0?void 0:e.asNumber()},t.prototype.getBorderColor=function(){var e=this.BC();if(e){for(var r=[],n=0,i=e==null?void 0:e.size();n<i;n++){var s=e.get(n);s instanceof Ce&&r.push(s.asNumber())}return r}},t.prototype.getBackgroundColor=function(){var e=this.BG();if(e){for(var r=[],n=0,i=e==null?void 0:e.size();n<i;n++){var s=e.get(n);s instanceof Ce&&r.push(s.asNumber())}return r}},t.prototype.getCaptions=function(){var e=this.CA(),r=this.RC(),n=this.AC();return{normal:e==null?void 0:e.decodeText(),rollover:r==null?void 0:r.decodeText(),down:n==null?void 0:n.decodeText()}},t.prototype.setRotation=function(e){var r=this.dict.context.obj(e);this.dict.set(j.of("R"),r)},t.prototype.setBorderColor=function(e){var r=this.dict.context.obj(e);this.dict.set(j.of("BC"),r)},t.prototype.setBackgroundColor=function(e){var r=this.dict.context.obj(e);this.dict.set(j.of("BG"),r)},t.prototype.setCaptions=function(e){var r=Ee.fromText(e.normal);if(this.dict.set(j.of("CA"),r),e.rollover){var n=Ee.fromText(e.rollover);this.dict.set(j.of("RC"),n)}else this.dict.delete(j.of("RC"));if(e.down){var i=Ee.fromText(e.down);this.dict.set(j.of("AC"),i)}else this.dict.delete(j.of("AC"))},t.fromDict=function(e){return new t(e)},t}(),G2=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.MK=function(){var r=this.dict.lookup(j.of("MK"));if(r instanceof Ie)return r},e.prototype.BS=function(){var r=this.dict.lookup(j.of("BS"));if(r instanceof Ie)return r},e.prototype.DA=function(){var r=this.dict.lookup(j.of("DA"));if(r instanceof yt||r instanceof Ee)return r},e.prototype.P=function(){var r=this.dict.get(j.of("P"));if(r instanceof wt)return r},e.prototype.setP=function(r){this.dict.set(j.of("P"),r)},e.prototype.setDefaultAppearance=function(r){this.dict.set(j.of("DA"),yt.of(r))},e.prototype.getDefaultAppearance=function(){var r=this.DA();return r instanceof Ee?r.decodeText():r==null?void 0:r.asString()},e.prototype.getAppearanceCharacteristics=function(){var r=this.MK();if(r)return w1.fromDict(r)},e.prototype.getOrCreateAppearanceCharacteristics=function(){var r=this.MK();if(r)return w1.fromDict(r);var n=w1.fromDict(this.dict.context.obj({}));return this.dict.set(j.of("MK"),n.dict),n},e.prototype.getBorderStyle=function(){var r=this.BS();if(r)return y1.fromDict(r)},e.prototype.getOrCreateBorderStyle=function(){var r=this.BS();if(r)return y1.fromDict(r);var n=y1.fromDict(this.dict.context.obj({}));return this.dict.set(j.of("BS"),n.dict),n},e.prototype.getOnValue=function(){var r,n=(r=this.getAppearances())===null||r===void 0?void 0:r.normal;if(n instanceof Ie)for(var i=n.keys(),s=0,o=i.length;s<o;s++){var a=i[s];if(a!==j.of("Off"))return a}},e.fromDict=function(r){return new e(r)},e.create=function(r,n){var i=r.obj({Type:"Annot",Subtype:"Widget",Rect:[0,0,0,0],Parent:n});return new e(i)},e}(vte),Gh=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.FT=function(){var r=this.getInheritableAttribute(j.of("FT"));return this.dict.context.lookup(r,j)},e.prototype.getWidgets=function(){var r=this.Kids();if(!r)return[G2.fromDict(this.dict)];for(var n=new Array(r.size()),i=0,s=r.size();i<s;i++){var o=r.lookup(i,Ie);n[i]=G2.fromDict(o)}return n},e.prototype.addWidget=function(r){var n=this.normalizedEntries().Kids;n.push(r)},e.prototype.removeWidget=function(r){var n=this.Kids();if(n){if(r<0||r>n.size())throw new qy(r,0,n.size());n.remove(r)}else{if(r!==0)throw new qy(r,0,0);this.setKids([])}},e.prototype.normalizedEntries=function(){var r=this.Kids();return r||(r=this.dict.context.obj([this.ref]),this.dict.set(j.of("Kids"),r)),{Kids:r}},e.fromDict=function(r,n){return new e(r,n)},e}(k5),jA=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.Opt=function(){return this.dict.lookupMaybe(j.of("Opt"),yt,Ee,ut)},e.prototype.setOpt=function(r){this.dict.set(j.of("Opt"),this.dict.context.obj(r))},e.prototype.getExportValues=function(){var r=this.Opt();if(r){if(r instanceof yt||r instanceof Ee)return[r];for(var n=[],i=0,s=r.size();i<s;i++){var o=r.lookup(i);(o instanceof yt||o instanceof Ee)&&n.push(o)}return n}},e.prototype.removeExportValue=function(r){var n=this.Opt();if(n)if(n instanceof yt||n instanceof Ee){if(r!==0)throw new qy(r,0,0);this.setOpt([])}else{if(r<0||r>n.size())throw new qy(r,0,n.size());n.remove(r)}},e.prototype.normalizeExportValues=function(){for(var r,n,i,s,o=(r=this.getExportValues())!==null&&r!==void 0?r:[],a=[],l=this.getWidgets(),c=0,u=l.length;c<u;c++){var d=l[c],h=(n=o[c])!==null&&n!==void 0?n:Ee.fromText((s=(i=d.getOnValue())===null||i===void 0?void 0:i.decodeText())!==null&&s!==void 0?s:"");a.push(h)}this.setOpt(a)},e.prototype.addOpt=function(r,n){var i;this.normalizeExportValues();var s=r.decodeText(),o;if(n)for(var a=(i=this.getExportValues())!==null&&i!==void 0?i:[],l=0,c=a.length;l<c;l++){var u=a[l];u.decodeText()===s&&(o=l)}var d=this.Opt();return d.push(r),o??d.size()-1},e.prototype.addWidgetWithOpt=function(r,n,i){var s=this.addOpt(n,i),o=j.of(String(s));return this.addWidget(r),o},e}(Gh),Ab=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.setValue=function(r){var n,i=(n=this.getOnValue())!==null&&n!==void 0?n:j.of("Yes");if(r!==i&&r!==j.of("Off"))throw new CA;this.dict.set(j.of("V"),r);for(var s=this.getWidgets(),o=0,a=s.length;o<a;o++){var l=s[o],c=l.getOnValue()===r?r:j.of("Off");l.setAppearanceState(c)}},e.prototype.getValue=function(){var r=this.V();return r instanceof j?r:j.of("Off")},e.prototype.getOnValue=function(){var r=this.getWidgets()[0];return r==null?void 0:r.getOnValue()},e.fromDict=function(r,n){return new e(r,n)},e.create=function(r){var n=r.obj({FT:"Btn",Kids:[]}),i=r.register(n);return new e(n,i)},e}(jA),yr=function(t){return 1<<t},cs;(function(t){t[t.ReadOnly=yr(0)]="ReadOnly",t[t.Required=yr(1)]="Required",t[t.NoExport=yr(2)]="NoExport"})(cs||(cs={}));var Ui;(function(t){t[t.NoToggleToOff=yr(14)]="NoToggleToOff",t[t.Radio=yr(15)]="Radio",t[t.PushButton=yr(16)]="PushButton",t[t.RadiosInUnison=yr(25)]="RadiosInUnison"})(Ui||(Ui={}));var Qt;(function(t){t[t.Multiline=yr(12)]="Multiline",t[t.Password=yr(13)]="Password",t[t.FileSelect=yr(20)]="FileSelect",t[t.DoNotSpellCheck=yr(22)]="DoNotSpellCheck",t[t.DoNotScroll=yr(23)]="DoNotScroll",t[t.Comb=yr(24)]="Comb",t[t.RichText=yr(25)]="RichText"})(Qt||(Qt={}));var vt;(function(t){t[t.Combo=yr(17)]="Combo",t[t.Edit=yr(18)]="Edit",t[t.Sort=yr(19)]="Sort",t[t.MultiSelect=yr(21)]="MultiSelect",t[t.DoNotSpellCheck=yr(22)]="DoNotSpellCheck",t[t.CommitOnSelChange=yr(26)]="CommitOnSelChange"})(vt||(vt={}));var A5=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.setValues=function(r){if(this.hasFlag(vt.Combo)&&!this.hasFlag(vt.Edit)&&!this.valuesAreValid(r))throw new CA;if(r.length===0&&this.dict.delete(j.of("V")),r.length===1&&this.dict.set(j.of("V"),r[0]),r.length>1){if(!this.hasFlag(vt.MultiSelect))throw new Nee;this.dict.set(j.of("V"),this.dict.context.obj(r))}this.updateSelectedIndices(r)},e.prototype.valuesAreValid=function(r){for(var n=this.getOptions(),i=function(l,c){var u=r[l].decodeText();if(!n.find(function(d){return u===(d.display||d.value).decodeText()}))return{value:!1}},s=0,o=r.length;s<o;s++){var a=i(s);if(typeof a=="object")return a.value}return!0},e.prototype.updateSelectedIndices=function(r){if(r.length>1){for(var n=new Array(r.length),i=this.getOptions(),s=function(l,c){var u=r[l].decodeText();n[l]=i.findIndex(function(d){return u===(d.display||d.value).decodeText()})},o=0,a=r.length;o<a;o++)s(o,a);this.dict.set(j.of("I"),this.dict.context.obj(n.sort()))}else this.dict.delete(j.of("I"))},e.prototype.getValues=function(){var r=this.V();if(r instanceof yt||r instanceof Ee)return[r];if(r instanceof ut){for(var n=[],i=0,s=r.size();i<s;i++){var o=r.lookup(i);(o instanceof yt||o instanceof Ee)&&n.push(o)}return n}return[]},e.prototype.Opt=function(){return this.dict.lookupMaybe(j.of("Opt"),yt,Ee,ut)},e.prototype.setOptions=function(r){for(var n=new Array(r.length),i=0,s=r.length;i<s;i++){var o=r[i],a=o.value,l=o.display;n[i]=this.dict.context.obj([a,l||a])}this.dict.set(j.of("Opt"),this.dict.context.obj(n))},e.prototype.getOptions=function(){var r=this.Opt();if(r instanceof yt||r instanceof Ee)return[{value:r,display:r}];if(r instanceof ut){for(var n=[],i=0,s=r.size();i<s;i++){var o=r.lookup(i);if((o instanceof yt||o instanceof Ee)&&n.push({value:o,display:o}),o instanceof ut&&o.size()>0){var a=o.lookup(0,yt,Ee),l=o.lookupMaybe(1,yt,Ee);n.push({value:a,display:l||a})}}return n}return[]},e}(Gh),Cb=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.fromDict=function(r,n){return new e(r,n)},e.create=function(r){var n=r.obj({FT:"Ch",Ff:vt.Combo,Kids:[]}),i=r.register(n);return new e(n,i)},e}(A5),Yy=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.addField=function(r){var n=this.normalizedEntries().Kids;n==null||n.push(r)},e.prototype.normalizedEntries=function(){var r=this.Kids();return r||(r=this.dict.context.obj([]),this.dict.set(j.of("Kids"),r)),{Kids:r}},e.fromDict=function(r,n){return new e(r,n)},e.create=function(r){var n=r.obj({}),i=r.register(n);return new e(n,i)},e}(k5),FA=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.fromDict=function(r,n){return new e(r,n)},e}(Gh),Nb=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.MaxLen=function(){var r=this.dict.lookup(j.of("MaxLen"));if(r instanceof Ce)return r},e.prototype.Q=function(){var r=this.dict.lookup(j.of("Q"));if(r instanceof Ce)return r},e.prototype.setMaxLength=function(r){this.dict.set(j.of("MaxLen"),Ce.of(r))},e.prototype.removeMaxLength=function(){this.dict.delete(j.of("MaxLen"))},e.prototype.getMaxLength=function(){var r;return(r=this.MaxLen())===null||r===void 0?void 0:r.asNumber()},e.prototype.setQuadding=function(r){this.dict.set(j.of("Q"),Ce.of(r))},e.prototype.getQuadding=function(){var r;return(r=this.Q())===null||r===void 0?void 0:r.asNumber()},e.prototype.setValue=function(r){this.dict.set(j.of("V"),r)},e.prototype.removeValue=function(){this.dict.delete(j.of("V"))},e.prototype.getValue=function(){var r=this.V();if(r instanceof yt||r instanceof Ee)return r},e.fromDict=function(r,n){return new e(r,n)},e.create=function(r){var n=r.obj({FT:"Tx",Kids:[]}),i=r.register(n);return new e(n,i)},e}(Gh),Pb=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.fromDict=function(r,n){return new e(r,n)},e.create=function(r){var n=r.obj({FT:"Btn",Ff:Ui.PushButton,Kids:[]}),i=r.register(n);return new e(n,i)},e}(jA),Tb=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.setValue=function(r){var n=this.getOnValues();if(!n.includes(r)&&r!==j.of("Off"))throw new CA;this.dict.set(j.of("V"),r);for(var i=this.getWidgets(),s=0,o=i.length;s<o;s++){var a=i[s],l=a.getOnValue()===r?r:j.of("Off");a.setAppearanceState(l)}},e.prototype.getValue=function(){var r=this.V();return r instanceof j?r:j.of("Off")},e.prototype.getOnValues=function(){for(var r=this.getWidgets(),n=[],i=0,s=r.length;i<s;i++){var o=r[i].getOnValue();o&&n.push(o)}return n},e.fromDict=function(r,n){return new e(r,n)},e.create=function(r){var n=r.obj({FT:"Btn",Ff:Ui.Radio,Kids:[]}),i=r.register(n);return new e(n,i)},e}(jA),Rb=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.fromDict=function(r,n){return new e(r,n)},e.create=function(r){var n=r.obj({FT:"Ch",Kids:[]}),i=r.register(n);return new e(n,i)},e}(A5),OA=function(t){if(!t)return[];for(var e=[],r=0,n=t.size();r<n;r++){var i=t.get(r),s=t.lookup(r);i instanceof wt&&s instanceof Ie&&e.push([C5(s,i),i])}return e},C5=function(t,e){var r=yte(t);return r?Yy.fromDict(t,e):wte(t,e)},yte=function(t){var e=t.lookup(j.of("Kids"));if(e instanceof ut)for(var r=0,n=e.size();r<n;r++){var i=e.lookup(r),s=i instanceof Ie&&i.has(j.of("T"));if(s)return!0}return!1},wte=function(t,e){var r=DA(t,j.of("FT")),n=t.context.lookup(r,j);return n===j.of("Btn")?bte(t,e):n===j.of("Ch")?xte(t,e):n===j.of("Tx")?Nb.fromDict(t,e):n===j.of("Sig")?FA.fromDict(t,e):Gh.fromDict(t,e)},bte=function(t,e){var r,n=DA(t,j.of("Ff")),i=t.context.lookupMaybe(n,Ce),s=(r=i==null?void 0:i.asNumber())!==null&&r!==void 0?r:0;return W2(s,Ui.PushButton)?Pb.fromDict(t,e):W2(s,Ui.Radio)?Tb.fromDict(t,e):Ab.fromDict(t,e)},xte=function(t,e){var r,n=DA(t,j.of("Ff")),i=t.context.lookupMaybe(n,Ce),s=(r=i==null?void 0:i.asNumber())!==null&&r!==void 0?r:0;return W2(s,vt.Combo)?Cb.fromDict(t,e):Rb.fromDict(t,e)},W2=function(t,e){return(t&e)!==0},DA=function(t,e){var r;return N5(t,function(n){r||(r=n.get(e))}),r},N5=function(t,e){e(t);var r=t.lookupMaybe(j.of("Parent"),Ie);r&&N5(r,e)},Jy=function(){function t(e){this.dict=e}return t.prototype.Fields=function(){var e=this.dict.lookup(j.of("Fields"));if(e instanceof ut)return e},t.prototype.getFields=function(){for(var e=this.normalizedEntries().Fields,r=new Array(e.size()),n=0,i=e.size();n<i;n++){var s=e.get(n),o=e.lookup(n,Ie);r[n]=[C5(o,s),s]}return r},t.prototype.getAllFields=function(){var e=[],r=function(n){if(n)for(var i=0,s=n.length;i<s;i++){var o=n[i];e.push(o);var a=o[0];a instanceof Yy&&r(OA(a.Kids()))}};return r(this.getFields()),e},t.prototype.addField=function(e){var r=this.normalizedEntries().Fields;r==null||r.push(e)},t.prototype.removeField=function(e){var r=e.getParent(),n=r===void 0?this.normalizedEntries().Fields:r.Kids(),i=n==null?void 0:n.indexOf(e.ref);if(n===void 0||i===void 0)throw new Error("Tried to remove inexistent field "+e.getFullyQualifiedName());n.remove(i),r!==void 0&&n.size()===0&&this.removeField(r)},t.prototype.normalizedEntries=function(){var e=this.Fields();return e||(e=this.dict.context.obj([]),this.dict.set(j.of("Fields"),e)),{Fields:e}},t.fromDict=function(e){return new t(e)},t.create=function(e){var r=e.obj({Fields:[]});return new t(r)},t}(),P5=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.Pages=function(){return this.lookup(j.of("Pages"),Ie)},e.prototype.AcroForm=function(){return this.lookupMaybe(j.of("AcroForm"),Ie)},e.prototype.getAcroForm=function(){var r=this.AcroForm();if(r)return Jy.fromDict(r)},e.prototype.getOrCreateAcroForm=function(){var r=this.getAcroForm();if(!r){r=Jy.create(this.context);var n=this.context.register(r.dict);this.set(j.of("AcroForm"),n)}return r},e.prototype.ViewerPreferences=function(){return this.lookupMaybe(j.of("ViewerPreferences"),Ie)},e.prototype.getViewerPreferences=function(){var r=this.ViewerPreferences();if(r)return qR.fromDict(r)},e.prototype.getOrCreateViewerPreferences=function(){var r=this.getViewerPreferences();if(!r){r=qR.create(this.context);var n=this.context.register(r.dict);this.set(j.of("ViewerPreferences"),n)}return r},e.prototype.insertLeafNode=function(r,n){var i=this.get(j.of("Pages")),s=this.Pages().insertLeafNode(r,n);return s||i},e.prototype.removeLeafNode=function(r){this.Pages().removeLeafNode(r)},e.withContextAndPages=function(r,n){var i=new Map;return i.set(j.of("Type"),j.of("Catalog")),i.set(j.of("Pages"),n),new e(i,r)},e.fromMapWithContext=function(r,n){return new e(r,n)},e}(Ie),T5=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.Parent=function(){return this.lookup(j.of("Parent"))},e.prototype.Kids=function(){return this.lookup(j.of("Kids"),ut)},e.prototype.Count=function(){return this.lookup(j.of("Count"),Ce)},e.prototype.pushTreeNode=function(r){var n=this.Kids();n.push(r)},e.prototype.pushLeafNode=function(r){var n=this.Kids();this.insertLeafKid(n.size(),r)},e.prototype.insertLeafNode=function(r,n){var i=this.Kids(),s=this.Count().asNumber();if(n>s)throw new DR(n,s);for(var o=n,a=0,l=i.size();a<l;a++){if(o===0){this.insertLeafKid(a,r);return}var c=i.get(a),u=this.context.lookup(c);if(u instanceof e){if(u.Count().asNumber()>o)return u.insertLeafNode(r,o)||c;o-=u.Count().asNumber()}u instanceof ra&&(o-=1)}if(o===0){this.insertLeafKid(i.size(),r);return}throw new IR(n,"insertLeafNode")},e.prototype.removeLeafNode=function(r,n){n===void 0&&(n=!0);var i=this.Kids(),s=this.Count().asNumber();if(r>=s)throw new DR(r,s);for(var o=r,a=0,l=i.size();a<l;a++){var c=i.get(a),u=this.context.lookup(c);if(u instanceof e)if(u.Count().asNumber()>o){u.removeLeafNode(o,n),n&&u.Kids().size()===0&&i.remove(a);return}else o-=u.Count().asNumber();if(u instanceof ra)if(o===0){this.removeKid(a);return}else o-=1}throw new IR(r,"removeLeafNode")},e.prototype.ascend=function(r){r(this);var n=this.Parent();n&&n.ascend(r)},e.prototype.traverse=function(r){for(var n=this.Kids(),i=0,s=n.size();i<s;i++){var o=n.get(i),a=this.context.lookup(o);a instanceof e&&a.traverse(r),r(a,o)}},e.prototype.insertLeafKid=function(r,n){var i=this.Kids();this.ascend(function(s){var o=s.Count().asNumber()+1;s.set(j.of("Count"),Ce.of(o))}),i.insert(r,n)},e.prototype.removeKid=function(r){var n=this.Kids(),i=n.lookup(r);i instanceof ra&&this.ascend(function(s){var o=s.Count().asNumber()-1;s.set(j.of("Count"),Ce.of(o))}),n.remove(r)},e.withContext=function(r,n){var i=new Map;return i.set(j.of("Type"),j.of("Pages")),i.set(j.of("Kids"),r.obj([])),i.set(j.of("Count"),r.obj(0)),n&&i.set(j.of("Parent"),n),new e(i,r)},e.fromMapWithContext=function(r,n){return new e(r,n)},e}(Ie),dn=new Uint8Array(256);dn[O.Zero]=1;dn[O.One]=1;dn[O.Two]=1;dn[O.Three]=1;dn[O.Four]=1;dn[O.Five]=1;dn[O.Six]=1;dn[O.Seven]=1;dn[O.Eight]=1;dn[O.Nine]=1;var jb=new Uint8Array(256);jb[O.Period]=1;jb[O.Plus]=1;jb[O.Minus]=1;var IA=new Uint8Array(256);for(var bp=0,Ste=256;bp<Ste;bp++)IA[bp]=dn[bp]||jb[bp]?1:0;var QR=O.Newline,XR=O.CarriageReturn,Ete=function(){function t(e,r){r===void 0&&(r=!1),this.bytes=e,this.capNumbers=r}return t.prototype.parseRawInt=function(){for(var e="";!this.bytes.done();){var r=this.bytes.peek();if(!dn[r])break;e+=ea(this.bytes.next())}var n=Number(e);if(!e||!isFinite(n))throw new MR(this.bytes.position(),e);return n},t.prototype.parseRawNumber=function(){for(var e="";!this.bytes.done();){var r=this.bytes.peek();if(!IA[r]||(e+=ea(this.bytes.next()),r===O.Period))break}for(;!this.bytes.done();){var r=this.bytes.peek();if(!dn[r])break;e+=ea(this.bytes.next())}var n=Number(e);if(!e||!isFinite(n))throw new MR(this.bytes.position(),e);if(n>Number.MAX_SAFE_INTEGER)if(this.capNumbers){var i="Parsed number that is too large for some PDF readers: "+e+", using Number.MAX_SAFE_INTEGER instead.";return console.warn(i),Number.MAX_SAFE_INTEGER}else{var i="Parsed number that is too large for some PDF readers: "+e+", not capping.";console.warn(i)}return n},t.prototype.skipWhitespace=function(){for(;!this.bytes.done()&&pa[this.bytes.peek()];)this.bytes.next()},t.prototype.skipLine=function(){for(;!this.bytes.done();){var e=this.bytes.peek();if(e===QR||e===XR)return;this.bytes.next()}},t.prototype.skipComment=function(){if(this.bytes.peek()!==O.Percent)return!1;for(;!this.bytes.done();){var e=this.bytes.peek();if(e===QR||e===XR)return!0;this.bytes.next()}return!0},t.prototype.skipWhitespaceAndComments=function(){for(this.skipWhitespace();this.skipComment();)this.skipWhitespace()},t.prototype.matchKeyword=function(e){for(var r=this.bytes.offset(),n=0,i=e.length;n<i;n++)if(this.bytes.done()||this.bytes.next()!==e[n])return this.bytes.moveTo(r),!1;return!0},t}(),Fb=function(){function t(e){this.idx=0,this.line=0,this.column=0,this.bytes=e,this.length=this.bytes.length}return t.prototype.moveTo=function(e){this.idx=e},t.prototype.next=function(){var e=this.bytes[this.idx++];return e===O.Newline?(this.line+=1,this.column=0):this.column+=1,e},t.prototype.assertNext=function(e){if(this.peek()!==e)throw new Ree(this.position(),e,this.peek());return this.next()},t.prototype.peek=function(){return this.bytes[this.idx]},t.prototype.peekAhead=function(e){return this.bytes[this.idx+e]},t.prototype.peekAt=function(e){return this.bytes[e]},t.prototype.done=function(){return this.idx>=this.length},t.prototype.offset=function(){return this.idx},t.prototype.slice=function(e,r){return this.bytes.slice(e,r)},t.prototype.position=function(){return{line:this.line,column:this.column,offset:this.idx}},t.of=function(e){return new t(e)},t.fromPDFRawStream=function(e){return t.of(S5(e).decode())},t}(),kte=O.Space,xp=O.CarriageReturn,Sp=O.Newline,Ep=[O.s,O.t,O.r,O.e,O.a,O.m],ev=[O.e,O.n,O.d,O.s,O.t,O.r,O.e,O.a,O.m],jt={header:[O.Percent,O.P,O.D,O.F,O.Dash],eof:[O.Percent,O.Percent,O.E,O.O,O.F],obj:[O.o,O.b,O.j],endobj:[O.e,O.n,O.d,O.o,O.b,O.j],xref:[O.x,O.r,O.e,O.f],trailer:[O.t,O.r,O.a,O.i,O.l,O.e,O.r],startxref:[O.s,O.t,O.a,O.r,O.t,O.x,O.r,O.e,O.f],true:[O.t,O.r,O.u,O.e],false:[O.f,O.a,O.l,O.s,O.e],null:[O.n,O.u,O.l,O.l],stream:Ep,streamEOF1:it(Ep,[kte,xp,Sp]),streamEOF2:it(Ep,[xp,Sp]),streamEOF3:it(Ep,[xp]),streamEOF4:it(Ep,[Sp]),endstream:ev,EOF1endstream:it([xp,Sp],ev),EOF2endstream:it([xp],ev),EOF3endstream:it([Sp],ev)},R5=function(t){se(e,t);function e(r,n,i){i===void 0&&(i=!1);var s=t.call(this,r,i)||this;return s.context=n,s}return e.prototype.parseObject=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(jt.true))return $g.True;if(this.matchKeyword(jt.false))return $g.False;if(this.matchKeyword(jt.null))return zn;var r=this.bytes.peek();if(r===O.LessThan&&this.bytes.peekAhead(1)===O.LessThan)return this.parseDictOrStream();if(r===O.LessThan)return this.parseHexString();if(r===O.LeftParen)return this.parseString();if(r===O.ForwardSlash)return this.parseName();if(r===O.LeftSquareBracket)return this.parseArray();if(IA[r])return this.parseNumberOrRef();throw new jee(this.bytes.position(),r)},e.prototype.parseNumberOrRef=function(){var r=this.parseRawNumber();this.skipWhitespaceAndComments();var n=this.bytes.offset();if(dn[this.bytes.peek()]){var i=this.parseRawNumber();if(this.skipWhitespaceAndComments(),this.bytes.peek()===O.R)return this.bytes.assertNext(O.R),wt.of(r,i)}return this.bytes.moveTo(n),Ce.of(r)},e.prototype.parseHexString=function(){var r="";for(this.bytes.assertNext(O.LessThan);!this.bytes.done()&&this.bytes.peek()!==O.GreaterThan;)r+=ea(this.bytes.next());return this.bytes.assertNext(O.GreaterThan),Ee.of(r)},e.prototype.parseString=function(){for(var r=0,n=!1,i="";!this.bytes.done();){var s=this.bytes.next();if(i+=ea(s),n||(s===O.LeftParen&&(r+=1),s===O.RightParen&&(r-=1)),s===O.BackSlash?n=!n:n&&(n=!1),r===0)return yt.of(i.substring(1,i.length-1))}throw new Dee(this.bytes.position())},e.prototype.parseName=function(){this.bytes.assertNext(O.ForwardSlash);for(var r="";!this.bytes.done();){var n=this.bytes.peek();if(pa[n]||is[n])break;r+=ea(n),this.bytes.next()}return j.of(r)},e.prototype.parseArray=function(){this.bytes.assertNext(O.LeftSquareBracket),this.skipWhitespaceAndComments();for(var r=ut.withContext(this.context);this.bytes.peek()!==O.RightSquareBracket;){var n=this.parseObject();r.push(n),this.skipWhitespaceAndComments()}return this.bytes.assertNext(O.RightSquareBracket),r},e.prototype.parseDict=function(){this.bytes.assertNext(O.LessThan),this.bytes.assertNext(O.LessThan),this.skipWhitespaceAndComments();for(var r=new Map;!this.bytes.done()&&this.bytes.peek()!==O.GreaterThan&&this.bytes.peekAhead(1)!==O.GreaterThan;){var n=this.parseName(),i=this.parseObject();r.set(n,i),this.skipWhitespaceAndComments()}this.skipWhitespaceAndComments(),this.bytes.assertNext(O.GreaterThan),this.bytes.assertNext(O.GreaterThan);var s=r.get(j.of("Type"));return s===j.of("Catalog")?P5.fromMapWithContext(r,this.context):s===j.of("Pages")?T5.fromMapWithContext(r,this.context):s===j.of("Page")?ra.fromMapWithContext(r,this.context):Ie.fromMapWithContext(r,this.context)},e.prototype.parseDictOrStream=function(){var r=this.bytes.position(),n=this.parseDict();if(this.skipWhitespaceAndComments(),!this.matchKeyword(jt.streamEOF1)&&!this.matchKeyword(jt.streamEOF2)&&!this.matchKeyword(jt.streamEOF3)&&!this.matchKeyword(jt.streamEOF4)&&!this.matchKeyword(jt.stream))return n;var i=this.bytes.offset(),s,o=n.get(j.of("Length"));o instanceof Ce?(s=i+o.asNumber(),this.bytes.moveTo(s),this.skipWhitespaceAndComments(),this.matchKeyword(jt.endstream)||(this.bytes.moveTo(i),s=this.findEndOfStreamFallback(r))):s=this.findEndOfStreamFallback(r);var a=this.bytes.slice(i,s);return em.of(n,a)},e.prototype.findEndOfStreamFallback=function(r){for(var n=1,i=this.bytes.offset();!this.bytes.done()&&(i=this.bytes.offset(),this.matchKeyword(jt.stream)?n+=1:this.matchKeyword(jt.EOF1endstream)||this.matchKeyword(jt.EOF2endstream)||this.matchKeyword(jt.EOF3endstream)||this.matchKeyword(jt.endstream)?n-=1:this.bytes.next(),n!==0););if(n!==0)throw new Oee(r);return i},e.forBytes=function(r,n,i){return new e(Fb.of(r),n,i)},e.forByteStream=function(r,n,i){return i===void 0&&(i=!1),new e(r,n,i)},e}(Ete),Ate=function(t){se(e,t);function e(r,n){var i=t.call(this,Fb.fromPDFRawStream(r),r.dict.context)||this,s=r.dict;return i.alreadyParsed=!1,i.shouldWaitForTick=n||function(){return!1},i.firstOffset=s.lookup(j.of("First"),Ce).asNumber(),i.objectCount=s.lookup(j.of("N"),Ce).asNumber(),i}return e.prototype.parseIntoContext=function(){return Me(this,void 0,void 0,function(){var r,n,i,s,o,a,l,c;return Be(this,function(u){switch(u.label){case 0:if(this.alreadyParsed)throw new AA("PDFObjectStreamParser","parseIntoContext");this.alreadyParsed=!0,r=this.parseOffsetsAndObjectNumbers(),n=0,i=r.length,u.label=1;case 1:return n<i?(s=r[n],o=s.objectNumber,a=s.offset,this.bytes.moveTo(this.firstOffset+a),l=this.parseObject(),c=wt.of(o,0),this.context.assign(c,l),this.shouldWaitForTick()?[4,kh()]:[3,3]):[3,4];case 2:u.sent(),u.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},e.prototype.parseOffsetsAndObjectNumbers=function(){for(var r=[],n=0,i=this.objectCount;n<i;n++){this.skipWhitespaceAndComments();var s=this.parseRawInt();this.skipWhitespaceAndComments();var o=this.parseRawInt();r.push({objectNumber:s,offset:o})}return r},e.forStream=function(r,n){return new e(r,n)},e}(R5),Cte=function(){function t(e){this.alreadyParsed=!1,this.dict=e.dict,this.bytes=Fb.fromPDFRawStream(e),this.context=this.dict.context;var r=this.dict.lookup(j.of("Size"),Ce),n=this.dict.lookup(j.of("Index"));if(n instanceof ut){this.subsections=[];for(var i=0,s=n.size();i<s;i+=2){var o=n.lookup(i+0,Ce).asNumber(),a=n.lookup(i+1,Ce).asNumber();this.subsections.push({firstObjectNumber:o,length:a})}}else this.subsections=[{firstObjectNumber:0,length:r.asNumber()}];var l=this.dict.lookup(j.of("W"),ut);this.byteWidths=[-1,-1,-1];for(var i=0,s=l.size();i<s;i++)this.byteWidths[i]=l.lookup(i,Ce).asNumber()}return t.prototype.parseIntoContext=function(){if(this.alreadyParsed)throw new AA("PDFXRefStreamParser","parseIntoContext");this.alreadyParsed=!0,this.context.trailerInfo={Root:this.dict.get(j.of("Root")),Encrypt:this.dict.get(j.of("Encrypt")),Info:this.dict.get(j.of("Info")),ID:this.dict.get(j.of("ID"))};var e=this.parseEntries();return e},t.prototype.parseEntries=function(){for(var e=[],r=this.byteWidths,n=r[0],i=r[1],s=r[2],o=0,a=this.subsections.length;o<a;o++)for(var l=this.subsections[o],c=l.firstObjectNumber,u=l.length,d=0;d<u;d++){for(var h=0,p=0,m=n;p<m;p++)h=h<<8|this.bytes.next();for(var g=0,p=0,m=i;p<m;p++)g=g<<8|this.bytes.next();for(var y=0,p=0,m=s;p<m;p++)y=y<<8|this.bytes.next();n===0&&(h=1);var v=c+d,w={ref:wt.of(v,y),offset:g,deleted:h===0,inObjectStream:h===2};e.push(w)}return e},t.forStream=function(e){return new t(e)},t}(),Nte=function(t){se(e,t);function e(r,n,i,s){n===void 0&&(n=1/0),i===void 0&&(i=!1),s===void 0&&(s=!1);var o=t.call(this,Fb.of(r),V2.create(),s)||this;return o.alreadyParsed=!1,o.parsedObjects=0,o.shouldWaitForTick=function(){return o.parsedObjects+=1,o.parsedObjects%o.objectsPerTick===0},o.objectsPerTick=n,o.throwOnInvalidObject=i,o}return e.prototype.parseDocument=function(){return Me(this,void 0,void 0,function(){var r,n;return Be(this,function(i){switch(i.label){case 0:if(this.alreadyParsed)throw new AA("PDFParser","parseDocument");this.alreadyParsed=!0,this.context.header=this.parseHeader(),i.label=1;case 1:return this.bytes.done()?[3,3]:[4,this.parseDocumentSection()];case 2:if(i.sent(),n=this.bytes.offset(),n===r)throw new Iee(this.bytes.position());return r=n,[3,1];case 3:return this.maybeRecoverRoot(),this.context.lookup(wt.of(0))&&(console.warn("Removing parsed object: 0 0 R"),this.context.delete(wt.of(0))),[2,this.context]}})})},e.prototype.maybeRecoverRoot=function(){var r=function(u){return u instanceof Ie&&u.lookup(j.of("Type"))===j.of("Catalog")},n=this.context.lookup(this.context.trailerInfo.Root);if(!r(n))for(var i=this.context.enumerateIndirectObjects(),s=0,o=i.length;s<o;s++){var a=i[s],l=a[0],c=a[1];r(c)&&(this.context.trailerInfo.Root=l)}},e.prototype.parseHeader=function(){for(;!this.bytes.done();){if(this.matchKeyword(jt.header)){var r=this.parseRawInt();this.bytes.assertNext(O.Period);var n=this.parseRawInt(),i=kb.forVersion(r,n);return this.skipBinaryHeaderComment(),i}this.bytes.next()}throw new Mee(this.bytes.position())},e.prototype.parseIndirectObjectHeader=function(){this.skipWhitespaceAndComments();var r=this.parseRawInt();this.skipWhitespaceAndComments();var n=this.parseRawInt();if(this.skipWhitespaceAndComments(),!this.matchKeyword(jt.obj))throw new Bee(this.bytes.position(),jt.obj);return wt.of(r,n)},e.prototype.matchIndirectObjectHeader=function(){var r=this.bytes.offset();try{return this.parseIndirectObjectHeader(),!0}catch{return this.bytes.moveTo(r),!1}},e.prototype.parseIndirectObject=function(){return Me(this,void 0,void 0,function(){var r,n;return Be(this,function(i){switch(i.label){case 0:return r=this.parseIndirectObjectHeader(),this.skipWhitespaceAndComments(),n=this.parseObject(),this.skipWhitespaceAndComments(),this.matchKeyword(jt.endobj),n instanceof em&&n.dict.lookup(j.of("Type"))===j.of("ObjStm")?[4,Ate.forStream(n,this.shouldWaitForTick).parseIntoContext()]:[3,2];case 1:return i.sent(),[3,3];case 2:n instanceof em&&n.dict.lookup(j.of("Type"))===j.of("XRef")?Cte.forStream(n).parseIntoContext():this.context.assign(r,n),i.label=3;case 3:return[2,r]}})})},e.prototype.tryToParseInvalidIndirectObject=function(){var r=this.bytes.position(),n="Trying to parse invalid object: "+JSON.stringify(r)+")";if(this.throwOnInvalidObject)throw new Error(n);console.warn(n);var i=this.parseIndirectObjectHeader();console.warn("Invalid object ref: "+i),this.skipWhitespaceAndComments();for(var s=this.bytes.offset(),o=!0;!this.bytes.done()&&(this.matchKeyword(jt.endobj)&&(o=!1),!!o);)this.bytes.next();if(o)throw new Fee(r);var a=this.bytes.offset()-jt.endobj.length,l=y5.of(this.bytes.slice(s,a));return this.context.assign(i,l),i},e.prototype.parseIndirectObjects=function(){return Me(this,void 0,void 0,function(){var r;return Be(this,function(n){switch(n.label){case 0:this.skipWhitespaceAndComments(),n.label=1;case 1:if(!(!this.bytes.done()&&dn[this.bytes.peek()]))return[3,8];r=this.bytes.offset(),n.label=2;case 2:return n.trys.push([2,4,,5]),[4,this.parseIndirectObject()];case 3:return n.sent(),[3,5];case 4:return n.sent(),this.bytes.moveTo(r),this.tryToParseInvalidIndirectObject(),[3,5];case 5:return this.skipWhitespaceAndComments(),this.skipJibberish(),this.shouldWaitForTick()?[4,kh()]:[3,7];case 6:n.sent(),n.label=7;case 7:return[3,1];case 8:return[2]}})})},e.prototype.maybeParseCrossRefSection=function(){if(this.skipWhitespaceAndComments(),!!this.matchKeyword(jt.xref)){this.skipWhitespaceAndComments();for(var r=-1,n=g5.createEmpty();!this.bytes.done()&&dn[this.bytes.peek()];){var i=this.parseRawInt();this.skipWhitespaceAndComments();var s=this.parseRawInt();this.skipWhitespaceAndComments();var o=this.bytes.peek();if(o===O.n||o===O.f){var a=wt.of(r,s);this.bytes.next()===O.n?n.addEntry(a,i):n.addDeletedEntry(a,i),r+=1}else r=i;this.skipWhitespaceAndComments()}return n}},e.prototype.maybeParseTrailerDict=function(){if(this.skipWhitespaceAndComments(),!!this.matchKeyword(jt.trailer)){this.skipWhitespaceAndComments();var r=this.parseDict(),n=this.context;n.trailerInfo={Root:r.get(j.of("Root"))||n.trailerInfo.Root,Encrypt:r.get(j.of("Encrypt"))||n.trailerInfo.Encrypt,Info:r.get(j.of("Info"))||n.trailerInfo.Info,ID:r.get(j.of("ID"))||n.trailerInfo.ID}}},e.prototype.maybeParseTrailer=function(){if(this.skipWhitespaceAndComments(),!!this.matchKeyword(jt.startxref)){this.skipWhitespaceAndComments();var r=this.parseRawInt();return this.skipWhitespace(),this.matchKeyword(jt.eof),this.skipWhitespaceAndComments(),this.matchKeyword(jt.eof),this.skipWhitespaceAndComments(),TA.forLastCrossRefSectionOffset(r)}},e.prototype.parseDocumentSection=function(){return Me(this,void 0,void 0,function(){return Be(this,function(r){switch(r.label){case 0:return[4,this.parseIndirectObjects()];case 1:return r.sent(),this.maybeParseCrossRefSection(),this.maybeParseTrailerDict(),this.maybeParseTrailer(),this.skipJibberish(),[2]}})})},e.prototype.skipJibberish=function(){for(this.skipWhitespaceAndComments();!this.bytes.done();){var r=this.bytes.offset(),n=this.bytes.peek(),i=n>=O.Space&&n<=O.Tilde;if(i&&(this.matchKeyword(jt.xref)||this.matchKeyword(jt.trailer)||this.matchKeyword(jt.startxref)||this.matchIndirectObjectHeader())){this.bytes.moveTo(r);break}this.bytes.next()}},e.prototype.skipBinaryHeaderComment=function(){this.skipWhitespaceAndComments();try{var r=this.bytes.offset();this.parseIndirectObjectHeader(),this.bytes.moveTo(r)}catch{this.bytes.next(),this.skipWhitespaceAndComments()}},e.forBytesWithOptions=function(r,n,i,s){return new e(r,n,i,s)},e}(R5),Vs=function(t){return 1<<t},pg;(function(t){t[t.Invisible=Vs(0)]="Invisible",t[t.Hidden=Vs(1)]="Hidden",t[t.Print=Vs(2)]="Print",t[t.NoZoom=Vs(3)]="NoZoom",t[t.NoRotate=Vs(4)]="NoRotate",t[t.NoView=Vs(5)]="NoView",t[t.ReadOnly=Vs(6)]="ReadOnly",t[t.Locked=Vs(7)]="Locked",t[t.ToggleNoView=Vs(8)]="ToggleNoView",t[t.LockedContents=Vs(9)]="LockedContents"})(pg||(pg={}));var Ob=function(t){return t instanceof j?t:j.of(t)},Ne=function(t){return t instanceof Ce?t:Ce.of(t)},Le=function(t){return t instanceof Ce?t.asNumber():t},tm;(function(t){t.Degrees="degrees",t.Radians="radians"})(tm||(tm={}));var ke=function(t){return G(t,"degreeAngle",["number"]),{type:tm.Degrees,angle:t}},j5=tm.Radians,F5=tm.Degrees,O5=function(t){return t*Math.PI/180},Pte=function(t){return t*180/Math.PI},Zr=function(t){return t.type===j5?t.angle:t.type===F5?O5(t.angle):_m("Invalid rotation: "+JSON.stringify(t))},D5=function(t){return t.type===j5?Pte(t.angle):t.type===F5?t.angle:_m("Invalid rotation: "+JSON.stringify(t))},ga=function(t){t===void 0&&(t=0);var e=t/90%4;return e===0?0:e===1?90:e===2?180:e===3?270:0},zu=function(t,e){e===void 0&&(e=0);var r=ga(e);return r===90||r===270?{width:t.height,height:t.width}:{width:t.width,height:t.height}},Tte=function(t,e,r){e===void 0&&(e=0),r===void 0&&(r=0);var n=t.x,i=t.y,s=t.width,o=t.height,a=ga(r),l=e/2;return a===0?{x:n-l,y:i-l,width:s,height:o}:a===90?{x:n-o+l,y:i-l,width:o,height:s}:a===180?{x:n-s+l,y:i-o+l,width:s,height:o}:a===270?{x:n-l,y:i-s+l,width:o,height:s}:{x:n-l,y:i-l,width:s,height:o}},I5=function(){return $e.of(st.ClipNonZero)},Zy=Math.cos,$y=Math.sin,ew=Math.tan,Db=function(t,e,r,n,i,s){return $e.of(st.ConcatTransformationMatrix,[Ne(t),Ne(e),Ne(r),Ne(n),Ne(i),Ne(s)])},Hi=function(t,e){return Db(1,0,0,1,t,e)},rm=function(t,e){return Db(t,0,0,e,0,0)},Wh=function(t){return Db(Zy(Le(t)),$y(Le(t)),-$y(Le(t)),Zy(Le(t)),0,0)},tv=function(t){return Wh(O5(Le(t)))},MA=function(t,e){return Db(1,ew(Le(t)),ew(Le(e)),1,0,0)},Ib=function(t,e){return $e.of(st.SetLineDashPattern,["["+t.map(Ne).join(" ")+"]",Ne(e)])},Id;(function(t){t[t.Butt=0]="Butt",t[t.Round=1]="Round",t[t.Projecting=2]="Projecting"})(Id||(Id={}));var Mb=function(t){return $e.of(st.SetLineCapStyle,[Ne(t)])},YR;(function(t){t[t.Miter=0]="Miter",t[t.Round=1]="Round",t[t.Bevel=2]="Bevel"})(YR||(YR={}));var _u=function(t){return $e.of(st.SetGraphicsStateParams,[Ob(t)])},jr=function(){return $e.of(st.PushGraphicsState)},Fr=function(){return $e.of(st.PopGraphicsState)},qm=function(t){return $e.of(st.SetLineWidth,[Ne(t)])},hi=function(t,e,r,n,i,s){return $e.of(st.AppendBezierCurve,[Ne(t),Ne(e),Ne(r),Ne(n),Ne(i),Ne(s)])},rv=function(t,e,r,n){return $e.of(st.CurveToReplicateInitialPoint,[Ne(t),Ne(e),Ne(r),Ne(n)])},Ul=function(){return $e.of(st.ClosePath)},go=function(t,e){return $e.of(st.MoveTo,[Ne(t),Ne(e)])},Ur=function(t,e){return $e.of(st.LineTo,[Ne(t),Ne(e)])},Qm=function(){return $e.of(st.StrokePath)},BA=function(){return $e.of(st.FillNonZero)},LA=function(){return $e.of(st.FillNonZeroAndStroke)},M5=function(){return $e.of(st.EndPath)},Rte=function(){return $e.of(st.NextLine)},B5=function(t){return $e.of(st.ShowText,[t])},L5=function(){return $e.of(st.BeginText)},U5=function(){return $e.of(st.EndText)},UA=function(t,e){return $e.of(st.SetFontAndSize,[Ob(t),Ne(e)])},jte=function(t){return $e.of(st.SetTextLineHeight,[Ne(t)])},JR;(function(t){t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t[t.FillAndOutline=2]="FillAndOutline",t[t.Invisible=3]="Invisible",t[t.FillAndClip=4]="FillAndClip",t[t.OutlineAndClip=5]="OutlineAndClip",t[t.FillAndOutlineAndClip=6]="FillAndOutlineAndClip",t[t.Clip=7]="Clip"})(JR||(JR={}));var Fte=function(t,e,r,n,i,s){return $e.of(st.SetTextMatrix,[Ne(t),Ne(e),Ne(r),Ne(n),Ne(i),Ne(s)])},z5=function(t,e,r,n,i){return Fte(Zy(Le(t)),$y(Le(t))+ew(Le(e)),-$y(Le(t))+ew(Le(r)),Zy(Le(t)),n,i)},zA=function(t){return $e.of(st.DrawObject,[Ob(t)])},Ote=function(t){return $e.of(st.NonStrokingColorGray,[Ne(t)])},Dte=function(t){return $e.of(st.StrokingColorGray,[Ne(t)])},Ite=function(t,e,r){return $e.of(st.NonStrokingColorRgb,[Ne(t),Ne(e),Ne(r)])},Mte=function(t,e,r){return $e.of(st.StrokingColorRgb,[Ne(t),Ne(e),Ne(r)])},Bte=function(t,e,r,n){return $e.of(st.NonStrokingColorCmyk,[Ne(t),Ne(e),Ne(r),Ne(n)])},Lte=function(t,e,r,n){return $e.of(st.StrokingColorCmyk,[Ne(t),Ne(e),Ne(r),Ne(n)])},_5=function(t){return $e.of(st.BeginMarkedContent,[Ob(t)])},V5=function(){return $e.of(st.EndMarkedContent)},zl;(function(t){t.Grayscale="Grayscale",t.RGB="RGB",t.CMYK="CMYK"})(zl||(zl={}));var H5=function(t){return fi(t,"gray",0,1),{type:zl.Grayscale,gray:t}},bt=function(t,e,r){return fi(t,"red",0,1),fi(e,"green",0,1),fi(r,"blue",0,1),{type:zl.RGB,red:t,green:e,blue:r}},G5=function(t,e,r,n){return fi(t,"cyan",0,1),fi(e,"magenta",0,1),fi(r,"yellow",0,1),fi(n,"key",0,1),{type:zl.CMYK,cyan:t,magenta:e,yellow:r,key:n}},_A=zl.Grayscale,VA=zl.RGB,HA=zl.CMYK,Vu=function(t){return t.type===_A?Ote(t.gray):t.type===VA?Ite(t.red,t.green,t.blue):t.type===HA?Bte(t.cyan,t.magenta,t.yellow,t.key):_m("Invalid color: "+JSON.stringify(t))},Xm=function(t){return t.type===_A?Dte(t.gray):t.type===VA?Mte(t.red,t.green,t.blue):t.type===HA?Lte(t.cyan,t.magenta,t.yellow,t.key):_m("Invalid color: "+JSON.stringify(t))},Rn=function(t,e){return e===void 0&&(e=1),(t==null?void 0:t.length)===1?H5(t[0]*e):(t==null?void 0:t.length)===3?bt(t[0]*e,t[1]*e,t[2]*e):(t==null?void 0:t.length)===4?G5(t[0]*e,t[1]*e,t[2]*e,t[3]*e):void 0},ZR=function(t){return t.type===_A?[t.gray]:t.type===VA?[t.red,t.green,t.blue]:t.type===HA?[t.cyan,t.magenta,t.yellow,t.key]:_m("Invalid color: "+JSON.stringify(t))},me=0,ve=0,Je=0,Ze=0,zp=0,_p=0,$R=new Map([["A",7],["a",7],["C",6],["c",6],["H",1],["h",1],["L",2],["l",2],["M",2],["m",2],["Q",4],["q",4],["S",4],["s",4],["T",2],["t",2],["V",1],["v",1],["Z",0],["z",0]]),Ute=function(t){for(var e,r=[],n=[],i="",s=!1,o=0,a=0,l=t;a<l.length;a++){var c=l[a];if($R.has(c))o=$R.get(c),e&&(i.length>0&&(n[n.length]=+i),r[r.length]={cmd:e,args:n},n=[],i="",s=!1),e=c;else if([" ",","].includes(c)||c==="-"&&i.length>0&&i[i.length-1]!=="e"||c==="."&&s){if(i.length===0)continue;n.length===o?(r[r.length]={cmd:e,args:n},n=[+i],e==="M"&&(e="L"),e==="m"&&(e="l")):n[n.length]=+i,s=c===".",i=["-","."].includes(c)?c:""}else i+=c,c==="."&&(s=!0)}return i.length>0&&(n.length===o?(r[r.length]={cmd:e,args:n},n=[+i],e==="M"&&(e="L"),e==="m"&&(e="l")):n[n.length]=+i),r[r.length]={cmd:e,args:n},r},zte=function(t){me=ve=Je=Ze=zp=_p=0;for(var e=[],r=0;r<t.length;r++){var n=t[r];if(n.cmd&&typeof ej[n.cmd]=="function"){var i=ej[n.cmd](n.args);Array.isArray(i)?e=e.concat(i):e.push(i)}}return e},ej={M:function(t){return me=t[0],ve=t[1],Je=Ze=null,zp=me,_p=ve,go(me,ve)},m:function(t){return me+=t[0],ve+=t[1],Je=Ze=null,zp=me,_p=ve,go(me,ve)},C:function(t){return me=t[4],ve=t[5],Je=t[2],Ze=t[3],hi(t[0],t[1],t[2],t[3],t[4],t[5])},c:function(t){var e=hi(t[0]+me,t[1]+ve,t[2]+me,t[3]+ve,t[4]+me,t[5]+ve);return Je=me+t[2],Ze=ve+t[3],me+=t[4],ve+=t[5],e},S:function(t){(Je===null||Ze===null)&&(Je=me,Ze=ve);var e=hi(me-(Je-me),ve-(Ze-ve),t[0],t[1],t[2],t[3]);return Je=t[0],Ze=t[1],me=t[2],ve=t[3],e},s:function(t){(Je===null||Ze===null)&&(Je=me,Ze=ve);var e=hi(me-(Je-me),ve-(Ze-ve),me+t[0],ve+t[1],me+t[2],ve+t[3]);return Je=me+t[0],Ze=ve+t[1],me+=t[2],ve+=t[3],e},Q:function(t){return Je=t[0],Ze=t[1],me=t[2],ve=t[3],rv(t[0],t[1],me,ve)},q:function(t){var e=rv(t[0]+me,t[1]+ve,t[2]+me,t[3]+ve);return Je=me+t[0],Ze=ve+t[1],me+=t[2],ve+=t[3],e},T:function(t){Je===null||Ze===null?(Je=me,Ze=ve):(Je=me-(Je-me),Ze=ve-(Ze-ve));var e=rv(Je,Ze,t[0],t[1]);return Je=me-(Je-me),Ze=ve-(Ze-ve),me=t[0],ve=t[1],e},t:function(t){Je===null||Ze===null?(Je=me,Ze=ve):(Je=me-(Je-me),Ze=ve-(Ze-ve));var e=rv(Je,Ze,me+t[0],ve+t[1]);return me+=t[0],ve+=t[1],e},A:function(t){var e=tj(me,ve,t);return me=t[5],ve=t[6],e},a:function(t){t[5]+=me,t[6]+=ve;var e=tj(me,ve,t);return me=t[5],ve=t[6],e},L:function(t){return me=t[0],ve=t[1],Je=Ze=null,Ur(me,ve)},l:function(t){return me+=t[0],ve+=t[1],Je=Ze=null,Ur(me,ve)},H:function(t){return me=t[0],Je=Ze=null,Ur(me,ve)},h:function(t){return me+=t[0],Je=Ze=null,Ur(me,ve)},V:function(t){return ve=t[0],Je=Ze=null,Ur(me,ve)},v:function(t){return ve+=t[0],Je=Ze=null,Ur(me,ve)},Z:function(){var t=Ul();return me=zp,ve=_p,t},z:function(){var t=Ul();return me=zp,ve=_p,t}},tj=function(t,e,r){for(var n=r[0],i=r[1],s=r[2],o=r[3],a=r[4],l=r[5],c=r[6],u=_te(l,c,n,i,o,a,s,t,e),d=[],h=0,p=u;h<p.length;h++){var m=p[h],g=Vte.apply(void 0,m);d.push(hi.apply(void 0,g))}return d},_te=function(t,e,r,n,i,s,o,a,l){var c=o*(Math.PI/180),u=Math.sin(c),d=Math.cos(c);r=Math.abs(r),n=Math.abs(n),Je=d*(a-t)*.5+u*(l-e)*.5,Ze=d*(l-e)*.5-u*(a-t)*.5;var h=Je*Je/(r*r)+Ze*Ze/(n*n);h>1&&(h=Math.sqrt(h),r*=h,n*=h);var p=d/r,m=u/r,g=-u/n,y=d/n,v=p*a+m*l,w=g*a+y*l,b=p*t+m*e,E=g*t+y*e,A=(b-v)*(b-v)+(E-w)*(E-w),k=1/A-.25;k<0&&(k=0);var P=Math.sqrt(k);s===i&&(P=-P);var C=.5*(v+b)-P*(E-w),N=.5*(w+E)+P*(b-v),R=Math.atan2(w-N,v-C),F=Math.atan2(E-N,b-C),B=F-R;B<0&&s===1?B+=2*Math.PI:B>0&&s===0&&(B-=2*Math.PI);for(var D=Math.ceil(Math.abs(B/(Math.PI*.5+.001))),L=[],M=0;M<D;M++){var _=R+M*B/D,X=R+(M+1)*B/D;L[M]=[C,N,_,X,r,n,u,d]}return L},Vte=function(t,e,r,n,i,s,o,a){var l=a*i,c=-o*s,u=o*i,d=a*s,h=.5*(n-r),p=8/3*Math.sin(h*.5)*Math.sin(h*.5)/Math.sin(h),m=t+Math.cos(r)-p*Math.sin(r),g=e+Math.sin(r)+p*Math.cos(r),y=t+Math.cos(n),v=e+Math.sin(n),w=y+p*Math.sin(n),b=v-p*Math.cos(n),E=[l*m+c*g,u*m+d*g,l*w+c*b,u*w+d*b,l*y+c*v,u*y+d*v];return E},Hte=function(t){return zte(Ute(t))},Gte=function(t,e){for(var r=[jr(),e.graphicsState&&_u(e.graphicsState),L5(),Vu(e.color),UA(e.font,e.size),jte(e.lineHeight),z5(Zr(e.rotate),Zr(e.xSkew),Zr(e.ySkew),e.x,e.y)].filter(Boolean),n=0,i=t.length;n<i;n++)r.push(B5(t[n]),Rte());return r.push(U5(),Fr()),r},W5=function(t,e){return[jr(),e.graphicsState&&_u(e.graphicsState),Hi(e.x,e.y),Wh(Zr(e.rotate)),rm(e.width,e.height),MA(Zr(e.xSkew),Zr(e.ySkew)),zA(t),Fr()].filter(Boolean)},Wte=function(t,e){return[jr(),e.graphicsState&&_u(e.graphicsState),Hi(e.x,e.y),Wh(Zr(e.rotate)),rm(e.xScale,e.yScale),MA(Zr(e.xSkew),Zr(e.ySkew)),zA(t),Fr()].filter(Boolean)},Kte=function(t){var e,r;return[jr(),t.graphicsState&&_u(t.graphicsState),t.color&&Xm(t.color),qm(t.thickness),Ib((e=t.dashArray)!==null&&e!==void 0?e:[],(r=t.dashPhase)!==null&&r!==void 0?r:0),go(t.start.x,t.start.y),t.lineCap&&Mb(t.lineCap),go(t.start.x,t.start.y),Ur(t.end.x,t.end.y),Qm(),Fr()].filter(Boolean)},Ah=function(t){var e,r;return[jr(),t.graphicsState&&_u(t.graphicsState),t.color&&Vu(t.color),t.borderColor&&Xm(t.borderColor),qm(t.borderWidth),t.borderLineCap&&Mb(t.borderLineCap),Ib((e=t.borderDashArray)!==null&&e!==void 0?e:[],(r=t.borderDashPhase)!==null&&r!==void 0?r:0),Hi(t.x,t.y),Wh(Zr(t.rotate)),MA(Zr(t.xSkew),Zr(t.ySkew)),go(0,0),Ur(0,t.height),Ur(t.width,t.height),Ur(t.width,0),Ul(),t.color&&t.borderWidth?LA():t.color?BA():t.borderColor?Qm():Ul(),Fr()].filter(Boolean)},tw=4*((Math.sqrt(2)-1)/3),qte=function(t){var e=Le(t.x),r=Le(t.y),n=Le(t.xScale),i=Le(t.yScale);e-=n,r-=i;var s=n*tw,o=i*tw,a=e+n*2,l=r+i*2,c=e+n,u=r+i;return[jr(),go(e,u),hi(e,u-o,c-s,r,c,r),hi(c+s,r,a,u-o,a,u),hi(a,u+o,c+s,l,c,l),hi(c-s,l,e,u+o,e,u),Fr()]},Qte=function(t){var e=Le(t.x),r=Le(t.y),n=Le(t.xScale),i=Le(t.yScale),s=-n,o=-i,a=n*tw,l=i*tw,c=s+n*2,u=o+i*2,d=s+n,h=o+i;return[Hi(e,r),Wh(Zr(t.rotate)),go(s,h),hi(s,h-l,d-a,o,d,o),hi(d+a,o,c,h-l,c,h),hi(c,h+l,d+a,u,d,u),hi(d-a,u,s,h+l,s,h)]},K2=function(t){var e,r,n;return it([jr(),t.graphicsState&&_u(t.graphicsState),t.color&&Vu(t.color),t.borderColor&&Xm(t.borderColor),qm(t.borderWidth),t.borderLineCap&&Mb(t.borderLineCap),Ib((e=t.borderDashArray)!==null&&e!==void 0?e:[],(r=t.borderDashPhase)!==null&&r!==void 0?r:0)],t.rotate===void 0?qte({x:t.x,y:t.y,xScale:t.xScale,yScale:t.yScale}):Qte({x:t.x,y:t.y,xScale:t.xScale,yScale:t.yScale,rotate:(n=t.rotate)!==null&&n!==void 0?n:ke(0)}),[t.color&&t.borderWidth?LA():t.color?BA():t.borderColor?Qm():Ul(),Fr()]).filter(Boolean)},Xte=function(t,e){var r,n,i;return it([jr(),e.graphicsState&&_u(e.graphicsState),Hi(e.x,e.y),Wh(Zr((r=e.rotate)!==null&&r!==void 0?r:ke(0))),e.scale?rm(e.scale,-e.scale):rm(1,-1),e.color&&Vu(e.color),e.borderColor&&Xm(e.borderColor),e.borderWidth&&qm(e.borderWidth),e.borderLineCap&&Mb(e.borderLineCap),Ib((n=e.borderDashArray)!==null&&n!==void 0?n:[],(i=e.borderDashPhase)!==null&&i!==void 0?i:0)],Hte(t),[e.color&&e.borderWidth?LA():e.color?BA():e.borderColor?Qm():Ul(),Fr()]).filter(Boolean)},Yte=function(t){var e=Le(t.size),r=-1+.75,n=-1+.51,i=1-.525,s=1-.31,o=-1+.325,a=-((o-r)*(s-r))/(i-n)+n;return[jr(),t.color&&Xm(t.color),qm(t.thickness),Hi(t.x,t.y),go(o*e,a*e),Ur(r*e,n*e),Ur(s*e,i*e),Qm(),Fr()].filter(Boolean)},$l=function(t){return t.rotation===0?[Hi(0,0),tv(0)]:t.rotation===90?[Hi(t.width,0),tv(90)]:t.rotation===180?[Hi(t.width,t.height),tv(180)]:t.rotation===270?[Hi(0,t.height),tv(270)]:[]},nv=function(t){var e=Ah({x:t.x,y:t.y,width:t.width,height:t.height,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:ke(0),xSkew:ke(0),ySkew:ke(0)});if(!t.filled)return e;var r=Le(t.width),n=Le(t.height),i=Math.min(r,n)/2,s=Yte({x:r/2,y:n/2,size:i,thickness:t.thickness,color:t.markColor});return it([jr()],e,s,[Fr()])},iv=function(t){var e=Le(t.width),r=Le(t.height),n=Math.min(e,r)/2,i=K2({x:t.x,y:t.y,xScale:n,yScale:n,color:t.color,borderColor:t.borderColor,borderWidth:t.borderWidth});if(!t.filled)return i;var s=K2({x:t.x,y:t.y,xScale:n*.45,yScale:n*.45,color:t.dotColor,borderColor:void 0,borderWidth:0});return it([jr()],i,s,[Fr()])},rj=function(t){var e=Le(t.x),r=Le(t.y),n=Le(t.width),i=Le(t.height),s=Ah({x:e,y:r,width:n,height:i,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:ke(0),xSkew:ke(0),ySkew:ke(0)}),o=GA(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:ke(0),xSkew:ke(0),ySkew:ke(0)});return it([jr()],s,o,[Fr()])},GA=function(t,e){for(var r=[L5(),Vu(e.color),UA(e.font,e.size)],n=0,i=t.length;n<i;n++){var s=t[n],o=s.encoded,a=s.x,l=s.y;r.push(z5(Zr(e.rotate),Zr(e.xSkew),Zr(e.ySkew),a,l),B5(o))}return r.push(U5()),r},K5=function(t){var e=Le(t.x),r=Le(t.y),n=Le(t.width),i=Le(t.height),s=Le(t.borderWidth),o=Le(t.padding),a=e+s/2+o,l=r+s/2+o,c=n-(s/2+o)*2,u=i-(s/2+o)*2,d=[go(a,l),Ur(a,l+u),Ur(a+c,l+u),Ur(a+c,l),Ul(),I5(),M5()],h=Ah({x:e,y:r,width:n,height:i,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:ke(0),xSkew:ke(0),ySkew:ke(0)}),p=GA(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:ke(0),xSkew:ke(0),ySkew:ke(0)}),m=it([_5("Tx"),jr()],p,[Fr(),V5()]);return it([jr()],h,d,m,[Fr()])},Jte=function(t){for(var e=Le(t.x),r=Le(t.y),n=Le(t.width),i=Le(t.height),s=Le(t.lineHeight),o=Le(t.borderWidth),a=Le(t.padding),l=e+o/2+a,c=r+o/2+a,u=n-(o/2+a)*2,d=i-(o/2+a)*2,h=[go(l,c),Ur(l,c+d),Ur(l+u,c+d),Ur(l+u,c),Ul(),I5(),M5()],p=Ah({x:e,y:r,width:n,height:i,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:ke(0),xSkew:ke(0),ySkew:ke(0)}),m=[],g=0,y=t.selectedLines.length;g<y;g++){var v=t.textLines[t.selectedLines[g]];m.push.apply(m,Ah({x:v.x-a,y:v.y-(s-v.height)/2,width:n-o,height:v.height+(s-v.height)/2,borderWidth:0,color:t.selectedColor,borderColor:void 0,rotate:ke(0),xSkew:ke(0),ySkew:ke(0)}))}var w=GA(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:ke(0),xSkew:ke(0),ySkew:ke(0)}),b=it([_5("Tx"),jr()],w,[Fr(),V5()]);return it([jr()],p,m,h,b,[Fr()])},Zte=function(t){se(e,t);function e(){var r=this,n="Input document to `PDFDocument.load` is encrypted. You can use `PDFDocument.load(..., { ignoreEncryption: true })` if you wish to load the document anyways.";return r=t.call(this,n)||this,r}return e}(Error),$te=function(t){se(e,t);function e(){var r=this,n="Input to `PDFDocument.embedFont` was a custom font, but no `fontkit` instance was found. You must register a `fontkit` instance with `PDFDocument.registerFontkit(...)` before embedding custom fonts.";return r=t.call(this,n)||this,r}return e}(Error),ere=function(t){se(e,t);function e(){var r=this,n="A `page` passed to `PDFDocument.addPage` or `PDFDocument.insertPage` was from a different (foreign) PDF document. If you want to copy pages from one PDFDocument to another, you must use `PDFDocument.copyPages(...)` to copy the pages before adding or inserting them.";return r=t.call(this,n)||this,r}return e}(Error),tre=function(t){se(e,t);function e(){var r=this,n="PDFDocument has no pages so `PDFDocument.removePage` cannot be called";return r=t.call(this,n)||this,r}return e}(Error),rre=function(t){se(e,t);function e(r){var n=this,i='PDFDocument has no form field with the name "'+r+'"';return n=t.call(this,i)||this,n}return e}(Error),ac=function(t){se(e,t);function e(r,n,i){var s,o,a=this,l=n==null?void 0:n.name,c=(o=(s=i==null?void 0:i.constructor)===null||s===void 0?void 0:s.name)!==null&&o!==void 0?o:i,u='Expected field "'+r+'" to be of type '+l+", "+("but it is actually of type "+c);return a=t.call(this,u)||this,a}return e}(Error);(function(t){se(e,t);function e(r){var n=this,i='Failed to select check box due to missing onValue: "'+r+'"';return n=t.call(this,i)||this,n}return e})(Error);var q5=function(t){se(e,t);function e(r){var n=this,i='A field already exists with the specified name: "'+r+'"';return n=t.call(this,i)||this,n}return e}(Error),nre=function(t){se(e,t);function e(r){var n=this,i='Field name contains invalid component: "'+r+'"';return n=t.call(this,i)||this,n}return e}(Error);(function(t){se(e,t);function e(r){var n=this,i='A non-terminal field already exists with the specified name: "'+r+'"';return n=t.call(this,i)||this,n}return e})(Error);var ire=function(t){se(e,t);function e(r){var n=this,i="Reading rich text fields is not supported: Attempted to read rich text field: "+r;return n=t.call(this,i)||this,n}return e}(Error),sre=function(t){se(e,t);function e(r,n){var i=this,s="Failed to layout combed text as lineLength="+r+" is greater than cellCount="+n;return i=t.call(this,s)||this,i}return e}(Error),ore=function(t){se(e,t);function e(r,n,i){var s=this,o="Attempted to set text with length="+r+" for TextField with maxLength="+n+" and name="+i;return s=t.call(this,o)||this,s}return e}(Error),are=function(t){se(e,t);function e(r,n,i){var s=this,o="Attempted to set maxLength="+n+", which is less than "+r+", the length of this field's current value (name="+i+")";return s=t.call(this,o)||this,s}return e}(Error),Pr;(function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"})(Pr||(Pr={}));var Q5=4,X5=500,Y5=function(t,e,r,n){n===void 0&&(n=!1);for(var i=Q5;i<X5;){for(var s=0,o=0,a=t.length;o<a;o++){s+=1;for(var l=t[o],c=l.split(" "),u=r.width,d=0,h=c.length;d<h;d++){var p=d===h-1,m=p?c[d]:c[d]+" ",g=e.widthOfTextAtSize(m,i);u-=g,u<=0&&(s+=1,u=r.width-g)}}if(!n&&s>t.length)return i-1;var y=e.heightAtSize(i),v=y+y*.2,w=v*s;if(w>Math.abs(r.height))return i-1;i+=1}return i},lre=function(t,e,r,n){for(var i=r.width/n,s=r.height,o=Q5,a=BJ(t);o<X5;){for(var l=0,c=a.length;l<c;l++){var u=a[l],d=e.widthOfTextAtSize(u,o)>i*.75;if(d)return o-1}var h=e.heightAtSize(o,{descender:!1});if(h>s)return o-1;o+=1}return o},cre=function(t){for(var e=t.length;e>0;e--)if(/\s/.test(t[e]))return e},ure=function(t,e,r,n){for(var i,s=t.length;s>0;){var o=t.substring(0,s),a=r.encodeText(o),l=r.widthOfTextAtSize(o,n);if(l<e){var c=t.substring(s)||void 0;return{line:o,encoded:a,width:l,remainder:c}}s=(i=cre(o))!==null&&i!==void 0?i:0}return{line:t,encoded:r.encodeText(t),width:r.widthOfTextAtSize(t,n),remainder:void 0}},J5=function(t,e){var r=e.alignment,n=e.fontSize,i=e.font,s=e.bounds,o=fM(zm(t));(n===void 0||n===0)&&(n=Y5(o,i,s,!0));for(var a=i.heightAtSize(n),l=a+a*.2,c=[],u=s.x,d=s.y,h=s.x+s.width,p=s.y+s.height,m=s.y+s.height,g=0,y=o.length;g<y;g++)for(var v=o[g];v!==void 0;){var w=ure(v,s.width,i,n),b=w.line,E=w.encoded,A=w.width,k=w.remainder,P=r===Pr.Left?s.x:r===Pr.Center?s.x+s.width/2-A/2:r===Pr.Right?s.x+s.width-A:s.x;m-=l,P<u&&(u=P),m<d&&(d=m),P+A>h&&(h=P+A),m+a>p&&(p=m+a),c.push({text:b,encoded:E,width:A,height:a,x:P,y:m}),v=k==null?void 0:k.trim()}return{fontSize:n,lineHeight:l,lines:c,bounds:{x:u,y:d,width:h-u,height:p-d}}},dre=function(t,e){var r=e.fontSize,n=e.font,i=e.bounds,s=e.cellCount,o=hM(zm(t));if(o.length>s)throw new sre(o.length,s);(r===void 0||r===0)&&(r=lre(o,n,i,s));for(var a=i.width/s,l=n.heightAtSize(r,{descender:!1}),c=i.y+(i.height/2-l/2),u=[],d=i.x,h=i.y,p=i.x+i.width,m=i.y+i.height,g=0,y=0;g<s;){var v=pM(o,y),w=v[0],b=v[1],E=n.encodeText(w),A=n.widthOfTextAtSize(w,r),k=i.x+(a*g+a/2),P=k-A/2;P<d&&(d=P),c<h&&(h=c),P+A>p&&(p=P+A),c+l>m&&(m=c+l),u.push({text:o,encoded:E,width:A,height:l,x:P,y:c}),g+=1,y+=b}return{fontSize:r,cells:u,bounds:{x:d,y:h,width:p-d,height:m-h}}},rw=function(t,e){var r=e.alignment,n=e.fontSize,i=e.font,s=e.bounds,o=hM(zm(t));(n===void 0||n===0)&&(n=Y5([o],i,s));var a=i.encodeText(o),l=i.widthOfTextAtSize(o,n),c=i.heightAtSize(n,{descender:!1}),u=r===Pr.Left?s.x:r===Pr.Center?s.x+s.width/2-l/2:r===Pr.Right?s.x+s.width-l:s.x,d=s.y+(s.height/2-c/2);return{fontSize:n,line:{text:o,encoded:a,width:l,height:c,x:u,y:d},bounds:{x:u,y:d,width:l,height:c}}},Kh=function(t){return"normal"in t?t:{normal:t}},fre=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]+(\d*\.\d+|\d+)[\0\t\n\f\r\ ]+Tf/,_l=function(t){var e,r,n=(e=t.getDefaultAppearance())!==null&&e!==void 0?e:"",i=(r=mA(n,fre).match)!==null&&r!==void 0?r:[],s=Number(i[2]);return isFinite(s)?s:void 0},hre=/(\d*\.\d+|\d+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+(g|rg|k)/,es=function(t){var e,r=(e=t.getDefaultAppearance())!==null&&e!==void 0?e:"",n=mA(r,hre).match,i=n??[],s=i[1],o=i[2],a=i[3],l=i[4],c=i[5];if(c==="g"&&s)return H5(Number(s));if(c==="rg"&&s&&o&&a)return bt(Number(s),Number(o),Number(a));if(c==="k"&&s&&o&&a&&l)return G5(Number(s),Number(o),Number(a),Number(l))},ts=function(t,e,r,n){var i;n===void 0&&(n=0);var s=[Vu(e).toString(),UA((i=r==null?void 0:r.name)!==null&&i!==void 0?i:"dummy__noop",n).toString()].join(`
446`);t.setDefaultAppearance(s)},pre=function(t,e){var r,n,i,s=es(e),o=es(t.acroField),a=e.getRectangle(),l=e.getAppearanceCharacteristics(),c=e.getBorderStyle(),u=(r=c==null?void 0:c.getWidth())!==null&&r!==void 0?r:0,d=ga(l==null?void 0:l.getRotation()),h=zu(a,d),p=h.width,m=h.height,g=$l(Fe(Fe({},a),{rotation:d})),y=bt(0,0,0),v=(n=Rn(l==null?void 0:l.getBorderColor()))!==null&&n!==void 0?n:y,w=Rn(l==null?void 0:l.getBackgroundColor()),b=Rn(l==null?void 0:l.getBackgroundColor(),.8),E=(i=s??o)!==null&&i!==void 0?i:y;ts(s?e:t.acroField,E);var A={x:0+u/2,y:0+u/2,width:p-u,height:m-u,thickness:1.5,borderWidth:u,borderColor:v,markColor:E};return{normal:{on:it(g,nv(Fe(Fe({},A),{color:w,filled:!0}))),off:it(g,nv(Fe(Fe({},A),{color:w,filled:!1})))},down:{on:it(g,nv(Fe(Fe({},A),{color:b,filled:!0}))),off:it(g,nv(Fe(Fe({},A),{color:b,filled:!1})))}}},gre=function(t,e){var r,n,i,s=es(e),o=es(t.acroField),a=e.getRectangle(),l=e.getAppearanceCharacteristics(),c=e.getBorderStyle(),u=(r=c==null?void 0:c.getWidth())!==null&&r!==void 0?r:0,d=ga(l==null?void 0:l.getRotation()),h=zu(a,d),p=h.width,m=h.height,g=$l(Fe(Fe({},a),{rotation:d})),y=bt(0,0,0),v=(n=Rn(l==null?void 0:l.getBorderColor()))!==null&&n!==void 0?n:y,w=Rn(l==null?void 0:l.getBackgroundColor()),b=Rn(l==null?void 0:l.getBackgroundColor(),.8),E=(i=s??o)!==null&&i!==void 0?i:y;ts(s?e:t.acroField,E);var A={x:p/2,y:m/2,width:p-u,height:m-u,borderWidth:u,borderColor:v,dotColor:E};return{normal:{on:it(g,iv(Fe(Fe({},A),{color:w,filled:!0}))),off:it(g,iv(Fe(Fe({},A),{color:w,filled:!1})))},down:{on:it(g,iv(Fe(Fe({},A),{color:b,filled:!0}))),off:it(g,iv(Fe(Fe({},A),{color:b,filled:!1})))}}},mre=function(t,e,r){var n,i,s,o,a,l=es(e),c=es(t.acroField),u=_l(e),d=_l(t.acroField),h=e.getRectangle(),p=e.getAppearanceCharacteristics(),m=e.getBorderStyle(),g=p==null?void 0:p.getCaptions(),y=(n=g==null?void 0:g.normal)!==null&&n!==void 0?n:"",v=(s=(i=g==null?void 0:g.down)!==null&&i!==void 0?i:y)!==null&&s!==void 0?s:"",w=(o=m==null?void 0:m.getWidth())!==null&&o!==void 0?o:0,b=ga(p==null?void 0:p.getRotation()),E=zu(h,b),A=E.width,k=E.height,P=$l(Fe(Fe({},h),{rotation:b})),C=bt(0,0,0),N=Rn(p==null?void 0:p.getBorderColor()),R=Rn(p==null?void 0:p.getBackgroundColor()),F=Rn(p==null?void 0:p.getBackgroundColor(),.8),B={x:w,y:w,width:A-w*2,height:k-w*2},D=rw(y,{alignment:Pr.Center,fontSize:u??d,font:r,bounds:B}),L=rw(v,{alignment:Pr.Center,fontSize:u??d,font:r,bounds:B}),M=Math.min(D.fontSize,L.fontSize),_=(a=l??c)!==null&&a!==void 0?a:C;ts(l||u!==void 0?e:t.acroField,_,r,M);var X={x:0+w/2,y:0+w/2,width:A-w,height:k-w,borderWidth:w,borderColor:N,textColor:_,font:r.name,fontSize:M};return{normal:it(P,rj(Fe(Fe({},X),{color:R,textLines:[D.line]}))),down:it(P,rj(Fe(Fe({},X),{color:F,textLines:[L.line]})))}},vre=function(t,e,r){var n,i,s,o,a=es(e),l=es(t.acroField),c=_l(e),u=_l(t.acroField),d=e.getRectangle(),h=e.getAppearanceCharacteristics(),p=e.getBorderStyle(),m=(n=t.getText())!==null&&n!==void 0?n:"",g=(i=p==null?void 0:p.getWidth())!==null&&i!==void 0?i:0,y=ga(h==null?void 0:h.getRotation()),v=zu(d,y),w=v.width,b=v.height,E=$l(Fe(Fe({},d),{rotation:y})),A=bt(0,0,0),k=Rn(h==null?void 0:h.getBorderColor()),P=Rn(h==null?void 0:h.getBackgroundColor()),C,N,R=t.isCombed()?0:1,F={x:g+R,y:g+R,width:w-(g+R)*2,height:b-(g+R)*2};if(t.isMultiline()){var B=J5(m,{alignment:t.getAlignment(),fontSize:c??u,font:r,bounds:F});C=B.lines,N=B.fontSize}else if(t.isCombed()){var B=dre(m,{fontSize:c??u,font:r,bounds:F,cellCount:(s=t.getMaxLength())!==null&&s!==void 0?s:0});C=B.cells,N=B.fontSize}else{var B=rw(m,{alignment:t.getAlignment(),fontSize:c??u,font:r,bounds:F});C=[B.line],N=B.fontSize}var D=(o=a??l)!==null&&o!==void 0?o:A;ts(a||c!==void 0?e:t.acroField,D,r,N);var L={x:0+g/2,y:0+g/2,width:w-g,height:b-g,borderWidth:g??0,borderColor:k,textColor:D,font:r.name,fontSize:N,color:P,textLines:C,padding:R};return it(E,K5(L))},yre=function(t,e,r){var n,i,s,o=es(e),a=es(t.acroField),l=_l(e),c=_l(t.acroField),u=e.getRectangle(),d=e.getAppearanceCharacteristics(),h=e.getBorderStyle(),p=(n=t.getSelected()[0])!==null&&n!==void 0?n:"",m=(i=h==null?void 0:h.getWidth())!==null&&i!==void 0?i:0,g=ga(d==null?void 0:d.getRotation()),y=zu(u,g),v=y.width,w=y.height,b=$l(Fe(Fe({},u),{rotation:g})),E=bt(0,0,0),A=Rn(d==null?void 0:d.getBorderColor()),k=Rn(d==null?void 0:d.getBackgroundColor()),P=1,C={x:m+P,y:m+P,width:v-(m+P)*2,height:w-(m+P)*2},N=rw(p,{alignment:Pr.Left,fontSize:l??c,font:r,bounds:C}),R=N.line,F=N.fontSize,B=(s=o??a)!==null&&s!==void 0?s:E;ts(o||l!==void 0?e:t.acroField,B,r,F);var D={x:0+m/2,y:0+m/2,width:v-m,height:w-m,borderWidth:m??0,borderColor:A,textColor:B,font:r.name,fontSize:F,color:k,textLines:[R],padding:P};return it(b,K5(D))},wre=function(t,e,r){var n,i,s=es(e),o=es(t.acroField),a=_l(e),l=_l(t.acroField),c=e.getRectangle(),u=e.getAppearanceCharacteristics(),d=e.getBorderStyle(),h=(n=d==null?void 0:d.getWidth())!==null&&n!==void 0?n:0,p=ga(u==null?void 0:u.getRotation()),m=zu(c,p),g=m.width,y=m.height,v=$l(Fe(Fe({},c),{rotation:p})),w=bt(0,0,0),b=Rn(u==null?void 0:u.getBorderColor()),E=Rn(u==null?void 0:u.getBackgroundColor()),A=t.getOptions(),k=t.getSelected();t.isSorted()&&A.sort();for(var P="",C=0,N=A.length;C<N;C++)P+=A[C],C<N-1&&(P+=`
447`);for(var R=1,F={x:h+R,y:h+R,width:g-(h+R)*2,height:y-(h+R)*2},B=J5(P,{alignment:Pr.Left,fontSize:a??l,font:r,bounds:F}),D=B.lines,L=B.fontSize,M=B.lineHeight,_=[],C=0,N=D.length;C<N;C++){var X=D[C];k.includes(X.text)&&_.push(C)}var V=bt(153/255,193/255,218/255),K=(i=s??o)!==null&&i!==void 0?i:w;return ts(s||a!==void 0?e:t.acroField,K,r,L),it(v,Jte({x:0+h/2,y:0+h/2,width:g-h,height:y-h,borderWidth:h??0,borderColor:b,textColor:K,font:r.name,fontSize:L,color:E,textLines:D,lineHeight:M,selectedColor:V,selectedLines:_,padding:R}))},Z5=function(){function t(e,r,n){this.alreadyEmbedded=!1,G(e,"ref",[[wt,"PDFRef"]]),G(r,"doc",[[Vl,"PDFDocument"]]),G(n,"embedder",[[E5,"PDFPageEmbedder"]]),this.ref=e,this.doc=r,this.width=n.width,this.height=n.height,this.embedder=n}return t.prototype.scale=function(e){return G(e,"factor",["number"]),{width:this.width*e,height:this.height*e}},t.prototype.size=function(){return this.scale(1)},t.prototype.embed=function(){return Me(this,void 0,void 0,function(){return Be(this,function(e){switch(e.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:e.sent(),this.alreadyEmbedded=!0,e.label=2;case 2:return[2]}})})},t.of=function(e,r,n){return new t(e,r,n)},t}(),yi=function(){function t(e,r,n){this.modified=!0,G(e,"ref",[[wt,"PDFRef"]]),G(r,"doc",[[Vl,"PDFDocument"]]),G(n,"embedder",[[RA,"CustomFontEmbedder"],[Qy,"StandardFontEmbedder"]]),this.ref=e,this.doc=r,this.name=n.fontName,this.embedder=n}return t.prototype.encodeText=function(e){return G(e,"text",["string"]),this.modified=!0,this.embedder.encodeText(e)},t.prototype.widthOfTextAtSize=function(e,r){return G(e,"text",["string"]),G(r,"size",["number"]),this.embedder.widthOfTextAtSize(e,r)},t.prototype.heightAtSize=function(e,r){var n;return G(e,"size",["number"]),ie(r==null?void 0:r.descender,"options.descender",["boolean"]),this.embedder.heightOfFontAtSize(e,{descender:(n=r==null?void 0:r.descender)!==null&&n!==void 0?n:!0})},t.prototype.sizeAtHeight=function(e){return G(e,"height",["number"]),this.embedder.sizeOfFontAtHeight(e)},t.prototype.getCharacterSet=function(){return this.embedder instanceof Qy?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet},t.prototype.embed=function(){return Me(this,void 0,void 0,function(){return Be(this,function(e){switch(e.label){case 0:return this.modified?[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]:[3,2];case 1:e.sent(),this.modified=!1,e.label=2;case 2:return[2]}})})},t.of=function(e,r,n){return new t(e,r,n)},t}(),q2=function(){function t(e,r,n){G(e,"ref",[[wt,"PDFRef"]]),G(r,"doc",[[Vl,"PDFDocument"]]),G(n,"embedder",[[w5,"JpegEmbedder"],[b5,"PngEmbedder"]]),this.ref=e,this.doc=r,this.width=n.width,this.height=n.height,this.embedder=n}return t.prototype.scale=function(e){return G(e,"factor",["number"]),{width:this.width*e,height:this.height*e}},t.prototype.scaleToFit=function(e,r){G(e,"width",["number"]),G(r,"height",["number"]);var n=e/this.width,i=r/this.height,s=Math.min(n,i);return this.scale(s)},t.prototype.size=function(){return this.scale(1)},t.prototype.embed=function(){return Me(this,void 0,void 0,function(){var e,r,n;return Be(this,function(i){switch(i.label){case 0:return this.embedder?(this.embedTask||(e=this,r=e.doc,n=e.ref,this.embedTask=this.embedder.embedIntoContext(r.context,n)),[4,this.embedTask]):[2];case 1:return i.sent(),this.embedder=void 0,[2]}})})},t.of=function(e,r,n){return new t(e,r,n)},t}(),Fl;(function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"})(Fl||(Fl={}));var qh=function(t){ie(t==null?void 0:t.x,"options.x",["number"]),ie(t==null?void 0:t.y,"options.y",["number"]),ie(t==null?void 0:t.width,"options.width",["number"]),ie(t==null?void 0:t.height,"options.height",["number"]),ie(t==null?void 0:t.textColor,"options.textColor",[[Object,"Color"]]),ie(t==null?void 0:t.backgroundColor,"options.backgroundColor",[[Object,"Color"]]),ie(t==null?void 0:t.borderColor,"options.borderColor",[[Object,"Color"]]),ie(t==null?void 0:t.borderWidth,"options.borderWidth",["number"]),ie(t==null?void 0:t.rotate,"options.rotate",[[Object,"Rotation"]])},Hu=function(){function t(e,r,n){G(e,"acroField",[[Gh,"PDFAcroTerminal"]]),G(r,"ref",[[wt,"PDFRef"]]),G(n,"doc",[[Vl,"PDFDocument"]]),this.acroField=e,this.ref=r,this.doc=n}return t.prototype.getName=function(){var e;return(e=this.acroField.getFullyQualifiedName())!==null&&e!==void 0?e:""},t.prototype.isReadOnly=function(){return this.acroField.hasFlag(cs.ReadOnly)},t.prototype.enableReadOnly=function(){this.acroField.setFlagTo(cs.ReadOnly,!0)},t.prototype.disableReadOnly=function(){this.acroField.setFlagTo(cs.ReadOnly,!1)},t.prototype.isRequired=function(){return this.acroField.hasFlag(cs.Required)},t.prototype.enableRequired=function(){this.acroField.setFlagTo(cs.Required,!0)},t.prototype.disableRequired=function(){this.acroField.setFlagTo(cs.Required,!1)},t.prototype.isExported=function(){return!this.acroField.hasFlag(cs.NoExport)},t.prototype.enableExporting=function(){this.acroField.setFlagTo(cs.NoExport,!1)},t.prototype.disableExporting=function(){this.acroField.setFlagTo(cs.NoExport,!0)},t.prototype.needsAppearancesUpdate=function(){throw new Vi(this.constructor.name,"needsAppearancesUpdate")},t.prototype.defaultUpdateAppearances=function(e){throw new Vi(this.constructor.name,"defaultUpdateAppearances")},t.prototype.markAsDirty=function(){this.doc.getForm().markFieldAsDirty(this.ref)},t.prototype.markAsClean=function(){this.doc.getForm().markFieldAsClean(this.ref)},t.prototype.isDirty=function(){return this.doc.getForm().fieldIsDirty(this.ref)},t.prototype.createWidget=function(e){var r,n=e.textColor,i=e.backgroundColor,s=e.borderColor,o=e.borderWidth,a=D5(e.rotate),l=e.caption,c=e.x,u=e.y,d=e.width+o,h=e.height+o,p=!!e.hidden,m=e.page;f5(a,"degreesAngle",90);var g=G2.create(this.doc.context,this.ref),y=Tte({x:c,y:u,width:d,height:h},o,a);g.setRectangle(y),m&&g.setP(m);var v=g.getOrCreateAppearanceCharacteristics();i&&v.setBackgroundColor(ZR(i)),v.setRotation(a),l&&v.setCaptions({normal:l}),s&&v.setBorderColor(ZR(s));var w=g.getOrCreateBorderStyle();if(o!==void 0&&w.setWidth(o),g.setFlagTo(pg.Print,!0),g.setFlagTo(pg.Hidden,p),g.setFlagTo(pg.Invisible,!1),n){var b=(r=this.acroField.getDefaultAppearance())!==null&&r!==void 0?r:"",E=b+`
448`+Vu(n).toString();this.acroField.setDefaultAppearance(E)}return g},t.prototype.updateWidgetAppearanceWithFont=function(e,r,n){var i=n.normal,s=n.rollover,o=n.down;this.updateWidgetAppearances(e,{normal:this.createAppearanceStream(e,i,r),rollover:s&&this.createAppearanceStream(e,s,r),down:o&&this.createAppearanceStream(e,o,r)})},t.prototype.updateOnOffWidgetAppearance=function(e,r,n){var i=n.normal,s=n.rollover,o=n.down;this.updateWidgetAppearances(e,{normal:this.createAppearanceDict(e,i,r),rollover:s&&this.createAppearanceDict(e,s,r),down:o&&this.createAppearanceDict(e,o,r)})},t.prototype.updateWidgetAppearances=function(e,r){var n=r.normal,i=r.rollover,s=r.down;e.setNormalAppearance(n),i?e.setRolloverAppearance(i):e.removeRolloverAppearance(),s?e.setDownAppearance(s):e.removeDownAppearance()},t.prototype.createAppearanceStream=function(e,r,n){var i,s=this.acroField.dict.context,o=e.getRectangle(),a=o.width,l=o.height,c=n&&{Font:(i={},i[n.name]=n.ref,i)},u=s.formXObject(r,{Resources:c,BBox:s.obj([0,0,a,l]),Matrix:s.obj([1,0,0,1,0,0])}),d=s.register(u);return d},t.prototype.createImageAppearanceStream=function(e,r,n){var i,s,o=this.acroField.dict.context,a=e.getRectangle(),l=e.getAppearanceCharacteristics(),c=e.getBorderStyle(),u=(s=c==null?void 0:c.getWidth())!==null&&s!==void 0?s:0,d=ga(l==null?void 0:l.getRotation()),h=$l(Fe(Fe({},a),{rotation:d})),p=zu(a,d),m=r.scaleToFit(p.width-u*2,p.height-u*2),g={x:u,y:u,width:m.width,height:m.height,rotate:ke(0),xSkew:ke(0),ySkew:ke(0)};n===Fl.Center?(g.x+=(p.width-u*2)/2-m.width/2,g.y+=(p.height-u*2)/2-m.height/2):n===Fl.Right&&(g.x=p.width-u-m.width,g.y=p.height-u-m.height);var y=this.doc.context.addRandomSuffix("Image",10),v=it(h,W5(y,g)),w={XObject:(i={},i[y]=r.ref,i)},b=o.formXObject(v,{Resources:w,BBox:o.obj([0,0,a.width,a.height]),Matrix:o.obj([1,0,0,1,0,0])});return o.register(b)},t.prototype.createAppearanceDict=function(e,r,n){var i=this.acroField.dict.context,s=this.createAppearanceStream(e,r.on),o=this.createAppearanceStream(e,r.off),a=i.obj({});return a.set(n,s),a.set(j.of("Off"),o),a},t}(),Vp=function(t){se(e,t);function e(r,n,i){var s=t.call(this,r,n,i)||this;return G(r,"acroCheckBox",[[Ab,"PDFAcroCheckBox"]]),s.acroField=r,s}return e.prototype.check=function(){var r,n=(r=this.acroField.getOnValue())!==null&&r!==void 0?r:j.of("Yes");this.markAsDirty(),this.acroField.setValue(n)},e.prototype.uncheck=function(){this.markAsDirty(),this.acroField.setValue(j.of("Off"))},e.prototype.isChecked=function(){var r=this.acroField.getOnValue();return!!r&&r===this.acroField.getValue()},e.prototype.addToPage=function(r,n){var i,s,o,a,l,c;G(r,"page",[[zi,"PDFPage"]]),qh(n),n||(n={}),"textColor"in n||(n.textColor=bt(0,0,0)),"backgroundColor"in n||(n.backgroundColor=bt(1,1,1)),"borderColor"in n||(n.borderColor=bt(0,0,0)),"borderWidth"in n||(n.borderWidth=1);var u=this.createWidget({x:(i=n.x)!==null&&i!==void 0?i:0,y:(s=n.y)!==null&&s!==void 0?s:0,width:(o=n.width)!==null&&o!==void 0?o:50,height:(a=n.height)!==null&&a!==void 0?a:50,textColor:n.textColor,backgroundColor:n.backgroundColor,borderColor:n.borderColor,borderWidth:(l=n.borderWidth)!==null&&l!==void 0?l:0,rotate:(c=n.rotate)!==null&&c!==void 0?c:ke(0),hidden:n.hidden,page:r.ref}),d=this.doc.context.register(u.dict);this.acroField.addWidget(d),u.setAppearanceState(j.of("Off")),this.updateWidgetAppearance(u,j.of("Yes")),r.node.addAnnot(d)},e.prototype.needsAppearancesUpdate=function(){for(var r,n=this.acroField.getWidgets(),i=0,s=n.length;i<s;i++){var o=n[i],a=o.getAppearanceState(),l=(r=o.getAppearances())===null||r===void 0?void 0:r.normal;if(!(l instanceof Ie)||a&&!l.has(a))return!0}return!1},e.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},e.prototype.updateAppearances=function(r){var n;ie(r,"provider",[Function]);for(var i=this.acroField.getWidgets(),s=0,o=i.length;s<o;s++){var a=i[s],l=(n=a.getOnValue())!==null&&n!==void 0?n:j.of("Yes");l&&this.updateWidgetAppearance(a,l,r)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(r,n,i){var s=i??pre,o=Kh(s(this,r));this.updateOnOffWidgetAppearance(r,n,o)},e.of=function(r,n,i){return new e(r,n,i)},e}(Hu),Gv=function(t){se(e,t);function e(r,n,i){var s=t.call(this,r,n,i)||this;return G(r,"acroComboBox",[[Cb,"PDFAcroComboBox"]]),s.acroField=r,s}return e.prototype.getOptions=function(){for(var r=this.acroField.getOptions(),n=new Array(r.length),i=0,s=n.length;i<s;i++){var o=r[i],a=o.display,l=o.value;n[i]=(a??l).decodeText()}return n},e.prototype.getSelected=function(){for(var r=this.acroField.getValues(),n=new Array(r.length),i=0,s=r.length;i<s;i++)n[i]=r[i].decodeText();return n},e.prototype.setOptions=function(r){G(r,"options",[Array]);for(var n=new Array(r.length),i=0,s=r.length;i<s;i++)n[i]={value:Ee.fromText(r[i])};this.acroField.setOptions(n)},e.prototype.addOptions=function(r){G(r,"options",["string",Array]);for(var n=Array.isArray(r)?r:[r],i=this.acroField.getOptions(),s=new Array(n.length),o=0,a=n.length;o<a;o++)s[o]={value:Ee.fromText(n[o])};this.acroField.setOptions(i.concat(s))},e.prototype.select=function(r,n){n===void 0&&(n=!1),G(r,"options",["string",Array]),G(n,"merge",["boolean"]);var i=Array.isArray(r)?r:[r],s=this.getOptions(),o=i.find(function(d){return!s.includes(d)});o&&this.enableEditing(),this.markAsDirty(),(i.length>1||i.length===1&&n)&&this.enableMultiselect();for(var a=new Array(i.length),l=0,c=i.length;l<c;l++)a[l]=Ee.fromText(i[l]);if(n){var u=this.acroField.getValues();this.acroField.setValues(u.concat(a))}else this.acroField.setValues(a)},e.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},e.prototype.setFontSize=function(r){Eb(r,"fontSize"),this.acroField.setFontSize(r),this.markAsDirty()},e.prototype.isEditable=function(){return this.acroField.hasFlag(vt.Edit)},e.prototype.enableEditing=function(){this.acroField.setFlagTo(vt.Edit,!0)},e.prototype.disableEditing=function(){this.acroField.setFlagTo(vt.Edit,!1)},e.prototype.isSorted=function(){return this.acroField.hasFlag(vt.Sort)},e.prototype.enableSorting=function(){this.acroField.setFlagTo(vt.Sort,!0)},e.prototype.disableSorting=function(){this.acroField.setFlagTo(vt.Sort,!1)},e.prototype.isMultiselect=function(){return this.acroField.hasFlag(vt.MultiSelect)},e.prototype.enableMultiselect=function(){this.acroField.setFlagTo(vt.MultiSelect,!0)},e.prototype.disableMultiselect=function(){this.acroField.setFlagTo(vt.MultiSelect,!1)},e.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(vt.DoNotSpellCheck)},e.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(vt.DoNotSpellCheck,!1)},e.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(vt.DoNotSpellCheck,!0)},e.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(vt.CommitOnSelChange)},e.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(vt.CommitOnSelChange,!0)},e.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(vt.CommitOnSelChange,!1)},e.prototype.addToPage=function(r,n){var i,s,o,a,l,c,u;G(r,"page",[[zi,"PDFPage"]]),qh(n),n||(n={}),"textColor"in n||(n.textColor=bt(0,0,0)),"backgroundColor"in n||(n.backgroundColor=bt(1,1,1)),"borderColor"in n||(n.borderColor=bt(0,0,0)),"borderWidth"in n||(n.borderWidth=1);var d=this.createWidget({x:(i=n.x)!==null&&i!==void 0?i:0,y:(s=n.y)!==null&&s!==void 0?s:0,width:(o=n.width)!==null&&o!==void 0?o:200,height:(a=n.height)!==null&&a!==void 0?a:50,textColor:n.textColor,backgroundColor:n.backgroundColor,borderColor:n.borderColor,borderWidth:(l=n.borderWidth)!==null&&l!==void 0?l:0,rotate:(c=n.rotate)!==null&&c!==void 0?c:ke(0),hidden:n.hidden,page:r.ref}),h=this.doc.context.register(d.dict);this.acroField.addWidget(h);var p=(u=n.font)!==null&&u!==void 0?u:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(d,p),r.node.addAnnot(h)},e.prototype.needsAppearancesUpdate=function(){var r;if(this.isDirty())return!0;for(var n=this.acroField.getWidgets(),i=0,s=n.length;i<s;i++){var o=n[i],a=((r=o.getAppearances())===null||r===void 0?void 0:r.normal)instanceof gi;if(!a)return!0}return!1},e.prototype.defaultUpdateAppearances=function(r){G(r,"font",[[yi,"PDFFont"]]),this.updateAppearances(r)},e.prototype.updateAppearances=function(r,n){G(r,"font",[[yi,"PDFFont"]]),ie(n,"provider",[Function]);for(var i=this.acroField.getWidgets(),s=0,o=i.length;s<o;s++){var a=i[s];this.updateWidgetAppearance(a,r,n)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(r,n,i){var s=i??yre,o=Kh(s(this,r,n));this.updateWidgetAppearanceWithFont(r,n,o)},e.of=function(r,n,i){return new e(r,n,i)},e}(Hu),Wv=function(t){se(e,t);function e(r,n,i){var s=t.call(this,r,n,i)||this;return G(r,"acroListBox",[[Rb,"PDFAcroListBox"]]),s.acroField=r,s}return e.prototype.getOptions=function(){for(var r=this.acroField.getOptions(),n=new Array(r.length),i=0,s=n.length;i<s;i++){var o=r[i],a=o.display,l=o.value;n[i]=(a??l).decodeText()}return n},e.prototype.getSelected=function(){for(var r=this.acroField.getValues(),n=new Array(r.length),i=0,s=r.length;i<s;i++)n[i]=r[i].decodeText();return n},e.prototype.setOptions=function(r){G(r,"options",[Array]),this.markAsDirty();for(var n=new Array(r.length),i=0,s=r.length;i<s;i++)n[i]={value:Ee.fromText(r[i])};this.acroField.setOptions(n)},e.prototype.addOptions=function(r){G(r,"options",["string",Array]),this.markAsDirty();for(var n=Array.isArray(r)?r:[r],i=this.acroField.getOptions(),s=new Array(n.length),o=0,a=n.length;o<a;o++)s[o]={value:Ee.fromText(n[o])};this.acroField.setOptions(i.concat(s))},e.prototype.select=function(r,n){n===void 0&&(n=!1),G(r,"options",["string",Array]),G(n,"merge",["boolean"]);var i=Array.isArray(r)?r:[r],s=this.getOptions();vee(i,"option",s),this.markAsDirty(),(i.length>1||i.length===1&&n)&&this.enableMultiselect();for(var o=new Array(i.length),a=0,l=i.length;a<l;a++)o[a]=Ee.fromText(i[a]);if(n){var c=this.acroField.getValues();this.acroField.setValues(c.concat(o))}else this.acroField.setValues(o)},e.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},e.prototype.setFontSize=function(r){Eb(r,"fontSize"),this.acroField.setFontSize(r),this.markAsDirty()},e.prototype.isSorted=function(){return this.acroField.hasFlag(vt.Sort)},e.prototype.enableSorting=function(){this.acroField.setFlagTo(vt.Sort,!0)},e.prototype.disableSorting=function(){this.acroField.setFlagTo(vt.Sort,!1)},e.prototype.isMultiselect=function(){return this.acroField.hasFlag(vt.MultiSelect)},e.prototype.enableMultiselect=function(){this.acroField.setFlagTo(vt.MultiSelect,!0)},e.prototype.disableMultiselect=function(){this.acroField.setFlagTo(vt.MultiSelect,!1)},e.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(vt.CommitOnSelChange)},e.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(vt.CommitOnSelChange,!0)},e.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(vt.CommitOnSelChange,!1)},e.prototype.addToPage=function(r,n){var i,s,o,a,l,c,u;G(r,"page",[[zi,"PDFPage"]]),qh(n),n||(n={}),"textColor"in n||(n.textColor=bt(0,0,0)),"backgroundColor"in n||(n.backgroundColor=bt(1,1,1)),"borderColor"in n||(n.borderColor=bt(0,0,0)),"borderWidth"in n||(n.borderWidth=1);var d=this.createWidget({x:(i=n.x)!==null&&i!==void 0?i:0,y:(s=n.y)!==null&&s!==void 0?s:0,width:(o=n.width)!==null&&o!==void 0?o:200,height:(a=n.height)!==null&&a!==void 0?a:100,textColor:n.textColor,backgroundColor:n.backgroundColor,borderColor:n.borderColor,borderWidth:(l=n.borderWidth)!==null&&l!==void 0?l:0,rotate:(c=n.rotate)!==null&&c!==void 0?c:ke(0),hidden:n.hidden,page:r.ref}),h=this.doc.context.register(d.dict);this.acroField.addWidget(h);var p=(u=n.font)!==null&&u!==void 0?u:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(d,p),r.node.addAnnot(h)},e.prototype.needsAppearancesUpdate=function(){var r;if(this.isDirty())return!0;for(var n=this.acroField.getWidgets(),i=0,s=n.length;i<s;i++){var o=n[i],a=((r=o.getAppearances())===null||r===void 0?void 0:r.normal)instanceof gi;if(!a)return!0}return!1},e.prototype.defaultUpdateAppearances=function(r){G(r,"font",[[yi,"PDFFont"]]),this.updateAppearances(r)},e.prototype.updateAppearances=function(r,n){G(r,"font",[[yi,"PDFFont"]]),ie(n,"provider",[Function]);for(var i=this.acroField.getWidgets(),s=0,o=i.length;s<o;s++){var a=i[s];this.updateWidgetAppearance(a,r,n)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(r,n,i){var s=i??wre,o=Kh(s(this,r,n));this.updateWidgetAppearanceWithFont(r,n,o)},e.of=function(r,n,i){return new e(r,n,i)},e}(Hu),Hp=function(t){se(e,t);function e(r,n,i){var s=t.call(this,r,n,i)||this;return G(r,"acroRadioButton",[[Tb,"PDFAcroRadioButton"]]),s.acroField=r,s}return e.prototype.getOptions=function(){var r=this.acroField.getExportValues();if(r){for(var n=new Array(r.length),i=0,s=r.length;i<s;i++)n[i]=r[i].decodeText();return n}for(var o=this.acroField.getOnValues(),a=new Array(o.length),i=0,s=a.length;i<s;i++)a[i]=o[i].decodeText();return a},e.prototype.getSelected=function(){var r=this.acroField.getValue();if(r!==j.of("Off")){var n=this.acroField.getExportValues();if(n){for(var i=this.acroField.getOnValues(),s=0,o=i.length;s<o;s++)if(i[s]===r)return n[s].decodeText()}return r.decodeText()}},e.prototype.select=function(r){G(r,"option",["string"]);var n=this.getOptions();wl(r,"option",n),this.markAsDirty();var i=this.acroField.getOnValues(),s=this.acroField.getExportValues();if(s)for(var o=0,a=s.length;o<a;o++)s[o].decodeText()===r&&this.acroField.setValue(i[o]);else for(var o=0,a=i.length;o<a;o++){var l=i[o];l.decodeText()===r&&this.acroField.setValue(l)}},e.prototype.clear=function(){this.markAsDirty(),this.acroField.setValue(j.of("Off"))},e.prototype.isOffToggleable=function(){return!this.acroField.hasFlag(Ui.NoToggleToOff)},e.prototype.enableOffToggling=function(){this.acroField.setFlagTo(Ui.NoToggleToOff,!1)},e.prototype.disableOffToggling=function(){this.acroField.setFlagTo(Ui.NoToggleToOff,!0)},e.prototype.isMutuallyExclusive=function(){return!this.acroField.hasFlag(Ui.RadiosInUnison)},e.prototype.enableMutualExclusion=function(){this.acroField.setFlagTo(Ui.RadiosInUnison,!1)},e.prototype.disableMutualExclusion=function(){this.acroField.setFlagTo(Ui.RadiosInUnison,!0)},e.prototype.addOptionToPage=function(r,n,i){var s,o,a,l,c,u,d,h,p;G(r,"option",["string"]),G(n,"page",[[zi,"PDFPage"]]),qh(i);var m=this.createWidget({x:(s=i==null?void 0:i.x)!==null&&s!==void 0?s:0,y:(o=i==null?void 0:i.y)!==null&&o!==void 0?o:0,width:(a=i==null?void 0:i.width)!==null&&a!==void 0?a:50,height:(l=i==null?void 0:i.height)!==null&&l!==void 0?l:50,textColor:(c=i==null?void 0:i.textColor)!==null&&c!==void 0?c:bt(0,0,0),backgroundColor:(u=i==null?void 0:i.backgroundColor)!==null&&u!==void 0?u:bt(1,1,1),borderColor:(d=i==null?void 0:i.borderColor)!==null&&d!==void 0?d:bt(0,0,0),borderWidth:(h=i==null?void 0:i.borderWidth)!==null&&h!==void 0?h:1,rotate:(p=i==null?void 0:i.rotate)!==null&&p!==void 0?p:ke(0),hidden:i==null?void 0:i.hidden,page:n.ref}),g=this.doc.context.register(m.dict),y=this.acroField.addWidgetWithOpt(g,Ee.fromText(r),!this.isMutuallyExclusive());m.setAppearanceState(j.of("Off")),this.updateWidgetAppearance(m,y),n.node.addAnnot(g)},e.prototype.needsAppearancesUpdate=function(){for(var r,n=this.acroField.getWidgets(),i=0,s=n.length;i<s;i++){var o=n[i],a=o.getAppearanceState(),l=(r=o.getAppearances())===null||r===void 0?void 0:r.normal;if(!(l instanceof Ie)||a&&!l.has(a))return!0}return!1},e.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},e.prototype.updateAppearances=function(r){ie(r,"provider",[Function]);for(var n=this.acroField.getWidgets(),i=0,s=n.length;i<s;i++){var o=n[i],a=o.getOnValue();a&&this.updateWidgetAppearance(o,a,r)}},e.prototype.updateWidgetAppearance=function(r,n,i){var s=i??gre,o=Kh(s(this,r));this.updateOnOffWidgetAppearance(r,n,o)},e.of=function(r,n,i){return new e(r,n,i)},e}(Hu),Q2=function(t){se(e,t);function e(r,n,i){var s=t.call(this,r,n,i)||this;return G(r,"acroSignature",[[FA,"PDFAcroSignature"]]),s.acroField=r,s}return e.prototype.needsAppearancesUpdate=function(){return!1},e.of=function(r,n,i){return new e(r,n,i)},e}(Hu),Kv=function(t){se(e,t);function e(r,n,i){var s=t.call(this,r,n,i)||this;return G(r,"acroText",[[Nb,"PDFAcroText"]]),s.acroField=r,s}return e.prototype.getText=function(){var r=this.acroField.getValue();if(!r&&this.isRichFormatted())throw new ire(this.getName());return r==null?void 0:r.decodeText()},e.prototype.setText=function(r){ie(r,"text",["string"]);var n=this.getMaxLength();if(n!==void 0&&r&&r.length>n)throw new ore(r.length,n,this.getName());this.markAsDirty(),this.disableRichFormatting(),r?this.acroField.setValue(Ee.fromText(r)):this.acroField.removeValue()},e.prototype.getAlignment=function(){var r=this.acroField.getQuadding();return r===0?Pr.Left:r===1?Pr.Center:r===2?Pr.Right:Pr.Left},e.prototype.setAlignment=function(r){wl(r,"alignment",Pr),this.markAsDirty(),this.acroField.setQuadding(r)},e.prototype.getMaxLength=function(){return this.acroField.getMaxLength()},e.prototype.setMaxLength=function(r){if(as(r,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),r===void 0)this.acroField.removeMaxLength();else{var n=this.getText();if(n&&n.length>r)throw new are(n.length,r,this.getName());this.acroField.setMaxLength(r)}},e.prototype.removeMaxLength=function(){this.markAsDirty(),this.acroField.removeMaxLength()},e.prototype.setImage=function(r){for(var n=this.getAlignment(),i=n===Pr.Center?Fl.Center:n===Pr.Right?Fl.Right:Fl.Left,s=this.acroField.getWidgets(),o=0,a=s.length;o<a;o++){var l=s[o],c=this.createImageAppearanceStream(l,r,i);this.updateWidgetAppearances(l,{normal:c})}this.markAsClean()},e.prototype.setFontSize=function(r){Eb(r,"fontSize"),this.acroField.setFontSize(r),this.markAsDirty()},e.prototype.isMultiline=function(){return this.acroField.hasFlag(Qt.Multiline)},e.prototype.enableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(Qt.Multiline,!0)},e.prototype.disableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(Qt.Multiline,!1)},e.prototype.isPassword=function(){return this.acroField.hasFlag(Qt.Password)},e.prototype.enablePassword=function(){this.acroField.setFlagTo(Qt.Password,!0)},e.prototype.disablePassword=function(){this.acroField.setFlagTo(Qt.Password,!1)},e.prototype.isFileSelector=function(){return this.acroField.hasFlag(Qt.FileSelect)},e.prototype.enableFileSelection=function(){this.acroField.setFlagTo(Qt.FileSelect,!0)},e.prototype.disableFileSelection=function(){this.acroField.setFlagTo(Qt.FileSelect,!1)},e.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(Qt.DoNotSpellCheck)},e.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(Qt.DoNotSpellCheck,!1)},e.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(Qt.DoNotSpellCheck,!0)},e.prototype.isScrollable=function(){return!this.acroField.hasFlag(Qt.DoNotScroll)},e.prototype.enableScrolling=function(){this.acroField.setFlagTo(Qt.DoNotScroll,!1)},e.prototype.disableScrolling=function(){this.acroField.setFlagTo(Qt.DoNotScroll,!0)},e.prototype.isCombed=function(){return this.acroField.hasFlag(Qt.Comb)&&!this.isMultiline()&&!this.isPassword()&&!this.isFileSelector()&&this.getMaxLength()!==void 0},e.prototype.enableCombing=function(){if(this.getMaxLength()===void 0){var r="PDFTextFields must have a max length in order to be combed";console.warn(r)}this.markAsDirty(),this.disableMultiline(),this.disablePassword(),this.disableFileSelection(),this.acroField.setFlagTo(Qt.Comb,!0)},e.prototype.disableCombing=function(){this.markAsDirty(),this.acroField.setFlagTo(Qt.Comb,!1)},e.prototype.isRichFormatted=function(){return this.acroField.hasFlag(Qt.RichText)},e.prototype.enableRichFormatting=function(){this.acroField.setFlagTo(Qt.RichText,!0)},e.prototype.disableRichFormatting=function(){this.acroField.setFlagTo(Qt.RichText,!1)},e.prototype.addToPage=function(r,n){var i,s,o,a,l,c,u;G(r,"page",[[zi,"PDFPage"]]),qh(n),n||(n={}),"textColor"in n||(n.textColor=bt(0,0,0)),"backgroundColor"in n||(n.backgroundColor=bt(1,1,1)),"borderColor"in n||(n.borderColor=bt(0,0,0)),"borderWidth"in n||(n.borderWidth=1);var d=this.createWidget({x:(i=n.x)!==null&&i!==void 0?i:0,y:(s=n.y)!==null&&s!==void 0?s:0,width:(o=n.width)!==null&&o!==void 0?o:200,height:(a=n.height)!==null&&a!==void 0?a:50,textColor:n.textColor,backgroundColor:n.backgroundColor,borderColor:n.borderColor,borderWidth:(l=n.borderWidth)!==null&&l!==void 0?l:0,rotate:(c=n.rotate)!==null&&c!==void 0?c:ke(0),hidden:n.hidden,page:r.ref}),h=this.doc.context.register(d.dict);this.acroField.addWidget(h);var p=(u=n.font)!==null&&u!==void 0?u:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(d,p),r.node.addAnnot(h)},e.prototype.needsAppearancesUpdate=function(){var r;if(this.isDirty())return!0;for(var n=this.acroField.getWidgets(),i=0,s=n.length;i<s;i++){var o=n[i],a=((r=o.getAppearances())===null||r===void 0?void 0:r.normal)instanceof gi;if(!a)return!0}return!1},e.prototype.defaultUpdateAppearances=function(r){G(r,"font",[[yi,"PDFFont"]]),this.updateAppearances(r)},e.prototype.updateAppearances=function(r,n){G(r,"font",[[yi,"PDFFont"]]),ie(n,"provider",[Function]);for(var i=this.acroField.getWidgets(),s=0,o=i.length;s<o;s++){var a=i[s];this.updateWidgetAppearance(a,r,n)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(r,n,i){var s=i??vre,o=Kh(s(this,r,n));this.updateWidgetAppearanceWithFont(r,n,o)},e.of=function(r,n,i){return new e(r,n,i)},e}(Hu),nw;(function(t){t.Courier="Courier",t.CourierBold="Courier-Bold",t.CourierOblique="Courier-Oblique",t.CourierBoldOblique="Courier-BoldOblique",t.Helvetica="Helvetica",t.HelveticaBold="Helvetica-Bold",t.HelveticaOblique="Helvetica-Oblique",t.HelveticaBoldOblique="Helvetica-BoldOblique",t.TimesRoman="Times-Roman",t.TimesRomanBold="Times-Bold",t.TimesRomanItalic="Times-Italic",t.TimesRomanBoldItalic="Times-BoldItalic",t.Symbol="Symbol",t.ZapfDingbats="ZapfDingbats"})(nw||(nw={}));var bre=function(){function t(e,r){var n=this;this.embedDefaultFont=function(){return n.doc.embedStandardFont(nw.Helvetica)},G(e,"acroForm",[[Jy,"PDFAcroForm"]]),G(r,"doc",[[Vl,"PDFDocument"]]),this.acroForm=e,this.doc=r,this.dirtyFields=new Set,this.defaultFontCache=ta.populatedBy(this.embedDefaultFont)}return t.prototype.hasXFA=function(){return this.acroForm.dict.has(j.of("XFA"))},t.prototype.deleteXFA=function(){this.acroForm.dict.delete(j.of("XFA"))},t.prototype.getFields=function(){for(var e=this.acroForm.getAllFields(),r=[],n=0,i=e.length;n<i;n++){var s=e[n],o=s[0],a=s[1],l=xre(o,a,this.doc);l&&r.push(l)}return r},t.prototype.getFieldMaybe=function(e){G(e,"name",["string"]);for(var r=this.getFields(),n=0,i=r.length;n<i;n++){var s=r[n];if(s.getName()===e)return s}},t.prototype.getField=function(e){G(e,"name",["string"]);var r=this.getFieldMaybe(e);if(r)return r;throw new rre(e)},t.prototype.getButton=function(e){G(e,"name",["string"]);var r=this.getField(e);if(r instanceof qv)return r;throw new ac(e,qv,r)},t.prototype.getCheckBox=function(e){G(e,"name",["string"]);var r=this.getField(e);if(r instanceof Vp)return r;throw new ac(e,Vp,r)},t.prototype.getDropdown=function(e){G(e,"name",["string"]);var r=this.getField(e);if(r instanceof Gv)return r;throw new ac(e,Gv,r)},t.prototype.getOptionList=function(e){G(e,"name",["string"]);var r=this.getField(e);if(r instanceof Wv)return r;throw new ac(e,Wv,r)},t.prototype.getRadioGroup=function(e){G(e,"name",["string"]);var r=this.getField(e);if(r instanceof Hp)return r;throw new ac(e,Hp,r)},t.prototype.getSignature=function(e){G(e,"name",["string"]);var r=this.getField(e);if(r instanceof Q2)return r;throw new ac(e,Q2,r)},t.prototype.getTextField=function(e){G(e,"name",["string"]);var r=this.getField(e);if(r instanceof Kv)return r;throw new ac(e,Kv,r)},t.prototype.createButton=function(e){G(e,"name",["string"]);var r=ud(e),n=this.findOrCreateNonTerminals(r.nonTerminal),i=Pb.create(this.doc.context);return i.setPartialName(r.terminal),dd(n,[i,i.ref],r.terminal),qv.of(i,i.ref,this.doc)},t.prototype.createCheckBox=function(e){G(e,"name",["string"]);var r=ud(e),n=this.findOrCreateNonTerminals(r.nonTerminal),i=Ab.create(this.doc.context);return i.setPartialName(r.terminal),dd(n,[i,i.ref],r.terminal),Vp.of(i,i.ref,this.doc)},t.prototype.createDropdown=function(e){G(e,"name",["string"]);var r=ud(e),n=this.findOrCreateNonTerminals(r.nonTerminal),i=Cb.create(this.doc.context);return i.setPartialName(r.terminal),dd(n,[i,i.ref],r.terminal),Gv.of(i,i.ref,this.doc)},t.prototype.createOptionList=function(e){G(e,"name",["string"]);var r=ud(e),n=this.findOrCreateNonTerminals(r.nonTerminal),i=Rb.create(this.doc.context);return i.setPartialName(r.terminal),dd(n,[i,i.ref],r.terminal),Wv.of(i,i.ref,this.doc)},t.prototype.createRadioGroup=function(e){G(e,"name",["string"]);var r=ud(e),n=this.findOrCreateNonTerminals(r.nonTerminal),i=Tb.create(this.doc.context);return i.setPartialName(r.terminal),dd(n,[i,i.ref],r.terminal),Hp.of(i,i.ref,this.doc)},t.prototype.createTextField=function(e){G(e,"name",["string"]);var r=ud(e),n=this.findOrCreateNonTerminals(r.nonTerminal),i=Nb.create(this.doc.context);return i.setPartialName(r.terminal),dd(n,[i,i.ref],r.terminal),Kv.of(i,i.ref,this.doc)},t.prototype.flatten=function(e){e===void 0&&(e={updateFieldAppearances:!0}),e.updateFieldAppearances&&this.updateFieldAppearances();for(var r=this.getFields(),n=0,i=r.length;n<i;n++){for(var s=r[n],o=s.acroField.getWidgets(),a=0,l=o.length;a<l;a++){var c=o[a],u=this.findWidgetPage(c),d=this.findWidgetAppearanceRef(s,c),h=u.node.newXObject("FlatWidget",d),p=c.getRectangle(),m=it([jr(),Hi(p.x,p.y)],$l(Fe(Fe({},p),{rotation:0})),[zA(h),Fr()]).filter(Boolean);u.pushOperators.apply(u,m)}this.removeField(s)}},t.prototype.removeField=function(e){for(var r=e.acroField.getWidgets(),n=new Set,i=0,s=r.length;i<s;i++){var o=r[i],a=this.findWidgetAppearanceRef(e,o),l=this.findWidgetPage(o);n.add(l),l.node.removeAnnot(a)}n.forEach(function(p){return p.node.removeAnnot(e.ref)}),this.acroForm.removeField(e.acroField);for(var c=e.acroField.normalizedEntries().Kids,u=c.size(),d=0;d<u;d++){var h=c.get(d);h instanceof wt&&this.doc.context.delete(h)}this.doc.context.delete(e.ref)},t.prototype.updateFieldAppearances=function(e){ie(e,"font",[[yi,"PDFFont"]]),e=e??this.getDefaultFont();for(var r=this.getFields(),n=0,i=r.length;n<i;n++){var s=r[n];s.needsAppearancesUpdate()&&s.defaultUpdateAppearances(e)}},t.prototype.markFieldAsDirty=function(e){ie(e,"fieldRef",[[wt,"PDFRef"]]),this.dirtyFields.add(e)},t.prototype.markFieldAsClean=function(e){ie(e,"fieldRef",[[wt,"PDFRef"]]),this.dirtyFields.delete(e)},t.prototype.fieldIsDirty=function(e){return ie(e,"fieldRef",[[wt,"PDFRef"]]),this.dirtyFields.has(e)},t.prototype.getDefaultFont=function(){return this.defaultFontCache.access()},t.prototype.findWidgetPage=function(e){var r=e.P(),n=this.doc.getPages().find(function(s){return s.ref===r});if(n===void 0){var i=this.doc.context.getObjectRef(e.dict);if(i===void 0)throw new Error("Could not find PDFRef for PDFObject");if(n=this.doc.findPageForAnnotationRef(i),n===void 0)throw new Error("Could not find page for PDFRef "+i)}return n},t.prototype.findWidgetAppearanceRef=function(e,r){var n,i=r.getNormalAppearance();if(i instanceof Ie&&(e instanceof Vp||e instanceof Hp)){var s=e.acroField.getValue(),o=(n=i.get(s))!==null&&n!==void 0?n:i.get(j.of("Off"));o instanceof wt&&(i=o)}if(!(i instanceof wt)){var a=e.getName();throw new Error("Failed to extract appearance ref for: "+a)}return i},t.prototype.findOrCreateNonTerminals=function(e){for(var r=[this.acroForm],n=0,i=e.length;n<i;n++){var s=e[n];if(!s)throw new nre(s);var o=r[0],a=r[1],l=this.findNonTerminal(s,o);if(l)r=l;else{var c=Yy.create(this.doc.context);c.setPartialName(s),c.setParent(a);var u=this.doc.context.register(c.dict);o.addField(u),r=[c,u]}}return r},t.prototype.findNonTerminal=function(e,r){for(var n=r instanceof Jy?this.acroForm.getFields():OA(r.Kids()),i=0,s=n.length;i<s;i++){var o=n[i],a=o[0],l=o[1];if(a.getPartialName()===e){if(a instanceof Yy)return[a,l];throw new q5(e)}}},t.of=function(e,r){return new t(e,r)},t}(),xre=function(t,e,r){if(t instanceof Pb)return qv.of(t,e,r);if(t instanceof Ab)return Vp.of(t,e,r);if(t instanceof Cb)return Gv.of(t,e,r);if(t instanceof Rb)return Wv.of(t,e,r);if(t instanceof Nb)return Kv.of(t,e,r);if(t instanceof Tb)return Hp.of(t,e,r);if(t instanceof FA)return Q2.of(t,e,r)},ud=function(t){if(t.length===0)throw new Error("PDF field names must not be empty strings");for(var e=t.split("."),r=0,n=e.length;r<n;r++)if(e[r]==="")throw new Error('Periods in PDF field names must be separated by at least one character: "'+t+'"');return e.length===1?{nonTerminal:[],terminal:e[0]}:{nonTerminal:e.slice(0,e.length-1),terminal:e[e.length-1]}},dd=function(t,e,r){for(var n=t[0],i=t[1],s=e[0],o=e[1],a=n.normalizedEntries(),l=OA("Kids"in a?a.Kids:a.Fields),c=0,u=l.length;c<u;c++)if(l[c][0].getPartialName()===r)throw new q5(r);n.addField(o),s.setParent(i)},Sre={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],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],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],Executive:[521.86,756],Folio:[612,936],Legal:[612,1008],Letter:[612,792],Tabloid:[792,1224]},X2;(function(t){t[t.Fastest=1/0]="Fastest",t[t.Fast=1500]="Fast",t[t.Medium=500]="Medium",t[t.Slow=100]="Slow"})(X2||(X2={}));var Ere=function(){function t(e,r,n){this.alreadyEmbedded=!1,this.ref=e,this.doc=r,this.embedder=n}return t.prototype.embed=function(){return Me(this,void 0,void 0,function(){var e,r,n,i,s;return Be(this,function(o){switch(o.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:e=o.sent(),this.doc.catalog.has(j.of("Names"))||this.doc.catalog.set(j.of("Names"),this.doc.context.obj({})),r=this.doc.catalog.lookup(j.of("Names"),Ie),r.has(j.of("EmbeddedFiles"))||r.set(j.of("EmbeddedFiles"),this.doc.context.obj({})),n=r.lookup(j.of("EmbeddedFiles"),Ie),n.has(j.of("Names"))||n.set(j.of("Names"),this.doc.context.obj([])),i=n.lookup(j.of("Names"),ut),i.push(Ee.fromText(this.embedder.fileName)),i.push(e),this.doc.catalog.has(j.of("AF"))||this.doc.catalog.set(j.of("AF"),this.doc.context.obj([])),s=this.doc.catalog.lookup(j.of("AF"),ut),s.push(e),this.alreadyEmbedded=!0,o.label=2;case 2:return[2]}})})},t.of=function(e,r,n){return new t(e,r,n)},t}(),kre=function(){function t(e,r,n){this.alreadyEmbedded=!1,this.ref=e,this.doc=r,this.embedder=n}return t.prototype.embed=function(){return Me(this,void 0,void 0,function(){var e,r,n,i,s,o,a;return Be(this,function(l){switch(l.label){case 0:return this.alreadyEmbedded?[3,2]:(e=this.doc,r=e.catalog,n=e.context,[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]);case 1:i=l.sent(),r.has(j.of("Names"))||r.set(j.of("Names"),n.obj({})),s=r.lookup(j.of("Names"),Ie),s.has(j.of("JavaScript"))||s.set(j.of("JavaScript"),n.obj({})),o=s.lookup(j.of("JavaScript"),Ie),o.has(j.of("Names"))||o.set(j.of("Names"),n.obj([])),a=o.lookup(j.of("Names"),ut),a.push(Ee.fromText(this.embedder.scriptName)),a.push(i),this.alreadyEmbedded=!0,l.label=2;case 2:return[2]}})})},t.of=function(e,r,n){return new t(e,r,n)},t}(),Are=function(){function t(e,r){this.script=e,this.scriptName=r}return t.for=function(e,r){return new t(e,r)},t.prototype.embedIntoContext=function(e,r){return Me(this,void 0,void 0,function(){var n;return Be(this,function(i){return n=e.obj({Type:"Action",S:"JavaScript",JS:Ee.fromText(this.script)}),r?(e.assign(r,n),[2,r]):[2,e.register(n)]})})},t}(),Vl=function(){function t(e,r,n){var i=this;if(this.defaultWordBreaks=[" "],this.computePages=function(){var s=[];return i.catalog.Pages().traverse(function(o,a){if(o instanceof ra){var l=i.pageMap.get(o);l||(l=zi.of(o,a,i),i.pageMap.set(o,l)),s.push(l)}}),s},this.getOrCreateForm=function(){var s=i.catalog.getOrCreateAcroForm();return bre.of(s,i)},G(e,"context",[[V2,"PDFContext"]]),G(r,"ignoreEncryption",["boolean"]),this.context=e,this.catalog=e.lookup(e.trailerInfo.Root),this.isEncrypted=!!e.lookup(e.trailerInfo.Encrypt),this.pageCache=ta.populatedBy(this.computePages),this.pageMap=new Map,this.formCache=ta.populatedBy(this.getOrCreateForm),this.fonts=[],this.images=[],this.embeddedPages=[],this.embeddedFiles=[],this.javaScripts=[],!r&&this.isEncrypted)throw new Zte;n&&this.updateInfoDict()}return t.load=function(e,r){return r===void 0&&(r={}),Me(this,void 0,void 0,function(){var n,i,s,o,a,l,c,u,d,h,p,m;return Be(this,function(g){switch(g.label){case 0:return n=r.ignoreEncryption,i=n===void 0?!1:n,s=r.parseSpeed,o=s===void 0?X2.Slow:s,a=r.throwOnInvalidObject,l=a===void 0?!1:a,c=r.updateMetadata,u=c===void 0?!0:c,d=r.capNumbers,h=d===void 0?!1:d,G(e,"pdf",["string",Uint8Array,ArrayBuffer]),G(i,"ignoreEncryption",["boolean"]),G(o,"parseSpeed",["number"]),G(l,"throwOnInvalidObject",["boolean"]),p=mp(e),[4,Nte.forBytesWithOptions(p,o,l,h).parseDocument()];case 1:return m=g.sent(),[2,new t(m,i,u)]}})})},t.create=function(e){return e===void 0&&(e={}),Me(this,void 0,void 0,function(){var r,n,i,s,o,a;return Be(this,function(l){return r=e.updateMetadata,n=r===void 0?!0:r,i=V2.create(),s=T5.withContext(i),o=i.register(s),a=P5.withContextAndPages(i,o),i.trailerInfo.Root=i.register(a),[2,new t(i,!1,n)]})})},t.prototype.registerFontkit=function(e){this.fontkit=e},t.prototype.getForm=function(){var e=this.formCache.access();return e.hasXFA()&&(console.warn("Removing XFA form data as pdf-lib does not support reading or writing XFA"),e.deleteXFA()),e},t.prototype.getTitle=function(){var e=this.getInfoDict().lookup(j.Title);if(e)return Aa(e),e.decodeText()},t.prototype.getAuthor=function(){var e=this.getInfoDict().lookup(j.Author);if(e)return Aa(e),e.decodeText()},t.prototype.getSubject=function(){var e=this.getInfoDict().lookup(j.Subject);if(e)return Aa(e),e.decodeText()},t.prototype.getKeywords=function(){var e=this.getInfoDict().lookup(j.Keywords);if(e)return Aa(e),e.decodeText()},t.prototype.getCreator=function(){var e=this.getInfoDict().lookup(j.Creator);if(e)return Aa(e),e.decodeText()},t.prototype.getProducer=function(){var e=this.getInfoDict().lookup(j.Producer);if(e)return Aa(e),e.decodeText()},t.prototype.getCreationDate=function(){var e=this.getInfoDict().lookup(j.CreationDate);if(e)return Aa(e),e.decodeDate()},t.prototype.getModificationDate=function(){var e=this.getInfoDict().lookup(j.ModDate);if(e)return Aa(e),e.decodeDate()},t.prototype.setTitle=function(e,r){G(e,"title",["string"]);var n=j.of("Title");if(this.getInfoDict().set(n,Ee.fromText(e)),r!=null&&r.showInWindowTitleBar){var i=this.catalog.getOrCreateViewerPreferences();i.setDisplayDocTitle(!0)}},t.prototype.setAuthor=function(e){G(e,"author",["string"]);var r=j.of("Author");this.getInfoDict().set(r,Ee.fromText(e))},t.prototype.setSubject=function(e){G(e,"author",["string"]);var r=j.of("Subject");this.getInfoDict().set(r,Ee.fromText(e))},t.prototype.setKeywords=function(e){G(e,"keywords",[Array]);var r=j.of("Keywords");this.getInfoDict().set(r,Ee.fromText(e.join(" ")))},t.prototype.setCreator=function(e){G(e,"creator",["string"]);var r=j.of("Creator");this.getInfoDict().set(r,Ee.fromText(e))},t.prototype.setProducer=function(e){G(e,"creator",["string"]);var r=j.of("Producer");this.getInfoDict().set(r,Ee.fromText(e))},t.prototype.setLanguage=function(e){G(e,"language",["string"]);var r=j.of("Lang");this.catalog.set(r,yt.of(e))},t.prototype.setCreationDate=function(e){G(e,"creationDate",[[Date,"Date"]]);var r=j.of("CreationDate");this.getInfoDict().set(r,yt.fromDate(e))},t.prototype.setModificationDate=function(e){G(e,"modificationDate",[[Date,"Date"]]);var r=j.of("ModDate");this.getInfoDict().set(r,yt.fromDate(e))},t.prototype.getPageCount=function(){return this.pageCount===void 0&&(this.pageCount=this.getPages().length),this.pageCount},t.prototype.getPages=function(){return this.pageCache.access()},t.prototype.getPage=function(e){var r=this.getPages();return fi(e,"index",0,r.length-1),r[e]},t.prototype.getPageIndices=function(){return KJ(0,this.getPageCount())},t.prototype.removePage=function(e){var r=this.getPageCount();if(this.pageCount===0)throw new tre;fi(e,"index",0,r-1),this.catalog.removeLeafNode(e),this.pageCount=r-1},t.prototype.addPage=function(e){return G(e,"page",["undefined",[zi,"PDFPage"],Array]),this.insertPage(this.getPageCount(),e)},t.prototype.insertPage=function(e,r){var n=this.getPageCount();if(fi(e,"index",0,n),G(r,"page",["undefined",[zi,"PDFPage"],Array]),!r||Array.isArray(r)){var i=Array.isArray(r)?r:Sre.A4;r=zi.create(this),r.setSize.apply(r,i)}else if(r.doc!==this)throw new ere;var s=this.catalog.insertLeafNode(r.ref,e);return r.node.setParent(s),this.pageMap.set(r.node,r),this.pageCache.invalidate(),this.pageCount=n+1,r},t.prototype.copyPages=function(e,r){return Me(this,void 0,void 0,function(){var n,i,s,o,a,l,c,u;return Be(this,function(d){switch(d.label){case 0:return G(e,"srcDoc",[[t,"PDFDocument"]]),G(r,"indices",[Array]),[4,e.flush()];case 1:for(d.sent(),n=_R.for(e.context,this.context),i=e.getPages(),s=new Array(r.length),o=0,a=r.length;o<a;o++)l=i[r[o]],c=n.copy(l.node),u=this.context.register(c),s[o]=zi.of(c,u,this);return[2,s]}})})},t.prototype.copy=function(){return Me(this,void 0,void 0,function(){var e,r,n,i;return Be(this,function(s){switch(s.label){case 0:return[4,t.create()];case 1:return e=s.sent(),[4,e.copyPages(this,this.getPageIndices())];case 2:for(r=s.sent(),n=0,i=r.length;n<i;n++)e.addPage(r[n]);return this.getAuthor()!==void 0&&e.setAuthor(this.getAuthor()),this.getCreationDate()!==void 0&&e.setCreationDate(this.getCreationDate()),this.getCreator()!==void 0&&e.setCreator(this.getCreator()),this.getModificationDate()!==void 0&&e.setModificationDate(this.getModificationDate()),this.getProducer()!==void 0&&e.setProducer(this.getProducer()),this.getSubject()!==void 0&&e.setSubject(this.getSubject()),this.getTitle()!==void 0&&e.setTitle(this.getTitle()),e.defaultWordBreaks=this.defaultWordBreaks,[2,e]}})})},t.prototype.addJavaScript=function(e,r){G(e,"name",["string"]),G(r,"script",["string"]);var n=Are.for(r,e),i=this.context.nextRef(),s=kre.of(i,this,n);this.javaScripts.push(s)},t.prototype.attach=function(e,r,n){return n===void 0&&(n={}),Me(this,void 0,void 0,function(){var i,s,o,a;return Be(this,function(l){return G(e,"attachment",["string",Uint8Array,ArrayBuffer]),G(r,"name",["string"]),ie(n.mimeType,"mimeType",["string"]),ie(n.description,"description",["string"]),ie(n.creationDate,"options.creationDate",[Date]),ie(n.modificationDate,"options.modificationDate",[Date]),Ni(n.afRelationship,"options.afRelationship",H2),i=mp(e),s=$ee.for(i,r,n),o=this.context.nextRef(),a=Ere.of(o,this,s),this.embeddedFiles.push(a),[2]})})},t.prototype.embedFont=function(e,r){return r===void 0&&(r={}),Me(this,void 0,void 0,function(){var n,i,s,o,a,l,c,u,d,h;return Be(this,function(p){switch(p.label){case 0:return n=r.subset,i=n===void 0?!1:n,s=r.customName,o=r.features,G(e,"font",["string",Uint8Array,ArrayBuffer]),G(i,"subset",["boolean"]),FR(e)?(a=Qy.for(e,s),[3,7]):[3,1];case 1:return QJ(e)?(l=mp(e),c=this.assertFontkit(),i?[4,Zee.for(c,l,s,o)]:[3,3]):[3,6];case 2:return u=p.sent(),[3,5];case 3:return[4,RA.for(c,l,s,o)];case 4:u=p.sent(),p.label=5;case 5:return a=u,[3,7];case 6:throw new TypeError("`font` must be one of `StandardFonts | string | Uint8Array | ArrayBuffer`");case 7:return d=this.context.nextRef(),h=yi.of(d,this,a),this.fonts.push(h),[2,h]}})})},t.prototype.embedStandardFont=function(e,r){if(G(e,"font",["string"]),!FR(e))throw new TypeError("`font` must be one of type `StandardFonts`");var n=Qy.for(e,r),i=this.context.nextRef(),s=yi.of(i,this,n);return this.fonts.push(s),s},t.prototype.embedJpg=function(e){return Me(this,void 0,void 0,function(){var r,n,i,s;return Be(this,function(o){switch(o.label){case 0:return G(e,"jpg",["string",Uint8Array,ArrayBuffer]),r=mp(e),[4,w5.for(r)];case 1:return n=o.sent(),i=this.context.nextRef(),s=q2.of(i,this,n),this.images.push(s),[2,s]}})})},t.prototype.embedPng=function(e){return Me(this,void 0,void 0,function(){var r,n,i,s;return Be(this,function(o){switch(o.label){case 0:return G(e,"png",["string",Uint8Array,ArrayBuffer]),r=mp(e),[4,b5.for(r)];case 1:return n=o.sent(),i=this.context.nextRef(),s=q2.of(i,this,n),this.images.push(s),[2,s]}})})},t.prototype.embedPdf=function(e,r){return r===void 0&&(r=[0]),Me(this,void 0,void 0,function(){var n,i,s;return Be(this,function(o){switch(o.label){case 0:return G(e,"pdf",["string",Uint8Array,ArrayBuffer,[t,"PDFDocument"]]),G(r,"indices",[Array]),e instanceof t?(i=e,[3,3]):[3,1];case 1:return[4,t.load(e)];case 2:i=o.sent(),o.label=3;case 3:return n=i,s=qJ(n.getPages(),r),[2,this.embedPages(s)]}})})},t.prototype.embedPage=function(e,r,n){return Me(this,void 0,void 0,function(){var i;return Be(this,function(s){switch(s.label){case 0:return G(e,"page",[[zi,"PDFPage"]]),[4,this.embedPages([e],[r],[n])];case 1:return i=s.sent()[0],[2,i]}})})},t.prototype.embedPages=function(e,r,n){return r===void 0&&(r=[]),n===void 0&&(n=[]),Me(this,void 0,void 0,function(){var c,u,i,s,o,a,l,c,u,d,h,p,m,g,y;return Be(this,function(v){switch(v.label){case 0:if(e.length===0)return[2,[]];for(c=0,u=e.length-1;c<u;c++)if(i=e[c],s=e[c+1],i.node.context!==s.node.context)throw new Aee;o=e[0].node.context,a=o===this.context?function(w){return w}:_R.for(o,this.context).copy,l=new Array(e.length),c=0,u=e.length,v.label=1;case 1:return c<u?(d=a(e[c].node),h=r[c],p=n[c],[4,E5.for(d,h,p)]):[3,4];case 2:m=v.sent(),g=this.context.nextRef(),l[c]=Z5.of(g,this,m),v.label=3;case 3:return c++,[3,1];case 4:return(y=this.embeddedPages).push.apply(y,l),[2,l]}})})},t.prototype.flush=function(){return Me(this,void 0,void 0,function(){return Be(this,function(e){switch(e.label){case 0:return[4,this.embedAll(this.fonts)];case 1:return e.sent(),[4,this.embedAll(this.images)];case 2:return e.sent(),[4,this.embedAll(this.embeddedPages)];case 3:return e.sent(),[4,this.embedAll(this.embeddedFiles)];case 4:return e.sent(),[4,this.embedAll(this.javaScripts)];case 5:return e.sent(),[2]}})})},t.prototype.save=function(e){return e===void 0&&(e={}),Me(this,void 0,void 0,function(){var r,n,i,s,o,a,l,c,u,d;return Be(this,function(h){switch(h.label){case 0:return r=e.useObjectStreams,n=r===void 0?!0:r,i=e.addDefaultPage,s=i===void 0?!0:i,o=e.objectsPerTick,a=o===void 0?50:o,l=e.updateFieldAppearances,c=l===void 0?!0:l,G(n,"useObjectStreams",["boolean"]),G(s,"addDefaultPage",["boolean"]),G(a,"objectsPerTick",["number"]),G(c,"updateFieldAppearances",["boolean"]),s&&this.getPageCount()===0&&this.addPage(),c&&(u=this.formCache.getValue(),u&&u.updateFieldAppearances()),[4,this.flush()];case 1:return h.sent(),d=n?Kee:v5,[2,d.forContext(this.context,a).serializeToBuffer()]}})})},t.prototype.saveAsBase64=function(e){return e===void 0&&(e={}),Me(this,void 0,void 0,function(){var r,n,i,s,o;return Be(this,function(a){switch(a.label){case 0:return r=e.dataUri,n=r===void 0?!1:r,i=TJ(e,["dataUri"]),G(n,"dataUri",["boolean"]),[4,this.save(i)];case 1:return s=a.sent(),o=RJ(s),[2,n?"data:application/pdf;base64,"+o:o]}})})},t.prototype.findPageForAnnotationRef=function(e){for(var r=this.getPages(),n=0,i=r.length;n<i;n++){var s=r[n],o=s.node.Annots();if((o==null?void 0:o.indexOf(e))!==void 0)return s}},t.prototype.embedAll=function(e){return Me(this,void 0,void 0,function(){var r,n;return Be(this,function(i){switch(i.label){case 0:r=0,n=e.length,i.label=1;case 1:return r<n?[4,e[r].embed()]:[3,4];case 2:i.sent(),i.label=3;case 3:return r++,[3,1];case 4:return[2]}})})},t.prototype.updateInfoDict=function(){var e="pdf-lib (https://github.com/Hopding/pdf-lib)",r=new Date,n=this.getInfoDict();this.setProducer(e),this.setModificationDate(r),n.get(j.of("Creator"))||this.setCreator(e),n.get(j.of("CreationDate"))||this.setCreationDate(r)},t.prototype.getInfoDict=function(){var e=this.context.lookup(this.context.trailerInfo.Info);if(e instanceof Ie)return e;var r=this.context.obj({});return this.context.trailerInfo.Info=this.context.register(r),r},t.prototype.assertFontkit=function(){if(!this.fontkit)throw new $te;return this.fontkit},t}();function Aa(t){if(!(t instanceof Ee)&&!(t instanceof yt))throw new Ky([Ee,yt],t)}var To;(function(t){t.Normal="Normal",t.Multiply="Multiply",t.Screen="Screen",t.Overlay="Overlay",t.Darken="Darken",t.Lighten="Lighten",t.ColorDodge="ColorDodge",t.ColorBurn="ColorBurn",t.HardLight="HardLight",t.SoftLight="SoftLight",t.Difference="Difference",t.Exclusion="Exclusion"})(To||(To={}));var zi=function(){function t(e,r,n){this.fontSize=24,this.fontColor=bt(0,0,0),this.lineHeight=24,this.x=0,this.y=0,G(e,"leafNode",[[ra,"PDFPageLeaf"]]),G(r,"ref",[[wt,"PDFRef"]]),G(n,"doc",[[Vl,"PDFDocument"]]),this.node=e,this.ref=r,this.doc=n}return t.prototype.setRotation=function(e){var r=D5(e);f5(r,"degreesAngle",90),this.node.set(j.of("Rotate"),this.doc.context.obj(r))},t.prototype.getRotation=function(){var e=this.node.Rotate();return ke(e?e.asNumber():0)},t.prototype.setSize=function(e,r){G(e,"width",["number"]),G(r,"height",["number"]);var n=this.getMediaBox();this.setMediaBox(n.x,n.y,e,r);var i=this.getCropBox(),s=this.getBleedBox(),o=this.getTrimBox(),a=this.getArtBox(),l=this.node.CropBox(),c=this.node.BleedBox(),u=this.node.TrimBox(),d=this.node.ArtBox();l&&J0(i,n)&&this.setCropBox(n.x,n.y,e,r),c&&J0(s,n)&&this.setBleedBox(n.x,n.y,e,r),u&&J0(o,n)&&this.setTrimBox(n.x,n.y,e,r),d&&J0(a,n)&&this.setArtBox(n.x,n.y,e,r)},t.prototype.setWidth=function(e){G(e,"width",["number"]),this.setSize(e,this.getSize().height)},t.prototype.setHeight=function(e){G(e,"height",["number"]),this.setSize(this.getSize().width,e)},t.prototype.setMediaBox=function(e,r,n,i){G(e,"x",["number"]),G(r,"y",["number"]),G(n,"width",["number"]),G(i,"height",["number"]);var s=this.doc.context.obj([e,r,e+n,r+i]);this.node.set(j.MediaBox,s)},t.prototype.setCropBox=function(e,r,n,i){G(e,"x",["number"]),G(r,"y",["number"]),G(n,"width",["number"]),G(i,"height",["number"]);var s=this.doc.context.obj([e,r,e+n,r+i]);this.node.set(j.CropBox,s)},t.prototype.setBleedBox=function(e,r,n,i){G(e,"x",["number"]),G(r,"y",["number"]),G(n,"width",["number"]),G(i,"height",["number"]);var s=this.doc.context.obj([e,r,e+n,r+i]);this.node.set(j.BleedBox,s)},t.prototype.setTrimBox=function(e,r,n,i){G(e,"x",["number"]),G(r,"y",["number"]),G(n,"width",["number"]),G(i,"height",["number"]);var s=this.doc.context.obj([e,r,e+n,r+i]);this.node.set(j.TrimBox,s)},t.prototype.setArtBox=function(e,r,n,i){G(e,"x",["number"]),G(r,"y",["number"]),G(n,"width",["number"]),G(i,"height",["number"]);var s=this.doc.context.obj([e,r,e+n,r+i]);this.node.set(j.ArtBox,s)},t.prototype.getSize=function(){var e=this.getMediaBox(),r=e.width,n=e.height;return{width:r,height:n}},t.prototype.getWidth=function(){return this.getSize().width},t.prototype.getHeight=function(){return this.getSize().height},t.prototype.getMediaBox=function(){var e=this.node.MediaBox();return e.asRectangle()},t.prototype.getCropBox=function(){var e,r=this.node.CropBox();return(e=r==null?void 0:r.asRectangle())!==null&&e!==void 0?e:this.getMediaBox()},t.prototype.getBleedBox=function(){var e,r=this.node.BleedBox();return(e=r==null?void 0:r.asRectangle())!==null&&e!==void 0?e:this.getCropBox()},t.prototype.getTrimBox=function(){var e,r=this.node.TrimBox();return(e=r==null?void 0:r.asRectangle())!==null&&e!==void 0?e:this.getCropBox()},t.prototype.getArtBox=function(){var e,r=this.node.ArtBox();return(e=r==null?void 0:r.asRectangle())!==null&&e!==void 0?e:this.getCropBox()},t.prototype.translateContent=function(e,r){G(e,"x",["number"]),G(r,"y",["number"]),this.node.normalize(),this.getContentStream();var n=this.createContentStream(jr(),Hi(e,r)),i=this.doc.context.register(n),s=this.createContentStream(Fr()),o=this.doc.context.register(s);this.node.wrapContentStreams(i,o)},t.prototype.scale=function(e,r){G(e,"x",["number"]),G(r,"y",["number"]),this.setSize(this.getWidth()*e,this.getHeight()*r),this.scaleContent(e,r),this.scaleAnnotations(e,r)},t.prototype.scaleContent=function(e,r){G(e,"x",["number"]),G(r,"y",["number"]),this.node.normalize(),this.getContentStream();var n=this.createContentStream(jr(),rm(e,r)),i=this.doc.context.register(n),s=this.createContentStream(Fr()),o=this.doc.context.register(s);this.node.wrapContentStreams(i,o)},t.prototype.scaleAnnotations=function(e,r){G(e,"x",["number"]),G(r,"y",["number"]);var n=this.node.Annots();if(n)for(var i=0;i<n.size();i++){var s=n.lookup(i);s instanceof Ie&&this.scaleAnnot(s,e,r)}},t.prototype.resetPosition=function(){this.getContentStream(!1),this.x=0,this.y=0},t.prototype.setFont=function(e){G(e,"font",[[yi,"PDFFont"]]),this.font=e,this.fontKey=this.node.newFontDictionary(this.font.name,this.font.ref)},t.prototype.setFontSize=function(e){G(e,"fontSize",["number"]),this.fontSize=e},t.prototype.setFontColor=function(e){G(e,"fontColor",[[Object,"Color"]]),this.fontColor=e},t.prototype.setLineHeight=function(e){G(e,"lineHeight",["number"]),this.lineHeight=e},t.prototype.getPosition=function(){return{x:this.x,y:this.y}},t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t.prototype.moveTo=function(e,r){G(e,"x",["number"]),G(r,"y",["number"]),this.x=e,this.y=r},t.prototype.moveDown=function(e){G(e,"yDecrease",["number"]),this.y-=e},t.prototype.moveUp=function(e){G(e,"yIncrease",["number"]),this.y+=e},t.prototype.moveLeft=function(e){G(e,"xDecrease",["number"]),this.x-=e},t.prototype.moveRight=function(e){G(e,"xIncrease",["number"]),this.x+=e},t.prototype.pushOperators=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];d5(e,"operator",[[$e,"PDFOperator"]]);var n=this.getContentStream();n.push.apply(n,e)},t.prototype.drawText=function(e,r){var n,i,s,o,a,l,c;r===void 0&&(r={}),G(e,"text",["string"]),ie(r.color,"options.color",[[Object,"Color"]]),as(r.opacity,"opacity.opacity",0,1),ie(r.font,"options.font",[[yi,"PDFFont"]]),ie(r.size,"options.size",["number"]),ie(r.rotate,"options.rotate",[[Object,"Rotation"]]),ie(r.xSkew,"options.xSkew",[[Object,"Rotation"]]),ie(r.ySkew,"options.ySkew",[[Object,"Rotation"]]),ie(r.x,"options.x",["number"]),ie(r.y,"options.y",["number"]),ie(r.lineHeight,"options.lineHeight",["number"]),ie(r.maxWidth,"options.maxWidth",["number"]),ie(r.wordBreaks,"options.wordBreaks",[Array]),Ni(r.blendMode,"options.blendMode",To);for(var u=this.setOrEmbedFont(r.font),d=u.oldFont,h=u.newFont,p=u.newFontKey,m=r.size||this.fontSize,g=r.wordBreaks||this.doc.defaultWordBreaks,y=function(P){return h.widthOfTextAtSize(P,m)},v=r.maxWidth===void 0?fM(zm(e)):UJ(e,g,r.maxWidth,y),w=new Array(v.length),b=0,E=v.length;b<E;b++)w[b]=h.encodeText(v[b]);var A=this.maybeEmbedGraphicsState({opacity:r.opacity,blendMode:r.blendMode}),k=this.getContentStream();k.push.apply(k,Gte(w,{color:(n=r.color)!==null&&n!==void 0?n:this.fontColor,font:p,size:m,rotate:(i=r.rotate)!==null&&i!==void 0?i:ke(0),xSkew:(s=r.xSkew)!==null&&s!==void 0?s:ke(0),ySkew:(o=r.ySkew)!==null&&o!==void 0?o:ke(0),x:(a=r.x)!==null&&a!==void 0?a:this.x,y:(l=r.y)!==null&&l!==void 0?l:this.y,lineHeight:(c=r.lineHeight)!==null&&c!==void 0?c:this.lineHeight,graphicsState:A})),r.font&&(d?this.setFont(d):this.resetFont())},t.prototype.drawImage=function(e,r){var n,i,s,o,a,l,c;r===void 0&&(r={}),G(e,"image",[[q2,"PDFImage"]]),ie(r.x,"options.x",["number"]),ie(r.y,"options.y",["number"]),ie(r.width,"options.width",["number"]),ie(r.height,"options.height",["number"]),ie(r.rotate,"options.rotate",[[Object,"Rotation"]]),ie(r.xSkew,"options.xSkew",[[Object,"Rotation"]]),ie(r.ySkew,"options.ySkew",[[Object,"Rotation"]]),as(r.opacity,"opacity.opacity",0,1),Ni(r.blendMode,"options.blendMode",To);var u=this.node.newXObject("Image",e.ref),d=this.maybeEmbedGraphicsState({opacity:r.opacity,blendMode:r.blendMode}),h=this.getContentStream();h.push.apply(h,W5(u,{x:(n=r.x)!==null&&n!==void 0?n:this.x,y:(i=r.y)!==null&&i!==void 0?i:this.y,width:(s=r.width)!==null&&s!==void 0?s:e.size().width,height:(o=r.height)!==null&&o!==void 0?o:e.size().height,rotate:(a=r.rotate)!==null&&a!==void 0?a:ke(0),xSkew:(l=r.xSkew)!==null&&l!==void 0?l:ke(0),ySkew:(c=r.ySkew)!==null&&c!==void 0?c:ke(0),graphicsState:d}))},t.prototype.drawPage=function(e,r){var n,i,s,o,a;r===void 0&&(r={}),G(e,"embeddedPage",[[Z5,"PDFEmbeddedPage"]]),ie(r.x,"options.x",["number"]),ie(r.y,"options.y",["number"]),ie(r.xScale,"options.xScale",["number"]),ie(r.yScale,"options.yScale",["number"]),ie(r.width,"options.width",["number"]),ie(r.height,"options.height",["number"]),ie(r.rotate,"options.rotate",[[Object,"Rotation"]]),ie(r.xSkew,"options.xSkew",[[Object,"Rotation"]]),ie(r.ySkew,"options.ySkew",[[Object,"Rotation"]]),as(r.opacity,"opacity.opacity",0,1),Ni(r.blendMode,"options.blendMode",To);var l=this.node.newXObject("EmbeddedPdfPage",e.ref),c=this.maybeEmbedGraphicsState({opacity:r.opacity,blendMode:r.blendMode}),u=r.width!==void 0?r.width/e.width:r.xScale!==void 0?r.xScale:1,d=r.height!==void 0?r.height/e.height:r.yScale!==void 0?r.yScale:1,h=this.getContentStream();h.push.apply(h,Wte(l,{x:(n=r.x)!==null&&n!==void 0?n:this.x,y:(i=r.y)!==null&&i!==void 0?i:this.y,xScale:u,yScale:d,rotate:(s=r.rotate)!==null&&s!==void 0?s:ke(0),xSkew:(o=r.xSkew)!==null&&o!==void 0?o:ke(0),ySkew:(a=r.ySkew)!==null&&a!==void 0?a:ke(0),graphicsState:c}))},t.prototype.drawSvgPath=function(e,r){var n,i,s,o,a,l,c,u,d;r===void 0&&(r={}),G(e,"path",["string"]),ie(r.x,"options.x",["number"]),ie(r.y,"options.y",["number"]),ie(r.scale,"options.scale",["number"]),ie(r.rotate,"options.rotate",[[Object,"Rotation"]]),ie(r.borderWidth,"options.borderWidth",["number"]),ie(r.color,"options.color",[[Object,"Color"]]),as(r.opacity,"opacity.opacity",0,1),ie(r.borderColor,"options.borderColor",[[Object,"Color"]]),ie(r.borderDashArray,"options.borderDashArray",[Array]),ie(r.borderDashPhase,"options.borderDashPhase",["number"]),Ni(r.borderLineCap,"options.borderLineCap",Id),as(r.borderOpacity,"options.borderOpacity",0,1),Ni(r.blendMode,"options.blendMode",To);var h=this.maybeEmbedGraphicsState({opacity:r.opacity,borderOpacity:r.borderOpacity,blendMode:r.blendMode});!("color"in r)&&!("borderColor"in r)&&(r.borderColor=bt(0,0,0));var p=this.getContentStream();p.push.apply(p,Xte(e,{x:(n=r.x)!==null&&n!==void 0?n:this.x,y:(i=r.y)!==null&&i!==void 0?i:this.y,scale:r.scale,rotate:(s=r.rotate)!==null&&s!==void 0?s:ke(0),color:(o=r.color)!==null&&o!==void 0?o:void 0,borderColor:(a=r.borderColor)!==null&&a!==void 0?a:void 0,borderWidth:(l=r.borderWidth)!==null&&l!==void 0?l:0,borderDashArray:(c=r.borderDashArray)!==null&&c!==void 0?c:void 0,borderDashPhase:(u=r.borderDashPhase)!==null&&u!==void 0?u:void 0,borderLineCap:(d=r.borderLineCap)!==null&&d!==void 0?d:void 0,graphicsState:h}))},t.prototype.drawLine=function(e){var r,n,i,s,o;G(e.start,"options.start",[[Object,"{ x: number, y: number }"]]),G(e.end,"options.end",[[Object,"{ x: number, y: number }"]]),G(e.start.x,"options.start.x",["number"]),G(e.start.y,"options.start.y",["number"]),G(e.end.x,"options.end.x",["number"]),G(e.end.y,"options.end.y",["number"]),ie(e.thickness,"options.thickness",["number"]),ie(e.color,"options.color",[[Object,"Color"]]),ie(e.dashArray,"options.dashArray",[Array]),ie(e.dashPhase,"options.dashPhase",["number"]),Ni(e.lineCap,"options.lineCap",Id),as(e.opacity,"opacity.opacity",0,1),Ni(e.blendMode,"options.blendMode",To);var a=this.maybeEmbedGraphicsState({borderOpacity:e.opacity,blendMode:e.blendMode});"color"in e||(e.color=bt(0,0,0));var l=this.getContentStream();l.push.apply(l,Kte({start:e.start,end:e.end,thickness:(r=e.thickness)!==null&&r!==void 0?r:1,color:(n=e.color)!==null&&n!==void 0?n:void 0,dashArray:(i=e.dashArray)!==null&&i!==void 0?i:void 0,dashPhase:(s=e.dashPhase)!==null&&s!==void 0?s:void 0,lineCap:(o=e.lineCap)!==null&&o!==void 0?o:void 0,graphicsState:a}))},t.prototype.drawRectangle=function(e){var r,n,i,s,o,a,l,c,u,d,h,p,m;e===void 0&&(e={}),ie(e.x,"options.x",["number"]),ie(e.y,"options.y",["number"]),ie(e.width,"options.width",["number"]),ie(e.height,"options.height",["number"]),ie(e.rotate,"options.rotate",[[Object,"Rotation"]]),ie(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),ie(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),ie(e.borderWidth,"options.borderWidth",["number"]),ie(e.color,"options.color",[[Object,"Color"]]),as(e.opacity,"opacity.opacity",0,1),ie(e.borderColor,"options.borderColor",[[Object,"Color"]]),ie(e.borderDashArray,"options.borderDashArray",[Array]),ie(e.borderDashPhase,"options.borderDashPhase",["number"]),Ni(e.borderLineCap,"options.borderLineCap",Id),as(e.borderOpacity,"options.borderOpacity",0,1),Ni(e.blendMode,"options.blendMode",To);var g=this.maybeEmbedGraphicsState({opacity:e.opacity,borderOpacity:e.borderOpacity,blendMode:e.blendMode});!("color"in e)&&!("borderColor"in e)&&(e.color=bt(0,0,0));var y=this.getContentStream();y.push.apply(y,Ah({x:(r=e.x)!==null&&r!==void 0?r:this.x,y:(n=e.y)!==null&&n!==void 0?n:this.y,width:(i=e.width)!==null&&i!==void 0?i:150,height:(s=e.height)!==null&&s!==void 0?s:100,rotate:(o=e.rotate)!==null&&o!==void 0?o:ke(0),xSkew:(a=e.xSkew)!==null&&a!==void 0?a:ke(0),ySkew:(l=e.ySkew)!==null&&l!==void 0?l:ke(0),borderWidth:(c=e.borderWidth)!==null&&c!==void 0?c:0,color:(u=e.color)!==null&&u!==void 0?u:void 0,borderColor:(d=e.borderColor)!==null&&d!==void 0?d:void 0,borderDashArray:(h=e.borderDashArray)!==null&&h!==void 0?h:void 0,borderDashPhase:(p=e.borderDashPhase)!==null&&p!==void 0?p:void 0,graphicsState:g,borderLineCap:(m=e.borderLineCap)!==null&&m!==void 0?m:void 0}))},t.prototype.drawSquare=function(e){e===void 0&&(e={});var r=e.size;ie(r,"size",["number"]),this.drawRectangle(Fe(Fe({},e),{width:r,height:r}))},t.prototype.drawEllipse=function(e){var r,n,i,s,o,a,l,c,u,d,h;e===void 0&&(e={}),ie(e.x,"options.x",["number"]),ie(e.y,"options.y",["number"]),ie(e.xScale,"options.xScale",["
448number"]),ie(e.yScale,"options.yScale",["number"]),ie(e.rotate,"options.rotate",[[Object,"Rotation"]]),ie(e.color,"options.color",[[Object,"Color"]]),as(e.opacity,"opacity.opacity",0,1),ie(e.borderColor,"options.borderColor",[[Object,"Color"]]),as(e.borderOpacity,"options.borderOpacity",0,1),ie(e.borderWidth,"options.borderWidth",["number"]),ie(e.borderDashArray,"options.borderDashArray",[Array]),ie(e.borderDashPhase,"options.borderDashPhase",["number"]),Ni(e.borderLineCap,"options.borderLineCap",Id),Ni(e.blendMode,"options.blendMode",To);var p=this.maybeEmbedGraphicsState({opacity:e.opacity,borderOpacity:e.borderOpacity,blendMode:e.blendMode});!("color"in e)&&!("borderColor"in e)&&(e.color=bt(0,0,0));var m=this.getContentStream();m.push.apply(m,K2({x:(r=e.x)!==null&&r!==void 0?r:this.x,y:(n=e.y)!==null&&n!==void 0?n:this.y,xScale:(i=e.xScale)!==null&&i!==void 0?i:100,yScale:(s=e.yScale)!==null&&s!==void 0?s:100,rotate:(o=e.rotate)!==null&&o!==void 0?o:void 0,color:(a=e.color)!==null&&a!==void 0?a:void 0,borderColor:(l=e.borderColor)!==null&&l!==void 0?l:void 0,borderWidth:(c=e.borderWidth)!==null&&c!==void 0?c:0,borderDashArray:(u=e.borderDashArray)!==null&&u!==void 0?u:void 0,borderDashPhase:(d=e.borderDashPhase)!==null&&d!==void 0?d:void 0,borderLineCap:(h=e.borderLineCap)!==null&&h!==void 0?h:void 0,graphicsState:p}))},t.prototype.drawCircle=function(e){e===void 0&&(e={});var r=e.size,n=r===void 0?100:r;ie(n,"size",["number"]),this.drawEllipse(Fe(Fe({},e),{xScale:n,yScale:n}))},t.prototype.setOrEmbedFont=function(e){var r=this.font,n=this.fontKey;e?this.setFont(e):this.getFont();var i=this.font,s=this.fontKey;return{oldFont:r,oldFontKey:n,newFont:i,newFontKey:s}},t.prototype.getFont=function(){if(!this.font||!this.fontKey){var e=this.doc.embedStandardFont(nw.Helvetica);this.setFont(e)}return[this.font,this.fontKey]},t.prototype.resetFont=function(){this.font=void 0,this.fontKey=void 0},t.prototype.getContentStream=function(e){return e===void 0&&(e=!0),e&&this.contentStream?this.contentStream:(this.contentStream=this.createContentStream(),this.contentStreamRef=this.doc.context.register(this.contentStream),this.node.addContentStream(this.contentStreamRef),this.contentStream)},t.prototype.createContentStream=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=this.doc.context.obj({}),i=ug.of(n,e);return i},t.prototype.maybeEmbedGraphicsState=function(e){var r=e.opacity,n=e.borderOpacity,i=e.blendMode;if(!(r===void 0&&n===void 0&&i===void 0)){var s=this.doc.context.obj({Type:"ExtGState",ca:r,CA:n,BM:i}),o=this.node.newExtGState("GS",s);return o}},t.prototype.scaleAnnot=function(e,r,n){for(var i=["RD","CL","Vertices","QuadPoints","L","Rect"],s=0,o=i.length;s<o;s++){var a=e.lookup(j.of(i[s]));a instanceof ut&&a.scalePDFNumbers(r,n)}var l=e.lookup(j.of("InkList"));if(l instanceof ut)for(var s=0,o=l.size();s<o;s++){var c=l.lookup(s);c instanceof ut&&c.scalePDFNumbers(r,n)}},t.of=function(e,r,n){return new t(e,r,n)},t.create=function(e){G(e,"doc",[[Vl,"PDFDocument"]]);var r=wt.of(-1),n=ra.withContextAndParent(e.context,r),i=e.context.register(n);return new t(n,i,e)},t}(),qv=function(t){se(e,t);function e(r,n,i){var s=t.call(this,r,n,i)||this;return G(r,"acroButton",[[Pb,"PDFAcroPushButton"]]),s.acroField=r,s}return e.prototype.setImage=function(r,n){n===void 0&&(n=Fl.Center);for(var i=this.acroField.getWidgets(),s=0,o=i.length;s<o;s++){var a=i[s],l=this.createImageAppearanceStream(a,r,n);this.updateWidgetAppearances(a,{normal:l})}this.markAsClean()},e.prototype.setFontSize=function(r){Eb(r,"fontSize"),this.acroField.setFontSize(r),this.markAsDirty()},e.prototype.addToPage=function(r,n,i){var s,o,a,l,c,u,d,h,p,m,g;ie(r,"text",["string"]),ie(n,"page",[[zi,"PDFPage"]]),qh(i);var y=this.createWidget({x:((s=i==null?void 0:i.x)!==null&&s!==void 0?s:0)-((o=i==null?void 0:i.borderWidth)!==null&&o!==void 0?o:0)/2,y:((a=i==null?void 0:i.y)!==null&&a!==void 0?a:0)-((l=i==null?void 0:i.borderWidth)!==null&&l!==void 0?l:0)/2,width:(c=i==null?void 0:i.width)!==null&&c!==void 0?c:100,height:(u=i==null?void 0:i.height)!==null&&u!==void 0?u:50,textColor:(d=i==null?void 0:i.textColor)!==null&&d!==void 0?d:bt(0,0,0),backgroundColor:(h=i==null?void 0:i.backgroundColor)!==null&&h!==void 0?h:bt(.75,.75,.75),borderColor:i==null?void 0:i.borderColor,borderWidth:(p=i==null?void 0:i.borderWidth)!==null&&p!==void 0?p:0,rotate:(m=i==null?void 0:i.rotate)!==null&&m!==void 0?m:ke(0),caption:r,hidden:i==null?void 0:i.hidden,page:n.ref}),v=this.doc.context.register(y.dict);this.acroField.addWidget(v);var w=(g=i==null?void 0:i.font)!==null&&g!==void 0?g:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(y,w),n.node.addAnnot(v)},e.prototype.needsAppearancesUpdate=function(){var r;if(this.isDirty())return!0;for(var n=this.acroField.getWidgets(),i=0,s=n.length;i<s;i++){var o=n[i],a=((r=o.getAppearances())===null||r===void 0?void 0:r.normal)instanceof gi;if(!a)return!0}return!1},e.prototype.defaultUpdateAppearances=function(r){G(r,"font",[[yi,"PDFFont"]]),this.updateAppearances(r)},e.prototype.updateAppearances=function(r,n){G(r,"font",[[yi,"PDFFont"]]),ie(n,"provider",[Function]);for(var i=this.acroField.getWidgets(),s=0,o=i.length;s<o;s++){var a=i[s];this.updateWidgetAppearance(a,r,n)}},e.prototype.updateWidgetAppearance=function(r,n,i){var s=i??mre,o=Kh(s(this,r,n));this.updateWidgetAppearanceWithFont(r,n,o)},e.of=function(r,n,i){return new e(r,n,i)},e}(Hu);const Cre=async(t,e,r)=>{try{const n=await t.arrayBuffer(),i=await Vl.load(n),s=i.getPages(),o=s[s.length-1],{width:a,height:l}=o.getSize(),c=e.replace(/^data:image\/(png|jpg|jpeg);
448base64,/,""),u=await i.embedPng(c),d=a*.2,h=u.height/u.width,p=d*h,m=r.x/100*(a-d),g=l-r.y/100*l-p;o.drawImage(u,{x:m,y:g,width:d,height:p});const y=await i.save();return new File([y],`signed_${t.name}`,{type:"application/pdf"})}catch(n){throw console.error("Error applying signature to PDF:",n),new Error("Failed to apply signature to PDF")}},Nre="resend",Pre="re_4Mixdn6H_FndKsEaFz4TXgHT2CLXWydY4",Tre="smtp.resend.com",Rre=587,jre=()=>{const[t,e]=x.useState(null),[r,n]=x.useState(null),[i,s]=x.useState(null),[o,a]=x.useState(null),[l,c]=x.useState("standard"),[u,d]=x.useState(!1),[h,p]=x.useState(!1),[m,g]=x.useState(null),[y,v]=x.useState(!1),[w,b]=x.useState(!1),[E,A]=x.useState(!1),[k,P]=x.useState(null),[C,N]=x.useState(null),[R,F]=x.useState(null),[B,D]=x.useState("none"),[L,M]=x.useState("preparing"),[_,X]=x.useState(0),{toast:V}=Sr(),{user:K}=xi(),{isConnected:Z,signer:Y,account:ee,connectWallet:fe}=a8();x.useEffect(()=>{Z&&(P(null),B==="error"&&D("none"))},[Z]);const ye=We=>{e(We),n(null),s(null),a(null),p(!1),g(null),P(null),N(null),F(null),D("none"),M("preparing"),X(0)},lt=async(We,et)=>{if(!t){Ue.error("No document selected",{description:"Please upload a document before adding a signature"});return}s(We),a(et);try{Ue.promise(Cre(t,We,et),{loading:"Applying signature to document...",success:Ht=>(n(Ht),"Signature applied successfully"),error:"Failed to apply signature to document"})}catch(Ht){console.error("Error applying signature:",Ht),Ue.error("Failed to apply signature",{description:"There was a problem applying your signature to the document"})}},Ae=async We=>{const et=await We.arrayBuffer(),Ht=await crypto.subtle.digest("SHA-256",et);return`0x${Array.from(new Uint8Array(Ht)).map(qt=>qt.toString(16).padStart(2,"0")).join("")}`},At=async We=>{if(!Z||!Y)throw new Error("Wallet not connected");D("pending");try{console.log("Signing document hash with wallet:",We);const et=await Y.signMessage(`I am signing this document with hash: ${We}`);return D("success"),console.log("Document signed with wallet. Signature:",et),et}catch(et){throw console.error("Error signing with wallet:",et),D("error"),new Error(et.message||"Failed to sign document with wallet")}},Xe=async()=>{if(!t||!K){V({title:"No document selected",description:"Please upload a document to sign",variant:"destructive"});return}if(l==="premium"&&!Z){P("Premium signatures require a connected wallet. Please connect your wallet to continue.");return}d(!0),b(!0),P(null),N(null),M("preparing"),X(5);const We=r||t;try{M("hashing"),X(15);const et=await Ae(We);X(30);let Ht=null;if(l==="premium"&&Z&&Y)try{M("signing"),X(40),Ht=await At(et),F(Ht),X(60),Ue.success("Document signed with your wallet",{description:"Your cryptographic signature has been created"})}catch(Ar){console.error("Wallet signing error:",Ar),Ue.error("Wallet signature failed",{description:Ar.message||"Could not sign document with wallet"}),P(`Wallet signature failed: ${Ar.message||"Unknown error"}`),d(!1),b(!1),M("error");return}let Dr="";if(M("recording"),X(70),Z&&Y&&l==="premium")try{A(!0),Dr=await NJ(Y,et),Ue.success("Transaction submitted successfully",{description:"Your document is being recorded on the blockchain"})}catch(Ar){console.error("Blockchain transaction error:",Ar),Ue.error("Blockchain transaction failed",{description:Ar.message||"Could not complete the blockchain transaction"}),Dr=LT(),Ue.info("Using demo transaction instead",{description:"We've created a simulated transaction for demonstration"})}else Dr=LT(),!Z&&l==="premium"&&Ue.warning("Wallet not connected",{description:"Connect your wallet for real blockchain transactions"});console.log("Using transaction hash:",Dr),X(85);let Si=!1,qt;M("verifying"),A(!0);try{const Ar=await Vy(Dr);console.log("Blockchain verification result:",Ar),Ar.exists?(Si=!0,qt=Ar.details):Ar.error&&N(Ar.error)}catch(Ar){console.error("Blockchain verification error (non-fatal):",Ar),N(Ar.message||"Unknown blockchain verification error")}finally{A(!1)}X(95);const{error:fn}=await Nt.from("documents").insert({user_id:K.id,title:t.name,hash:et,blockchain_tx:Dr,crypto_signature:Ht,signature_type:l,wallet_address:ee||null,status:"completed",has_visual_signature:r!==null});if(fn)throw fn;M("completed"),X(100),g({title:t.name,signer:K.email||"Unknown user",timestamp:new Date().toLocaleStr
448ing(),transactionHash:Dr,hash:et,blockchainVerified:Si,blockchainDetails:qt}),p(!0),V(Si?{title:"Success!",description:`Document signed and verified on the blockchain. ${l==="premium"?"Premium features applied.":""}`}:{title:"Document signed",description:`Document signed successfully in our database. ${C?"Blockchain verification had issues.":""}`})}catch(et){console.error("Error signing document:",et),P(et.message||"An unexpected error occurred"),V({title:"Error signing document",description:et.message||"An unexpected error occurred",variant:"destructive"}),M("error")}finally{d(!1),b(!1)}},Er=async()=>{if(m){A(!0),N(null);try{const We=await Vy(m.transactionHash);We.exists?(g({...m,blockchainVerified:!0,blockchainDetails:We.details}),V({title:"Blockchain verification successful",description:"Document has been verified on the blockchain"})):(N(We.error||"Transaction not found on the blockchain"),V({title:"Blockchain verification failed",description:We.error||"Transaction not found on the blockchain",variant:"destructive"}))}catch(We){console.error("Error verifying on blockchain:",We),N(We.message||"Unexpected error during blockchain verification"),V({title:"Verification error",description:We.message||"Unexpected error during blockchain verification",variant:"destructive"})}finally{A(!1)}}},gr=async()=>{},er=async(We,et)=>{var Ht;if(!m){V({title:"Error",description:"No signed document available to share",variant:"destructive"});return}try{const Dr=window.location.origin,Si=m.hash.trim();console.log("Sending verification email with hash:",Si);const{data:qt,error:fn}=await Nt.functions.invoke("send-verification-email",{body:{recipientEmail:We,recipientName:et,documentTitle:m.title,documentHash:Si,origin:Dr,senderEmail:K==null?void 0:K.email,senderName:(Ht=K==null?void 0:K.user_metadata)==null?void 0:Ht.full_name,sendCopyToSender:!0,smtpUsername:Nre,smtpPassword:Pre,smtpHost:Tre,smtpPort:Rre}});if(fn)throw console.error("Email sending error:",fn),new Error(fn.message||"Failed to send verification email");if(console.log("Email sending response:",qt),!qt.success)throw new Error(qt.error||"Failed to send email due to an unknown error");V({title:"Email Sent",description:`Verification email sent to ${We}`})}catch(Dr){throw console.error("Error sending verification email:",Dr),V({title:"Failed to send email",description:Dr.message||"An unexpected error occurred",variant:"destructive"}),Dr}},kr=async()=>{try{await fe(),Ue.success("Wallet connected successfully",{description:"You can now use premium signing features"})}catch(We){console.error("Failed to connect wallet:",We),Ue.error("Failed to connect wallet",{description:We.message||"Please try again"})}},Or=l==="premium"&&!Z;return f.jsxs("div",{className:"flex flex-col min-h-screen",children:[f.jsx(Ml,{}),f.jsx(vk,{}),f.jsx("main",{className:"flex-grow py-12 px-4",children:f.jsxs("div",{className:"container max-w-6xl mx-auto",children:[f.jsxs("div",{className:"flex justify-between items-center mb-6",children:[f.jsx(BX,{testingMailgun:y,onTestResendConnection:gr,isWalletConnected:Z}),!Z&&f.jsxs(oe,{className:"bg-web3-purple hover:bg-web3-purple/80 text-white",onClick:kr,children:[f.jsx(Og,{className:"mr-2 h-4 w-4"}),"Connect Wallet"]})]}),f.jsx("div",{className:"mb-6",children:f.jsx(p8,{isConnected:Z,status:B})}),Or&&f.jsx(UX,{errorMessage:"Premium signatures require a connected wallet. Please connect your wallet using the button above.",title:"Wallet Connection Required"}),h?f.jsx(PJ,{file:r||t,blockchainError:C,verifyingBlockchain:E,signedDocument:m,cryptoSignature:R,onRetryBlockchainVerification:Er,onSendVerificationEmail:er}):f.jsxs(f.Fragment,{children:[u&&f.jsx(JX,{stage:L,progress:_,errorMessage:k||void 0}),f.jsx(CJ,{file:t,signedPdfFile:r,errorMessage:k,signatureType:l,setSignatureType:c,isLoading:u,mintingTx:w,verifyingBlockchain:E,isConnected:Z,walletSignatureStatus:B,onFileUpload:ye,onSignDocument:Xe,onApplySignature:lt})]})]})}),f.jsx(Bl,{})]})};var Fre="Separator",nj="horizontal",Ore=["horizontal","vertical"],$5=x.forwardRef((t,e)=>{const{decorative:r,orientation:n=nj,...i}=t,s=Dre(n)?n:nj,a=r?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return f.jsx(Ge.div,{"data-orientation":s,...a,...i,ref:e})});$5.displayName=Fre;function Dre(t){return Ore.includes(t)}var eB=$5;const tB=x.forwardRef(({className:t,orientation:e="horizontal",decorative:r=!0,...n},i)=>f.jsx(eB,{ref:i,decorative:r,orientation:e,className:Te("shrink-0 bg-border",e==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...n}));tB.displayName=eB.displayName;const Ire=({document:t,onCopyHash:e})=>f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"grid grid-cols-3 gap-1 text-sm",children:[f.jsx("span",{className:"text-muted-foreground",children:"Document:"}),f.jsx("span",{className:"col-span-2 font-medium",children:t.title})]}),f.jsxs("div",{className:"grid grid-cols-3 gap-1 text-sm",children:[f.jsx("span",{className:"text-muted-foreground",children:"Signed by:"}),f.jsx("span",{className:"col-span-2 font-medium",children:t.signer})]}),f.jsxs("div",{className:"grid grid-cols-3 gap-1 text-sm",children:[f.jsx("span",{className:"text-muted-foreground",children:"Timestamp:"}),f.jsx("span",{className:"col-span-2 font-medium",children:t.timestamp})]}),t.hash&&f.jsxs("div",{className:"grid grid-cols-3 gap-1 text-sm",children:[f.jsx("span",{className:"text-muted-foreground",children:"Document Hash:"}),f.jsxs("div",{className:"col-span-2 font-medium break-all flex items-center gap-2",children:[f.jsx("span",{children:t.hash}),f.jsx(oe,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 print-hidden",onClick:e,title:"Copy hash to clipboard",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"})})})]})]}),f.jsxs("div",{className:"grid grid-cols-3 gap-1 text-sm",children:[f.jsx("span",{className:"text-muted-foreground",children:"Transaction:"}),f.jsx("span",{className:"col-span-2 font-medium truncate",children:f.jsxs("a",{href:`https://etherscan.io/tx/${t.transactionHash}`,target:"_blank",rel:"noopener noreferrer",className:"text-web3-purple hover:underline flex items-center gap-1",children:[f.jsx("span",{className:"truncate",children:t.transactionHash}),f.jsx(E0,{className:"h-3 w-3 print-hidden"})]})})]}),f.jsxs("div",{className:"grid grid-cols-3 gap-1 text-sm",children:[f.jsx("span",{className:"text-muted-foreground",children:"Wallet Signature:"}),f.jsx("div",{className:"col-span-2 font-medium flex items-center gap-2",children:t.cryptoSignature?f.jsxs("span",{className:"text-green-600 flex items-center gap-1",children:[f.jsx(gu,{className:"h-4 w-4"}),"Cryptographically signed"]}):f.jsx("span",{className:"text-muted-foreground",children:"Not available"})})]}),f.jsxs("div",{className:"grid grid-cols-3 gap-1 text-sm",children:[f.jsx("span",{className:"text-muted-foreground",children:"Blockchain Status:"}),f.jsx("div",{className:"col-span-2 font-medium flex items-center gap-2",children:t.blockchainVerified?f.jsx(f.Fragment,{children:f.jsxs("span",{className:"text-green-600 flex items-center gap-1",children:[f.jsx(gu,{className:"h-4 w-4"}),"Verified on Ethereum"]})}):f.jsx(f.Fragment,{children:f.jsxs("span",{className:"text-amber-600 flex items-center gap-1",children:[f.jsx(ql,{className:"h-4 w-4"}),"Not found on blockchain"]})})})]}),t.blockchainVerified&&t.blockchainDetails&&f.jsxs(f.Fragment,{children:[t.blockchainDetails.blockNumber&&f.jsxs("div",{className:"grid grid-cols-3 gap-1 text-sm",children:[f.jsx("span",{className:"text-muted-foreground",children:"Block Number:"}),f.jsx("span",{className:"col-span-2 font-medium",children:f.jsxs("a",{href:`https://etherscan.io/block/${t.blockchainDetails.blockNumber}`,target:"_blank",rel:"noopener noreferrer",className:"text-web3-purple hover:underline flex items-center gap-1",children:[t.blockchainDetails.blockNumber,f.jsx(E0,{className:"h-3 w-3 print-hidden"})]})})]}),t.blockchainDetails.timestamp&&f.jsxs("div",{className:"grid grid-cols-3 gap-1 text-sm",children:[f.jsx("span",{className:"text-muted-foreground",children:"Block Timestamp:"}),f.jsx("span",{className:"col-span-2 font-medium",children:t.blockchainDetails.timestamp.toLocaleStr
448ing()})]}),t.blockchainDetails.from&&f.jsxs("div",{className:"grid grid-cols-3 gap-1 text-sm",children:[f.jsx("span",{className:"text-muted-foreground",children:"From Address:"}),f.jsx("span",{className:"col-span-2 font-medium truncate",children:f.jsxs("a",{href:`https://etherscan.io/address/${t.blockchainDetails.from}`,target:"_blank",rel:"noopener noreferrer",className:"text-web3-purple hover:underline flex items-center gap-1",children:[f.jsx("span",{className:"truncate",children:t.blockchainDetails.from}),f.jsx(E0,{className:"h-3 w-3 print-hidden"})]})})]}),t.blockchainDetails.to&&f.jsxs("div",{className:"grid grid-cols-3 gap-1 text-sm",children:[f.jsx("span",{className:"text-muted-foreground",children:"To Address:"}),f.jsx("span",{className:"col-span-2 font-medium truncate",children:f.jsxs("a",{href:`https://etherscan.io/address/${t.blockchainDetails.to}`,target:"_blank",rel:"noopener noreferrer",className:"text-web3-purple hover:underline flex items-center gap-1",children:[f.jsx("span",{className:"truncate",children:t.blockchainDetails.to}),f.jsx(E0,{className:"h-3 w-3 print-hidden"})]})})]})]})]}),Mre=({onSendEmail:t,children:e})=>{const[r,n]=x.useState(""),[i,s]=x.useState(""),[o,a]=x.useState(!1),[l,c]=x.useState(!1),[u,d]=x.useState(null);Sr();const h=async()=>{if(d(null),!r){d("Recipient email is required");return}a(!0);try{await t(r,i||void 0),Ue.success(`Verification email sent to ${r}`),c(!1)}catch(m){console.error("Error sending verification email:",m),d(m.message||"Failed to send email. Please check your connection and try again."),Ue.error("Failed to send email: "+(m.message||"An unexpected error occurred"))}finally{a(!1)}},p=m=>{c(m),m||(n(""),s(""),d(null))};return f.jsxs(pA,{open:l,onOpenChange:p,children:[f.jsx(gA,{asChild:!0,children:e||f.jsx(oe,{variant:"outline",size:"sm",className:"flex items-center gap-1",children:f.jsx("span",{children:"Share via Email"})})}),f.jsxs(fb,{className:"sm:max-w-md",children:[f.jsxs(hb,{children:[f.jsx(gb,{children:"Share Verification"}),f.jsx(mb,{children:"Send this verification to someone via email"})]}),u&&f.jsxs(Sn,{className:"bg-red-50 border-red-200 my-2",children:[f.jsx(ql,{className:"h-4 w-4 text-red-500"}),f.jsx(En,{className:"text-red-700",children:u})]}),f.jsxs("div",{className:"space-y-4 py-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs(gt,{htmlFor:"recipient-email",children:["Recipient Email ",f.jsx("span",{className:"text-red-500",children:"*"})]}),f.jsx(hr,{id:"recipient-email",type:"email",placeholder:"[email protected]",value:r,onChange:m=>n(m.target.value)})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(gt,{htmlFor:"recipient-name",children:"Recipient Name (optional)"}),f.jsx(hr,{id:"recipient-name",placeholder:"John Doe",value:i,onChange:m=>s(m.target.value)})]})]}),f.jsxs(pb,{className:"flex flex-col sm:flex-row gap-2",children:[f.jsx(oe,{variant:"outline",onClick:()=>c(!1),className:"sm:order-1 order-2",children:"Cancel"}),f.jsx(oe,{type:"submit",onClick:h,disabled:o,className:"sm:order-2 order-1",children:o?"Sending...":"Send Email"})]})]})]})},Bre=({document:t,onTogglePdfViewer:e,onDownloadDocument:r,onPrint:n,onSaveAsPDF:i,onSendEmail:s,showPdf:o})=>f.jsxs("div",{className:"flex flex-wrap justify-end gap-2 print-hidden",children:[(t==null?void 0:t.file)&&f.jsxs(f.Fragment,{children:[f.jsxs(oe,{variant:"outline",size:"sm",onClick:e,className:"flex items-center gap-1",children:[f.jsx(Jn,{className:"h-4 w-4"}),f.jsx("span",{children:o?"Hide Document":"View Document"})]}),f.jsxs(oe,{variant:"outline",size:"sm",onClick:r,className:"flex items-center gap-1",children:[f.jsx(by,{className:"h-4 w-4"}),f.jsx("span",{children:"Download Document"})]})]}),s&&f.jsx(Mre,{onSendEmail:s}),f.jsxs(oe,{variant:"outline",size:"sm",onClick:n,className:"flex items-center gap-1",children:[f.jsx(Jz,{className:"h-4 w-4"}),f.jsx("span",{children:"Print Verification"})]}),f.jsxs(oe,{variant:"outline",size:"sm",onClick:i,className:"flex items-center gap-1",children:[f.jsx(by,{className:"h-4 w-4"}),f.jsx("span",{children:"Save as PDF"})]})]}),Lre=({isVerified:t,document:e,onSendEmail:r})=>{const{toast:n}=Sr(),[i,s]=x.useState(!1),[o,a]=x.useState(!1),l=()=>{n({title:"Printing verification",description:"Preparing document for printing..."}),setTimeout(()=>{window.print()},300)},c=()=>{n({title:"Save as PDF",description:"Use your browser's print dialog to save as PDF"}),setTimeout(()=>{window.print()},300)},u=()=>{e!=null&&e.hash&&(navigator.clipboard.writeText(e.hash),n({title:"Hash copied",description:"Document hash copied to clipboard"}))},d=()=>{e!=null&&e.cryptoSignature&&(navigator.clipboard.writeText(e.cryptoSignature),n({title:"Signature copied",description:"Cryptographic signature copied to clipboard"}))},h=()=>
448{if(e!=null&&e.file){const y=URL.createObjectURL(e.file),v=window.document.createElement("a");v.href=y,v.download=e.title||"verified-document.pdf",window.document.body.appendChild(v),v.click(),window.document.body.removeChild(v),URL.revokeObjectURL(y),n({title:"Document downloaded",description:"The verified document has been downloaded"})}},p=()=>{s(!i)},m=()=>t?e!=null&&e.blockchainVerified?"Blockchain Verified":"Document Verified":"Verification Failed",g=()=>t?e!=null&&e.blockchainVerified?"This document has been successfully verified on the Ethereum blockchain":"This document has been successfully verified in our database":"This document could not be verified or has been tampered with";return f.jsxs(Vt,{className:Te("verification-result border transition-all duration-700",t?e!=null&&e.blockchainVerified?"border-green-600 verify-glow shadow-green-600/30":"border-green-500 verify-glow shadow-green-500/20":"border-destructive shadow-destructive/20"),children:[f.jsxs(Yi,{className:"pb-2",children:[f.jsx(Ji,{className:"flex items-center gap-2",children:t?f.jsxs(f.Fragment,{children:[f.jsx(Iw,{className:Te("h-6 w-6",e!=null&&e.blockchainVerified?"text-green-600":"text-green-500")}),f.jsx("span",{children:m()})]}):f.jsxs(f.Fragment,{children:[f.jsx(Bz,{className:"h-6 w-6 text-destructive"}),f.jsx("span",{children:"Verification Failed"})]})}),f.jsx(Zi,{children:g()})]}),t&&e&&f.jsxs(f.Fragment,{children:[f.jsxs(Jt,{children:[f.jsx(Ire,{document:e,onCopyHash:u}),e.cryptoSignature&&f.jsx("div",{className:"mt-4",children:f.jsxs("div",{className:"grid grid-cols-3 gap-1 text-sm",children:[f.jsx("span",{className:"text-muted-foreground",children:"Signature:"}),f.jsxs("div",{className:"col-span-2 font-medium break-all flex items-start gap-2",children:[f.jsxs("div",{children:[o?e.cryptoSignature:`${e.cryptoSignature.substring(0,20)}...${e.cryptoSignature.substring(e.cryptoSignature.length-20)}`,f.jsx("button",{onClick:()=>a(!o),className:"text-xs text-web3-purple hover:underline ml-1",children:o?"Show less":"Show full"})]}),f.jsx("button",{className:"p-1 rounded hover:bg-gray-100 print-hidden",onClick:d,title:"Copy signature to clipboard",children:f.jsx(Uz,{className:"h-4 w-4 text-gray-500 hover:text-gray-700"})})]})]})}),e.file&&f.jsx(cM,{file:e.file,showPdf:i})]}),f.jsx(Ok,{children:f.jsx(Bre,{document:e,onTogglePdfViewer:p,onDownloadDocument:h,onPrint:l,onSaveAsPDF:c,onSendEmail:r,showPdf:i})})]})]})},rB=()=>{const{user:t}=xi(),[e,r]=x.useState(!1);return x.useEffect(()=>{(async()=>{if(t)try{const{data:o,error:a}=await Nt.from("profiles").select("*").eq("id",t.id).single();if(!a&&o){const l=o.subscription_status==="active";r(l)}}catch(o){console.error("Error checking subscription status:",o)}})()},[t]),{saveVerifiedDocument:s=>{if(t)try{const o=`verified-docs-${t.id}`,a=localStorage.getItem(o),l=a?JSON.parse(a):[];if(!l.some(u=>u.hash===s.hash)){const d=[{...s,verifiedAt:new Date().toISOString()},...l];localStorage.setItem(o,JSON.stringify(d))}}catch(o){console.error("Error saving document to history:",o)}},getDocumentHistory:()=>
448{if(!t)return[];try{const s=`verified-docs-${t.id}`,o=localStorage.getItem(s);if(!o)return[];const a=JSON.parse(o);if(e)return a;const l=new Date;return l.setHours(l.getHours()-24),a.filter(c=>new Date(c.verifiedAt)>=l)}catch(s){return console.error("Error retrieving document history:",s),[]}},isPaidUser:e}},Ure=()=>{const[t,e]=x.useState(null),[r,n]=x.useState(""),[i,s]=x.useState(!1),[o,a]=x.useState({shown:!1,verified:!1}),{toast:l}=Sr();rs();const{saveVerifiedDocument:c}=rB(),u=w=>{e(w),a({shown:!1,verified:!1})},d=async w=>{const b=await w.arrayBuffer(),E=await crypto.subtle.digest("SHA-256",b);return`0x${Array.from(new Uint8Array(E)).map(P=>P.toString(16).padStart(2,"0")).join("")}`},h=async()=>{if(!t){l({title:"No document selected",description:"Please upload a document to verify",variant:"destructive"});return}s(!0);try{const w=await d(t);console.log("Generated document hash:",w),await g(w,t)}catch(w){console.error("Error verifying document:",w),a({shown:!0,verified:!1}),l({title:"Verification error",description:w.message||"An unexpected error occurred",variant:"destructive"})}finally{s(!1)}},p=async w=>{const b=w||r;if(!b){l({title:"No hash provided",description:"Please enter a document hash to verify",variant:"destructive"});return}s(!0);try{const E=b.trim();if(console.log("Verifying hash:",E),uM(E)){const A=await Vy(E);if(console.log("Blockchain verification result:",A),A.exists){const{data:k}=await Nt.from("documents").select("*, user_id").eq("blockchain_tx",E);if(k&&k.length>0){await y(k[0],null,A.details);return}}else A.isMock&&l({title:"Simulated Transaction",description:"This is a test/mock transaction that cannot be verified on the actual blockchain",variant:"destructive"})}await g(E)}catch(E){console.error("Error verifying hash:",E),a({shown:!0,verified:!1}),l({title:"Verification failed",description:"Document could not be verified with the provided hash",variant:"destructive"})}finally{s(!1)}},m=w=>{let b=w.trim().toLowerCase();return b.startsWith("0x")||(b="0x"+b),b},g=async(w,b)=>{console.log("Input hash for verification:",w),console.log("Hash length:",w.length);const E=m(w);console.log("Normalized hash:",E);const A=E.substring(2);console.log("Hash variations for verification:"),console.log("Normalized with 0x:",E),console.log("Without 0x:",A);let k=null;console.log("Attempt 1: Direct comparison with normalized hash");let{data:P,error:C}=await Nt.from("documents").select("*, user_id").eq("hash",E);if(console.log("Result of direct comparison:",P,C),P&&P.length>0&&(k=P[0],console.log("Found document with direct comparison:",k)),!k){console.log("Attempt 2: Try without 0x prefix");const{data:R,error:F}=await Nt.from("documents").select("*, user_id").eq("hash",A);console.log("Result without 0x prefix:",R,F),R&&R.length>0&&(k=R[0],console.log("Found document without 0x prefix:",k))}if(!k){console.log("Attempt 3: Case-insensitive search with 0x");const{data:R,error:F}=await Nt.from("documents").select("*, user_id").ilike("hash",E);console.log("Case-insensitive with 0x result:",R,F),R&&R.length>0&&(k=R[0],console.log("Found document with case-insensitive 0x search:",k))}if(!k){console.log("Attempt 4: Case-insensitive search without 0x");const{data:R,error:F}=await Nt.from("documents").select("*, user_id").ilike("hash",A);console.log("Case-insensitive without 0x result:",R,F),R&&R.length>0&&(k=R[0],console.log("Found document with case-insensitive no-0x search:",k))}if(!k){console.log("Attempt 5: Partial match with wildcards");const{data:R,error:F}=await Nt.from("documents").select("*, user_id").or(`hash.like.%${E}%,hash.like.%${A}%`);console.log("Wildcard search result:",R,F),R&&R.length>0&&(k=R[0],console.log("Found document with wildcard match:",k))}if(!k){console.log("Attempt 6: Retrieving all documents for manual comparison");const{data:R,error:F}=await Nt.from("documents").select("*, user_id").limit(100);if(console.log("Retrieved all documents:",(R==null?void 0:R.length)||0,F),R&&R.length>0){const B=m(w).replace(/[^a-f0-9]/g,"");console.log("Cleaned input hash for character comparison:",B);for(const D of R){if(!D.hash)continue;const L=m(D.hash).replace(/[^a-f0-9]/g,"");if(console.log(`Comparing cleaned hashes: [Input] ${B} vs [Doc] ${L}`),L===B||L.includes(B)||B.includes(L)){k=D,console.log("Found matching document through character comparison:",D);break}}}}if(!k){console.error("No documents found with any hash variation"),a({shown:!0,verified:!1}),l({title:"Verification failed",description:"Document could not be verified with the provided hash",variant:"destructive"});return}console.log("Found document for verification:",k);let N;if(k.blockchain_tx)try{console.log("Verifying blockchain transaction:",k.blockchain_tx);const R=await Vy(k.blockchain_tx);R.exists?(N=R.details,console.log("Transaction verified on blockchain:",N)):console.log("Transaction not found on blockchain:",R.error)}catch(R){console.error("Error verifying blockchain transaction:",R)}await y(k,b,N)},y=async(w,b,E)=>{try{const{data:A}=await Nt.from("profiles").select("full_name, email").eq("id",w.user_id
448).maybeSingle();console.log("Profile data for document:",A);const k={title:w.title,signer:(A==null?void 0:A.full_name)||(A==null?void 0:A.email)||"Verified Signer",timestamp:new Date(w.created_at).toLocaleString(),transactionHash:w.blockchain_tx,hash:w.hash,file:b,blockchainVerified:!!E,blockchainDetails:E};a({shown:!0,verified:!0,document:k}),c({title:w.title,signer:(A==null?void 0:A.full_name)||(A==null?void 0:A.email)||"Verified Signer",hash:w.hash,timestamp:w.created_at}),l({title:"Verification complete",description:E?"Document has been verified successfully on the blockchain":"Document has been verified successfully in our database"})}catch(A){console.error("Error processing verification:",A);const k={title:w.title,signer:"Verified Signer",timestamp:new Date(w.created_at).toLocaleString(),transactionHash:w.blockchain_tx,hash:w.hash,file:b,blockchainVerified:!!E,blockchainDetails:E};a({shown:!0,verified:!0,document:k}),c({title:w.title,signer:"Verified Signer",hash:w.hash,timestamp:w.created_at}),l({title:"Verification complete",description:"Document has been verified with limited information"})}};return{file:t,hashValue:r,isLoading:i,verificationResult:o,setHashValue:n,handleFileUpload:u,verifyByDocument:h,verifyByHash:p,sendVerificationEmail:async(w,b)=>{var E;if(!o.verified||!o.document){l({title:"Cannot send email",description:"Document must be verified first",variant:"destructive"});return}try{const A=window.location.origin,k=((E=o.document.hash)==null?void 0:E.trim())||"";if(!k)throw new Error("Document hash is missing");console.log("Sending verification email with hash:",k);const P={recipientEmail:w,recipientName:b,documentTitle:o.document.title,documentHash:k,origin:A,blockchainVerified:o.document.blockchainVerified};console.log("Email verification payload:",P);const{data:C,error:N}=await Nt.functions.invoke("send-verification-email",{body:P});if(N)throw console.error("Supabase function error:",N),new Error(N.message||"Failed to send verification email");if(console.log("Email sending response:",C),!C.success)throw new Error(C.error||"Failed to send email due to an unknown error");l({title:"Email sent",description:`Verification email sent to ${w}`})}catch(A){throw console.error("Error sending verification email:",A),l({title:"Email sending failed",description:A.message||"An error occurred while sending the email",variant:"destructive"}),A}}}},zre=(t,e,r)=>{const n=rs(),i=da(),{toast:s}=Sr(),o=a=>{let l=a.trim().toLowerCase();return l.startsWith("0x")||(l="0x"+l),l};x.useEffect(()=>{(async()=>{if(sessionStorage.getItem("cleanedHashError")){const u=parseInt(sessionStorage.getItem("cleanedHashError")||"0");if(Date.now()-u<3e5)return;sessionStorage.removeItem("cleanedHashError")}console.log("----- URL HASH DEBUG -----"),console.log("Current URL:",window.location.href),console.log("Location search:",n.search);const l=new URLSearchParams(n.search);console.log("All params:",Object.fromEntries(l.entries()));let c=l.get("hash")||l.get("document_hash")||l.get("documentHash");if(!c&&n.search){const u=decodeURIComponent(n.search.substring(1));console.log("Decoded search string:",u);const d=[/[?&]hash=([^&]+)/i,/[?&]document_hash=([^&]+)/i,/[?&]documentHash=([^&]+)/i,/hash=([^&]+)/i];for(const h of d){const p=u.match(h);if(p&&p[1]){c=p[1],console.log("Found hash via regex:",c);break}}if(!c){const h=/(0x[a-f0-9]{8,})/i,p=u.match(h);p&&p[1]&&(c=p[1],console.log("Found hash via hex pattern match:",c))}}if(console.log("Document hash param (raw):",c),c){console.log("Found document hash parameter with length:",c.length);try{const u=decodeURIComponent(c).trim();console.log("Decoded document hash:",u),console.log("Decoded document hash length:",u.length);const d=o(u);console.log("Normalized hash for verification:",d),e(d),setTimeout(async()=>{try{console.log("Attempting verification with hash:",d),await r(d),console.log("Verification successful, no need to authenticate")}catch(h){console.error("Verification error:",h),!t&&n.pathname==="/verify"?(console.log("User not authenticated, storing hash and redirecting to auth"),sessionStorage.setItem("pendingVerificationHash",d),i(`/auth?redirect=${encodeURIComponent(n.pathname+n.search)}`)):s({title:"Verification failed",description:"Document could not be verified with the provided hash",variant:"destructive"})}},100)}catch(u){console.error("Error processing document hash from URL:",u),s({title:"Invalid document hash",description:"Could not process the document hash from URL",variant:"destructive"}),sessionStorage.setItem("cleanedHashError",Date.now().toString()),i(n.pathname,{replace:!0})}}else console.log("No document hash parameter found in URL");console.log("----- END DEBUG -----")})()},[n.search,t,e,r,s,n.pathname,i])},_re=({file:t,isLoading:e,onFileUpload:r,onVerify:n})=>f.jsxs(Vt,{className:"border border-purple-500/20 mb-8",children:[f.jsxs(Yi,{children:[f.jsxs(Ji,{className:"flex items-center gap-2",children:[f.jsx(_z,{className:"h-5 w-5 text-web3-purple"}),f.jsx("span",{children:"Verify by Document"})]}),f.jsx(Zi,{children:"Upload the PDF document you want to verify"})]}),f.jsxs(Jt,{className:"space-y-4",children:[f.jsx(oA,{onFileUpload:r}),f.jsxs(oe,{onClick:n,className:"w-full bg-web3-purple hover:bg-web3-purple/80",disabled:!t||e,children:[f.jsx(hk,{className:"h-4 w-4 mr-2"}
448),e?"Verifying...":"Verify Document"]})]})]}),Vre=({hashValue:t,isLoading:e,onHashChange:r,onVerify:n})=>{const[i,s]=x.useState(t),[o,a]=x.useState(!1);x.useEffect(()=>{s(t),t!=null&&t.includes("MOCK")?a(!0):a(!1)},[t]);const l=d=>{d.key==="Enter"&&i.trim()&&!e&&(d.preventDefault(),u(),n())},c=d=>{s(d),d!=null&&d.includes("MOCK")?a(!0):a(!1)},u=()=>{if(i){let d=i.trim();d.startsWith("0x")||(d=`0x${d}`),d=d.toLowerCase(),console.log("Normalized hash in component:",d),s(d),r(d),d.includes("MOCK")&&a(!0)}};return f.jsxs(Vt,{className:"border border-purple-500/20 mb-8",children:[f.jsxs(Yi,{children:[f.jsxs(Ji,{className:"flex items-center gap-2",children:[f.jsx(Vz,{className:"h-5 w-5 text-web3-purple"}),f.jsx("span",{children:"Verify on Blockchain"})]}),f.jsx(Zi,{children:"Enter the document hash or transaction ID to verify on the Ethereum blockchain"})]}),f.jsxs(Jt,{className:"space-y-4",children:[f.jsx(hr,{placeholder:"Enter document hash or transaction ID (0x...)",value:i,onChange:d=>c(d.target.value),onKeyDown:l,onBlur:u,disabled:e,className:"font-mono text-sm"}),o&&f.jsx("div",{className:"text-amber-600 bg-amber-50 border border-amber-200 p-2 rounded-md text-xs",children:"This appears to be a simulated transaction hash for development purposes. It will not be verified on the actual blockchain."}),f.jsxs(oe,{onClick:()=>{u(),n()},className:"w-full",variant:"outline",disabled:!i||e,children:[f.jsx(hk,{className:"h-4 w-4 mr-2"}),e?"Verifying on blockchain...":"Verify on Blockchain"]})]})]})},Hre=()=>{const{user:t}=xi(),e=rs();da();const[r,n]=x.useState(!1),{file:i,hashValue:s,isLoading:o,verificationResult:a,setHashValue:l,handleFileUpload:c,verifyByDocument:u,verifyByHash:d,sendVerificationEmail:h}=Ure();return x.useEffect(()=>{const p=sessionStorage.getItem("pendingVerificationHash");p&&(console.log("Found stored hash after authentication:",p),l(p),setTimeout(()=>{d(p),sessionStorage.removeItem("pendingVerificationHash")},300))},[t,l,d]),zre(t,l,d),x.useEffect(()=>{e.search.includes("redirect")&&n(!0)},[e.search]),f.jsxs("div",{className:"flex flex-col min-h-screen",children:[f.jsx(Ml,{}),f.jsx("main",{className:"flex-grow py-12 px-4",children:f.jsxs("div",{className:"container max-w-3xl mx-auto",children:[f.jsxs("div",{className:"mb-12 text-center",children:[f.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Verify Document Authenticity"}),f.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto",children:"Verify the authenticity of any document signed with SecureSignNFT using the original file or document hash."})]}),!t&&f.jsxs(Sn,{className:"mb-6 bg-yellow-50 border-yellow-100",children:[f.jsx(wD,{className:"h-4 w-4 text-yellow-600"}),f.jsx(Eh,{children:"Public Verification"}),f.jsx(En,{children:"You are in public verification mode. Sign in for full verification features."})]}),f.jsx(_re,{file:i,isLoading:o,onFileUpload:c,onVerify:u}),f.jsxs("div",{className:"relative my-8",children:[f.jsx(tB,{}),f.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:f.jsx("span",{className:"px-4 text-sm bg-background text-muted-foreground",children:"OR"})})]}),f.jsx(Vre,{hashValue:s,isLoading:o,onHashChange:l,onVerify:()=>d()}),a.shown&&f.jsx("div",{className:"mt-8",children:f.jsx(Lre,{isVerified:a.verified,document:a.document,onSendEmail:h})})]})}),f.jsx(Bl,{})]})};var Ym=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ru=typeof window>"u"||"Deno"in globalThis;function Mi(){}function Gre(t,e){return typeof t=="function"?t(e):t}function Y2(t){return typeof t=="number"&&t>=0&&t!==1/0}function nB(t,e){return Math.max(t+(e||0)-Date.now(),0)}function rf(t,e){return typeof t=="function"?t(e):t}function ks(t,e){return typeof t=="function"?t(e):t}function ij(t,e){const{type:r="all",exact:n,fetchStatus:i,predicate:s,queryKey:o,stale:a}=t;if(o){if(n){if(e.queryHash!==WA(o,e.options))return!1}else if(!im(e.queryKey,o))return!1}if(r!=="all"){const l=e.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||i&&i!==e.state.fetchStatus||s&&!s(e))}function sj(t,e){const{exact:r,status:n,predicate:i,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(r){if(nm(e.options.mutationKey)!==nm(s))return!1}else if(!im(e.options.mutationKey,s))return!1}return!(n&&e.state.status!==n||i&&!i(e))}function WA(t,e){return((e==null?void 0:e.queryKeyHashFn)||nm)(t)}function nm(t){return JSON.stringify(t,(e,r)=>Z2(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function im(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(r=>!im(t[r],e[r])):!1}function iB(t,e){if(t===e)return t;const r=oj(t)&&oj(e);if(r||Z2(t)&&Z2(e)){const n=r?t:Object.keys(t),i=n.length,s=r?e:Object.keys(e),o=s.length,a=r?[]:{};let l=0;for(let c=0;c<o;c++){const u=r?c:s[c];(!r&&n.includes(u)||r)&&t[u]===void 0&&e[u]===void 0?(a[u]=void 0,l++):(a[u]=iB(t[u],e[u]),a[u]===t[u]&&t[u]!==void 0&&l++)}return i===o&&l===i?t:a}return e}function J2(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(t[r]!==e[r])return!1;return!0}function oj(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Z2(t){if(!aj(t))return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(!aj(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function aj(t){return Object.prototype.toString.call(t)==="[object Object]"}function Wre(t){return new Promise(e=>{setTimeout(e,t)})}function $2(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?iB(t,e):e}function Kre(t,e,r=0){const n=[...t,e];return r&&n.length>r?n.slice(1):n}function qre(t,e,r=0){const n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}var KA=Symbol();function sB(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===KA?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var $c,al,Gf,Ej,Qre=(Ej=class extends Ym{constructor(){super();z(this,$c);z(this,al);z(this,Gf);T(this,Gf,e=>{if(!Ru&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){S(this,al)||this.setEventListener(S(this,Gf))}onUnsubscribe(){var e;this.hasListeners()||((e=S(this,al))==null||e.call(this),T(this,al,void 0))}setEventListener(e){var r;T(this,Gf,e),(r=S(this,al))==null||r.call(this),T(this,al,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){S(this,$c)!==e&&(T(this,$c,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 30,755 bytes, line 448
448this.listeners.forEach(r=>{r(e)})}isFocused(){var e;return typeof S(this,$c)=="boolean"?S(this,$c):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},$c=new WeakMap,al=new WeakMap,Gf=new WeakMap,Ej),qA=new Qre,Wf,ll,Kf,kj,Xre=(kj=class extends Ym{constructor(){super();z(this,Wf,!0);z(this,ll);z(this,Kf);T(this,Kf,e=>{if(!Ru&&window.addEventListener){const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){S(this,ll)||this.setEventListener(S(this,Kf))}onUnsubscribe(){var e;this.hasListeners()||((e=S(this,ll))==null||e.call(this),T(this,ll,void 0))}setEventListener(e){var r;T(this,Kf,e),(r=S(this,ll))==null||r.call(this),T(this,ll,e(this.setOnline.bind(this)))}setOnline(e){S(this,Wf)!==e&&(T(this,Wf,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return S(this,Wf)}},Wf=new WeakMap,ll=new WeakMap,Kf=new WeakMap,kj),iw=new Xre;function eE(){let t,e;const r=new Promise((i,s)=>{t=i,e=s});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),t(i)},r.reject=i=>{n({status:"rejected",reason:i}),e(i)},r}function Yre(t){return Math.min(1e3*2**t,3e4)}function oB(t){return(t??"online")==="online"?iw.isOnline():!0}var aB=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function b1(t){return t instanceof aB}function lB(t){let e=!1,r=0,n=!1,i;const s=eE(),o=g=>{var y;n||(h(new aB(g)),(y=t.abort)==null||y.call(t))},a=()=>{e=!0},l=()=>{e=!1},c=()=>qA.isFocused()&&(t.networkMode==="always"||iw.isOnline())&&t.canRun(),u=()=>oB(t.networkMode)&&t.canRun(),d=g=>{var y;n||(n=!0,(y=t.onSuccess)==null||y.call(t,g),i==null||i(),s.resolve(g))},h=g=>{var y;n||(n=!0,(y=t.onError)==null||y.call(t,g),i==null||i(),s.reject(g))},p=()=>new Promise(g=>{var y;i=v=>{(n||c())&&g(v)},(y=t.onPause)==null||y.call(t)}).then(()=>{var g;i=void 0,n||(g=t.onContinue)==null||g.call(t)}),m=()=>{if(n)return;let g;const y=r===0?t.initialPromise:void 0;try{g=y??t.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(d).catch(v=>{var k;if(n)return;const w=t.retry??(Ru?0:3),b=t.retryDelay??Yre,E=typeof b=="function"?b(r,v):b,A=w===!0||typeof w=="number"&&r<w||typeof w=="function"&&w(r,v);if(e||!A){h(v);return}r++,(k=t.onFail)==null||k.call(t,r,v),Wre(E).then(()=>c()?void 0:p()).then(()=>{e?h(v):m()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?m():p().then(m),s)}}function Jre(){let t=[],e=0,r=a=>{a()},n=a=>{a()},i=a=>setTimeout(a,0);const s=a=>{e?t.push(a):i(()=>{r(a)})},o=()=>{const a=t;t=[],a.length&&i(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;e++;try{l=a()}finally{e--,e||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{i=a}}}var Kr=Jre(),eu,Aj,cB=(Aj=class{constructor(){z(this,eu)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Y2(this.gcTime)&&T(this,eu,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ru?1/0:5*60*1e3))}clearGcTimeout(){S(this,eu)&&(clearTimeout(S(this,eu)),T(this,eu,void 0))}},eu=new WeakMap,Aj),qf,Qf,Di,an,ym,tu,ys,Ao,Cj,Zre=(Cj=class extends cB{constructor(e){super();z(this,ys);z(this,qf);z(this,Qf);z(this,Di);z(this,an);z(this,ym);z(this,tu);T(this,tu,!1),T(this,ym,e.defaultOptions),this.setOptions(e.options),this.observers=[],T(this,Di,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,T(this,qf,$re(this.options)),this.state=e.state??S(this,qf),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=S(this,an))==null?void 0:e.promise}setOptions(e){this.options={...S(this,ym),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Di).remove(this)}setData(e,r){const n=$2(this.state.data,e,this.options);return Q(this,ys,Ao).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(e,r){Q(this,ys,Ao).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var n,i;const r=(n=S(this,an))==null?void 0:n.promise;return(i=S(this,an))==null||i.cancel(e),r?r.then(Mi).catch(Mi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,qf))}isActive(){return this.observers.some(e=>ks(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===KA||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!nB(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=this.observers.find(n=>n.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=S(this,an))==null||r.continue()}onOnline(){var r;const e=this.observers.find(n=>n.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=S(this,an))==null||r.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),S(this,Di).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(S(this,an)&&(S(this,tu)?S(this,an).cancel({revert:!0}):S(this,an).cancelRetry()),this.scheduleGc()),S(this,Di).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Q(this,ys,Ao).call(this,{type:"invalidate"})}fetch(e,r){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(S(this,an))return S(this,an).continueRetry(),S(this,an).promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(T(this,tu,!0),n.signal)})},s=()=>{const d=sB(this.options,r),h={queryKey:this.queryKey,meta:this.meta};return i(h),T(this,tu,!1),this.options.persister?this.options.persister(d,h,this):d(h)},o={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),T(this,Qf,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=o.fetchOptions)==null?void 0:c.meta))&&Q(this,ys,Ao).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const a=d=>{var h,p,m,g;b1(d)&&d.silent||Q(this,ys,Ao).call(this,{type:"error",error:d}),b1(d)||((p=(h=S(this,Di).config).onError)==null||p.call(h,d,this),(g=(m=S(this,Di).config).onSettled)==null||g.call(m,this.state.data,d,this)),this.scheduleGc()};return T(this,an,lB({initialPromise:r==null?void 0:r.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{var h,p,m,g;if(d===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(y){a(y);return}(p=(h=S(this,Di).config).onSuccess)==null||p.call(h,d,this),(g=(m=S(this,Di).config).onSettled)==null||g.call(m,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,h)=>{Q(this,ys,Ao).call(this,{type:"failed",failureCount:d,error:h})},onPause:()=>{Q(this,ys,Ao).call(this,{type:"pause"})},onContinue:()=>{Q(this,ys,Ao).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),S(this,an).start()}},qf=new WeakMap,Qf=new WeakMap,Di=new WeakMap,an=new WeakMap,ym=new WeakMap,tu=new WeakMap,ys=new WeakSet,Ao=function(e){const r=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...uB(n.data,this.options),fetchMeta:e.meta??null};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return b1(i)&&i.revert&&S(this,Qf)?{...S(this,Qf),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=r(this.state),Kr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),S(this,Di).notify({query:this,type:"updated",action:e})})},Cj);function uB(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oB(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function $re(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var $s,Nj,ene=(Nj=class extends Ym{constructor(e={}){super();z(this,$s);this.config=e,T(this,$s,new Map)}build(e,r,n){const i=r.queryKey,s=r.queryHash??WA(i,r);let o=this.get(s);return o||(o=new Zre({cache:this,queryKey:i,queryHash:s,options:e.defaultQueryOptions(r),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){S(this,$s).has(e.queryHash)||(S(this,$s).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=S(this,$s).get(e.queryHash);r&&(e.destroy(),r===e&&S(this,$s).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Kr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return S(this,$s).get(e)}getAll(){return[...S(this,$s).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(n=>ij(r,n))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(n=>ij(e,n)):r}notify(e){Kr.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){Kr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Kr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},$s=new WeakMap,Nj),eo,mn,ru,to,Da,Pj,tne=(Pj=class extends cB{constructor(e){super();z(this,to);z(this,eo);z(this,mn);z(this,ru);this.mutationId=e.mutationId,T(this,mn,e.mutationCache),T(this,eo,[]),this.state=e.state||rne(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){S(this,eo).includes(e)||(S(this,eo).push(e),this.clearGcTimeout(),S(this,mn).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){T(this,eo,S(this,eo).filter(r=>r!==e)),this.scheduleGc(),S(this,mn).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){S(this,eo).length||(this.state.status==="pending"?this.scheduleGc():S(this,mn).remove(this))}continue(){var e;return((e=S(this,ru))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,s,o,a,l,c,u,d,h,p,m,g,y,v,w,b,E,A,k,P;T(this,ru,lB({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(C,N)=>{Q(this,to,Da).call(this,{type:"failed",failureCount:C,error:N})},onPause:()=>{Q(this,to,Da).call(this,{type:"pause"})},onContinue:()=>{Q(this,to,Da).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,mn).canRun(this)}));const r=this.state.status==="pending",n=!S(this,ru).canStart();try{if(!r){Q(this,to,Da).call(this,{type:"pending",variables:e,isPaused:n}),await((s=(i=S(this,mn).config).onMutate)==null?void 0:s.call(i,e,this));const N=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,e));N!==this.state.context&&Q(this,to,Da).call(this,{type:"pending",context:N,variables:e,isPaused:n})}const C=await S(this,ru).start();return await((c=(l=S(this,mn).config).onSuccess)==null?void 0:c.call(l,C,e,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,C,e,this.state.context)),await((p=(h=S(this,mn).config).onSettled)==null?void 0:p.call(h,C,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,C,null,e,this.state.context)),Q(this,to,Da).call(this,{type:"success",data:C}),C}catch(C){try{throw await((v=(y=S(this,mn).config).onError)==null?void 0:v.call(y,C,e,this.state.context,this)),await((b=(w=this.options).onError)==null?void 0:b.call(w,C,e,this.state.context)),await((A=(E=S(this,mn).config).onSettled)==null?void 0:A.call(E,void 0,C,this.state.variables,this.state.context,this)),await((P=(k=this.options).onSettled)==null?void 0:P.call(k,void 0,C,e,this.state.context)),C}finally{Q(this,to,Da).call(this,{type:"error",error:C})}}finally{S(this,mn).runNext(this)}}},eo=new WeakMap,mn=new WeakMap,ru=new WeakMap,to=new WeakSet,Da=function(e){const r=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Kr.batch(()=>{S(this,eo).forEach(n=>{n.onMutationUpdate(e)}),S(this,mn).notify({mutation:this,type:"updated",action:e})})},Pj);function rne(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var oi,wm,Tj,nne=(Tj=class extends Ym{constructor(e={}){super();z(this,oi);z(this,wm);this.config=e,T(this,oi,new Map),T(this,wm,Date.now())}build(e,r,n){const i=new tne({mutationCache:this,mutationId:++ma(this,wm)._,options:e.defaultMutationOptions(r),state:n});return this.add(i),i}add(e){const r=sv(e),n=S(this,oi).get(r)??[];n.push(e),S(this,oi).set(r,n),this.notify({type:"added",mutation:e})}remove(e){var n;const r=sv(e);if(S(this,oi).has(r)){const i=(n=S(this,oi).get(r))==null?void 0:n.filter(s=>s!==e);i&&(i.length===0?S(this,oi).delete(r):S(this,oi).set(r,i))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const r=(n=S(this,oi).get(sv(e)))==null?void 0:n.find(i=>i.state.status==="pending");return!r||r===e}runNext(e){var n;const r=(n=S(this,oi).get(sv(e)))==null?void 0:n.find(i=>i!==e&&i.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){Kr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...S(this,oi).values()].flat()}find(e){const r={exact:!0,...e};return this.getAll().find(n=>sj(r,n))}findAll(e={}){return this.getAll().filter(r=>sj(e,r))}notify(e){Kr.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){const e=this.getAll().filter(r=>r.state.isPaused);return Kr.batch(()=>Promise.all(e.map(r=>r.continue().catch(Mi))))}},oi=new WeakMap,wm=new WeakMap,Tj);function sv(t){var e;return((e=t.options.scope)==null?void 0:e.id)??String(t.mutationId)}function lj(t){return{onFetch:(e,r)=>{var u,d,h,p,m;const n=e.options,i=(h=(d=(u=e.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,s=((p=e.state.data)==null?void 0:p.pages)||[],o=((m=e.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const y=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(e.signal.aborted?g=!0:e.signal.addEventListener("abort",()=>{g=!0}),e.signal)})},v=sB(e.options,e.fetchOptions),w=async(b,E,A)=>{if(g)return Promise.reject();if(E==null&&b.pages.length)return Promise.resolve(b);const k={queryKey:e.queryKey,pageParam:E,direction:A?"backward":"forward",meta:e.options.meta};y(k);const P=await v(k),{maxPages:C}=e.options,N=A?qre:Kre;return{pages:N(b.pages,P,C),pageParams:N(b.pageParams,E,C)}};if(i&&s.length){const b=i==="backward",E=b?ine:cj,A={pages:s,pageParams:o},k=E(n,A);a=await w(A,k,b)}else{const b=t??s.length;do{const E=l===0?o[0]??n.initialPageParam:cj(n,a);if(l>0&&E==null)break;a=await w(a,E),l++}while(l<b)}return a};e.options.persister?e.fetchFn=()=>{var g,y;return(y=(g=e.options).persister)==null?void 0:y.call(g,c,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=c}}}function cj(t,{pages:e,pageParams:r}){const n=e.length-1;return e.length>0?t.getNextPageParam(e[n],e,r[n],r):void 0}function ine(t,{pages:e,pageParams:r}){var n;return e.length>0?(n=t.getPreviousPageParam)==null?void 0:n.call(t,e[0],e,r[0],r):void 0}var nr,cl,ul,Xf,Yf,dl,Jf,Zf,Rj,sne=(Rj=class{constructor(t={}){z(this,nr);z(this,cl);z(this,ul);z(this,Xf);z(this,Yf);z(this,dl);z(this,Jf);z(this,Zf);T(this,nr,t.queryCache||new ene),T(this,cl,t.mutationCache||new nne),T(this,ul,t.defaultOptions||{}),T(this,Xf,new Map),T(this,Yf,new Map),T(this,dl,0)}mount(){ma(this,dl)._++,S(this,dl)===1&&(T(this,Jf,qA.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,nr).onFocus())})),T(this,Zf,iw.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,nr).onOnline())})))}unmount(){var t,e;ma(this,dl)._--,S(this,dl)===0&&((t=S(this,Jf))==null||t.call(this),T(this,Jf,void 0),(e=S(this,Zf))==null||e.call(this),T(this,Zf,void 0))}isFetching(t){return S(this,nr).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return S(this,cl).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=S(this,nr).get(e.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const r=this.defaultQueryOptions(t),n=S(this,nr).build(this,r);return t.revalidateIfStale&&n.isStaleByTime(rf(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(e)}}getQueriesData(t){return S(this,nr).findAll(t).map(({queryKey:e,state:r})=>{const n=r.data;return[e,n]})}setQueryData(t,e,r){const n=this.defaultQueryOptions({queryKey:t}),i=S(this,nr).get(n.queryHash),s=i==null?void 0:i.state.data,o=Gre(e,s);if(o!==void 0)return S(this,nr).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(t,e,r){return Kr.batch(()=>S(this,nr).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,r)]))}getQueryState(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=S(this,nr).get(e.queryHash))==null?void 0:r.state}removeQueries(t){const e=S(this,nr);Kr.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=S(this,nr),n={type:"active",...t};return Kr.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries(n,e)))}cancelQueries(t={},e={}){const r={revert:!0,...e},n=Kr.batch(()=>S(this,nr).findAll(t).map(i=>i.cancel(r)));return Promise.all(n).then(Mi).catch(Mi)}invalidateQueries(t={},e={}){return Kr.batch(()=>{if(S(this,nr).findAll(t).forEach(n=>{n.invalidate()}),t.refetchType==="none")return Promise.resolve();const r={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(r,e)})}refetchQueries(t={},e){const r={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},n=Kr.batch(()=>S(this,nr).findAll(t).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,r);return r.throwOnError||(s=s.catch(Mi)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(n).then(Mi)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=S(this,nr).build(this,e);return r.isStaleByTime(rf(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Mi).catch(Mi)}fetchInfiniteQuery(t){return t.behavior=lj(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Mi).catch(Mi)}ensureInfiniteQueryData(t){return t.behavior=lj(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return iw.isOnline()?S(this,cl).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,nr)}getMutationCache(){return S(this,cl)}getDefaultOptions(){return S(this,ul)}setDefaultOptions(t){T(this,ul,t)}setQueryDefaults(t,e){S(this,Xf).set(nm(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...S(this,Xf).values()];let r={};return e.forEach(n=>{im(t,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(t,e){S(this,Yf).set(nm(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...S(this,Yf).values()];let r={};return e.forEach(n=>{im(t,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={...S(this,ul).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=WA(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===KA&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...S(this,ul).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){S(this,nr).clear(),S(this,cl).clear()}},nr=new WeakMap,cl=new WeakMap,ul=new WeakMap,Xf=new WeakMap,Yf=new WeakMap,dl=new WeakMap,Jf=new WeakMap,Zf=new WeakMap,Rj),Bn,tt,bm,vn,nu,$f,fl,ro,xm,eh,th,iu,su,hl,rh,kt,Gp,tE,rE,nE,iE,sE,oE,aE,dB,jj,one=(jj=class extends Ym{constructor(e,r){super();z(this,kt);z(this,Bn);z(this,tt);z(this,bm);z(this,vn);z(this,nu);z(this,$f);z(this,fl);z(this,ro);z(this,xm);z(this,eh);z(this,th);z(this,iu);z(this,su);z(this,hl);z(this,rh,new Set);this.options=r,T(this,Bn,e),T(this,ro,null),T(this,fl,eE()),this.options.experimental_prefetchInRender||S(this,fl).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,tt).addObserver(this),uj(S(this,tt),this.options)?Q(this,kt,Gp).call(this):this.updateResult(),Q(this,kt,iE).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return lE(S(this,tt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return lE(S(this,tt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Q(this,kt,sE).call(this),Q(this,kt,oE).call(this),S(this,tt).removeObserver(this)}setOptions(e,r){const n=this.options,i=S(this,tt);if(this.options=S(this,Bn).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ks(this.options.enabled,S(this,tt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Q(this,kt,aE).call(this),S(this,tt).setOptions(this.options),n._defaulted&&!J2(this.options,n)&&S(this,Bn).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,tt),observer:this});const s=this.hasListeners();s&&dj(S(this,tt),i,this.options,n)&&Q(this,kt,Gp).call(this),this.updateResult(r),s&&(S(this,tt)!==i||ks(this.options.enabled,S(this,tt))!==ks(n.enabled,S(this,tt))||rf(this.options.staleTime,S(this,tt))!==rf(n.staleTime,S(this,tt)))&&Q(this,kt,tE).call(this);const o=Q(this,kt,rE).call(this);s&&(S(this,tt)!==i||ks(this.options.enabled,S(this,tt))!==ks(n.enabled,S(this,tt))||o!==S(this,hl))&&Q(this,kt,nE).call(this,o)}getOptimisticResult(e){const r=S(this,Bn).getQueryCache().build(S(this,Bn),e),n=this.createResult(r,e);return lne(this,n)&&(T(this,vn,n),T(this,$f,this.options),T(this,nu,S(this,tt).state)),n}getCurrentResult(){return S(this,vn)}trackResult(e,r){const n={};return Object.keys(e).forEach(i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),r==null||r(i),e[i])})}),n}trackProp(e){S(this,rh).add(e)}getCurrentQuery(){return S(this,tt)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const r=S(this,Bn).defaultQueryOptions(e),n=S(this,Bn).getQueryCache().build(S(this,Bn),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(e){return Q(this,kt,Gp).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,vn)))}createResult(e,r){var C;const n=S(this,tt),i=this.options,s=S(this,vn),o=S(this,nu),a=S(this,$f),c=e!==n?e.state:S(this,bm),{state:u}=e;let d={...u},h=!1,p;if(r._optimisticResults){const N=this.hasListeners(),R=!N&&uj(e,r),F=N&&dj(e,n,r,i);(R||F)&&(d={...d,...uB(u.data,e.options)}),r._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:y}=d;if(r.select&&d.data!==void 0)if(s&&d.data===(o==null?void 0:o.data)&&r.select===S(this,xm))p=S(this,eh);else try{T(this,xm,r.select),p=r.select(d.data),p=$2(s==null?void 0:s.data,p,r),T(this,eh,p),T(this,ro,null)}catch(N){T(this,ro,N)}else p=d.data;if(r.placeholderData!==void 0&&p===void 0&&y==="pending"){let N;if(s!=null&&s.isPlaceholderData&&r.placeholderData===(a==null?void 0:a.placeholderData))N=s.data;else if(N=typeof r.placeholderData=="function"?r.placeholderData((C=S(this,th))==null?void 0:C.state.data,S(this,th)):r.placeholderData,r.select&&N!==void 0)try{N=r.select(N),T(this,ro,null)}catch(R){T(this,ro,R)}N!==void 0&&(y="success",p=$2(s==null?void 0:s.data,N,r),h=!0)}S(this,ro)&&(m=S(this,ro),p=S(this,eh),g=Date.now(),y="error");const v=d.fetchStatus==="fetching",w=y==="pending",b=y==="error",E=w&&v,A=p!==void 0,P={status:y,fetchStatus:d.fetchStatus,isPending:w,isSuccess:y==="success",isError:b,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&!w,isLoadingError:b&&!A,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:b&&A,isStale:QA(e,r),refetch:this.refetch,promise:S(this,fl)};if(this.options.experimental_prefetchInRender){const N=B=>{P.status==="error"?B.reject(P.error):P.data!==void 0&&B.resolve(P.data)},R=()=>{const B=T(this,fl,P.promise=eE());N(B)},F=S(this,fl);switch(F.status){case"pending":e.queryHash===n.queryHash&&N(F);break;case"fulfilled":(P.status==="error"||P.data!==F.value)&&R();break;case"rejected":(P.status!=="error"||P.error!==F.reason)&&R();break}}return P}updateResult(e){const r=S(this,vn),n=this.createResult(S(this,tt),this.options);if(T(this,nu,S(this,tt).state),T(this,$f,this.options),S(this,nu).data!==void 0&&T(this,th,S(this,tt)),J2(n,r))return;T(this,vn,n);const i={},s=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!S(this,rh).size)return!0;const l=new Set(a??S(this,rh));return this.options.throwOnError&&l.add("error"),Object.keys(S(this,vn)).some(c=>{const u=c;return S(this,vn)[u]!==r[u]&&l.has(u)})};(e==null?void 0:e.listeners)!==!1&&s()&&(i.listeners=!0),Q(this,kt,dB).call(this,{...i,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Q(this,kt,iE).call(this)}},Bn=new WeakMap,tt=new WeakMap,bm=new WeakMap,vn=new WeakMap,nu=new WeakMap,$f=new WeakMap,fl=new WeakMap,ro=new WeakMap,xm=new WeakMap,eh=new WeakMap,th=new WeakMap,iu=new WeakMap,su=new WeakMap,hl=new WeakMap,rh=new WeakMap,kt=new WeakSet,Gp=function(e){Q(this,kt,aE).call(this);let r=S(this,tt).fetch(this.options,e);return e!=null&&e.throwOnError||(r=r.catch(Mi)),r},tE=function(){Q(this,kt,sE).call(this);const e=rf(this.options.staleTime,S(this,tt));if(Ru||S(this,vn).isStale||!Y2(e))return;const n=nB(S(this,vn).dataUpdatedAt,e)+1;T(this,iu,setTimeout(()=>{S(this,vn).isStale||this.updateResult()},n))},rE=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,tt)):this.options.refetchInterval)??!1},nE=function(e){Q(this,kt,oE).call(this),T(this,hl,e),!(Ru||ks(this.options.enabled,S(this,tt))===!1||!Y2(S(this,hl))||S(this,hl)===0)&&T(this,su,setInterval(()=>{(this.options.refetchIntervalInBackground||qA.isFocused())&&Q(this,kt,Gp).call(this)},S(this,hl)))},iE=function(){Q(this,kt,tE).call(this),Q(this,kt,nE).call(this,Q(this,kt,rE).call(this))},sE=function(){S(this,iu)&&(clearTimeout(S(this,iu)),T(this,iu,void 0))},oE=function(){S(this,su)&&(clearInterval(S(this,su)),T(this,su,void 0))},aE=function(){const e=S(this,Bn).getQueryCache().build(S(this,Bn),this.options);if(e===S(this,tt))return;const r=S(this,tt);T(this,tt,e),T(this,bm,e.state),this.hasListeners()&&(r==null||r.removeObserver(this),e.addObserver(this))},dB=function(e){Kr.batch(()=>{e.listeners&&this.listeners.forEach(r=>{r(S(this,vn))}),S(this,Bn).getQueryCache().notify({query:S(this,tt),type:"observerResultsUpdated"})})},jj);function ane(t,e){return ks(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function uj(t,e){return ane(t,e)||t.state.data!==void 0&&lE(t,e,e.refetchOnMount)}function lE(t,e,r){if(ks(e.enabled,t)!==!1){const n=typeof r=="function"?r(t):r;return n==="always"||n!==!1&&QA(t,e)}return!1}function dj(t,e,r,n){return(t!==e||ks(n.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&QA(t,r)}function QA(t,e){return ks(e.enabled,t)!==!1&&t.isStaleByTime(rf(e.staleTime,t))}function lne(t,e){return!J2(t.getCurrentResult(),e)}var fB=x.createContext(void 0),cne=t=>{const e=x.useContext(fB);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},une=({client:t,children:e})=>(x.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),f.jsx(fB.Provider,{value:t,children:e})),hB=x.createContext(!1),dne=()=>x.useContext(hB);hB.Provider;function fne(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var hne=x.createContext(fne()),pne=()=>x.useContext(hne);function gne(t,e){return typeof t=="function"?t(...e):!!t}function mne(){}var vne=(t,e)=>
448{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},yne=t=>{x.useEffect(()=>{t.clearReset()},[t])},wne=({result:t,errorResetBoundary:e,throwOnError:r,query:n})=>t.isError&&!e.isReset()&&!t.isFetching&&n&&gne(r,[t.error,n]),bne=t=>{t.suspense&&(t.staleTime===void 0&&(t.staleTime=1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},xne=(t,e)=>t.isLoading&&t.isFetching&&!e,Sne=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,fj=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function Ene(t,e,r){var u,d,h,p,m;const n=cne(),i=dne(),s=pne(),o=n.defaultQueryOptions(t);(d=(u=n.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||d.call(u,o),o._optimisticResults=i?"isRestoring":"optimistic",bne(o),vne(o,s),yne(s);const a=!n.getQueryCache().get(o.queryHash),[l]=x.useState(()=>new e(n,o)),c=l.getOptimisticResult(o);if(x.useSyncExternalStore(x.useCallback(g=>{const y=i?()=>{}:l.subscribe(Kr.batchCalls(g));return l.updateResult(),y},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),x.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),Sne(o,c))throw fj(o,l,s);if(wne({result:c,errorResetBoundary:s,throwOnError:o.throwOnError,query:n.getQueryCache().get(o.queryHash)}))throw c.error;if((p=(h=n.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||p.call(h,o,c),o.experimental_prefetchInRender&&!Ru&&xne(c,i)){const g=a?fj(o,l,s):(m=n.getQueryCache().get(o.queryHash))==null?void 0:m.promise;g==null||g.catch(mne).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?c:l.trackResult(c)}function kne(t,e){return Ene(t,one)}function Is(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function ju(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}const pB=6048e5,Ane=864e5;let Cne={};function Bb(){return Cne}function sm(t,e){var a,l,c,u;const r=Bb(),n=(e==null?void 0:e.weekStartsOn)??((l=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=Is(t),s=i.getDay(),o=(s<n?7:0)+s-n;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function sw(t){return sm(t,{weekStartsOn:1})}function gB(t){const e=Is(t),r=e.getFullYear(),n=ju(t,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const i=sw(n),s=ju(t,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const o=sw(s);return e.getTime()>=i.getTime()?r+1:e.getTime()>=o.getTime()?r:r-1}function hj(t){const e=Is(t);return e.setHours(0,0,0,0),e}function pj(t){const e=Is(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}function Nne(t,e){const r=hj(t),n=hj(e),i=+r-pj(r),s=+n-pj(n);return Math.round((i-s)/Ane)}function Pne(t){const e=gB(t),r=ju(t,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),sw(r)}function Tne(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Rne(t){if(!Tne(t)&&typeof t!="number")return!1;const e=Is(t);return!isNaN(Number(e))}function jne(t){const e=Is(t),r=ju(t,0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}const Fne={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},One=(t,e,r)=>{let n;const i=Fne[t];return typeof i=="string"?n=i:e===1?n=i.one:n=i.other.replace("{{count}}",e.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function x1(t){return(e={})=>{const r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}const Dne={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ine={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Mne={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Bne={date:x1({formats:Dne,defaultWidth:"full"}),time:x1({formats:Ine,defaultWidth:"full"}),dateTime:x1({formats:Mne,defaultWidth:"full"})},Lne={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Une=(t,e,r,n)=>Lne[t];function kp(t){return(e,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let i;if(n==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=r!=null&&r.width?String(r.width):o;i=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=r!=null&&r.width?String(r.width):t.defaultWidth;i=t.values[a]||t.values[o]}const s=t.argumentCallback?t.argumentCallback(e):e;return i[s]}}const zne={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_ne={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Vne={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}
vendor: 15,472 bytes, line 448
448,Hne={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Gne={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Wne={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Kne=(t,e)=>{const r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},qne={ordinalNumber:Kne,era:kp({values:zne,defaultWidth:"wide"}),quarter:kp({values:_ne,defaultWidth:"wide",argumentCallback:t=>t-1}),month:kp({values:Vne,defaultWidth:"wide"}),day:kp({values:Hne,defaultWidth:"wide"}),dayPeriod:kp({values:Gne,defaultWidth:"wide",formattingValues:Wne,defaultFormattingWidth:"wide"})};function Ap(t){return(e,r={})=>{const n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;const o=s[0],a=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?Xne(a,d=>d.test(o)):Qne(a,d=>d.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;const u=e.slice(o.length);return{value:c,rest:u}}}function Qne(t,e){for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function Xne(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function Yne(t){return(e,r={})=>{const n=e.match(t.matchPattern);if(!n)return null;const i=n[0],s=e.match(t.parsePattern);if(!s)return null;let o=t.valueCallback?t.valueCallback(s[0]):s[0];o=r.valueCallback?r.valueCallback(o):o;const a=e.slice(i.length);return{value:o,rest:a}}}const Jne=/^(\d+)(th|st|nd|rd)?/i,Zne=/\d+/i,$ne={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},eie={any:[/^b/i,/^(a|c)/i]},tie={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rie={any:[/1/i,/2/i,/3/i,/4/i]},nie={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},iie={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sie={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},oie={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},aie={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},lie={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cie={ordinalNumber:Yne({matchPattern:Jne,parsePattern:Zne,valueCallback:t=>parseInt(t,10)}),era:Ap({matchPatterns:$ne,defaultMatchWidth:"wide",parsePatterns:eie,defaultParseWidth:"any"}),quarter:Ap({matchPatterns:tie,defaultMatchWidth:"wide",parsePatterns:rie,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Ap({matchPatterns:nie,defaultMatchWidth:"wide",parsePatterns:iie,defaultParseWidth:"any"}),day:Ap({matchPatterns:sie,defaultMatchWidth:"wide",parsePatterns:oie,defaultParseWidth:"any"}),dayPeriod:Ap({matchPatterns:aie,defaultMatchWidth:"any",parsePatterns:lie,defaultParseWidth:"any"})},uie={code:"en-US",formatDistance:One,formatLong:Bne,formatRelative:Une,localize:qne,match:cie,options:{weekStartsOn:0,firstWeekContainsDate:1}};function die(t){const e=Is(t);return Nne(e,jne(e))+1}function fie(t){const e=Is(t),r=+sw(e)-+Pne(e);return Math.round(r/pB)+1}function mB(t,e){var u,d,h,p;const r=Is(t),n=r.getFullYear(),i=Bb(),s=(e==null?void 0:e.firstWeekContainsDate)??((d=(u=e==null?void 0:e.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(h=i.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,o=ju(t,0);o.setFullYear(n+1,0,s),o.setHours(0,0,0,0);const a=sm(o,e),l=ju(t,0);l.setFullYear(n,0,s),l.setHours(0,0,0,0);const c=sm(l,e);return r.getTime()>=a.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function hie(t,e){var a,l,c,u;const r=Bb(),n=(e==null?void 0:e.firstWeekContainsDate)??((l=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,i=mB(t,e),s=ju(t,0);return s.setFullYear(i,0,n),s.setHours(0,0,0,0),sm(s,e)}function pie(t,e){const r=Is(t),n=+sm(r,e)-+hie(r,e);return Math.round(n/pB)+1}function Ct(t,e){const r=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return r+n}const Ca={y(t,e){const r=t.getFullYear(),n=r>0?r:1-r;return Ct(e==="yy"?n%100:n,e.length)},M(t,e){const r=t.getMonth();return e==="M"?String(r+1):Ct(r+1,2)},d(t,e){return Ct(t.getDate(),e.length)},a(t,e){const r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(t,e){return Ct(t.getHours()%12||12,e.length)},H(t,e){return Ct(t.getHours(),e.length)},m(t,e){return Ct(t.getMinutes(),e.length)},s(t,e){return Ct(t.getSeconds(),e.length)},S(t,e){const r=e.length,n=t.getMilliseconds(),i=Math.trunc(n*Math.pow(10,r-3));return Ct(i,e.length)}},fd={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gj={G:function(t,e,r){const n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if(e==="yo"){const n=t.getFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return Ca.y(t,e)},Y:function(t,e,r,n){const i=mB(t,n),s=i>0?i:1-i;if(e==="YY"){const o=s%100;return Ct(o,2)}return e==="Yo"?r.ordinalNumber(s,{unit:"year"}):Ct(s,e.length)},R:function(t,e){const r=gB(t);return Ct(r,e.length)},u:function(t,e){const r=t.getFullYear();return Ct(r,e.length)},Q:function(t,e,r){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return Ct(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return Ct(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){const n=t.getMonth();switch(e){case"M":case"MM":return Ca.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){const n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return Ct(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){const i=pie(t,n);return e==="wo"?r.ordinalNumber(i,{unit:"week"}):Ct(i,e.length)},I:function(t,e,r){const n=fie(t);return e==="Io"?r.ordinalNumber(n,{unit:"week"}):Ct(n,e.length)},d:function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):Ca.d(t,e)},D:function(t,e,r){const n=die(t);return e==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Ct(n,e.length)},E:function(t,e,r){const n=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){const i=t.getDay(),s=(i-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Ct(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){const i=t.getDay(),s=(i-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Ct(s,e.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,r){const n=t.getDay(),i=n===0?7:n;switch(e){case"i":return String(i);case"ii":return Ct(i,e.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,r){const n=t.getHours();let i;switch(n===12?i=fd.noon:n===0?i=fd.midnight:i=n/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,r){const n=t.getHours();let i;switch(n>=17?i=fd.evening:n>=12?i=fd.afternoon:n>=4?i=fd.morning:i=fd.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,r){if(e==="ho"){let n=t.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Ca.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):Ca.H(t,e)},K:function(t,e,r){const n=t.getHours()%12;return e==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Ct(n,e.length)},k:function(t,e,r){let n=t.getHours();return n===0&&(n=24),e==="ko"?r.ordinalNumber(n,{unit:"hour"}):Ct(n,e.length)},m:function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):Ca.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):Ca.s(t,e)},S:function(t,e){return Ca.S(t,e)},X:function(t,e,r){const n=t.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return vj(n);case"XXXX":case"XX":return hc(n);case"XXXXX":case"XXX":default:return hc(n,":")}},x:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"x":return vj(n);case"xxxx":case"xx":return hc(n);case"xxxxx":case"xxx":default:return hc(n,":")}},O:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+mj(n,":");case"OOOO":default:return"GMT"+hc(n,":")}},z:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+mj(n,":");case"zzzz":default:return"GMT"+hc(n,":")}},t:function(t,e,r){const n=Math.trunc(t.getTime()/1e3);return Ct(n,e.length)},T:function(t,e,r){const n=t.getTime();return Ct(n,e.length)}};function mj(t,e=""){const r=t>0?"-":"+",n=Math.abs(t),i=Math.trunc(n/60),s=n%60;return s===0?r+String(i):r+String(i)+e+Ct(s,2)}function vj(t,e){return t%60===0?(t>0?"-":"+")+Ct(Math.abs(t)/60,2):hc(t,e)}function hc(t,e=""){const r=t>0?"-":"+",n=Math.abs(t),i=Ct(Math.trunc(n/60),2),s=Ct(n%60,2);return r+i+e+s}const yj=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},vB=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},gie=(t,e)=>{const r=t.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return yj(t,e);let s;switch(n){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",yj(n,e)).replace("{{time}}",vB(i,e))},mie={p:vB,P:gie},vie=/^D+$/,yie=/^Y+$/,wie=["D","DD","YY","YYYY"];function bie(t){return vie.test(t)}function xie(t){return yie.test(t)}function Sie(t,e,r){const n=Eie(t,e,r);if(console.warn(n),wie.includes(t))throw new RangeError(n)}function Eie(t,e,r){const n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const kie=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Aie=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Cie=/^'([^]*?)'?$/,Nie=/''/g,Pie=/[a-zA-Z]/;function Tie(t,e,r){var u,d,h,p;const n=Bb(),i=n.locale??uie,s=n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,o=n.weekStartsOn??((p=(h=n.locale)==null?void 0:h.options)==null?void 0:p.weekStartsOn)??0,a=Is(t);if(!Rne(a))throw new RangeError("Invalid time value");let l=e.match(Aie).map(m=>{const g=m[0];if(g==="p"||g==="P"){const y=mie[g];return y(m,i.formatLong)}return m}).join("").match(kie).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const g=m[0];if(g==="'")return{isToken:!1,value:Rie(m)};if(gj[g])return{isToken:!0,value:m};
448if(g.match(Pie))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:m}});i.localize.preprocessor&&(l=i.localize.preprocessor(a,l));const c={firstWeekContainsDate:s,weekStartsOn:o,locale:i};return l.map(m=>{if(!m.isToken)return m.value;const g=m.value;(xie(g)||bie(g))&&Sie(g,e,String(t));const y=gj[g[0]];return y(a,g,i.localize,c)}).join("")}function Rie(t){const e=t.match(Cie);return e?e[1].replace(Nie,"'"):t}const yB=()=>{const[t]=W9(),[e,r]=x.useState(!1),{toast:n}=Sr(),i=da(),s=t.get("success"),o=t.get("canceled"),a=t.get("session_id");return x.useEffect(()=>{if(s==="true"&&a){r(!0),n({title:"Subscription successful!",description:"Your premium plan is now active.",variant:"default"}),console.log("Payment successful with session ID:",a);const l=setTimeout(()=>{i("/pricing",{replace:!0}),r(!1)},5e3);return()=>clearTimeout(l)}if(o==="true"){r(!0),n({title:"Subscription canceled",description:"You can try again anytime.",variant:"default"});const l=setTimeout(()=>{i("/pricing",{replace:!0}),r(!1)},5e3);return()=>clearTimeout(l)}},[s,o,a,n,i]),e?f.jsxs("div",{className:"mb-6",children:[s==="true"&&f.jsxs(Sn,{className:"border-green-500 bg-green-50 dark:bg-green-950/30",children:[f.jsx(Dz,{className:"h-4 w-4 text-green-600"}),f.jsx(Eh,{children:"Subscription Successful!"}),f.jsx(En,{children:"Your payment was processed successfully. Your premium subscription is now active."})]}),o==="true"&&f.jsxs(Sn,{className:"border-amber-500 bg-amber-50 dark:bg-amber-950/30",children:[f.jsx(ql,{className:"h-4 w-4 text-amber-600"}),f.jsx(Eh,{children:"Subscription Canceled"}),f.jsx(En,{children:"Your subscription process was canceled. You can try again anytime from the pricing page."})]})]}):null},jie=()=>{const{user:t}=xi(),{toast:e}=Sr(),{getDocumentHistory:r,isPaidUser:n}=rB(),[i,s]=x.useState("signed"),{data:o,isLoading:a,error:l,refetch:c}=kne({queryKey:["user-documents",t==null?void 0:t.id],queryFn:async()=>{if(!t)return{signed:[],verified:[]};try{const{data:m,error:g}=await Nt.from("documents").select("*").eq("user_id",t.id).order("created_at",{ascending:!1});if(g)throw g;const y=r();return{signed:m||[],verified:y||[]}}catch(m){return console.error("Error fetching documents:",m),e({title:"Error fetching documents",description:"Could not retrieve your document history",variant:"destructive"}),{signed:[],verified:[]}}},enabled:!!t}),u=(o==null?void 0:o.signed)||[],d=(o==null?void 0:o.verified)||[],h=m=>{try{return Tie(new Date(m),"PPp")}catch{return"Invalid date"}},p=m=>m==="completed"?f.jsxs("div",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",children:[f.jsx(gu,{className:"w-3 h-3 mr-1"}),"Completed"]}):f.jsxs("div",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-200",children:[f.jsx(vD,{className:"w-3 h-3 mr-1"}),m.charAt(0).toUpperCase()+m.slice(1)]});return f.jsxs("div",{className:"flex flex-col min-h-screen",children:[f.jsx(Ml,{}),f.jsxs("main",{className:"flex-grow container max-w-6xl py-12 px-4",children:[f.jsxs("div",{className:"mb-8",children:[f.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Document History"}),f.jsx("p",{className:"text-muted-foreground",children:"View your complete history of signed and verified documents"})]}),f.jsx(yB,{}),!n&&f.jsxs(Sn,{className:"mb-8 border-amber-500/50 bg-amber-50 dark:bg-amber-950/30",children:[f.jsx(wD,{className:"h-4 w-4 text-amber-500"}),f.jsxs(En,{className:"text-amber-700 dark:text-amber-400",children:["Free accounts only have access to verified documents from the last 24 hours.",f.jsx(St,{to:"/pricing",className:"ml-1 underline font-medium",children:"Upgrade to Pro"})," for unlimited document history."]})]}),f.jsxs(Fm,{defaultValue:"signed",value:i,onValueChange:s,children:[f.jsxs(Lh,{className:"mb-8",children:[f.jsxs(Wn,{value:"signed",className:"flex items-center gap-1",children:[f.jsx(Jn,{className:"h-4 w-4"}),"Documents You Signed"]}),f.jsxs(Wn,{value:"verified",className:"flex items-center gap-1",children:[f.jsx(pc,{className:"h-4 w-4"}),"Documents You Verified"]})]}),f.jsx(Kn,{value:"signed",children:a?f.jsx("div",{className:"text-center py-8",children:"Loading your documents..."}):u.length>0?f.jsx("div",{className:"space-y-4",children:u.map(m=>f.jsx(Vt,{className:"border border-purple-500/20",children:f.jsx(Jt,{className:"p-6",children:f.jsxs("div",{className:"flex justify-between items-start",children:[f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Jn,{className:"h-5 w-5 text-web3-purple"}),f.jsx("h3",{className:"font-medium text-lg",children:m.title}),p(m.status)]}),f.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(wN,{className:"h-4 w-4"}),f.jsxs("span",{children:["Signed on ",h(m.created_at)]})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[f.jsx("span",{className:"font-medium",children:"Signature type:"}),f.jsx("span",{className:"capitalize",children:m.signature_type})]})]})]}),f.jsx("div",{className:"flex flex-col gap-2",children:f.jsx(St,{to:`/verify?hash=${encodeURIComponent(m.hash)}`,children:f.jsxs(oe,{variant:"outline",size:"sm",className:"w-full text-xs",children:[f.jsx(pc,{className:"h-3.5 w-3.5 mr-1"}),"Verify"]})})})]})})},m.id))}):f.jsx(Vt,{children:f.jsxs(Jt,{className:"p-8 text-center flex flex-col items-center",children:[f.jsx(Jn,{className:"h-12 w-12 text-muted-foreground mb-4"}),f.jsx("h3",{className:"text-xl font-medium mb-2",children:"No documents signed yet"}),f.jsx("p",{className:"text-muted-foreground mb-6",children:"You haven't signed any documents with SecureSignNFT"}),f.jsx(St,{to:"/sign",children:f.jsx(oe,{className:"bg-web3-purple hover:bg-web3-purple/80",children:"Sign Your First Document"})})]})})}),f.jsx(Kn,{value:"verified",children:a?f.jsx("div",{className:"text-center py-8",children:"Loading verified documents..."}):d.length>0?f.jsx("div",{className:"space-y-4",children:d.map(m=>f.jsx(Vt,{className:"border border-purple-500/20",children:f.jsx(Jt,{className:"p-6",children:f.jsxs("div",{className:"flex justify-between items-start",children:[f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(pc,{className:"h-5 w-5 text-green-600"}),f.jsx("h3",{className:"font-medium text-lg",children:m.title}),f.jsxs("div",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",children:[f.jsx(gu,{className:"w-3 h-3 mr-1"}),"Verified"]})]}),f.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(wN,{className:"h-4 w-4"}),f.jsxs("span",{children:["Verified on ",h(m.verifiedAt)]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-medium",children:"Signed by:"}),f.jsx("span",{children:m.signer})]})]})]}),f.jsx("div",{className:"flex flex-col gap-2",children:f.jsx(St,{to:`/verify?hash=${encodeURIComponent(m.hash)}`,children:f.jsxs(oe,{variant:"outline",size:"sm",className:"w-full text-xs",children:[f.jsx(pc,{className:"h-3.5 w-3.5 mr-1"}),"View Verification"]})})})]})})},m.hash))}):f.jsx(Vt,{children:f.jsxs(Jt,{className:"p-8 text-center flex flex-col items-center",children:[f.jsx(pc,{className:"h-12 w-12 text-muted-foreground mb-4"}),f.jsx("h3",{className:"text-xl font-medium mb-2",children:"No documents verified yet"}),f.jsx("p",{className:"text-muted-foreground mb-6",children:"You haven't verified any documents with SecureSignNFT"}),f.jsx(St,{to:"/verify",children:f.jsx(oe,{className:"bg-web3-purple hover:bg-web3-purple/80",children:"Verify a Document"})})]})})})]})]}),f.jsx(Bl,{})]})},Fie=({onFilesUpload:t,maxFiles:e=10})=>{const[r,n]=x.useState([]),[i,s]=x.useState(!1),{toast:o}=Sr(),a=h=>
448{h.preventDefault(),h.stopPropagation(),h.type==="dragenter"||h.type==="dragover"?s(!0):h.type==="dragleave"&&s(!1)},l=h=>{h.preventDefault(),h.stopPropagation(),s(!1),h.dataTransfer.files&&h.dataTransfer.files.length>0&&u(Array.from(h.dataTransfer.files))},c=h=>{h.target.files&&h.target.files.length>0&&u(Array.from(h.target.files))},u=h=>{const p=h.filter(m=>m.type==="application/pdf");if(p.length!==h.length&&o({title:"Invalid file type",description:"Only PDF files are accepted",variant:"destructive"}),p.length>0){const g=[...r,...p].filter((y,v,w)=>v===w.findIndex(b=>b.name===y.name&&b.size===y.size));if(g.length>e){o({title:"Too many files",description:`You can upload a maximum of ${e} files`,variant:"destructive"});const y=g.slice(0,e);n(y),t(y)}else n(g),t(g),o({title:"Files uploaded",description:`${p.length} PDF file(s) added successfully`})}},d=h=>{const p=[...r];p.splice(h,1),n(p),t(p)};return f.jsx(Vt,{className:`border border-dashed ${i?"border-web3-purple":"border-gray-500"} bg-secondary/50`,children:f.jsxs(Jt,{className:"p-6",children:[f.jsxs("div",{className:"flex flex-col items-center justify-center p-6 rounded-md",onDragEnter:a,onDragLeave:a,onDragOver:a,onDrop:l,children:[f.jsx("div",{className:"mb-4 p-3 rounded-full bg-web3-purple/20",children:f.jsx(gk,{className:"h-10 w-10 text-web3-purple"})}),f.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Upload PDF Files"}),f.jsx("p",{className:"text-muted-foreground text-center mb-4",children:"Drag and drop PDF files here, or click to browse"}),f.jsxs("div",{className:"relative",children:[f.jsx(hr,{id:"file-upload",type:"file",accept:"application/pdf",onChange:c,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer",multiple:!0}),f.jsx(oe,{className:"bg-web3-purple hover:bg-web3-purple/80",children:"Select PDFs"})]})]}),r.length>0&&f.jsxs("div",{className:"mt-6 space-y-2",children:[f.jsxs("h4",{className:"font-medium",children:["Uploaded Files (",r.length,")"]}),f.jsx("div",{className:"max-h-60 overflow-y-auto space-y-2 pr-2",children:r.map((h,p)=>f.jsxs("div",{className:"flex items-center justify-between p-3 bg-secondary rounded-md",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"p-2 rounded-full bg-web3-purple/20",children:f.jsx(Jn,{className:"h-5 w-5 text-web3-purple"})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium truncate max-w-[200px]",children:h.name}),f.jsxs("p",{className:"text-xs text-muted-foreground",children:[(h.size/1024/1024).toFixed(2)," MB"]})]})]}),f.jsx(oe,{variant:"ghost",size:"icon",onClick:()=>d(p),className:"text-muted-foreground hover:text-destructive",children:f.jsx(Tm,{className:"h-4 w-4"})})]},p))})]})]})})},Oie=()=>{const[t,e]=x.useState([]),[r,n]=x.useState(!1),{toast:i}=Sr(),s=u=>{e(u)},o=u=>{if(u===0)return;const d=[...t],h=d[u];d[u]=d[u-1],d[u-1]=h,e(d)},a=u=>{if(u===t.length-1)return;const d=[...t],h=d[u];d[u]=d[u+1],d[u+1]=h,e(d)},l=u=>{const d=[...t];d.splice(u,1),e(d)},c=()=>{if(t.length<2){i({title:"Not enough files",description:"You need at least 2 PDF files to merge",variant:"destructive"});return}n(!0),setTimeout(()=>{n(!1),i({title:"PDFs Merged",description:`Successfully merged ${t.length} PDF files`});const u="merged-document.pdf",d=document.createElement("a");d.href=URL.createObjectURL(t[0]),d.download=u,d.click()},2e3)};return f.jsx("div",{className:"space-y-8",children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[f.jsxs("div",{className:"space-y-6",children:[f.jsx(Fie,{onFilesUpload:s}),f.jsxs(oe,{onClick:c,className:"w-full bg-web3-purple hover:bg-web3-purple/80",disabled:t.length<2||r,children:[f.jsx(qz,{className:"h-4 w-4 mr-2"}),r?"Merging PDFs...":"Merge PDFs"]})]}),f.jsxs("div",{children:[f.jsx(Vt,{children:f.jsxs(Jt,{className:"p-6",children:[f.jsx("h3",{className:"text-lg font-medium mb-4",children:"Merge Order"}),t.length===0?f.jsx("div",{className:"flex items-center justify-center p-8 border border-dashed rounded-md text-muted-foreground",children:f.jsx("p",{children:"Upload PDF files to arrange their order"})}):f.jsx("div",{className:"space-y-3 max-h-96 overflow-y-auto pr-2",children:t.map((u,d)=>f.jsxs("div",{className:"flex items-center justify-between p-3 bg-secondary rounded-md",children:[f.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[f.jsx("div",{className:"bg-web3-purple/20 rounded-full p-2 flex-shrink-0",children:f.jsx(Jn,{className:"h-4 w-4 text-web3-purple"})}),f.jsx("span",{className:"font-medium text-sm truncate max-w-[150px]",children:u.name})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(oe,{variant:"ghost",size:"icon",onClick:()=>o(d),disabled:d===0,className:"h-8 w-8",children:f.jsx(jz,{className:"h-4 w-4"})}),f.jsx(oe,{variant:"ghost",size:"icon",onClick:()=>a(d),disabled:d===t.length-1,className:"h-8 w-8",children:f.jsx(Tz,{className:"h-4 w-4"})}),f.jsx(oe,{variant:"ghost",size:"icon",onClick:()=>l(d),className:"h-8 w-8 text-muted-foreground hover:text-destructive",children:f.jsx($z,{className:"h-4 w-4"})})]})]},d))})]})}),f.jsxs("div",{className:"mt-6 text-sm text-muted-foreground",children:[f.jsx("h4",{className:"font-medium mb-2",children:"How to merge PDFs:"}),f.jsxs("ol",{className:"list-decimal list-inside space-y-1 ml-2",children:[f.jsx("li",{children:"Upload the PDF files you want to merge"}),f.jsx("li",{children:"Arrange them in the desired order using the arrows"}),f.jsx("li",{children:'Click the "Merge PDFs" button'}),f.jsx("li",{children:"Download your merged document"})]})]})]})]})})};function wj(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function wB(...t){return e=>{let r=!1;const n=t.map(i=>{const s=wj(i,e);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let i=0;i<n.length;i++){const s=n[i];typeof s=="function"?s():wj(t[i],null)}}}}function bB(...t){return x.useCallback(wB(...t),t)}function bj(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t==null||t(i),r===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function Die(t,e){return x.useReducer((r,n)=>e[r][n]??r,t)}var xB=t=>{const{present:e,children:r}=t,n=Iie(e),i=typeof r=="function"?r({present:n.isPresent}):x.Children.only(r),s=bB(n.ref,Mie(i));return typeof r=="function"||n.isPresent?x.cloneElement(i,{ref:s}):null};xB.displayName="Presence";
vendor: 3,323 bytes, line 448
448function Iie(t){const[e,r]=x.useState(),n=x.useRef({}),i=x.useRef(t),s=x.useRef("none"),o=t?"mounted":"unmounted",[a,l]=Die(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const c=ov(n.current);s.current=a==="mounted"?c:"none"},[a]),vi(()=>{const c=n.current,u=i.current;if(u!==t){const h=s.current,p=ov(c);t?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),vi(()=>{if(e){let c;const u=e.ownerDocument.defaultView??window,d=p=>{const g=ov(n.current).includes(p.animationName);if(p.target===e&&g&&(l("ANIMATION_END"),!i.current)){const y=e.style.animationFillMode;e.style.animationFillMode="forwards",c=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=y)})}},h=p=>{p.target===e&&(s.current=ov(n.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{u.clearTimeout(c),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function ov(t){return(t==null?void 0:t.animationName)||"none"}function Mie(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var SB=x.forwardRef((t,e)=>{const{children:r,...n}=t,i=x.Children.toArray(r),s=i.find(Lie);if(s){const o=s.props.children,a=i.map(l=>l===s?x.Children.count(o)>1?x.Children.only(null):x.isValidElement(o)?o.props.children:null:l);return f.jsx(cE,{...n,ref:e,children:x.isValidElement(o)?x.cloneElement(o,void 0,a):null})}return f.jsx(cE,{...n,ref:e,children:r})});SB.displayName="Slot";var cE=x.forwardRef((t,e)=>{const{children:r,...n}=t;if(x.isValidElement(r)){const i=zie(r),s=Uie(n,r.props);return r.type!==x.Fragment&&(s.ref=e?wB(e,i):i),x.cloneElement(r,s)}return x.Children.count(r)>1?x.Children.only(null):null});cE.displayName="SlotClone";var Bie=({children:t})=>f.jsx(f.Fragment,{children:t});function Lie(t){return x.isValidElement(t)&&t.type===Bie}function Uie(t,e){const r={...e};for(const n in e){const i=t[n],s=e[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...a)=>{s(...a),i(...a)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...t,...r}}function zie(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var _ie=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],EB=_ie.reduce((t,e)=>{const r=x.forwardRef((n,i)=>{const{asChild:s,...o}=n,a=s?SB:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...o,ref:i}
448)});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{}),XA="Checkbox",[Vie,ioe]=mo(XA),[Hie,Gie]=Vie(XA),kB=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:s,required:o,disabled:a,value:l="on",onCheckedChange:c,form:u,...d}=t,[h,p]=x.useState(null),m=bB(e,E=>p(E)),g=x.useRef(!1),y=h?u||!!h.closest("form"):!0,[v=!1,w]=yo({prop:i,defaultProp:s,onChange:c}),b=x.useRef(v);return x.useEffect(()=>{const E=h==null?void 0:h.form;if(E){const A=()=>w(b.current);return E.addEventListener("reset",A),()=>E.removeEventListener("reset",A)}},[h,w]),f.jsxs(Hie,{scope:r,state:v,disabled:a,children:[f.jsx(EB.button,{type:"button",role:"checkbox","aria-checked":Ol(v)?"mixed":v,"aria-required":o,"data-state":NB(v),"data-disabled":a?"":void 0,disabled:a,value:l,...d,ref:m,onKeyDown:bj(t.onKeyDown,E=>{E.key==="Enter"&&E.preventDefault()}),onClick:bj(t.onClick,E=>{w(A=>Ol(A)?!0:!A),y&&(g.current=E.isPropagationStopped(),g.current||E.stopPropagation())})}),y&&f.jsx(Wie,{control:h,bubbles:!g.current,name:n,value:l,checked:v,required:o,disabled:a,form:u,style:{transform:"translateX(-100%)"},defaultChecked:Ol(s)?!1:s})]})});kB.displayName=XA;var AB="CheckboxIndicator",CB=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...i}=t,s=Gie(AB,r);return f.jsx(xB,{present:n||Ol(s.state)||s.state===!0,children:f.jsx(EB.span,{"data-state":NB(s.state),"data-disabled":s.disabled?"":void 0,...i,ref:e,style:{pointerEvents:"none",...t.style}})})});CB.displayName=AB;var Wie=t=>{const{control:e,checked:r,bubbles:n=!0,defaultChecked:i,...s}=t,o=x.useRef(null),a=qw(r),l=lA(e);x.useEffect(()=>{const u=o.current,d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(a!==r&&p){const m=new Event("click",{bubbles:n});u.indeterminate=Ol(r),p.call(u,Ol(r)?!1:r),u.dispatchEvent(m)}},[a,r,n]);const c=x.useRef(Ol(r)?!1:r);return f.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i??c.current,...s,tabIndex:-1,ref:o,style:{...t.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Ol(t){return t==="indeterminate"}function NB(t){return Ol(t)?"indeterminate":t?"checked":"unchecked"}var PB=kB,Kie=CB;const TB=x.forwardRef(({className:t,...e},r)=>f.jsx(PB,{ref:r,className:Te("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",t),...e,children:f.jsx(Kie,{className:Te("flex items-center justify-center text-current"),children:f.jsx(gu,{className:"h-3 w-3"})})}));TB.displayName=PB.displayName;const qie=()=>{const[t,e]=x.useState(null),[r,n]=x.useState(0),[i,s]=x.useState([]),[o,a]=x.useState("pages"),[l,c]=x.useState(""),[u,d]=x.useState(!1),[h,p]=x.useState("split"),[m,g]=x.useState(""),[y,v]=x.useState({x:100,y:100}),[w,b]=x.useState(!1),{toast:E}=Sr(),A=L=>{e(L);const M=Math.floor(Math.random()*10)+5;n(M),s([]),c(""),p("split"),g(""),b(!1),E({title:"PDF Uploaded Successfully",description:`${L.name} is ready to use`})},k=L=>{i.includes(L)?s(i.filter(M=>M!==L)):s([...i,L])},P=()=>{if(!t){E({title:"No file selected",description:"Please upload a PDF file first",variant:"destructive"});return}if(o==="pages"&&i.length===0){E({title:"No pages selected",description:"Please select at least one page to extract",variant:"destructive"});return}if(o==="range"&&!l.trim()){E({title:"No range specified",description:"Please specify a page range (e.g., 1-3,5,7-9)",variant:"destructive"});return}d(!0),setTimeout(()=>{d(!1),E(o==="pages"?{title:"PDF Split Complete",description:`Extracted ${i.length} pages from the document`}:{title:"PDF Split Complete",description:`Split PDF according to range: ${l}`}),D("extracted-pages.pdf")},1500)},C=()=>{if(!t){E({title:"No file selected",description:"Please upload a PDF file first",variant:"destructive"});return}p("text"),E({title:"Text Tool Selected",description:"Use the form to add text to your document"})},N=()=>
448{if(!t){E({title:"No file selected",description:"Please upload a PDF file first",variant:"destructive"});return}p("signature"),b(!0),E({title:"Signature Tool Selected",description:"Draw your signature in the provided area"})},R=()=>{if(!m.trim()){E({title:"No text entered",description:"Please enter some text to add to the document",variant:"destructive"});return}E({title:"Text Added",description:"Text has been added to your document"})},F=()=>{E({title:"Signature Applied",description:"Your signature has been added to the document"})},B=()=>{t&&(E({title:"Document Saved",description:"Your edited document has been saved"}),D("edited-document.pdf"))},D=L=>{if(!t)return;const M=document.createElement("a");M.href=URL.createObjectURL(t),M.download=L,M.click()};return f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[f.jsxs("div",{className:"space-y-6",children:[t?f.jsx(Vt,{children:f.jsxs(Jt,{className:"p-6",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[f.jsx("div",{className:"p-2 rounded-full bg-web3-purple/20",children:f.jsx(Jn,{className:"h-6 w-6 text-web3-purple"})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium truncate max-w-[300px]",children:t.name}),f.jsxs("p",{className:"text-xs text-muted-foreground",children:[r," pages · ",(t.size/1024/1024).toFixed(2)," MB"]})]})]}),f.jsxs("div",{className:"flex space-x-4 mb-6",children:[f.jsxs(oe,{variant:h==="split"?"default":"outline",className:h==="split"?"bg-web3-purple hover:bg-web3-purple/80":"",onClick:()=>p("split"),children:[f.jsx(SN,{className:"h-4 w-4 mr-2"}),"Split PDF"]}),f.jsxs(oe,{variant:h==="text"?"default":"outline",className:h==="text"?"bg-web3-purple hover:bg-web3-purple/80":"",onClick:C,children:[f.jsx(xS,{className:"h-4 w-4 mr-2"}),"Add Text"]}),f.jsxs(oe,{variant:h==="signature"?"default":"outline",className:h==="signature"?"bg-web3-purple hover:bg-web3-purple/80":"",onClick:N,children:[f.jsx(xN,{className:"h-4 w-4 mr-2"}),"Add Signature"]})]}),h==="split"&&f.jsxs("div",{className:"space-y-4 mb-6",children:[f.jsxs("div",{className:"flex space-x-4",children:[f.jsx(oe,{variant:o==="pages"?"default":"outline",className:o==="pages"?"bg-web3-purple hover:bg-web3-purple/80":"",onClick:()=>a("pages"),children:"Extract Pages"}),f.jsx(oe,{variant:o==="range"?"default":"outline",className:o==="range"?"bg-web3-purple hover:bg-web3-purple/80":"",onClick:()=>a("range"),children:"Page Range"})]}),o==="pages"?f.jsxs("div",{className:"space-y-3",children:[f.jsx("h3",{className:"text-sm font-medium",children:"Select pages to extract:"}),f.jsx("div",{className:"grid grid-cols-5 gap-2",children:Array.from({length:r},(L,M)=>M+1).map(L=>f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(TB,{id:`page-${L}`,checked:i.includes(L),onCheckedChange:()=>k(L)}),f.jsx("label",{htmlFor:`page-${L}`,className:"text-sm cursor-pointer",children:L})]},L))})]}):f.jsxs("div",{className:"space-y-2",children:[f.jsx("h3",{className:"text-sm font-medium",children:"Enter page range:"}),f.jsxs("div",{children:[f.jsx(hr,{value:l,onChange:L=>c(L.target.value),placeholder:"e.g., 1-3,5,7-9"}),f.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Specify single pages with numbers, ranges with hyphens, separate with commas"})]})]}),f.jsx(oe,{className:"w-full bg-web3-purple hover:bg-web3-purple/80",onClick:P,disabled:u,children:u?f.jsx(f.Fragment,{children:"Processing..."}):f.jsxs(f.Fragment,{children:[f.jsx(SN,{className:"h-4 w-4 mr-2"}),"Extract Pages"]})})]}),h==="text"&&f.jsxs("div",{className:"p-4 border rounded-md mb-6",children:[f.jsx("p",{className:"text-sm text-center mb-4",children:"Enter text to add to your document"}),f.jsx(hr,{placeholder:"Enter text...",value:m,onChange:L=>g(L.target.value),className:"mb-4"}),f.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-4",children:[f.jsxs("div",{children:[f.jsx("label",{htmlFor:"x-pos",className:"text-xs",children:"X Position"}),f.jsx(hr,{id:"x-pos",type:"number",value:y.x,onChange:L=>v({...y,x:parseInt(L.target.value)||0})})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"y-pos",className:"text-xs",children:"Y Position"}),f.jsx(hr,{id:"y-pos",type:"number",value:y.y,onChange:L=>v({...y,y:parseInt(L.target.value)||0})})]})]}),f.jsxs(oe,{className:"w-full bg-web3-purple hover:bg-web3-purple/80",onClick:R,children:[f.jsx(xS,{className:"h-4 w-4 mr-2"}),"Apply Text"]})]}),h==="signature"&&f.jsxs("div",{className:"p-4 border rounded-md mb-6",children:[f.jsx("p",{className:"text-sm text-center mb-4",children:"Draw your signature in the box below"}),f.jsx("div",{className:"border border-dashed p-2 h-32 rounded-md mb-4 flex items-center justify-center bg-gray-50",children:f.jsx("p",{className:"text-muted-foreground text-sm text-center",children:w?"Click and drag to draw your signature":"Signature canvas would appear here"})}),f.jsxs(oe,{className:"w-full bg-web3-purple hover:bg-web3-purple/80",onClick:F,children:[f.jsx(xN,{className:"h-4 w-4 mr-2"}),"Apply Signature"]})]}),h!=="split"&&f.jsxs(oe,{className:"w-full mt-4 bg-green-600 hover:bg-green-700",onClick:B,children:[f.jsx(by,{className:"h-4 w-4 mr-2"}),"Save Document"]})]})}):f.jsx(oA,{onFileUpload:A}),f.jsxs("div",{className:"text-sm text-muted-foreground",children:[f.jsx("h4",{className:"font-medium mb-2",children:"PDF Features:"}),f.jsxs("ul",{className:"list-disc list-inside space-y-1 ml-2",children:[f.jsx("li",{children:"Extract specific pages from a PDF"}),f.jsx("li",{children:"Split by page ranges (e.g., 1-5, 7-10)"}),f.jsx("li",{children:"Add text to your documents"}),f.jsx("li",{children:"Insert signatures on your PDFs"}),f.jsx("li",{children:"All processing happens locally for privacy"})]})]})]}),f.jsx("div",{children:f.jsx(aA,{file:t})})]})};function na(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t==null||t(i),r===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function xj(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function RB(...t){return e=>{let r=!1;const n=t.map(i=>{const s=xj(i,e);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let i=0;i<n.length;i++){const s=n[i];typeof s=="function"?s():xj(t[i],null)}}}}function Ch(...t){return x.useCallback(RB(...t),t)}var ow=x.forwardRef((t,e)=>{const{children:r,...n}=t,i=x.Children.toArray(r),s=i.find(Xie);if(s){const o=s.props.children,a=i.map(l=>l===s?x.Children.count(o)>1?x.Children.only(null):x.isValidElement(o)?o.props.children:null:l);return f.jsx(uE,{...n,ref:e,children:x.isValidElement(o)?x.cloneElement(o,void 0,a):null})}return f.jsx(uE,{...n,ref:e,children:r})});ow.displayName="Slot";var uE=x.forwardRef((t,e)=>{const{children:r,...n}=t;if(x.isValidElement(r)){const i=Jie(r),s=Yie(n,r.props);return r.type!==x.Fragment&&(s.ref=e?RB(e,i):i),x.cloneElement(r,s)}return x.Children.count(r)>1?x.Children.only(null):null});uE.displayName="SlotClone";var Qie=({children:t})=>f.jsx(f.Fragment,{children:t});function Xie(t){return x.isValidElement(t)&&t.type===Qie}function Yie(t,e){const r={...e};for(const n in e){const i=t[n],s=e[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...a)=>{s(...a),i(...a)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}
vendor: 9,846 bytes, line 448
448:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...t,...r}}function Jie(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var Zie=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Jm=Zie.reduce((t,e)=>{const r=x.forwardRef((n,i)=>{const{asChild:s,...o}=n,a=s?ow:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...o,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function $ie(t){const e=t+"CollectionProvider",[r,n]=mo(e),[i,s]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:m,children:g}=p,y=ne.useRef(null),v=ne.useRef(new Map).current;return f.jsx(i,{scope:m,itemMap:v,collectionRef:y,children:g})};o.displayName=e;const a=t+"CollectionSlot",l=ne.forwardRef((p,m)=>{const{scope:g,children:y}=p,v=s(a,g),w=Ch(m,v.collectionRef);return f.jsx(ow,{ref:w,children:y})});l.displayName=a;const c=t+"CollectionItemSlot",u="data-radix-collection-item",d=ne.forwardRef((p,m)=>{const{scope:g,children:y,...v}=p,w=ne.useRef(null),b=Ch(m,w),E=s(c,g);return ne.useEffect(()=>(E.itemMap.set(w,{ref:w,...v}),()=>void E.itemMap.delete(w))),f.jsx(ow,{[u]:"",ref:b,children:y})});d.displayName=c;function h(p){const m=s(t+"CollectionConsumer",p);return ne.useCallback(()=>{const y=m.collectionRef.current;if(!y)return[];const v=Array.from(y.querySelectorAll(`[${u}]`));return Array.from(m.itemMap.values()).sort((E,A)=>v.indexOf(E.ref.current)-v.indexOf(A.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:o,Slot:l,ItemSlot:d},h,n]}var S1="rovingFocusGroup.onEntryFocus",ese={bubbles:!1,cancelable:!0},Lb="RovingFocusGroup",[dE,jB,tse]=$ie(Lb),[rse,FB]=mo(Lb,[tse]),[nse,ise]=rse(Lb),OB=x.forwardRef((t,e)=>f.jsx(dE.Provider,{scope:t.__scopeRovingFocusGroup,children:f.jsx(dE.Slot,{scope:t.__scopeRovingFocusGroup,children:f.jsx(sse,{...t,ref:e})})}));OB.displayName=Lb;var sse=x.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=t,h=x.useRef(null),p=Ch(e,h),m=Mh(s),[g=null,y]=yo({prop:o,defaultProp:a,onChange:l}),[v,w]=x.useState(!1),b=wr(c),E=jB(r),A=x.useRef(!1),[k,P]=x.useState(0);return x.useEffect(()=>{const C=h.current;if(C)return C.addEventListener(S1,b),()=>C.removeEventListener(S1,b)},[b]),f.jsx(nse,{scope:r,orientation:n,dir:m,loop:i,currentTabStopId:g,onItemFocus:x.useCallback(C=>y(C),[y]),onItemShiftTab:x.useCallback(()=>w(!0),[]),onFocusableItemAdd:x.useCallback(()=>P(C=>C+1),[]),onFocusableItemRemove:x.useCallback(()=>P(C=>C-1),[]),children:f.jsx(Jm.div,{tabIndex:v||k===0?-1:0,"data-orientation":n,...d,ref:p,style:{outline:"none",...t.style},onMouseDown:na(t.onMouseDown,()=>{A.current=!0}),onFocus:na(t.onFocus,C=>{const N=!A.current;if(C.target===C.currentTarget&&N&&!v){const R=new CustomEvent(S1,ese);if(C.currentTarget.dispatchEvent(R),!R.defaultPrevented){const F=E().filter(_=>_.focusable),B=F.find(_=>_.active),D=F.find(_=>_.id===g),M=[B,D,...F].filter(Boolean).map(_=>_.ref.current);MB(M,u)}}A.current=!1}),onBlur:na(t.onBlur,()=>w(!1))})})}),DB="RovingFocusGroupItem",IB=x.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:s,...o}=t,a=Pl(),l=s||a,c=ise(DB,r),u=c.currentTabStopId===l,d=jB(r),{onFocusableItemAdd:h,onFocusableItemRemove:p}=c;return x.useEffect(()=>{if(n)return h(),()=>p()},[n,h,p]),f.jsx(dE.ItemSlot,{scope:r,id:l,focusable:n,active:i,children:f.jsx(Jm.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...o,ref:e,onMouseDown:na(t.onMouseDown,m=>{n?c.onItemFocus(l):m.preventDefault()}),onFocus:na(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:na(t.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const g=lse(m,c.orientation,c.dir);if(g!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let v=d().filter(w=>w.focusable).map(w=>w.ref.current);if(g==="last")v.reverse();else if(g==="prev"||g==="next"){g==="prev"&&v.reverse();const w=v.indexOf(m.currentTarget);v=c.loop?cse(v,w+1):v.slice(w+1)}setTimeout(()=>MB(v))}})})})});IB.displayName=DB;var ose={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ase(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function lse(t,e,r){const n=ase(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return ose[n]}function MB(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function cse(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var use=OB,dse=IB;function fse(t,e){return x.useReducer((r,n)=>e[r][n]??r,t)}var BB=t=>{const{present:e,children:r}=t,n=hse(e),i=typeof r=="function"?r({present:n.isPresent}):x.Children.only(r),s=Ch(n.ref,pse(i));return typeof r=="function"||n.isPresent?x.cloneElement(i,{ref:s}):null};BB.displayName="Presence";function hse(t){const[e,r]=x.useState(),n=x.useRef({}),i=x.useRef(t),s=x.useRef("none"),o=t?"mounted":"unmounted",[a,l]=fse(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const c=av(n.current);s.current=a==="mounted"?c:"none"},[a]),vi(()=>{const c=n.current,u=i.current;if(u!==t){const h=s.current,p=av(c);t?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),vi(()=>{if(e){let c;const u=e.ownerDocument.defaultView??window,d=p=>{const g=av(n.current).includes(p.animationName);if(p.target===e&&g&&(l("ANIMATION_END"),!i.current)){const y=e.style.animationFillMode;e.style.animationFillMode="forwards",c=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=y)})}},h=p=>{p.target===e&&(s.current=av(n.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{u.clearTimeout(c),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function av(t){return(t==null?void 0:t.animationName)||"none"}function pse(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var YA="Radio",[gse,LB]=mo(YA),[mse,vse]=gse(YA),UB=x.forwardRef((t,e)=>{const{__scopeRadio:r,name:n,checked:i=!1,required:s,disabled:o,value:a="on",onCheck:l,form:c,...u}=t,[d,h]=x.useState(null),p=Ch(e,y=>h(y)),m=x.useRef(!1),g=d?c||!!d.closest("form"):!0;return f.jsxs(mse,{scope:r,checked:i,disabled:o,children:[f.jsx(Jm.button,{type:"button",role:"radio","aria-checked":i,"data-state":VB(i),"data-disabled":o?"":void 0,disabled:o,value:a,...u,ref:p,onClick:na(t.onClick,y=>{i||l==null||l(),g&&(m.current=y.isPropagationStopped(),m.current||y.stopPropagation())})}),g&&f.jsx(yse,{control:d,bubbles:!m.current,name:n,value:a,checked:i,required:s,disabled:o,form:c,style:{transform:"translateX(-100%)"}})]})});UB.displayName=YA;var zB="RadioIndicator",_B=x.forwardRef((t,e)=>{const{__scopeRadio:r,forceMount:n,...i}=t,s=vse(zB,r);return f.jsx(BB,{present:n||s.checked,children:f.jsx(Jm.span,{"data-state":VB(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:e})})});_B.displayName=zB;var yse=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=x.useRef(null),o=qw(r),a=lA(e);return x.useEffect(()=>{const l=s.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==r&&d){const h=new Event("click",{bubbles:n});d.call(l,r),l.dispatchEvent(h)}},[o,r,n]),f.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:s,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function VB(t){return t?"checked":"unchecked"}var wse=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],JA="RadioGroup",[bse,soe]=mo(JA,[FB,LB]),HB=FB(),GB=LB(),[xse,Sse]=bse(JA),WB=x.forwardRef((t,e)=>{const{__scopeRadioGroup:r,name:n,defaultValue:i,value:s,required:o=!1,disabled:a=!1,orientation:l,dir:c,loop:u=!0,onValueChange:d,...h}=t,p=HB(r),m=Mh(c),[g,y]=yo({prop:s,defaultProp:i,onChange:d});return f.jsx(xse,{scope:r,name:n,required:o,disabled:a,value:g,onValueChange:y,children:f.jsx(use,{asChild:!0,...p,orientation:l,dir:m,loop:u,children:f.jsx(Jm.div,{role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:m,...h,ref:e})})})});WB.displayName=JA;var KB="RadioGroupItem",qB=x.forwardRef((t,e)=>{const{__scopeRadioGroup:r,disabled:n,...i}=t,s=Sse(KB,r),o=s.disabled||n,a=HB(r),l=GB(r),c=x.useRef(null),u=Ch(e,c),d=s.value===i.value,h=x.useRef(!1);return x.useEffect(()=>{const p=g=>{wse.includes(g.key)&&(h.current=!0)},m=()=>h.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",m)}},[]),f.jsx(dse,{asChild:!0,...a,focusable:!o,active:d,children:f.jsx(UB,{disabled:o,required:s.required,
448checked:d,...l,...i,name:s.name,ref:u,onCheck:()=>s.onValueChange(i.value),onKeyDown:na(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:na(i.onFocus,()=>{var p;h.current&&((p=c.current)==null||p.click())})})})});qB.displayName=KB;var Ese="RadioGroupIndicator",QB=x.forwardRef((t,e)=>{const{__scopeRadioGroup:r,...n}=t,i=GB(r);return f.jsx(_B,{...i,...n,ref:e})});QB.displayName=Ese;var XB=WB,YB=qB,kse=QB;const Qv=x.forwardRef(({className:t,...e},r)=>f.jsx(XB,{className:Te("grid gap-2",t),...e,ref:r}));Qv.displayName=XB.displayName;const rn=x.forwardRef(({className:t,...e},r)=>f.jsx(YB,{ref:r,className:Te("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:f.jsx(kse,{className:"flex items-center justify-center",children:f.jsx("div",{className:"h-2 w-2 rounded-full bg-current"})})}));rn.displayName=YB.displayName;const Ase=()=>{const[t,e]=x.useState(null),[r,n]=x.useState(null),[i,s]=x.useState("to-pdf"),[o,a]=x.useState("docx"),[l,c]=x.useState("docx"),[u,d]=x.useState("standard"),[h,p]=x.useState(!1),{toast:m}=Sr(),g=b=>{if(b.target.files&&b.target.files[0]){const E=b.target.files[0];e(E),n(null),m({title:"File uploaded",description:`${E.name} has been uploaded successfully`})}},y=()=>t?i==="to-pdf"?[".docx",".doc",".xlsx",".pptx",".jpg",".png",".txt"].some(E=>t.name.toLowerCase().endsWith(E)):t.name.toLowerCase().endsWith(".pdf"):!1,v=()=>{if(!t){m({title:"No file selected",description:"Please upload a file first",variant:"destructive"});return}if(!y()){m({title:"Invalid file type",description:i==="to-pdf"?"Please upload a document file (DOCX, DOC, XLSX, PPTX, JPG, PNG, TXT)":"Please upload a PDF file",variant:"destructive"});return}p(!0),setTimeout(()=>{if(p(!1),i==="to-pdf"){const b=new Blob([t],{type:"application/pdf"}),E=new File([b],t.name.split(".")[0]+".pdf",{type:"application/pdf"});n(E),m({title:"Conversion Complete",description:"Your document has been converted to PDF"})}else{m({title:"Conversion Complete",description:`Your PDF has been converted to ${l.toUpperCase()}`});const b=t.name.replace(".pdf",`.${l}`),E=document.createElement("a");E.href=URL.createObjectURL(t),E.download=b,E.click()}},2e3)},w=()=>
448{if(!r)return;const b=document.createElement("a");b.href=URL.createObjectURL(r),b.download=r.name,b.click()};return f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[f.jsxs("div",{className:"space-y-6",children:[f.jsx(Vt,{children:f.jsx(Jt,{className:"p-6",children:f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex space-x-4 mb-6",children:[f.jsx(oe,{variant:i==="to-pdf"?"default":"outline",className:i==="to-pdf"?"bg-web3-purple hover:bg-web3-purple/80":"",onClick:()=>s("to-pdf"),children:"Convert to PDF"}),f.jsx(oe,{variant:i==="from-pdf"?"default":"outline",className:i==="from-pdf"?"bg-web3-purple hover:bg-web3-purple/80":"",onClick:()=>s("from-pdf"),children:"Convert from PDF"})]}),f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"flex items-center justify-center p-6 border-2 border-dashed rounded-md border-gray-200 hover:border-web3-purple/50 transition-colors",children:f.jsxs("div",{className:"text-center",children:[f.jsx(gk,{className:"h-10 w-10 text-web3-purple/60 mx-auto mb-2"}),f.jsx("h3",{className:"text-lg font-medium mb-2",children:i==="to-pdf"?"Upload document to convert to PDF":"Upload PDF to convert to another format"}),f.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:i==="to-pdf"?"Supports DOCX, DOC, XLSX, PPTX, JPG, PNG, TXT":"Select a PDF file to convert"}),f.jsx("input",{type:"file",id:"file-upload",className:"hidden",onChange:g,accept:i==="to-pdf"?".docx,.doc,.xlsx,.pptx,.jpg,.png,.txt":".pdf"}),f.jsx("label",{htmlFor:"file-upload",children:f.jsx(oe,{className:"bg-web3-purple hover:bg-web3-purple/80 cursor-pointer",children:"Browse Files"})})]})}),t&&f.jsx("div",{className:"flex items-center justify-between p-3 border rounded-md",children:f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"p-2 rounded-full bg-web3-purple/20",children:f.jsx(Jn,{className:"h-6 w-6 text-web3-purple"})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium truncate max-w-[300px]",children:t.name}),f.jsxs("p",{className:"text-xs text-muted-foreground",children:[(t.size/1024/1024).toFixed(2)," MB"]})]})]})})]}),t&&f.jsxs("div",{className:"space-y-6",children:[i==="to-pdf"?f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"Selected file format:"}),f.jsxs(Qv,{value:o,onValueChange:b=>a(b),className:"grid grid-cols-2 md:grid-cols-4 gap-2",children:[f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(rn,{value:"docx",id:"format-docx"}),f.jsx(gt,{htmlFor:"format-docx",children:"DOCX"})]}),f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(rn,{value:"doc",id:"format-doc"}),f.jsx(gt,{htmlFor:"format-doc",children:"DOC"})]}),f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(rn,{value:"xlsx",id:"format-xlsx"}),f.jsx(gt,{htmlFor:"format-xlsx",children:"XLSX"})]}),f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(rn,{value:"pptx",id:"format-pptx"}),f.jsx(gt,{htmlFor:"format-pptx",children:"PPTX"})]}),f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(rn,{value:"jpg",id:"format-jpg"}),f.jsx(gt,{htmlFor:"format-jpg",children:"JPG"})]}),f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(rn,{value:"png",id:"format-png"}),f.jsx(gt,{htmlFor:"format-png",children:"PNG"})]}),f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(rn,{value:"txt",id:"format-txt"}),f.jsx(gt,{htmlFor:"format-txt",children:"TXT"})]})]})]}):f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"Convert to format:"}),f.jsxs(Qv,{value:l,onValueChange:b=>c(b),className:"grid grid-cols-3 gap-2",children:[f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(rn,{value:"docx",id:"format-docx"}),f.jsx(gt,{htmlFor:"format-docx",children:"DOCX"})]}),f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(rn,{value:"xlsx",id:"format-xlsx"}),f.jsx(gt,{htmlFor:"format-xlsx",children:"XLSX"})]}),f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(rn,{value:"pptx",id:"format-pptx"}),f.jsx(gt,{htmlFor:"format-pptx",children:"PPTX"})]}),f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(rn,{value:"html",id:"format-html"}),f.jsx(gt,{htmlFor:"format-html",children:"HTML"})]}),f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(rn,{value:"txt",id:"format-txt"}),f.jsx(gt,{htmlFor:"format-txt",children:"TXT"})]}),f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(rn,{value:"jpg",id:"format-jpg"}),f.jsx(gt,{htmlFor:"format-jpg",children:"JPG"})]})]})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"Conversion quality:"}),f.jsxs(Qv,{value:u,onValueChange:b=>d(b),className:"flex space-x-4",children:[f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(rn,{value:"standard",i
448d:"quality-standard"}),f.jsx(gt,{htmlFor:"quality-standard",children:"Standard"})]}),f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(rn,{value:"high",id:"quality-high"}),f.jsx(gt,{htmlFor:"quality-high",children:"High"})]})]})]}),f.jsx("div",{className:"flex justify-end",children:f.jsxs(oe,{variant:"outline",size:"sm",className:"text-xs",children:[f.jsx(Zz,{className:"h-3 w-3 mr-1"}),"Advanced Options"]})}),f.jsx(oe,{className:"w-full bg-web3-purple hover:bg-web3-purple/80",onClick:v,disabled:h||!y(),children:h?f.jsx(f.Fragment,{children:"Converting..."}):f.jsxs(f.Fragment,{children:[f.jsx(yD,{className:"h-4 w-4 mr-2"}),i==="to-pdf"?"Convert to PDF":`Convert to ${l.toUpperCase()}`]})}),i==="to-pdf"&&r&&f.jsxs(oe,{className:"w-full bg-green-600 hover:bg-green-700",onClick:w,children:[f.jsx(by,{className:"h-4 w-4 mr-2"}),"Download PDF"]})]})]})})}),f.jsxs("div",{className:"text-sm text-muted-foreground",children:[f.jsx("h4",{className:"font-medium mb-2",children:"Document Converter Features:"}),f.jsxs("ul",{className:"list-disc list-inside space-y-1 ml-2",children:[f.jsx("li",{children:"Convert various document formats to PDF"}),f.jsx("li",{children:"Convert PDFs to Word, Excel, PowerPoint formats"}),f.jsx("li",{children:"Transform images to PDF and vice versa"}),f.jsx("li",{children:"Extract text content to TXT files"}),f.jsx("li",{children:"Convert to HTML for web publishing"}),f.jsx("li",{children:"Choose between standard and high-quality conversion"}),f.jsx("li",{children:"Maintain formatting and layout integrity"})]})]})]}),f.jsx("div",{children:f.jsx(aA,{file:r||((t==null?void 0:t.type)==="application/pdf"?t:null)})})]})},JB=x.forwardRef(({className:t,...e},r)=>f.jsx("textarea",{className:Te("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
448ing-offset-background 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",t),ref:r,...e}));JB.displayName="Textarea";const Cse=()=>{const[t,e]=x.useState(""),[r,n]=x.useState(""),[i,s]=x.useState([]),[o,a]=x.useState(!1),{toast:l}=Sr(),c=h=>{if(h.target.files&&h.target.files.length>0){const p=Array.from(h.target.files);s([...i,...p])}},u=h=>{const p=[...i];p.splice(h,1),s(p)},d=()=>{if(!t){l({title:"Title required",description:"Please enter a title for your PDF",variant:"destructive"});return}if(!r&&i.length===0){l({title:"Content required",description:"Please add text or images to your PDF",variant:"destructive"});return}a(!0),setTimeout(()=>{a(!1),l({title:"PDF Created",description:"Your PDF has been created successfully"});const h=`${t.replace(/\s+/g,"-")}.pdf`,p=new Blob([`Title: ${t}
449
450Content: ${r}`],{type:"application/pdf"}),m=URL.createObjectURL(p),g=document.createElement("a");g.href=m,g.download=h,g.click(),URL.revokeObjectURL(m)},2e3)};return f.jsxs("div",{className:"space-y-6",children:[f.jsx(Vt,{children:f.jsxs(Jt,{className:"p-6",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx(gt,{htmlFor:"pdf-title",children:"Document Title"}),f.jsx(hr,{id:"pdf-title",value:t,onChange:h=>e(h.target.value),placeholder:"Enter document title",className:"mt-1"})]}),f.jsxs(Fm,{defaultValue:"text",className:"mt-6",children:[f.jsxs(Lh,{className:"grid grid-cols-3 w-full",children:[f.jsxs(Wn,{value:"text",className:"flex items-center gap-2",children:[f.jsx(Pz,{className:"h-4 w-4"}),"Text"]}),f.jsxs(Wn,{value:"images",className:"flex items-center gap-2",children:[f.jsx(zz,{className:"h-4 w-4"}),"Images"]}),f.jsxs(Wn,{value:"templates",className:"flex items-center gap-2",children:[f.jsx(bN,{className:"h-4 w-4"}),"Templates"]})]}),f.jsxs(Kn,{value:"text",className:"space-y-4 mt-4",children:[f.jsxs("div",{children:[f.jsx(gt,{htmlFor:"pdf-content",children:"Document Content"}),f.jsx(JB,{id:"pdf-content",value:r,onChange:h=>n(h.target.value),placeholder:"Enter your document content...",className:"mt-1 min-h-[200px]"})]}),f.jsxs("div",{className:"flex flex-wrap gap-2",children:[f.jsxs(oe,{variant:"outline",size:"sm",className:"text-xs",children:[f.jsx(xS,{className:"h-3 w-3 mr-1"}),"Formatting"]}),f.jsxs(oe,{variant:"outline",size:"sm",className:"text-xs",children:[f.jsx(bN,{className:"h-3 w-3 mr-1"}),"Paragraph Styles"]}),f.jsxs(oe,{variant:"outline",size:"sm",className:"text-xs",children:[f.jsx(Hz,{className:"h-3 w-3 mr-1"}),"Insert Image"]})]})]}),f.jsxs(Kn,{value:"images",className:"space-y-4 mt-4",children:[f.jsxs("div",{children:[f.jsx(gt,{htmlFor:"image-upload",children:"Upload Images"}),f.jsx(hr,{id:"image-upload",type:"file",accept:"image/*",multiple:!0,onChange:c,className:"mt-1"})]}),i.length>0&&f.jsxs("div",{className:"mt-4",children:[f.jsxs(gt,{children:["Uploaded Images (",i.length,")"]}),f.jsx("div",{className:"grid grid-cols-2 gap-3 mt-2",children:i.map((h,p)=>f.jsxs("div",{className:"relative group",children:[f.jsx("img",{src:URL.createObjectURL(h),alt:`Uploaded ${p}`,className:"w-full h-32 object-cover rounded-md"}),f.jsx(oe,{variant:"destructive",size:"icon",className:"absolute top-2 right-2 h-6 w-6 opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>u(p),children:f.jsx(Jn,{className:"h-3 w-3"})})]},p))})]})]}),f.jsxs(Kn,{value:"templates",className:"mt-4",children:[f.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:[1,2,3,4,5,6].map(h=>f.jsx("div",{className:"aspect-[3/4] border rounded-md flex items-center justify-center cursor-pointer hover:border-web3-purple transition-colors",children:f.jsxs("p",{className:"text-muted-foreground",children:["Template ",h]})},h))}),f.jsx("p",{className:"text-xs text-muted-foreground mt-3",children:"Select a template as a starting point for your document"})]})]})]}),f.jsx(oe,{className:"w-full bg-web3-purple hover:bg-web3-purple/80 mt-6",onClick:d,disabled:o,children:o?f.jsx(f.Fragment,{children:"Creating PDF..."}):f.jsxs(f.Fragment,{children:[f.jsx(yD,{className:"h-4 w-4 mr-2"}),"Create PDF"]})})]})}),f.jsxs("div",{className:"text-sm text-muted-foreground",children:[f.jsx("h4",{className:"font-medium mb-2",children:"PDF Creator Features:"}),f.jsxs("ul",{className:"list-disc list-inside space-y-1 ml-2",children:[f.jsx("li",{children:"Create professional PDFs from scratch"}),f.jsx("li",{children:"Add formatted text with different styles"}),f.jsx("li",{children:"Insert and arrange images"}),f.jsx("li",{children:"Use pre-designed templates for quick creation"}),f.jsx("li",{children:"Add headers, footers, and page numbers"}),f.jsx("li",{children:"Generate table of contents automatically"})]})]})]})},Nse=()=>{const[t,e]=x.useState("convert");return f.jsxs("div",{className:"flex flex-col min-h-screen",children:[f.jsx(Ml,{}),f.jsx("main",{className:"flex-grow py-12 px-4",children:f.jsxs("div",{className:"container max-w-6xl mx-auto",children:[f.jsxs("div",{className:"mb-8",children:[f.jsx("h1",{className:"text-3xl font-bold mb-2",children:"PDF Tools"}),f.jsx("p",{className:"text-muted-foreground",children:"Create, merge, split and convert your documents with ease"})]}),f.jsxs(Fm,{value:t,onValueChange:r=>e(r),className:"space-y-6",children:[f.jsxs(Lh,{className:"grid grid-cols-2 md:grid-cols-4 w-full h-auto",children:[f.jsx(Wn,{value:"merge",className:"py-3",children:"Merge PDFs"}),f.jsx(Wn,{value:"split",className:"py-3",children:"Split PDF"}),f.jsx(Wn,{value:"convert",className:"py-3",children:"Convert Files"}),f.jsx(Wn,{value:"create",className:"py-3",children:"Create PDF"})]}),f.jsx(Kn,{value:"merge",children:f.jsx(Oie,{})}),f.jsx(Kn,{value:"split",children:f.jsx(qie,{})}),f.jsx(Kn,{value:"convert",children:f.jsx(Ase,{})}),f.jsx(Kn,{value:"create",children:f.jsx(Cse,{})})]})]})}),f.jsx(Bl,{})]})},Pse=()=>{const[t,e]=x.useState(!1),{toast:r}=Sr(),{user:n}=xi();return{createCheckoutSession:async(s,o,a=!1)=>
450{if(!n){r({title:"Authentication required",description:"Please sign in to subscribe to a plan",variant:"destructive"});return}e(!0);try{console.log(`Creating checkout session for ${a?"product":"price"} ID: ${s}, user ID: ${n.id}`);const{data:l,error:c}=await Nt.functions.invoke("create-checkout-session",{body:JSON.stringify({priceId:s,userId:n.id,mode:"subscription",planName:o,isProductId:a})});if(c)throw console.error("Supabase function error:",c),new Error(`Function error: ${c.message}`);if(console.log("Response from edge function:",l),!l||typeof l!="object")throw console.error("Invalid response from edge function:",l),new Error("Invalid response from the server");if(l.error)throw console.error("Checkout error from edge function:",l.error),new Error(l.error);if(l.url)console.log(`Redirecting to Stripe checkout: ${l.url}`),r({title:"Opening checkout",description:`You'll be redirected to subscribe to the ${o} plan`}),window.open(l.url,"_blank");else throw new Error("No checkout URL returned from the server")}catch(l){throw console.error("Error creating checkout session:",l),r({title:"Checkout error",description:l.message||"Failed to create checkout session. Please try again.",variant:"destructive"}),l}finally{e(!1)}},isLoading:t}},Tse=()=>{const{createCheckoutSession:t,isLoading:e}=Pse(),{user:r}=xi(),[n,i]=x.useState(null),o=[{id:"free",name:"Free",description:"For individual occasional use",price:"$0",period:"forever",features:["PDF viewing and basic editing","5 document signatures per month","Public verification page","24-hour verification history"],buttonText:"Get Started",highlighted:!1,priceId:null},{id:"pro",name:"Pro",description:"For professionals and small businesses",price:"$39",period:"per month",features:["All Free features","Unlimited document signatures","Private verification links","Unlimited verification history","Priority support"],buttonText:"Subscribe Now",highlighted:!0,priceId:"price_1R0mN2J4zytqbTymV2lwNkdB"},{id:"enterprise",name:"Enterprise",description:"For organizations with advanced needs",price:"$99",period:"per month",features:["All Pro features","Custom branding","API access","Unlimited verification history","Dedicated support","Bulk signing operations"],buttonText:"Contact Sales",highlighted:!1,priceId:null}],a=async l=>{if(!l.priceId){l.id==="free"?window.location.href=r?"/sign":"/auth?redirect=/sign":l.id==="enterprise"&&(window.location.href="mailto:[email protected]?subject=Enterprise%20Plan%20Inquiry");return}i(l.id);try{await t(l.priceId,l.name,!1)}catch(c){console.error("Error during checkout:",c)}finally{i(null)}};return f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:o.map(l=>f.jsxs(Vt,{className:`border ${l.highlighted?"border-web3-purple shadow-lg shadow-web3-purple/10":"border-purple-500/20"}`,children:[f.jsxs(Yi,{children:[f.jsx(Ji,{className:"text-2xl",children:l.name}),f.jsx(Zi,{children:l.description}),f.jsxs("div",{className:"mt-4",children:[f.jsx("span",{className:"text-4xl font-bold",children:l.price}),f.jsx("span",{className:"text-muted-foreground ml-2",children:l.period})]})]}),f.jsx(Jt,{children:f.jsx("ul",{className:"space-y-3",children:l.features.map((c,u)=>f.jsxs("li",{className:"flex items-start gap-2",children:[f.jsx(gu,{className:"h-5 w-5 text-green-500 shrink-0 mt-0.5"}),f.jsx("span",{children:c})]},u))})}),f.jsx(Ok,{children:r||l.id==="free"?f.jsx(oe,{className:`w-full ${l.highlighted?"bg-web3-purple hover:bg-web3-purple/90":""}`,variant:l.highlighted?"default":"outline",onClick:()=>a(l),disabled:e||n===l.id,children:e||n===l.id?f.jsxs(f.Fragment,{children:[f.jsx(mu,{className:"mr-2 h-4 w-4 animate-spin"}),"Processing..."]}):l.buttonText}):f.jsx(St,{to:"/auth?redirect=/pricing",className:"w-full",children:f.jsx(oe,{className:`w-full ${l.highlighted?"bg-web3-purple hover:bg-web3-purple/90":""}`,variant:l.highlighted?"default":"outline",children:"Sign In to Subscribe"})})})]},l.id))})},Rse=()=>{const[t,e]=x.useState(!1),{toast:r}=Sr(),{user:n}=xi(),i=async()=>{if(n){e(!0);try{const{data:s,error:o}=await Nt.functions.invoke("refresh-subscription-status",{body:JSON.stringify({userId:n.id})});if(o){console.error("Error refreshing subscription:",o),r({title:"Error refreshing subscription",description:o.message||"Something went wrong. Please try again.",variant:"destructive"});return}
450s!=null&&s.success?(r({title:"Subscription refreshed",description:"Your subscription status has been updated."}),window.location.reload()):r({title:"No change detected",description:(s==null?void 0:s.message)||"Your subscription status remains the same."})}catch(s){console.error("Error:",s),r({title:"Error refreshing subscription",description:"Something went wrong. Please try again.",variant:"destructive"})}finally{e(!1)}}};return f.jsx("div",{className:"mt-4 flex justify-center",children:f.jsx(oe,{onClick:i,variant:"outline",size:"sm",disabled:t,children:t?f.jsxs(f.Fragment,{children:[f.jsx(mu,{className:"mr-2 h-4 w-4 animate-spin"}),"Refreshing..."]}):f.jsxs(f.Fragment,{children:[f.jsx(fk,{className:"mr-2 h-4 w-4"}),"Refresh Subscription Status"]})})})},jse=()=>{const{user:t}=xi(),e=["Unlimited PDF signatures with NFT certificates","Custom branding and white-label options","Multi-signature workflow","Advanced API access","Private blockchain options","Dedicated account manager","Priority support with 4-hour response time","Compliance reporting and audit trails"];return f.jsxs("div",{className:"flex flex-col min-h-screen",children:[f.jsx(Ml,{}),f.jsx("main",{className:"flex-grow py-12 px-4",children:f.jsxs("div",{className:"container max-w-6xl mx-auto",children:[f.jsxs("div",{className:"mb-16 text-center",children:[f.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Transparent Pricing for All Needs"}),f.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Choose the plan that's right for you. All plans include our core PDF tools."})]}),f.jsx(yB,{}),f.jsx(Tse,{}),t&&f.jsx(Rse,{}),f.jsxs("div",{className:"mt-24",children:[f.jsxs("div",{className:"text-center mb-12",children:[f.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Enterprise-grade Security & Features"}),f.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Our enterprise plan offers advanced security, customization, and support options for organizations with sophisticated needs."})]}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:e.map((r,n)=>f.jsxs("div",{className:"flex items-start gap-2 p-4 border border-purple-500/20 rounded-lg",children:[f.jsx(Iw,{className:"h-5 w-5 text-web3-purple shrink-0 mt-0.5"}),f.jsx("span",{children:r})]},n))})]}),f.jsxs("div",{className:"mt-24 text-center",children:[f.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Frequently Asked Questions"}),f.jsxs("div",{className:"mt-8 grid grid-cols-1 md:grid-cols-2 gap-8 max-w-4xl mx-auto text-left",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"font-semibold text-lg mb-2",children:"How does the blockchain verification work?"}),f.jsx("p",{className:"text-muted-foreground",children:"We create a unique hash of your document and store it on the blockchain. This provides an immutable record that can be verified anytime."})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-semibold text-lg mb-2",children:"What is an NFT certificate?"}),f.jsx("p",{className:"text-muted-foreground",children:"Each signed document can be minted as an NFT, representing proof of ownership and authenticity that can be traced on the blockchain."})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Do I need cryptocurrency to use the service?"}),f.jsx("p",{className:"text-muted-foreground",children:"No, we handle all blockchain transactions for you. You can pay with standard payment methods."})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-semibold text-lg mb-2",children:"What's the difference in document history between free and paid plans?"}),f.jsx("p",{className:"text-muted-foreground",children:"Free users can access their verification history for the last 24 hours only, while paid subscribers enjoy unlimited access to their complete document history for as long as their subscription remains active."})]})]})]})]})}),f.jsx(Bl,{})]})},Fse=()=>{const{user:t}=xi(),[e,r]=x.useState(!1),[n,i]=x.useState(!0);return x.useEffect(()=>{(async()=>{i(!0);try{if(!t||!t.email){r(!1);return}const o=["[email protected]","[email protected]"],a=t.email.toLowerCase(),l=o.includes(a);console.log(`Admin check for ${a}: ${l}`),r(l)}catch(o){console.error("Error checking admin status:",o),r(!1)}finally{i(!1)}})()},[t]),{isAdmin:e,isLoading:n}},Ose=()=>{const[t,e]=x.useState([]),[r,n]=x.useState(!0),[i,s]=x.useState(null),[o,a]=x.useState(""),[l,c]=x.useState(""),[u,d]=x.useState(""),[h,p]=x.useState(!1),{toast:m}=Sr(),{isAdmin:g,user:y,session:v}=xi(),{isAdmin:w,isLoading:b}=Fse(),E=da();x.useEffect(()=>{console.log("AdminDashboard Debug:"),console.log("User email:",y==null?void 0:y.email),console.log("Context isAdmin:",g),console.log("Hook isAdmin:",w),console.log("Admin check loading:",b)},[y,g,w,b]),x.useEffect(()=>{!b&&!w&&!g&&(console.log("Access denied - not an admin"),m({title:"Access Denied",description:"You don't have permission to access this page.",variant:"destructive"}),E("/"))},[w,g,b,E,m]),x.useEffect(()=>{!b&&(w||g)&&A()},[w,g,b]);async function A(){var N,R;if(!(!w&&!g||b))try{n(!0),s(null),console.log("Fetching users data...");let F=[],B=!1;if(v!=null&&v.access_token)try{const{data:K,error:Z}=await Nt.functions.invoke("list-all-users",{headers:{Authorization:`Bearer ${v.access_token}`}});Z?console.error("Error fetching users from edge function:",Z):K!=null&&K.success&&((N=K==null?void 0:K.users)==null?void 0:N.length)>0&&(console.log("Successfully retrieved users from edge function:",K.users.length),B=!0,F=K.users.map(Y=>{var ee;return{id:Y.id,email:Y.email||"N/A",full_name:((ee=Y.user_metadata)==null?void 0:ee.full_name)||"N/A",subscription_status:"free"}}))}catch(K){console.error("Error invoking list-all-users function:",K)}const{data:D,error:L}=await Nt.from("profiles").select("*");if(L)console.error("Error fetching profiles:",L);else if(console.log("Profiles fetched:",(D==null?void 0:D.length)||0),!B&&D)F=D.map(K=>({id:K.id,email:K.email||"N/A",full_name:K.full_name||"N/A",subscription_status:K.subscription_status||"free"}));else if(D){F=[...F].map(ee=>{const fe=D.find(ye=>
450ye.id===ee.id);return fe?{...ee,full_name:fe.full_name||ee.full_name,subscription_status:fe.subscription_status||ee.subscription_status}:ee});const Z=F.map(ee=>ee.id),Y=D.filter(ee=>!Z.includes(ee.id));if(Y.length>0){const ee=Y.map(fe=>({id:fe.id,email:fe.email||"N/A",full_name:fe.full_name||"N/A",subscription_status:fe.subscription_status||"free"}));F=[...F,...ee]}}const{data:M,error:_}=await Nt.from("subscriptions").select("*");_?console.error("Error fetching subscriptions:",_):M&&(console.log("Subscriptions fetched:",M.length||0),F=F.map(K=>{const Z=M.find(Y=>Y.user_id===K.id);return Z?{...K,subscription_status:Z.status==="active"?"active":K.subscription_status,subscription:Z}:K})),["[email protected]","[email protected]"].forEach(K=>{var Z,Y;F.some(ee=>ee.email.toLowerCase()===K.toLowerCase())||(((Z=y==null?void 0:y.email)==null?void 0:Z.toLowerCase())===K.toLowerCase()?F.push({id:y.id,email:y.email,full_name:((Y=y.user_metadata)==null?void 0:Y.full_name)||"Admin User",subscription_status:"active"}):F.push({id:`admin-${K}`,email:K,full_name:"Admin User",subscription_status:"active"}))});const V=Array.from(new Map(F.map(K=>[K.email.toLowerCase(),K])).values());console.log("Final users data:",V.length),e(V),V.length===0&&s("No users found. This may indicate an issue with the database connection.")}catch(F){console.error("Error fetching users:",F),s("Failed to load user data. Please try again."),m({title:"Error",description:"Failed to load user data. Please try again.",variant:"destructive"}),y&&e([{id:y.id,email:y.email||"N/A",full_name:((R=y.user_metadata)==null?void 0:R.full_name)||"Current Admin",subscription_status:"admin"}])}finally{n(!1)}}function k(N,R){if(!R){m({title:"Error",description:"No valid subscription ID found.",variant:"destructive"});return}try{n(!0),Nt.functions.invoke("cancel-subscription",{body:JSON.stringify({userId:N,subscriptionId:R})}).then(({data:F,error:B})=>{if(B)throw B;if(F!=null&&F.success)m({title:"Success",description:"Subscription cancelled successfully."}),e(D=>D.map(L=>L.id===N&&L.subscription?{...L,subscription:{...L.subscription,status:"canceled"},subscription_status:"free"}:L));else throw new Error((F==null?void 0:F.message)||"Unknown error occurred")}).catch(F=>{console.error("Error cancelling subscription:",F),m({title:"Error",description:F.message||"Failed to cancel subscription.",variant:"destructive"})}).finally(()=>{n(!1)})}catch(F){console.error("Error cancelling subscription:",F),m({title:"Error",description:F.message||"Failed to cancel subscription.",variant:"destructive"}),n(!1)}}function P(N){if(confirm("Are you sure you want to delete this user? This action cannot be undone."))try{n(!0),Nt.functions.invoke("delete-user",{body:JSON.stringify({userId:N})}).then(({error:R})=>{if(R)throw R;m({title:"Success",description:"User deleted successfully."}),e(F=>F.filter(B=>B.id!==N))}).catch(R=>{console.error("Error deleting user:",R),m({title:"Error",description:R.message||"Failed to delete user.",variant:"destructive"})}).finally(()=>{n(!1)})}catch(R){console.error("Error deleting user:",R),m({title:"Error",description:R.message||"Failed to delete user.",variant:"destructive"}),n(!1)}}function C(){if(!o||!u||!l){m({title:"Missing Fields",description:"Please fill out all fields to create a user.",variant:"destructive"});return}try{n(!0),Nt.functions.invoke("create-test-user",{body:JSON.stringify({email:o,password:u,fullName:l})}).then(({data:N,error:R})=>{if(R)throw R;if(N!=null&&N.success)m({title:"Success",description:"Test user created successfully."}),a(""),d(""),c(""),p(!1),A();else throw new Error((N==null?void 0:N.message)||"Unknown error occurred")}).catch(N=>{console.error("Error creating test user:",N),m({title:"Error",description:N.message||"Failed to create test user.",variant:"destructive"})}).finally(()=>{n(!1)})}catch(N){console.error("Error creating test user:",N),m({title:"Error",description:N.message||"Failed to create test user.",variant:"destructive"}),n(!1)}}return b||r?f.jsx("div",{className:"flex items-center justify-center min-h-screen",children:f.jsx(mu,{className:"h-8 w-8 animate-spin text-primary"})}):!w&&!g?null:f.jsxs("div",{className:"container py-10",children:[f.jsxs("div",{className:"flex items-center justify-between mb-6",children:[f.jsx("h1",{className:"text-3xl font-bold",children:"Admin Dashboard"}),f.jsxs("div",{className:"flex space-x-2",children:[f.jsxs(oe,{variant:"outline",size:"sm",onClick:A,className:"flex items-center",children:[f.jsx(fk,{className:"h-4 w-4 mr-1"}),"Refresh"]}),f.jsxs(oe,{variant:"outline",size:"sm",onClick:()=>E(-1),className:"flex items-center",children:[f.jsx(Rz,{className:"h-4 w-4 mr-1"}),"Back"]})]})]}),i&&f.jsxs(Sn,{variant:"destructive",className:"mb-6",children:[f.jsx(t_,{className:"h-4 w-4"}),f.jsx(Eh,{children:"Error"}),f.jsx(En,{children:i})]}),f.jsxs(Vt,{className:"mb-8",children:[f.jsxs(Yi,{className:"flex flex-row items-center justify-between",children:[f.jsxs("div",{children:[f.jsx(Ji,{children:"User Management"}),f.jsxs(Zi,{children:["Manage all users and their subscriptions (",t.length," users found)"]})]}),f.jsxs(pA,{open:h,onOpenChange:p,children:[f.jsx(gA,{asChild:!0,children:f.jsxs(oe,{className:"flex items-center",children:[f.jsx(Yz,{className:"h-4 w-4 mr-1"}),"Create Test User"]})}),f.jsxs(fb,{children:[f.jsxs(hb,{children:[f.jsx(gb,{children:"Create Test User"}),f.jsx(mb,{children:"Create a test user account for development purposes."})]}),f.jsxs("div",{className:"grid gap-4 py-4",children:[f.jsxs("div",{className:"grid gap-2",children:[f.jsx(gt,{htmlFor:"name",children:"Full Name"}
450),f.jsx(hr,{id:"name",placeholder:"John Doe",value:l,onChange:N=>c(N.target.value)})]}),f.jsxs("div",{className:"grid gap-2",children:[f.jsx(gt,{htmlFor:"email",children:"Email"}),f.jsx(hr,{id:"email",type:"email",placeholder:"[email protected]",value:o,onChange:N=>a(N.target.value)})]}),f.jsxs("div",{className:"grid gap-2",children:[f.jsx(gt,{htmlFor:"password",children:"Password"}),f.jsx(hr,{id:"password",type:"password",placeholder:"••••••••",value:u,onChange:N=>d(N.target.value)})]})]}),f.jsxs(pb,{children:[f.jsx(oe,{variant:"outline",onClick:()=>p(!1),children:"Cancel"}),f.jsxs(oe,{onClick:C,disabled:r,children:[r&&f.jsx(mu,{className:"h-4 w-4 mr-1 animate-spin"}),"Create User"]})]})]})]})]}),f.jsx(Jt,{children:f.jsx("div",{className:"overflow-x-auto",children:f.jsxs("table",{className:"w-full border-collapse",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b",children:[f.jsx("th",{className:"text-left py-3 px-2",children:"Name"}),f.jsx("th",{className:"text-left py-3 px-2",children:"Email"}),f.jsx("th",{className:"text-left py-3 px-2",children:"Subscription"}),f.jsx("th",{className:"text-left py-3 px-2",children:"Plan"}),f.jsx("th",{className:"text-left py-3 px-2",children:"Expires"}),f.jsx("th",{className:"text-left py-3 px-2",children:"Actions"})]})}),f.jsx("tbody",{children:t.length===0?f.jsx("tr",{children:f.jsx("td",{colSpan:6,className:"py-4 text-center text-muted-foreground",children:"No users found."})}):t.map(N=>{var R,F,B,D;return f.jsxs("tr",{className:"border-b hover:bg-muted/50",children:[f.jsx("td",{className:"py-3 px-2",children:N.full_name||"N/A"}),f.jsx("td",{className:"py-3 px-2",children:N.email||"N/A"}),f.jsx("td",{className:"py-3 px-2",children:f.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-medium ${N.subscription_status==="active"?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"}`,children:N.subscription_status||"free"})}),f.jsx("td",{className:"py-3 px-2",children:(R=N.subscription)!=null&&R.plan_id?f.jsx("span",{children:N.subscription.plan_id.replace(/^price_/,"")}):"N/A"}),f.jsx("td",{className:"py-3 px-2",children:(F=N.subscription)!=null&&F.current_period_end?new Date(N.subscription.current_period_end).toLocaleDateString():"N/A"}),f.jsxs("td",{className:"py-3 px-2 space-x-2",children:[((B=N.subscription)==null?void 0:B.status)==="active"&&((D=N.subscription)==null?void 0:D.stripe_subscription_id)&&f.jsxs(oe,{variant:"outline",size:"sm",onClick:()=>{var L;return k(N.id,(L=N.subscription)==null?void 0:L.stripe_subscription_id)},title:"Cancel subscription",children:[f.jsx(Fz,{className:"h-4 w-4 mr-1"}),"Cancel"]}),f.jsxs(oe,{variant:"destructive",size:"sm",onClick:()=>P(N.id),title:"Delete user",children:[f.jsx(e_,{className:"h-4 w-4 mr-1"}),"Delete"]})]})]},N.id)})})]})})})]})]})},lv=({children:t,requireAdmin:e=!1})=>{const{user:r,isLoading:n,isPublicRoute:i,handleHashFragment:s,isAdmin:o}=xi(),a=rs(),l=da(),{toast:c}=Sr(),[u,d]=x.useState(!1);if(x.useEffect(()=>{(async()=>{if(new URLSearchParams(a.search).has("hash")){console.log("Skipping auth hash processing as this is a document hash verification URL");return}if(window.location.hash){if(console.log("ProtectedRoute detected hash fragment:",window.location.hash),window.location.hash.length<3){console.log("Non-auth hash fragment detected, skipping:",window.location.hash);return}d(!0),Ue.loading("Processing authentication...");try{if(window.location.hash.includes("error=")){const g=new URLSearchParams(window.location.hash.substring(1)),y=g.get("error"),v=g.get("error_description");if(console.error("ProtectedRoute: Error in hash fragment:",{error:y,errorDescription:v}),y==="invalid_token"){window.history.replaceState(null,"",a.pathname+a.search),c({title:"Session expired",description:"Your verification link has expired. Please sign in directly with your email and password.",variant:"destructive"}),Ue.error("Authentication link expired"),d(!1),a.pathname!=="/auth"&&l("/auth?expired=true",{replace:!0});return}}if(await s()){console.log("ProtectedRoute: Successfully processed hash fragment");const y=new URLSearchParams(a.search).get("redirect")||"/";c({title:"Authentication successful",description:"You have been successfully authenticated."}),Ue.success("Authentication successful"),setTimeout(()=>{l(y,{replace:!0}),d(!1)},500)}else console.log("ProtectedRoute: Hash fragment not processed as auth token"),window.location.hash.includes("access_token")||window.location.hash.includes("type=")||window.location.hash.includes("expires_in")?(console.error("ProtectedRoute: Failed to process auth hash fragment"),window.history.replaceState(null,"",a.pathname+a.search),window.location.hash.includes("error=invalid_token")?(c({title:"Authentication failed",description:"Your verification link has expired. Please sign in directly with your email and password.",variant:"destructive"}),Ue.error("Authentication link expired")):(c({title:"Authentication issue",description:"There was an issue with your authentication. Please try signing in directly.",variant:"destructive"}),Ue.error("Authentication issue")),d(!1),a.pathname!=="/auth"&&l("/auth?error=true",{replace:!0})):(console.log("ProtectedRoute: Not an auth hash fragment, continuing normally"),d(!1))}catch(m){console.error("ProtectedRoute: Error processing hash fragment:",m),Ue.error("Authentication error"),c({title:"Authentication error",description:"An unexpected error occurred. Please try signing in directly.",variant:"destructive"}),d(!1),window.history.replaceState(null,"",a.pathname+a.search),a.pathname!=="/auth"&&l("/auth?error=true",{replace:!0})}}})()},[a,s,l,c]),n||u)return f.jsx("div",{className:"flex items-center justify-center min-h-screen",children:f.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-web3-purple"})});if(e&&!o)return console.log("Admin access required but user is not an admin:",r==null?void 0:r.email),c({title:"Access Denied",description:"You need admin privileges to access this area.",variant:"destructive"}),Ue.error("Admin access required"),f.jsx(Ex,{to:"/",replace:!0});if(a.pathname==="/")return console.log("Home route access granted"),f.jsx(f.Fragment,{children:t});if(i(a.pathname))return console.log("Public route access granted for:",a.pathname),f.jsx(f.Fragment,{children:t});if(a.pathname==="/auth"){const h=new URLSearchParams(a.search),p=h.get("redirect");return h.get("expired"),p&&r?f.jsx(Ex,{to:p,replace:!0}):f.jsx(f.Fragment,{children:t})}return r?f.jsx(f.Fragment,{children:t}):(console.log("Protected route requires login:",a.pathname),f.jsx(Ex,{to:`/auth?redirect=${encodeURIComponent(a.pathname+a.search)}`,replace:!0}))},Dse=()=>R9([{path:"/",element:f.jsx(PG,{}),errorElement:f.jsx(TG,{})},{path:"/auth",element:f.jsx(nW,{})},{path:"/sign",element:f.jsx(lv,{children:f.jsx(jre,{})})},{path:"/verify",element:f.jsx(Hre,{})},{path:"/history",element:f.jsx(lv,{children:f.jsx(jie,{})})},{path:"/tools",element:f.jsx(lv,{children:f.jsx(Nse,{})})},{path:"/pricing",element:f.jsx(jse,{})},{path:"/admin",element:f.jsx(lv,{requireAdmin:!0,children:f.jsx(Ose,{})})}]),Ise=new sne;function Mse(){const t=Dse();return f.jsx(d7,{children:f.jsx(une,{client:Ise,children:f.jsx(rG,{children:f.jsx(MX,{children:f.jsx(U9,{router:t})})})})})}E1.createRoot(document.getElementById("root")).render(f.jsxs(ne.StrictMode,{children:[f.jsx(Mse,{}),f.jsx(RD,{}),f.jsx(vk,{})]}));export{fE 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.