vendor: 6,403 bytes, lines 1-9
1var PN=Object.defineProperty;var w5=e=>{throw TypeError(e)};var TN=(e,t,n)=>t in e?PN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var zt=(e,t,n)=>TN(e,typeof t!="symbol"?t+"":t,n),Km=(e,t,n)=>t.has(e)||w5("Cannot "+n);var _e=(e,t,n)=>(Km(e,t,"read from private field"),n?n.call(e):t.get(e)),Ft=(e,t,n)=>t.has(e)?w5("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),mt=(e,t,n,r)=>(Km(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),pr=(e,t,n)=>(Km(e,t,"access private method"),n);var bf=(e,t,n,r)=>({set _(i){mt(e,t,i,n)},get _(){return _e(e,t,r)}});function RN(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var TU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ex(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nx={exports:{}},C0={},Cx={exports:{}},Et={};/** 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 Sh=Symbol.for("react.element"),ON=Symbol.for("react.portal"),IN=Symbol.for("react.fragment"),jN=Symbol.for("react.strict_mode"),FN=Symbol.for("react.profiler"),DN=Symbol.for("react.provider"),MN=Symbol.for("react.context"),BN=Symbol.for("react.forward_ref"),UN=Symbol.for("react.suspense"),$N=Symbol.for("react.memo"),zN=Symbol.for("react.lazy"),b5=Symbol.iterator;function qN(e){return e===null||typeof e!="object"?null:(e=b5&&e[b5]||e["@@iterator"],typeof e=="function"?e:null)}var Lx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Px=Object.assign,Tx={};function fu(e,t,n){this.props=e,this.context=t,this.refs=Tx,this.updater=n||Lx}fu.prototype.isReactComponent={};fu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Rx(){}Rx.prototype=fu.prototype;function e2(e,t,n){this.props=e,this.context=t,this.refs=Tx,this.updater=n||Lx}var t2=e2.prototype=new Rx;t2.constructor=e2;Px(t2,fu.prototype);t2.isPureReactComponent=!0;var _5=Array.isArray,Ox=Object.prototype.hasOwnProperty,n2={current:null},Ix={key:!0,ref:!0,__self:!0,__source:!0};function jx(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Ox.call(t,r)&&!Ix.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Sh,type:e,key:s,ref:o,props:i,_owner:n2.current}}function HN(e,t){return{$$typeof:Sh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function r2(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sh}function WN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var x5=/\/+/g;function Ym(e,t){return typeof e=="object"&&e!==null&&e.key!=null?WN(""+e.key):t.toString(36)}function fp(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Sh:case ON:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Ym(o,0):r,_5(i)?(n="",e!=null&&(n=e.replace(x5,"$&/")+"/"),fp(i,t,n,"",function(c){return c})):i!=null&&(r2(i)&&(i=HN(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(x5,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",_5(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Ym(s,a);o+=fp(s,t,n,l,i)}else if(l=qN(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Ym(s,a++),o+=fp(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function _f(e,t,n){if(e==null)return e;var r=[],i=0;return fp(e,r,"","",function(s){return t.call(n,s,i++)}),r}function VN(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ir={current:null},pp={transition:null},GN={ReactCurrentDispatcher:Ir,ReactCurrentBatchConfig:pp,ReactCurrentOwner:n2};function Fx(){throw Error("act(...) is not supported in production builds of React.")}Et.Children={map:_f,forEach:function(e,t,n){_f(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return _f(e,function(){t++}),t},toArray:function(e){return _f(e,function(t){return t})||[]},only:function(e){if(!r2(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Et.Component=fu;Et.Fragment=IN;Et.Profiler=FN;Et.PureComponent=e2;Et.StrictMode=jN;Et.Suspense=UN;
vendor: 3,275 bytes, lines 9-17
9Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=GN;Et.act=Fx;Et.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Px({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=n2.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Ox.call(t,l)&&!Ix.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Sh,type:e.type,key:i,ref:s,props:r,_owner:o}};Et.createContext=function(e){return e={$$typeof:MN,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:DN,_context:e},e.Consumer=e};Et.createElement=jx;Et.createFactory=function(e){var t=jx.bind(null,e);return t.type=e,t};Et.createRef=function(){return{current:null}};Et.forwardRef=function(e){return{$$typeof:BN,render:e}};Et.isValidElement=r2;Et.lazy=function(e){return{$$typeof:zN,_payload:{_status:-1,_result:e},_init:VN}};Et.memo=function(e,t){return{$$typeof:$N,type:e,compare:t===void 0?null:t}};Et.startTransition=function(e){var t=pp.transition;pp.transition={};try{e()}finally{pp.transition=t}};Et.unstable_act=Fx;Et.useCallback=function(e,t){return Ir.current.useCallback(e,t)};Et.useContext=function(e){return Ir.current.useContext(e)};Et.useDebugValue=function(){};Et.useDeferredValue=function(e){return Ir.current.useDeferredValue(e)};Et.useEffect=function(e,t){return Ir.current.useEffect(e,t)};Et.useId=function(){return Ir.current.useId()};Et.useImperativeHandle=function(e,t,n){return Ir.current.useImperativeHandle(e,t,n)};Et.useInsertionEffect=function(e,t){return Ir.current.useInsertionEffect(e,t)};Et.useLayoutEffect=function(e,t){return Ir.current.useLayoutEffect(e,t)};Et.useMemo=function(e,t){return Ir.current.useMemo(e,t)};Et.useReducer=function(e,t,n){return Ir.current.useReducer(e,t,n)};Et.useRef=function(e){return Ir.current.useRef(e)};Et.useState=function(e){return Ir.current.useState(e)};Et.useSyncExternalStore=function(e,t,n){return Ir.current.useSyncExternalStore(e,t,n)};Et.useTransition=function(){return Ir.current.useTransition()};Et.version="18.3.1";Cx.exports=Et;var D=Cx.exports;const Ne=Ex(D),i2=RN({__proto__:null,default:Ne},[D]);/** 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 KN=D,YN=Symbol.for("react.element"),JN=Symbol.for("react.fragment"),XN=Object.prototype.hasOwnProperty,ZN=KN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,QN={key:!0,ref:!0,__self:!0,__source:!0};function Dx(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)XN.call(t,r)&&!QN.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:YN,type:e,key:s,ref:o,props:i,_owner:ZN.current}}C0.Fragment=JN;C0.jsx=Dx;C0.jsxs=Dx;Nx.exports=C0;
vendor: 11,004 bytes, lines 17-34
17var j=Nx.exports,Mx={exports:{}},pi={},Bx={exports:{}},Ux={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(Y,Z){var he=Y.length;Y.push(Z);e:for(;0<he;){var fe=he-1>>>1,C=Y[fe];if(0<i(C,Z))Y[fe]=Z,Y[he]=C,he=fe;else break e}}function n(Y){return Y.length===0?null:Y[0]}function r(Y){if(Y.length===0)return null;var Z=Y[0],he=Y.pop();if(he!==Z){Y[0]=he;e:for(var fe=0,C=Y.length,U=C>>>1;fe<U;){var K=2*(fe+1)-1,Q=Y[K],ne=K+1,re=Y[ne];if(0>i(Q,he))ne<C&&0>i(re,Q)?(Y[fe]=re,Y[ne]=he,fe=ne):(Y[fe]=Q,Y[K]=he,fe=K);else if(ne<C&&0>i(re,he))Y[fe]=re,Y[ne]=he,fe=ne;else break e}}return Z}function i(Y,Z){var he=Y.sortIndex-Z.sortIndex;return he!==0?he:Y.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],d=1,p=null,m=3,h=!1,y=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(Y){for(var Z=n(c);Z!==null;){if(Z.callback===null)r(c);else if(Z.startTime<=Y)r(c),Z.sortIndex=Z.expirationTime,t(l,Z);else break;Z=n(c)}}function A(Y){if(w=!1,S(Y),!y)if(n(l)!==null)y=!0,ae(O);else{var Z=n(c);Z!==null&&le(A,Z.startTime-Y)}}function O(Y,Z){y=!1,w&&(w=!1,v(B),B=-1),h=!0;var he=m;try{for(S(Z),p=n(l);p!==null&&(!(p.expirationTime>Z)||Y&&!L());){var fe=p.callback;if(typeof fe=="function"){p.callback=null,m=p.priorityLevel;var C=fe(p.expirationTime<=Z);Z=e.unstable_now(),typeof C=="function"?p.callback=C:p===n(l)&&r(l),S(Z)}else r(l);p=n(l)}if(p!==null)var U=!0;else{var K=n(c);K!==null&&le(A,K.startTime-Z),U=!1}return U}finally{p=null,m=he,h=!1}}var $=!1,H=null,B=-1,R=5,X=-1;function L(){return!(e.unstable_now()-X<R)}function I(){if(H!==null){var Y=e.unstable_now();X=Y;var Z=!0;try{Z=H(!0,Y)}finally{Z?J():($=!1,H=null)}}else $=!1}var J;if(typeof _=="function")J=function(){_(I)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,se=q.port2;q.port1.onmessage=I,J=function(){se.postMessage(null)}}else J=function(){x(I,0)};function ae(Y){H=Y,$||($=!0,J())}function le(Y,Z){B=x(function(){Y(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Y){Y.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,ae(O))},e.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<Y?Math.floor(1e3/Y):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(Y){switch(m){case 1:case 2:case 3:var Z=3;break;default:Z=m}var he=m;m=Z;try{return Y()}finally{m=he}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Y,Z){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var he=m;m=Y;try{return Z()}finally{m=he}},e.unstable_scheduleCallback=function(Y,Z,he){var fe=e.unstable_now();switch(typeof he=="object"&&he!==null?(he=he.delay,he=typeof he=="number"&&0<he?fe+he:fe):he=fe,Y){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=he+C,Y={id:d++,callback:Z,priorityLevel:Y,startTime:he,expirationTime:C,sortIndex:-1},he>fe?(Y.sortIndex=he,t(c,Y),n(l)===null&&Y===n(c)&&(w?(v(B),B=-1):w=!0,le(A,he-fe))):(Y.sortIndex=C,t(l,Y),y||h||(y=!0,ae(O))),Y},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(Y){var Z=m;return function(){var he=m;m=Z;try{return Y.apply(this,arguments)}finally{m=he}}}})(Ux);Bx.exports=Ux;var e6=Bx.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 t6=D,fi=e6;function Ce(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $x=new Set,Bd={};function Pl(e,t){tu(e,t),tu(e+"Capture",t)}function tu(e,t){for(Bd[e]=t,e=0;e<t.length;e++)$x.add(t[e])}var yo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m1=Object.prototype.hasOwnProperty,n6=/^[: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]*$/,S5={},k5={};function r6(e){return m1.call(k5,e)?!0:m1.call(S5,e)?!1:n6.test(e)?k5[e]=!0:(S5[e]=!0,!1)}function i6(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function s6(e,t,n,r){if(t===null||typeof t>"u"||i6(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function jr(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var dr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){dr[e]=new jr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];dr[t]=new jr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){dr[e]=new jr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){dr[e]=new jr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){dr[e]=new jr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){dr[e]=new jr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){dr[e]=new jr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){dr[e]=new jr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){dr[e]=new jr(e,5,!1,e.toLowerCase(),null,!1,!1)});var s2=/[\-:]([a-z])/g;function o2(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(s2,o2);dr[t]=new jr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(s2,o2);dr[t]=new jr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(s2,o2);dr[t]=new jr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){dr[e]=new jr(e,1,!1,e.toLowerCase(),null,!1,!1)});dr.xlinkHref=new jr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){dr[e]=new jr(e,1,!1,e.toLowerCase(),null,!0,!0)});function a2(e,t,n,r){var i=dr.hasOwnProperty(t)?dr[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(s6(t,n,i,r)&&(n=null),r||i===null?r6(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ko=t6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xf=Symbol.for("react.element"),mc=Symbol.for("react.portal"),gc=Symbol.for("react.fragment"),l2=Symbol.for("react.strict_mode"),g1=Symbol.for("react.profiler"),zx=Symbol.for("react.provider"),qx=Symbol.for("react.context"),c2=Symbol.for("react.forward_ref"),v1=Symbol.for("react.suspense"),y1=Symbol.for("react.suspense_list"),u2=Symbol.for("react.memo"),Yo=Symbol.for("react.lazy"),Hx=Symbol.for("react.offscreen"),A5=Symbol.iterator;function Xu(e){return e===null||typeof e!="object"?null:(e=A5&&e[A5]||e["@@iterator"],typeof e=="function"?e:null)}var gn=Object.assign,Jm;function hd(e){if(Jm===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Jm=t&&t[1]||""}return` 34`+Jm+e}var Xm=!1;function Zm(e,t){if(!e||Xm)return"";Xm=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}
vendor: 4,297 bytes, lines 34-37
34catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(` 35`),s=r.stack.split(` 36`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=` 37`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Xm=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hd(e):""}function o6(e){switch(e.tag){case 5:return hd(e.type);case 16:return hd("Lazy");case 13:return hd("Suspense");case 19:return hd("SuspenseList");case 0:case 2:case 15:return e=Zm(e.type,!1),e;case 11:return e=Zm(e.type.render,!1),e;case 1:return e=Zm(e.type,!0),e;default:return""}}function w1(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case gc:return"Fragment";case mc:return"Portal";case g1:return"Profiler";case l2:return"StrictMode";case v1:return"Suspense";case y1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qx:return(e.displayName||"Context")+".Consumer";case zx:return(e._context.displayName||"Context")+".Provider";case c2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case u2:return t=e.displayName||null,t!==null?t:w1(e.type)||"Memo";case Yo:t=e._payload,e=e._init;try{return w1(e(t))}catch{}}return null}function a6(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return w1(t);case 8:return t===l2?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Sa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function l6(e){var t=Wx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sf(e){e._valueTracker||(e._valueTracker=l6(e))}function Vx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Wx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mp(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function b1(e,t){var n=t.checked;return gn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function E5(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sa(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gx(e,t){t=t.checked,t!=null&&a2(e,"checked",t,!1)}function _1(e,t){Gx(e,t);var n=Sa(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?x1(e,t.type,n):t.hasOwnProperty("defaultValue")&&x1(e,t.type,Sa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}
vendor: 4,187 bytes, line 37
37function N5(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function x1(e,t,n){(t!=="number"||Mp(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var fd=Array.isArray;function Pc(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Sa(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function S1(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ce(91));return gn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function C5(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Ce(92));if(fd(n)){if(1<n.length)throw Error(Ce(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Sa(n)}}function Kx(e,t){var n=Sa(t.value),r=Sa(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function L5(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Yx(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function k1(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Yx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var kf,Jx=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(kf=kf||document.createElement("div"),kf.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=kf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ud(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bd={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},c6=["Webkit","ms","Moz","O"];Object.keys(bd).forEach(function(e){c6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bd[t]=bd[e]})});function Xx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bd.hasOwnProperty(e)&&bd[e]?(""+t).trim():t+"px"}function Zx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Xx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var u6=gn({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 A1(e,t){if(t){if(u6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ce(62))}}function E1(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var N1=null;function d2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var C1=null,Tc=null,Rc=null;function P5(e){if(e=Eh(e)){if(typeof C1!="function")throw Error(Ce(280));var t=e.stateNode;t&&(t=O0(t),C1(e.stateNode,e.type,t))}}function Qx(e){Tc?Rc?Rc.push(e):Rc=[e]:Tc=e}function e3(){if(Tc){var e=Tc,t=Rc;if(Rc=Tc=null,P5(e),t)for(e=0;e<t.length;e++)P5(t[e])}}function t3(e,t){return e(t)}function n3(){}var Qm=!1;function r3(e,t,n){if(Qm)return e(t,n);Qm=!0;try{return t3(e,t,n)}finally{Qm=!1,(Tc!==null||Rc!==null)&&(n3(),e3())}}function $d(e,t){var n=e.stateNode;if(n===null)return null;var r=O0(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Ce(231,t,typeof n));return n}var L1=!1;if(yo)try{var Zu={};Object.defineProperty(Zu,"passive",{get:function(){L1=!0}}),window.addEventListener("test",Zu,Zu),window.removeEventListener("test",Zu,Zu)}catch{L1=!1}function d6(e,t,n,r,i,s,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var _d=!1,Bp=null,Up=!1,P1=null,h6={onError:function(e){_d=!0,Bp=e}};function f6(e,t,n,r,i,s,o,a,l){_d=!1,Bp=null,d6.apply(h6,arguments)}function p6(e,t,n,r,i,s,o,a,l){if(f6.apply(this,arguments),_d){if(_d){var c=Bp;_d=!1,Bp=null}else throw Error(Ce(198));Up||(Up=!0,P1=c)}}function Tl(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function i3(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function T5(e){if(Tl(e)!==e)throw Error(Ce(188))}function m6(e){var t=e.alternate;if(!t){if(t=Tl(e),t===null)throw Error(Ce(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return T5(i),e;if(s===r)return T5(i),t;s=s.sibling}throw Error(Ce(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(Ce(189))}}if(n.alternate!==r)throw Error(Ce(190))}if(n.tag!==3)throw Error(Ce(188));return n.stateNode.current===n?e:t}function s3(e){return e=m6(e),e!==null?o3(e):null}function o3(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=o3(e);if(t!==null)return t;e=e.sibling}return null}var a3=fi.unstable_scheduleCallback,R5=fi.unstable_cancelCallback,g6=fi.unstable_shouldYield,v6=fi.unstable_requestPaint,Pn=fi.unstable_now,y6=fi.unstable_getCurrentPriorityLevel,h2=fi.unstable_ImmediatePriority,l3=fi.unstable_UserBlockingPriority,$p=fi.unstable_NormalPriority,w6=fi.unstable_LowPriority,c3=fi.unstable_IdlePriority,L0=null,Ts=null;function b6(e){if(Ts&&typeof Ts.onCommitFiberRoot=="function")try{Ts.onCommitFiberRoot(L0,e,void 0,(e.current.flags&128)===128)}catch{}}var Zi=Math.clz32?Math.clz32:S6,_6=Math.log,x6=Math.LN2;function S6(e){return e>>>=0,e===0?32:31-(_6(e)/x6|0)|0}var Af=64,Ef=4194304;function pd(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zp(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=pd(a):(s&=o,s!==0&&(r=pd(s)))}else o=n&~i,o!==0?r=pd(o):s!==0&&(r=pd(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Zi(t),i=1<<n,r|=e[n],t&=~i;return r}function k6(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function A6(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Zi(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=k6(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function T1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function u3(){var e=Af;return Af<<=1,!(Af&4194240)&&(Af=64),e}function eg(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function kh(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zi(t),e[t]=n}function E6(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Zi(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function f2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Zi(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Ht=0;function d3(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var h3,p2,f3,p3,m3,R1=!1,Nf=[],ha=null,fa=null,pa=null,zd=new Map,qd=new Map,Xo=[],N6="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 O5(e,t){switch(e){case"focusin":case"focusout":ha=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":pa=null;break;case"pointerover":case"pointerout":zd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qd.delete(t.pointerId)}}function Qu(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Eh(t),t!==null&&p2(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function C6(e,t,n,r,i){switch(t){case"focusin":return ha=Qu(ha,e,t,n,r,i),!0;case"dragenter":return fa=Qu(fa,e,t,n,r,i),!0;case"mouseover":return pa=Qu(pa,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return zd.set(s,Qu(zd.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,qd.set(s,Qu(qd.get(s)||null,e,t,n,r,i)),!0}return!1}function g3(e){var t=rl(e.target);if(t!==null){var n=Tl(t);if(n!==null){if(t=n.tag,t===13){if(t=i3(n),t!==null){e.blockedOn=t,m3(e.priority,function(){f3(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=O1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);N1=r,n.target.dispatchEvent(r),N1=null}else return t=Eh(n),t!==null&&p2(t),e.blockedOn=n,!1;t.shift()}return!0}function I5(e,t,n){mp(e)&&n.delete(t)}function L6(){R1=!1,ha!==null&&mp(ha)&&(ha=null),fa!==null&&mp(fa)&&(fa=null),pa!==null&&mp(pa)&&(pa=null),zd.forEach(I5),qd.forEach(I5)}function ed(e,t){e.blockedOn===t&&(e.blockedOn=null,R1||(R1=!0,fi.unstable_scheduleCallback(fi.unstable_NormalPriority,L6)))}function Hd(e){function t(i){return ed(i,e)}if(0<Nf.length){ed(Nf[0],e);for(var n=1;n<Nf.length;n++){var r=Nf[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ha!==null&&ed(ha,e),fa!==null&&ed(fa,e),pa!==null&&ed(pa,e),zd.forEach(t),qd.forEach(t),n=0;n<Xo.length;n++)r=Xo[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Xo.length&&(n=Xo[0],n.blockedOn===null);)g3(n),n.blockedOn===null&&Xo.shift()}var Oc=ko.ReactCurrentBatchConfig,qp=!0;function P6(e,t,n,r){var i=Ht,s=Oc.transition;Oc.transition=null;try{Ht=1,m2(e,t,n,r)}finally{Ht=i,Oc.transition=s}}function T6(e,t,n,r){var i=Ht,s=Oc.transition;Oc.transition=null;try{Ht=4,m2(e,t,n,r)}finally{Ht=i,Oc.transition=s}}function m2(e,t,n,r){if(qp){var i=O1(e,t,n,r);if(i===null)ug(e,t,r,Hp,n),O5(e,r);else if(C6(i,e,t,n,r))r.stopPropagation();else if(O5(e,r),t&4&&-1<N6.indexOf(e)){for(;i!==null;){var s=Eh(i);if(s!==null&&h3(s),s=O1(e,t,n,r),s===null&&ug(e,t,r,Hp,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else ug(e,t,r,null,n)}}var Hp=null;function O1(e,t,n,r){if(Hp=null,e=d2(r),e=rl(e),e!==null)if(t=Tl(e),t===null)e=null;else if(n=t.tag,n===13){if(e=i3(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Hp=e,null}
vendor: 10,081 bytes, line 37
37function v3(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(y6()){case h2:return 1;case l3:return 4;case $p:case w6:return 16;case c3:return 536870912;default:return 16}default:return 16}}var aa=null,g2=null,gp=null;function y3(){if(gp)return gp;var e,t=g2,n=t.length,r,i="value"in aa?aa.value:aa.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return gp=i.slice(e,1<r?1-r:void 0)}function vp(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Cf(){return!0}function j5(){return!1}function mi(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Cf:j5,this.isPropagationStopped=j5,this}return gn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Cf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Cf)},persist:function(){},isPersistent:Cf}),t}var pu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},v2=mi(pu),Ah=gn({},pu,{view:0,detail:0}),R6=mi(Ah),tg,ng,td,P0=gn({},Ah,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:y2,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==td&&(td&&e.type==="mousemove"?(tg=e.screenX-td.screenX,ng=e.screenY-td.screenY):ng=tg=0,td=e),tg)},movementY:function(e){return"movementY"in e?e.movementY:ng}}),F5=mi(P0),O6=gn({},P0,{dataTransfer:0}),I6=mi(O6),j6=gn({},Ah,{relatedTarget:0}),rg=mi(j6),F6=gn({},pu,{animationName:0,elapsedTime:0,pseudoElement:0}),D6=mi(F6),M6=gn({},pu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),B6=mi(M6),U6=gn({},pu,{data:0}),D5=mi(U6),$6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},z6={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"},q6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function H6(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=q6[e])?!!t[e]:!1}function y2(){return H6}var W6=gn({},Ah,{key:function(e){if(e.key){var t=$6[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vp(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?z6[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:y2,charCode:function(e){return e.type==="keypress"?vp(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vp(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),V6=mi(W6),G6=gn({},P0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),M5=mi(G6),K6=gn({},Ah,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:y2}),Y6=mi(K6),J6=gn({},pu,{propertyName:0,elapsedTime:0,pseudoElement:0}),X6=mi(J6),Z6=gn({},P0,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Q6=mi(Z6),eC=[9,13,27,32],w2=yo&&"CompositionEvent"in window,xd=null;yo&&"documentMode"in document&&(xd=document.documentMode);var tC=yo&&"TextEvent"in window&&!xd,w3=yo&&(!w2||xd&&8<xd&&11>=xd),B5=" ",U5=!1;function b3(e,t){switch(e){case"keyup":return eC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _3(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vc=!1;function nC(e,t){switch(e){case"compositionend":return _3(t);case"keypress":return t.which!==32?null:(U5=!0,B5);case"textInput":return e=t.data,e===B5&&U5?null:e;default:return null}}function rC(e,t){if(vc)return e==="compositionend"||!w2&&b3(e,t)?(e=y3(),gp=g2=aa=null,vc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return w3&&t.locale!=="ko"?null:t.data;default:return null}}var iC={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 $5(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iC[e.type]:t==="textarea"}function x3(e,t,n,r){Qx(r),t=Wp(t,"onChange"),0<t.length&&(n=new v2("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Sd=null,Wd=null;function sC(e){O3(e,0)}function T0(e){var t=bc(e);if(Vx(t))return e}function oC(e,t){if(e==="change")return t}var S3=!1;if(yo){var ig;if(yo){var sg="oninput"in document;if(!sg){var z5=document.createElement("div");z5.setAttribute("oninput","return;"),sg=typeof z5.oninput=="function"}ig=sg}else ig=!1;S3=ig&&(!document.documentMode||9<document.documentMode)}function q5(){Sd&&(Sd.detachEvent("onpropertychange",k3),Wd=Sd=null)}function k3(e){if(e.propertyName==="value"&&T0(Wd)){var t=[];x3(t,Wd,e,d2(e)),r3(sC,t)}}function aC(e,t,n){e==="focusin"?(q5(),Sd=t,Wd=n,Sd.attachEvent("onpropertychange",k3)):e==="focusout"&&q5()}function lC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return T0(Wd)}function cC(e,t){if(e==="click")return T0(t)}function uC(e,t){if(e==="input"||e==="change")return T0(t)}function dC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var es=typeof Object.is=="function"?Object.is:dC;function Vd(e,t){if(es(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!m1.call(t,i)||!es(e[i],t[i]))return!1}return!0}function H5(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function W5(e,t){var n=H5(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=H5(n)}}function A3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?A3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function E3(){for(var e=window,t=Mp();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mp(e.document)}return t}function b2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function hC(e){var t=E3(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&A3(n.ownerDocument.documentElement,n)){if(r!==null&&b2(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=W5(n,s);var o=W5(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fC=yo&&"documentMode"in document&&11>=document.documentMode,yc=null,I1=null,kd=null,j1=!1;
vendor: 4,821 bytes, line 37
37function V5(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;j1||yc==null||yc!==Mp(r)||(r=yc,"selectionStart"in r&&b2(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),kd&&Vd(kd,r)||(kd=r,r=Wp(I1,"onSelect"),0<r.length&&(t=new v2("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yc)))}function Lf(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wc={animationend:Lf("Animation","AnimationEnd"),animationiteration:Lf("Animation","AnimationIteration"),animationstart:Lf("Animation","AnimationStart"),transitionend:Lf("Transition","TransitionEnd")},og={},N3={};yo&&(N3=document.createElement("div").style,"AnimationEvent"in window||(delete wc.animationend.animation,delete wc.animationiteration.animation,delete wc.animationstart.animation),"TransitionEvent"in window||delete wc.transitionend.transition);function R0(e){if(og[e])return og[e];if(!wc[e])return e;var t=wc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in N3)return og[e]=t[n];return e}var C3=R0("animationend"),L3=R0("animationiteration"),P3=R0("animationstart"),T3=R0("transitionend"),R3=new Map,G5="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 Ca(e,t){R3.set(e,t),Pl(t,[e])}for(var ag=0;ag<G5.length;ag++){var lg=G5[ag],pC=lg.toLowerCase(),mC=lg[0].toUpperCase()+lg.slice(1);Ca(pC,"on"+mC)}Ca(C3,"onAnimationEnd");Ca(L3,"onAnimationIteration");Ca(P3,"onAnimationStart");Ca("dblclick","onDoubleClick");Ca("focusin","onFocus");Ca("focusout","onBlur");Ca(T3,"onTransitionEnd");tu("onMouseEnter",["mouseout","mouseover"]);tu("onMouseLeave",["mouseout","mouseover"]);tu("onPointerEnter",["pointerout","pointerover"]);tu("onPointerLeave",["pointerout","pointerover"]);Pl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Pl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Pl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Pl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Pl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Pl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var md="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(" "),gC=new Set("cancel close invalid load scroll toggle".split(" ").concat(md));function K5(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,p6(r,t,void 0,e),e.currentTarget=null}function O3(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;K5(i,a,c),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;K5(i,a,c),s=l}}}if(Up)throw e=P1,Up=!1,P1=null,e}function rn(e,t){var n=t[U1];n===void 0&&(n=t[U1]=new Set);var r=e+"__bubble";n.has(r)||(I3(t,e,2,!1),n.add(r))}function cg(e,t,n){var r=0;t&&(r|=4),I3(n,e,r,t)}var Pf="_reactListening"+Math.random().toString(36).slice(2);function Gd(e){if(!e[Pf]){e[Pf]=!0,$x.forEach(function(n){n!=="selectionchange"&&(gC.has(n)||cg(n,!1,e),cg(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pf]||(t[Pf]=!0,cg("selectionchange",!1,t))}}function I3(e,t,n,r){switch(v3(t)){case 1:var i=P6;break;case 4:i=T6;break;default:i=m2}n=i.bind(null,t,n,e),i=void 0,!L1||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ug(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;
vendor: 6,037 bytes, lines 37-38
37if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=rl(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}r3(function(){var c=s,d=d2(n),p=[];e:{var m=R3.get(e);if(m!==void 0){var h=v2,y=e;switch(e){case"keypress":if(vp(n)===0)break e;case"keydown":case"keyup":h=V6;break;case"focusin":y="focus",h=rg;break;case"focusout":y="blur",h=rg;break;case"beforeblur":case"afterblur":h=rg;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=F5;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=I6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Y6;break;case C3:case L3:case P3:h=D6;break;case T3:h=X6;break;case"scroll":h=R6;break;case"wheel":h=Q6;break;case"copy":case"cut":case"paste":h=B6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=M5}var w=(t&4)!==0,x=!w&&e==="scroll",v=w?m!==null?m+"Capture":null:m;w=[];for(var _=c,S;_!==null;){S=_;var A=S.stateNode;if(S.tag===5&&A!==null&&(S=A,v!==null&&(A=$d(_,v),A!=null&&w.push(Kd(_,A,S)))),x)break;_=_.return}0<w.length&&(m=new h(m,y,null,n,d),p.push({event:m,listeners:w}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",m&&n!==N1&&(y=n.relatedTarget||n.fromElement)&&(rl(y)||y[wo]))break e;if((h||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,h?(y=n.relatedTarget||n.toElement,h=c,y=y?rl(y):null,y!==null&&(x=Tl(y),y!==x||y.tag!==5&&y.tag!==6)&&(y=null)):(h=null,y=c),h!==y)){if(w=F5,A="onMouseLeave",v="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(w=M5,A="onPointerLeave",v="onPointerEnter",_="pointer"),x=h==null?m:bc(h),S=y==null?m:bc(y),m=new w(A,_+"leave",h,n,d),m.target=x,m.relatedTarget=S,A=null,rl(d)===c&&(w=new w(v,_+"enter",y,n,d),w.target=S,w.relatedTarget=x,A=w),x=A,h&&y)t:{for(w=h,v=y,_=0,S=w;S;S=Yl(S))_++;for(S=0,A=v;A;A=Yl(A))S++;for(;0<_-S;)w=Yl(w),_--;for(;0<S-_;)v=Yl(v),S--;for(;_--;){if(w===v||v!==null&&w===v.alternate)break t;w=Yl(w),v=Yl(v)}w=null}else w=null;h!==null&&Y5(p,m,h,w,!1),y!==null&&x!==null&&Y5(p,x,y,w,!0)}}e:{if(m=c?bc(c):window,h=m.nodeName&&m.nodeName.toLowerCase(),h==="select"||h==="input"&&m.type==="file")var O=oC;else if($5(m))if(S3)O=uC;else{O=lC;var $=aC}else(h=m.nodeName)&&h.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(O=cC);if(O&&(O=O(e,c))){x3(p,O,n,d);break e}$&&$(e,m,c),e==="focusout"&&($=m._wrapperState)&&$.controlled&&m.type==="number"&&x1(m,"number",m.value)}switch($=c?bc(c):window,e){case"focusin":($5($)||$.contentEditable==="true")&&(yc=$,I1=c,kd=null);break;case"focusout":kd=I1=yc=null;break;case"mousedown":j1=!0;break;case"contextmenu":case"mouseup":case"dragend":j1=!1,V5(p,n,d);break;case"selectionchange":if(fC)break;case"keydown":case"keyup":V5(p,n,d)}var H;if(w2)e:{switch(e){case"compositionstart":var B="onCompositionStart";break e;case"compositionend":B="onCompositionEnd";break e;case"compositionupdate":B="onCompositionUpdate";break e}B=void 0}else vc?b3(e,n)&&(B="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(B="onCompositionStart");B&&(w3&&n.locale!=="ko"&&(vc||B!=="onCompositionStart"?B==="onCompositionEnd"&&vc&&(H=y3()):(aa=d,g2="value"in aa?aa.value:aa.textContent,vc=!0)),$=Wp(c,B),0<$.length&&(B=new D5(B,e,null,n,d),p.push({event:B,listeners:$}),H?B.data=H:(H=_3(n),H!==null&&(B.data=H)))),(H=tC?nC(e,n):rC(e,n))&&(c=Wp(c,"onBeforeInput"),0<c.length&&(d=new D5("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:c}),d.data=H))}O3(p,t)})}function Kd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wp(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=$d(e,n),s!=null&&r.unshift(Kd(e,s,i)),s=$d(e,t),s!=null&&r.push(Kd(e,s,i))),e=e.return}return r}function Yl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Y5(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=$d(n,s),l!=null&&o.unshift(Kd(n,l,a))):i||(l=$d(n,s),l!=null&&o.push(Kd(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var vC=/\r\n?/g,yC=/\u0000|\uFFFD/g;function J5(e){return(typeof e=="string"?e:""+e).replace(vC,` 38`).replace(yC,"")}function Tf(e,t,n){if(t=J5(t),J5(e)!==t&&n)throw Error(Ce(425))}function Vp(){}var F1=null,D1=null;function M1(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var B1=typeof setTimeout=="function"?setTimeout:void 0,wC=typeof clearTimeout=="function"?clearTimeout:void 0,X5=typeof Promise=="function"?Promise:void 0,bC=typeof queueMicrotask=="function"?queueMicrotask:typeof X5<"u"?function(e){return X5.resolve(null).then(e).catch(_C)}:B1;function _C(e){setTimeout(function(){throw e})}function dg(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Hd(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Hd(t)}function ma(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Z5(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var mu=Math.random().toString(36).slice(2),Es="__reactFiber$"+mu,Yd="__reactProps$"+mu,
vendor: 4,202 bytes, line 38
38wo="__reactContainer$"+mu,U1="__reactEvents$"+mu,xC="__reactListeners$"+mu,SC="__reactHandles$"+mu;function rl(e){var t=e[Es];if(t)return t;for(var n=e.parentNode;n;){if(t=n[wo]||n[Es]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Z5(e);e!==null;){if(n=e[Es])return n;e=Z5(e)}return t}e=n,n=e.parentNode}return null}function Eh(e){return e=e[Es]||e[wo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ce(33))}function O0(e){return e[Yd]||null}var $1=[],_c=-1;function La(e){return{current:e}}function on(e){0>_c||(e.current=$1[_c],$1[_c]=null,_c--)}function en(e,t){_c++,$1[_c]=e.current,e.current=t}var ka={},Sr=La(ka),qr=La(!1),wl=ka;function nu(e,t){var n=e.type.contextTypes;if(!n)return ka;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Hr(e){return e=e.childContextTypes,e!=null}function Gp(){on(qr),on(Sr)}function Q5(e,t,n){if(Sr.current!==ka)throw Error(Ce(168));en(Sr,t),en(qr,n)}function j3(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Ce(108,a6(e)||"Unknown",i));return gn({},n,r)}function Kp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ka,wl=Sr.current,en(Sr,e),en(qr,qr.current),!0}function ew(e,t,n){var r=e.stateNode;if(!r)throw Error(Ce(169));n?(e=j3(e,t,wl),r.__reactInternalMemoizedMergedChildContext=e,on(qr),on(Sr),en(Sr,e)):on(qr),en(qr,n)}var uo=null,I0=!1,hg=!1;function F3(e){uo===null?uo=[e]:uo.push(e)}function kC(e){I0=!0,F3(e)}function Pa(){if(!hg&&uo!==null){hg=!0;var e=0,t=Ht;try{var n=uo;for(Ht=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}uo=null,I0=!1}catch(i){throw uo!==null&&(uo=uo.slice(e+1)),a3(h2,Pa),i}finally{Ht=t,hg=!1}}return null}var xc=[],Sc=0,Yp=null,Jp=0,ki=[],Ai=0,bl=null,mo=1,go="";function Xa(e,t){xc[Sc++]=Jp,xc[Sc++]=Yp,Yp=e,Jp=t}function D3(e,t,n){ki[Ai++]=mo,ki[Ai++]=go,ki[Ai++]=bl,bl=e;var r=mo;e=go;var i=32-Zi(r)-1;r&=~(1<<i),n+=1;var s=32-Zi(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,mo=1<<32-Zi(t)+i|n<<i|r,go=s+e}else mo=1<<s|n<<i|r,go=e}function _2(e){e.return!==null&&(Xa(e,1),D3(e,1,0))}function x2(e){for(;e===Yp;)Yp=xc[--Sc],xc[Sc]=null,Jp=xc[--Sc],xc[Sc]=null;for(;e===bl;)bl=ki[--Ai],ki[Ai]=null,go=ki[--Ai],ki[Ai]=null,mo=ki[--Ai],ki[Ai]=null}var di=null,li=null,dn=!1,Xi=null;function M3(e,t){var n=Ni(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function tw(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,di=e,li=ma(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,di=e,li=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=bl!==null?{id:mo,overflow:go}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ni(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,di=e,li=null,!0):!1;default:return!1}}function z1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function q1(e){if(dn){var t=li;if(t){var n=t;if(!tw(e,t)){if(z1(e))throw Error(Ce(418));t=ma(n.nextSibling);var r=di;t&&tw(e,t)?M3(r,n):(e.flags=e.flags&-4097|2,dn=!1,di=e)}}else{if(z1(e))throw Error(Ce(418));e.flags=e.flags&-4097|2,dn=!1,di=e}}}function nw(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;di=e}function Rf(e){if(e!==di)return!1;if(!dn)return nw(e),dn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!M1(e.type,e.memoizedProps)),t&&(t=li)){if(z1(e))throw B3(),Error(Ce(418));for(;t;)M3(e,t),t=ma(t.nextSibling)}if(nw(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ce(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){li=ma(e.nextSibling);break e}t--}
vendor: 23,293 bytes, lines 38-40
38else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}li=null}}else li=di?ma(e.stateNode.nextSibling):null;return!0}function B3(){for(var e=li;e;)e=ma(e.nextSibling)}function ru(){li=di=null,dn=!1}function S2(e){Xi===null?Xi=[e]:Xi.push(e)}var AC=ko.ReactCurrentBatchConfig;function nd(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Ce(309));var r=n.stateNode}if(!r)throw Error(Ce(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(Ce(284));if(!n._owner)throw Error(Ce(290,e))}return e}function Of(e,t){throw e=Object.prototype.toString.call(t),Error(Ce(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function rw(e){var t=e._init;return t(e._payload)}function U3(e){function t(v,_){if(e){var S=v.deletions;S===null?(v.deletions=[_],v.flags|=16):S.push(_)}}function n(v,_){if(!e)return null;for(;_!==null;)t(v,_),_=_.sibling;return null}function r(v,_){for(v=new Map;_!==null;)_.key!==null?v.set(_.key,_):v.set(_.index,_),_=_.sibling;return v}function i(v,_){return v=wa(v,_),v.index=0,v.sibling=null,v}function s(v,_,S){return v.index=S,e?(S=v.alternate,S!==null?(S=S.index,S<_?(v.flags|=2,_):S):(v.flags|=2,_)):(v.flags|=1048576,_)}function o(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,_,S,A){return _===null||_.tag!==6?(_=wg(S,v.mode,A),_.return=v,_):(_=i(_,S),_.return=v,_)}function l(v,_,S,A){var O=S.type;return O===gc?d(v,_,S.props.children,A,S.key):_!==null&&(_.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Yo&&rw(O)===_.type)?(A=i(_,S.props),A.ref=nd(v,_,S),A.return=v,A):(A=kp(S.type,S.key,S.props,null,v.mode,A),A.ref=nd(v,_,S),A.return=v,A)}function c(v,_,S,A){return _===null||_.tag!==4||_.stateNode.containerInfo!==S.containerInfo||_.stateNode.implementation!==S.implementation?(_=bg(S,v.mode,A),_.return=v,_):(_=i(_,S.children||[]),_.return=v,_)}function d(v,_,S,A,O){return _===null||_.tag!==7?(_=vl(S,v.mode,A,O),_.return=v,_):(_=i(_,S),_.return=v,_)}function p(v,_,S){if(typeof _=="string"&&_!==""||typeof _=="number")return _=wg(""+_,v.mode,S),_.return=v,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case xf:return S=kp(_.type,_.key,_.props,null,v.mode,S),S.ref=nd(v,null,_),S.return=v,S;case mc:return _=bg(_,v.mode,S),_.return=v,_;case Yo:var A=_._init;return p(v,A(_._payload),S)}if(fd(_)||Xu(_))return _=vl(_,v.mode,S,null),_.return=v,_;Of(v,_)}return null}function m(v,_,S,A){var O=_!==null?_.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return O!==null?null:a(v,_,""+S,A);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case xf:return S.key===O?l(v,_,S,A):null;case mc:return S.key===O?c(v,_,S,A):null;case Yo:return O=S._init,m(v,_,O(S._payload),A)}if(fd(S)||Xu(S))return O!==null?null:d(v,_,S,A,null);Of(v,S)}return null}function h(v,_,S,A,O){if(typeof A=="string"&&A!==""||typeof A=="number")return v=v.get(S)||null,a(_,v,""+A,O);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case xf:return v=v.get(A.key===null?S:A.key)||null,l(_,v,A,O);case mc:return v=v.get(A.key===null?S:A.key)||null,c(_,v,A,O);case Yo:var $=A._init;return h(v,_,S,$(A._payload),O)}if(fd(A)||Xu(A))return v=v.get(S)||null,d(_,v,A,O,null);Of(_,A)}return null}function y(v,_,S,A){for(var O=null,$=null,H=_,B=_=0,R=null;H!==null&&B<S.length;B++){H.index>B?(R=H,H=null):R=H.sibling;var X=m(v,H,S[B],A);if(X===null){H===null&&(H=R);break}e&&H&&X.alternate===null&&t(v,H),_=s(X,_,B),$===null?O=X:$.sibling=X,$=X,H=R}if(B===S.length)return n(v,H),dn&&Xa(v,B),O;if(H===null){for(;B<S.length;B++)H=p(v,S[B],A),H!==null&&(_=s(H,_,B),$===null?O=H:$.sibling=H,$=H);return dn&&Xa(v,B),O}for(H=r(v,H);B<S.length;B++)R=h(H,v,B,S[B],A),R!==null&&(e&&R.alternate!==null&&H.delete(R.key===null?B:R.key),_=s(R,_,B),$===null?O=R:$.sibling=R,$=R);return e&&H.forEach(function(L){return t(v,L)}),dn&&Xa(v,B),O}function w(v,_,S,A){var O=Xu(S);if(typeof O!="function")throw Error(Ce(150));if(S=O.call(S),S==null)throw Error(Ce(151));for(var $=O=null,H=_,B=_=0,R=null,X=S.next();H!==null&&!X.done;B++,X=S.next()){H.index>B?(R=H,H=null):R=H.sibling;var L=m(v,H,X.value,A);if(L===null){H===null&&(H=R);break}e&&H&&L.alternate===null&&t(v,H),_=s(L,_,B),$===null?O=L:$.sibling=L,$=L,H=R}if(X.done)return n(v,H),dn&&Xa(v,B),O;if(H===null){for(;!X.done;B++,X=S.next())X=p(v,X.value,A),X!==null&&(_=s(X,_,B),$===null?O=X:$.sibling=X,$=X);return dn&&Xa(v,B),O}for(H=r(v,H);!X.done;B++,X=S.next())X=h(H,v,B,X.value,A),X!==null&&(e&&X.alternate!==null&&H.delete(X.key===null?B:X.key),_=s(X,_,B),$===null?O=X:$.sibling=X,$=X);return e&&H.forEach(function(I){return t(v,I)}),dn&&Xa(v,B),O}function x(v,_,S,A){if(typeof S=="object"&&S!==null&&S.type===gc&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case xf:e:{for(var O=S.key,$=_;$!==null;){if($.key===O){if(O=S.type,O===gc){if($.tag===7){n(v,$.sibling),_=i($,S.props.children),_.return=v,v=_;break e}}else if($.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Yo&&rw(O)===$.type){n(v,$.sibling),_=i($,S.props),_.ref=nd(v,$,S),_.return=v,v=_;break e}n(v,$);break}else t(v,$);$=$.sibling}S.type===gc?(_=vl(S.props.children,v.mode,A,S.key),_.return=v,v=_):(A=kp(S.type,S.key,S.props,null,v.mode,A),A.ref=nd(v,_,S),A.return=v,v=A)}return o(v);case mc:e:{for($=S.key;_!==null;){if(_.key===$)if(_.tag===4&&_.stateNode.containerInfo===S.containerInfo&&_.stateNode.implementation===S.implementation){n(v,_.sibling),_=i(_,S.children||[]),_.return=v,v=_;break e}else{n(v,_);break}else t(v,_);_=_.sibling}_=bg(S,v.mode,A),_.return=v,v=_}return o(v);case Yo:return $=S._init,x(v,_,$(S._payload),A)}if(fd(S))return y(v,_,S,A);if(Xu(S))return w(v,_,S,A);Of(v,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,_!==null&&_.tag===6?(n(v,_.sibling),_=i(_,S),_.return=v,v=_):(n(v,_),_=wg(S,v.mode,A),_.return=v,v=_),o(v)):n(v,_)}return x}var iu=U3(!0),$3=U3(!1),Xp=La(null),Zp=null,kc=null,k2=null;function A2(){k2=kc=Zp=null}function E2(e){var t=Xp.current;on(Xp),e._currentValue=t}function H1(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ic(e,t){Zp=e,k2=kc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($r=!0),e.firstContext=null)}function Li(e){var t=e._currentValue;if(k2!==e)if(e={context:e,memoizedValue:t,next:null},kc===null){if(Zp===null)throw Error(Ce(308));kc=e,Zp.dependencies={lanes:0,firstContext:e}}else kc=kc.next=e;return t}var il=null;function N2(e){il===null?il=[e]:il.push(e)}function z3(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,N2(t)):(n.next=i.next,i.next=n),t.interleaved=n,bo(e,r)}function bo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Jo=!1;function C2(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function q3(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function vo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ga(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ot&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,bo(e,n)}return i=r.interleaved,i===null?(t.next=t,N2(r)):(t.next=i.next,i.next=t),r.interleaved=t,bo(e,n)}function yp(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,f2(e,n)}}function iw(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qp(e,t,n,r){var i=e.updateQueue;Jo=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(s!==null){var p=i.baseState;o=0,d=c=l=null,a=s;do{var m=a.lane,h=a.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,w=a;switch(m=t,h=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){p=y.call(h,p,m);break e}p=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,m=typeof y=="function"?y.call(h,p,m):y,m==null)break e;p=gn({},p,m);break e;case 2:Jo=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[a]:m.push(a))}else h={eventTime:h,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=h,l=p):d=d.next=h,o|=m;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;m=a,a=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(d===null&&(l=p),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);xl|=o,e.lanes=o,e.memoizedState=p}}function sw(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Ce(191,i));i.call(r)}}}var Nh={},Rs=La(Nh),Jd=La(Nh),Xd=La(Nh);function sl(e){if(e===Nh)throw Error(Ce(174));return e}function L2(e,t){switch(en(Xd,t),en(Jd,e),en(Rs,Nh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:k1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=k1(t,e)}on(Rs),en(Rs,t)}function su(){on(Rs),on(Jd),on(Xd)}function H3(e){sl(Xd.current);var t=sl(Rs.current),n=k1(t,e.type);t!==n&&(en(Jd,e),en(Rs,n))}function P2(e){Jd.current===e&&(on(Rs),on(Jd))}var fn=La(0);function e0(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fg=[];function T2(){for(var e=0;e<fg.length;e++)fg[e]._workInProgressVersionPrimary=null;fg.length=0}var wp=ko.ReactCurrentDispatcher,pg=ko.ReactCurrentBatchConfig,_l=0,mn=null,Wn=null,Jn=null,t0=!1,Ad=!1,Zd=0,EC=0;function mr(){throw Error(Ce(321))}function R2(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!es(e[n],t[n]))return!1;return!0}function O2(e,t,n,r,i,s){if(_l=s,mn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wp.current=e===null||e.memoizedState===null?PC:TC,e=n(r,i),Ad){s=0;do{if(Ad=!1,Zd=0,25<=s)throw Error(Ce(301));s+=1,Jn=Wn=null,t.updateQueue=null,wp.current=RC,e=n(r,i)}while(Ad)}if(wp.current=n0,t=Wn!==null&&Wn.next!==null,_l=0,Jn=Wn=mn=null,t0=!1,t)throw Error(Ce(300));return e}function I2(){var e=Zd!==0;return Zd=0,e}function bs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jn===null?mn.memoizedState=Jn=e:Jn=Jn.next=e,Jn}function Pi(){if(Wn===null){var e=mn.alternate;e=e!==null?e.memoizedState:null}else e=Wn.next;var t=Jn===null?mn.memoizedState:Jn.next;if(t!==null)Jn=t,Wn=e;else{if(e===null)throw Error(Ce(310));Wn=e,e={memoizedState:Wn.memoizedState,baseState:Wn.baseState,baseQueue:Wn.baseQueue,queue:Wn.queue,next:null},Jn===null?mn.memoizedState=Jn=e:Jn=Jn.next=e}return Jn}function Qd(e,t){return typeof t=="function"?t(e):t}function mg(e){var t=Pi(),n=t.queue;if(n===null)throw Error(Ce(311));n.lastRenderedReducer=e;var r=Wn,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,c=s;do{var d=c.lane;if((_l&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=p,o=r):l=l.next=p,mn.lanes|=d,xl|=d}c=c.next}while(c!==null&&c!==s);l===null?o=r:l.next=a,es(r,t.memoizedState)||($r=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,mn.lanes|=s,xl|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gg(e){var t=Pi(),n=t.queue;if(n===null)throw Error(Ce(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);es(s,t.memoizedState)||($r=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function W3(){}function V3(e,t){var n=mn,r=Pi(),i=t(),s=!es(r.memoizedState,i);if(s&&(r.memoizedState=i,$r=!0),r=r.queue,j2(Y3.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Jn!==null&&Jn.memoizedState.tag&1){if(n.flags|=2048,eh(9,K3.bind(null,n,r,i,t),void 0,null),Zn===null)throw Error(Ce(349));_l&30||G3(n,t,i)}return i}function G3(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=mn.updateQueue,t===null?(t={lastEffect:null,stores:null},mn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function K3(e,t,n,r){t.value=n,t.getSnapshot=r,J3(t)&&X3(e)}function Y3(e,t,n){return n(function(){J3(t)&&X3(e)})}function J3(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!es(e,n)}catch{return!0}}function X3(e){var t=bo(e,1);t!==null&&Qi(t,e,1,-1)}function ow(e){var t=bs();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qd,lastRenderedState:e},t.queue=e,e=e.dispatch=LC.bind(null,mn,e),[t.memoizedState,e]}function eh(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=mn.updateQueue,t===null?(t={lastEffect:null,stores:null},mn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Z3(){return Pi().memoizedState}function bp(e,t,n,r){var i=bs();mn.flags|=e,i.memoizedState=eh(1|t,n,void 0,r===void 0?null:r)}function j0(e,t,n,r){var i=Pi();r=r===void 0?null:r;var s=void 0;if(Wn!==null){var o=Wn.memoizedState;if(s=o.destroy,r!==null&&R2(r,o.deps)){i.memoizedState=eh(t,n,s,r);return}}mn.flags|=e,i.memoizedState=eh(1|t,n,s,r)}function aw(e,t){return bp(8390656,8,e,t)}function j2(e,t){return j0(2048,8,e,t)}function Q3(e,t){return j0(4,2,e,t)}function eS(e,t){return j0(4,4,e,t)}function tS(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function nS(e,t,n){return n=n!=null?n.concat([e]):null,j0(4,4,tS.bind(null,t,e),n)}function F2(){}function rS(e,t){var n=Pi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&R2(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function iS(e,t){var n=Pi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&R2(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function sS(e,t,n){return _l&21?(es(n,t)||(n=u3(),mn.lanes|=n,xl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,$r=!0),e.memoizedState=n)}function NC(e,t){var n=Ht;Ht=n!==0&&4>n?n:4,e(!0);var r=pg.transition;pg.transition={};try{e(!1),t()}finally{Ht=n,pg.transition=r}}function oS(){return Pi().memoizedState}function CC(e,t,n){var r=ya(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},aS(e))lS(t,n);else if(n=z3(e,t,n,r),n!==null){var i=Or();Qi(n,e,r,i),cS(n,t,r)}}function LC(e,t,n){var r=ya(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(aS(e))lS(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,es(a,o)){var l=t.interleaved;l===null?(i.next=i,N2(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=z3(e,t,i,r),n!==null&&(i=Or(),Qi(n,e,r,i),cS(n,t,r))}}function aS(e){var t=e.alternate;return e===mn||t!==null&&t===mn}function lS(e,t){Ad=t0=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,f2(e,n)}}var n0={readContext:Li,useCallback:mr,useContext:mr,useEffect:mr,useImperativeHandle:mr,useInsertionEffect:mr,useLayoutEffect:mr,useMemo:mr,useReducer:mr,useRef:mr,useState:mr,useDebugValue:mr,useDeferredValue:mr,useTransition:mr,useMutableSource:mr,useSyncExternalStore:mr,useId:mr,unstable_isNewReconciler:!1},PC={readContext:Li,useCallback:function(e,t){return bs().memoizedState=[e,t===void 0?null:t],e},useContext:Li,useEffect:aw,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,bp(4194308,4,tS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bp(4194308,4,e,t)},useInsertionEffect:function(e,t){return bp(4,2,e,t)},useMemo:function(e,t){var n=bs();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bs();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=CC.bind(null,mn,e),[r.memoizedState,e]},useRef:function(e){var t=bs();return e={current:e},t.memoizedState=e},useState:ow,useDebugValue:F2,useDeferredValue:function(e){return bs().memoizedState=e},useTransition:function(){var e=ow(!1),t=e[0];return e=NC.bind(null,e[1]),bs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mn,i=bs();if(dn){if(n===void 0)throw Error(Ce(407));n=n()}else{if(n=t(),Zn===null)throw Error(Ce(349));_l&30||G3(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,aw(Y3.bind(null,r,s,e),[e]),r.flags|=2048,eh(9,K3.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=bs(),t=Zn.identifierPrefix;if(dn){var n=go,r=mo;n=(r&~(1<<32-Zi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zd++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=EC++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},TC={readContext:Li,useCallback:rS,useContext:Li,useEffect:j2,useImperativeHandle:nS,useInsertionEffect:Q3,useLayoutEffect:eS,useMemo:iS,useReducer:mg,useRef:Z3,useState:function(){return mg(Qd)},useDebugValue:F2,useDeferredValue:function(e){var t=Pi();return sS(t,Wn.memoizedState,e)},useTransition:function(){var e=mg(Qd)[0],t=Pi().memoizedState;return[e,t]},useMutableSource:W3,useSyncExternalStore:V3,useId:oS,unstable_isNewReconciler:!1},RC={readContext:Li,useCallback:rS,useContext:Li,useEffect:j2,useImperativeHandle:nS,useInsertionEffect:Q3,useLayoutEffect:eS,useMemo:iS,useReducer:gg,useRef:Z3,useState:function(){return gg(Qd)},useDebugValue:F2,useDeferredValue:function(e){var t=Pi();return Wn===null?t.memoizedState=e:sS(t,Wn.memoizedState,e)},useTransition:function(){var e=gg(Qd)[0],t=Pi().memoizedState;return[e,t]},useMutableSource:W3,useSyncExternalStore:V3,useId:oS,unstable_isNewReconciler:!1};function Wi(e,t){if(e&&e.defaultProps){t=gn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function W1(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:gn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var F0={isMounted:function(e){return(e=e._reactInternals)?Tl(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Or(),i=ya(e),s=vo(r,i);s.payload=t,n!=null&&(s.callback=n),t=ga(e,s,i),t!==null&&(Qi(t,e,i,r),yp(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Or(),i=ya(e),s=vo(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=ga(e,s,i),t!==null&&(Qi(t,e,i,r),yp(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Or(),r=ya(e),i=vo(n,r);i.tag=2,t!=null&&(i.callback=t),t=ga(e,i,r),t!==null&&(Qi(t,e,r,n),yp(t,e,r))}};function lw(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Vd(n,r)||!Vd(i,s):!0}function uS(e,t,n){var r=!1,i=ka,s=t.contextType;return typeof s=="object"&&s!==null?s=Li(s):(i=Hr(t)?wl:Sr.current,r=t.contextTypes,s=(r=r!=null)?nu(e,i):ka),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=F0,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function cw(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&F0.enqueueReplaceState(t,t.state,null)}function V1(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},C2(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Li(s):(s=Hr(t)?wl:Sr.current,i.context=nu(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(W1(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&F0.enqueueReplaceState(i,i.state,null),Qp(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ou(e,t){try{var n="",r=t;do n+=o6(r),r=r.return;while(r);var i=n}catch(s){i=` 39Error generating stack: `+s.message+` 40`+s.stack}return{value:e,source:t,stack:i,digest:null}}function vg(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function G1(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var OC=typeof WeakMap=="function"?WeakMap:Map;function dS(e,t,n){n=vo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){i0||(i0=!0,rv=r),G1(e,t)},n}function hS(e,t,n){n=vo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){G1(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){G1(e,t),typeof r!="function"&&(va===null?va=new Set([this]):va.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}
vendor: 10,982 bytes, line 40
40function uw(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new OC;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=GC.bind(null,e,t,n),t.then(e,e))}function dw(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function hw(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=vo(-1,1),t.tag=2,ga(n,t,1))),n.lanes|=1),e)}var IC=ko.ReactCurrentOwner,$r=!1;function Pr(e,t,n,r){t.child=e===null?$3(t,null,n,r):iu(t,e.child,n,r)}function fw(e,t,n,r,i){n=n.render;var s=t.ref;return Ic(t,i),r=O2(e,t,n,r,s,i),n=I2(),e!==null&&!$r?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,_o(e,t,i)):(dn&&n&&_2(t),t.flags|=1,Pr(e,t,r,i),t.child)}function pw(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!H2(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,fS(e,t,s,r,i)):(e=kp(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Vd,n(o,r)&&e.ref===t.ref)return _o(e,t,i)}return t.flags|=1,e=wa(s,r),e.ref=t.ref,e.return=t,t.child=e}function fS(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Vd(s,r)&&e.ref===t.ref)if($r=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&($r=!0);else return t.lanes=e.lanes,_o(e,t,i)}return K1(e,t,n,r,i)}function pS(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},en(Ec,si),si|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,en(Ec,si),si|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,en(Ec,si),si|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,en(Ec,si),si|=r;return Pr(e,t,i,n),t.child}function mS(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function K1(e,t,n,r,i){var s=Hr(n)?wl:Sr.current;return s=nu(t,s),Ic(t,i),n=O2(e,t,n,r,s,i),r=I2(),e!==null&&!$r?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,_o(e,t,i)):(dn&&r&&_2(t),t.flags|=1,Pr(e,t,n,i),t.child)}function mw(e,t,n,r,i){if(Hr(n)){var s=!0;Kp(t)}else s=!1;if(Ic(t,i),t.stateNode===null)_p(e,t),uS(t,n,r),V1(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Li(c):(c=Hr(n)?wl:Sr.current,c=nu(t,c));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";p||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&cw(t,o,r,c),Jo=!1;var m=t.memoizedState;o.state=m,Qp(t,r,o,i),l=t.memoizedState,a!==r||m!==l||qr.current||Jo?(typeof d=="function"&&(W1(t,n,d,r),l=t.memoizedState),(a=Jo||lw(t,n,a,r,m,l,c))?(p||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,q3(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Wi(t.type,a),o.props=c,p=t.pendingProps,m=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Li(l):(l=Hr(n)?wl:Sr.current,l=nu(t,l));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==p||m!==l)&&cw(t,o,r,l),Jo=!1,m=t.memoizedState,o.state=m,Qp(t,r,o,i);var y=t.memoizedState;a!==p||m!==y||qr.current||Jo?(typeof h=="function"&&(W1(t,n,h,r),y=t.memoizedState),(c=Jo||lw(t,n,c,r,m,y,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Y1(e,t,n,r,s,i)}function Y1(e,t,n,r,i,s){mS(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&ew(t,n,!1),_o(e,t,s);r=t.stateNode,IC.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=iu(t,e.child,null,s),t.child=iu(t,null,a,s)):Pr(e,t,a,s),t.memoizedState=r.state,i&&ew(t,n,!0),t.child}function gS(e){var t=e.stateNode;t.pendingContext?Q5(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Q5(e,t.context,!1),L2(e,t.containerInfo)}function gw(e,t,n,r,i){return ru(),S2(i),t.flags|=256,Pr(e,t,n,r),t.child}var J1={dehydrated:null,treeContext:null,retryLane:0};function X1(e){return{baseLanes:e,cachePool:null,transitions:null}}function vS(e,t,n){var r=t.pendingProps,i=fn.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),en(fn,i&1),e===null)return q1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=B0(o,r,0,null),e=vl(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=X1(n),t.memoizedState=J1,e):D2(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return jC(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=wa(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=wa(a,s):(s=vl(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?X1(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=J1,r}return s=e.child,e=s.sibling,r=wa(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function D2(e,t){return t=B0({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function If(e,t,n,r){return r!==null&&S2(r),iu(t,e.child,null,n),e=D2(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jC(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=vg(Error(Ce(422))),If(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=B0({mode:"visible",children:r.children},i,0,null),s=vl(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&iu(t,e.child,null,o),t.child.memoizedState=X1(o),t.memoizedState=J1,s);if(!(t.mode&1))return If(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(Ce(419)),r=vg(s,r,void 0),If(e,t,o,r)}if(a=(o&e.childLanes)!==0,$r||a){if(r=Zn,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,bo(e,i),Qi(r,e,i,-1))}return q2(),r=vg(Error(Ce(421))),If(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=KC.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,li=ma(i.nextSibling),di=t,dn=!0,Xi=null,e!==null&&(ki[Ai++]=mo,ki[Ai++]=go,ki[Ai++]=bl,mo=e.id,go=e.overflow,bl=t),t=D2(t,r.children),t.flags|=4096,t)}function vw(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),H1(e.return,t,n)}function yg(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function yS(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Pr(e,t,r.children,n),r=fn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vw(e,n,t);else if(e.tag===19)vw(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(en(fn,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&e0(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),yg(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&e0(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}yg(t,!0,n,null,s);break;case"together":yg(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _p(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function _o(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xl|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ce(153));if(t.child!==null){for(e=t.child,n=wa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function FC(e,t,n){switch(t.tag){case 3:gS(t),ru();break;case 5:H3(t);break;case 1:Hr(t.type)&&Kp(t);break;case 4:L2(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;en(Xp,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(en(fn,fn.current&1),t.flags|=128,null):n&t.child.childLanes?vS(e,t,n
vendor: 4,179 bytes, line 40
40):(en(fn,fn.current&1),e=_o(e,t,n),e!==null?e.sibling:null);en(fn,fn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return yS(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),en(fn,fn.current),r)break;return null;case 22:case 23:return t.lanes=0,pS(e,t,n)}return _o(e,t,n)}var wS,Z1,bS,_S;wS=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Z1=function(){};bS=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,sl(Rs.current);var s=null;switch(n){case"input":i=b1(e,i),r=b1(e,r),s=[];break;case"select":i=gn({},i,{value:void 0}),r=gn({},r,{value:void 0}),s=[];break;case"textarea":i=S1(e,i),r=S1(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Vp)}A1(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Bd.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Bd.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&rn("scroll",e),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};_S=function(e,t,n,r){n!==r&&(t.flags|=4)};function rd(e,t){if(!dn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function gr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function DC(e,t,n){var r=t.pendingProps;switch(x2(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gr(t),null;case 1:return Hr(t.type)&&Gp(),gr(t),null;case 3:return r=t.stateNode,su(),on(qr),on(Sr),T2(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Rf(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Xi!==null&&(ov(Xi),Xi=null))),Z1(e,t),gr(t),null;case 5:P2(t);var i=sl(Xd.current);if(n=t.type,e!==null&&t.stateNode!=null)bS(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Ce(166));return gr(t),null}if(e=sl(Rs.current),Rf(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Es]=t,r[Yd]=s,e=(t.mode&1)!==0,n){case"dialog":rn("cancel",r),rn("close",r);break;case"iframe":case"object":case"embed":rn("load",r);break;case"video":case"audio":for(i=0;i<md.length;i++)rn(md[i],r);break;case"source":rn("error",r);break;case"img":case"image":case"link":rn("error",r),rn("load",r);break;case"details":rn("toggle",r);break;case"input":E5(r,s),rn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},rn("invalid",r);break;case"textarea":C5(r,s),rn("invalid",r)}A1(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];
vendor: 28,988 bytes, line 40
40o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Tf(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Tf(r.textContent,a,e),i=["children",""+a]):Bd.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&rn("scroll",r)}switch(n){case"input":Sf(r),N5(r,s,!0);break;case"textarea":Sf(r),L5(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Vp)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Yx(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Es]=t,e[Yd]=r,wS(e,t,!1,!1),t.stateNode=e;e:{switch(o=E1(n,r),n){case"dialog":rn("cancel",e),rn("close",e),i=r;break;case"iframe":case"object":case"embed":rn("load",e),i=r;break;case"video":case"audio":for(i=0;i<md.length;i++)rn(md[i],e);i=r;break;case"source":rn("error",e),i=r;break;case"img":case"image":case"link":rn("error",e),rn("load",e),i=r;break;case"details":rn("toggle",e),i=r;break;case"input":E5(e,r),i=b1(e,r),rn("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=gn({},r,{value:void 0}),rn("invalid",e);break;case"textarea":C5(e,r),i=S1(e,r),rn("invalid",e);break;default:i=r}A1(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Zx(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Jx(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ud(e,l):typeof l=="number"&&Ud(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Bd.hasOwnProperty(s)?l!=null&&s==="onScroll"&&rn("scroll",e):l!=null&&a2(e,s,l,o))}switch(n){case"input":Sf(e),N5(e,r,!1);break;case"textarea":Sf(e),L5(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Sa(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Pc(e,!!r.multiple,s,!1):r.defaultValue!=null&&Pc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Vp)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return gr(t),null;case 6:if(e&&t.stateNode!=null)_S(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Ce(166));if(n=sl(Xd.current),sl(Rs.current),Rf(t)){if(r=t.stateNode,n=t.memoizedProps,r[Es]=t,(s=r.nodeValue!==n)&&(e=di,e!==null))switch(e.tag){case 3:Tf(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Tf(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Es]=t,t.stateNode=r}return gr(t),null;case 13:if(on(fn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(dn&&li!==null&&t.mode&1&&!(t.flags&128))B3(),ru(),t.flags|=98560,s=!1;else if(s=Rf(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(Ce(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Ce(317));s[Es]=t}else ru(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gr(t),s=!1}else Xi!==null&&(ov(Xi),Xi=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||fn.current&1?Vn===0&&(Vn=3):q2())),t.updateQueue!==null&&(t.flags|=4),gr(t),null);case 4:return su(),Z1(e,t),e===null&&Gd(t.stateNode.containerInfo),gr(t),null;case 10:return E2(t.type._context),gr(t),null;case 17:return Hr(t.type)&&Gp(),gr(t),null;case 19:if(on(fn),s=t.memoizedState,s===null)return gr(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)rd(s,!1);else{if(Vn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=e0(e),o!==null){for(t.flags|=128,rd(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return en(fn,fn.current&1|2),t.child}e=e.sibling}s.tail!==null&&Pn()>au&&(t.flags|=128,r=!0,rd(s,!1),t.lanes=4194304)}else{if(!r)if(e=e0(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rd(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!dn)return gr(t),null}else 2*Pn()-s.renderingStartTime>au&&n!==1073741824&&(t.flags|=128,r=!0,rd(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Pn(),t.sibling=null,n=fn.current,en(fn,r?n&1|2:n&1),t):(gr(t),null);case 22:case 23:return z2(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?si&1073741824&&(gr(t),t.subtreeFlags&6&&(t.flags|=8192)):gr(t),null;case 24:return null;case 25:return null}throw Error(Ce(156,t.tag))}function MC(e,t){switch(x2(t),t.tag){case 1:return Hr(t.type)&&Gp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return su(),on(qr),on(Sr),T2(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return P2(t),null;case 13:if(on(fn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ce(340));ru()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return on(fn),null;case 4:return su(),null;case 10:return E2(t.type._context),null;case 22:case 23:return z2(),null;case 24:return null;default:return null}}var jf=!1,xr=!1,BC=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function Ac(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){kn(e,t,r)}else n.current=null}function Q1(e,t,n){try{n()}catch(r){kn(e,t,r)}}var yw=!1;function UC(e,t){if(F1=qp,e=E3(),b2(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,d=0,p=e,m=null;t:for(;;){for(var h;p!==n||i!==0&&p.nodeType!==3||(a=o+i),p!==s||r!==0&&p.nodeType!==3||(l=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(h=p.firstChild)!==null;)m=p,p=h;for(;;){if(p===e)break t;if(m===n&&++c===i&&(a=o),m===s&&++d===r&&(l=o),(h=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(D1={focusedElem:e,selectionRange:n},qp=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){t=Ie;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,x=y.memoizedState,v=t.stateNode,_=v.getSnapshotBeforeUpdate(t.elementType===t.type?w:Wi(t.type,w),x);v.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ce(163))}}catch(A){kn(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}return y=yw,yw=!1,y}function Ed(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Q1(t,n,s)}i=i.next}while(i!==r)}}function D0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ev(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function xS(e){var t=e.alternate;t!==null&&(e.alternate=null,xS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Es],delete t[Yd],delete t[U1],delete t[xC],delete t[SC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function SS(e){return e.tag===5||e.tag===3||e.tag===4}function ww(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||SS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tv(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vp));else if(r!==4&&(e=e.child,e!==null))for(tv(e,t,n),e=e.sibling;e!==null;)tv(e,t,n),e=e.sibling}function nv(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(nv(e,t,n),e=e.sibling;e!==null;)nv(e,t,n),e=e.sibling}var lr=null,Ji=!1;function zo(e,t,n){for(n=n.child;n!==null;)kS(e,t,n),n=n.sibling}function kS(e,t,n){if(Ts&&typeof Ts.onCommitFiberUnmount=="function")try{Ts.onCommitFiberUnmount(L0,n)}catch{}switch(n.tag){case 5:xr||Ac(n,t);case 6:var r=lr,i=Ji;lr=null,zo(e,t,n),lr=r,Ji=i,lr!==null&&(Ji?(e=lr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):lr.removeChild(n.stateNode));break;case 18:lr!==null&&(Ji?(e=lr,n=n.stateNode,e.nodeType===8?dg(e.parentNode,n):e.nodeType===1&&dg(e,n),Hd(e)):dg(lr,n.stateNode));break;case 4:r=lr,i=Ji,lr=n.stateNode.containerInfo,Ji=!0,zo(e,t,n),lr=r,Ji=i;break;case 0:case 11:case 14:case 15:if(!xr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Q1(n,t,o),i=i.next}while(i!==r)}zo(e,t,n);break;case 1:if(!xr&&(Ac(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){kn(n,t,a)}zo(e,t,n);break;case 21:zo(e,t,n);break;case 22:n.mode&1?(xr=(r=xr)||n.memoizedState!==null,zo(e,t,n),xr=r):zo(e,t,n);break;default:zo(e,t,n)}}function bw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new BC),t.forEach(function(r){var i=YC.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function $i(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:lr=a.stateNode,Ji=!1;break e;case 3:lr=a.stateNode.containerInfo,Ji=!0;break e;case 4:lr=a.stateNode.containerInfo,Ji=!0;break e}a=a.return}if(lr===null)throw Error(Ce(160));kS(s,o,i),lr=null,Ji=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){kn(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)AS(t,e),t=t.sibling}function AS(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if($i(t,e),gs(e),r&4){try{Ed(3,e,e.return),D0(3,e)}catch(w){kn(e,e.return,w)}try{Ed(5,e,e.return)}catch(w){kn(e,e.return,w)}}break;case 1:$i(t,e),gs(e),r&512&&n!==null&&Ac(n,n.return);break;case 5:if($i(t,e),gs(e),r&512&&n!==null&&Ac(n,n.return),e.flags&32){var i=e.stateNode;try{Ud(i,"")}catch(w){kn(e,e.return,w)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Gx(i,s),E1(a,o);var c=E1(a,s);for(o=0;o<l.length;o+=2){var d=l[o],p=l[o+1];d==="style"?Zx(i,p):d==="dangerouslySetInnerHTML"?Jx(i,p):d==="children"?Ud(i,p):a2(i,d,p,c)}switch(a){case"input":_1(i,s);break;case"textarea":Kx(i,s);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?Pc(i,!!s.multiple,h,!1):m!==!!s.multiple&&(s.defaultValue!=null?Pc(i,!!s.multiple,s.defaultValue,!0):Pc(i,!!s.multiple,s.multiple?[]:"",!1))}i[Yd]=s}catch(w){kn(e,e.return,w)}}break;case 6:if($i(t,e),gs(e),r&4){if(e.stateNode===null)throw Error(Ce(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(w){kn(e,e.return,w)}}break;case 3:if($i(t,e),gs(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Hd(t.containerInfo)}catch(w){kn(e,e.return,w)}break;case 4:$i(t,e),gs(e);break;case 13:$i(t,e),gs(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(U2=Pn())),r&4&&bw(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(xr=(c=xr)||d,$i(t,e),xr=c):$i(t,e),gs(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(Ie=e,d=e.child;d!==null;){for(p=Ie=d;Ie!==null;){switch(m=Ie,h=m.child,m.tag){case 0:case 11:case 14:case 15:Ed(4,m,m.return);break;case 1:Ac(m,m.return);var y=m.stateNode;if(typeof y.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(w){kn(r,n,w)}}break;case 5:Ac(m,m.return);break;case 22:if(m.memoizedState!==null){xw(p);continue}}h!==null?(h.return=m,Ie=h):xw(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{i=p.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=p.stateNode,l=p.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Xx("display",o))}catch(w){kn(e,e.return,w)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(w){kn(e,e.return,w)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:$i(t,e),gs(e),r&4&&bw(e);break;case 21:break;default:$i(t,e),gs(e)}}function gs(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(SS(n)){var r=n;break e}n=n.return}throw Error(Ce(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Ud(i,""),r.flags&=-33);var s=ww(e);nv(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=ww(e);tv(e,a,o);break;default:throw Error(Ce(161))}}catch(l){kn(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $C(e,t,n){Ie=e,ES(e)}function ES(e,t,n){for(var r=(e.mode&1)!==0;Ie!==null;){var i=Ie,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||jf;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||xr;a=jf;var c=xr;if(jf=o,(xr=l)&&!c)for(Ie=i;Ie!==null;)o=Ie,l=o.child,o.tag===22&&o.memoizedState!==null?Sw(i):l!==null?(l.return=o,Ie=l):Sw(i);for(;s!==null;)Ie=s,ES(s),s=s.sibling;Ie=i,jf=a,xr=c}_w(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,Ie=s):_w(e)}}function _w(e){for(;Ie!==null;){var t=Ie;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:xr||D0(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!xr)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Wi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&sw(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}sw(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&Hd(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ce(163))}xr||t.flags&512&&ev(t)}catch(m){kn(t,t.return,m)}}if(t===e){Ie=null;break}if(n=t.sibling,n!==null){n.return=t.return,Ie=n;break}Ie=t.return}}function xw(e){for(;Ie!==null;){var t=Ie;if(t===e){Ie=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Ie=n;break}Ie=t.return}}function Sw(e){for(;Ie!==null;){var t=Ie;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{D0(4,t)}catch(l){kn(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){kn(t,i,l)}}var s=t.return;try{ev(t)}catch(l){kn(t,s,l)}break;case 5:var o=t.return;try{ev(t)}catch(l){kn(t,o,l)}}}catch(l){kn(t,t.return,l)}if(t===e){Ie=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Ie=a;break}Ie=t.return}}var zC=Math.ceil,r0=ko.ReactCurrentDispatcher,M2=ko.ReactCurrentOwner,Ci=ko.ReactCurrentBatchConfig,Ot=0,Zn=null,Mn=null,ur=0,si=0,Ec=La(0),Vn=0,th=null,xl=0,M0=0,B2=0,Nd=null,Ur=null,U2=0,au=1/0,ao=null,i0=!1,rv=null,va=null,Ff=!1,la=null,s0=0,Cd=0,iv=null,xp=-1,Sp=0;function Or(){return Ot&6?Pn():xp!==-1?xp:xp=Pn()}function ya(e){return e.mode&1?Ot&2&&ur!==0?ur&-ur:AC.transition!==null?(Sp===0&&(Sp=u3()),Sp):(e=Ht,e!==0||(e=window.event,e=e===void 0?16:v3(e.type)),e):1}function Qi(e,t,n,r){if(50<Cd)throw Cd=0,iv=null,Error(Ce(185));kh(e,n,r),(!(Ot&2)||e!==Zn)&&(e===Zn&&(!(Ot&2)&&(M0|=n),Vn===4&&Zo(e,ur)),Wr(e,r),n===1&&Ot===0&&!(t.mode&1)&&(au=Pn()+500,I0&&Pa()))}function Wr(e,t){var n=e.callbackNode;A6(e,t);var r=zp(e,e===Zn?ur:0);if(r===0)n!==null&&R5(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&R5(n),t===1)e.tag===0?kC(kw.bind(null,e)):F3(kw.bind(null,e)),bC(function(){!(Ot&6)&&Pa()}),n=null;else{switch(d3(r)){case 1:n=h2;break;case 4:n=l3;break;case 16:n=$p;break;case 536870912:n=c3;break;default:n=$p}n=IS(n,NS.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function NS(e,t){if(xp=-1,Sp=0,Ot&6)throw Error(Ce(327));var n=e.callbackNode;if(jc()&&e.callbackNode!==n)return null;var r=zp(e,e===Zn?ur:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=o0(e,r);else{t=r;var i=Ot;Ot|=2;var s=LS();(Zn!==e||ur!==t)&&(ao=null,au=Pn()+500,gl(e,t));do try{WC();break}catch(a){CS(e,a)}while(!0);A2(),r0.current=s,Ot=i,Mn!==null?t=0:(Zn=null,ur=0,t=Vn)}if(t!==0){if(t===2&&(i=T1(e),i!==0&&(r=i,t=sv(e,i))),t===1)throw n=th,gl(e,0),Zo(e,r),Wr(e,Pn()),n;if(t===6)Zo(e,r);else{if(i=e.current.alternate,!(r&30)&&!qC(i)&&(t=o0(e,r),t===2&&(s=T1(e),s!==0&&(r=s,t=sv(e,s))),t===1))throw n=th,gl(e,0),Zo(e,r),Wr(e,Pn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Ce(345));case 2:Za(e,Ur,ao);break;case 3:if(Zo(e,r),(r&130023424)===r&&(t=U2+500-Pn(),10<t)){if(zp(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Or(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=B1(Za.bind(null,e,Ur,ao),t);break}Za(e,Ur,ao);break;case 4:if(Zo(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Zi(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=Pn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zC(r/1960))-r,10<r){e.timeoutHandle=B1(Za.bind(null,e,Ur,ao),r);break}Za(e,Ur,ao);break;case 5:Za(e,Ur,ao);break;default:throw Error(Ce(329))}}}return Wr(e,Pn()),e.callbackNode===n?NS.bind(null,e):null}function sv(e,t){var n=Nd;return e.current.memoizedState.isDehydrated&&(gl(e,t).flags|=256),e=o0(e,t),e!==2&&(t=Ur,Ur=n,t!==null&&ov(t)),e}function ov(e){Ur===null?Ur=e:Ur.push.apply(Ur,e)}function qC(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!es(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Zo(e,t){for(t&=~B2,t&=~M0,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Zi(t),r=1<<n;e[n]=-1,t&=~r}}function kw(e){if(Ot&6)throw Error(Ce(327));jc();var t=zp(e,0);if(!(t&1))return Wr(e,Pn()),null;var n=o0(e,t);if(e.tag!==0&&n===2){var r=T1(e);r!==0&&(t=r,n=sv(e,r))}if(n===1)throw n=th,gl(e,0),Zo(e,t),Wr(e,Pn()),n;if(n===6)throw Error(Ce(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Za(e,Ur,ao),Wr(e,Pn()),null}function $2(e,t){var n=Ot;Ot|=1;try{return e(t)}finally{Ot=n,Ot===0&&(au=Pn()+500,I0&&Pa())}}function Sl(e){la!==null&&la.tag===0&&!(Ot&6)&&jc();var t=Ot;Ot|=1;var n=Ci.transition,r=Ht;try{if(Ci.transition=null,Ht=1,e)return e()}finally{Ht=r,Ci.transition=n,Ot=t,!(Ot&6)&&Pa()}}function z2(){si=Ec.current,on(Ec)}function gl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,wC(n)),Mn!==null)for(n=Mn.return;n!==null;){var r=n;switch(x2(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gp();break;case 3:su(),on(qr),on(Sr),T2();break;case 5:P2(r);break;case 4:su();break;case 13:on(fn);break;case 19:on(fn);break;case 10:E2(r.type._context);break;case 22:case 23:z2()}n=n.return}if(Zn=e,Mn=e=wa(e.current,null),ur=si=t,Vn=0,th=null,B2=M0=xl=0,Ur=Nd=null,il!==null){for(t=0;t<il.length;t++)if(n=il[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}il=null}return e}function CS(e,t){do{var n=Mn;try{if(A2(),wp.current=n0,t0){for(var r=mn.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}t0=!1}if(_l=0,Jn=Wn=mn=null,Ad=!1,Zd=0,M2.current=null,n===null||n.return===null){Vn=1,th=t,Mn=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=ur,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,p=d.tag;if(!(d.mode&1)&&(p===0||p===11||p===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=dw(o);if(h!==null){h.flags&=-257,hw(h,o,a,s,t),h.mode&1&&uw(s,c,t),t=h,l=c;var y=t.updateQueue;if(y===null){var w=new Set;w.add(l),t.updateQueue=w}else y.add(l);break e}else{if(!(t&1)){uw(s,c,t),q2();break e}l=Error(Ce(426))}}else if(dn&&a.mode&1){var x=dw(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),hw(x,o,a,s,t),S2(ou(l,a));break e}}s=l=ou(l,a),Vn!==4&&(Vn=2),Nd===null?Nd=[s]:Nd.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var v=dS(s,l,t);iw(s,v);break e;case 1:a=l;var _=s.type,S=s.stateNode;if(!(s.flags&128)&&(typeof _.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(va===null||!va.has(S)))){s.flags|=65536,t&=-t,s.lanes|=t;var A=hS(s,a,t);iw(s,A);break e}}s=s.return}while(s!==null)}TS(n)}catch(O){t=O,Mn===n&&n!==null&&(Mn=n=n.return);continue}break}while(!0)}function LS(){var e=r0.current;return r0.current=n0,e===null?n0:e}function q2(){(Vn===0||Vn===3||Vn===2)&&(Vn=4),Zn===null||!(xl&268435455)&&!(M0&268435455)||Zo(Zn,ur)}function o0(e,t){var n=Ot;Ot|=2;var r=LS();(Zn!==e||ur!==t)&&(ao=null,gl(e,t));do try{HC();break}catch(i){CS(e,i)}while(!0);if(A2(),Ot=n,r0.current=r,Mn!==null)throw Error(Ce(261));return Zn=null,ur=0,Vn}function HC(){for(;Mn!==null;)PS(Mn)}function WC(){for(;Mn!==null&&!g6();)PS(Mn)}function PS(e){var t=OS(e.alternate,e,si);e.memoizedProps=e.pendingProps,t===null?TS(e):Mn=t,M2.current=null}function TS(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=MC(n,t),n!==null){n.flags&=32767,Mn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Vn=6,Mn=null;return}}else if(n=DC(n,t,si),n!==null){Mn=n;return}if(t=t.sibling,t!==null){Mn=t;return}Mn=t=e}while(t!==null);Vn===0&&(Vn=5)}function Za(e,t,n){var r=Ht,i=Ci.transition;try{Ci.transition=null,Ht=1,VC(e,t,n,r)}finally{Ci.transition=i,Ht=r}return null}function VC(e,t,n,r){do jc();while(la!==null);if(Ot&6)throw Error(Ce(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Ce(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(E6(e,s),e===Zn&&(Mn=Zn=null,ur=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ff||(Ff=!0,IS($p,function(){return jc(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Ci.transition,Ci.transition=null;var o=Ht;Ht=1;var a=Ot;Ot|=4,M2.current=null,UC(e,n),AS(n,e),hC(D1),qp=!!F1,D1=F1=null,e.current=n,$C(n),v6(),Ot=a,Ht=o,Ci.transition=s}else e.current=n;if(Ff&&(Ff=!1,la=e,s0=i),s=e.pendingLanes,s===0&&(va=null),b6(n.stateNode),Wr(e,Pn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(i0)throw i0=!1,e=rv,rv=null,e;return s0&1&&e.tag!==0&&jc(),s=e.pendingLanes,s&1?e===iv?Cd++:(Cd=0,iv=e):Cd=0,Pa(),null}function jc(){if(la!==null){var e=d3(s0),t=Ci.transition,n=Ht;try{if(Ci.transition=null,Ht=16>e?16:e,la===null)var r=!1;else{if(e=la,la=null,s0=0,Ot&6)throw Error(Ce(331));var i=Ot;for(Ot|=4,Ie=e.current;Ie!==null;){var s=Ie,o=s.child;if(Ie.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(Ie=c;Ie!==null;){var d=Ie;switch(d.tag){case 0:case 11:case 15:Ed(8,d,s)}var p=d.child;if(p!==null)p.return=d,Ie=p;else for(;Ie!==null;){d=Ie;var m=d.sibling,h=d.return;if(xS(d),d===c){Ie=null;break}if(m!==null){m.return=h,Ie=m;break}Ie=h}}}var y=s.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var x=w.sibling;w.sibling=null,w=x}while(w!==null)}}Ie=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,Ie=o;else e:for(;Ie!==null;){if(s=Ie,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Ed(9,s,s.return)}var v=s.sibling;if(v!==null){v.return=s.return,Ie=v;break e}Ie=s.return}}var _=e.current;for(Ie=_;Ie!==null;){o=Ie;var S=o.child;if(o.subtreeFlags&2064&&S!==null)S.return=o,Ie=S;else e:for(o=_;Ie!==null;){if(a=Ie,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:D0(9,a)}}catch(O){kn(a,a.return,O)}if(a===o){Ie=null;break e}var A=a.sibling;if(A!==null){A.return=a.return,Ie=A;break e}Ie=a.return}}if(Ot=i,Pa(),Ts&&typeof Ts.onPostCommitFiberRoot=="function")try{Ts.onPostCommitFiberRoot(L0,e)}catch{}r=!0}return r}finally{Ht=n,Ci.transition=t}}return!1}function Aw(e,t,n){t=ou(n,t),t=dS(e,t,1),e=ga(e,t,1),t=Or(),e!==null&&(kh(e,1,t),Wr(e,t))}function kn(e,t,n){if(e.tag===3)Aw(e,e,n);else for(;t!==null;){if(t.tag===3){Aw(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(va===null||!va.has(r))){e=ou(n,e),e=hS(t,e,1),t=ga(t,e,1),e=Or(),t!==null&&(kh(t,1,e),Wr(t,e));break}}t=t.return}}function GC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Or(),e.pingedLanes|=e.suspendedLanes&n,Zn===e&&(ur&n)===n&&(Vn===4||Vn===3&&(ur&130023424)===ur&&500>Pn()-U2?gl(e,0):B2|=n),Wr(e,t)}function RS(e,t){t===0&&(e.mode&1?(t=Ef,Ef<<=1,!(Ef&130023424)&&(Ef=4194304)):t=1);var n=Or();e=bo(e,t),e!==null&&(kh(e,t,n),Wr(e,n))}function KC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),RS(e,n)}function YC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ce(314))}r!==null&&r.delete(t),RS(e,n)}var OS;OS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qr.current)$r=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $r=!1,FC(e,t,n);$r=!!(e.flags&131072)}else $r=!1,dn&&t.flags&1048576&&D3(t,Jp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_p(e,t),e=t.pendingProps;var i=nu(t,Sr.current);Ic(t,n),i=O2(null,t,r,e,i,n);var s=I2();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Hr(r)?(s=!0,Kp(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,C2(t),i.updater=F0,t.stateNode=i,i._reactInternals=t,V1(t,r,e,n),t=Y1(null,t,r,!0,s,n)):(t.tag=0,dn&&s&&_2(t),Pr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_p(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=XC(r),e=Wi(r,e),i){case 0:t=K1(null,t,r,e,n);break e;case 1:t=mw(null,t,r,e,n);break e;case 11:t=fw(null,t,r,e,n);break e;case 14:t=pw(null,t,r,Wi(r.type,e),n);break e}throw Error(Ce(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wi(r,i),K1(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wi(r,i),mw(e,t,r,i,n);case 3:e:{if(gS(t),e===null)throw Error(Ce(387));
vendor: 4,679 bytes, line 40
40r=t.pendingProps,s=t.memoizedState,i=s.element,q3(e,t),Qp(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=ou(Error(Ce(423)),t),t=gw(e,t,r,n,i);break e}else if(r!==i){i=ou(Error(Ce(424)),t),t=gw(e,t,r,n,i);break e}else for(li=ma(t.stateNode.containerInfo.firstChild),di=t,dn=!0,Xi=null,n=$3(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ru(),r===i){t=_o(e,t,n);break e}Pr(e,t,r,n)}t=t.child}return t;case 5:return H3(t),e===null&&q1(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,M1(r,i)?o=null:s!==null&&M1(r,s)&&(t.flags|=32),mS(e,t),Pr(e,t,o,n),t.child;case 6:return e===null&&q1(t),null;case 13:return vS(e,t,n);case 4:return L2(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=iu(t,null,r,n):Pr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wi(r,i),fw(e,t,r,i,n);case 7:return Pr(e,t,t.pendingProps,n),t.child;case 8:return Pr(e,t,t.pendingProps.children,n),t.child;case 12:return Pr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,en(Xp,r._currentValue),r._currentValue=o,s!==null)if(es(s.value,o)){if(s.children===i.children&&!qr.current){t=_o(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=vo(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),H1(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(Ce(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),H1(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Pr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ic(t,n),i=Li(i),r=r(i),t.flags|=1,Pr(e,t,r,n),t.child;case 14:return r=t.type,i=Wi(r,t.pendingProps),i=Wi(r.type,i),pw(e,t,r,i,n);case 15:return fS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wi(r,i),_p(e,t),t.tag=1,Hr(r)?(e=!0,Kp(t)):e=!1,Ic(t,n),uS(t,r,i),V1(t,r,i,n),Y1(null,t,r,!0,e,n);case 19:return yS(e,t,n);case 22:return pS(e,t,n)}throw Error(Ce(156,t.tag))};function IS(e,t){return a3(e,t)}function JC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ni(e,t,n,r){return new JC(e,t,n,r)}function H2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function XC(e){if(typeof e=="function")return H2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===c2)return 11;if(e===u2)return 14}return 2}function wa(e,t){var n=e.alternate;return n===null?(n=Ni(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function kp(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")H2(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case gc:return vl(n.children,i,s,t);case l2:o=8,i|=8;break;case g1:return e=Ni(12,n,t,i|2),e.elementType=g1,e.lanes=s,e;case v1:return e=Ni(13,n,t,i),e.elementType=v1,e.lanes=s,e;case y1:return e=Ni(19,n,t,i),e.elementType=y1,e.lanes=s,e;case Hx:return B0(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zx:o=10;break e;case qx:o=9;break e;case c2:o=11;break e;case u2:o=14;break e;case Yo:o=16,r=null;break e}throw Error(Ce(130,e==null?e:typeof e,""))}return t=Ni(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function vl(e,t,n,r){return e=Ni(7,e,r,t),e.lanes=n,e}function B0(e,t,n,r){return e=Ni(22,e,r,t),e.elementType=Hx,e.lanes=n,e.stateNode={isHidden:!1},e}
vendor: 4,737 bytes, line 40
40function wg(e,t,n){return e=Ni(6,e,null,t),e.lanes=n,e}function bg(e,t,n){return t=Ni(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ZC(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=eg(0),this.expirationTimes=eg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eg(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function W2(e,t,n,r,i,s,o,a,l){return e=new ZC(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ni(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},C2(s),e}function QC(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:mc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function jS(e){if(!e)return ka;e=e._reactInternals;e:{if(Tl(e)!==e||e.tag!==1)throw Error(Ce(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Hr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ce(171))}if(e.tag===1){var n=e.type;if(Hr(n))return j3(e,n,t)}return t}function FS(e,t,n,r,i,s,o,a,l){return e=W2(n,r,!0,e,i,s,o,a,l),e.context=jS(null),n=e.current,r=Or(),i=ya(n),s=vo(r,i),s.callback=t??null,ga(n,s,i),e.current.lanes=i,kh(e,i,r),Wr(e,r),e}function U0(e,t,n,r){var i=t.current,s=Or(),o=ya(i);return n=jS(n),t.context===null?t.context=n:t.pendingContext=n,t=vo(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ga(i,t,o),e!==null&&(Qi(e,i,o,s),yp(e,i,o)),o}function a0(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ew(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function V2(e,t){Ew(e,t),(e=e.alternate)&&Ew(e,t)}function e8(){return null}var DS=typeof reportError=="function"?reportError:function(e){console.error(e)};function G2(e){this._internalRoot=e}$0.prototype.render=G2.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ce(409));U0(e,t,null,null)};$0.prototype.unmount=G2.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Sl(function(){U0(null,e,null,null)}),t[wo]=null}};function $0(e){this._internalRoot=e}$0.prototype.unstable_scheduleHydration=function(e){if(e){var t=p3();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xo.length&&t!==0&&t<Xo[n].priority;n++);Xo.splice(n,0,e),n===0&&g3(e)}};function K2(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function z0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Nw(){}function t8(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=a0(o);s.call(c)}}var o=FS(t,r,e,0,null,!1,!1,"",Nw);return e._reactRootContainer=o,e[wo]=o.current,Gd(e.nodeType===8?e.parentNode:e),Sl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=a0(l);a.call(c)}}var l=W2(e,0,!1,null,null,!1,!1,"",Nw);return e._reactRootContainer=l,e[wo]=l.current,Gd(e.nodeType===8?e.parentNode:e),Sl(function(){U0(t,l,n,r)}),l}function q0(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=a0(o);a.call(l)}}U0(t,o,e,i)}else o=t8(n,t,e,i,r);return a0(o)}h3=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pd(t.pendingLanes);n!==0&&(f2(t,n|1),Wr(t,Pn()),!(Ot&6)&&(au=Pn()+500,Pa()))}break;case 13:Sl(function(){var r=bo(e,1);if(r!==null){var i=Or();Qi(r,e,1,i)}}),V2(e,1)}};p2=function(e){if(e.tag===13){var t=bo(e,134217728);if(t!==null){var n=Or();Qi(t,e,134217728,n)}V2(e,134217728)}};f3=function(e){if(e.tag===13){var t=ya(e),n=bo(e,t);if(n!==null){var r=Or();Qi(n,e,t,r)}V2(e,t)}};p3=function(){return Ht};m3=function(e,t){var n=Ht;try{return Ht=e,t()}finally{Ht=n}};C1=function(e,t,n){switch(t){case"input":if(_1(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=O0(r);if(!i)throw Error(Ce(90));Vx(r),_1(r,i)}}}break;
40case"textarea":Kx(e,n);break;case"select":t=n.value,t!=null&&Pc(e,!!n.multiple,t,!1)}};t3=$2;n3=Sl;var n8={usingClientEntryPoint:!1,Events:[Eh,bc,O0,Qx,e3,$2]},id={findFiberByHostInstance:rl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},r8={bundleType:id.bundleType,version:id.version,rendererPackageName:id.rendererPackageName,rendererConfig:id.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ko.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=s3(e),e===null?null:e.stateNode},findFiberByHostInstance:id.findFiberByHostInstance||e8,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Df=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Df.isDisabled&&Df.supportsFiber)try{L0=Df.inject(r8),Ts=Df}catch{}}pi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=n8;pi.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!K2(t))throw Error(Ce(200));return QC(e,t,null,n)};pi.createRoot=function(e,t){if(!K2(e))throw Error(Ce(299));var n=!1,r="",i=DS;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=W2(e,1,!1,null,null,n,!1,r,i),e[wo]=t.current,Gd(e.nodeType===8?e.parentNode:e),new G2(t)};pi.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Ce(188)):(e=Object.keys(e).join(","),Error(Ce(268,e)));return e=s3(t),e=e===null?null:e.stateNode,e};pi.flushSync=function(e){return Sl(e)};pi.hydrate=function(e,t,n){if(!z0(t))throw Error(Ce(200));return q0(null,e,t,!0,n)};pi.hydrateRoot=function(e,t,n){if(!K2(e))throw Error(Ce(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=DS;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=FS(t,null,e,1,n??null,i,!1,s,o),e[wo]=t.current,Gd(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new $0(t)};pi.render=function(e,t,n){if(!z0(t))throw Error(Ce(200));return q0(null,e,t,!1,n)};pi.unmountComponentAtNode=function(e){if(!z0(e))throw Error(Ce(40));return e._reactRootContainer?(Sl(function(){q0(null,null,e,!1,function(){e._reactRootContainer=null,e[wo]=null})}),!0):!1};pi.unstable_batchedUpdates=$2;pi.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!z0(n))throw Error(Ce(200));if(e==null||e._reactInternals===void 0)throw Error(Ce(38));return q0(e,t,n,!1,r)};pi.version="18.3.1-next-f1338f8080-20240426";function MS(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(MS)}catch(e){console.error(e)}}MS(),Mx.exports=pi;var Ch=Mx.exports;const BS=Ex(Ch);var US,Cw=Ch;US=Cw.createRoot,Cw.hydrateRoot;const i8=1,s8=1e6;let _g=0;function o8(){return _g=(_g+1)%Number.MAX_SAFE_INTEGER,_g.toString()}const xg=new Map,Lw=e=>{if(xg.has(e))return;const t=setTimeout(()=>{xg.delete(e),Ld({type:"REMOVE_TOAST",toastId:e})},s8);xg.set(e,t)},a8=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,i8)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Lw(n):e.toasts.forEach(r=>{Lw(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Ap=[];let Ep={toasts:[]};function Ld(e){Ep=a8(Ep,e),Ap.forEach(t=>{t(Ep)})}function l8({...e}){const t=o8(),n=i=>Ld({type:"UPDATE_TOAST",toast:{...i,id:t}}
vendor: 13,584 bytes, line 40
40),r=()=>Ld({type:"DISMISS_TOAST",toastId:t});return Ld({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function c8(){const[e,t]=D.useState(Ep);return D.useEffect(()=>(Ap.push(t),()=>{const n=Ap.indexOf(t);n>-1&&Ap.splice(n,1)}),[e]),{...e,toast:l8,dismiss:n=>Ld({type:"DISMISS_TOAST",toastId:n})}}function Qt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Pw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $S(...e){return t=>{let n=!1;const r=e.map(i=>{const s=Pw(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():Pw(e[i],null)}}}}function hr(...e){return D.useCallback($S(...e),e)}function u8(e,t){const n=D.createContext(t),r=s=>{const{children:o,...a}=s,l=D.useMemo(()=>a,Object.values(a));return j.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function i(s){const o=D.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,i]}function Rl(e,t=[]){let n=[];function r(s,o){const a=D.createContext(o),l=n.length;n=[...n,o];const c=p=>{var v;const{scope:m,children:h,...y}=p,w=((v=m==null?void 0:m[e])==null?void 0:v[l])||a,x=D.useMemo(()=>y,Object.values(y));return j.jsx(w.Provider,{value:x,children:h})};c.displayName=s+"Provider";function d(p,m){var w;const h=((w=m==null?void 0:m[e])==null?void 0:w[l])||a,y=D.useContext(h);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[c,d]}const i=()=>{const s=n.map(o=>D.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return D.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,d8(i,...t)]}function d8(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const p=l(s)[`__scope${c}`];return{...a,...p}},{});return D.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function l0(e){const t=h8(e),n=D.forwardRef((r,i)=>{const{children:s,...o}=r,a=D.Children.toArray(s),l=a.find(p8);if(l){const c=l.props.children,d=a.map(p=>p===l?D.Children.count(c)>1?D.Children.only(null):D.isValidElement(c)?c.props.children:null:p);return j.jsx(t,{...o,ref:i,children:D.isValidElement(c)?D.cloneElement(c,void 0,d):null})}return j.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function h8(e){const t=D.forwardRef((n,r)=>{const{children:i,...s}=n;if(D.isValidElement(i)){const o=g8(i),a=m8(s,i.props);return i.type!==D.Fragment&&(a.ref=r?$S(r,o):o),D.cloneElement(i,a)}return D.Children.count(i)>1?D.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zS=Symbol("radix.slottable");function f8(e){const t=({children:n})=>j.jsx(j.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=zS,t}function p8(e){return D.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zS}function m8(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...a)=>{const l=s(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function g8(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function qS(e){const t=e+"CollectionProvider",[n,r]=Rl(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=w=>{const{scope:x,children:v}=w,_=Ne.useRef(null),S=Ne.useRef(new Map).current;return j.jsx(i,{scope:x,itemMap:S,collectionRef:_,children:v})};o.displayName=t;const a=e+"CollectionSlot",l=l0(a),c=Ne.forwardRef((w,x)=>{const{scope:v,children:_}=w,S=s(a,v),A=hr(x,S.collectionRef);return j.jsx(l,{ref:A,children:_})});c.displayName=a;const d=e+"CollectionItemSlot",p="data-radix-collection-item",m=l0(d),h=Ne.forwardRef((w,x)=>{const{scope:v,children:_,...S}=w,A=Ne.useRef(null),O=hr(x,A),$=s(d,v);return Ne.useEffect(()=>($.itemMap.set(A,{ref:A,...S}),()=>void $.itemMap.delete(A))),j.jsx(m,{[p]:"",ref:O,children:_})});h.displayName=d;function y(w){const x=s(e+"CollectionConsumer",w);return Ne.useCallback(()=>{const _=x.collectionRef.current;if(!_)return[];const S=Array.from(_.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort(($,H)=>S.indexOf($.ref.current)-S.indexOf(H.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:c,ItemSlot:h},y,r]}var v8=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],an=v8.reduce((e,t)=>{const n=l0(`Primitive.${t}`),r=D.forwardRef((i,s)=>{const{asChild:o,...a}=i,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),j.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function HS(e,t){e&&Ch.flushSync(()=>e.dispatchEvent(t))}function Fs(e){const t=D.useRef(e);return D.useEffect(()=>{t.current=e}),D.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function y8(e,t=globalThis==null?void 0:globalThis.document){const n=Fs(e);D.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var w8="DismissableLayer",av="dismissableLayer.update",b8="dismissableLayer.pointerDownOutside",_8="dismissableLayer.focusOutside",Tw,WS=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),H0=D.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=e,c=D.useContext(WS),[d,p]=D.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=D.useState({}),y=hr(t,H=>p(H)),w=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=w.indexOf(x),_=d?w.indexOf(d):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,A=_>=v,O=S8(H=>{const B=H.target,R=[...c.branches].some(X=>X.contains(B));!A||R||(i==null||i(H),o==null||o(H),H.defaultPrevented||a==null||a())},m),$=k8(H=>{const B=H.target;[...c.branches].some(X=>X.contains(B))||(s==null||s(H),o==null||o(H),H.defaultPrevented||a==null||a())},m);return y8(H=>{_===c.layers.size-1&&(r==null||r(H),!H.defaultPrevented&&a&&(H.preventDefault(),a()))},m),D.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Tw=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Rw(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Tw)}},[d,m,n,c]),D.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Rw())},[d,c]),D.useEffect(()=>{const H=()=>h({});return document.addEventListener(av,H),()=>document.removeEventListener(av,H)},[]),j.jsx(an.div,{...l,ref:y,style:{pointerEvents:S?A?"auto":"none":void 0,...e.style},onFocusCapture:Qt(e.onFocusCapture,$.onFocusCapture),onBlurCapture:Qt(e.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Qt(e.onPointerDownCapture,O.onPointerDownCapture)})});H0.displayName=w8;var x8="DismissableLayerBranch",VS=D.forwardRef((e,t)=>{const n=D.useContext(WS),r=D.useRef(null),i=hr(t,r);return D.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),j.jsx(an.div,{...e,ref:i})});VS.displayName=x8;function S8(e,t=globalThis==null?void 0:globalThis.document){const n=Fs(e),r=D.useRef(!1),i=D.useRef(()=>{});return D.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){GS(b8,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function k8(e,t=globalThis==null?void 0:globalThis.document){const n=Fs(e),r=D.useRef(!1);return D.useEffect(()=>{const i=s=>{s.target&&!r.current&&GS(_8,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Rw(){const e=new CustomEvent(av);document.dispatchEvent(e)}function GS(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?HS(i,s):i.dispatchEvent(s)}var A8=H0,E8=VS,Ds=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},N8="Portal",Y2=D.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,s]=D.useState(!1);Ds(()=>s(!0),[]);const o=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?BS.createPortal(j.jsx(an.div,{...r,ref:t}),o):null});Y2.displayName=N8;function C8(e,t){return D.useReducer((n,r)=>t[n][r]??n,e)}var Ol=e=>{const{present:t,children:n}=e,r=L8(t),i=typeof n=="function"?n({present:r.isPresent}):D.Children.only(n),s=hr(r.ref,P8(i));return typeof n=="function"||r.isPresent?D.cloneElement(i,{ref:s}):null};Ol.displayName="Presence";function L8(e){const[t,n]=D.useState(),r=D.useRef(null),i=D.useRef(e),s=D.useRef("none"),o=e?"mounted":"unmounted",[a,l]=C8(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect(()=>{const c=Mf(r.current);s.current=a==="mounted"?c:"none"},[a]),Ds(()=>{const c=r.current,d=i.current;if(d!==e){const m=s.current,h=Mf(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&m!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Ds(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=h=>{const w=Mf(r.current).includes(h.animationName);if(h.target===t&&w&&(l("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=h=>{h.target===t&&(s.current=Mf(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:D.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Mf(e){return(e==null?void 0:e.animationName)||"none"}function P8(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var T8=i2[" useInsertionEffect ".trim().toString()]||Ds;function Lh({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,o]=R8({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const d=D.useRef(e!==void 0);D.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const c=D.useCallback(d=>{var p;if(a){const m=O8(d)?d(e):d;m!==e&&((p=o.current)==null||p.call(o,m))}else s(d)},[a,e,s,o]);return[l,c]}function R8({defaultProp:e,onChange:t}){const[n,r]=D.useState(e),i=D.useRef(n),s=D.useRef(t);return T8(()=>{s.current=t},[t]),D.useEffect(()=>{var o;i.current!==n&&((o=s.current)==null||o.call(s,n),i.current=n)},[n,i]),[n,r,s]}function O8(e){return typeof e=="function"}var I8=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),j8="VisuallyHidden",W0=D.forwardRef((e,t)=>j.jsx(an.span,{...e,ref:t,style:{...I8,...e.style}}));W0.displayName=j8;var F8=W0,J2="ToastProvider",[X2,D8,M8]=qS("Toast"),[KS,RU]=Rl("Toast",[M8]),[B8,V0]=KS(J2),YS=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[a,l]=D.useState(null),[c,d]=D.useState(0),p=D.useRef(!1),m=D.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${J2}\`. Expected non-empty \`string\`.`),j.jsx(X2.Provider,{scope:t,children:j.jsx(B8,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:D.useCallback(()=>d(h=>h+1),[]),onToastRemove:D.useCallback(()=>d(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m,children:o})})};YS.displayName=J2;var JS="ToastViewport",U8=["F8"],lv="toast.viewportPause",cv="toast.viewportResume",XS=D.forwardRef((e,t)=>
40{const{__scopeToast:n,hotkey:r=U8,label:i="Notifications ({hotkey})",...s}=e,o=V0(JS,n),a=D8(n),l=D.useRef(null),c=D.useRef(null),d=D.useRef(null),p=D.useRef(null),m=hr(t,p,o.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;D.useEffect(()=>{const x=v=>{var S;r.length!==0&&r.every(A=>v[A]||v.code===A)&&((S=p.current)==null||S.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),D.useEffect(()=>{const x=l.current,v=p.current;if(y&&x&&v){const _=()=>{if(!o.isClosePausedRef.current){const $=new CustomEvent(lv);v.dispatchEvent($),o.isClosePausedRef.current=!0}},S=()=>{if(o.isClosePausedRef.current){const $=new CustomEvent(cv);v.dispatchEvent($),o.isClosePausedRef.current=!1}},A=$=>{!x.contains($.relatedTarget)&&S()},O=()=>{x.contains(document.activeElement)||S()};return x.addEventListener("focusin",_),x.addEventListener("focusout",A),x.addEventListener("pointermove",_),x.addEventListener("pointerleave",O),window.addEventListener("blur",_),window.addEventListener("focus",S),()=>{x.removeEventListener("focusin",_),x.removeEventListener("focusout",A),x.removeEventListener("pointermove",_),x.removeEventListener("pointerleave",O),window.removeEventListener("blur",_),window.removeEventListener("focus",S)}}},[y,o.isClosePausedRef]);const w=D.useCallback(({tabbingDirection:x})=>{const _=a().map(S=>{const A=S.ref.current,O=[A,...Q8(A)];return x==="forwards"?O:O.reverse()});return(x==="forwards"?_.reverse():_).flat()},[a]);return D.useEffect(()=>{const x=p.current;if(x){const v=_=>{var O,$,H;const S=_.altKey||_.ctrlKey||_.metaKey;if(_.key==="Tab"&&!S){const B=document.activeElement,R=_.shiftKey;if(_.target===x&&R){(O=c.current)==null||O.focus();return}const I=w({tabbingDirection:R?"backwards":"forwards"}),J=I.findIndex(q=>q===B);Sg(I.slice(J+1))?_.preventDefault():R?($=c.current)==null||$.focus():(H=d.current)==null||H.focus()}};return x.addEventListener("keydown",v),()=>x.removeEventListener("keydown",v)}},[a,w]),j.jsxs(E8,{ref:l,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&j.jsx(uv,{ref:c,onFocusFromOutsideViewport:()=>{const x=w({tabbingDirection:"forwards"});Sg(x)}}),j.jsx(X2.Slot,{scope:n,children:j.jsx(an.ol,{tabIndex:-1,...s,ref:m})}),y&&j.jsx(uv,{ref:d,onFocusFromOutsideViewport:()=>{const x=w({tabbingDirection:"backwards"});Sg(x)}})]})});XS.displayName=JS;var ZS="ToastFocusProxy",uv=D.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=V0(ZS,n);return j.jsx(W0,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=s.viewport)!=null&&c.contains(a))&&r()}})});uv.displayName=ZS;var Ph="Toast",$8="toast.swipeStart",z8="toast.swipeMove",q8="toast.swipeCancel",H8="toast.swipeEnd",QS=D.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...o}=e,[a,l]=Lh({prop:r,defaultProp:i??!0,onChange:s,caller:Ph});return j.jsx(Ol,{present:n||a,children:j.jsx(G8,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:Fs(e.onPause),onResume:Fs(e.onResume),onSwipeStart:Qt(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Qt(e.onSwipeMove,c=>{const{x:d,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:Qt(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Qt(e.onSwipeEnd,c=>{const{x:d,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),l(!1)})})})});QS.displayName=Ph;var[W8,V8]=KS(Ph,{onClose(){}}),G8=D.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:m,onSwipeEnd:h,...y}=e,w=V0(Ph,n),[x,v]=D.useState(null),_=hr(t,q=>v(q)),S=D.useRef(null),A=D.useRef(null),O=i||w.duration,$=D.useRef(0),H=D.useRef(O),B=D.useRef(0),{onToastAdd:R,onToastRemove:X}=w,L=Fs(()=>{var se;(x==null?void 0:x.contains(document.activeElement))&&((se=w.viewport)==null||se.focus()),o()}),I=D.useCallback(q=>{!q||q===1/0||(window.clearTimeout(B.current),$.current=new Date().getTime(),B.current=window.setTimeout(L,q))},[L]);D.useEffect(()=>{const q=w.viewport;if(q){const se=()=>{I(H.current),c==null||c()},ae=()=>{const le=new Date().getTime()-$.current;H.current=H.current-le,window.clearTimeout(B.current),l==null||l()};return q.addEventListener(lv,ae),q.addEventListener(cv,se),()=>{q.removeEventListener(lv,ae),q.removeEventListener(cv,se)}}},[w.viewport,O,l,c,I]),D.useEffect(()=>{s&&!w.isClosePausedRef.current&&I(O)},[s,O,w.isClosePausedRef,I]),D.useEffect(()=>(R(),()=>X()),[R,X]);const J=D.useMemo(()=>x?o4(x):null,[x]);return w.viewport?j.jsxs(j.Fragment,{children:[J&&j.jsx(K8,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:J}),j.jsx(W8,{scope:n,onClose:L,children:Ch.createPortal(j.jsx(X2.ItemSlot,{scope:n,children:j.jsx(A8,{asChild:!0,onEscapeKeyDown:Qt(a,()=>{w.isFocusedToastEscapeKeyDownRef.current||L(),w.isFocusedToastEscapeKeyDownRef.current=!1}),children:j.jsx(an.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":w.swipeDirection,...y,ref:_,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Qt(e.onKeyDown,q=>{q.key==="Escape"&&(a==null||a(q.nativeEvent),q.nativeEvent.defaultPrevented||(w.isFocusedToastEscapeKeyDownRef.current=!0,L()))}),onPointerDown:Qt(e.onPointerDown,q=>{q.button===0&&(S.current={x:q.clientX,y:q.clientY})}),onPointerMove:Qt(e.onPointerMove,q=>{if(!S.current)return;const se=q.clientX-S.current.x,ae=q.clientY-S.current.y,le=!!A.current,Y=["left","right"].includes(w.swipeDirection),Z=["left","up"].includes(w.swipeDirection)?Math.min:Math.max,he=Y?Z(0,se):0,fe=Y?0:Z(0,ae),C=q.pointerType==="touch"?10:2,U={x:he,y:fe},K={originalEvent:q,delta:U};le?(A.current=U,Bf(z8,p,K,{discrete:!1})):Ow(U,w.swipeDirection,C)?(A.current=U,Bf($8,d,K,{discrete:!1}),q.target.setPointerCapture(q.pointerId)):(Math.abs(se)>C||Math.abs(ae)>C)&&(S.current=null)}),onPointerUp:Qt(e.onPointerUp,q=>{const se=A.current,ae=q.target;if(ae.hasPointerCapture(q.pointerId)&&ae.releasePointerCapture(q.pointerId),A.current=null,S.current=null,se){const le=q.currentTarget,Y={originalEvent:q,delta:se};Ow(se,w.swipeDirection,w.swipeThreshold)?Bf(H8,h,Y,{discrete:!0}):Bf(q8,m,Y,{discrete:!0}),le.addEventListener("click",Z=>Z.preventDefault(),{once:!0})}})})})}),w.viewport)})]}):null}),K8=e=>{const{__scopeToast:t,children:n,...r}=e,i=V0(Ph,t),[s,o]=D.useState(!1),[a,l]=D.useState(!1);return X8(()=>o(!0)),D.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:j.jsx(Y2,{asChild:!0,children:j.jsx(W0,{...r,children:s&&j.jsxs(j.Fragment,{children:[i.label," ",n]})})})},Y8="ToastTitle",e4=D.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return j.jsx(an.div,{...r,ref:t})});e4.displayName=Y8;var J8="ToastDescription",t4=D.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return j.jsx(an.div,{...r,ref:t})});t4.displayName=J8;var n4="ToastAction",r4=D.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?j.jsx(s4,{altText:n,asChild:!0,children:j.jsx(Z2,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${n4}\`. Expected non-empty \`string\`.`),null)});r4.displayName=n4;var i4="ToastClose",Z2=D.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=V8(i4,n);return j.jsx(s4,{asChild:!0,children:j.jsx(an.button,{type:"button",...r,ref:t,onClick:Qt(e.onClick,i.onClose)})})});Z2.displayName=i4;var s4=D.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return j.jsx(an.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function o4(e){const t=[];
vendor: 6,305 bytes, lines 40-94
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Z8(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...o4(r))}}),t}function Bf(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?HS(i,s):i.dispatchEvent(s)}var Ow=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function X8(e=()=>{}){const t=Fs(e);Ds(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Z8(e){return e.nodeType===e.ELEMENT_NODE}function Q8(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Sg(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var eL=YS,a4=XS,l4=QS,c4=e4,u4=t4,d4=r4,h4=Z2;function f4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=f4(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function p4(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=f4(e))&&(r&&(r+=" "),r+=t);return r}const Iw=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,jw=p4,tL=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return jw(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(c=>{const d=n==null?void 0:n[c],p=s==null?void 0:s[c];if(d===null)return null;const m=Iw(d)||Iw(p);return i[c][m]}),a=n&&Object.entries(n).reduce((c,d)=>{let[p,m]=d;return m===void 0||(c[p]=m),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:p,className:m,...h}=d;return Object.entries(h).every(y=>{let[w,x]=y;return Array.isArray(x)?x.includes({...s,...a}[w]):{...s,...a}[w]===x})?[...c,p,m]:c},[]);return jw(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const nL=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),m4=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var rL={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 iL=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>D.createElement("svg",{ref:l,...rL,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:m4("lucide",i),...a},[...o.map(([c,d])=>D.createElement(c,d)),...Array.isArray(s)?s:[s]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const Ri=(e,t)=>{const n=D.forwardRef(({className:r,...i},s)=>D.createElement(iL,{ref:s,iconNode:t,className:m4(`lucide-${nL(e)}`,r),...i}));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const sL=Ri("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const oL=Ri("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const aL=Ri("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 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 Nc=Ri("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 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 lL=Ri("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/** 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 cL=Ri("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"}]]);/** 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.
vendor: 14,363 bytes, lines 95-120
95 */const Uf=Ri("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"}]]);/** 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 uL=Ri("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"}]]);/** 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 dL=Ri("ShieldCheck",[["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",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 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 hL=Ri("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** 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 fL=Ri("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 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 g4=Ri("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Q2="-",pL=e=>{const t=gL(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(Q2);return a[0]===""&&a.length!==1&&a.shift(),v4(a,t)||mL(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},v4=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?v4(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(Q2);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},Fw=/^\[(.+)\]$/,mL=e=>{if(Fw.test(e)){const t=Fw.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},gL=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return yL(Object.entries(e.classGroups),n).forEach(([s,o])=>{dv(o,r,s,t)}),r},dv=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Dw(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(vL(i)){dv(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{dv(o,Dw(t,s),n,r)})})},Dw=(e,t)=>{let n=e;return t.split(Q2).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},vL=e=>e.isThemeGetter,yL=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e,wL=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},y4="!",bL=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,o=a=>{const l=[];let c=0,d=0,p;for(let x=0;x<a.length;x++){let v=a[x];if(c===0){if(v===i&&(r||a.slice(x,x+s)===t)){l.push(a.slice(d,x)),d=x+s;continue}if(v==="/"){p=x;continue}}v==="["?c++:v==="]"&&c--}const m=l.length===0?a:a.substring(d),h=m.startsWith(y4),y=h?m.substring(1):m,w=p&&p>d?p-d:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:w}};return n?a=>n({className:a,parseClassName:o}):o},_L=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},xL=e=>({cache:wL(e.cacheSize),parseClassName:bL(e),...pL(e)}),SL=/\s+/,kL=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(SL);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:d,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:h}=n(c);let y=!!h,w=r(y?m.substring(0,h):m);if(!w){if(!y){a=c+(a.length>0?" "+a:a);continue}if(w=r(m),!w){a=c+(a.length>0?" "+a:a);continue}y=!1}const x=_L(d).join(":"),v=p?x+y4:x,_=v+w;if(s.includes(_))continue;s.push(_);const S=i(w,y);for(let A=0;A<S.length;++A){const O=S[A];s.push(v+O)}a=c+(a.length>0?" "+a:a)}return a};function AL(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=w4(t))&&(r&&(r+=" "),r+=n);return r}const w4=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=w4(e[r]))&&(n&&(n+=" "),n+=t);return n};function EL(e,...t){let n,r,i,s=o;function o(l){const c=t.reduce((d,p)=>p(d),e());return n=xL(c),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const d=kL(l,n);return i(l,d),d}return function(){return s(AL.apply(null,arguments))}}const nn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},b4=/^\[(?:([a-z-]+):)?(.+)\]$/i,NL=/^\d+\/\d+$/,CL=new Set(["px","full","screen"]),LL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,PL=/\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$/,TL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,RL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,no=e=>Fc(e)||CL.has(e)||NL.test(e),qo=e=>gu(e,"length",$L),Fc=e=>!!e&&!Number.isNaN(Number(e)),kg=e=>gu(e,"number",Fc),sd=e=>!!e&&Number.isInteger(Number(e)),IL=e=>e.endsWith("%")&&Fc(e.slice(0,-1)),xt=e=>b4.test(e),Ho=e=>LL.test(e),jL=new Set(["length","size","percentage"]),FL=e=>gu(e,jL,_4),DL=e=>gu(e,"position",_4),ML=new Set(["image","url"]),BL=e=>gu(e,ML,qL),UL=e=>gu(e,"",zL),od=()=>!0,gu=(e,t,n)=>{const r=b4.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},$L=e=>PL.test(e)&&!TL.test(e),_4=()=>!1,zL=e=>RL.test(e),qL=e=>OL.test(e),HL=()=>{const e=nn("colors"),t=nn("spacing"),n=nn("blur"),r=nn("brightness"),i=nn("borderColor"),s=nn("borderRadius"),o=nn("borderSpacing"),a=nn("borderWidth"),l=nn("contrast"),c=nn("grayscale"),d=nn("hueRotate"),p=nn("invert"),m=nn("gap"),h=nn("gradientColorStops"),y=nn("gradientColorStopPositions"),w=nn("inset"),x=nn("margin"),v=nn("opacity"),_=nn("padding"),S=nn("saturate"),A=nn("scale"),O=nn("sepia"),$=nn("skew"),H=nn("space"),B=nn("translate"),R=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",xt,t],I=()=>[xt,t],J=()=>["",no,qo],q=()=>["auto",Fc,xt],se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ae=()=>["solid","dashed","dotted","double","none"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",xt],he=()=>["auto","avoid","all","avoid-page","page","left","right","column"],fe=()=>[Fc,xt];return{cacheSize:500,separator:":",theme:{colors:[od],spacing:[no,qo],blur:["none","",Ho,xt],brightness:fe(),borderColor:[e],borderRadius:["none","","full",Ho,xt],borderSpacing:I(),borderWidth:J(),contrast:fe(),grayscale:Z(),hueRotate:fe(),invert:Z(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[IL,qo],inset:L(),margin:L(),opacity:fe(),padding:I(),saturate:fe(),scale:fe(),sepia:Z(),skew:fe(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",xt]}],container:["container"],columns:[{columns:[Ho]}],"break-after":[{"break-after":he()}],"break-before":[{"break-before":he()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...se(),xt]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",sd,xt]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xt]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",sd,xt]}],"grid-cols":[{"grid-cols":[od]}],"col-start-end":[{col:["auto",{span:["full",sd,xt]},xt]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[od]}],"row-start-end":[{row:["auto",{span:[sd,xt]},xt]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xt]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[H]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[H]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xt,t]}],"min-w":[{"min-w":[xt,t,"min","max","fit"]}],"max-w":[{"max-w":[xt,t,"none","full","min","max","fit","prose",{screen:[Ho]},Ho]}],h:[{h:[xt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ho,qo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",kg]}],"font-family":[{font:[od]}],"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-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",xt]}],"line-clamp":[{"line-clamp":["none",Fc,kg]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",no,xt]}],"list-image":[{"list-image":["none",xt]}],"list-style-type":[{list:["none","disc","decimal",xt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",no,qo]}],"underline-offset":[{"underline-offset":["auto",no,xt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...se(),DL]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",FL]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},BL]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}
vendor: 5,187 bytes, line 120
120],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...ae(),"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:ae()}],"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:["",...ae()]}],"outline-offset":[{"outline-offset":[no,xt]}],"outline-w":[{outline:[no,qo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[no,qo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ho,UL]}],"shadow-color":[{shadow:[od]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":le()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ho,xt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[S]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",xt]}],duration:[{duration:fe()}],ease:[{ease:["linear","in","out","in-out",xt]}],delay:[{delay:fe()}],animate:[{animate:["none","spin","ping","pulse","bounce",xt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[sd,xt]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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,518 bytes, line 120
120],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[no,qo,kg]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},WL=EL(HL);function pn(...e){return WL(p4(e))}const VL=eL,x4=D.forwardRef(({className:e,...t},n)=>j.jsx(a4,{ref:n,className:pn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));x4.displayName=a4.displayName;const GL=tL("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"}}),S4=D.forwardRef(({className:e,variant:t,...n},r)=>j.jsx(l4,{ref:r,className:pn(GL({variant:t}),e),...n}));S4.displayName=l4.displayName;const KL=D.forwardRef(({className:e,...t},n)=>j.jsx(d4,{ref:n,className:pn("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 group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));KL.displayName=d4.displayName;
120const k4=D.forwardRef(({className:e,...t},n)=>j.jsx(h4,{ref:n,className:pn("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:j.jsx(g4,{className:"h-4 w-4"})}));k4.displayName=h4.displayName;const A4=D.forwardRef(({className:e,...t},n)=>j.jsx(c4,{ref:n,className:pn("text-sm font-semibold",e),...t}));A4.displayName=c4.displayName;const E4=D.forwardRef(({className:e,...t},n)=>j.jsx(u4,{ref:n,className:pn("text-sm opacity-90",e),...t}));E4.displayName=u4.displayName;function YL(){const{toasts:e}=c8();return j.jsxs(VL,{children:[e.map(function({id:t,title:n,description:r,action:i,...s}){return j.jsxs(S4,{...s,children:[j.jsxs("div",{className:"grid gap-1",children:[n&&j.jsx(A4,{children:n}),r&&j.jsx(E4,{children:r})]}),i,j.jsx(k4,{})]},t)}),j.jsx(x4,{})]})}var Mw=["light","dark"],JL="(prefers-color-scheme: dark)",XL=D.createContext(void 0),ZL={setTheme:e=>{},themes:[]},QL=()=>{var e;return(e=D.useContext(XL))!=null?e:ZL};D.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:o,attrs:a,nonce:l})=>{let c=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=i?Mw.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(y,w=!1,x=!0)=>{let v=o?o[y]:y,_=w?y+"|| ''":`'${v}'`,S="";return i&&x&&!w&&Mw.includes(y)&&(S+=`d.style.colorScheme = '${y}';`),n==="class"?w||v?S+=`c.add(${_})`:S+="null":v&&(S+=`d[s](n,${_})`),S},h=e?`!function(){${d}${m(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${JL}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${m(o?"x[e]":"e",!0)}}${c?"":"else{"+m(s,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${m(o?"x[e]":"e",!0)}}else{${m(s,!1,!1)};}${p}}catch(t){}}();`;return D.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var eP=e=>{switch(e){case"success":return rP;case"info":return sP;case"warning":return iP;case"error":return oP;default:return null}},tP=Array(12).fill(0),nP=({visible:e,className:t})=>Ne.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Ne.createElement("div",{className:"sonner-spinner"},tP.map((n,r)=>Ne.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),rP=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"})),iP=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"})),sP=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"})),oP=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"})),aP=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"})),lP=()=>{let[e,t]=Ne.useState(document.hidden);return Ne.useEffect(()=>{let n=()=>{t(document.hidden)};
120return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},hv=1,cP=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;let{message:r,...i}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:hv++,o=this.toasts.find(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):this.addToast({title:r,...i,dismissible:a,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),this.subscribers.forEach(n=>n({id:t,dismiss:!0})),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));let i=t instanceof Promise?t:t(),s=r!==void 0,o,a=i.then(async c=>{if(o=["resolve",c],Ne.isValidElement(c))s=!1,this.create({id:r,type:"default",message:c});else if(dP(c)&&!c.ok){s=!1;let d=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,p=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description;this.create({id:r,type:"error",message:d,description:p})}else if(n.success!==void 0){s=!1;let d=typeof n.success=="function"?await n.success(c):n.success,p=typeof n.description=="function"?await n.description(c):n.description;this.create({id:r,type:"success",message:d,description:p})}}).catch(async c=>{if(o=["reject",c],n.error!==void 0){s=!1;let d=typeof n.error=="function"?await n.error(c):n.error,p=typeof n.description=="function"?await n.description(c):n.description;this.create({id:r,type:"error",message:d,description:p})}}).finally(()=>{var c;s&&(this.dismiss(r),r=void 0),(c=n.finally)==null||c.call(n)}),l=()=>new Promise((c,d)=>a.then(()=>o[0]==="reject"?d(o[1]):c(o[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{let r=(n==null?void 0:n.id)||hv++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Br=new cP,uP=(e,t)=>{let n=(t==null?void 0:t.id)||hv++;return Br.addToast({title:e,...t,id:n}),n},dP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",hP=uP,fP=()=>Br.toasts,pP=()=>Br.getActiveToasts();Object.assign(hP,{success:Br.success,info:Br.info,warning:Br.warning,error:Br.error,custom:Br.custom,message:Br.message,promise:Br.promise,dismiss:Br.dismiss,loading:Br.loading},{getHistory:fP,getToasts:pP});function mP(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}mP(`: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;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-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;
120left: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;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}[data-sonner-toast] [data-close-button]{background:var(--gray1)}: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:-50%;right:-50%;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}
120: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-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);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-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--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%);
120--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[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%)} 121`);function $f(e){return e.label!==void 0}var gP=3,vP="32px",yP="16px",Bw=4e3,wP=356,bP=14,_P=20,xP=200;function zi(...e){return e.filter(Boolean).join(" ")}function SP(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var kP=e=>{var t,n,r,i,s,o,a,l,c,d,p;let{invert:m,toast:h,unstyled:y,interacting:w,setHeights:x,visibleToasts:v,heights:_,index:S,toasts:A,expanded:O,removeToast:$,defaultRichColors:H,closeButton:B,style:R,cancelButtonStyle:X,actionButtonStyle:L,className:I="",descriptionClassName:J="",duration:q,position:se,gap:ae,loadingIcon:le,expandByDefault:Y,classNames:Z,icons:he,closeButtonAriaLabel:fe="Close toast",pauseWhenPageIsHidden:C}=e,[U,K]=Ne.useState(null),[Q,ne]=Ne.useState(null),[re,pe]=Ne.useState(!1),[me,ve]=Ne.useState(!1),[Ae,Re]=Ne.useState(!1),[Le,He]=Ne.useState(!1),[z,Pe]=Ne.useState(!1),[ht,Ye]=Ne.useState(0),[xe,tt]=Ne.useState(0),Oe=Ne.useRef(h.duration||q||Bw),Ze=Ne.useRef(null),Be=Ne.useRef(null),It=S===0,St=S+1<=v,Xe=h.type,gt=h.dismissible!==!1,kt=h.className||"",$e=h.descriptionClassName||"",st=Ne.useMemo(()=>_.findIndex(it=>it.toastId===h.id)||0,[_,h.id]),We=Ne.useMemo(()=>{var it;return(it=h.closeButton)!=null?it:B},[h.closeButton,B]),ln=Ne.useMemo(()=>h.duration||q||Bw,[h.duration,q]),At=Ne.useRef(0),at=Ne.useRef(0),vt=Ne.useRef(0),Dt=Ne.useRef(null),[Qe,Wt]=se.split("-"),nt=Ne.useMemo(()=>_.reduce((it,ut,Lt)=>Lt>=st?it:it+ut.height,0),[_,st]),lt=lP(),Yt=h.invert||m,yt=Xe==="loading";at.current=Ne.useMemo(()=>st*ae+nt,[st,nt]),Ne.useEffect(()=>{Oe.current=ln},[ln]),Ne.useEffect(()=>{pe(!0)},[]),Ne.useEffect(()=>{let it=Be.current;if(it){let ut=it.getBoundingClientRect().height;return tt(ut),x(Lt=>[{toastId:h.id,height:ut,position:h.position},...Lt]),()=>x(Lt=>Lt.filter(vn=>vn.toastId!==h.id))}},[x,h.id]),Ne.useLayoutEffect(()=>{if(!re)return;let it=Be.current,ut=it.style.height;it.style.height="auto";let Lt=it.getBoundingClientRect().height;it.style.height=ut,tt(Lt),x(vn=>vn.find(Ue=>Ue.toastId===h.id)?vn.map(Ue=>Ue.toastId===h.id?{...Ue,height:Lt}:Ue):[{toastId:h.id,height:Lt,position:h.position},...vn])},[re,h.title,h.description,x,h.id]);let Ve=Ne.useCallback(()=>{ve(!0),Ye(at.current),x(it=>it.filter(ut=>ut.toastId!==h.id)),setTimeout(()=>{$(h)},xP)},[h,$,x,at]);Ne.useEffect(()=>{if(h.promise&&Xe==="loading"||h.duration===1/0||h.type==="loading")return;let it;return O||w||C&<?(()=>{if(vt.current<At.current){let ut=new Date().getTime()-At.current;Oe.current=Oe.current-ut}
121vt.current=new Date().getTime()})():Oe.current!==1/0&&(At.current=new Date().getTime(),it=setTimeout(()=>{var ut;(ut=h.onAutoClose)==null||ut.call(h,h),Ve()},Oe.current)),()=>clearTimeout(it)},[O,w,h,Xe,C,lt,Ve]),Ne.useEffect(()=>{h.delete&&Ve()},[Ve,h.delete]);function jt(){var it,ut,Lt;return he!=null&&he.loading?Ne.createElement("div",{className:zi(Z==null?void 0:Z.loader,(it=h==null?void 0:h.classNames)==null?void 0:it.loader,"sonner-loader"),"data-visible":Xe==="loading"},he.loading):le?Ne.createElement("div",{className:zi(Z==null?void 0:Z.loader,(ut=h==null?void 0:h.classNames)==null?void 0:ut.loader,"sonner-loader"),"data-visible":Xe==="loading"},le):Ne.createElement(nP,{className:zi(Z==null?void 0:Z.loader,(Lt=h==null?void 0:h.classNames)==null?void 0:Lt.loader),visible:Xe==="loading"})}return Ne.createElement("li",{tabIndex:0,ref:Be,className:zi(I,kt,Z==null?void 0:Z.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,Z==null?void 0:Z.default,Z==null?void 0:Z[Xe],(n=h==null?void 0:h.classNames)==null?void 0:n[Xe]),"data-sonner-toast":"","data-rich-colors":(r=h.richColors)!=null?r:H,"data-styled":!(h.jsx||h.unstyled||y),"data-mounted":re,"data-
121promise":!!h.promise,"data-swiped":z,"data-removed":me,"data-visible":St,"data-y-position":Qe,"data-x-position":Wt,"data-index":S,"data-front":It,"data-swiping":Ae,"data-dismissible":gt,"data-type":Xe,"data-invert":Yt,"data-swipe-out":Le,"data-swipe-direction":Q,"data-expanded":!!(O||Y&&re),style:{"--index":S,"--toasts-before":S,"--z-index":A.length-S,"--offset":`${me?ht:at.current}px`,"--initial-height":Y?"auto":`${xe}px`,...R,...h.style},onDragEnd:()=>{Re(!1),K(null),Dt.current=null},onPointerDown:it=>{yt||!gt||(Ze.current=new Date,Ye(at.current),it.target.setPointerCapture(it.pointerId),it.target.tagName!=="BUTTON"&&(Re(!0),Dt.current={x:it.clientX,y:it.clientY}))},onPointerUp:()=>{var it,ut,Lt,vn;if(Le||!gt)return;Dt.current=null;let Ue=Number(((it=Be.current)==null?void 0:it.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Gn=Number(((ut=Be.current)==null?void 0:ut.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Qn=new Date().getTime()-((Lt=Ze.current)==null?void 0:Lt.getTime()),cn=U==="x"?Ue:Gn,An=Math.abs(cn)/Qn;if(Math.abs(cn)>=_P||An>.11){Ye(at.current),(vn=h.onDismiss)==null||vn.call(h,h),ne(U==="x"?Ue>0?"right":"left":Gn>0?"down":"up"),Ve(),He(!0),Pe(!1);return}Re(!1),K(null)},onPointerMove:it=>{var ut,Lt,vn,Ue;if(!Dt.current||!gt||((ut=window.getSelection())==null?void 0:ut.toString().length)>0)return;let Gn=it.clientY-Dt.current.y,Qn=it.clientX-Dt.current.x,cn=(Lt=e.swipeDirections)!=null?Lt:SP(se);!U&&(Math.abs(Qn)>1||Math.abs(Gn)>1)&&K(Math.abs(Qn)>Math.abs(Gn)?"x":"y");let An={x:0,y:0};U==="y"?(cn.includes("top")||cn.includes("bottom"))&&(cn.includes("top")&&Gn<0||cn.includes("bottom")&&Gn>0)&&(An.y=Gn):U==="x"&&(cn.includes("left")||cn.includes("right"))&&(cn.includes("left")&&Qn<0||cn.includes("right")&&Qn>0)&&(An.x=Qn),(Math.abs(An.x)>0||Math.abs(An.y)>0)&&Pe(!0),(vn=Be.current)==null||vn.style.setProperty("--swipe-amount-x",`${An.x}px`),(Ue=Be.current)==null||Ue.style.setProperty("--swipe-amount-y",`${An.y}px`)}},We&&!h.jsx?Ne.createElement("button",{"aria-label":fe,"data-disabled":yt,"data-close-button":!0,onClick:yt||!gt?()=>{}:()=>{var it;Ve(),(it=h.onDismiss)==null||it.call(h,h)},className:zi(Z==null?void 0:Z.closeButton,(i=h==null?void 0:h.classNames)==null?void 0:i.closeButton)},(s=he==null?void 0:he.close)!=null?s:aP):null,h.jsx||D.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:Ne.createElement(Ne.Fragment,null,Xe||h.icon||h.promise?Ne.createElement("div",{"data-icon":"",className:zi(Z==null?void 0:Z.icon,(o=h==null?void 0:h.classNames)==null?void 0:o.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||jt():null,h.type!=="loading"?h.icon||(he==null?void 0:he[Xe])||eP(Xe):null):null,Ne.createElement("div",{"data-content":"",className:zi(Z==null?void 0:Z.content,(a=h==null?void 0:h.classNames)==null?void 0:a.content)},Ne.createElement("div",{"data-title":"",className:zi(Z==null?void 0:Z.title,(l=h==null?void 0:h.classNames)==null?void 0:l.title)},typeof h.title=="function"?h.title():h.title),h.description?Ne.createElement("div",{"data-description":"",className:zi(J,$e,Z==null?void 0:Z.description,(c=h==null?void 0:h.classNames)==null?void 0:c.description)},typeof h.description=="function"?h.description():h.description):null),D.isValidElement(h.cancel)?h.cancel:h.cancel&&$f(h.cancel)?Ne.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||X,onClick:it=>{var ut,Lt;$f(h.cancel)&>&&((Lt=(ut=h.cancel).onClick)==null||Lt.call(ut,it),Ve())},className:zi(Z==null?void 0:Z.cancelButton,(d=h==null?void 0:h.classNames)==null?void 0:d.cancelButton)},h.cancel.label):null,D.isValidElement(h.action)?h.action:h.action&&$f(h.action)?Ne.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||L,onClick:it=>{var ut,Lt;$f(h.action)&&((Lt=(ut=h.action).onClick)==null||Lt.call(ut,it),!it.defaultPrevented&&Ve())},className:zi(Z==null?void 0:Z.actionButton,(p=h==null?void 0:h.classNames)==null?void 0:p.actionButton)},h.action.label):null))};function Uw(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function AP(e,t){let n={};return[e,t].forEach((r,i)=>{let s=i===1,o=s?"--mobile-offset":"--offset",a=s?yP:vP;function l(c){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=a:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}var EP=D.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:o,className:a,offset:l,mobileOffset:c,theme:d="light",richColors:p,duration:m,style:h,visibleToasts:y=gP,toastOptions:w,dir:x=Uw(),gap:v=bP,loadingIcon:_,icons:S,containerAriaLabel:A="Notifications",pauseWhenPageIsHidden:O}=e,[$,H]=Ne.useState([]),B=Ne.useMemo(()=>Array.from(new Set([r].concat($.filter(C=>C.position).map(C=>C.position)))),[$,r]),[R,X]=Ne.useState([]),[L,I]=Ne.useState(!1),[J,q]=Ne.useState(!1),[se,ae]=Ne.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
121k":"light"),le=Ne.useRef(null),Y=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),Z=Ne.useRef(null),he=Ne.useRef(!1),fe=Ne.useCallback(C=>{H(U=>{var K;return(K=U.find(Q=>Q.id===C.id))!=null&&K.delete||Br.dismiss(C.id),U.filter(({id:Q})=>Q!==C.id)})},[]);return Ne.useEffect(()=>Br.subscribe(C=>{if(C.dismiss){H(U=>U.map(K=>K.id===C.id?{...K,delete:!0}:K));return}setTimeout(()=>{BS.flushSync(()=>{H(U=>{let K=U.findIndex(Q=>Q.id===C.id);return K!==-1?[...U.slice(0,K),{...U[K],...C},...U.slice(K+1)]:[C,...U]})})})}),[]),Ne.useEffect(()=>{if(d!=="system"){ae(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ae("dark"):ae("light")),typeof window>"u")return;let C=window.matchMedia("(prefers-color-scheme: dark)");try{C.addEventListener("change",({matches:U})=>{ae(U?"dark":"light")})}catch{C.addListener(({matches:K})=>{try{ae(K?"dark":"light")}catch(Q){console.error(Q)}})}},[d]),Ne.useEffect(()=>{$.length<=1&&I(!1)},[$]),Ne.useEffect(()=>{let C=U=>{var K,Q;i.every(ne=>U[ne]||U.code===ne)&&(I(!0),(K=le.current)==null||K.focus()),U.code==="Escape"&&(document.activeElement===le.current||(Q=le.current)!=null&&Q.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[i]),Ne.useEffect(()=>{if(le.current)return()=>{Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null,he.current=!1)}},[le.current]),Ne.createElement("section",{ref:t,"aria-label":`${A} ${Y}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},B.map((C,U)=>{var K;let[Q,ne]=C.split("-");return $.length?Ne.createElement("ol",{key:C,dir:x==="auto"?Uw():x,tabIndex:-1,ref:le,className:a,"data-sonner-toaster":!0,"data-theme":se,"data-y-position":Q,"data-lifted":L&&$.length>1&&!s,"data-x-position":ne,style:{"--front-toast-height":`${((K=R[0])==null?void 0:K.height)||0}px`,"--width":`${wP}px`,"--gap":`${v}px`,...h,...AP(l,c)},onBlur:re=>{he.current&&!re.currentTarget.contains(re.relatedTarget)&&(he.current=!1,Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||he.current||(he.current=!0,Z.current=re.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{J||I(!1)},onDragEnd:()=>I(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||q(!0)},onPointerUp:()=>q(!1)},$.filter(re=>!re.position&&U===0||re.position===C).map((re,pe)=>{var me,ve;return Ne.createElement(kP,{key:re.id,icons:S,index:pe,toast:re,defaultRichColors:p,duration:(me=w==null?void 0:w.duration)!=null?me:m,className:w==null?void 0:w.className,descriptionClassName:w==null?void 0:w.descriptionClassName,invert:n,visibleToasts:y,closeButton:(ve=w==null?void 0:w.closeButton)!=null?ve:o,interacting:J,position:C,style:w==null?void 0:w.style,unstyled:w==null?void 0:w.unstyled,classNames:w==null?void 0:w.classNames,cancelButtonStyle:w==null?void 0:w.cancelButtonStyle,actionButtonStyle:w==null?void 0:w.actionButtonStyle,removeToast:fe,toasts:$.filter(Ae=>Ae.position==re.position),heights:R.filter(Ae=>Ae.position==re.position),setHeights:X,expandByDefault:s,gap:v,loadingIcon:_,expanded:L,pauseWhenPageIsHidden:O,swipeDirections:e.swipeDirections})})):null}))});const NP=({...e})=>{const{theme:t="system"}=QL();return j.jsx(EP,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var CP=i2[" useId ".trim().toString()]||(()=>{}),LP=0;function Pd(e){const[t,n]=D.useState(CP());return Ds(()=>{n(r=>r??String(LP++))},[e]),t?`radix-${t}`:""}const PP=["top","right","bottom","left"],Aa=Math.min,oi=Math.max,c0=Math.round,zf=Math.floor,Os=e=>({x:e,y:e}
vendor: 10,377 bytes, line 121
121),TP={left:"right",right:"left",bottom:"top",top:"bottom"},RP={start:"end",end:"start"};function fv(e,t,n){return oi(e,Aa(t,n))}function xo(e,t){return typeof e=="function"?e(t):e}function So(e){return e.split("-")[0]}function vu(e){return e.split("-")[1]}function ey(e){return e==="x"?"y":"x"}function ty(e){return e==="y"?"height":"width"}const OP=new Set(["top","bottom"]);function Ls(e){return OP.has(So(e))?"y":"x"}function ny(e){return ey(Ls(e))}function IP(e,t,n){n===void 0&&(n=!1);const r=vu(e),i=ny(e),s=ty(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=u0(o)),[o,u0(o)]}function jP(e){const t=u0(e);return[pv(e),t,pv(t)]}function pv(e){return e.replace(/start|end/g,t=>RP[t])}const $w=["left","right"],zw=["right","left"],FP=["top","bottom"],DP=["bottom","top"];function MP(e,t,n){switch(e){case"top":case"bottom":return n?t?zw:$w:t?$w:zw;case"left":case"right":return t?FP:DP;default:return[]}}function BP(e,t,n,r){const i=vu(e);let s=MP(So(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(pv)))),s}function u0(e){return e.replace(/left|right|bottom|top/g,t=>TP[t])}function UP(e){return{top:0,right:0,bottom:0,left:0,...e}}function N4(e){return typeof e!="number"?UP(e):{top:e,right:e,bottom:e,left:e}}function d0(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function qw(e,t,n){let{reference:r,floating:i}=e;const s=Ls(t),o=ny(t),a=ty(o),l=So(t),c=s==="y",d=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,m=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:d,y:r.y-i.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-i.width,y:p};break;default:h={x:r.x,y:r.y}}switch(vu(t)){case"start":h[o]-=m*(n&&c?-1:1);break;case"end":h[o]+=m*(n&&c?-1:1);break}return h}const $P=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:p}=qw(c,r,l),m=r,h={},y=0;for(let w=0;w<a.length;w++){const{name:x,fn:v}=a[w],{x:_,y:S,data:A,reset:O}=await v({x:d,y:p,initialPlacement:r,placement:m,strategy:i,middlewareData:h,rects:c,platform:o,elements:{reference:e,floating:t}});d=_??d,p=S??p,h={...h,[x]:{...h[x],...A}},O&&y<=50&&(y++,typeof O=="object"&&(O.placement&&(m=O.placement),O.rects&&(c=O.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:d,y:p}=qw(c,m,l)),w=-1)}return{x:d,y:p,placement:m,strategy:i,middlewareData:h}};async function nh(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:m=!1,padding:h=0}=xo(t,e),y=N4(h),x=a[m?p==="floating"?"reference":"floating":p],v=d0(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),_=p==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),A=await(s.isElement==null?void 0:s.isElement(S))?await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1}:{x:1,y:1},O=d0(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:S,strategy:l}):_);return{top:(v.top-O.top+y.top)/A.y,bottom:(O.bottom-v.bottom+y.bottom)/A.y,left:(v.left-O.left+y.left)/A.x,right:(O.right-v.right+y.right)/A.x}}const zP=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=xo(e,t)||{};if(c==null)return{};const p=N4(d),m={x:n,y:r},h=ny(i),y=ty(h),w=await o.getDimensions(c),x=h==="y",v=x?"top":"left",_=x?"bottom":"right",S=x?"clientHeight":"clientWidth",A=s.reference[y]+s.reference[h]-m[h]-s.floating[y],O=m[h]-s.reference[h],$=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let H=$?$[S]:0;(!H||!await(o.isElement==null?void 0:o.isElement($)))&&(H=a.floating[S]||s.floating[y]);const B=A/2-O/2,R=H/2-w[y]/2-1,X=Aa(p[v],R),L=Aa(p[_],R),I=X,J=H-w[y]-L,q=H/2-w[y]/2+B,se=fv(I,q,J),ae=!l.arrow&&vu(i)!=null&&q!==se&&s.reference[y]/2-(q<I?X:L)-w[y]/2<0,le=ae?q<I?q-I:q-J:0;return{[h]:m[h]+le,data:{[h]:se,centerOffset:q-se-le,...ae&&{alignmentOffset:le}},reset:ae}}}),qP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:w=!0,...x}=xo(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=So(i),_=Ls(a),S=So(a)===a,A=await(l.isRTL==null?void 0:l.isRTL(c.floating)),O=m||(S||!w?[u0(a)]:jP(a)),$=y!=="none";!m&&$&&O.push(...BP(a,w,y,A));const H=[a,...O],B=await nh(t,x),R=[];let X=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&R.push(B[v]),p){const q=IP(i,o,A);R.push(B[q[0]],B[q[1]])}if(X=[...X,{placement:i,overflows:R}],!R.every(q=>q<=0)){var L,I;const q=(((L=s.flip)==null?void 0:L.index)||0)+1,se=H[q];if(se&&(!(p==="alignment"?_!==Ls(se):!1)||X.every(Y=>Y.overflows[0]>0&&Ls(Y.placement)===_)))return{data:{index:q,overflows:X},reset:{placement:se}};let ae=(I=X.filter(le=>le.overflows[0]<=0).sort((le,Y)=>le.overflows[1]-Y.overflows[1])[0])==null?void 0:I.placement;if(!ae)switch(h){case"bestFit":{var J;const le=(J=X.filter(Y=>{if($){const Z=Ls(Y.placement);return Z===_||Z==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(Z=>Z>0).reduce((Z,he)=>Z+he,0)]).sort((Y,Z)=>Y[1]-Z[1])[0])==null?void 0:J[0];le&&(ae=le);break}case"initialPlacement":ae=a;break}if(i!==ae)return{reset:{placement:ae}}}return{}}}};function Hw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ww(e){return PP.some(t=>e[t]>=0)}const HP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=xo(e,t);switch(r){case"referenceHidden":{const s=await nh(t,{...i,elementContext:"reference"}),o=Hw(s,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Ww(o)}}}case"escaped":{const s=await nh(t,{...i,altBoundary:!0}),o=Hw(s,n.floating);return{data:{escapedOffsets:o,escaped:Ww(o)}}}default:return{}}}}},C4=new Set(["left","top"]);async function WP(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=So(n),a=vu(n),l=Ls(n)==="y",c=C4.has(o)?-1:1,d=s&&l?-1:1,p=xo(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof y=="number"&&(h=a==="end"?y*-1:y),l?{x:h*d,y:m*c}:{x:m*c,y:h*d}}const VP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await WP(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},GP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:v,y:_}=x;return{x:v,y:_}}},...l}=xo(e,t),c={x:n,y:r},d=await nh(t,l),p=Ls(So(i)),m=ey(p);let h=c[m],y=c[p];if(s){const x=m==="y"?"top":"left",v=m==="y"?"bottom":"right",_=h+d[x],S=h-d[v];h=fv(_,h,S)}if(o){const x=p==="y"?"top":"left",v=p==="y"?"bottom":"right",_=y+d[x],S=y-d[v];y=fv(_,y,S)}const w=a.fn({...t,[m]:h,[p]:y});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[m]:s,[p]:o}}}}}},KP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=xo(e,t),d={x:n,y:r},p=Ls(i),m=ey(p);let h=d[m],y=d[p];const w=xo(a,t),x=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(l){const S=m==="y"?"height":"width",A=s.reference[m]-s.floating[S]+x.mainAxis,O=s.reference[m]+s.reference[S]-x.mainAxis;h<A?h=A:h>O&&(h=O)}if(c){var v,_;const S=m==="y"?"width":"height",A=C4.has(So(i)),O=s.reference[p]-s.floating[S]+(A&&((v=o.offset)==null?void 0:v[p])||0)+(A?0:x.crossAxis),$=s.reference[p]+s.reference[S]+(A?0:((_=o.offset)==null?void 0:_[p])||0)-(A?x.crossAxis:0);y<O?y=O:y>$&&(y=$)}return{[m]:h,[p]:y}}}},YP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:l=()=>{},...c}=xo(e,t),d=await nh(t,c),p=So(i),m=vu(i),h=Ls(i)==="y",{width:y,height:w}=s.floating;let x,v;p==="top"||p==="bottom"?(x=p,v=m===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=p,x=m==="end"?"top":"bottom");const _=w-d.top-d.bottom,S=y-d.left-d.right,A=Aa(w-d[x],_),O=Aa(y-d[v],S),$=!t.middlewareData.shift;let H=A,B=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(B=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(H=_),$&&!m){const X=oi(d.left,0),L=oi(d.right,0),I=oi(d.top,0),J=oi(d.bottom,0);h?B=y-2*(X!==0||L!==0?X+L:oi(d.left,d.right)):H=w-2*(I!==0||J!==0?I+J:oi(d.top,d.bottom))}await l({...t,availableWidth:B,availableHeight:H});const R=await o.getDimensions(a.floating);return y!==R.width||w!==R.height?{reset:{rects:!0}}:{}}}};function G0(){return typeof window<"u"}function yu(e){return L4(e)?(e.nodeName||"").toLowerCase():"#document"}function hi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bs(e){var t;return(t=(L4(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function L4(e){return G0()?e instanceof Node||e instanceof hi(e).Node:!1}function ts(e){return G0()?e instanceof Element||e instanceof hi(e).Element:!1}function Ms(e){return G0()?e instanceof HTMLElement||e instanceof hi(e).HTMLElement:!1}function Vw(e){return!G0()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof hi(e).ShadowRoot}const JP=new Set(["inline","contents"]);function Th(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ns(e);
vendor: 4,121 bytes, line 121
121return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!JP.has(i)}const XP=new Set(["table","td","th"]);function ZP(e){return XP.has(yu(e))}const QP=[":popover-open",":modal"];function K0(e){return QP.some(t=>{try{return e.matches(t)}catch{return!1}})}const eT=["transform","translate","scale","rotate","perspective"],tT=["transform","translate","scale","rotate","perspective","filter"],nT=["paint","layout","strict","content"];function ry(e){const t=iy(),n=ts(e)?ns(e):e;return eT.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||tT.some(r=>(n.willChange||"").includes(r))||nT.some(r=>(n.contain||"").includes(r))}function rT(e){let t=Ea(e);for(;Ms(t)&&!lu(t);){if(ry(t))return t;if(K0(t))return null;t=Ea(t)}return null}function iy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const iT=new Set(["html","body","#document"]);function lu(e){return iT.has(yu(e))}function ns(e){return hi(e).getComputedStyle(e)}function Y0(e){return ts(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ea(e){if(yu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vw(e)&&e.host||Bs(e);return Vw(t)?t.host:t}function P4(e){const t=Ea(e);return lu(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ms(t)&&Th(t)?t:P4(t)}function rh(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=P4(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=hi(i);if(s){const a=mv(o);return t.concat(o,o.visualViewport||[],Th(i)?i:[],a&&n?rh(a):[])}return t.concat(i,rh(i,[],n))}function mv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function T4(e){const t=ns(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ms(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=c0(n)!==s||c0(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function sy(e){return ts(e)?e:e.contextElement}function Dc(e){const t=sy(e);if(!Ms(t))return Os(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=T4(t);let o=(s?c0(n.width):n.width)/r,a=(s?c0(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const sT=Os(0);function R4(e){const t=hi(e);return!iy()||!t.visualViewport?sT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oT(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==hi(e)?!1:t}function kl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=sy(e);let o=Os(1);t&&(r?ts(r)&&(o=Dc(r)):o=Dc(e));const a=oT(s,n,r)?R4(s):Os(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,d=i.width/o.x,p=i.height/o.y;if(s){const m=hi(s),h=r&&ts(r)?hi(r):r;let y=m,w=mv(y);for(;w&&r&&h!==y;){const x=Dc(w),v=w.getBoundingClientRect(),_=ns(w),S=v.left+(w.clientLeft+parseFloat(_.paddingLeft))*x.x,A=v.top+(w.clientTop+parseFloat(_.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,p*=x.y,l+=S,c+=A,y=hi(w),w=mv(y)}}return d0({width:d,height:p,x:l,y:c})}function oy(e,t){const n=Y0(e).scrollLeft;return t?t.left+n:kl(Bs(e)).left+n}function O4(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:oy(e,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function aT(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=Bs(r),a=t?K0(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Os(1);const d=Os(0),p=Ms(r);if((p||!p&&!s)&&((yu(r)!=="body"||Th(o))&&(l=Y0(r)),Ms(r))){const h=kl(r);c=Dc(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const m=o&&!p&&!s?O4(o,l,!0):Os(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+m.x,y:n.y*c.y-l.scrollTop*c.y+d.y+m.y}}function lT(e){return Array.from(e.getClientRects())}function cT(e){const t=Bs(e),n=Y0(e),r=e.ownerDocument.body,i=oi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=oi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+oy(e);const a=-n.scrollTop;return ns(r).direction==="rtl"&&(o+=oi(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}
vendor: 4,850 bytes, line 121
121function uT(e,t){const n=hi(e),r=Bs(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=iy();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}const dT=new Set(["absolute","fixed"]);function hT(e,t){const n=kl(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=Ms(e)?Dc(e):Os(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=r*s.y;return{width:o,height:a,x:l,y:c}}function Gw(e,t,n){let r;if(t==="viewport")r=uT(e,n);else if(t==="document")r=cT(Bs(e));else if(ts(t))r=hT(t,n);else{const i=R4(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return d0(r)}function I4(e,t){const n=Ea(e);return n===t||!ts(n)||lu(n)?!1:ns(n).position==="fixed"||I4(n,t)}function fT(e,t){const n=t.get(e);if(n)return n;let r=rh(e,[],!1).filter(a=>ts(a)&&yu(a)!=="body"),i=null;const s=ns(e).position==="fixed";let o=s?Ea(e):e;for(;ts(o)&&!lu(o);){const a=ns(o),l=ry(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&dT.has(i.position)||Th(o)&&!l&&I4(e,o))?r=r.filter(d=>d!==o):i=a,o=Ea(o)}return t.set(e,r),r}function pT(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?K0(t)?[]:fT(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,d)=>{const p=Gw(t,d,i);return c.top=oi(p.top,c.top),c.right=Aa(p.right,c.right),c.bottom=Aa(p.bottom,c.bottom),c.left=oi(p.left,c.left),c},Gw(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function mT(e){const{width:t,height:n}=T4(e);return{width:t,height:n}}function gT(e,t,n){const r=Ms(t),i=Bs(t),s=n==="fixed",o=kl(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Os(0);function c(){l.x=oy(i)}if(r||!r&&!s)if((yu(t)!=="body"||Th(i))&&(a=Y0(t)),r){const h=kl(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&c();s&&!r&&i&&c();const d=i&&!r&&!s?O4(i,a):Os(0),p=o.left+a.scrollLeft-l.x-d.x,m=o.top+a.scrollTop-l.y-d.y;return{x:p,y:m,width:o.width,height:o.height}}function Ag(e){return ns(e).position==="static"}function Kw(e,t){if(!Ms(e)||ns(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Bs(e)===n&&(n=n.ownerDocument.body),n}function j4(e,t){const n=hi(e);if(K0(e))return n;if(!Ms(e)){let i=Ea(e);for(;i&&!lu(i);){if(ts(i)&&!Ag(i))return i;i=Ea(i)}return n}let r=Kw(e,t);for(;r&&ZP(r)&&Ag(r);)r=Kw(r,t);return r&&lu(r)&&Ag(r)&&!ry(r)?n:r||rT(e)||n}const vT=async function(e){const t=this.getOffsetParent||j4,n=this.getDimensions,r=await n(e.floating);return{reference:gT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function yT(e){return ns(e).direction==="rtl"}const wT={convertOffsetParentRelativeRectToViewportRelativeRect:aT,getDocumentElement:Bs,getClippingRect:pT,getOffsetParent:j4,getElementRects:vT,getClientRects:lT,getDimensions:mT,getScale:Dc,isElement:ts,isRTL:yT};function F4(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function bT(e,t){let n=null,r;const i=Bs(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:d,top:p,width:m,height:h}=c;if(a||t(),!m||!h)return;const y=zf(p),w=zf(i.clientWidth-(d+m)),x=zf(i.clientHeight-(p+h)),v=zf(d),S={rootMargin:-y+"px "+-w+"px "+-x+"px "+-v+"px",threshold:oi(0,Aa(1,l))||1};let A=!0;function O($){const H=$[0].intersectionRatio;if(H!==l){if(!A)return o();H?o(!1,H):r=setTimeout(()=>{o(!1,1e-7)},1e3)}H===1&&!F4(c,e.getBoundingClientRect())&&o(),A=!1}try{n=new IntersectionObserver(O,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(O,S)}n.observe(e)}return o(!0),s}function _T(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=sy(e),d=i||s?[...c?rh(c):[],...rh(t)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const p=c&&a?bT(c,n):null;let m=-1,h=null;o&&(h=new ResizeObserver(v=>{let[_]=v;_&&_.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var S;(S=h)==null||S.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let y,w=l?kl(e):null;l&&x();function x(){const v=kl(e);w&&!F4(w,v)&&n(),w=v,y=requestAnimationFrame(x)}return n(),()=>{var v;d.forEach(_=>{i&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),p==null||p(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(y)}}const xT=VP,ST=GP,kT=qP,AT=YP,ET=HP,Yw=zP,NT=KP,CT=(e,t,n)=>{const r=new Map,i={platform:wT,...n},s={...i.platform,_c:r};return $P(e,t,{...i,platform:s})};var LT=typeof document<"u",PT=function(){},Np=LT?D.useLayoutEffect:PT;function h0(e,t){if(e===t)return!0;
vendor: 3,254 bytes, line 121
121if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!h0(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!h0(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function D4(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jw(e,t){const n=D4(e);return Math.round(t*n)/n}function Eg(e){const t=D.useRef(e);return Np(()=>{t.current=e}),t}function TT(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,p]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=D.useState(r);h0(m,r)||h(r);const[y,w]=D.useState(null),[x,v]=D.useState(null),_=D.useCallback(Y=>{Y!==$.current&&($.current=Y,w(Y))},[]),S=D.useCallback(Y=>{Y!==H.current&&(H.current=Y,v(Y))},[]),A=s||y,O=o||x,$=D.useRef(null),H=D.useRef(null),B=D.useRef(d),R=l!=null,X=Eg(l),L=Eg(i),I=Eg(c),J=D.useCallback(()=>{if(!$.current||!H.current)return;const Y={placement:t,strategy:n,middleware:m};L.current&&(Y.platform=L.current),CT($.current,H.current,Y).then(Z=>{const he={...Z,isPositioned:I.current!==!1};q.current&&!h0(B.current,he)&&(B.current=he,Ch.flushSync(()=>{p(he)}))})},[m,t,n,L,I]);Np(()=>{c===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,p(Y=>({...Y,isPositioned:!1})))},[c]);const q=D.useRef(!1);Np(()=>(q.current=!0,()=>{q.current=!1}),[]),Np(()=>{if(A&&($.current=A),O&&(H.current=O),A&&O){if(X.current)return X.current(A,O,J);J()}},[A,O,J,X,R]);const se=D.useMemo(()=>({reference:$,floating:H,setReference:_,setFloating:S}),[_,S]),ae=D.useMemo(()=>({reference:A,floating:O}),[A,O]),le=D.useMemo(()=>{const Y={position:n,left:0,top:0};if(!ae.floating)return Y;const Z=Jw(ae.floating,d.x),he=Jw(ae.floating,d.y);return a?{...Y,transform:"translate("+Z+"px, "+he+"px)",...D4(ae.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Z,top:he}},[n,a,ae.floating,d.x,d.y]);return D.useMemo(()=>({...d,update:J,refs:se,elements:ae,floatingStyles:le}),[d,J,se,ae,le])}const RT=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Yw({element:r.current,padding:i}).fn(n):{}:r?Yw({element:r,padding:i}).fn(n):{}}}},OT=(e,t)=>({...xT(e),options:[e,t]}),IT=(e,t)=>({...ST(e),options:[e,t]}),jT=(e,t)=>({...NT(e),options:[e,t]}),FT=(e,t)=>({...kT(e),options:[e,t]}),DT=(e,t)=>({...AT(e),options:[e,t]}),MT=(e,t)=>({...ET(e),options:[e,t]}),BT=(e,t)=>({...RT(e),options:[e,t]});var UT="Arrow",M4=D.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return j.jsx(an.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:j.jsx("polygon",{points:"0,0 30,0 15,10"})})});M4.displayName=UT;var $T=M4;function zT(e){const[t,n]=D.useState(void 0);return Ds(()=>
vendor: 4,401 bytes, line 121
121{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var B4="Popper",[U4,$4]=Rl(B4),[IU,z4]=U4(B4),q4="PopperAnchor",H4=D.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=z4(q4,n),o=D.useRef(null),a=hr(t,o);return D.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:j.jsx(an.div,{...i,ref:a})});H4.displayName=q4;var ay="PopperContent",[qT,HT]=U4(ay),W4=D.forwardRef((e,t)=>{var re,pe,me,ve,Ae,Re;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:y,...w}=e,x=z4(ay,n),[v,_]=D.useState(null),S=hr(t,Le=>_(Le)),[A,O]=D.useState(null),$=zT(A),H=($==null?void 0:$.width)??0,B=($==null?void 0:$.height)??0,R=r+(s!=="center"?"-"+s:""),X=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},L=Array.isArray(c)?c:[c],I=L.length>0,J={padding:X,boundary:L.filter(VT),altBoundary:I},{refs:q,floatingStyles:se,placement:ae,isPositioned:le,middlewareData:Y}=TT({strategy:"fixed",placement:R,whileElementsMounted:(...Le)=>_T(...Le,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[OT({mainAxis:i+B,alignmentAxis:o}),l&&IT({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?jT():void 0,...J}),l&&FT({...J}),DT({...J,apply:({elements:Le,rects:He,availableWidth:z,availableHeight:Pe})=>{const{width:ht,height:Ye}=He.reference,xe=Le.floating.style;xe.setProperty("--radix-popper-available-width",`${z}px`),xe.setProperty("--radix-popper-available-height",`${Pe}px`),xe.setProperty("--radix-popper-anchor-width",`${ht}px`),xe.setProperty("--radix-popper-anchor-height",`${Ye}px`)}}),A&&BT({element:A,padding:a}),GT({arrowWidth:H,arrowHeight:B}),m&&MT({strategy:"referenceHidden",...J})]}),[Z,he]=K4(ae),fe=Fs(y);Ds(()=>{le&&(fe==null||fe())},[le,fe]);const C=(re=Y.arrow)==null?void 0:re.x,U=(pe=Y.arrow)==null?void 0:pe.y,K=((me=Y.arrow)==null?void 0:me.centerOffset)!==0,[Q,ne]=D.useState();return Ds(()=>{v&&ne(window.getComputedStyle(v).zIndex)},[v]),j.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:le?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[(ve=Y.transformOrigin)==null?void 0:ve.x,(Ae=Y.transformOrigin)==null?void 0:Ae.y].join(" "),...((Re=Y.hide)==null?void 0:Re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:j.jsx(qT,{scope:n,placedSide:Z,onArrowChange:O,arrowX:C,arrowY:U,shouldHideArrow:K,children:j.jsx(an.div,{"data-side":Z,"data-align":he,...w,ref:S,style:{...w.style,animation:le?void 0:"none"}})})})});W4.displayName=ay;var V4="PopperArrow",WT={top:"bottom",right:"left",bottom:"top",left:"right"},G4=D.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=HT(V4,r),o=WT[s.placedSide];return j.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:j.jsx($T,{...i,ref:n,style:{...i.style,display:"block"}})})});G4.displayName=V4;function VT(e){return e!==null}var GT=e=>({name:"transformOrigin",options:e,fn(t){var x,v,_;const{placement:n,rects:r,middlewareData:i}=t,o=((x=i.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,d]=K4(n),p={start:"0%",center:"50%",end:"100%"}[d],m=(((v=i.arrow)==null?void 0:v.x)??0)+a/2,h=(((_=i.arrow)==null?void 0:_.y)??0)+l/2;let y="",w="";return c==="bottom"?(y=o?p:`${m}px`,w=`${-l}px`):c==="top"?(y=o?p:`${m}px`,w=`${r.floating.height+l}px`):c==="right"?(y=`${-l}px`,w=o?p:`${h}px`):c==="left"&&(y=`${r.floating.width+l}px`,w=o?p:`${h}px`),{data:{x:y,y:w}}}});function K4(e){const[t,n="center"]=e.split("-");return[t,n]}
vendor: 4,380 bytes, line 121
121var KT=H4,YT=W4,JT=G4,[J0,jU]=Rl("Tooltip",[$4]),ly=$4(),Y4="TooltipProvider",XT=700,Xw="tooltip.open",[ZT,J4]=J0(Y4),X4=e=>{const{__scopeTooltip:t,delayDuration:n=XT,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,o=D.useRef(!0),a=D.useRef(!1),l=D.useRef(0);return D.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),j.jsx(ZT,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:D.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:D.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:D.useCallback(c=>{a.current=c},[]),disableHoverableContent:i,children:s})};X4.displayName=Y4;var Z4="Tooltip",[FU,X0]=J0(Z4),gv="TooltipTrigger",QT=D.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=X0(gv,n),s=J4(gv,n),o=ly(n),a=D.useRef(null),l=hr(t,a,i.onTriggerChange),c=D.useRef(!1),d=D.useRef(!1),p=D.useCallback(()=>c.current=!1,[]);return D.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),j.jsx(KT,{asChild:!0,...o,children:j.jsx(an.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Qt(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:Qt(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:Qt(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Qt(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:Qt(e.onBlur,i.onClose),onClick:Qt(e.onClick,i.onClose)})})});QT.displayName=gv;var eR="TooltipPortal",[DU,tR]=J0(eR,{forceMount:void 0}),cu="TooltipContent",Q4=D.forwardRef((e,t)=>{const n=tR(cu,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=X0(cu,e.__scopeTooltip);return j.jsx(Ol,{present:r||o.open,children:o.disableHoverableContent?j.jsx(ek,{side:i,...s,ref:t}):j.jsx(nR,{side:i,...s,ref:t})})}),nR=D.forwardRef((e,t)=>{const n=X0(cu,e.__scopeTooltip),r=J4(cu,e.__scopeTooltip),i=D.useRef(null),s=hr(t,i),[o,a]=D.useState(null),{trigger:l,onClose:c}=n,d=i.current,{onPointerInTransitChange:p}=r,m=D.useCallback(()=>{a(null),p(!1)},[p]),h=D.useCallback((y,w)=>{const x=y.currentTarget,v={x:y.clientX,y:y.clientY},_=aR(v,x.getBoundingClientRect()),S=lR(v,_),A=cR(w.getBoundingClientRect()),O=dR([...S,...A]);a(O),p(!0)},[p]);return D.useEffect(()=>()=>m(),[m]),D.useEffect(()=>{if(l&&d){const y=x=>h(x,d),w=x=>h(x,l);return l.addEventListener("pointerleave",y),d.addEventListener("pointerleave",w),()=>{l.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",w)}}},[l,d,h,m]),D.useEffect(()=>{if(o){const y=w=>{const x=w.target,v={x:w.clientX,y:w.clientY},_=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),S=!uR(v,o);_?m():S&&(m(),c())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,d,o,c,m]),j.jsx(ek,{...e,ref:s})}),[rR,iR]=J0(Z4,{isInside:!1}),sR=f8("TooltipContent"),ek=D.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=X0(cu,n),c=ly(n),{onClose:d}=l;return D.useEffect(()=>(document.addEventListener(Xw,d),()=>document.removeEventListener(Xw,d)),[d]),D.useEffect(()=>{if(l.trigger){const p=m=>{const h=m.target;h!=null&&h.contains(l.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,d]),j.jsx(H0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:j.jsxs(YT,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[j.jsx(sR,{children:r}),j.jsx(rR,{scope:n,isInside:!0,children:j.jsx(F8,{id:l.contentId,role:"tooltip",children:i||r})})]})})});Q4.displayName=cu;var tk="TooltipArrow",oR=D.forwardRef((e,t)=>
121{const{__scopeTooltip:n,...r}=e,i=ly(n);return iR(tk,n).isInside?null:j.jsx(JT,{...i,...r,ref:t})});oR.displayName=tk;function aR(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function lR(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function cR(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function uR(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s],l=t[o],c=a.x,d=a.y,p=l.x,m=l.y;d>r!=m>r&&n<(p-c)*(r-d)/(m-d)+c&&(i=!i)}return i}function dR(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),hR(t)}function hR(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var fR=X4,nk=Q4;const pR=fR,mR=D.forwardRef(({className:e,sideOffset:t=4,...n},r)=>j.jsx(nk,{ref:r,sideOffset:t,className:pn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));mR.displayName=nk.displayName;var Z0=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Q0=typeof window>"u"||"Deno"in globalThis;function Vi(){}function gR(e,t){return typeof e=="function"?e(t):e}function vR(e){return typeof e=="number"&&e>=0&&e!==1/0}function yR(e,t){return Math.max(e+(t||0)-Date.now(),0)}function vv(e,t){return typeof e=="function"?e(t):e}function wR(e,t){return typeof e=="function"?e(t):e}function Zw(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==cy(o,t.options))return!1}else if(!sh(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function Qw(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ih(t.options.mutationKey)!==ih(s))return!1}else if(!sh(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function cy(e,t){return((t==null?void 0:t.queryKeyHashFn)||ih)(e)}function ih(e){return JSON.stringify(e,(t,n)=>yv(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function sh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>sh(e[n],t[n])):!1}function rk(e,t){if(e===t)return e;const n=eb(e)&&eb(t);if(n||yv(e)&&yv(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{},l=new Set(r);let c=0;for(let d=0;d<o;d++){const p=n?d:s[d];(!n&&l.has(p)||n)&&e[p]===void 0&&t[p]===void 0?(a[p]=void 0,c++):(a[p]=rk(e[p],t[p]),a[p]===e[p]&&e[p]!==void 0&&c++)}return i===o&&c===i?e:a}return t}function eb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function yv(e){if(!tb(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!tb(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function tb(e){return Object.prototype.toString.call(e)==="[object Object]"}function bR(e){return new Promise(t=>{setTimeout(t,e)})}function _R(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?rk(e,t):t}function xR(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function SR(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var uy=Symbol();function ik(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===uy?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var ul,na,Gc,yx,kR=(yx=class extends Z0{constructor(){super();Ft(this,ul);Ft(this,na);Ft(this,Gc);mt(this,Gc,t=>{if(!Q0&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_e(this,na)||this.setEventListener(_e(this,Gc))}onUnsubscribe(){var t;this.hasListeners()||((t=_e(this,na))==null||t.call(this),mt(this,na,void 0))}setEventListener(t){var n;mt(this,Gc,t),(n=_e(this,na))==null||n.call(this),mt(this,na,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){_e(this,ul)!==t&&(mt(this,ul,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,942 bytes, line 121
121this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof _e(this,ul)=="boolean"?_e(this,ul):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ul=new WeakMap,na=new WeakMap,Gc=new WeakMap,yx),sk=new kR,Kc,ra,Yc,wx,AR=(wx=class extends Z0{constructor(){super();Ft(this,Kc,!0);Ft(this,ra);Ft(this,Yc);mt(this,Yc,t=>{if(!Q0&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){_e(this,ra)||this.setEventListener(_e(this,Yc))}onUnsubscribe(){var t;this.hasListeners()||((t=_e(this,ra))==null||t.call(this),mt(this,ra,void 0))}setEventListener(t){var n;mt(this,Yc,t),(n=_e(this,ra))==null||n.call(this),mt(this,ra,t(this.setOnline.bind(this)))}setOnline(t){_e(this,Kc)!==t&&(mt(this,Kc,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return _e(this,Kc)}},Kc=new WeakMap,ra=new WeakMap,Yc=new WeakMap,wx),f0=new AR;function ER(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function NR(e){return Math.min(1e3*2**e,3e4)}function ok(e){return(e??"online")==="online"?f0.isOnline():!0}var ak=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ng(e){return e instanceof ak}function lk(e){let t=!1,n=0,r=!1,i;const s=ER(),o=w=>{var x;r||(m(new ak(w)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>sk.isFocused()&&(e.networkMode==="always"||f0.isOnline())&&e.canRun(),d=()=>ok(e.networkMode)&&e.canRun(),p=w=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,w),i==null||i(),s.resolve(w))},m=w=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,w),i==null||i(),s.reject(w))},h=()=>new Promise(w=>{var x;i=v=>{(r||c())&&w(v)},(x=e.onPause)==null||x.call(e)}).then(()=>{var w;i=void 0,r||(w=e.onContinue)==null||w.call(e)}),y=()=>{if(r)return;let w;const x=n===0?e.initialPromise:void 0;try{w=x??e.fn()}catch(v){w=Promise.reject(v)}Promise.resolve(w).then(p).catch(v=>{var $;if(r)return;const _=e.retry??(Q0?0:3),S=e.retryDelay??NR,A=typeof S=="function"?S(n,v):S,O=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,v);if(t||!O){m(v);return}n++,($=e.onFail)==null||$.call(e,n,v),bR(A).then(()=>c()?void 0:h()).then(()=>{t?m(v):y()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?y():h().then(y),s)}}var CR=e=>setTimeout(e,0);function LR(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=CR;const s=a=>{t?e.push(a):i(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var Tr=LR(),dl,bx,ck=(bx=class{constructor(){Ft(this,dl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),vR(this.gcTime)&&mt(this,dl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Q0?1/0:5*60*1e3))}clearGcTimeout(){_e(this,dl)&&(clearTimeout(_e(this,dl)),mt(this,dl,void 0))}},dl=new WeakMap,bx),Jc,hl,Si,fl,_r,_h,pl,Ki,oo,_x,PR=(_x=class extends ck{constructor(t){super();Ft(this,Ki);Ft(this,Jc);Ft(this,hl);Ft(this,Si);Ft(this,fl);Ft(this,_r);Ft(this,_h);Ft(this,pl);mt(this,pl,!1),mt(this,_h,t.defaultOptions),this.setOptions(t.options),this.observers=[],mt(this,fl,t.client),mt(this,Si,_e(this,fl).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,mt(this,Jc,RR(this.options)),this.state=t.state??_e(this,Jc),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=_e(this,_r))==null?void 0:t.promise}setOptions(t){this.options={..._e(this,_h),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_e(this,Si).remove(this)}setData(t,n){const r=_R(this.state.data,t,this.options);return pr(this,Ki,oo).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){pr(this,Ki,oo).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=_e(this,_r))==null?void 0:r.promise;return(i=_e(this,_r))==null||i.cancel(t),n?n.then(Vi).catch(Vi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_e(this,Jc))}isActive(){return this.observers.some(t=>wR(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===uy||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,282 bytes, line 121
121Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>vv(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!yR(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=_e(this,_r))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=_e(this,_r))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),_e(this,Si).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(_e(this,_r)&&(_e(this,pl)?_e(this,_r).cancel({revert:!0}):_e(this,_r).cancelRetry()),this.scheduleGc()),_e(this,Si).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pr(this,Ki,oo).call(this,{type:"invalidate"})}
vendor: 13,804 bytes, line 121
121fetch(t,n){var c,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_e(this,_r))return _e(this,_r).continueRetry(),_e(this,_r).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(h=>h.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,i=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(mt(this,pl,!0),r.signal)})},s=()=>{const m=ik(this.options,n),y=(()=>{const w={client:_e(this,fl),queryKey:this.queryKey,meta:this.meta};return i(w),w})();return mt(this,pl,!1),this.options.persister?this.options.persister(m,y,this):m(y)},a=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:_e(this,fl),state:this.state,fetchFn:s};return i(m),m})();(c=this.options.behavior)==null||c.onFetch(a,this),mt(this,hl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&pr(this,Ki,oo).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const l=m=>{var h,y,w,x;Ng(m)&&m.silent||pr(this,Ki,oo).call(this,{type:"error",error:m}),Ng(m)||((y=(h=_e(this,Si).config).onError)==null||y.call(h,m,this),(x=(w=_e(this,Si).config).onSettled)==null||x.call(w,this.state.data,m,this)),this.scheduleGc()};return mt(this,_r,lk({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var h,y,w,x;if(m===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(v){l(v);return}(y=(h=_e(this,Si).config).onSuccess)==null||y.call(h,m,this),(x=(w=_e(this,Si).config).onSettled)==null||x.call(w,m,this.state.error,this),this.scheduleGc()},onError:l,onFail:(m,h)=>{pr(this,Ki,oo).call(this,{type:"failed",failureCount:m,error:h})},onPause:()=>{pr(this,Ki,oo).call(this,{type:"pause"})},onContinue:()=>{pr(this,Ki,oo).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),_e(this,_r).start()}},Jc=new WeakMap,hl=new WeakMap,Si=new WeakMap,fl=new WeakMap,_r=new WeakMap,_h=new WeakMap,pl=new WeakMap,Ki=new WeakSet,oo=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...TR(r.data,this.options),fetchMeta:t.meta??null};case"success":return mt(this,hl,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Ng(i)&&i.revert&&_e(this,hl)?{..._e(this,hl),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tr.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),_e(this,Si).notify({query:this,type:"updated",action:t})})},_x);function TR(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ok(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function RR(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var xs,xx,OR=(xx=class extends Z0{constructor(t={}){super();Ft(this,xs);this.config=t,mt(this,xs,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??cy(i,n);let o=this.get(s);return o||(o=new PR({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){_e(this,xs).has(t.queryHash)||(_e(this,xs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=_e(this,xs).get(t.queryHash);n&&(t.destroy(),n===t&&_e(this,xs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Tr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _e(this,xs).get(t)}getAll(){return[..._e(this,xs).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Zw(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Zw(t,r)):n}notify(t){Tr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Tr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Tr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},xs=new WeakMap,xx),Ss,Lr,ml,ks,Go,Sx,IR=(Sx=class extends ck{constructor(t){super();Ft(this,ks);Ft(this,Ss);Ft(this,Lr);Ft(this,ml);this.mutationId=t.mutationId,mt(this,Lr,t.mutationCache),mt(this,Ss,[]),this.state=t.state||jR(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){_e(this,Ss).includes(t)||(_e(this,Ss).push(t),this.clearGcTimeout(),_e(this,Lr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){mt(this,Ss,_e(this,Ss).filter(n=>n!==t)),this.scheduleGc(),_e(this,Lr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_e(this,Ss).length||(this.state.status==="pending"?this.scheduleGc():_e(this,Lr).remove(this))}continue(){var t;return((t=_e(this,ml))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,a,l,c,d,p,m,h,y,w,x,v,_,S,A,O,$,H,B;const n=()=>{pr(this,ks,Go).call(this,{type:"continue"})};mt(this,ml,lk({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,X)=>{pr(this,ks,Go).call(this,{type:"failed",failureCount:R,error:X})},onPause:()=>{pr(this,ks,Go).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_e(this,Lr).canRun(this)}));const r=this.state.status==="pending",i=!_e(this,ml).canStart();try{if(r)n();else{pr(this,ks,Go).call(this,{type:"pending",variables:t,isPaused:i}),await((o=(s=_e(this,Lr).config).onMutate)==null?void 0:o.call(s,t,this));const X=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));X!==this.state.context&&pr(this,ks,Go).call(this,{type:"pending",context:X,variables:t,isPaused:i})}const R=await _e(this,ml).start();return await((d=(c=_e(this,Lr).config).onSuccess)==null?void 0:d.call(c,R,t,this.state.context,this)),await((m=(p=this.options).onSuccess)==null?void 0:m.call(p,R,t,this.state.context)),await((y=(h=_e(this,Lr).config).onSettled)==null?void 0:y.call(h,R,null,this.state.variables,this.state.context,this)),await((x=(w=this.options).onSettled)==null?void 0:x.call(w,R,null,t,this.state.context)),pr(this,ks,Go).call(this,{type:"success",data:R}),R}catch(R){try{throw await((_=(v=_e(this,Lr).config).onError)==null?void 0:_.call(v,R,t,this.state.context,this)),await((A=(S=this.options).onError)==null?void 0:A.call(S,R,t,this.state.context)),await(($=(O=_e(this,Lr).config).onSettled)==null?void 0:$.call(O,void 0,R,this.state.variables,this.state.context,this)),await((B=(H=this.options).onSettled)==null?void 0:B.call(H,void 0,R,t,this.state.context)),R}finally{pr(this,ks,Go).call(this,{type:"error",error:R})}}finally{_e(this,Lr).runNext(this)}}},Ss=new WeakMap,Lr=new WeakMap,ml=new WeakMap,ks=new WeakSet,Go=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Tr.batch(()=>{_e(this,Ss).forEach(r=>{r.onMutationUpdate(t)}),_e(this,Lr).notify({mutation:this,type:"updated",action:t})})},Sx);function jR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var po,Yi,xh,kx,FR=(kx=class extends Z0{constructor(t={}){super();Ft(this,po);Ft(this,Yi);Ft(this,xh);this.config=t,mt(this,po,new Set),mt(this,Yi,new Map),mt(this,xh,0)}build(t,n,r){const i=new IR({mutationCache:this,mutationId:++bf(this,xh)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){_e(this,po).add(t);const n=qf(t);if(typeof n=="string"){const r=_e(this,Yi).get(n);r?r.push(t):_e(this,Yi).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(_e(this,po).delete(t)){const n=qf(t);if(typeof n=="string"){const r=_e(this,Yi).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&_e(this,Yi).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=qf(t);if(typeof n=="string"){const r=_e(this,Yi).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=qf(t);if(typeof n=="string"){const i=(r=_e(this,Yi).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Tr.batch(()=>{_e(this,po).forEach(t=>{this.notify({type:"removed",mutation:t})}),_e(this,po).clear(),_e(this,Yi).clear()})}getAll(){return Array.from(_e(this,po))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Qw(n,r))}findAll(t={}){return this.getAll().filter(n=>Qw(t,n))}notify(t){Tr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Tr.batch(()=>Promise.all(t.map(n=>n.continue().catch(Vi))))}},po=new WeakMap,Yi=new WeakMap,xh=new WeakMap,kx);function qf(e){var t;return(t=e.options.scope)==null?void 0:t.id}function nb(e){return{onFetch:(t,n)=>{var d,p,m,h,y;const r=t.options,i=(m=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:m.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let w=!1;const x=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},v=ik(t.options,t.fetchOptions),_=async(S,A,O)=>{if(w)return Promise.reject();if(A==null&&S.pages.length)return Promise.resolve(S);const H=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:A,direction:O?"backward":"forward",meta:t.options.meta};return x(L),L})(),B=await v(H),{maxPages:R}=t.options,X=O?SR:xR;return{pages:X(S.pages,B,R),pageParams:X(S.pageParams,A,R)}};if(i&&s.length){const S=i==="backward",A=S?DR:rb,O={pages:s,pageParams:o},$=A(r,O);a=await _(O,$,S)}else{const S=e??s.length;do{const A=l===0?o[0]??r.initialPageParam:rb(r,a);if(l>0&&A==null)break;a=await _(a,A),l++}while(l<S)}return a};t.options.persister?t.fetchFn=()=>{var w,x;return(x=(w=t.options).persister)==null?void 0:x.call(w,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function rb(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function DR(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var _n,ia,sa,Xc,Zc,oa,Qc,eu,Ax,MR=(Ax=class{constructor(e={}){Ft(this,_n);Ft(this,ia);Ft(this,sa);Ft(this,Xc);Ft(this,Zc);Ft(this,oa);Ft(this,Qc);Ft(this,eu);mt(this,_n,e.queryCache||new OR),mt(this,ia,e.mutationCache||new FR),mt(this,sa,e.defaultOptions||{}),mt(this,Xc,new Map),mt(this,Zc,new Map),mt(this,oa,0)}mount(){bf(this,oa)._++,_e(this,oa)===1&&(mt(this,Qc,sk.subscribe(async e=>{e&&(await this.resumePausedMutations(),_e(this,_n).onFocus())})),mt(this,eu,f0.subscribe(async e=>{e&&(await this.resumePausedMutations(),_e(this,_n).onOnline())})))}unmount(){var e,t;bf(this,oa)._--,_e(this,oa)===0&&((e=_e(this,Qc))==null||e.call(this),mt(this,Qc,void 0),(t=_e(this,eu))==null||t.call(this),mt(this,eu,void 0))}isFetching(e){return _e(this,_n).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _e(this,ia).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_e(this,_n).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=_e(this,_n).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(vv(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return _e(this,_n).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=_e(this,_n).get(r.queryHash),s=i==null?void 0:i.state.data,o=gR(t,s);if(o!==void 0)return _e(this,_n).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Tr.batch(()=>_e(this,_n).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_e(this,_n).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=_e(this,_n);Tr.batch(()=>
121{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=_e(this,_n);return Tr.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Tr.batch(()=>_e(this,_n).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Vi).catch(Vi)}invalidateQueries(e,t={}){return Tr.batch(()=>(_e(this,_n).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Tr.batch(()=>_e(this,_n).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Vi)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Vi)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=_e(this,_n).build(this,t);return n.isStaleByTime(vv(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Vi).catch(Vi)}fetchInfiniteQuery(e){return e.behavior=nb(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Vi).catch(Vi)}ensureInfiniteQueryData(e){return e.behavior=nb(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return f0.isOnline()?_e(this,ia).resumePausedMutations():Promise.resolve()}getQueryCache(){return _e(this,_n)}getMutationCache(){return _e(this,ia)}getDefaultOptions(){return _e(this,sa)}setDefaultOptions(e){mt(this,sa,e)}setQueryDefaults(e,t){_e(this,Xc).set(ih(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._e(this,Xc).values()],n={};return t.forEach(r=>{sh(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){_e(this,Zc).set(ih(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._e(this,Zc).values()],n={};return t.forEach(r=>{sh(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={..._e(this,sa).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=cy(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===uy&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._e(this,sa).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_e(this,_n).clear(),_e(this,ia).clear()}},_n=new WeakMap,ia=new WeakMap,sa=new WeakMap,Xc=new WeakMap,Zc=new WeakMap,oa=new WeakMap,Qc=new WeakMap,eu=new WeakMap,Ax),BR=D.createContext(void 0),UR=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),j.jsx(BR.Provider,{value:e,children:t}));/** 122 * @remix-run/router v1.23.0 123 * 124 * Copyright (c) Remix Software Inc. 125 * 126 * This source code is licensed under the MIT license found in the 127 * LICENSE.md file in the root directory of this source tree. 128 * 129 * @license MIT 130 */function p0(){return p0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p0.apply(this,arguments)}var ca;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ca||(ca={}));const ib="popstate";function $R(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:a}=r.location;return wv("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:dk(i)}return qR(t,n,null,e)}function Vr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function uk(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zR(){return Math.random().toString(36).substr(2,8)}function sb(e,t){return{usr:e.state,key:e.key,idx:t}}function wv(e,t,n,r){return n===void 0&&(n=null),p0({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?em(t):t,{state:n,key:t&&t.key||r||zR()})}function dk(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function em(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function qR(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=ca.Pop,l=null,c=d();c==null&&(c=0,o.replaceState(p0({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function p(){a=ca.Pop;let x=d(),v=x==null?null:x-c;c=x,l&&l({action:a,location:w.location,delta:v})}function m(x,v){a=ca.Push;let _=wv(w.location,x,v);c=d()+1;let S=sb(_,c),A=w.createHref(_);try{o.pushState(S,"",A)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;i.location.assign(A)}s&&l&&l({action:a,location:w.location,delta:1})}function h(x,v){a=ca.Replace;let _=wv(w.location,x,v);c=d();let S=sb(_,c),A=w.createHref(_);o.replaceState(S,"",A),s&&l&&l({action:a,location:w.location,delta:0})}function y(x){let v=i.location.origin!=="null"?i.location.origin:i.location.href,_=typeof x=="str
130ing"?x:dk(x);return _=_.replace(/ $/,"%20"),Vr(v,"No window.location.(origin|href) available to create URL for href: "+_),new URL(_,v)}let w={get action(){return a},get location(){return e(i,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(ib,p),l=x,()=>{i.removeEventListener(ib,p),l=null}},createHref(x){return t(i,x)},createURL:y,encodeLocation(x){let v=y(x);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:h,go(x){return o.go(x)}};return w}var ob;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ob||(ob={}));function HR(e,t,n){return n===void 0&&(n="/"),WR(e,t,n,!1)}function WR(e,t,n,r){let i=typeof t=="string"?em(t):t,s=pk(i.pathname||"/",n);if(s==null)return null;let o=hk(e);VR(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=rO(s);a=tO(o[l],c,r)}return a}function hk(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Vr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Mc([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(Vr(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),hk(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:QR(c,s.index),routesMeta:d})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of fk(s.path))i(s,o,l)}),t}function fk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=fk(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function VR(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:eO(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const GR=/^:[\w-]+$/,KR=3,YR=2,JR=1,XR=10,ZR=-2,ab=e=>e==="*";function QR(e,t){let n=e.split("/"),r=n.length;return n.some(ab)&&(r+=ZR),t&&(r+=YR),n.filter(i=>!ab(i)).reduce((i,s)=>i+(GR.test(s)?KR:s===""?JR:XR),r)}function eO(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function tO(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",p=lb({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),m=l.route;if(!p&&c&&n&&!r[r.length-1].route.index&&(p=lb({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!p)return null;
vendor: 4,131 bytes, lines 130-139
130Object.assign(i,p.params),o.push({params:i,pathname:Mc([s,p.pathname]),pathnameBase:iO(Mc([s,p.pathnameBase])),route:m}),p.pathnameBase!=="/"&&(s=Mc([s,p.pathnameBase]))}return o}function lb(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=nO(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,d,p)=>{let{paramName:m,isOptional:h}=d;if(m==="*"){let w=a[p]||"";o=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const y=a[p];return h&&!y?c[m]=void 0:c[m]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:e}}function nO(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),uk(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function rO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return uk(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function pk(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Mc=e=>e.join("/").replace(/\/\/+/g,"/"),iO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function sO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const mk=["post","put","patch","delete"];new Set(mk);const oO=["get",...mk];new Set(oO);/** 131 * React Router v6.30.1 132 * 133 * Copyright (c) Remix Software Inc. 134 * 135 * This source code is licensed under the MIT license found in the 136 * LICENSE.md file in the root directory of this source tree. 137 * 138 * @license MIT 139 */function m0(){return m0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m0.apply(this,arguments)}const aO=D.createContext(null),lO=D.createContext(null),gk=D.createContext(null),tm=D.createContext(null),nm=D.createContext({outlet:null,matches:[],isDataRoute:!1}),vk=D.createContext(null);function dy(){return D.useContext(tm)!=null}function yk(){return dy()||Vr(!1),D.useContext(tm).location}function cO(e,t){return uO(e,t)}function uO(e,t,n,r){dy()||Vr(!1);let{navigator:i}=D.useContext(gk),{matches:s}=D.useContext(nm),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=yk(),d;if(t){var p;let x=typeof t=="string"?em(t):t;l==="/"||(p=x.pathname)!=null&&p.startsWith(l)||Vr(!1),d=x}else d=c;let m=d.pathname||"/",h=m;if(l!=="/"){let x=l.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(x.length).join("/")}let y=HR(e,{pathname:h}),w=mO(y&&y.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Mc([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Mc([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&w?D.createElement(tm.Provider,{value:{location:m0({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ca.Pop}},w):w}function dO(){let e=wO(),t=sO(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application
139Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:i},n):null,null)}const hO=D.createElement(dO,null);class fO extends D.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?D.createElement(nm.Provider,{value:this.props.routeContext},D.createElement(vk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function pO(e){let{routeContext:t,match:n,children:r}=e,i=D.useContext(aO);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(nm.Provider,{value:t},r)}function mO(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=o.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);d>=0||Vr(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let p=o[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(c=d),p.route.id){let{loaderData:m,errors:h}=n,y=p.route.loader&&m[p.route.id]===void 0&&(!h||h[p.route.id]===void 0);if(p.route.lazy||y){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,p,m)=>{let h,y=!1,w=null,x=null;n&&(h=a&&p.route.id?a[p.route.id]:void 0,w=p.route.errorElement||hO,l&&(c<0&&m===0?(y=!0,x=null):c===m&&(y=!0,x=p.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,m+1)),_=()=>{let S;return h?S=w:y?S=x:p.route.Component?S=D.createElement(p.route.Component,null):p.route.element?S=p.route.element:S=d,D.createElement(pO,{match:p,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:S})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?D.createElement(fO,{location:n.location,revalidation:n.revalidation,component:w,error:h,children:_(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):_()},null)}var bv=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(bv||{});function gO(e){let t=D.useContext(lO);return t||Vr(!1),t}function vO(e){let t=D.useContext(nm);return t||Vr(!1),t}function yO(e){let t=vO(),n=t.matches[t.matches.length-1];return n.route.id||Vr(!1),n.route.id}function wO(){var e;let t=D.useContext(vk),n=gO(bv.UseRouteError),r=yO(bv.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function bO(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function _v(e){Vr(!1)}function _O(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ca.Pop,navigator:s,static:o=!1,future:a}=e;dy()&&Vr(!1);let l=t.replace(/^\/*/,"/"),c=D.useMemo(()=>({basename:l,navigator:s,static:o,future:m0({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=em(r));let{pathname:d="/",search:p="",hash:m="",state:h=null,key:y="default"}=r,w=D.useMemo(()=>{let x=pk(d,l);return x==null?null:{location:{pathname:x,search:p,hash:m,state:h,key:y},navigationType:i}},[l,d,p,m,h,y,i]);return w==null?null:D.createElement(gk.Provider,{value:c},D.createElement(tm.Provider,{children:n,value:w}))}function xO(e){let{children:t,location:n}=e;return cO(xv(t),n)}new Promise(()=>{});function xv(e,t){t===void 0&&(t=[]);let n=[];
139return D.Children.forEach(e,(r,i)=>{if(!D.isValidElement(r))return;let s=[...t,i];if(r.type===D.Fragment){n.push.apply(n,xv(r.props.children,s));return}r.type!==_v&&Vr(!1),!r.props.index||!r.props.children||Vr(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=xv(r.props.children,s)),n.push(o)}),n}/** 140 * React Router DOM v6.30.1 141 * 142 * Copyright (c) Remix Software Inc. 143 * 144 * This source code is licensed under the MIT license found in the 145 * LICENSE.md file in the root directory of this source tree. 146 * 147 * @license MIT 148 */const SO="6";try{window.__reactRouterVersion=SO}catch{}const kO="startTransition",cb=i2[kO];function AO(e){let{basename:t,children:n,future:r,window:i}=e,s=D.useRef();s.current==null&&(s.current=$R({window:i,v5Compat:!0}));let o=s.current,[a,l]=D.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=D.useCallback(p=>{c&&cb?cb(()=>l(p)):l(p)},[l,c]);return D.useLayoutEffect(()=>o.listen(d),[o,d]),D.useEffect(()=>bO(r),[r]),D.createElement(_O,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}var ub;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ub||(ub={}));var db;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(db||(db={}));const hb=[{id:"micro-entreprise",name:"Micro-entreprise",fullName:"Micro-entrepreneur",description:"Régime simplifié pour débuter une activité avec peu de formalités",minCapital:0,recommended:["Freelances","Activités complémentaires","Test d'activité"]},{id:"ei",name:"EI",fullName:"Entreprise Individuelle",description:"Entreprise en nom propre sans création de personne morale",minCapital:0,recommended:["Artisans","Commerçants","Professions libérales"]},{id:"eurl",name:"EURL",fullName:"Entreprise Unipersonnelle à Responsabilité Limitée",description:"Société à associé unique avec responsabilité limitée aux apports",minCapital:1,recommended:["Entrepreneurs solo","Patrimoine à protéger"]},{id:"sarl",name:"SARL",fullName:"Société à Responsabilité Limitée",description:"Société adaptée aux projets familiaux ou entre associés",minCapital:1,recommended:["PME familiales","Projets à plusieurs","Commerces"]},{id:"sasu",name:"SASU",fullName:"Société par Actions Simplifiée Unipersonnelle",description:"Société souple avec un seul associé, idéale pour évoluer",minCapital:1,recommended:["Start-ups","Consultants","Futures levées de fonds"]},{id:"sas",name:"SAS",fullName:"Société par Actions Simplifiée",description:"Grande liberté statutaire, idéale pour les projets ambitieux",minCapital:1,recommended:["Start-ups","Investisseurs","Projets d'envergure"]},{id:"sci",name:"SCI",fullName:"Société Civile Immobilière",description:"Société civile dédiée à la gestion et la détention de biens immobiliers",minCapital:1,recommended:["Gestion de patrimoine","Investissement locatif"]},{id:"snc",name:"SNC",fullName:"Société en Nom Collectif",description:"Société de personnes où les associés sont solidairement responsables",minCapital:1,recommended:["Professions libérales","Entreprises familiales"]}],EO=24.08,NO=45,Hf=199,Wf=63;function CO(e,t,n=!1){const r=[];switch(e){case"micro-entreprise":r.push({label:"Immatriculation au Guichet Unique",amount:0,source:"inpi",description:"Déclaration d'activité gratuite via le Guichet Unique, géré par l'Institut National de la Propriété Industrielle. Obligatoire quelle que soit l'activité.",category:"obligatoire"}),r.push({label:"Création en ligne avec Captain Contrat",amount:59,source:"annonce-legale",description:"Dossier complet vérifié par un juriste, obtention du SIREN et accompagnement administratif. à partir de 59 ⬠HT.",category:"recommande"});break;case"ei":t==="commercial"?r.push({label:"Immatriculation au Registre du Commerce et des Sociétés",amount:EO,source:"infogreffe",description:"Inscription officielle de votre entreprise via le Guichet Unique. Obligatoire pour exercer une activité commerciale.",category:"obligatoire"}):t==="artisanal"?r.push({label:"Immatriculation au Répertoire des Métiers",amount:NO,source:"infogreffe",description:"Inscription auprès de la Chambre de Métiers et de l'Artisanat, obligatoire pour les activités artisanales.",category:"obligatoire"}):r.push({label:"Déclaration d'activité libérale",amount:0,source:"inpi",description:"Formalité gratuite via le Guichet Unique pour les professions libérales non réglementées.",category:"obligatoire"}),r.push({label:"Création en ligne avec Captain Contrat",amount:59,source:"annonce-legale",description:"Dossier complet vérifié par un juriste, obtention du SIREN et accompagnement administratif. à partir de 59 ⬠HT.",category:"recommande"});break;case"eurl":case"sarl":r.push({label:"Formalités d'immatriculation et déclaration des bénéficiaires effectifs",amount:Wf,source:"infogreffe",description:"Inscription officielle de votre société via le Guichet Unique et déclaration obligatoire des personnes qui contrôlent la société.",category:"obligatoire"}),r.push({label:"Annonce légale de constitution",amount:Hf,source:"annonce-legale",description:"Publication obligatoire dans un Journal d'Annonces Légales. Informe les tiers de la création de votre société. Le tarif peut varier selon le département.",category:"obligatoire"});break;case"sasu":case"sas":r.push({label:"Formalités d'immatriculation et déclaration des bénéficiaires effectifs",amount:Wf,source:"infogreffe",description:"Inscription officielle de votre société via le Guichet Unique et déclaration obligatoire des personnes qui contrôlent la société.",category:"obligatoire"}),r.push({label:"Annonce légale de constitution",amount:Hf,source:"annonce-legale",description:"Publication obligatoire dans un Journal d'Annonces Légales. Informe les tiers de la création de votre société. Le tarif peut varier selon le département.",category:"obligatoire"});break;case"sci":r.push({label:"Formalités d'immatriculation et déclaration des bénéficiaires effectifs",amount:Wf,source:"infogreffe",description:"Inscription de votre société civile via le Guichet Unique et déclaration obligatoire des personnes qui contrôlent la société.",category:"obligatoire"}),r.push({label:"Annonce légale de constitution",amount:Hf,source:"annonce-legale",description:"Publication obligatoire dans un Journal d'Annonces Légales. Le tarif peut varier selon le département.",category:"obligatoire"});break;case"snc":r.push({label:"Formalités d'immatriculation et déclaration des bénéficiaires effectifs",amount:Wf,source:"infogreffe",description:"Inscription officielle de votre société via le Guichet Unique et déclaration obligatoire des personnes qui contrôlent la société.",category:"obligatoire"}),r.push({label:"Annonce légale de constitution",amount:Hf,source:"annonce-legale",description:"Publication obligatoire dans un Journal d'Annonces Légales.",category:"obligatoire"});break}
148return["eurl","sarl","sasu","sas","sci","snc"].includes(e)&&(r.push({label:"Ouverture d'un compte bancaire professionnel",amount:230,source:"annonce-legale",description:"Compte dédié obligatoire pour déposer le capital social et gérer les finances de la société. à partir de 19 â¬/mois selon l'établissement bancaire.",category:"optionnel"}),r.push({label:"Dépôt du capital social",amount:1,source:"annonce-legale",description:"Somme versée par les associés sur le compte bancaire de la société lors de sa création. Minimum légal de 1 â¬, mais un capital de 1 000 ⬠à 10 000 ⬠est recommandé pour renforcer la crédibilité de la société auprès des partenaires (banques, fournisseurs, clients).",category:"obligatoire"}),r.push({label:"Rédaction des statuts par un avocat",amount:2500,source:"annonce-legale",description:"Rédaction sur mesure des statuts de votre société par un avocat en droit des affaires. Honoraires moyens constatés.",category:"recommande"}),r.push({label:"Création en ligne avec Captain Contrat",amount:0,source:"annonce-legale",description:"Statuts rédigés par un avocat partenaire et formalités administratives prises en charge par Captain Contrat. Offert avec un abonnement comptabilité.",category:"recommande",badge:"recommandé"})),r.push({label:"Assurance Responsabilité Civile Professionnelle (1ère année)",amount:300,source:"annonce-legale",description:"Contrat d'assurance couvrant les dommages causés à des tiers dans le cadre de votre activité. Souscrite auprès d'un assureur agréé. Souvent obligatoire selon l'activité : entre 100 ⬠et 400 â¬/an.",category:"optionnel"}
148),["eurl","sarl","sasu","sas","sci","snc"].includes(e)&&r.push({label:"Domiciliation d'entreprise",amount:240,source:"annonce-legale",description:"Adresse administrative officielle de votre société, fournie par une société de domiciliation. Environ 240 â¬/an. Gratuit si domiciliation au domicile personnel.",category:"optionnel"}),r.push({label:"Dépôt de marque auprès de l'Institut National de la Propriété Industrielle",amount:190,source:"inpi",description:"Protection officielle de votre nom de marque pour 10 ans en France (1 classe de produits/services). 40 ⬠par classe supplémentaire.",category:"optionnel"}),r.push({label:"Création de site internet",amount:600,source:"annonce-legale",description:"Conception d'un site vitrine ou e-commerce. à partir de 500 ⬠selon la complexité du projet.",category:"optionnel"}),n&&r.push({label:"Dépôt du bail commercial",amount:7.63,source:"infogreffe",description:"Enregistrement de votre bail commercial via le Guichet Unique, concomitant à l'immatriculation.",category:"optionnel"}),r}function Td(e,t){return e.filter(n=>!t).reduce((n,r)=>n+r.amount,0)}const fb={infogreffe:"https://www.infogreffe.fr/tarifs-formalites",inpi:"https://www.inpi.fr/tarifs-des-formalites-d-entreprises","annonce-legale":"https://entreprendre.service-public.gouv.fr/actualites/A18724"},LO="/assets/celestin-boudeau-DY5pppd3.png",PO={"micro-entreprise":"ð§âð»",ei:"ð¼",eurl:"ð¢",sarl:"ð¥",sasu:"ð",sas:"ðï¸",sci:"ð ",snc:"ð¤"};function TO({businessTypes:e,selectedType:t,onSelect:n}){return j.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:e.map(r=>j.jsx("button",{onClick:()=>n(r.id),className:pn("sim-card text-left flex items-center",t===r.i
vendor: 4,468 bytes, line 148
148d&&"selected"),children:j.jsxs("div",{className:"flex items-center gap-3 w-full justify-center sm:justify-start",children:[j.jsx("span",{className:"text-base flex-shrink-0 w-4 h-4 flex items-center justify-center",children:PO[r.id]}),j.jsxs("div",{children:[j.jsx("span",{className:"text-sm font-semibold",style:{color:"#232B2B"},children:r.name}),j.jsx("span",{className:"text-xs block",style:{color:"#737482"},children:r.fullName})]})]})},r.id))})}const RO=[{id:"commercial",name:"Commerciale",emoji:"ðï¸"},{id:"artisanal",name:"Artisanale",emoji:"ð§"},{id:"liberal",name:"Libérale",emoji:"ð"}];function OO({selectedType:e,onSelect:t}){return j.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:RO.map(n=>j.jsxs("button",{onClick:()=>t(n.id),className:pn("sim-card flex flex-col items-center justify-center text-center",e===n.id&&"selected"),children:[j.jsx("span",{className:"text-4xl mb-2 block w-16 h-16 flex items-center justify-center",children:n.emoji}),j.jsx("span",{className:"text-sm font-semibold",style:{color:"#232B2B"},children:n.name})]},n.id))})}var rm="Collapsible",[IO,wk]=Rl(rm),[jO,hy]=IO(rm),bk=D.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:s,onOpenChange:o,...a}=e,[l,c]=Lh({prop:r,defaultProp:i??!1,onChange:o,caller:rm});return j.jsx(jO,{scope:n,disabled:s,contentId:Pd(),open:l,onOpenToggle:D.useCallback(()=>c(d=>!d),[c]),children:j.jsx(an.div,{"data-state":py(l),"data-disabled":s?"":void 0,...a,ref:t})})});bk.displayName=rm;var _k="CollapsibleTrigger",xk=D.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=hy(_k,n);return j.jsx(an.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":py(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:Qt(e.onClick,i.onOpenToggle)})});xk.displayName=_k;var fy="CollapsibleContent",Sk=D.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=hy(fy,e.__scopeCollapsible);return j.jsx(Ol,{present:n||i.open,children:({present:s})=>j.jsx(FO,{...r,ref:t,present:s})})});Sk.displayName=fy;var FO=D.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...s}=e,o=hy(fy,n),[a,l]=D.useState(r),c=D.useRef(null),d=hr(t,c),p=D.useRef(0),m=p.current,h=D.useRef(0),y=h.current,w=o.open||a,x=D.useRef(w),v=D.useRef(void 0);return D.useEffect(()=>{const _=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(_)},[]),Ds(()=>{const _=c.current;if(_){v.current=v.current||{transitionDuration:_.style.transitionDuration,animationName:_.style.animationName},_.style.transitionDuration="0s",_.style.animationName="none";const S=_.getBoundingClientRect();p.current=S.height,h.current=S.width,x.current||(_.style.transitionDuration=v.current.transitionDuration,_.style.animationName=v.current.animationName),l(r)}},[o.open,r]),j.jsx(an.div,{"data-state":py(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!w,...s,ref:d,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:w&&i})});function py(e){return e?"open":"closed"}var DO=bk,MO=xk,BO=Sk,UO=D.createContext(void 0);function $O(e){const t=D.useContext(UO);return e||t||"ltr"}var is="Accordion",zO=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[my,qO,HO]=qS(is),[im,MU]=Rl(is,[HO,wk]),gy=wk(),kk=Ne.forwardRef((e,t)=>{const{type:n,...r}=e,i=r,s=r;return j.jsx(my.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?j.jsx(KO,{...s,ref:t}):j.jsx(GO,{...i,ref:t})})});kk.displayName=is;var[Ak,WO]=im(is),[Ek,VO]=im(is,{collapsible:!1}),GO=Ne.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:s=!1,...o}=e,[a,l]=Lh({prop:n,defaultProp:r??"",onChange:i,caller:is});return j.jsx(Ak,{scope:e.__scopeAccordion,value:Ne.useMemo(()=>a?[a]:[],[a]),onItemOpen:l,onItemClose:Ne.useCallback(()=>s&&l(""),[s,l]),children:j.jsx(Ek,{scope:e.__scopeAccordion,collapsible:s,children:j.jsx(Nk,{...o,ref:t})})})}),KO=Ne.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[o,a]=Lh({prop:n,defaultProp:r??[],onChange:i,caller:is}),l=Ne.useCallback(d=>a((p=[])=>[...p,d]),[a]),c=Ne.useCallback(d=>a((p=[])=>p.filter(m=>m!==d)),[a]);return j.jsx(Ak,{scope:e.__scopeAccordion,value:o,onItemOpen:l,onItemClose:c,children:j.jsx(Ek,{scope:e.__scopeAccordion,collapsible:!0,children:j.jsx(Nk,{...s,ref:t})})})}),[YO,sm]=im(is),Nk=Ne.forwardRef((e,t)=>
148{const{__scopeAccordion:n,disabled:r,dir:i,orientation:s="vertical",...o}=e,a=Ne.useRef(null),l=hr(a,t),c=qO(n),p=$O(i)==="ltr",m=Qt(e.onKeyDown,h=>{var B;if(!zO.includes(h.key))return;const y=h.target,w=c().filter(R=>{var X;return!((X=R.ref.current)!=null&&X.disabled)}),x=w.findIndex(R=>R.ref.current===y),v=w.length;if(x===-1)return;h.preventDefault();let _=x;const S=0,A=v-1,O=()=>{_=x+1,_>A&&(_=S)},$=()=>{_=x-1,_<S&&(_=A)};switch(h.key){case"Home":_=S;break;case"End":_=A;break;case"ArrowRight":s==="horizontal"&&(p?O():$());break;case"ArrowDown":s==="vertical"&&O();break;case"ArrowLeft":s==="horizontal"&&(p?$():O());break;case"ArrowUp":s==="vertical"&&$();break}const H=_%v;(B=w[H].ref.current)==null||B.focus()});return j.jsx(YO,{scope:n,disabled:r,direction:i,orientation:s,children:j.jsx(my.Slot,{scope:n,children:j.jsx(an.div,{...o,"data-orientation":s,ref:l,onKeyDown:r?void 0:m})})})}),g0="AccordionItem",[JO,vy]=im(g0),Ck=Ne.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...i}=e,s=sm(g0,n),o=WO(g0,n),a=gy(n),l=Pd(),c=r&&o.value.includes(r)||!1,d=s.disabled||e.disabled;return j.jsx(JO,{scope:n,open:c,disabled:d,triggerId:l,children:j.jsx(DO,{"data-orientation":s.orientation,"data-state":Ik(c),...a,...i,ref:t,disabled:d,open:c,onOpenChange:p=>{p?o.onItemOpen(r):o.onItemClose(r)}})})});Ck.displayName=g0;var Lk="AccordionHeader",Pk=Ne.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=sm(is,n),s=vy(Lk,n);return j.jsx(an.h3,{"data-orientation":i.orientation,"data-state":Ik(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});Pk.displayName=Lk;var Sv="AccordionTrigger",Tk=Ne.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=sm(is,n),s=vy(Sv,n),o=VO(Sv,n),a=gy(n);return j.jsx(my.ItemSlot,{scope:n,children:j.jsx(MO,{"aria-disabled":s.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:s.triggerId,...a,...r,ref:t})})});Tk.displayName=Sv;var Rk="AccordionContent",Ok=Ne.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=sm(is,n),s=vy(Rk,n),o=gy(n);return j.jsx(BO,{role:"region","aria-labelledby":s.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Ok.displayName=Rk;function Ik(e){return e?"open":"closed"}var XO=kk,ZO=Ck,QO=Pk,jk=Tk,Fk=Ok;const e7=XO,Dk=D.forwardRef(({className:e,...t},n)=>j.jsx(ZO,{ref:n,className:pn("border-b",e),...t}));Dk.displayName="AccordionItem";const Mk=D.forwardRef(({className:e,children:t,...n},r)=>j.jsx(QO,{className:"flex",children:j.jsxs(jk,{ref:r,className:pn("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,j.jsx(aL,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Mk.displayName=jk.displayName;const Bk=D.forwardRef(({className:e,children:t,...n},r)=>j.jsx(Fk,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:j.jsx("div",{className:pn("pb-4 pt-0",e),children:t})}));Bk.displayName=Fk.displayName;var Cg="focusScope.autoFocusOnMount",Lg="focusScope.autoFocusOnUnmount",pb={bubbles:!1,cancelable:!0},t7="FocusScope",Uk=D.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=e,[a,l]=D.useState(null),c=Fs(i),d=Fs(s),p=D.useRef(null),m=hr(t,w=>l(w)),h=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(r){let w=function(S){if(h.paused||!a)return;const A=S.target;a.contains(A)?p.current=A:Ko(p.current,{select:!0})},x=function(S){if(h.paused||!a)return;const A=S.relatedTarget;A!==null&&(a.contains(A)||Ko(p.current,{select:!0}))},v=function(S){if(document.activeElement===document.body)for(const O of S)O.removedNodes.length>0&&Ko(a)};document.addEventListener("focusin",w),document.addEventListener("focusout",x);const _=new MutationObserver(v);return a&&_.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",x),_.disconnect()}}},[r,a,h.paused]),D.useEffect(()=>{if(a){gb.add(h);const w=document.activeElement;if(!a.contains(w)){const v=new CustomEvent(Cg,pb);a.addEventListener(Cg,c),a.dispatchEvent(v),v.defaultPrevented||(n7(a7($k(a)),{select:!0}),document.activeElement===w&&Ko(a))}return()=>{a.removeEventListener(Cg,c),setTimeout(()=>{const v=new CustomEvent(Lg,pb);a.addEventListener(Lg,d),a.dispatchEvent(v),v.defaultPrevented||Ko(w??document.body,{select:!0}),a.removeEventListener(Lg,d),gb.remove(h)}
vendor: 3,671 bytes, line 148
148,0)}}},[a,c,d,h]);const y=D.useCallback(w=>{if(!n&&!r||h.paused)return;const x=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,v=document.activeElement;if(x&&v){const _=w.currentTarget,[S,A]=r7(_);S&&A?!w.shiftKey&&v===A?(w.preventDefault(),n&&Ko(S,{select:!0})):w.shiftKey&&v===S&&(w.preventDefault(),n&&Ko(A,{select:!0})):v===_&&w.preventDefault()}},[n,r,h.paused]);return j.jsx(an.div,{tabIndex:-1,...o,ref:m,onKeyDown:y})});Uk.displayName=t7;function n7(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ko(r,{select:t}),document.activeElement!==n)return}function r7(e){const t=$k(e),n=mb(t,e),r=mb(t.reverse(),e);return[n,r]}function $k(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function mb(e,t){for(const n of e)if(!i7(n,{upTo:t}))return n}function i7(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function s7(e){return e instanceof HTMLInputElement&&"select"in e}function Ko(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&s7(e)&&t&&e.select()}}var gb=o7();function o7(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=vb(e,t),e.unshift(t)},remove(t){var n;e=vb(e,t),(n=e[0])==null||n.resume()}}}function vb(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function a7(e){return e.filter(t=>t.tagName!=="A")}var Pg=0;function l7(){D.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??yb()),document.body.insertAdjacentElement("beforeend",e[1]??yb()),Pg++,()=>{Pg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Pg--}},[])}function yb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ns=function(){return Ns=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ns.apply(this,arguments)};function zk(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function c7(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Cp="right-scroll-bar-position",Lp="width-before-scroll-bar",u7="with-scroll-bars-hidden",d7="--removed-body-scroll-bar-size";function Tg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function h7(e,t){var n=D.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var f7=typeof window<"u"?D.useLayoutEffect:D.useEffect,wb=new WeakMap;function p7(e,t){var n=h7(null,function(r){return e.forEach(function(i){return Tg(i,r)})});return f7(function(){var r=wb.get(n);if(r){var i=new Set(r),s=new Set(e),o=n.current;
vendor: 4,196 bytes, lines 148-163
148i.forEach(function(a){s.has(a)||Tg(a,null)}),s.forEach(function(a){i.has(a)||Tg(a,o)})}wb.set(n,e)},[e]),n}function m7(e){return e}function g7(e,t){t===void 0&&(t=m7);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var o=t(s,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(s){for(r=!0;n.length;){var o=n;n=[],o.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(s),o=n}var l=function(){var d=o;o=[],d.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(d){o.push(d),c()},filter:function(d){return o=o.filter(d),n}}}};return i}function v7(e){e===void 0&&(e={});var t=g7(null);return t.options=Ns({async:!0,ssr:!1},e),t}var qk=function(e){var t=e.sideCar,n=zk(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return D.createElement(r,Ns({},n))};qk.isSideCarExport=!0;function y7(e,t){return e.useMedium(t),qk}var Hk=v7(),Rg=function(){},om=D.forwardRef(function(e,t){var n=D.useRef(null),r=D.useState({onScrollCapture:Rg,onWheelCapture:Rg,onTouchMoveCapture:Rg}),i=r[0],s=r[1],o=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,m=e.sideCar,h=e.noRelative,y=e.noIsolation,w=e.inert,x=e.allowPinchZoom,v=e.as,_=v===void 0?"div":v,S=e.gapMode,A=zk(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=m,$=p7([n,t]),H=Ns(Ns({},A),i);return D.createElement(D.Fragment,null,d&&D.createElement(O,{sideCar:Hk,removeScrollBar:c,shards:p,noRelative:h,noIsolation:y,inert:w,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:S}),o?D.cloneElement(D.Children.only(a),Ns(Ns({},H),{ref:$})):D.createElement(_,Ns({},H,{className:l,ref:$}),a))});om.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};om.classNames={fullWidth:Lp,zeroRight:Cp};var w7=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function b7(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=w7();return t&&e.setAttribute("nonce",t),e}function _7(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function x7(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var S7=function(){var e=0,t=null;return{add:function(n){e==0&&(t=b7())&&(_7(t,n),x7(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},k7=function(){var e=S7();return function(t,n){D.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Wk=function(){var e=k7(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},A7={left:0,top:0,right:0,gap:0},Og=function(e){return parseInt(e||"",10)||0},E7=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Og(n),Og(r),Og(i)]},N7=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return A7;var t=E7(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},C7=Wk(),Bc="data-scroll-locked",L7=function(e,t,n,r){var i=e.left,s=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` 149 .`.concat(u7,` { 150 overflow: hidden `).concat(r,`; 151 padding-right: `).concat(a,"px ").concat(r,`; 152 } 153 body[`).concat(Bc,`] { 154 overflow: hidden `).concat(r,`; 155 overscroll-behavior: contain; 156 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 157 padding-left: `.concat(i,`px; 158 padding-top: `).concat(s,`px; 159 padding-right: `).concat(o,`px; 160 margin-left:0; 161 margin-top:0; 162 margin-right: `).concat(a,"px ").concat(r,`; 163 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
163")].filter(Boolean).join(""),` 164 } 165 166 .`).concat(Cp,` { 167 right: `).concat(a,"px ").concat(r,`; 168 } 169 170 .`).concat(Lp,` { 171 margin-right: `).concat(a,"px ").concat(r,`; 172 } 173 174 .`).concat(Cp," .").concat(Cp,` { 175 right: 0 `).concat(r,`; 176 } 177 178 .`).concat(Lp," .").concat(Lp,` { 179 margin-right: 0 `).concat(r,`; 180 } 181 182 body[`).concat(Bc,`] { 183 `).concat(d7,": ").concat(a,`px; 184 } 185`)},bb=function(){var e=parseInt(document.body.getAttribute(Bc)||"0",10);return isFinite(e)?e:0},P7=function(){D.useEffect(function(){return document.body.setAttribute(Bc,(bb()+1).toString()),function(){var e=bb()-1;e<=0?document.body.removeAttribute(Bc):document.body.setAttribute(Bc,e.toString())}},[])},T7=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;P7();var s=D.useMemo(function(){return N7(i)},[i]);return D.createElement(C7,{styles:L7(s,!t,i,n?"":"!important")})},kv=!1;if(typeof window<"u")try{var Vf=Object.defineProperty({},"passive",{get:function(){return kv=!0,!0}});window.addEventListener("test",Vf,Vf),window.removeEventListener("test",Vf,Vf)}catch{kv=!1}var Jl=kv?{passive:!1}:!1,R7=function(e){return e.tagName==="TEXTAREA"},Vk=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!R7(e)&&n[t]==="visible")},O7=function(e){return Vk(e,"overflowY")},I7=function(e){return Vk(e,"overflowX")},_b=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Gk(e,r);if(i){var s=Kk(e,r),o=s[1],a=s[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},j7=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},F7=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Gk=function(e,t){return e==="v"?O7(t):I7(t)},Kk=function(e,t){return e==="v"?j7(t):F7(t)},D7=function(e,t){return e==="h"&&t==="rtl"?-1:1},M7=function(e,t,n,r,i){var s=D7(e,window.getComputedStyle(t).direction),o=s*r,a=n.target,l=t.contains(a),c=!1,d=o>0,p=0,m=0;do{if(!a)break;var h=Kk(e,a),y=h[0],w=h[1],x=h[2],v=w-x-s*y;(y||v)&&Gk(e,a)&&(p+=v,m+=y);var _=a.parentNode;a=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(p)<1||!i)||!d&&(Math.abs(m)<1||!i))&&(c=!0),c},Gf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xb=function(e){return[e.deltaX,e.deltaY]},Sb=function(e){return e&&"current"in e?e.current:e},B7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},U7=function(e){return` 186 .block-interactivity-`.concat(e,` {pointer-events: none;} 187 .allow-interactivity-`).concat(e,` {pointer-events: all;} 188`)},$7=0,Xl=[];function z7(e){var t=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),i=D.useState($7++)[0],s=D.useState(Wk)[0],o=D.useRef(e);D.useEffect(function(){o.current=e},[e]),D.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=c7([e.lockRef.current],(e.shards||[]).map(Sb),!0).filter(Boolean);return w.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEac
vendor: 4,385 bytes, line 188
188h(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=D.useCallback(function(w,x){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!o.current.allowPinchZoom;var v=Gf(w),_=n.current,S="deltaX"in w?w.deltaX:_[0]-v[0],A="deltaY"in w?w.deltaY:_[1]-v[1],O,$=w.target,H=Math.abs(S)>Math.abs(A)?"h":"v";if("touches"in w&&H==="h"&&$.type==="range")return!1;var B=_b(H,$);if(!B)return!0;if(B?O=H:(O=H==="v"?"h":"v",B=_b(H,$)),!B)return!1;if(!r.current&&"changedTouches"in w&&(S||A)&&(r.current=O),!O)return!0;var R=r.current||O;return M7(R,x,w,R==="h"?S:A,!0)},[]),l=D.useCallback(function(w){var x=w;if(!(!Xl.length||Xl[Xl.length-1]!==s)){var v="deltaY"in x?xb(x):Gf(x),_=t.current.filter(function(O){return O.name===x.type&&(O.target===x.target||x.target===O.shadowParent)&&B7(O.delta,v)})[0];if(_&&_.should){x.cancelable&&x.preventDefault();return}if(!_){var S=(o.current.shards||[]).map(Sb).filter(Boolean).filter(function(O){return O.contains(x.target)}),A=S.length>0?a(x,S[0]):!o.current.noIsolation;A&&x.cancelable&&x.preventDefault()}}},[]),c=D.useCallback(function(w,x,v,_){var S={name:w,delta:x,target:v,should:_,shadowParent:q7(v)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(A){return A!==S})},1)},[]),d=D.useCallback(function(w){n.current=Gf(w),r.current=void 0},[]),p=D.useCallback(function(w){c(w.type,xb(w),w.target,a(w,e.lockRef.current))},[]),m=D.useCallback(function(w){c(w.type,Gf(w),w.target,a(w,e.lockRef.current))},[]);D.useEffect(function(){return Xl.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Jl),document.addEventListener("touchmove",l,Jl),document.addEventListener("touchstart",d,Jl),function(){Xl=Xl.filter(function(w){return w!==s}),document.removeEventListener("wheel",l,Jl),document.removeEventListener("touchmove",l,Jl),document.removeEventListener("touchstart",d,Jl)}},[]);var h=e.removeScrollBar,y=e.inert;return D.createElement(D.Fragment,null,y?D.createElement(s,{styles:U7(i)}):null,h?D.createElement(T7,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function q7(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const H7=y7(Hk,z7);var Yk=D.forwardRef(function(e,t){return D.createElement(om,Ns({},e,{ref:t,sideCar:H7}))});Yk.classNames=om.classNames;var W7=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zl=new WeakMap,Kf=new WeakMap,Yf={},Ig=0,Jk=function(e){return e&&(e.host||Jk(e.parentNode))},V7=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Jk(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},G7=function(e,t,n,r){var i=V7(t,Array.isArray(e)?e:[e]);Yf[n]||(Yf[n]=new WeakMap);var s=Yf[n],o=[],a=new Set,l=new Set(i),c=function(p){!p||a.has(p)||(a.add(p),c(p.parentNode))};i.forEach(c);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(m){if(a.has(m))d(m);else try{var h=m.getAttribute(r),y=h!==null&&h!=="false",w=(Zl.get(m)||0)+1,x=(s.get(m)||0)+1;Zl.set(m,w),s.set(m,x),o.push(m),w===1&&y&&Kf.set(m,!0),x===1&&m.setAttribute(n,"true"),y||m.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return d(t),a.clear(),Ig++,function(){o.forEach(function(p){var m=Zl.get(p)-1,h=s.get(p)-1;Zl.set(p,m),s.set(p,h),m||(Kf.has(p)||p.removeAttribute(r),Kf.delete(p)),h||p.removeAttribute(n)}),Ig--,Ig||(Zl=new WeakMap,Zl=new WeakMap,Kf=new WeakMap,Yf={})}},K7=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=W7(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),G7(r,i,n,"aria-hidden")):function(){return null}},am="Dialog",[Xk,BU]=Rl(am),[Y7,ss]=Xk(am),Zk=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:o=!0}=e,a=D.useRef(null),l=D.useRef(null),[c,d]=Lh({prop:r,defaultProp:i??!1,onChange:s,caller:am});return j.jsx(Y7,{scope:t,triggerRef:a,contentRef:l,contentId:Pd(),titleId:Pd(),descriptionId:Pd(),open:c,onOpenChange:d,onOpenToggle:D.useCallback(()=>d(p=>!p),[d]),modal:o,children:n})};Zk.displayName=am;var Qk="DialogTrigger",eA=D.forwardRef((e,t)=>
vendor: 5,524 bytes, lines 188-192
188{const{__scopeDialog:n,...r}=e,i=ss(Qk,n),s=hr(t,i.triggerRef);return j.jsx(an.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":by(i.open),...r,ref:s,onClick:Qt(e.onClick,i.onOpenToggle)})});eA.displayName=Qk;var yy="DialogPortal",[J7,tA]=Xk(yy,{forceMount:void 0}),nA=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,s=ss(yy,t);return j.jsx(J7,{scope:t,forceMount:n,children:D.Children.map(r,o=>j.jsx(Ol,{present:n||s.open,children:j.jsx(Y2,{asChild:!0,container:i,children:o})}))})};nA.displayName=yy;var v0="DialogOverlay",rA=D.forwardRef((e,t)=>{const n=tA(v0,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=ss(v0,e.__scopeDialog);return s.modal?j.jsx(Ol,{present:r||s.open,children:j.jsx(Z7,{...i,ref:t})}):null});rA.displayName=v0;var X7=l0("DialogOverlay.RemoveScroll"),Z7=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ss(v0,n);return j.jsx(Yk,{as:X7,allowPinchZoom:!0,shards:[i.contentRef],children:j.jsx(an.div,{"data-state":by(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Al="DialogContent",iA=D.forwardRef((e,t)=>{const n=tA(Al,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=ss(Al,e.__scopeDialog);return j.jsx(Ol,{present:r||s.open,children:s.modal?j.jsx(Q7,{...i,ref:t}):j.jsx(eI,{...i,ref:t})})});iA.displayName=Al;var Q7=D.forwardRef((e,t)=>{const n=ss(Al,e.__scopeDialog),r=D.useRef(null),i=hr(t,n.contentRef,r);return D.useEffect(()=>{const s=r.current;if(s)return K7(s)},[]),j.jsx(sA,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Qt(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Qt(e.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:Qt(e.onFocusOutside,s=>s.preventDefault())})}),eI=D.forwardRef((e,t)=>{const n=ss(Al,e.__scopeDialog),r=D.useRef(!1),i=D.useRef(!1);return j.jsx(sA,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=s.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),sA=D.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=e,a=ss(Al,n),l=D.useRef(null),c=hr(t,l);return l7(),j.jsxs(j.Fragment,{children:[j.jsx(Uk,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:j.jsx(H0,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":by(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),j.jsxs(j.Fragment,{children:[j.jsx(tI,{titleId:a.titleId}),j.jsx(rI,{contentRef:l,descriptionId:a.descriptionId})]})]})}),wy="DialogTitle",oA=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ss(wy,n);return j.jsx(an.h2,{id:i.titleId,...r,ref:t})});oA.displayName=wy;var aA="DialogDescription",lA=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ss(aA,n);return j.jsx(an.p,{id:i.descriptionId,...r,ref:t})});lA.displayName=aA;var cA="DialogClose",uA=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ss(cA,n);return j.jsx(an.button,{type:"button",...r,ref:t,onClick:Qt(e.onClick,()=>i.onOpenChange(!1))})});uA.displayName=cA;function by(e){return e?"open":"closed"}var dA="DialogTitleWarning",[UU,hA]=u8(dA,{contentName:Al,titleName:wy,docsSlug:"dialog"}),tI=({titleId:e})=>{const t=hA(dA),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 189 190If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 191 192For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return D.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},nI="DialogDescriptionWarning",rI=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${hA(nI).contentName}}.`;return D.useEffect(()=>{var s;const i=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},iI=Zk,sI=eA,oI=nA,fA=rA,pA=iA,mA=oA,gA=lA,aI=uA;const lI=iI,cI=sI,uI=oI,vA=D.forwardRef(({className:e,...t},n)=>j.jsx(fA,{ref:n,className:pn("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",e),...t}));vA.displayName=fA.displayName;const yA=D.forwardRef(({className:e,children:t,...n},r)=>j.jsxs(uI,{children:[j.jsx(vA,{}),j.jsxs(pA,{ref:r,className:pn("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
192nded-lg",e),...n,children:[t,j.jsxs(aI,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[j.jsx(g4,{className:"h-4 w-4"}),j.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));yA.displayName=pA.displayName;const wA=({className:e,...t})=>j.jsx("div",{className:pn("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});wA.displayName="DialogHeader";const bA=D.forwardRef(({className:e,...t},n)=>j.jsx(mA,{ref:n,className:pn("text-lg font-semibold leading-none tracking-tight",e),...t}));bA.displayName=mA.displayName;const dI=D.forwardRef(({className:e,...t},n)=>j.jsx(gA,{ref:n,className:pn("text-sm text-muted-foreground",e),...t}));dI.displayName=gA.displayName;const hI="modulepreload",fI=function(e){return"/"+e},kb={},jg=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=fI(l),l in kb)return;kb[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":hI,c||(p.as="script"),p.crossOrigin="",p.href=l,a&&p.setAttribute("nonce",a),document.head.appendChild(p),c)return new Promise((m,h)=>{p.addEventListener("load",m),p.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};function qt(e){"@babel/helpers - typeof";return qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qt(e)}var rs=Uint8Array,ci=Uint16Array,_y=Int32Array,xy=new rs([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]),Sy=new rs([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]),Ab=new rs([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_A=function(e,t){for(var n=new ci(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new _y(n[30]),r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)i[s]=s-n[r]<<5|r;return{b:n,r:i}},xA=_A(xy,2),pI=xA.b,Av=xA.r;pI[28]=258,Av[258]=28;var mI=_A(Sy,0),Eb=mI.r,Ev=new ci(32768);for(var sn=0;sn<32768;++sn){var Wo=(sn&43690)>>1|(sn&21845)<<1;Wo=(Wo&52428)>>2|(Wo&13107)<<2,Wo=(Wo&61680)>>4|(Wo&3855)<<4,Ev[sn]=((Wo&65280)>>8|(Wo&255)<<8)>>1}var Rd=function(e,t,n){for(var r=e.length,i=0,s=new ci(t);i<r;++i)e[i]&&++s[e[i]-1];var o=new ci(t);for(i=1;i<t;++i)o[i]=o[i-1]+s[i-1]<<1;var a;if(n){a=new ci(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var c=i<<4|e[i],d=t-e[i],p=o[e[i]-1]++<<d,m=p|(1<<d)-1;p<=m;++p)a[Ev[p]>>l]=c}else for(a=new ci(r),i=0;i<r;++i)e[i]&&(a[i]=Ev[o[e[i]-1]++]>>15-e[i]);return a},El=new rs(288);for(var sn=0;sn<144;++sn)El[sn]=8;for(var sn=144;sn<256;++sn)El[sn]=9;for(var sn=256;sn<280;++sn)El[sn]=7;for(var sn=280;sn<288;++sn)El[sn]=8;var y0=new rs(32);for(var sn=0;sn<32;++sn)y0[sn]=5;var gI=Rd(El,9,0),vI=Rd(y0,5,0),SA=function(e){return(e+7)/8|0},yI=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new rs(e.subarray(t,n))},ro=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},ad=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},Fg=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,s=n.slice();if(!i)return{t:AA,l:0};if(i==1){var o=new rs(n[0].s+1);return o[n[0].s]=1,{t:o,l:1}}n.sort(function(O,$){return O.f-$.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],c=0,d=1,p=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};d!=i-1;)a=n[n[c].f<n[p].f?c++:p++],l=n[c!=d&&n[c].f<n[p].f?c++:p++],n[d++]={s:-1,f:a.f+l.f,l:a,r:l};for(var m=s[0].s,r=1;r<i;++r)s[r].s>m&&(m=s[r].s);var h=new ci(m+1),y=Nv(n[d-1],h,0);if(y>t){var r=0,w=0,x=y-t,v=1<<x;for(s.sort(function($,H){return h[H.s]-h[$.s]||$.f-H.f});r<i;++r){var _=s[r].s;if(h[_]>
vendor: 12,346 bytes, lines 192-193
192t)w+=v-(1<<y-h[_]),h[_]=t;else break}for(w>>=x;w>0;){var S=s[r].s;h[S]<t?w-=1<<t-h[S]++-1:++r}for(;r>=0&&w;--r){var A=s[r].s;h[A]==t&&(--h[A],++w)}y=t}return{t:new rs(h),l:y}},Nv=function(e,t,n){return e.s==-1?Math.max(Nv(e.l,t,n+1),Nv(e.r,t,n+1)):t[e.s]=n},Nb=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ci(++t),r=0,i=e[0],s=1,o=function(l){n[r++]=l},a=1;a<=t;++a)if(e[a]==i&&a!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(i);s=1,i=e[a]}return{c:n.subarray(0,r),n:t}},ld=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},kA=function(e,t,n){var r=n.length,i=SA(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var s=0;s<r;++s)e[i+s+4]=n[s];return(i+4+r)*8},Cb=function(e,t,n,r,i,s,o,a,l,c,d){ro(t,d++,n),++i[256];for(var p=Fg(i,15),m=p.t,h=p.l,y=Fg(s,15),w=y.t,x=y.l,v=Nb(m),_=v.c,S=v.n,A=Nb(w),O=A.c,$=A.n,H=new ci(19),B=0;B<_.length;++B)++H[_[B]&31];for(var B=0;B<O.length;++B)++H[O[B]&31];for(var R=Fg(H,7),X=R.t,L=R.l,I=19;I>4&&!X[Ab[I-1]];--I);var J=c+5<<3,q=ld(i,El)+ld(s,y0)+o,se=ld(i,m)+ld(s,w)+o+14+3*I+ld(H,X)+2*H[16]+3*H[17]+7*H[18];if(l>=0&&J<=q&&J<=se)return kA(t,d,e.subarray(l,l+c));var ae,le,Y,Z;if(ro(t,d,1+(se<q)),d+=2,se<q){ae=Rd(m,h,0),le=m,Y=Rd(w,x,0),Z=w;var he=Rd(X,L,0);ro(t,d,S-257),ro(t,d+5,$-1),ro(t,d+10,I-4),d+=14;for(var B=0;B<I;++B)ro(t,d+3*B,X[Ab[B]]);d+=3*I;for(var fe=[_,O],C=0;C<2;++C)for(var U=fe[C],B=0;B<U.length;++B){var K=U[B]&31;ro(t,d,he[K]),d+=X[K],K>15&&(ro(t,d,U[B]>>5&127),d+=U[B]>>12)}}else ae=gI,le=El,Y=vI,Z=y0;for(var B=0;B<a;++B){var Q=r[B];if(Q>255){var K=Q>>18&31;ad(t,d,ae[K+257]),d+=le[K+257],K>7&&(ro(t,d,Q>>23&31),d+=xy[K]);var ne=Q&31;ad(t,d,Y[ne]),d+=Z[ne],ne>3&&(ad(t,d,Q>>5&8191),d+=Sy[ne])}else ad(t,d,ae[Q]),d+=le[Q]}return ad(t,d,ae[256]),d+le[256]},wI=new _y([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),AA=new rs(0),bI=function(e,t,n,r,i,s){var o=s.z||e.length,a=new rs(r+o+5*(1+Math.ceil(o/7e3))+i),l=a.subarray(r,a.length-i),c=s.l,d=(s.r||0)&7;if(t){d&&(l[0]=s.r>>3);for(var p=wI[t-1],m=p>>13,h=p&8191,y=(1<<n)-1,w=s.p||new ci(32768),x=s.h||new ci(y+1),v=Math.ceil(n/3),_=2*v,S=function(He){return(e[He]^e[He+1]<<v^e[He+2]<<_)&y},A=new _y(25e3),O=new ci(288),$=new ci(32),H=0,B=0,R=s.i||0,X=0,L=s.w||0,I=0;R+2<o;++R){var J=S(R),q=R&32767,se=x[J];if(w[q]=se,x[J]=q,L<=R){var ae=o-R;if((H>7e3||X>24576)&&(ae>423||!c)){d=Cb(e,l,0,A,O,$,B,X,I,R-I,d),X=H=B=0,I=R;for(var le=0;le<286;++le)O[le]=0;for(var le=0;le<30;++le)$[le]=0}var Y=2,Z=0,he=h,fe=q-se&32767;if(ae>2&&J==S(R-fe))for(var C=Math.min(m,ae)-1,U=Math.min(32767,R),K=Math.min(258,ae);fe<=U&&--he&&q!=se;){if(e[R+Y]==e[R+Y-fe]){for(var Q=0;Q<K&&e[R+Q]==e[R+Q-fe];++Q);if(Q>Y){if(Y=Q,Z=fe,Q>C)break;for(var ne=Math.min(fe,Q-2),re=0,le=0;le<ne;++le){var pe=R-fe+le&32767,me=w[pe],ve=pe-me&32767;ve>re&&(re=ve,se=pe)}}}q=se,se=w[q],fe+=q-se&32767}if(Z){A[X++]=268435456|Av[Y]<<18|Eb[Z];var Ae=Av[Y]&31,Re=Eb[Z]&31;B+=xy[Ae]+Sy[Re],++O[257+Ae],++$[Re],L=R+Y,++H}else A[X++]=e[R],++O[e[R]]}}for(R=Math.max(R,L);R<o;++R)A[X++]=e[R],++O[e[R]];d=Cb(e,l,c,A,O,$,B,X,I,R-I,d),c||(s.r=d&7|l[d/8|0]<<3,d-=7,s.h=x,s.p=w,s.i=R,s.w=L)}else{for(var R=s.w||0;R<o+c;R+=65535){var Le=R+65535;Le>=o&&(l[d/8|0]=c,Le=o),d=kA(l,d+1,e.subarray(R,Le))}s.i=o}return yI(a,0,r+SA(d)+i)},EA=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,s=n.length|0,o=0;o!=s;){for(var a=Math.min(o+2655,s);o<a;++o)i+=r+=n[o];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},_I=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),o=new rs(s.length+e.length);o.set(s),o.set(e,s.length),e=o,i.w=s.length}return bI(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,i)},NA=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},xI=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=EA();i.p(t.dictionary),NA(e,2,i.d())}};function Cv(e,t){t||(t={});var n=EA();n.p(e);var r=_I(e,t,t.dictionary?6:2,4);return xI(r,t),NA(r,r.length-4,n.d()),r}var SI=typeof TextDecoder<"u"&&new TextDecoder,kI=0;try{SI.decode(AA,{stream:!0}),kI=1}catch{}function AI(e){if(Array.isArray(e))return e}function EI(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}function Lb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function NI(e,t){if(e){if(typeof e=="string")return Lb(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lb(e,t):void 0}}function CI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 193In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pb(e,t){return AI(e)||EI(e,t)||NI(e,t)||CI()}function Tb(e,t="utf8"){return new TextDecoder(t).decode(e)}const LI=new TextEncoder;function PI(e){return LI.encode(e)}const TI=1024*8,RI=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),Dg={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class ky{constructor(t=TI,n={}){zt(this,"buffer");zt(this,"byteLength");zt(this,"byteOffset");zt(this,"length");zt(this,"offset");zt(this,"lastWrittenByte");zt(this,"littleEndian");zt(this,"_data");zt(this,"_mark");zt(this,"_marks");let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const i=n.offset?n.offset>>>0:0,s=t.byteLength-i;let o=i;(ArrayBuffer.isView(t)||t instanceof ky)&&(t.byteLength!==t.buffer.byteLength&&(o=t.byteOffset+i),t=t.buffer),r?this.lastWrittenByte=s:this.lastWrittenByte=0,this.buffer=t,this.length=s,this.byteLength=s,this.byteOffset=o,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,o,s),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const r=(this.offset+t)*2,i=new Uint8Array(r);i.set(new Uint8Array(this.buffer)),this.buffer=i.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,n){const r=Dg[n].BYTES_PER_ELEMENT*t,i=this.byteOffset+this.offset,s=this.buffer.slice(i,i+r);if(this.littleEndian===RI&&n!=="uint8"&&n!=="int8"){const a=new Uint8Array(this.buffer.slice(i,i+r));a.reverse();const l=new Dg[n](a.buffer);return this.offset+=r,l.reverse(),l}const o=new Dg[n](s);return this.offset+=r,o}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let n="";for(let r=0;r<t;r++)n+=this.readChar();return n}readUtf8(t=1){return Tb(this.readBytes(t))}decodeText(t=1,n="utf8"){return Tb(this.readBytes(t),n)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let n=0;n<t.length;n++)this._data.setUint8(this.offset++,t[n]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let n=0;n<t.length;n++)this.writeUint8(t.charCodeAt(n));return this}writeUtf8(t){return this.writeBytes(PI(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const OI=4,Rb=0,Ob=1,II=2;function wu(e){let t=e.length;for(;--t>=0;)e[t]=0}const jI=0,CA=1,FI=2,DI=3,MI=258,Ay=29,Rh=256,oh=Rh+1+Ay,Uc=30,Ey=19,LA=2*oh+1,ol=15,Mg=16,BI=7,Ny=256,PA=16,TA=17,RA=18,Lv=new Uint8Array([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]),Pp=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),UI=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),OA=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$I=512,ho=new Array((oh+2)*2);wu(ho);const Od=new Array(Uc*2);wu(Od);const ah=new Array($I);wu(ah);const lh=new Array(MI-DI+1);wu(lh);const Cy=new Array(Ay);wu(Cy);const w0=new Array(Uc);wu(w0);function Bg(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let IA,jA,FA;function Ug(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const DA=e=>e<256?ah[e]:ah[256+(e>>>7)],ch=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},zr=(e,t,n)=>{e.bi_valid>Mg-n?(e.bi_buf|=t<<e.bi_valid&65535,ch(e,e.bi_buf),e.bi_buf=t>>
vendor: 43,179 bytes, line 193
193Mg-e.bi_valid,e.bi_valid+=n-Mg):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},Cs=(e,t,n)=>{zr(e,n[t*2],n[t*2+1])},MA=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},zI=e=>{e.bi_valid===16?(ch(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},qI=(e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length;let c,d,p,m,h,y,w=0;for(m=0;m<=ol;m++)e.bl_count[m]=0;for(n[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;c<LA;c++)d=e.heap[c],m=n[n[d*2+1]*2+1]+1,m>l&&(m=l,w++),n[d*2+1]=m,!(d>r)&&(e.bl_count[m]++,h=0,d>=a&&(h=o[d-a]),y=n[d*2],e.opt_len+=y*(m+h),s&&(e.static_len+=y*(i[d*2+1]+h)));if(w!==0){do{for(m=l-1;e.bl_count[m]===0;)m--;e.bl_count[m]--,e.bl_count[m+1]+=2,e.bl_count[l]--,w-=2}while(w>0);for(m=l;m!==0;m--)for(d=e.bl_count[m];d!==0;)p=e.heap[--c],!(p>r)&&(n[p*2+1]!==m&&(e.opt_len+=(m-n[p*2+1])*n[p*2],n[p*2+1]=m),d--)}},BA=(e,t,n)=>{const r=new Array(ol+1);let i=0,s,o;for(s=1;s<=ol;s++)i=i+n[s-1]<<1,r[s]=i;for(o=0;o<=t;o++){let a=e[o*2+1];a!==0&&(e[o*2]=MA(r[a]++,a))}},HI=()=>{let e,t,n,r,i;const s=new Array(ol+1);for(n=0,r=0;r<Ay-1;r++)for(Cy[r]=n,e=0;e<1<<Lv[r];e++)lh[n++]=r;for(lh[n-1]=r,i=0,r=0;r<16;r++)for(w0[r]=i,e=0;e<1<<Pp[r];e++)ah[i++]=r;for(i>>=7;r<Uc;r++)for(w0[r]=i<<7,e=0;e<1<<Pp[r]-7;e++)ah[256+i++]=r;for(t=0;t<=ol;t++)s[t]=0;for(e=0;e<=143;)ho[e*2+1]=8,e++,s[8]++;for(;e<=255;)ho[e*2+1]=9,e++,s[9]++;for(;e<=279;)ho[e*2+1]=7,e++,s[7]++;for(;e<=287;)ho[e*2+1]=8,e++,s[8]++;for(BA(ho,oh+1,s),e=0;e<Uc;e++)Od[e*2+1]=5,Od[e*2]=MA(e,5);IA=new Bg(ho,Lv,Rh+1,oh,ol),jA=new Bg(Od,Pp,0,Uc,ol),FA=new Bg(new Array(0),UI,0,Ey,BI)},UA=e=>{let t;for(t=0;t<oh;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Uc;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Ey;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Ny*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},$A=e=>{e.bi_valid>8?ch(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Ib=(e,t,n,r)=>{const i=t*2,s=n*2;return e[i]<e[s]||e[i]===e[s]&&r[t]<=r[n]},$g=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&Ib(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Ib(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},jb=(e,t,n)=>{let r,i,s=0,o,a;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+s++]&255,r+=(e.pending_buf[e.sym_buf+s++]&255)<<8,i=e.pending_buf[e.sym_buf+s++],r===0?Cs(e,i,t):(o=lh[i],Cs(e,o+Rh+1,t),a=Lv[o],a!==0&&(i-=Cy[o],zr(e,i,a)),r--,o=DA(r),Cs(e,o,n),a=Pp[o],a!==0&&(r-=w0[o],zr(e,r,a)));while(s<e.sym_next);Cs(e,Ny,t)},Pv=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,s=t.stat_desc.elems;let o,a,l=-1,c;for(e.heap_len=0,e.heap_max=LA,o=0;o<s;o++)n[o*2]!==0?(e.heap[++e.heap_len]=l=o,e.depth[o]=0):n[o*2+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=l<2?++l:0,n[c*2]=1,e.depth[c]=0,e.opt_len--,i&&(e.static_len-=r[c*2+1]);for(t.max_code=l,o=e.heap_len>>1;o>=1;o--)$g(e,n,o);c=s;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],$g(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=a,n[c*2]=n[o*2]+n[a*2],e.depth[c]=(e.depth[o]>=e.depth[a]?e.depth[o]:e.depth[a])+1,n[o*2+1]=n[a*2+1]=c,e.heap[1]=c++,$g(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],qI(e,t),BA(n,l,e.bl_count)},Fb=(e,t,n)=>{let r,i=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)s=o,o=t[(r+1)*2+1],!(++a<l&&s===o)&&(a<c?e.bl_tree[s*2]+=a:s!==0?(s!==i&&e.bl_tree[s*2]++,e.bl_tree[PA*2]++):a<=10?e.bl_tree[TA*2]++:e.bl_tree[RA*2]++,a=0,i=s,o===0?(l=138,c=3):s===o?(l=6,c=3):(l=7,c=4))},Db=(e,t,n)=>{let r,i=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),r=0;r<=n;r++)if(s=o,o=t[(r+1)*2+1],!(++a<l&&s===o)){if(a<c)do Cs(e,s,e.bl_tree);while(--a!==0);else s!==0?(s!==i&&(Cs(e,s,e.bl_tree),a--),Cs(e,PA,e.bl_tree),zr(e,a-3,2)):a<=10?(Cs(e,TA,e.bl_tree),zr(e,a-3,3)):(Cs(e,RA,e.bl_tree),zr(e,a-11,7));a=0,i=s,o===0?(l=138,c=3):s===o?(l=6,c=3):(l=7,c=4)}},WI=e=>{let t;for(Fb(e,e.dyn_ltree,e.l_desc.max_code),Fb(e,e.dyn_dtree,e.d_desc.max_code),Pv(e,e.bl_desc),t=Ey-1;t>=3&&e.bl_tree[OA[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},VI=(e,t,n,r)=>{let i;for(zr(e,t-257,5),zr(e,n-1,5),zr(e,r-4,4),i=0;i<r;i++)zr(e,e.bl_tree[OA[i]*2+1],3);Db(e,e.dyn_ltree,t-1),Db(e,e.dyn_dtree,n-1)},GI=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return Rb;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Ob;for(n=32;n<Rh;n++)if(e.dyn_ltree[n*2]!==0)return Ob;return Rb};let Mb=!1;const KI=e=>{Mb||(HI(),Mb=!0),e.l_desc=new Ug(e.dyn_ltree,IA),e.d_desc=new Ug(e.dyn_dtree,jA),e.bl_desc=new Ug(e.bl_tree,FA),e.bi_buf=0,e.bi_valid=0,UA(e)},zA=(e,t,n,r)=>{zr(e,(jI<<1)+(r?1:0),3),$A(e),ch(e,n),ch(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},YI=e=>{zr(e,CA<<1,3),Cs(e,Ny,ho),zI(e)},JI=(e,t,n,r)=>{let i,s,o=0;e.level>0?(e.strm.data_type===II&&(e.strm.data_type=GI(e)),Pv(e,e.l_desc),Pv(e,e.d_desc),o=WI(e),i=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=i&&(i=s)):i=s=n+5,n+4<=i&&t!==-1?zA(e,t,n,r):e.strategy===OI||s===i?(zr(e,(CA<<1)+(r?1:0),3),jb(e,ho,Od)):(zr(e,(FI<<1)+(r?1:0),3),VI(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),jb(e,e.dyn_ltree,e.dyn_dtree)),UA(e),r&&$A(e)},XI=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(lh[n]+Rh+1)*2]++,e.dyn_dtree[DA(t)*2]++),e.sym_next===e.sym_end);var ZI=KI,QI=zA,ej=JI,tj=XI,nj=YI,rj={_tr_init:ZI,_tr_stored_block:QI,_tr_flush_block:ej,_tr_tally:tj,_tr_align:nj};const ij=(e,t,n,r)=>{let i=e&65535|0,s=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0};var uh=ij;const sj=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},oj=new Uint32Array(sj()),aj=(e,t,n,r)=>{const i=oj,s=r+n;e^=-1;for(let o=r;o<s;o++)e=e>>>8^i[(e^t[o])&255];return e^-1};var Yn=aj,uu={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"},Oh={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:lj,_tr_stored_block:Tv,_tr_flush_block:cj,_tr_tally:ba,_tr_align:uj}=rj,{Z_NO_FLUSH:_a,Z_PARTIAL_FLUSH:dj,Z_FULL_FLUSH:hj,Z_FINISH:Ei,Z_BLOCK:Bb,Z_OK:cr,Z_STREAM_END:Ub,Z_STREAM_ERROR:Is,Z_DATA_ERROR:fj,Z_BUF_ERROR:zg,Z_DEFAULT_COMPRESSION:pj,Z_FILTERED:mj,Z_HUFFMAN_ONLY:Jf,Z_RLE:gj,Z_FIXED:vj,Z_DEFAULT_STRATEGY:yj,Z_UNKNOWN:wj,Z_DEFLATED:lm}=Oh,bj=9,_j=15,xj=8,Sj=29,kj=256,Rv=kj+1+Sj,Aj=30,Ej=19,Nj=2*Rv+1,Cj=15,Ct=3,ua=258,js=ua+Ct+1,Lj=32,du=42,Ly=57,Ov=69,Iv=73,jv=91,Fv=103,al=113,gd=666,Rr=1,bu=2,Nl=3,_u=4,Pj=3,ll=(e,t)=>(e.msg=uu[t],t),$b=e=>e*2-(e>4?9:0),Qo=e=>{let t=e.length;for(;--t>=0;)e[t]=0},Tj=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)};let Rj=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,xa=Rj;const ii=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},ui=(e,t)=>{cj(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ii(e.strm)},Mt=(e,t)=>{e.pending_buf[e.pending++]=t},cd=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Dv=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=uh(e.adler,t,i,n):e.state.wrap===2&&(e.adler=Yn(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},qA=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,s,o=e.prev_length,a=e.nice_match;const l=e.strstart>e.w_size-js?e.strstart-(e.w_size-js):0,c=e.window,d=e.w_mask,p=e.prev,m=e.strstart+ua;let h=c[r+o-1],y=c[r+o];e.prev_length>=e.good_match&&(n>>=2),a>e.lookahead&&(a=e.lookahead);do if(i=t,!(c[i+o]!==y||c[i+o-1]!==h||c[i]!==c[r]||c[++i]!==c[r+1])){r+=2,i++;do;while(c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&r<m);if(s=ua-(m-r),r=m-ua,s>o){if(e.match_start=t,o=s,s>=a)break;h=c[r+o-1],y=c[r+o]}}while((t=p[t&d])>l&&--n!==0);return o<=e.lookahead?o:e.lookahead},hu=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-js)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),Tj(e),r+=t),e.strm.avail_in===0)break;if(n=Dv(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=Ct)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=xa(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=xa(e,e.ins_h,e.window[i+Ct-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<Ct)););}while(e.lookahead<js&&e.strm.avail_in!==0)},HA=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,s,o=0,a=e.strm.avail_in;do{if(r=65535,s=e.bi_valid+42>>3,e.strm.avail_out<s||(s=e.strm.avail_out-s,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>s&&(r=s),r<n&&(r===0&&t!==Ei||t===_a||r!==i+e.strm.avail_in)))break;o=t===Ei&&r===i+e.strm.avail_in?1:0,Tv(e,0,0,o),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,ii(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(Dv(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?_u:t!==_a&&t!==Ei&&e.strm.avail_in===0&&e.strstart===e.block_start?bu:(s=e.window_size-e.strstart,e.strm.avail_in>s&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,s+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),s>e.strm.avail_in&&(s=e.strm.avail_in),s&&(Dv(e.strm,e.window,e.strstart,s),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.high_water<e.strstart&&(e.high_water=e.strstart),s=e.bi_valid+42>>3,s=e.pending_buf_size-s>65535?65535:e.pending_buf_size-s,n=s>e.w_size?e.w_size:s,i=e.strstart-e.block_start,(i>=n||(i||t===Ei)&&t!==_a&&e.strm.avail_in===0&&i<=s)&&(r=i>s?s:i,o=t===Ei&&e.strm.avail_in===0&&r===i?1:0,Tv(e,e.block_start,r,o),e.block_start+=r,ii(e.strm)),o?Nl:Rr)},qg=(e,t)=>{let n,r;for(;;){if(e.lookahead<js){if(hu(e),e.lookahead<js&&t===_a)return Rr;if(e.lookahead===0)break}if(n=0,e.lookahead>=Ct&&(e.ins_h=xa(e,e.ins_h,e.window[e.strstart+Ct-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-js&&(e.match_length=qA(e,n)),e.match_length>=Ct)if(r=ba(e,e.strstart-e.match_start,e.match_length-Ct),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Ct){e.match_length--;do e.strstart++,e.ins_h=xa(e,e.ins_h,e.window[e.strstart+Ct-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=xa(e,e.ins_h,e.window[e.strstart+1]);else r=ba(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(ui(e,!1),e.strm.avail_out===0))return Rr}return e.insert=e.strstart<Ct-1?e.strstart:Ct-1,t===Ei?(ui(e,!0),e.strm.avail_out===0?Nl:_u):e.sym_next&&(ui(e,!1),e.strm.avail_out===0)?Rr:bu},Ql=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<js){if(hu(e),e.lookahead<js&&t===_a)return Rr;if(e.lookahead===0)break}if(n=0,e.lookahead>=Ct&&(e.ins_h=xa(e,e.ins_h,e.window[e.strstart+Ct-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Ct-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-js&&(e.match_length=qA(e,n),e.match_length<=5&&(e.strategy===mj||e.match_length===Ct&&e.strstart-e.match_start>4096)&&(e.match_length=Ct-1)),e.prev_length>=Ct&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Ct,r=ba(e,e.strstart-1-e.prev_match,e.prev_length-Ct),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=xa(e,e.ins_h,e.window[e.strstart+Ct-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Ct-1,e.strstart++,r&&(ui(e,!1),e.strm.avail_out===0))return Rr}else if(e.match_available){if(r=ba(e,0,e.window[e.strstart-1]),r&&ui(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Rr}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=ba(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Ct-1?e.strstart:Ct-1,t===Ei?(ui(e,!0),e.strm.avail_out===0?Nl:_u):e.sym_next&&(ui(e,!1),e.strm.avail_out===0)?Rr:bu},Oj=(e,t)=>{let n,r,i,s;const o=e.window;for(;;){if(e.lookahead<=ua){if(hu(e),e.lookahead<=ua&&t===_a)return Rr;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Ct&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){s=e.strstart+ua;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<s);e.match_length=ua-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Ct?(n=ba(e,1,e.match_length-Ct),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=ba(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(ui(e,!1),e.strm.avail_out===0))return Rr}return e.insert=0,t===Ei?(ui(e,!0),e.strm.avail_out===0?Nl:_u):e.sym_next&&(ui(e,!1),e.strm.avail_out===0)?Rr:bu},Ij=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(hu(e),e.lookahead===0)){if(t===_a)return Rr;break}if(e.match_length=0,n=ba(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(ui(e,!1),e.strm.avail_out===0))return Rr}return e.insert=0,t===Ei?(ui(e,!0),e.strm.avail_out===0?Nl:_u):e.sym_next&&(ui(e,!1),e.strm.avail_out===0)?Rr:bu};function vs(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const vd=[new vs(0,0,0,0,HA),new vs(4,4,8,4,qg),new vs(4,5,16,8,qg),new vs(4,6,32,32,qg),new vs(4,4,16,16,Ql),new vs(8,16,32,32,Ql),new vs(8,16,128,128,Ql),new vs(8,32,128,256,Ql),new vs(32,128,258,1024,Ql),new vs(32,258,258,4096,Ql)],jj=e=>{e.window_size=2*e.w_size,Qo(e.head),e.max_lazy_match=vd[e.level].max_lazy,e.good_match=vd[e.level].good_length,e.nice_match=vd[e.level].nice_length,e.max_chain_length=vd[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Ct-1,e.match_available=0,e.ins_h=0};function Fj(){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=lm,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Nj*2),this.dyn_dtree=new Uint16Array((2*Aj+1)*2),this.bl_tree=new Uint16Array((2*Ej+1)*2),Qo(this.dyn_ltree),Qo(this.dyn_dtree),Qo(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Cj+1),this.heap=new Uint16Array(2*Rv+1),Qo(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Rv+1),Qo(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ih=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==du&&t.status!==Ly&&t.status!==Ov&&t.status!==Iv&&t.status!==jv&&t.status!==Fv&&t.status!==al&&t.status!==gd?1:0},WA=e=>{if(Ih(e))return ll(e,Is);e.total_in=e.total_out=0,e.data_type=wj;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Ly:t.wrap?du:al,e.adler=t.wrap===2?0:1,t.last_flush=-2,lj(t),cr},VA=e=>{const t=WA(e);return t===cr&&jj(e.state),t},Dj=(e,t)=>Ih(e)||e.state.wrap!==2?Is:(e.state.gzhead=t,cr),GA=(e,t,n,r,i,s)=>{if(!e)return Is;let o=1;if(t===pj&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>bj||n!==lm||r<8||r>15||t<0||t>9||s<0||s>vj||r===8&&o!==1)return ll(e,Is);r===8&&(r=9);const a=new Fj;return e.state=a,a.strm=e,a.status=du,a.wrap=o,a.gzhead=null,a.w_bits=r,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+Ct-1)/Ct),a.window=new Uint8Array(a.w_size*2),a.head=new Uint16Array(a.hash_size),a.prev=new Uint16Array(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new Uint8Array(a.pending_buf_size),a.sym_buf=a.lit_bufsize,a.sym_end=(a.lit_bufsize-1)*3,a.level=t,a.strategy=s,a.method=n,VA(e)},Mj=(e,t)=>GA(e,t,lm,_j,xj,yj),Bj=(e,t)=>{if(Ih(e)||t>Bb||t<0)return e?ll(e,Is):Is;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===gd&&t!==Ei)return ll(e,e.avail_out===0?zg:Is);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(ii(e),e.avail_out===0)return n.last_flush=-1,cr}else if(e.avail_in===0&&$b(t)<=$b(r)&&t!==Ei)return ll(e,zg);if(n.status===gd&&e.avail_in!==0)return ll(e,zg);if(n.status===du&&n.wrap===0&&(n.status=al),n.status===du){let i=lm+(n.w_bits-8<<4)<<8,s=-1;if(n.strategy>=Jf||n.level<2?s=0:n.level<6?s=1:n.level===6?s=2:s=3,i|=s<<6,n.strstart!==0&&(i|=Lj),i+=31-i%31,cd(n,i),n.strstart!==0&&(cd(n,e.adler>>>16),cd(n,e.adler&65535)),e.adler=1,n.status=al,ii(e),n.pending!==0)return n.last_flush=-1,cr}if(n.status===Ly){if(e.adler=0,Mt(n,31),Mt(n,139),Mt(n,8),n.gzhead)Mt(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Mt(n,n.gzhead.time&255),Mt(n,n.gzhead.time>>8&255),Mt(n,n.gzhead.time>>16&255),Mt(n,n.gzhead.time>>24&255),Mt(n,n.level===9?2:n.strategy>=Jf||n.level<2?4:0),Mt(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(Mt(n,n.gzhead.extra.length&255),Mt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Yn(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Ov;else if(Mt(n,0),Mt(n,0),Mt(n,0),Mt(n,0),Mt(n,0),Mt(n,n.level===9?2:n.strategy>=Jf||n.level<2?4:0),Mt(n,Pj),n.status=al,ii(e),n.pending!==0)return n.last_flush=-1,cr}if(n.status===Ov){if(n.gzhead.extra){let i=n.pending,s=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+s>n.pending_buf_size;){let a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=Yn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=a,ii(e),n.pending!==0)return n.last_flush=-1,cr;i=0,s-=a}let o=new Uint8Array(n.gzhead.extra);n.pending_buf.set(o.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending+=s,n.gzhead.hcrc&&n.pending>i&&(e.adler=Yn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Iv}if(n.status===Iv){if(n.gzhead.name){let i=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Yn(e.adler,n.pending_buf,n.pending-i,i)),ii(e),n.pending!==0)return n.last_flush=-1,cr;i=0}n.gzindex<n.gzhead.name.length?s=n.gzhead.name.charCodeAt(n.gzindex++)&255:s=0,Mt(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=Yn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=jv}if(n.status===jv){if(n.gzhead.comment){let i=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Yn(e.adler,n.pending_buf,n.pending-i,i)),ii(e),n.pending!==0)return n.last_flush=-1,cr;i=0}n.gzindex<n.gzhead.comment.length?s=n.gzhead.comment.charCodeAt(n.gzindex++)&255:s=0,Mt(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=Yn(e.adler,n.pending_buf,n.pending-i,i))}n.status=Fv}if(n.status===Fv){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(ii(e),n.pending!==0))return n.last_flush=-1,cr;Mt(n,e.adler&255),Mt(n,e.adler>>8&255),e.adler=0}if(n.status=al,ii(e),n.pending!==0)return n.last_flush=-1,cr}if(e.avail_in!==0||n.lookahead!==0||t!==_a&&n.status!==gd){let i=n.level===0?HA(n,t):n.strategy===Jf?Ij(n,t):n.strategy===gj?Oj(n,t):vd[n.level].func(n,t);if((i===Nl||i===_u)&&(n.status=gd),i===Rr||i===Nl)return e.avail_out===0&&(n.last_flush=-1),cr;if(i===bu&&(t===dj?uj(n):t!==Bb&&(Tv(n,0,0,!1),t===hj&&(Qo(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),ii(e),e.avail_out===0))return n.last_flush=-1,cr}return t!==Ei?cr:n.wrap<=0?Ub:(n.wrap===2?(Mt(n,e.adler&255),Mt(n,e.adler>>8&255),Mt(n,e.adler>>16&255),Mt(n,e.adler>>24&255),Mt(n,e.total_in&255),Mt(n,e.total_in>>8&255),Mt(n,e.total_in>>16&255),Mt(n,e.total_in>>24&255)):(cd(n,e.adler>>>16),cd(n,e.adler&65535)),ii(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?cr:Ub)},Uj=e=>{if(Ih(e))return Is;const t=e.state.status;return e.state=null,t===al?ll(e,fj):cr},$j=(e,t)=>{let n=t.length;if(Ih(e))return Is;const r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==du||r.lookahead)return Is;if(i===1&&(e.adler=uh(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Qo(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(n-r.w_size,n),0),t=l,n=r.w_size}const s=e.avail_in,o=e.next_in,a=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,hu(r);r.lookahead>=Ct;){let l=r.strstart,c=r.lookahead-(Ct-1);do r.ins_h=xa(r,r.ins_h,r.window[l+Ct-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--c);r.strstart=l,r.lookahead=Ct-1,hu(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Ct-1,r.match_available=0,e.next_in=o,e.input=a,e.avail_in=s,r.wrap=i,cr};var zj=Mj,qj=GA,Hj=VA,Wj=WA,Vj=Dj,Gj=Bj,Kj=Uj,Yj=$j,Jj="pako deflate (from Nodeca project)",Id={deflateInit:zj,deflateInit2:qj,deflateReset:Hj,deflateResetKeep:Wj,deflateSetHeader:Vj,deflate:Gj,deflateEnd:Kj,deflateSetDictionary:Yj,deflateInfo:Jj};const Xj=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Zj=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)Xj(n,r)&&(e[r]=n[r])}}return e},Qj=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,s=e.length;r<s;r++){let o=e[r];n.set(o,i),i+=o.length}return n},cm={assign:Zj,flattenChunks:Qj};let KA=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{KA=!1}const dh=new Uint8Array(256);for(let e=0;e<256;e++)dh[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;dh[254]=dh[254]=1;var eF=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,s,o=e.length,a=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(a),s=0,i=0;s<a;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[s++]=n:n<2048?(t[s++]=192|n>>>6,t[s++]=128|n&63):n<65536?(t[s++]=224|n>>>12,t[s++]=128|n>>>6&63,t[s++]=128|n&63):(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63,t[s++]=128|n>>>6&63,t[s++]=128|n&63);return t};const tF=(e,t)=>{if(t<65534&&e.subarray&&KA)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var nF=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i;const s=new Array(n*2);for(i=0,r=0;r<n;){let o=e[r++];if(o<128){s[i++]=o;continue}let a=dh[o];if(a>4){s[i++]=65533,r+=a-1;continue}for(o&=a===2?31:a===3?15:7;a>1&&r<n;)o=o<<6|e[r++]&63,a--;if(a>1){s[i++]=65533;continue}o<65536?s[i++]=o:(o-=65536,s[i++]=55296|o>>10&1023,s[i++]=56320|o&1023)}return tF(s,i)},rF=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+dh[e[n]]>t?n:t},hh={string2buf:eF,buf2string:nF,utf8border:rF};function iF(){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 YA=iF;const JA=Object.prototype.toString,{Z_NO_FLUSH:sF,Z_SYNC_FLUSH:oF,Z_FULL_FLUSH:aF,Z_FINISH:lF,Z_OK:b0,Z_STREAM_END:cF,Z_DEFAULT_COMPRESSION:uF,Z_DEFAULT_STRATEGY:dF,Z_DEFLATED:hF}=Oh;function Py(e){this.options=cm.assign({level:uF,method:hF,chunkSize:16384,windowBits:15,memLevel:8,strategy:dF},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new YA,this.strm.avail_out=0;let n=Id.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==b0)throw new Error(uu[n]);if(t.header&&Id.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=hh.string2buf(t.dictionary):JA.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=Id.deflateSetDictionary(this.strm,r),n!==b0)throw new Error(uu[n]);this._dict_set=!0}}Py.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,s;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?lF:sF,typeof e=="string"?n.input=hh.string2buf(e):JA.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(s===oF||s===aF)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=Id.deflate(n,s),i===cF)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Id.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===b0;if(n.avail_out===0){this.onData(n.output);continue}if(s>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};Py.prototype.onData=function(e){this.chunks.push(e)};Py.prototype.onEnd=function(e){e===b0&&(this.result=cm.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};const Xf=16209,fF=16191;var pF=function(t,n){let r,i,s,o,a,l,c,d,p,m,h,y,w,x,v,_,S,A,O,$,H,B,R,X;const L=t.state;r=t.next_in,R=t.input,i=r+(t.avail_in-5),s=t.next_out,X=t.output,o=s-(n-t.avail_out),a=s+(t.avail_out-257),l=L.dmax,c=L.wsize,d=L.whave,p=L.wnext,m=L.window,h=L.hold,y=L.bits,w=L.lencode,x=L.distcode,v=(1<<L.lenbits)-1,_=(1<<L.distbits)-1;e:do{y<15&&(h+=R[r++]<<y,y+=8,h+=R[r++]<<y,y+=8),S=w[h&v];t:for(;;){if(A=S>>>24,h>>>=A,y-=A,A=S>>>16&255,A===0)X[s++]=S&65535;else if(A&16){O=S&65535,A&=15,A&&(y<A&&(h+=R[r++]<<y,y+=8),O+=h&(1<<A)-1,h>>>=A,y-=A),y<15&&(h+=R[r++]<<y,y+=8,h+=R[r++]<<y,y+=8),S=x[h&_];n:for(;;){if(A=S>>>24,h>>>=A,y-=A,A=S>>>16&255,A&16){if($=S&65535,A&=15,y<A&&(h+=R[r++]<<y,y+=8,y<A&&(h+=R[r++]<<y,y+=8)),$+=h&(1<<A)-1,$>l){t.msg="invalid distance too far back",L.mode=Xf;break e}if(h>>>=A,y-=A,A=s-o,$>A){if(A=$-A,A>d&&L.sane){t.msg="invalid distance too far back",L.mode=Xf;break e}if(H=0,B=m,p===0){if(H+=c-A,A<O){O-=A;do X[s++]=m[H++];while(--A);H=s-$,B=X}}else if(p<A){if(H+=c+p-A,A-=p,A<O){O-=A;do X[s++]=m[H++];while(--A);if(H=0,p<O){A=p,O-=A;do X[s++]=m[H++];while(--A);H=s-$,B=X}}}else if(H+=p-A,A<O){O-=A;do X[s++]=m[H++];while(--A);H=s-$,B=X}for(;O>2;)X[s++]=B[H++],X[s++]=B[H++],X[s++]=B[H++],O-=3;O&&(X[s++]=B[H++],O>1&&(X[s++]=B[H++]))}else{H=s-$;do X[s++]=X[H++],X[s++]=X[H++],X[s++]=X[H++],O-=3;while(O>2);O&&(X[s++]=X[H++],O>1&&(X[s++]=X[H++]))}}else if(A&64){t.msg="invalid distance code",L.mode=Xf;break e}else{S=x[(S&65535)+(h&(1<<A)-1)];continue n}break}}else if(A&64)if(A&32){L.mode=fF;break e}else{t.msg="invalid literal/length code",L.mode=Xf;break e}else{S=w[(S&65535)+(h&(1<<A)-1)];continue t}break}}while(r<i&&s<a);O=y>>3,r-=O,y-=O<<3,h&=(1<<y)-1,t.next_in=r,t.next_out=s,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=s<a?257+(a-s):257-(s-a),L.hold=h,L.bits=y};const ec=15,zb=852,qb=592,Hb=0,Hg=1,Wb=2,mF=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),gF=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),vF=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),yF=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),wF=(e,t,n,r,i,s,o,a)=>{const l=a.bits;let c=0,d=0,p=0,m=0,h=0,y=0,w=0,x=0,v=0,_=0,S,A,O,$,H,B=null,R;const X=new Uint16Array(ec+1),L=new Uint16Array(ec+1);let I=null,J,q,se;for(c=0;c<=ec;c++)X[c]=0;for(d=0;d<r;d++)X[t[n+d]]++;for(h=l,m=ec;m>=1&&X[m]===0;m--);if(h>m&&(h=m),m===0)return i[s++]=1<<24|64<<16|0,i[s++]=1<<24|64<<16|0,a.bits=1,0;for(p=1;p<m&&X[p]===0;p++);for(h<p&&(h=p),x=1,c=1;c<=ec;c++)if(x<<=1,x-=X[c],x<0)return-1;if(x>0&&(e===Hb||m!==1))return-1;for(L[1]=0,c=1;c<ec;c++)L[c+1]=L[c]+X[c];for(d=0;d<r;d++)t[n+d]!==0&&(o[L[t[n+d]]++]=d);if(e===Hb?(B=I=o,R=20):e===Hg?(B=mF,I=gF,R=257):(B=vF,I=yF,R=0),_=0,d=0,c=p,H=s,y=h,w=0,O=-1,v=1<<h,$=v-1,e===Hg&&v>zb||e===Wb&&v>qb)return 1;for(;;){J=c-w,o[d]+1<R?(q=0,se=o[d]):o[d]>=R?(q=I[o[d]-R],se=B[o[d]-R]):(q=96,se=0),S=1<<c-w,A=1<<y,p=A;do A-=S,i[H+(_>>w)+A]=J<<24|q<<16|se|0;while(A!==0);for(S=1<<c-1;_&S;)S>>=1;if(S!==0?(_&=S-1,_+=S):_=0,d++,--X[c]===0){if(c===m)break;c=t[n+o[d]]}if(c>h&&(_&$)!==O){for(w===0&&(w=h),H+=p,y=c-w,x=1<<y;y+w<m&&(x-=X[y+w],!(x<=0));)y++,x<<=1;if(v+=1<<y,e===Hg&&v>zb||e===Wb&&v>qb)return 1;O=_&$,i[O]=h<<24|y<<16|H-s|0}}return _!==0&&(i[H+_]=c-w<<24|64<<16|0),a.bits=h,0};var jd=wF;const bF=0,XA=1,ZA=2,{Z_FINISH:Vb,Z_BLOCK:_F,Z_TREES:Zf,Z_OK:Cl,Z_STREAM_END:xF,Z_NEED_DICT:SF,Z_STREAM_ERROR:Ti,Z_DATA_ERROR:QA,Z_MEM_ERROR:eE,Z_BUF_ERROR:kF,Z_DEFLATED:Gb}=Oh,um=16180,Kb=16181,Yb=16182,Jb=16183,Xb=16184,Zb=16185,Qb=16186,e_=16187,t_=16188,n_=16189,_0=16190,io=16191,Wg=16192,r_=16193,Vg=16194,i_=16195,s_=16196,o_=16197,a_=16198,Qf=16199,ep=16200,l_=16201,c_=16202,u_=16203,d_=16204,h_=16205,Gg=16206,f_=16207,p_=16208,un=16209,tE=16210,nE=16211,AF=852,EF=592,NF=15,CF=NF,m_=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function LF(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Il=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<um||t.mode>nE?1:0},rE=e=>{if(Il(e))return Ti;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=um,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(AF),t.distcode=t.distdyn=new Int32Array(EF),t.sane=1,t.back=-1,Cl},iE=e=>{if(Il(e))return Ti;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,rE(e)},sE=(e,t)=>{let n;if(Il(e))return Ti;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Ti:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,iE(e))},oE=(e,t)=>{if(!e)return Ti;const n=new LF;e.state=n,n.strm=e,n.window=null,n.mode=um;const r=sE(e,t);return r!==Cl&&(e.state=null),r},PF=e=>oE(e,CF);let g_=!0,Kg,Yg;const TF=e=>{if(g_){Kg=new Int32Array(512),Yg=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(jd(XA,e.lens,0,288,Kg,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;jd(ZA,e.lens,0,32,Yg,0,e.work,{bits:5}),g_=!1}e.lencode=Kg,e.lenbits=9,e.distcode=Yg,e.distbits=5},aE=(e,t,n,r)=>{let i;const s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),r>=s.wsize?(s.window.set(t.subarray(n-s.wsize,n),0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>r&&(i=r),s.window.set(t.subarray(n-r,n-r+i),s.wnext),r-=i,r?(s.window.set(t.subarray(n-r,n),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0},RF=(e,t)=>{let n,r,i,s,o,a,l,c,d,p,m,h,y,w,x=0,v,_,S,A,O,$,H,B;const R=new Uint8Array(4);let X,L;const I=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Il(e)||!e.output||!e.input&&e.avail_in!==0)return Ti;n=e.state,n.mode===io&&(n.mode=Wg),o=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=n.hold,d=n.bits,p=a,m=l,B=Cl;e:for(;;)switch(n.mode){case um:if(n.wrap===0){n.mode=Wg;break}for(;d<16;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(n.wrap&2&&c===35615){n.wbits===0&&(n.wbits=15),n.check=0,R[0]=c&255,R[1]=c>>>8&255,n.check=Yn(n.check,R,2,0),c=0,d=0,n.mode=Kb;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=un;break}if((c&15)!==Gb){e.msg="unknown compression method",n.mode=un;break}if(c>>>=4,d-=4,H=(c&15)+8,n.wbits===0&&(n.wbits=H),H>15||H>n.wbits){e.msg="invalid window size",n.mode=un;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=c&512?n_:io,c=0,d=0;break;case Kb:for(;d<16;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(n.flags=c,(n.flags&255)!==Gb){e.msg="unknown compression method",n.mode=un;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=un;break}n.head&&(n.head.text=c>>8&1),n.flags&512&&n.wrap&4&&(R[0]=c&255,R[1]=c>>>8&255,n.check=Yn(n.check,R,2,0)),c=0,d=0,n.mode=Yb;case Yb:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.head&&(n.head.time=c),n.flags&512&&n.wrap&4&&(R[0]=c&255,R[1]=c>>>8&255,R[2]=c>>>16&255,R[3]=c>>>24&255,n.check=Yn(n.check,R,4,0)),c=0,d=0,n.mode=Jb;case Jb:for(;d<16;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.head&&(n.head.xflags=c&255,n.head.os=c>>8),n.flags&512&&n.wrap&4&&(R[0]=c&255,R[1]=c>>>8&255,n.check=Yn(n.check,R,2,0)),c=0,d=0,n.mode=Xb;case Xb:if(n.flags&1024){for(;d<16;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.length=c,n.head&&(n.head.extra_len=c),n.flags&512&&n.wrap&4&&(R[0]=c&255,R[1]=c>>>8&255,n.check=Yn(n.check,R,2,0)),c=0,d=0}else n.head&&(n.head.extra=null);n.mode=Zb;case Zb:if(n.flags&1024&&(h=n.length,h>a&&(h=a),h&&(n.head&&(H=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(s,s+h),H)),n.flags&512&&n.wrap&4&&(n.check=Yn(n.check,r,h,s)),a-=h,s+=h,n.length-=h),n.length))break e;n.length=0,n.mode=Qb;case Qb:if(n.flags&2048){if(a===0)break e;h=0;do H=r[s+h++],n.head&&H&&n.length<65536&&(n.head.name+=String.fromCharCode(H));while(H&&h<a);if(n.flags&512&&n.wrap&4&&(n.check=Yn(n.check,r,h,s)),a-=h,s+=h,H)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=e_;case e_:if(n.flags&4096){if(a===0)break e;h=0;do H=r[s+h++],n.head&&H&&n.length<65536&&(n.head.comment+=String.fromCharCode(H));while(H&&h<a);if(n.flags&512&&n.wrap&4&&(n.check=Yn(n.check,r,h,s)),a-=h,s+=h,H)break e}else n.head&&(n.head.comment=null);n.mode=t_;case t_:if(n.flags&512){for(;d<16;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(n.wrap&4&&c!==(n.check&65535)){e.msg="header crc mismatch",n.mode=un;break}c=0,d=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=io;break;case n_:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}e.adler=n.check=m_(c),c=0,d=0,n.mode=_0;case _0:if(n.havedict===0)return e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,n.hold=c,n.bits=d,SF;e.adler=n.check=1,n.mode=io;case io:if(t===_F||t===Zf)break e;case Wg:if(n.last){c>>>=d&7,d-=d&7,n.mode=Gg;break}for(;d<3;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}switch(n.last=c&1,c>>>=1,d-=1,c&3){case 0:n.mode=r_;break;case 1:if(TF(n),n.mode=Qf,t===Zf){c>>>=2,d-=2;break e}break;case 2:n.mode=s_;break;case 3:e.msg="invalid block type",n.mode=un}c>>>=2,d-=2;break;case r_:for(c>>>=d&7,d-=d&7;d<32;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if((c&65535)!==(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=un;break}if(n.length=c&65535,c=0,d=0,n.mode=Vg,t===Zf)break e;case Vg:n.mode=i_;case i_:if(h=n.length,h){if(h>a&&(h=a),h>l&&(h=l),h===0)break e;i.set(r.subarray(s,s+h),o),a-=h,s+=h,l-=h,o+=h,n.length-=h;break}n.mode=io;break;case s_:for(;d<14;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(n.nlen=(c&31)+257,c>>>=5,d-=5,n.ndist=(c&31)+1,c>>>=5,d-=5,n.ncode=(c&15)+4,c>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=un;break}n.have=0,n.mode=o_;case o_:for(;n.have<n.ncode;){for(;d<3;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.lens[I[n.have++]]=c&7,c>>>=3,d-=3}for(;n.have<19;)n.lens[I[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,X={bits:n.lenbits},B=jd(bF,n.lens,0,19,n.lencode,0,n.work,X),n.lenbits=X.bits,B){e.msg="invalid code lengths set",n.mode=un;break}n.have=0,n.mode=a_;case a_:for(;n.have<n.nlen+n.ndist;){for(;x=n.lencode[c&(1<<n.lenbits)-1],v=x>>>24,_=x>>>16&255,S=x&65535,!(v<=d);){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(S<16)c>>>=v,d-=v,n.lens[n.have++]=S;else{if(S===16){for(L=v+2;d<L;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(c>>>=v,d-=v,n.have===0){e.msg="invalid bit length repeat",n.mode=un;break}H=n.lens[n.have-1],h=3+(c&3),c>>>=2,d-=2}else if(S===17){for(L=v+3;d<L;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}c>>>=v,d-=v,H=0,h=3+(c&7),c>>>=3,d-=3}else{for(L=v+7;d<L;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}c>>>=v,d-=v,H=0,h=11+(c&127),c>>>=7,d-=7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=un;break}for(;h--;)n.lens[n.have++]=H}}if(n.mode===un)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=un;break}if(n.lenbits=9,X={bits:n.lenbits},B=jd(XA,n.lens,0,n.nlen,n.lencode,0,n.work,X),n.lenbits=X.bits,B){e.msg="invalid literal/lengths set",n.mode=un;break}if(n.distbits=6,n.distcode=n.distdyn,X={bits:n.distbits},B=jd(ZA,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,X),n.distbits=X.bits,B){e.msg="invalid distances set",n.mode=un;break}if(n.mode=Qf,t===Zf)break e;case Qf:n.mode=ep;case ep:if(a>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,n.hold=c,n.bits=d,pF(e,m),o=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=n.hold,d=n.bits,n.mode===io&&(n.back=-1);break}for(n.back=0;x=n.lencode[c&(1<<n.lenbits)-1],v=x>>>24,_=x>>>16&255,S=x&65535,!(v<=d);){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(_&&!(_&240)){for(A=v,O=_,$=S;x=n.lencode[$+((c&(1<<A+O)-1)>>A)],v=x>>>24,_=x>>>16&255,S=x&65535,!(A+v<=d);){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}c>>>=A,d-=A,n.back+=A}if(c>>>=v,d-=v,n.back+=v,n.length=S,_===0){n.mode=h_;break}if(_&32){n.back=-1,n.mode=io;break}if(_&64){e.msg="invalid literal/length code",n.mode=un;break}n.extra=_&15,n.mode=l_;case l_:if(n.extra){for(L=n.extra;d<L;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=c_;case c_:for(;x=n.distcode[c&(1<<n.distbits)-1],v=x>>>24,_=x>>>16&255,S=x&65535,!(v<=d);){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(!(_&240)){for(A=v,O=_,$=S;x=n.distcode[$+((c&(1<<A+O)-1)>>A)],v=x>>>24,_=x>>>16&255,S=x&65535,!(A+v<=d);){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}c>>>=A,d-=A,n.back+=A}if(c>>>=v,d-=v,n.back+=v,_&64){e.msg="invalid distance code",n.mode=un;break}n.offset=S,n.extra=_&15,n.mode=u_;case u_:if(n.extra){for(L=n.extra;d<L;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=un;break}n.mode=d_;case d_:if(l===0)break e;if(h=m-l,n.offset>h){if(h=n.offset-h,h>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=un;break}h>n.wnext?(h-=n.wnext,y=n.wsize-h):y=n.wnext-h,h>n.length&&(h=n.length),w=n.window}else w=i,y=o-n.offset,h=n.length;h>l&&(h=l),l-=h,n.length-=h;do i[o++]=w[y++];while(--h);n.length===0&&(n.mode=ep);break;case h_:if(l===0)break e;i[o++]=n.length,l--,n.mode=ep;break;case Gg:if(n.wrap){for(;d<32;){if(a===0)break e;a--,c|=r[s++]<<d,d+=8}if(m-=l,e.total_out+=m,n.total+=m,n.wrap&4&&m&&(e.adler=n.check=n.flags?Yn(n.check,i,m,o-m):uh(n.check,i,m,o-m)),m=l,n.wrap&4&&(n.flags?c:m_(c))!==n.check){e.msg="incorrect data check",n.mode=un;break}c=0,d=0}n.mode=f_;case f_:if(n.wrap&&n.flags){for(;d<32;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(n.wrap&4&&c!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=un;break}c=0,d=0}n.mode=p_;case p_:B=xF;break e;case un:B=QA;break e;case tE:return eE;case nE:default:return Ti}return e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,n.hold=c,n.bits=d,(n.wsize||m!==e.avail_out&&n.mode<un&&(n.mode<Gg||t!==Vb))&&aE(e,e.output,e.next_out,m-e.avail_out),p-=e.avail_in,m-=e.avail_out,e.total_in+=p,e.total_out+=m,n.total+=m,n.wrap&4&&m&&(e.adler=n.check=n.flags?Yn(n.check,i,m,e.next_out-m):uh(n.check,i,m,e.next_out-m)),e.data_type=n.bits+(n.last?64:0)+(n.mode===io?128:0)+(n.mode===Qf||n.mode===Vg?256:0),(p===0&&m===0||t===Vb)&&B===Cl&&(B=kF),B},OF=e=>{if(Il(e))return Ti;let t=e.state;return t.window&&(t.window=null),e.state=null,Cl},IF=(e,t)=>{if(Il(e))return Ti;const n=e.state;return n.wrap&2?(n.head=t,t.done=!1,Cl):Ti},jF=(e,t)=>{const n=t.length;let r,i,s;return Il(e)||(r=e.state,r.wrap!==0&&r.mode!==_0)?Ti:r.mode===_0&&(i=1,i=uh(i,t,n,0),i!==r.check)?QA:(s=aE(e,t,n,n),s?(r.mode=tE,eE):(r.havedict=1,Cl))};
vendor: 11,733 bytes, line 193
193var FF=iE,DF=sE,MF=rE,BF=PF,UF=oE,$F=RF,zF=OF,qF=IF,HF=jF,WF="pako inflate (from Nodeca project)",fo={inflateReset:FF,inflateReset2:DF,inflateResetKeep:MF,inflateInit:BF,inflateInit2:UF,inflate:$F,inflateEnd:zF,inflateGetHeader:qF,inflateSetDictionary:HF,inflateInfo:WF};function VF(){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 GF=VF;const lE=Object.prototype.toString,{Z_NO_FLUSH:KF,Z_FINISH:YF,Z_OK:fh,Z_STREAM_END:Jg,Z_NEED_DICT:Xg,Z_STREAM_ERROR:JF,Z_DATA_ERROR:v_,Z_MEM_ERROR:XF}=Oh;function jh(e){this.options=cm.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new YA,this.strm.avail_out=0;let n=fo.inflateInit2(this.strm,t.windowBits);if(n!==fh)throw new Error(uu[n]);if(this.header=new GF,fo.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=hh.string2buf(t.dictionary):lE.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=fo.inflateSetDictionary(this.strm,t.dictionary),n!==fh)))throw new Error(uu[n])}jh.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let s,o,a;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?YF:KF,lE.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),s=fo.inflate(n,o),s===Xg&&i&&(s=fo.inflateSetDictionary(n,i),s===fh?s=fo.inflate(n,o):s===v_&&(s=Xg));n.avail_in>0&&s===Jg&&n.state.wrap>0&&e[n.next_in]!==0;)fo.inflateReset(n),s=fo.inflate(n,o);switch(s){case JF:case v_:case Xg:case XF:return this.onEnd(s),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(n.avail_out===0||s===Jg))if(this.options.to==="string"){let l=hh.utf8border(n.output,n.next_out),c=n.next_out-l,d=hh.buf2string(n.output,l);n.next_out=c,n.avail_out=r-c,c&&n.output.set(n.output.subarray(l,l+c),0),this.onData(d)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(s===fh&&a===0)){if(s===Jg)return s=fo.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};jh.prototype.onData=function(e){this.chunks.push(e)};jh.prototype.onEnd=function(e){e===fh&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=cm.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Ty(e,t){const n=new jh(t);if(n.push(e),n.err)throw n.msg||uu[n.err];return n.result}function ZF(e,t){return t=t||{},t.raw=!0,Ty(e,t)}var QF=jh,eD=Ty,tD=ZF,nD=Ty,rD=Oh,iD={Inflate:QF,inflate:eD,inflateRaw:tD,ungzip:nD,constants:rD};const{Inflate:sD,inflate:oD,inflateRaw:$U,ungzip:zU}=iD;var y_=sD,aD=oD;const cE=[];for(let e=0;e<256;e++){let t=e;for(let n=0;n<8;n++)t&1?t=3988292384^t>>>1:t=t>>>1;cE[e]=t}const w_=4294967295;function lD(e,t,n){let r=e;for(let i=0;i<n;i++)r=cE[(r^t[i])&255]^r>>>8;return r}function cD(e,t){return(lD(w_,e,t)^w_)>>>0}function b_(e,t,n){const r=e.readUint32(),i=cD(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==r)throw new Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${i}`)}function uE(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function dE(e,t,n,r){let i=0;for(;i<r;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+t[i-r]&255}function hE(e,t,n,r){let i=0;if(n.length===0)for(;i<r;i++)t[i]=e[i];else for(;i<r;i++)t[i]=e[i]+n[i]&255}function fE(e,t,n,r,i){let s=0;if(n.length===0){for(;s<i;s++)t[s]=e[s];for(;s<r;s++)t[s]=e[s]+(t[s-i]>>1)&255}else{for(;s<i;s++)t[s]=e[s]+(n[s]>>1)&255;for(;s<r;s++)t[s]=e[s]+(t[s-i]+n[s]>>1)&255}}function pE(e,t,n,r,i){let s=0;if(n.length===0){for(;s<i;s++)t[s]=e[s];for(;s<r;s++)t[s]=e[s]+t[s-i]&255}else{for(;s<i;s++)t[s]=e[s]+n[s]&255;for(;s<r;s++)t[s]=e[s]+uD(t[s-i],n[s],n[s-i])&255}}function uD(e,t,n){const r=e+t-n,i=Math.abs(r-e),s=Math.abs(r-t),o=Math.abs(r-n);return i<=s&&i<=o?e:s<=o?t:n}function dD(e,t,n,r,i,s){switch(e){case 0:uE(t,n,i);break;case 1:dE(t,n,i,s);break;case 2:hE(t,n,r,i);break;case 3:fE(t,n,r,i,s);break;case 4:pE(t,n,r,i,s);break;default:throw new Error(`Unsupported filter: ${e}`)}}const hD=new Uint16Array([255]),fD=new Uint8Array(hD.buffer),pD=fD[0]===255;function mD(e){const{data:t,width:n,height:r,channels:i,depth:s}=e,o=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],a=Math.ceil(s/8)*i,l=new Uint8Array(r*n*a);let c=0;for(let d=0;d<7;d++){const p=o[d],m=Math.ceil((n-p.x)/p.xStep),h=Math.ceil((r-p.y)/p.yStep);if(m<=0||h<=0)continue;const y=m*a,w=new Uint8Array(y);for(let x=0;x<h;x++){const v=t[c++],_=t.subarray(c,c+y);c+=y;const S=new Uint8Array(y);dD(v,_,S,w,y,a),w.set(S);for(let A=0;A<m;A++){const O=p.x+A*p.xStep,$=p.y+x*p.yStep;if(!(O>=n||$>=r))for(let H=0;H<a;H++)l[($*n+O)*a+H]=S[A*a+H]}}}if(s===16){const d=new Uint16Array(l.buffer);if(pD)for(let p=0;p<d.length;p++)d[p]=gD(d[p]);return d}else return l}function gD(e){return(e&255)<<8|e>>8&255}const vD=new Uint16Array([255]),yD=new Uint8Array(vD.buffer),wD=yD[0]===255,bD=new Uint8Array(0);function __(e){const{data:t,width:n,height:r,channels:i,depth:s}=e,o=Math.ceil(s/8)*i,a=Math.ceil(s/8*i*n),l=new Uint8Array(r*a);let c=bD,d=0,p,m;for(let h=0;h<r;h++){switch(p=t.subarray(d+1,d+1+a),m=l.subarray(h*a,(h+1)*a),t[d]){case 0:uE(p,m,a);break;case 1:dE(p,m,a,o);break;case 2:hE(p,m,c,a);break;case 3:fE(p,m,c,a,o);break;case 4:pE(p,m,c,a,o);break;default:throw new Error(`Unsupported filter: ${t[d]}`)}c=m,d+=a+1}if(s===16){const h=new Uint16Array(l.buffer);if(wD)for(let y=0;y<h.length;y++)h[y]=_D(h[y]);return h}else return l}function _D(e){return(e&255)<<8|e>>8&255}const Tp=Uint8Array.of(137,80,78,71,13,10,26,10);function x_(e){if(!xD(e.readBytes(Tp.length)))throw new Error("wrong PNG signature")}function xD(e){if(e.length<Tp.length)return!1;for(let t=0;t<Tp.length;t++)if(e[t]!==Tp[t])return!1;return!0}const SD="tEXt",kD=0,mE=new TextDecoder("latin1");function AD(e){if(ND(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const ED=/^[\u0000-\u00FF]*$/;function ND(e){if(!ED.test(e))throw new Error("invalid latin1 text")}function CD(e,t,n){const r=gE(t);e[r]=LD(t,n-r.length-1)}function gE(e){for(e.mark();e.readByte()!==kD;);const t=e.offset;e.reset();const n=mE.decode(e.readBytes(t-e.offset-1));return e.skip(1),AD(n),n}function LD(e,t){return mE.decode(e.readBytes(t))}const ni={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Zg={UNKNOWN:-1,DEFLATE:0},S_={UNKNOWN:-1,ADAPTIVE:0},Qg={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},tp={NONE:0,BACKGROUND:1,PREVIOUS:2},e1={SOURCE:0,OVER:1};class PD extends ky{constructor(n,r={}){super(n);zt(this,"_checkCrc");zt(this,"_inflator");zt(this,"_png");zt(this,"_apng");zt(this,"_end");zt(this,"_hasPalette");zt(this,"_palette");zt(this,"_hasTransparency");zt(this,"_transparency");zt(this,"_compressionMethod");zt(this,"_filterMethod");zt(this,"_interlaceMethod");zt(this,"_colorType");zt(this,"_isAnimated");zt(this,"_numberOfFrames");zt(this,"_numberOfPlays");zt(this,"_frames");zt(this,"_writingDataChunks");const{checkCrc:i=!1}=r;this._checkCrc=i,this._inflator=new y_,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Zg.UNKNOWN,this._filterMethod=S_.UNKNOWN,this._interlaceMethod=Qg.UNKNOWN,this._colorType=ni.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(x_(this);!this._end;){const n=this.readUint32(),r=this.readChars(4);this.decodeChunk(n,r)}return this.decodeImage(),this._png}decodeApng(){for(x_(this);!this._end;){const n=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(n,r)}return this.decodeApngImage(),this._apng}decodeChunk(n,r){const i=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(n);break;case"IDAT":this.decodeIDAT(n);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(n);break;case"iCCP":this.decodeiCCP(n);break;case SD:CD(this._png.text,this,n);break;case"pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?b_(this,n+4,r):this.skip(4)}decodeApngChunk(n,r){const i=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,r),this.offset=i+n;break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?b_(this,n+4,r):this.skip(4)}decodeIHDR(){const n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=TD(this.readUint8());const r=this.readUint8();this._colorType=r;let i;switch(r){case ni.GREYSCALE:i=1;break;case ni.TRUECOLOUR:i=3;break;case ni.INDEXED_COLOUR:i=1;break;case ni.GREYSCALE_ALPHA:i=2;break;case ni.TRUECOLOUR_ALPHA:i=4;break;case ni.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==Zg.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const n={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(n)}decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);const r=n/3;this._hasPalette=!0;const i=[];this._palette=i;for(let s=0;s<r;s++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(n){this._writingDataChunks=!0;const r=n,i=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodeFDAT(n){this._writingDataChunks=!0;let r=n,i=this.offset+this.byteOffset;if(i+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodetRNS(n){switch(this._colorType){case ni.GREYSCALE:case ni.TRUECOLOUR:{if(n%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${n}`);if(n/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(n/2);for(let r=0;r<n/2;r++)this._transparency[r]=this.readUint16();break}case ni.INDEXED_COLOUR:{if(n>this._palette.length)throw new Error(`tRNS chunk contains more alph
193a values than there are palette colors (${n} vs ${this._palette.length})`);let r=0;for(;r<n;r++){const i=this.readByte();this._palette[r].push(i)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case ni.UNKNOWN:case ni.GREYSCALE_ALPHA:case ni.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(n){const r=gE(this),i=this.readUint8();if(i!==Zg.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const s=this.readBytes(n-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:aD(s)}}decodepHYs(){const n=this.readUint32(),r=this.readUint32(),i=this.readByte();this._png.resolution={x:n,y:r,unit:i}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let n=0;n<this._numberOfFrames;n++){const r={sequenceNumber:this._frames[n].sequenceNumber,delayNumber:this._frames[n].delayNumber,delayDenominator:this._frames[n].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},i=this._frames.at(n);if(i){if(i.data=__({data:i.data,width:i.width,height:i.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),n===0||i.xOffset===0&&i.yOffset===0&&i.width===this._png.width&&i.height===this._png.height)r.data=i.data;else{const s=this._apng.frames.at(n-1);this.disposeFrame(i,s,r),this.addFrameDataToCanvas(r,i)}this._apng.frames.push(r)}}return this._apng}disposeFrame(n,r,i){switch(n.disposeOp){case tp.NONE:break;case tp.BACKGROUND:for(let s=0;s<this._png.height;s++)for(let o=0;o<this._png.width;o++){const a=(s*n.width+o)*this._png.channels;for(let l=0;l<this._png.channels;l++)i.data[a+l]=0}break;case tp.PREVIOUS:i.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(n,r){const i=1<<this._png.depth,s=(o,a)=>{const l=((o+r.yOffset)*this._png.width+r.xOffset+a)*this._png.channels,c=(o*r.width+a)*this._png.channels;return{index:l,frameIndex:c}};switch(r.blendOp){case e1.SOURCE:for(let o=0;o<r.height;o++)for(let a=0;a<r.width;a++){const{index:l,frameIndex:c}=s(o,a);for(let d=0;d<this._png.channels;d++)n.data[l+d]=r.data[c+d]}break;case e1.OVER:for(let o=0;o<r.height;o++)for(let a=0;a<r.width;a++){const{index:l,frameIndex:c}=s(o,a);for(let d=0;d<this._png.channels;d++){const p=r.data[c+this._png.channels-1]/i,m=d%(this._png.channels-1)===0?1:r.data[c+d],h=Math.floor(p*m+(1-p)*n.data[l+d]);n.data[l+d]+=h}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var r;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const n=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==S_.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Qg.NO_INTERLACE)this._png.data=__({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Qg.ADAM7)this._png.data=mD({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const n=this._inflator.result,r=this._frames.at(-1);r?r.data=n:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:tp.NONE,blendOp:e1.SOURCE,data:n}),this._inflator=new y_,this._writingDataChunks=!1}}function TD(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var k_;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(k_||(k_={}));function RD(e,t){return new PD(e,t).decode()}var ot=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function t1(){ot.console&&typeof ot.console.log=="function"&&ot.console.log.apply(ot.console,arguments)}var Kt={log:t1,warn:function(e){ot.console&&(typeof ot.console.warn=="function"?ot.console.warn.apply(ot.console,arguments):t1.call(null,arguments))},error:function(e){ot.console&&(typeof ot.console.error=="function"?ot.console.error.apply(ot.console,arguments):t1(e))}};function n1(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Qa(r.response,t,n
vendor: 3,701 bytes, lines 193-198
193)},r.onerror=function(){Kt.error("could not download file")},r.send()}function A_(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function np(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Qa=ot.saveAs||((typeof window>"u"?"undefined":qt(window))!=="object"||window!==ot?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=ot.URL||ot.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?A_(i.href)?n1(e,t,n):np(i,i.target="_blank"):np(i)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){np(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(A_(e))n1(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){np(r)})}else navigator.msSaveOrOpenBlob(function(i,s){return s===void 0?s={autoBom:!1}:qt(s)!=="object"&&(Kt.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(e,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return n1(e,t,n);var i=e.type==="application/octet-stream",s=/constructor/i.test(ot.HTMLElement)||ot.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&s)&&(typeof FileReader>"u"?"undefined":qt(FileReader))==="object"){var a=new FileReader;a.onloadend=function(){var d=a.result;d=o?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=d:location=d,r=null},a.readAsDataURL(e)}else{var l=ot.URL||ot.webkitURL,c=l.createObjectURL(e);r?r.location=c:location.href=c,r=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});/** 194 * A class to parse color values 195 * @author Stoyan Stefanov <[email protected]> 196 * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} 197 * @license Use it if you like it 198 */function vE(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
1980",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(a){return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,s=n[r].process,o=i.exec(e);o&&(t=s(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var a=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return a.length==1&&(a="0"+a),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+a+l+c}}var Rp=ot.atob.bind(ot),E_=ot.btoa.bind(ot);/** 199 * @license 200 * Joseph Myers does not specify a particular license for his work. 201 * 202 * Author: Joseph Myers 203 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js 204 * 205 * Modified by: Owen Leong 206 */function r1(e,t){var n=e[0],r=e[1],i=e[2],s=e[3];n=vr(n,r,i,s,t[0],7,-680876936),s=vr(s,n,r,i,t[1],12,-389564586),i=vr(i,s,n,r,t[2],17,606105819),r=vr(r,i,s,n,t[3],22,-1044525330),n=vr(n,r,i,s,t[4],7,-176418897),s=vr(s,n,r,i,t[5],12,1200080426),i=vr(i,s,n,r,t[6],17,-1473231341),r=vr(r,i,s,n,t[7],22,-45705983),n=vr(n,r,i,s,t[8],7,1770035416),s=vr(s,n,r,i,t[9],12,-1958414417),i=vr(i,s,n,r,t[10],17,-42063),r=vr(r,i,s,n,t[11],22,-1990404162),n=vr(n,r,i,s,t[12],7,1804603682),s=vr(s,n,r,i,t[13],12,-40341101),i=vr(i,s,n,r,t[14],17,-1502002290),n=yr(n,r=vr(r,i,s,n,t[15],22,1236535329),i,s,t[1],5,-165796510),s=yr(s,n,r,i,t[6],9,-1069501632),i=yr(i,s,n,r,t[11],14,643717713),r=yr(r,i,s,n,t[0],20,-373897302),n=yr(n,r,i,s,t[5],5,-701558691),s=yr(s,n,r,i,t[10],9,38016083),i=yr(i,s,n,r,t[15],14,-660478335),r=yr(r,i,s,n,t[4],20,-405537848),n=yr(n,r,i,s,t[9],5,568446438),s=yr(s,n,r,i,t[14],9,-1019803690),i=yr(i,s,n,r,t[3],14,-187363961),r=yr(r,i,s,n,t[8],20,1163531501),n=yr(n,r,i,s,t[13],5,-1444681467),s=yr(s,n,r,i,t[2],9,-51403784),i=yr(i,s,n,r,t[7],14,1735328473),n=wr(n,r=yr(r,i,s,n,t[12],20,-1926607734),i,s,t[5],4,-378558),s=wr(s,n,r,i,t[8],11,-2022574463),i=wr(i,s,n,r,t[11],16,1839030562),r=wr(r,i,s,n,t[14],23,-35309556),n=wr(n,r,i,s,t[1],4,-1530992060),s=wr(s,n,r,i,t[4],11,1272893353),i=wr(i,s,n,r,t[7],16,-155497632),r=wr(r,i,s,n,t[10],23,-1094730640),n=wr(n,r,i,s,t[13],4,681279174),s=wr(s,n,r,i,t[0],11,-358537222),i=wr(i,s,n,r,t[3],16,-722521979),r=wr(r,i,s,n,t[6],23,76029189),n=wr(n,r,i,s,t[9],4,-640364487),s=wr
vendor: 8,675 bytes, lines 206-223
206(s,n,r,i,t[12],11,-421815835),i=wr(i,s,n,r,t[15],16,530742520),n=br(n,r=wr(r,i,s,n,t[2],23,-995338651),i,s,t[0],6,-198630844),s=br(s,n,r,i,t[7],10,1126891415),i=br(i,s,n,r,t[14],15,-1416354905),r=br(r,i,s,n,t[5],21,-57434055),n=br(n,r,i,s,t[12],6,1700485571),s=br(s,n,r,i,t[3],10,-1894986606),i=br(i,s,n,r,t[10],15,-1051523),r=br(r,i,s,n,t[1],21,-2054922799),n=br(n,r,i,s,t[8],6,1873313359),s=br(s,n,r,i,t[15],10,-30611744),i=br(i,s,n,r,t[6],15,-1560198380),r=br(r,i,s,n,t[13],21,1309151649),n=br(n,r,i,s,t[4],6,-145523070),s=br(s,n,r,i,t[11],10,-1120210379),i=br(i,s,n,r,t[2],15,718787259),r=br(r,i,s,n,t[9],21,-343485551),e[0]=da(n,e[0]),e[1]=da(r,e[1]),e[2]=da(i,e[2]),e[3]=da(s,e[3])}function dm(e,t,n,r,i,s){return t=da(da(t,e),da(r,s)),da(t<<i|t>>>32-i,n)}function vr(e,t,n,r,i,s,o){return dm(t&n|~t&r,e,t,i,s,o)}function yr(e,t,n,r,i,s,o){return dm(t&r|n&~r,e,t,i,s,o)}function wr(e,t,n,r,i,s,o){return dm(t^n^r,e,t,i,s,o)}function br(e,t,n,r,i,s,o){return dm(n^(t|~r),e,t,i,s,o)}function yE(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)r1(r,OD(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(r1(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,r1(r,i),r}function OD(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var N_="0123456789abcdef".split("");function ID(e){for(var t="",n=0;n<4;n++)t+=N_[e>>8*n+4&15]+N_[e>>8*n&15];return t}function jD(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Mv(e){return yE(e).map(jD).join("")}var FD=function(e){for(var t=0;t<e.length;t++)e[t]=ID(e[t]);return e.join("")}(yE("hello"))!="5d41402abc4b2a76b9719d911017c592";function da(e,t){if(FD){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}/** 207 * @license 208 * FPDF is released under a permissive license: there is no usage restriction. 209 * You may embed it freely in your application (commercial or not), with or 210 * without modifications. 211 * 212 * Reference: http://www.fpdf.org/en/script/script37.php 213 */function Bv(e,t){var n,r,i,s;if(e!==n){for(var o=(i=e,s=1+(256/e.length|0),new Array(s+1).join(i)),a=[],l=0;l<256;l++)a[l]=l;var c=0;for(l=0;l<256;l++){var d=a[l];c=(c+d+o.charCodeAt(l))%256,a[l]=a[c],a[c]=d}n=e,r=a}else a=r;var p=t.length,m=0,h=0,y="";for(l=0;l<p;l++)h=(h+(d=a[m=(m+1)%256]))%256,a[m]=a[h],a[h]=d,o=a[(a[m]+a[h])%256],y+=String.fromCharCode(t.charCodeAt(l)^o);return y}/** 214 * @license 215 * Licensed under the MIT License. 216 * http://opensource.org/licenses/mit-license 217 * Author: Owen Leong (@owenl131) 218 * Date: 15 Oct 2020 219 * References: 220 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt 221 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js 222 * http://www.fpdf.org/en/script/script37.php 223 */var C_={print:4,modify:8,copy:16,"annot-forms":32};function cc(e,t,n,r){this.v=1,this.r=2;var i=192;e.forEach(function(a){if(C_.perm!==void 0)throw new Error("Invalid permission: "+a);i+=C_[a]}),this.padding="(¿N^NuÂAd\0NVÿú�\b..\0¶Ãh>Â/\f©þdSiz";var s=(t+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,o),this.P=-(1+(255^i)),this.encryptionKey=Mv(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Bv(this.encryptionKey,this.padding)}function uc(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);t+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?"#"+("0"+i.toString(16)).slice(-2):e[r]}return t}function L_(e){if(qt(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(n,r,i){if(i=i||!1,typeof n!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(n)||(t[n]={});var s=Math.random().toString(35);return t[n][s]=[r,!!i],s},this.unsubscribe=function(n){for(var r in t)if(t[r][n])return delete t[r][n],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var s in t[n]){var o=t[n][s];try{o[0].apply(e,r)}catch(a){ot.console&&Kt.error("jsPDF PubSub Error",a.message,a)}o[1]&&i.push(s)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function x0(e){if(!(this instanceof x0))return new x0(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function wE(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function tl(e,t,n,r,i){if(!(this instanceof tl))return new tl(e,t,n,r,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=n,wE.call(this,r,i)}function Cc(e,t,n,r,i){if(!(this instanceof Cc))return new Cc(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,wE.call(this,r,i)}function Je(e){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],s=arguments[3],o=[],a=1,l=16,c="S",d=null;qt(e=e||{})==="object"&&(n=e.orientation,r=e.unit||r,i=e.format||i,s=e.compress||e.compressPdf||s,(d=e.encryption||null)!==null&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),a=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),o=e.filters||(s===!0?["FlateEncode"]:o),r=r||"mm",n=(""+(n||"P")).toLowerCase();var p=e.putOnlyUsedFonts||!1,m={},h={internal:{},__private__:{}};h.__private__.PubSub=L_;var y="1.3",w=h.__private__.getPdfVersion=function(){return y};h.__private__.setPdfVersion=function(g){y=g};var x={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return x};var v=h.__private__.getPageFormat=function(g){return x[g]};i=i||"a4";var _="compat",S="advanced",A=_;function O(){this.saveGraphicsState(),z(new Ue(st,0,0,-st,0,Ma()*st).toString()+" cm"),this.setFontSize(this.getFontSize()/st),c="n",A=S}function $(){this.restoreGraphicsState(),c="S",A=_}var H=h.__private__.combineFontStyleAndFontWeight=function(g,E){if(g=="bold"&&E=="normal"||g=="bold"&&E==400||g=="normal"&&E=="italic"||g=="bold"&&E=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return E&&(g=E==400||E==="normal"?g==="italic"?"italic":"normal":E!=700&&E!=="bold"||g!=="normal"?(E==700?"bold":E)+""+g:"bold"),g};h.advancedAPI=function(g){var E=A===_;return E&&O.call(this),typeof g!="function"||(g(this),E&&$.call(this)),this},h.compatAPI=function(g){var E=A===S;return E&&$.call(this),typeof g!="function"||(g(this),E&&O.call(this)),this},h.isAdvancedAPI=function(){return A===S};var B,R=function(g){if(A!==S)throw new Error(g+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},X=h.roundToPrecision=h.__private__.roundToPrecision=function(g,E){var G=t||E;if(isNaN(g)||isNaN(G))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return g.toFixed(G).replace(/0+$/,"")};B=h.hpf=h.__private__.hpf=typeof l=="number"?function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return X(g,l)}:l==="smart"?function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return X(g,g>-1&&g<1?16:5)}:function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return X(g,16)};var L=h.f2=h.__private__.f2=function(g){if(isNaN(g))throw new Error("Invalid argument passed to
223jsPDF.f2");return X(g,2)},I=h.__private__.f3=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f3");return X(g,3)},J=h.scale=h.__private__.scale=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.scale");return A===_?g*st:A===S?g:void 0},q=function(g){return J(function(E){return A===_?Ma()-E:A===S?E:void 0}(g))};h.__private__.setPrecision=h.setPrecision=function(g){typeof parseInt(g,10)=="number"&&(t=parseInt(g,10))};var se,ae="00000000000000000000000000000000",le=h.__private__.getFileId=function(){return ae},Y=h.__private__.setFileId=function(g){return ae=g!==void 0&&/^[a-fA-F0-9]{32}$/.test(g)?g.toUpperCase():ae.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d!==null&&(Bn=new cc(d.userPermissions,d.userPassword,d.ownerPassword,ae)),ae};h.setFileId=function(g){return Y(g),this},h.getFileId=function(){return le()};var Z=h.__private__.convertDateToPDFDate=function(g){var E=g.getTimezoneOffset(),G=E<0?"+":"-",ee=Math.floor(Math.abs(E/60)),oe=Math.abs(E%60),we=[G,K(ee),"'",K(oe),"'"].join("");return["D:",g.getFullYear(),K(g.getMonth()+1),K(g.getDate()),K(g.getHours()),K(g.getMinutes()),K(g.getSeconds()),we].join("")},he=h.__private__.convertPDFDateToDate=function(g){var E=parseInt(g.substr(2,4),10),G=parseInt(g.substr(6,2),10)-1,ee=parseInt(g.substr(8,2),10),oe=parseInt(g.substr(10,2),10),we=parseInt(g.substr(12,2),10),Se=parseInt(g.substr(14,2),10);return new Date(E,G,ee,oe,we,Se,0)},fe=h.__private__.setCreationDate=function(g){var E;if(g===void 0&&(g=new Date),g instanceof Date)E=Z(g);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(g))throw new Error("Invalid argument passed to jsPDF.setCreationDate");E=g}return se=E},C=h.__private__.getCreationDate=function(g){var E=se;return g==="jsDate"&&(E=he(se)),E};h.setCreationDate=function(g){return fe(g),this},h.getCreationDate=function(g){return C(g)};var U,K=h.__private__.padd2=function(g){return("0"+parseInt(g)).slice(-2)},Q=h.__private__.padd2Hex=function(g){return("00"+(g=g.toString())).substr(g.length)},ne=0,re=[],pe=[],me=0,ve=[],Ae=[],Re=!1,Le=pe;h.__private__.setCustomOutputDestination=function(g){Re=!0,Le=g};var He=function(g){Re||(Le=g)};h.__private__.resetCustomOutputDestination=function(){Re=!1,Le=pe};var z=h.__private__.out=function(g){return g=g.toString(),me+=g.length+1,Le.push(g),Le},Pe=h.__private__.write=function(g){return z(arguments.length===1?g.toString():Array.prototype.join.call(arguments," "))},ht=h.__private__.getArrayBuffer=function(g){for(var E=g.length,G=new ArrayBuffer(E),ee=new Uint8Array(G);E--;)ee[E]=g.charCodeAt(E);return G},Ye=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return Ye};var xe=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(g){return xe=A===S?g/st:g,this};var tt,Oe=h.__private__.getFontSize=h.getFontSize=function(){return A===_?xe:xe*st},Ze=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(g){return Ze=g,this},h.__private__.getR2L=h.getR2L=function(){return Ze};var Be,It=h.__private__.setZoomMode=function(g){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(g))tt=g;else if(isNaN(g)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(g)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+g+'" is not recognized.');tt=g}
vendor: 10,522 bytes, lines 223-226
223else tt=parseInt(g,10)};h.__private__.getZoomMode=function(){return tt};var St,Xe=h.__private__.setPageMode=function(g){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(g)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+g+'" is not recognized.');Be=g};h.__private__.getPageMode=function(){return Be};var gt=h.__private__.setLayoutMode=function(g){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(g)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+g+'" is not recognized.');St=g};h.__private__.getLayoutMode=function(){return St},h.__private__.setDisplayMode=h.setDisplayMode=function(g,E,G){return It(g),gt(E),Xe(G),this};var kt={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(g){if(Object.keys(kt).indexOf(g)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return kt[g]},h.__private__.getDocumentProperties=function(){return kt},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(g){for(var E in kt)kt.hasOwnProperty(E)&&g[E]&&(kt[E]=g[E]);return this},h.__private__.setDocumentProperty=function(g,E){if(Object.keys(kt).indexOf(g)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return kt[g]=E};var $e,st,We,ln,At,at={},vt={},Dt=[],Qe={},Wt={},nt={},lt={},Yt=null,yt=0,Ve=[],jt=new L_(h),it=e.hotfixes||[],ut={},Lt={},vn=[],Ue=function g(E,G,ee,oe,we,Se){if(!(this instanceof g))return new g(E,G,ee,oe,we,Se);isNaN(E)&&(E=1),isNaN(G)&&(G=0),isNaN(ee)&&(ee=0),isNaN(oe)&&(oe=1),isNaN(we)&&(we=0),isNaN(Se)&&(Se=0),this._matrix=[E,G,ee,oe,we,Se]};Object.defineProperty(Ue.prototype,"sx",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(Ue.prototype,"shy",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(Ue.prototype,"shx",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(Ue.prototype,"sy",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(Ue.prototype,"tx",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(Ue.prototype,"ty",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(Ue.prototype,"a",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(Ue.prototype,"b",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(Ue.prototype,"c",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(Ue.prototype,"d",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(Ue.prototype,"e",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(Ue.prototype,"f",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(Ue.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ue.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ue.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ue.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ue.prototype.join=function(g){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(B).join(g)},Ue.prototype.multiply=function(g){var E=g.sx*this.sx+g.shy*this.shx,G=g.sx*this.shy+g.shy*this.sy,ee=g.shx*this.sx+g.sy*this.shx,oe=g.shx*this.shy+g.sy*this.sy,we=g.tx*this.sx+g.ty*this.shx+this.tx,Se=g.tx*this.shy+g.ty*this.sy+this.ty;return new Ue(E,G,ee,oe,we,Se)},Ue.prototype.decompose=function(){var g=this.sx,E=this.shy,G=this.shx,ee=this.sy,oe=this.tx,we=this.ty,Se=Math.sqrt(g*g+E*E),Me=(g/=Se)*G+(E/=Se)*ee;G-=g*Me,ee-=E*Me;var Ge=Math.sqrt(G*G+ee*ee);return Me/=Ge,g*(ee/=Ge)<E*(G/=Ge)&&(g=-g,E=-E,Me=-Me,Se=-Se),{scale:new Ue(Se,0,0,Ge,0,0),translate:new Ue(1,0,0,1,oe,we),rotate:new Ue(g,E,-E,g,0,0),skew:new Ue(1,0,Me,1,0,0)}},Ue.prototype.toString=function(g){return this.join(" ")},Ue.prototype.inversed=function(){var g=this.sx,E=this.shy,G=this.shx,ee=this.sy,oe=this.tx,we=this.ty,Se=1/(g*ee-E*G),Me=ee*Se,Ge=-E*Se,ct=-G*Se,wt=g*Se;return new Ue(Me,Ge,ct,wt,-Me*oe-ct*we,-Ge*oe-wt*we)},Ue.prototype.applyToPoint=function(g){var E=g.x*this.sx+g.y*this.shx+this.tx,G=g.x*this.shy+g.y*this.sy+this.ty;return new Ws(E,G)},Ue.prototype.applyToRectangle=function(g){var E=this.applyToPoint(g),G=this.applyToPoint(new Ws(g.x+g.w,g.y+g.h));return new Tu(E.x,E.y,G.x-E.x,G.y-E.y)},Ue.prototype.clone=function(){var g=this.sx,E=this.shy,G=this.shx,ee=this.sy,oe=this.tx,we=this.ty;return new Ue(g,E,G,ee,oe,we)},h.Matrix=Ue;var Gn=h.matrixMult=function(g,E){return E.multiply(g)},Qn=new Ue(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=Qn;var cn=function(g,E){if(!Wt[g]){var G=(E instanceof tl?"Sh":"P")+(Object.keys(Qe).length+1).toString(10);E.id=G,Wt[g]=G,Qe[G]=E,jt.publish("addPattern",E)}};h.ShadingPattern=tl,h.TilingPattern=Cc,h.addShadingPattern=function(g,E){return R("addShadingPattern()"),cn(g,E),this},h.beginTilingPattern=function(g){R("beginTilingPattern()"),Ru(g.boundingBox[0],g.boundingBox[1],g.boundingBox[2]-g.boundingBox[0],g.boundingBox[3]-g.boundingBox[1],g.matrix)},h.endTilingPattern=function(g,E){R("endTilingPattern()"),E.stream=Ae[U].join(` 224`),cn(g,E),jt.publish("endTilingPattern",E),vn.pop().restore()};var An,yn=h.__private__.newObject=function(){var g=Kn();return er(g,!0),g},Kn=h.__private__.newObjectDeferred=function(){return ne++,re[ne]=function(){return me},ne},er=function(g,E){return E=typeof E=="boolean"&&E,re[g]=me,E&&z(g+" 0 obj"),g},Ta=h.__private__.newAdditionalObject=function(){var g={objId:Kn(),content:""};return ve.push(g),g},Eo=Kn(),Oi=Kn(),ls=h.__private__.decodeColorString=function(g){var E=g.split(" ");if(E.length!==2||E[1]!=="g"&&E[1]!=="G")E.length!==5||E[4]!=="k"&&E[4]!=="K"||(E=[(1-E[0])*(1-E[3]),(1-E[1])*(1-E[3]),(1-E[2])*(1-E[3]),"r"]);else{var G=parseFloat(E[0]);E=[G,G,G,"r"]}for(var ee="#",oe=0;oe<3;oe++)ee+=("0"+Math.floor(255*parseFloat(E[oe])).toString(16)).slice(-2);return ee},Ii=h.__private__.encodeColorString=function(g){var E;typeof g=="string"&&(g={ch1:g});var G=g.ch1,ee=g.ch2,oe=g.ch3,we=g.ch4,Se=g.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof G=="string"&&G.charAt(0)!=="#"){var Me=new vE(G);if(Me.ok)G=Me.toHex();else if(!/^\d*\.?\d*$/.test(G))throw new Error('Invalid color "'+G+'" passed to jsPDF.encodeColorString.')}if(typeof G=="string"&&/^#[0-9A-Fa-f]{3}$/.test(G)&&(G="#"+G[1]+G[1]+G[2]+G[2]+G[3]+G[3]),typeof G=="string"&&/^#[0-9A-Fa-f]{6}$/.test(G)){var Ge=parseInt(G.substr(1),16);G=Ge>>16&255,ee=Ge>>8&255,oe=255&Ge}if(ee===void 0||we===void 0&&G===ee&&ee===oe)E=typeof G=="string"?G+" "+Se[0]:g.precision===2?L(G/255)+" "+Se[0]:I(G/255)+" "+Se[0];else if(we===void 0||qt(we)==="object"){if(we&&!isNaN(we.a)&&we.a===0)return["1.","1.","1.",Se[1]].join(" ");E=typeof G=="string"?[G,ee,oe,Se[1]].join(" "):g.precision===2?[L(G/255),L(ee/255),L(oe/255),Se[1]].join(" "):[I(G/255),I(ee/255),I(oe/255),Se[1]].join(" ")}else E=typeof G=="string"?[G,ee,oe,we,Se[2]].join(" "):g.precision===2?[L(G),L(ee),L(oe),L(we),Se[2]].join(" "):[I(G),I(ee),I(oe),I(we),Se[2]].join(" ");return E},ji=h.__private__.getFilters=function(){return o},gi=h.__private__.putStream=function(g){var E=(g=g||{}).data||"",G=g.filters||ji(),ee=g.alreadyAppliedFilters||[],oe=g.addLength1||!1,we=E.length,Se=g.objectId,Me=function(Un){return Un};if(d!==null&&Se===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");d!==null&&(Me=Bn.encryptor(Se,0));var Ge={};G===!0&&(G=["FlateEncode"]);var ct=g.additionalKeyValues||[],wt=(Ge=Je.API.processDataByFilters!==void 0?Je.API.processDataByFilters(E,G):{data:E,reverseChain:[]}).reverseChain+(Array.isArray(ee)?ee.join(" "):ee.toString());if(Ge.data.length!==0&&(ct.push({key:"Length",value:Ge.data.length}),oe===!0&&ct.push({key:"Length1",value:we})),wt.length!=0)if(wt.split("/").length-1==1)ct.push({key:"Filter",value:wt});else{ct.push({key:"Filter",value:"["+wt+"]"});for(var Tt=0;Tt<ct.length;Tt+=1)if(ct[Tt].key==="DecodeParms"){for(var hn=[],jn=0;jn<Ge.reverseChain.split("/").length-1;jn+=1)hn.push("null");hn.push(ct[Tt].value),ct[Tt].value="["+hn.join(" ")+"]"}}z("<<");for(var Jt=0;Jt<ct.length;Jt++)z("/"+ct[Jt].key+" "+ct[Jt].value);z(">>"),Ge.data.length!==0&&(z("stream"),z(Me(Ge.data)),z("endstream"))},Ra=h.__private__.putPage=function(g){var E=g.number,G=g.data,ee=g.objId,oe=g.contentsObjId;er(ee,!0),z("<</Type /Page"),z("/Parent "+g.rootDictionaryObjId+" 0 R"),z("/Resources "+g.resourceDictionaryObjId+" 0 R"),z("/MediaBox ["+parseFloat(B(g.mediaBox.bottomLeftX))+" "+parseFloat(B(g.mediaBox.bottomLeftY))+" "+B(g.mediaBox.topRightX)+" "+B(g.mediaBox.topRightY)+"]"),g.cropBox!==null&&z("/CropBox ["+B(g.cropBox.bottomLeftX)+" "+B(g.cropBox.bottomLeftY)+" "+B(g.cropBox.topRightX)+" "+B(g.cropBox.topRightY)+"]"),g.bleedBox!==null&&z("/BleedBox ["+B(g.bleedBox.bottomLeftX)+" "+B(g.bleedBox.bottomLeftY)+" "+B(g.bleedBox.topRightX)+" "+B(g.bleedBox.topRightY)+"]"),g.trimBox!==null&&z("/TrimBox ["+B(g.trimBox.bottomLeftX)+" "+B(g.trimBox.bottomLeftY)+" "+B(g.trimBox.topRightX)+" "+B(g.trimBox.topRightY)+"]"),g.artBox!==null&&z("/ArtBox ["+B(g.artBox.bottomLeftX)+" "+B(g.artBox.bottomLeftY)+" "+B(g.artBox.topRightX)+" "+B(g.artBox.topRightY)+"]"),typeof g.userUnit=="number"&&g.userUnit!==1&&z("/UserUnit "+g.userUnit),jt.publish("putPage",{objId:ee,pageContext:Ve[E],pageNumber:E,page:G}),z("/Contents "+oe+" 0 R"),z(">>"),z("endobj");var we=G.join(` 225`);return A===S&&(we+=` 226Q`),er(oe,!0),gi({data:we,filters:ji(),objectId:oe}),z("endobj"),ee},cs=h.__private__.putPages=function(){var g,E,G=[];for(g=1;g<=yt;g++)Ve[g].objId=Kn(),Ve[g].contentsObjId=Kn();for(g=1;g<=yt;g++)G.push(Ra({number:g,data:Ae[g],objId:Ve[g].objId,contentsObjId:Ve[g].contentsObjId,mediaBox:Ve[g].mediaBox,cropBox:Ve[g].cropBox,bleedBox:Ve[g].bleedBox,trimBox:Ve[g].trimBox,artBox:Ve[g].artBox,userUnit:Ve[g].userUnit,rootDictionaryObjId:Eo,resourceDictionaryObjId:Oi}));er(Eo,!0),z("<</Type /Pages");var ee="/Kids [";for(E=0;E<yt;E++)ee+=G[E]+" 0 R ";z(ee+"]"),z("/Count "+yt),z(">>
226"),z("endobj"),jt.publish("postPutPages")},Oa=function(g){jt.publish("putFont",{font:g,out:z,newObject:yn,putStream:gi}),g.isAlreadyPutted!==!0&&(g.objectNumber=yn(),z("<<"),z("/Type /Font"),z("/BaseFont /"+uc(g.postScriptName)),z("/Subtype /Type1"),typeof g.encoding=="string"&&z("/Encoding /"+g.encoding),z("/FirstChar 32"),z("/LastChar 255"),z(">>"),z("endobj"))},Fl=function(g){g.objectNumber=yn();var E=[];E.push({key:"Type",value:"/XObject"}),E.push({key:"Subtype",value:"/Form"}),E.push({key:"BBox",value:"["+[B(g.x),B(g.y),B(g.x+g.width),B(g.y+g.height)].join(" ")+"]"}),E.push({key:"Matrix",value:"["+g.matrix.toString()+"]"});var G=g.pages[1].join(` 227`);gi({data:G,additionalKeyValues:E,objectId:g.objectNumber}),z("endobj")},Dl=function(g,E){E||(E=21);var G=yn(),ee=function(Se,Me){var Ge,ct=[],wt=1/(Me-1);for(Ge=0;Ge<1;Ge+=wt)ct.push(Ge);if(ct.push(1),Se[0].offset!=0){var Tt={offset:0,color:Se[0].color};Se.unshift(Tt)}if(Se[Se.length-1].offset!=1){var hn={offset:1,color:Se[Se.length-1].color};Se.push(hn)}for(var jn="",Jt=0,Un=0;Un<ct.length;Un++){for(Ge=ct[Un];Ge>Se[Jt+1].offset;)Jt++;var Fn=Se[Jt].offset,tr=(Ge-Fn)/(Se[Jt+1].offset-Fn),Ks=Se[Jt].color,Di=Se[Jt+1].color;jn+=Q(Math.round((1-tr)*Ks[0]+tr*Di[0]).toString(16))+Q(Math.round((1-tr)*Ks[1]+tr*Di[1]).toString(16))+Q(Math.round((1-tr)*Ks[2]+tr*Di[2]).toString(16))}return jn.trim()}(g.colors,E),oe=[];oe.push({key:"FunctionType",value:"0"}),oe.push({key:"Domain",value:"[0.0 1.0]"}),oe.push({key:"Size",value:"["+E+"]"}),oe.push({key:"BitsPerSample",value:"8"}),oe.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),oe.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),gi({data:ee,additionalKeyValues:oe,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:G}),z("endobj"),g.objectNumber=yn(),z("<< /ShadingType "+g.type),z("/ColorSpace /DeviceRGB");var we="/Coords ["+B(parseFloat(g.coords[0]))+" "+B(parseFloat(g.coords[1]))+" ";g.type===2?we+=B(parseFloat(g.coords[2]))+" "+B(parseFloat(g.coords[3])):we+=B(parseFloat(g.coords[2]))+" "+B(parseFloat(g.coords[3]))+" "+B(parseFloat(g.coords[4]))+" "+B(parseFloat(g.coords[5])),z(we+="]"),g.matrix&&z("/Matrix ["+g.matrix.toString()+"]"),z("/Function "+G+" 0 R"),z("/Extend [true true]"),z(">>"),z("endobj")},Ml=function(g,E){var G=Kn(),ee=yn();E.push({resourcesOid:G,objectOid:ee}),g.objectNumber=ee;var oe=[];oe.push({key:"Type",value:"/Pattern"}),oe.push({key:"PatternType",value:"1"}),oe.push({key:"PaintType",value:"1"}),oe.push({key:"TilingType",value:"1"}),oe.push({key:"BBox",value:"["+g.boundingBox.map(B).join(" ")+"]"}),oe.push({key:"XStep",value:B(g.xStep)}
vendor: 4,248 bytes, line 227
227),oe.push({key:"YStep",value:B(g.yStep)}),oe.push({key:"Resources",value:G+" 0 R"}),g.matrix&&oe.push({key:"Matrix",value:"["+g.matrix.toString()+"]"}),gi({data:g.stream,additionalKeyValues:oe,objectId:g.objectNumber}),z("endobj")},gm=function(g){for(var E in g.objectNumber=yn(),z("<<"),g)switch(E){case"opacity":z("/ca "+L(g[E]));break;case"stroke-opacity":z("/CA "+L(g[E]))}z(">>"),z("endobj")},Su=function(g){er(g.resourcesOid,!0),z("<<"),z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var E in z("/Font <<"),at)at.hasOwnProperty(E)&&(p===!1||p===!0&&m.hasOwnProperty(E))&&z("/"+E+" "+at[E].objectNumber+" 0 R");z(">>")}(),function(){if(Object.keys(Qe).length>0){for(var E in z("/Shading <<"),Qe)Qe.hasOwnProperty(E)&&Qe[E]instanceof tl&&Qe[E].objectNumber>=0&&z("/"+E+" "+Qe[E].objectNumber+" 0 R");jt.publish("putShadingPatternDict"),z(">>")}}(),function(E){if(Object.keys(Qe).length>0){for(var G in z("/Pattern <<"),Qe)Qe.hasOwnProperty(G)&&Qe[G]instanceof h.TilingPattern&&Qe[G].objectNumber>=0&&Qe[G].objectNumber<E&&z("/"+G+" "+Qe[G].objectNumber+" 0 R");jt.publish("putTilingPatternDict"),z(">>")}}(g.objectOid),function(){if(Object.keys(nt).length>0){var E;for(E in z("/ExtGState <<"),nt)nt.hasOwnProperty(E)&&nt[E].objectNumber>=0&&z("/"+E+" "+nt[E].objectNumber+" 0 R");jt.publish("putGStateDict"),z(">>")}}(),function(){for(var E in z("/XObject <<"),ut)ut.hasOwnProperty(E)&&ut[E].objectNumber>=0&&z("/"+E+" "+ut[E].objectNumber+" 0 R");jt.publish("putXobjectDict"),z(">>")}(),z(">>"),z("endobj")},Dh=function(g){vt[g.fontName]=vt[g.fontName]||{},vt[g.fontName][g.fontStyle]=g.id},Mh=function(g,E,G,ee,oe){var we={id:"F"+(Object.keys(at).length+1).toString(10),postScriptName:g,fontName:E,fontStyle:G,encoding:ee,isStandardFont:oe||!1,metadata:{}};return jt.publish("addFont",{font:we,instance:this}),at[we.id]=we,Dh(we),we.id},vi=h.__private__.pdfEscape=h.pdfEscape=function(g,E){return function(G,ee){var oe,we,Se,Me,Ge,ct,wt,Tt,hn;if(Se=(ee=ee||{}).sourceEncoding||"Unicode",Ge=ee.outputEncoding,(ee.autoencode||Ge)&&at[$e].metadata&&at[$e].metadata[Se]&&at[$e].metadata[Se].encoding&&(Me=at[$e].metadata[Se].encoding,!Ge&&at[$e].encoding&&(Ge=at[$e].encoding),!Ge&&Me.codePages&&(Ge=Me.codePages[0]),typeof Ge=="string"&&(Ge=Me[Ge]),Ge)){for(wt=!1,ct=[],oe=0,we=G.length;oe<we;oe++)(Tt=Ge[G.charCodeAt(oe)])?ct.push(String.fromCharCode(Tt)):ct.push(G[oe]),ct[oe].charCodeAt(0)>>8&&(wt=!0);G=ct.join("")}for(oe=G.length;wt===void 0&&oe!==0;)G.charCodeAt(oe-1)>>8&&(wt=!0),oe--;if(!wt)return G;for(ct=ee.noBOM?[]:[254,255],oe=0,we=G.length;oe<we;oe++){if((hn=(Tt=G.charCodeAt(oe))>>8)>>8)throw new Error("Character at position "+oe+" of string '"+G+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ct.push(hn),ct.push(Tt-(hn<<8))}return String.fromCharCode.apply(void 0,ct)}(g,E).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ku=h.__private__.beginPage=function(g){Ae[++yt]=[],Ve[yt]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(g[0]),topRightY:Number(g[1])}},Uh(yt),He(Ae[U])},Bh=function(g,E){var G,ee,oe;switch(n=E||n,typeof g=="string"&&(G=v(g.toLowerCase()),Array.isArray(G)&&(ee=G[0],oe=G[1])),Array.isArray(g)&&(ee=g[0]*st,oe=g[1]*st),isNaN(ee)&&(ee=i[0],oe=i[1]),(ee>14400||oe>14400)&&(Kt.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ee=Math.min(14400,ee),oe=Math.min(14400,oe)),i=[ee,oe],n.substr(0,1)){case"l":oe>ee&&(i=[oe,ee]);break;case"p":ee>oe&&(i=[oe,ee])}ku(i),dt(Nu),z(zl),Lu!==0&&z(Lu+" J"),Pu!==0&&z(Pu+" j"),jt.publish("addPage",{pageNumber:yt})},Au=function(g){g>0&&g<=yt&&(Ae.splice(g,1),Ve.splice(g,1),yt--,U>yt&&(U=yt),this.setPage(U))},Uh=function(g){g>0&&g<=yt&&(U=g)},$h=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return Ae.length-1},zh=function(g,E,G){var ee,oe=void 0;return G=G||{},g=g!==void 0?g:at[$e].fontName,E=E!==void 0?E:at[$e].fontStyle,ee=g.toLowerCase(),vt[ee]!==void 0&&vt[ee][E]!==void 0?oe=vt[ee][E]:vt[g]!==void 0&&vt[g][E]!==void 0?oe=vt[g][E]:G.disableWarning===!1&&Kt.warn("Unable to look up font label for font '"+g+"', '"+E+"'. Refer to getFontList(
227) for available fonts."),oe||G.noFallback||(oe=vt.times[E])==null&&(oe=vt.times.normal),oe},us=h.__private__.putInfo=function(){var g=yn(),E=function(ee){return ee};for(var G in d!==null&&(E=Bn.encryptor(g,0)),z("<<"),z("/Producer ("+vi(E("jsPDF "+Je.version))+")"),kt)kt.hasOwnProperty(G)&&kt[G]&&z("/"+G.substr(0,1).toUpperCase()+G.substr(1)+" ("+vi(E(kt[G]))+")");z("/CreationDate ("+vi(E(se))+")"),z(">>"),z("endobj")},Bl=h.__private__.putCatalog=function(g){var E=(g=g||{}).rootDictionaryObjId||Eo;switch(yn(),z("<<"),z("/Type /Catalog"),z("/Pages "+E+" 0 R"),tt||(tt="fullwidth"),tt){case"fullwidth":z("/OpenAction [3 0 R /FitH null]");break;case"fullheight":z("/OpenAction [3 0 R /FitV null]");break;case"fullpage":z("/OpenAction [3 0 R /Fit]");break;case"original":z("/OpenAction [3 0 R /XYZ null null 1]");break;default:var G=""+tt;G.substr(G.length-1)==="%"&&(tt=parseInt(tt)/100),typeof tt=="number"&&z("/OpenAction [3 0 R /XYZ null null "+L(tt)+"]")}switch(St||(St="continuous"),St){case"continuous":z("/PageLayout /OneColumn");break;case"single":z("/PageLayout /SinglePage");break;case"two":case"twoleft":z("/PageLayout /TwoColumnLeft");break;case"tworight":z("/PageLayout /TwoColumnRight")}Be&&z("/PageMode /"+Be),jt.publish("putCatalog"),z(">>"),z("endobj")},vm=h.__private__.putTrailer=function(){z("trailer"),z("<<"),z("/Size "+(ne+1)),z("/Root "+ne+" 0 R"),z("/Info "+(ne-1)+" 0 R"),d!==null&&z("/Encrypt "+Bn.oid+" 0 R"),z("/ID [ <"+ae+"> <"+ae+"> ]"),z(">>")},In=h.__private__.putHeader=function(){z("%PDF-"+y),z("%ºÃˆ ")},qh=h.__private__.putXRef=function(){var g="0000000000";z("xref"),z("0 "+(ne+1)),z("0000000000 65535 f ");for(var E=1;E<=ne;E++)typeof re[E]=="function"?z((g+re[E]()).slice(-10)+" 00000 n "):re[E]!==void 0?z((g+re[E]).slice(-10)+" 00000 n "):z("0000000000 00000 n ")},ds=h.__private__.buildDocument=function(){var g;ne=0,me=0,pe=[],re=[],ve=[],Eo=Kn(),Oi=Kn(),He(pe),jt.publish("buildDocument"),In(),cs(),function(){jt.publish("putAdditionalObjects");for(var G=0;G<ve.length;G++){var ee=ve[G];er(ee.objId,!0),z(ee.content),z("endobj")}jt.publish("postPutAdditionalObjects")}(),g=[],function(){for(var G in at)at.hasOwnProperty(G)&&(p===!1||p===!0&&m.hasOwnProperty(G))&&Oa(at[G])}(),function(){var G;for(G in nt)nt.hasOwnProperty(G)&&gm(nt[G])}(),function(){for(var G in ut)ut.hasOwnProperty(G)&&Fl(ut[G])}(),function(G){var ee;for(ee in Qe)Qe.hasOwnProperty(ee)&&(Qe[ee]instanceof tl?Dl(Qe[ee]):Qe[ee]instanceof Cc&&Ml(Qe[ee],G))}(g),jt.publish("putResources"),g.forEach(Su),Su({resourcesOid:Oi,objectOid:Number.MAX_SAFE_INTEGER}),jt.publish("postPutResources"),d!==null&&(Bn.oid=yn(),z("<<"),z("/Filter /Standard"),z("/V "+Bn.v),z("/R "+Bn.r),z("/U <"+Bn.toHexString(Bn.U)+">"),z("/O <"+Bn.toHexString(Bn.O)+">"),z("/P "+Bn.P),z(">>"),z("endobj")),us(),Bl();var E=me;return qh(),vm(),z("startxref"),z(""+E),z("%%EOF"),He(Ae[U]),pe.join(` 228`)},Ul=h.__private__.getBlob=function(g){return new Blob([ht(g)],{type:"application/pdf"})},Hh=h.output=h.__private__.output=(An=function(g,E){switch(typeof(E=E||{})=="string"?E={filename:E}:E.filename=E.filename||"generated.pdf",g){case void 0:return ds();case"save":h.save(E.filename);break;case"arraybuffer":return ht(ds());case"blob":return Ul(ds());case"bloburi":case"bloburl":if(ot.URL!==void 0&&typeof ot.URL.createObjectURL=="function")return ot.URL&&ot.URL.createObjectURL(Ul(ds()))||void 0;Kt.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var G="",ee=ds();try{G=E_(ee)}catch{G=E_(unescape(encodeURIComponent(ee)))}return"data:application/pdf;filename="+E.filename+";base64,"+G;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ot)==="[object Window]"){var oe="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",we=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';E.pdfObjectUrl&&(oe=E.pdfObjectUrl,we="");var Se='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+oe+'"'+we+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(E)+");<\/script></body></html>",Me=ot.open();return Me!==null&&Me.document.write(Se),Me}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ot)==="[object Window]"){var Ge='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(E.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+E.filename+'" width="500px" height="400px" /></body></html>',ct=ot.open();if(ct!==null){ct.document.write(Ge);var wt=this;ct.document.documentElement.querySelector("#pdfViewer").onload=function(){ct.document.title=E.filename,ct.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(wt.output("bloburl"))}}return ct}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ot)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Tt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",E)+'"></iframe></body></html>',hn=ot.open();if(hn!==null&&(hn.document.write(Tt),hn.document.title=E.filename),hn||t
vendor: 13,581 bytes, lines 228-243
228ypeof safari>"u")return hn;break;case"datauri":case"dataurl":return ot.document.location.href=this.output("datauristring",E);default:return null}},An.foo=function(){try{return An.apply(this,arguments)}catch(G){var g=G.stack||"";~g.indexOf(" at ")&&(g=g.split(" at ")[1]);var E="Error in function "+g.split(` 229`)[0].split("<")[0]+": "+G.message;if(!ot.console)throw new Error(E);ot.console.error(E,G),ot.alert&&alert(E)}},An.foo.bar=An,An.foo),yi=function(g){return Array.isArray(it)===!0&&it.indexOf(g)>-1};switch(r){case"pt":st=1;break;case"mm":st=72/25.4;break;case"cm":st=72/2.54;break;case"in":st=72;break;case"px":st=yi("px_scaling")==1?.75:96/72;break;case"pc":case"em":st=12;break;case"ex":st=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);st=r}var Bn=null;fe(),Y();var $s=h.__private__.getPageInfo=h.getPageInfo=function(g){if(isNaN(g)||g%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ve[g].objId,pageNumber:g,pageContext:Ve[g]}},Wh=h.__private__.getPageInfoByObjId=function(g){if(isNaN(g)||g%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var E in Ve)if(Ve[E].objId===g)break;return $s(E)},ym=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:Ve[U].objId,pageNumber:U,pageContext:Ve[U]}};h.addPage=function(){return Bh.apply(this,arguments),this},h.setPage=function(){return Uh.apply(this,arguments),He.call(this,Ae[U]),this},h.insertPage=function(g){return this.addPage(),this.movePage(U,g),this},h.movePage=function(g,E){var G,ee;if(g>E){G=Ae[g],ee=Ve[g];for(var oe=g;oe>E;oe--)Ae[oe]=Ae[oe-1],Ve[oe]=Ve[oe-1];Ae[E]=G,Ve[E]=ee,this.setPage(E)}else if(g<E){G=Ae[g],ee=Ve[g];for(var we=g;we<E;we++)Ae[we]=Ae[we+1],Ve[we]=Ve[we+1];Ae[E]=G,Ve[E]=ee,this.setPage(E)}return this},h.deletePage=function(){return Au.apply(this,arguments),this},h.__private__.text=h.text=function(g,E,G,ee,oe){var we,Se,Me,Ge,ct,wt,Tt,hn,jn,Jt=(ee=ee||{}).scope||this;if(typeof g=="number"&&typeof E=="number"&&(typeof G=="string"||Array.isArray(G))){var Un=G;G=E,E=g,g=Un}if(arguments[3]instanceof Ue==0?(Me=arguments[4],Ge=arguments[5],qt(Tt=arguments[3])==="object"&&Tt!==null||(typeof Me=="string"&&(Ge=Me,Me=null),typeof Tt=="string"&&(Ge=Tt,Tt=null),typeof Tt=="number"&&(Me=Tt,Tt=null),ee={flags:Tt,angle:Me,align:Ge})):(R("The transform parameter of text() with a Matrix value"),jn=oe),isNaN(E)||isNaN(G)||g==null)throw new Error("Invalid arguments passed to jsPDF.text");if(g.length===0)return Jt;var Fn,tr="",Ks=typeof ee.lineHeightFactor=="number"?ee.lineHeightFactor:ja,Di=Jt.internal.scaleFactor;function Ys(Bt){return Bt=Bt.split(" ").join(Array(ee.TabLen||9).join(" ")),vi(Bt,Tt)}function Iu(Bt){for(var Vt,Nn=Bt.concat(),$n=[],Zs=Nn.length;Zs--;)typeof(Vt=Nn.shift())=="string"?$n.push(Vt):Array.isArray(Bt)&&(Vt.length===1||Vt[1]===void 0&&Vt[2]===void 0)?$n.push(Vt[0]):$n.push([Vt[0],Vt[1],Vt[2]]);return $n}function Hl(Bt,Vt){var Nn;if(typeof Bt=="string")Nn=Vt(Bt)[0];else if(Array.isArray(Bt)){for(var $n,Zs,Hu=Bt.concat(),Gl=[],nf=Hu.length;nf--;)typeof($n=Hu.shift())=="string"?Gl.push(Vt($n)[0]):Array.isArray($n)&&typeof $n[0]=="string"&&(Zs=Vt($n[0],$n[1],$n[2]),Gl.push([Zs[0],Zs[1],Zs[2]]));Nn=Gl}return Nn}var No=!1,Ba=!0;if(typeof g=="string")No=!0;else if(Array.isArray(g)){var Ua=g.concat();Se=[];for(var Co,nr=Ua.length;nr--;)(typeof(Co=Ua.shift())!="string"||Array.isArray(Co)&&typeof Co[0]!="string")&&(Ba=!1);No=Ba}if(No===!1)throw new Error('Type of text must be string or Array. "'+g+'" is not recognized.');typeof g=="string"&&(g=g.match(/[\r?\n]/)?g.split(/\r\n|\r|\n/g):[g]);var $a=xe/Jt.internal.scaleFactor,za=$a*(Ks-1);switch(ee.baseline){case"bottom":G-=za;break;case"top":G+=$a-za;break;case"hanging":G+=$a-2*za;break;case"middle":G+=$a/2-za}if((wt=ee.maxWidth||0)>0&&(typeof g=="string"?g=Jt.splitTextToSize(g,wt):Object.prototype.toString.call(g)==="[object Array]"&&(g=g.reduce(function(Bt,Vt){return Bt.concat(Jt.splitTextToSize(Vt,wt))},[]))),we={text:g,x:E,y:G,options:ee,mutex:{pdfEscape:vi,activeFontKey:$e,fonts:at,activeFontSize:xe}},jt.publish("preProcessText",we),g=we.text,Me=(ee=we.options).angle,jn instanceof Ue==0&&Me&&typeof Me=="number"){Me*=Math.PI/180,ee.rotationDirection===0&&(Me=-Me),A===S&&(Me=-Me);var ju=Math.cos(Me),Fu=Math.sin(Me);jn=new Ue(ju,Fu,-Fu,ju,0,0)}else Me&&Me instanceof Ue&&(jn=Me);A!==S||jn||(jn=Qn),(ct=ee.charSpace||Hs)!==void 0&&(tr+=B(J(ct))+` Tc 230`,this.setCharSpace(this.getCharSpace()||0)),(hn=ee.horizontalScale)!==void 0&&(tr+=B(100*hn)+` Tz 231`),ee.lang;var kr=-1,Js=ee.renderingMode!==void 0?ee.renderingMode:ee.stroke,Wl=Jt.internal.getCurrentPageInfo().pageContext;switch(Js){case 0:case!1:case"fill":kr=0;break;case 1:case!0:case"stroke":kr=1;break;case 2:case"fillThenStroke":kr=2;break;case 3:case"invisible":kr=3;break;case 4:case"fillAndAddForClipping":kr=4;break;case 5:case"strokeAndAddPathForClipping":kr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":kr=6;break;case 7:case"addToPathForClipping":kr=7}var ef=Wl.usedRenderingMode!==void 0?Wl.usedRenderingMode:-1;kr!==-1?tr+=kr+` Tr 232`:ef!==-1&&(tr+=`0 Tr 233`),kr!==-1&&(Wl.usedRenderingMode=kr),Ge=ee.align||"left";var wi,qa=xe*Ks,Du=Jt.internal.pageSize.getWidth(),Mu=at[$e];ct=ee.charSpace||Hs,wt=ee.maxWidth||0,Tt=Object.assign({autoencode:!0,noBOM:!0},ee.flags);var Lo=[],Ha=function(Bt){return Jt.getStringUnitWidth(Bt,{font:Mu,charSpace:ct,fontSize:xe,doKerning:!1})*xe/Di};if(Object.prototype.toString.call(g)==="[object Array]"){var Kr;Se=Iu(g),Ge!=="left"&&(wi=Se.map(Ha));var Yr,Po=0;if(Ge==="right"){E-=wi[0],g=[],nr=Se.length;for(var Xs=0;Xs<nr;Xs++)Xs===0?(Yr=zs(E),Kr=qs(G)):(Yr=J(Po-wi[Xs]),Kr=-qa),g.push([Se[Xs],Yr,Kr]),Po=wi[Xs]}else if(Ge==="center"){E-=wi[0]/2,g=[],nr=Se.length;for(var To=0;To<nr;To++)To===0?(Yr=zs(E),Kr=qs(G)):(Yr=J((Po-wi[To])/2),Kr=-qa),g.push([Se[To],Yr,Kr]),Po=wi[To]}else if(Ge==="left"){g=[],nr=Se.length;for(var Bu=0;Bu<nr;Bu++)g.push(Se[Bu])}else if(Ge==="justify"&&Mu.encoding==="Identity-H"){g=[],nr=Se.length,wt=wt!==0?wt:Du;for(var Vl=0,En=0;En<nr;En++)if(Kr=En===0?qs(G):-qa,Yr=En===0?zs(E):Vl,En<nr-1){var tf=J((wt-wi[En])/(Se[En].split(" ").length-1)),fs=Se[En].split(" ");g.push([fs[0]+" ",Yr,Kr]),Vl=0;for(var ps=1;ps<fs.length;ps++){var Uu=(Ha(fs[ps-1]+" "+fs[ps])-Ha(fs[ps]))*Di+tf;ps==fs.length-1?g.push([fs[ps],Uu,0]):g.push([fs[ps]+" ",Uu,0]),Vl-=Uu}}else g.push([Se[En],Yr,Kr]);g.push(["",Vl,0])}else{if(Ge!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(g=[],nr=Se.length,wt=wt!==0?wt:Du,En=0;En<nr;En++){Kr=En===0?qs(G):-qa,Yr=En===0?zs(E):0;var $u=Se[En].split(" ").length-1,zu=$u>0?(wt-wi[En])/$u:0;En<nr-1?Lo.push(B(J(zu))):Lo.push(0),g.push([Se[En],Yr,Kr])}}}(typeof ee.R2L=="boolean"?ee.R2L:Ze)===!0&&(g=Hl(g,function(Bt,Vt,Nn){return[Bt.split("").reverse().join(""),Vt,Nn]})),we={text:g,x:E,y:G,options:ee,mutex:{pdfEscape:vi,activeFontKey:$e,fonts:at,activeFontSize:xe}},jt.publish("postProcessText",we),g=we.text,Fn=we.mutex.isHex||!1;var qu=at[$e].encoding;qu!=="WinAnsiEncoding"&&qu!=="StandardEncoding"||(g=Hl(g,function(Bt,Vt,Nn){return[Ys(Bt),Vt,Nn]})),Se=Iu(g),g=[];for(var Ro,Oo,Io,Wa=Array.isArray(Se[0])?1:0,jo="",Va=function(Bt,Vt,Nn){var $n="";return Nn instanceof Ue?(Nn=typeof ee.angle=="number"?Gn(Nn,new Ue(1,0,0,1,Bt,Vt)):Gn(new Ue(1,0,0,1,Bt,Vt),Nn),A===S&&(Nn=Gn(new Ue(1,0,0,-1,0,0),Nn)),$n=Nn.join(" ")+` Tm 234`):$n=B(Bt)+" "+B(Vt)+` Td 235`,$n},bi=0;bi<Se.length;bi++){switch(jo="",Wa){case 1:Io=(Fn?"<":"(")+Se[bi][0]+(Fn?">":")"),Ro=parseFloat(Se[bi][1]),Oo=parseFloat(Se[bi][2]);break;case 0:Io=(Fn?"<":"(")+Se[bi]+(Fn?">":")"),Ro=zs(E),Oo=qs(G)}Lo!==void 0&&Lo[bi]!==void 0&&(jo=Lo[bi]+` Tw 236`),bi===0?g.push(jo+Va(Ro,Oo,jn)+Io):Wa===0?g.push(jo+Io):Wa===1&&g.push(jo+Va(Ro,Oo,jn)+Io)}g=Wa===0?g.join(` Tj 237T* `):g.join(` Tj 238`),g+=` Tj 239`;var ms=`BT 240/`;return ms+=$e+" "+xe+` Tf 241`,ms+=B(xe*Ks)+` TL 242`,ms+=Fa+` 243`,ms+=tr,ms+=g,z(ms+="ET"),m[$e]=!0,Jt};var wm=h.__private__.clip=h.clip=function(g){return z(g==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return wm("evenodd")},h.__private__.discardPath=h.discardPath=function(){return z("n"),this};var hs=h.__private__.isValidStyle=function(g){var E=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(g)!==-1&&(E=!0),E};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(g){return hs(g)&&(c=g),this};var Vh=h.__private__.getStyle=h.getStyle=function(g){var E=c;switch(g){case"D":case"S":E="S";break;case"F":E="f";break;case"FD":case"DF":E="B";break;case"f":case"f*":case"B":case"B*":E=g}return E},Gh=h.close=function(){return z("h"),this};h.stroke=function(){return z("S"),this},h.fill=function(g){return $l("f",g),this},h.fillEvenOdd=function(g){return $l("f*",g),this},h.fillStroke=function(g){return $l("B",g),this},h.fillStrokeEvenOdd=function(g){return $l("B*",g),this};var $l=function(g,E){qt(E)==="object"?_m(E,g):z(g)},Ia=function(g){g===null||A===S&&g===void 0||(g=Vh(g),z(g))};function bm(g,E,G,ee,oe){var we=new Cc(E||this.boundingBox,G||this.xStep,ee||this.yStep,this.gState,oe||this.matrix);we.stream=this.stream;var Se=g+"$$"+this.cloneIndex+++"$$";return cn(Se,we),we}var _m=function(g,E){var G=Wt[g.key],ee=Qe[G];if(ee instanceof tl)z("q"),z(xm(E)),ee.gState&&h.setGState(ee.gState),z(g.matrix.toString()+" cm"),z("/"+G+" sh"),z("Q");else if(ee instanceof Cc){var oe=new Ue(1,0,0,-1,0,Ma());g.matrix&&(oe=oe.multiply(g.matrix||Qn),G=bm.call(ee,g.key,g.boundingBox,g.xStep,g.yStep,oe).id),z("q"),z("/Pattern cs"),z("/"+G+" scn"),ee.gState&&h.setGState(ee.gState),z(E),z("Q")}},xm=function(g){switch(g){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Eu=h.moveTo=function(g,E){return z(B(J(g))+" "+B(q(E))+" m"),this},Kh=h.lineTo=function(g,E){return z(B(J(g))+" "+B(q(E))+" l"),this},Fi=h.curveTo=function(g,E,G,ee,oe,we){return z([B(J(g)),B(q(E)),B(J(G)),B(q(ee)),B(J(oe)),B(q(we)),"c"].join(" ")),this};h.__private__.line=h.line=function(g,E,G,ee,oe){if(isNaN(g)||isNaN(E)||isNaN(G)||isNaN(ee)||!hs(oe))throw new Error("Invalid arguments passed to jsPDF.line");return A===_?this.lines([[G-g,ee-E]],g,E,[1,1],oe||"S"):this.lines([[G-g,ee-E]],g,E,[1,1]).stroke()},h.__private__.lines=h.lines=function(g,E,G,ee,oe,we){var Se,Me,Ge,ct,wt,Tt,hn,jn,Jt,Un,Fn,tr;if(typeof g=="number"&&(tr=G,G=E,E=g,g=tr),ee=ee||[1,1],we=we||!1,isNaN(E)||isNaN(G)||!Array.isArray(g)||!Array.isArray(ee)||!hs(oe)||typeof we!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Eu(E,G),Se=ee[0],Me=ee[1],ct=g.length,Un=E,Fn=G,Ge=0;Ge<ct;Ge++)(wt=g[Ge]).length===2?(Un=wt[0]*Se+Un,Fn=wt[1]*Me+Fn,Kh(Un,Fn)):(Tt=wt[0]*Se+Un,hn=wt[1]*Me+Fn,jn=wt[2]*Se+Un,Jt=wt[3]*Me+Fn,Un=wt[4]*Se+Un,Fn=wt[5]*Me+Fn,Fi(Tt,hn,jn,Jt,Un,Fn));return we&&Gh(),Ia(oe),this},h.path=function(g){for(var E=0;E<g.length;E++){var G=g[E],ee=G.c;switch(G.op){case"m":Eu(ee[0],ee[1]);break;case"l":Kh(ee[0],ee[1]);break;case"c":Fi.apply(this,ee);break;case"h":Gh()}}return this},h.__private__.rect=h.rect=function(g,E,G,ee,oe){if(isNaN(g)||isNaN(E)||isNaN(G)||isNaN(ee)||!hs(oe))throw new Error("Invalid arguments passed to jsPDF.rect");return A===_&&(ee=-ee),z([B(J(g)),B(q(E)),B(J(G)),B(J(ee)),"re"].join(" ")),Ia(oe),this},h.__private__.triangle=h.triangle=function(g,E,G,ee,oe,we,Se){if(isNaN(g)||isNaN(E)||isNaN(G)||isNaN(ee)||isNaN(oe)||isNaN(we)||!hs(Se))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[G-g,ee-E],[oe-G,we-ee],[g-oe,E-we]],g,E,[1,1],Se,!0),this},h.__private__.roundedRect=h.roundedRect=function(g,E,G,ee,oe,we,Se){if(isNaN(g)||isNaN(E)||isNaN(G)||isNaN(ee)||isNaN(oe)||isNaN(we)||!hs(Se))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Me=4/3*(Math.SQRT2-1);return oe=Math.min(oe,.5*G),we=Math.min(we,.5*ee),this.lines([[G-2*oe,0],[oe*Me,0,oe,we-we*Me,oe,we],[0,ee-2*we],[0,we*Me,-oe*Me,we,-oe,we],[2*oe-G,0],[-oe*Me,0,-oe,-we*Me,-oe,-we],[0,2*we-ee],[0,-we*Me,oe*Me,-we,oe,-we]],g+oe,E,[1,1],Se,!0),this},h.__private__.ellipse=h.ellipse=function(g,E,G,ee,oe){if(isNaN(g)||isNaN(E)||isNaN(G)||isNaN(ee)||!hs(oe))throw new Error("Invalid arguments passed to jsPDF.ellipse");var we=4/3*(Math.SQRT2-1)*G,Se=4/3*(Math.SQRT2-1)*ee;return Eu(g+G,E),Fi(g+G,E-Se,g+we,E-ee,g,E-ee),Fi(g-we,E-ee,g-G,E-Se,g-G,E),Fi(g-G,E+Se,g-we,E+ee,g,E+ee),Fi(g+we,E+ee,g+G,E+Se,g+G,E),Ia(oe),this},h.__private__.circle=h.circle=function(g,E,G,ee){if(isNaN(g)||isNaN(E)||isNaN(G)||!hs(ee))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(g,E,G,G,ee)},h.setFont=function(g,E,G){return G&&(E=H(E,G)),$e=zh(g,E,{disableWarning:!1}),this};var Sm=h.__private__.getFont=h.getFont=function(){return at[zh.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var g,E,G={};for(g in vt)if(vt.hasOwnProperty(g))for(E in G[g]=[],vt[g])vt[g].hasOwnProperty(E)&&G[g].push(E);return G},h.addFont=function(g,E,G,ee,oe){var we=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&we.indexOf(arguments[3])!==-1?oe=arguments[3]:arguments[3]&&we.indexOf(arguments[3])==-1&&(G=H(G,ee)),Mh.call(this,g,E,G,oe=oe||"Identity-H")};var ja,Nu=e.lineWidth||.200025,km=h.__private__.getLineWidth=h.getLineWidth=function(){return Nu},dt=h.__private__.setLineWidth=h.setLineWidth=function(g){return Nu=g,z(B(J(g))+" w"),this};h.__private__.setLineDash=Je.API.setLineDash=Je.API.setLineDashPattern=function(g,E){if(g=g||[],E=E||0,isNaN(E)||!Array.isArray(g))throw new Error("Invalid arguments passed to
243jsPDF.setLineDash");return g=g.map(function(G){return B(J(G))}).join(" "),E=B(J(E)),z("["+g+"] "+E+" d"),this};var Am=h.__private__.getLineHeight=h.getLineHeight=function(){return xe*ja};h.__private__.getLineHeight=h.getLineHeight=function(){return xe*ja};var Em=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(g){return typeof(g=g||1.15)=="number"&&(ja=g),this},Nm=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return ja};Em(e.lineHeight);var zs=h.__private__.getHorizontalCoordinate=function(g){return J(g)},qs=h.__private__.getVerticalCoordinate=function(g){return A===S?g:Ve[U].mediaBox.topRightY-Ve[U].mediaBox.bottomLeftY-J(g)},Cm=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(g){return B(zs(g))},Lm=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(g){return B(qs(g))},zl=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return ls(zl)},h.__private__.setStrokeColor=h.setDrawColor=function(g,E,G,ee){return zl=Ii({ch1:g,ch2:E,ch3:G,ch4:ee,pdfColorType:"draw",precision:2}),z(zl),this};var Cu=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return ls(Cu)},h.__private__.setFillColor=h.setFillColor=function(g,E,G,ee){return Cu=Ii({ch1:g,ch2:E,ch3:G,ch4:ee,pdfColorType:"fill",precision:2}),z(Cu),this};var Fa=e.textColor||"0 g",Pm=h.__private__.getTextColor=h.getTextColor=function(){return ls(Fa)};h.__private__.setTextColor=h.setTextColor=function(g,E,G,ee){return Fa=Ii({ch1:g,ch2:E,ch3:G,ch4:ee,pdfColorType:"text",precision:3}),this};var Hs=e.charSpace,Tm=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(Hs||0)};h.__private__.setCharSpace=h.setCharSpace=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Hs=g,this};var Lu=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(g){var E=h.CapJoinStyles[g];if(E===void 0)throw new Error("Line cap style of '"+g+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Lu=E,z(E+" J"),this};var Pu=0;h.__private__.setLineJoin=h.setLineJoin=function(g){var E=h.CapJoinStyles[g];if(E===void 0)throw new Error("Line join style of '"+g+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Pu=E,z(E+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(g){if(g=g||0,isNaN(g))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return z(B(J(g))+" M"),this},h.GState=x0,h.setGState=function(g){(g=typeof g=="string"?nt[lt[g]]:Yh(null,g)).equals(Yt)||(z("/"+g.id+" gs"),Yt=g)};var Yh=function(g,E){if(!g||!lt[g]){var G=!1;for(var ee in nt)if(nt.hasOwnProperty(ee)&&nt[ee].equals(E)){G=!0;break}if(G)E=nt[ee];else{var oe="GS"+(Object.keys(nt).length+1).toString(10);nt[oe]=E,E.id=oe}return g&&(lt[g]=E.id),jt.publish("addGState",E),E}};h.addGState=function(g,E){return Yh(g,E),this},h.saveGraphicsState=function(){return z("q"),Dt.push({key:$e,size:xe,color:Fa}),this},h.restoreGraphicsState=function(){z("Q");var g=Dt.pop();return $e=g.key,xe=g.size,Fa=g.color,Yt=null,this},h.setCurrentTransformationMatrix=function(g){return z(g.toString()+" cm"),this},h.comment=function(g){return z("#"+g),this};var Ws=function(g,E){var G=g||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return G},set:function(we){isNaN(we)||(G=parseFloat(we))}});var ee=E||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ee},set:function(we){isNaN(we)||(ee=parseFloat(we))}});var oe="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return oe},set:function(we){oe=we.toString()}}),this},Tu=function(g,E,G,ee){Ws.call(this,g,E),this.type="rect";var oe=G||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return oe},set:function(Se){isNaN(Se)||(oe=parseFloat(Se))}});var we=ee||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return we},set:function(Se){isNaN(Se)||(we=parseFloat(Se))}}),this},ql=function(){this.page=yt,this.currentPage=U,this.pages=Ae.slice(0),this.pagesContext=Ve.slice(0),this.x=We,this.y=ln,this.matrix=At,this.width=Ou(U),this.height=Xh(U),this.outputDestination=Le,this.id="",this.objectNumber=-1};ql.prototype.restore=function(){yt=this.page,U=this.currentPage,Ve=this.pagesContext,Ae=this.pages,We=this.x,ln=this.y,At=this.matrix,Jh(U,this.width),Vs(U,this.height),Le=this.outputDestination};var Ru=function(g,E,G,ee,oe){vn.push(new ql),yt=U=0,Ae=[],We=g,ln=E,At=oe,ku([G,ee])};for(var Da in h.beginFormObject=function(g,E,G,ee,oe){return Ru(g,E,G,ee,oe),this},h.endFormObject=function(g){return function(E){if(Lt[E])vn.pop().restore(
vendor: 42,709 bytes, lines 243-262
243);else{var G=new ql,ee="Xo"+(Object.keys(ut).length+1).toString(10);G.id=ee,Lt[E]=ee,ut[ee]=G,jt.publish("addFormObject",G),vn.pop().restore()}}(g),this},h.doFormObject=function(g,E){var G=ut[Lt[g]];return z("q"),z(E.toString()+" cm"),z("/"+G.id+" Do"),z("Q"),this},h.getFormObject=function(g){var E=ut[Lt[g]];return{x:E.x,y:E.y,width:E.width,height:E.height,matrix:E.matrix}},h.save=function(g,E){return g=g||"generated.pdf",(E=E||{}).returnPromise=E.returnPromise||!1,E.returnPromise===!1?(Qa(Ul(ds()),g),typeof Qa.unload=="function"&&ot.setTimeout&&setTimeout(Qa.unload,911),this):new Promise(function(G,ee){try{var oe=Qa(Ul(ds()),g);typeof Qa.unload=="function"&&ot.setTimeout&&setTimeout(Qa.unload,911),G(oe)}catch(we){ee(we.message)}})},Je.API)Je.API.hasOwnProperty(Da)&&(Da==="events"&&Je.API.events.length?function(g,E){var G,ee,oe;for(oe=E.length-1;oe!==-1;oe--)G=E[oe][0],ee=E[oe][1],g.subscribe.apply(g,[G].concat(typeof ee=="function"?[ee]:ee))}(jt,Je.API.events):h[Da]=Je.API[Da]);function Ou(g){return Ve[g].mediaBox.topRightX-Ve[g].mediaBox.bottomLeftX}function Jh(g,E){Ve[g].mediaBox.topRightX=E+Ve[g].mediaBox.bottomLeftX}function Xh(g){return Ve[g].mediaBox.topRightY-Ve[g].mediaBox.bottomLeftY}function Vs(g,E){Ve[g].mediaBox.topRightY=E+Ve[g].mediaBox.bottomLeftY}var Gs=h.getPageWidth=function(g){return Ou(g=g||U)/st},Zh=h.setPageWidth=function(g,E){Jh(g,E*st)},Ma=h.getPageHeight=function(g){return Xh(g=g||U)/st},Qh=h.setPageHeight=function(g,E){Vs(g,E*st)};return h.internal={pdfEscape:vi,getStyle:Vh,getFont:Sm,getFontSize:Oe,getCharSpace:Tm,getTextColor:Pm,getLineHeight:Am,getLineHeightFactor:Nm,getLineWidth:km,write:Pe,getHorizontalCoordinate:zs,getVerticalCoordinate:qs,getCoordinateString:Cm,getVerticalCoordinateString:Lm,collections:{},newObject:yn,newAdditionalObject:Ta,newObjectDeferred:Kn,newObjectDeferredBegin:er,getFilters:ji,putStream:gi,events:jt,scaleFactor:st,pageSize:{getWidth:function(){return Gs(U)},setWidth:function(g){Zh(U,g)},getHeight:function(){return Ma(U)},setHeight:function(g){Qh(U,g)}},encryptionOptions:d,encryption:Bn,getEncryptor:function(g){return d!==null?Bn.encryptor(g,0):function(E){return E}},output:Hh,getNumberOfPages:$h,get pages(){return Ae},out:z,f2:L,f3:I,getPageInfo:$s,getPageInfoByObjId:Wh,getCurrentPageInfo:ym,getPDFVersion:w,Point:Ws,Rectangle:Tu,Matrix:Ue,hasHotfix:yi},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return Gs(U)},set:function(g){Zh(U,g)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return Ma(U)},set:function(g){Qh(U,g)},enumerable:!0,configurable:!0}),(function(g){for(var E=0,G=Ye.length;E<G;E++){var ee=Mh.call(this,g[E][0],g[E][1],g[E][2],Ye[E][3],!0);p===!1&&(m[ee]=!0);var oe=g[E][0].split("-");Dh({id:ee,fontName:oe[0],fontStyle:oe[1]||""})}jt.publish("addFonts",{fonts:at,dictionary:vt})}).call(h,Ye),$e="F1",Bh(i,n),jt.publish("initialized"),h}cc.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},cc.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},cc.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},cc.prototype.processOwnerPassword=function(e,t){return Bv(Mv(t).substr(0,5),e)},cc.prototype.encryptor=function(e,t){var n=Mv(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return Bv(n,r)}},x0.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||qt(e)!==qt(this))return!1;var r=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;r++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&r--;return r===0},Je.API={events:[]},Je.version="4.2.0";var xn=Je.API,Ry=1,jl=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},tc=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ll=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var n=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(n.length===1?"0"+n:n)})},ft=function(e){return e.toFixed(2)},Vo=function(e){return e.toFixed(5)};xn.__acroform__={};var Gr=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},P_=function(e){return e*Ry},ws=function(e){var t=new _E,n=Fe.internal.getHeight(e)||0,r=Fe.internal.getWidth(e)||0;return t.BBox=[0,0,Number(ft(r)),Number(ft(n))],t},DD=xn.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},MD=xn.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},BD=xn.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},Tn=xn.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return BD(e,t-1)},Rn=xn.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return DD(e,t-1)},On=xn.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return MD(e,t-1)},UD=xn.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,i=e[0],s=e[1],o=e[2],a=e[3],l={};return l.lowerLeft_X=n(i)||0,l.lowerLeft_Y=r(s+a)||0,l.upperRight_X=n(i+o)||0,l.upperRight_Y=r(s)||0,[Number(ft(l.lowerLeft_X)),Number(ft(l.lowerLeft_Y)),Number(ft(l.upperRight_X)),Number(ft(l.upperRight_Y))]},$D=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=Uv(e,n),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+ft(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var s=ws(e);return s.scope=e.scope,s.stream=t.join(` 244`),s}},Uv=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},i=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map(function(L){return L.split(` 245`)}):i.map(function(L){return[L]});var s=n,o=Fe.internal.getHeight(e)||0;o=o<0?-o:o;var a=Fe.internal.getWidth(e)||0;a=a<0?-a:a;var l=function(L,I,J){if(L+1<i.length){var q=I+" "+i[L+1][0];return rp(q,e,J).width<=a-4}return!1};s++;e:for(;s>0;){t="",s--;var c,d,p=rp("3",e,s).height,m=e.multiline?o-s:(o-p)/2,h=m+=2,y=0,w=0,x=0;if(s<=0){t=`(...) Tj 246`,t+="% Width of Text: "+rp(t,e,s=12).width+", FieldWidth:"+a+` 247`;break}for(var v="",_=0,S=0;S<i.length;S++)if(i.hasOwnProperty(S)){var A=!1;if(i[S].length!==1&&x!==i[S].length-1){if((p+2)*(_+2)+2>o)continue e;v+=i[S][x],A=!0,w=S,S--}else{v=(v+=i[S][x]+" ").substr(v.length-1)==" "?v.substr(0,v.length-1):v;var O=parseInt(S),$=l(O,v,s),H=S>=i.length-1;if($&&!H){v+=" ",x=0;continue}if($||H){if(H)w=O;else if(e.multiline&&(p+2)*(_+2)+2>o)continue e}else{if(!e.multiline||(p+2)*(_+2)+2>o)continue e;w=O}}for(var B="",R=y;R<=w;R++){var X=i[R];if(e.multiline){if(R===w){B+=X[x]+" ",x=(x+1)%X.length;continue}if(R===y){B+=X[X.length-1]+" ";continue}}B+=X[0]+" "}switch(B=B.substr(B.length-1)==" "?B.substr(0,B.length-1):B,d=rp(B,e,s).width,e.textAlign){case"right":c=a-d-2;break;case"center":c=(a-d)/2;break;default:c=2}t+=ft(c)+" "+ft(h)+` Td 248`,t+="("+jl(B)+`) Tj 249`,t+=-ft(c)+` 0 Td 250`,h=-(s+2),d=0,y=A?w:w+1,_++,v=""}break}return r.text=t,r.fontSize=s,r},rp=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},zD={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},qD=function(e,t){var n={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===n.type&&r.object===n.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},HD=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(os.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(zD)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ry=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new xE,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in r)if(r.hasOwnProperty(i)){var s=r[i];s.objId=void 0,s.hasAnnotation&&qD(s,n)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(n){(function(r,i){var s=!r;for(var o in r||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(o)){var a=r[o],l=[],c=a.Rect;if(a.Rect&&(a.Rect=UD(a.Rect,i)),i.internal.newObjectDeferredBegin(a.objId,!0),a.DA=Fe.createDefaultAppearanceStream(a),qt(a)==="object"&&typeof a.getKeyValueListForStream=="function"&&(l=a.getKeyValueListForStream()),a.Rect=c,a.hasAppearanceStream&&!a.appearanceStreamContent){var d=$D(a);l.push({key:"AP",value:"<</N "+d+">>"}),i.internal.acroformPlugin.xForms.push(d)}if(a.appearanceStreamContent){var p="";for(var m in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(m)){var h=a.appearanceStreamContent[m];if(p+="/"+m+" ",p+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var o in h)if(h.hasOwnProperty(o)){var y=h[o];typeof y=="function"&&(y=y.call(i,a)),p+="/"+o+" "+y+" ",i.internal.acroformPlugin.xForms.indexOf(y)>=0||i.internal.acroformPlugin.xForms.push(y)}}else typeof(y=h)=="function"&&(y=y.call(i,a)),p+="/"+o+" "+y,i.internal.acroformPlugin.xForms.indexOf(y)>=0||i.internal.acroformPlugin.xForms.push(y);p+=">>"}l.push({key:"AP",value:`<< 251`+p+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:a.objId}),i.internal.out("endobj")}s&&function(w,x){for(var v in w)if(w.hasOwnProperty(v)){var _=v,S=w[v];x.internal.newObjectDeferredBegin(S.objId,!0),qt(S)==="object"&&typeof S.putStream=="function"&&S.putStream(),delete w[_]}}(i.internal.acroformPlugin.xForms,i)})(n,e)}),e.internal.acroformPlugin.isInitialized=!0}},bE=xn.__acroform__.arrayToPdfArray=function(e,t,n){var r=function(o){return o};if(Array.isArray(e)){for(var i="[",s=0;s<e.length;s++)switch(s!==0&&(i+=" "),qt(e[s])){case"boolean":case"number":case"object":i+=e[s].toString();break;case"string":e[s].substr(0,1)==="/"?i+="/"+Ll(e[s].substr(1)):(t!==void 0&&n&&(r=n.internal.getEncryptor(t)),i+="("+jl(r(e[s].toString()))+")")}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},i1=function(e,t,n){var r=function(i){return i};return t!==void 0&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+jl(r(e))+")"},Ps=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Ps.prototype.toString=function(){return this.objId+" 0 R"},Ps.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Ps.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(s){return s!="content"&&s!="appearanceStreamContent"&&s!="scope"&&s!="objId"&&s.substring(0,1)!="_"});for(var n in t)if(Object.getOwnPropertyDescriptor(this,t[n]).configurable===!1){var r=t[n],i=this[r];i&&(Array.isArray(i)?e.push({key:r,value:bE(i,this.objId,this.scope)}):i instanceof Ps?(i.scope=this.scope,e.push({key:r,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:r,value:i}))}return e};var _E=function(){Ps.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){e=n.trim()},get:function(){return e||null}})};Gr(_E,Ps);var xE=function(){Ps.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var n=function(r){return r};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+jl(n(e))+")"}},set:function(n){e=n}})};Gr(xE,Ps);var os=function e(){Ps.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute F supplied.');t=v}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Tn(t,3)},set:function(v){v?this.F=Rn(t,3):this.F=On(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute Ff supplied.');n=v}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(v){r=v!==void 0?v:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(v){r[0]=v}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(v){r[1]=v}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(v){r[2]=v}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(v){r[3]=v}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(v){switch(v){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=v;break;default:throw new Error('Invalid value "'+v+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof S0)return;s="FieldObject"+e.FieldNum++}var v=function(_){return _};return this.scope&&(v=this.scope.internal.getEncryptor(this.objId)),"("+jl(v(s))+")"},set:function(v){s=v.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(v){s=v}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(v){o=v}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(v){a=v}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(v){l=v}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/Ry:c},set:function(v){c=v}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(v){d=v}});var p="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!p||this instanceof S0||this instanceof yl))return i1(p,this.objId,this.scope)},set:function(v){v=v.toString(),p=v}});var m=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(m)return this instanceof Xn==0?i1(m,this.objId,this.scope):m},set:function(v){v=v.toString(),m=this instanceof Xn==0?v.substr(0,1)==="("?tc(v.substr(1,v.length-2)):tc(v):v}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Xn==1?tc(m.substr(1,m.length-1)):m},set:function(v){v=v.toString(),m=this instanceof Xn==1?"/"+Ll(v):v}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(v){this.V=v}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof Xn==0?i1(h,this.objId,this.scope):h},set:function(v){v=v.toString(),h=this instanceof Xn==0?v.substr(0,1)==="("?tc(v.substr(1,v.length-2)):tc(v):v}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Xn==1?tc(h.substr(1,h.length-1)):h},set:function(v){v=v.toString(),h=this instanceof Xn==1?"/"+Ll(v):v}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var y,w=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return w},set:function(v){v=!!v,w=v}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(y)return y},set:function(v){y=v}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,1)},set:function(v){v?this.Ff=Rn(this.Ff,1):this.Ff=On(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,2)},set:function(v){v?this.Ff=Rn(this.Ff,2):this.Ff=On(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,3)},set:function(v){v?this.Ff=Rn(this.Ff,3):this.Ff=On(this.Ff,3)}});var x=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(x!==null)return x},set:function(v){if([0,1,2].indexOf(v)===-1)throw new Error('Invalid value "'+v+'" for attribute Q supplied.');x=v}}),Object.defineProperty(this,"textAlign",{get:function(){var v;switch(x){case 0:default:v="left";break;case 1:v="center";break;case 2:v="right"}return v},configurable:!0,enumerable:!0,set:function(v){switch(v){case"right":case 2:x=2;break;case"center":case 1:x=1;break;default:x=0}}})};Gr(os,Ps);var $c=function(){os.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){e=n}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return bE(t,this.objId,this.scope)},set:function(n){var r,i;i=[],typeof(r=n)=="string"&&(i=function(s,o,a){a||(a=1);for(var l,c=[];l=o.exec(s);)c.push(l[a]);return c}(r,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(n){t=n,this.sort&&t.sort()},this.addOption=function(n){n=(n=n||"").toString(),t.push(n),this.sort&&t.sort()},this.removeOption=function(n,r){for(r=r||!1,n=(n=n||"").toString();t.indexOf(n)!==-1&&(t.splice(t.indexOf(n),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,18)},set:function(n){n?this.Ff=Rn(this.Ff,18):this.Ff=On(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=Rn(this.Ff,19):this.Ff=On(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,20)},set:function(n){n?(this.Ff=Rn(this.Ff,20),t.sort()):this.Ff=On(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,22)},set:function(n){n?this.Ff=Rn(this.Ff,22):this.Ff=On(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,23)},set:function(n){n?this.Ff=Rn(this.Ff,23):this.Ff=On(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,27)},set:function(n){n?this.Ff=Rn(this.Ff,27):this.Ff=On(this.Ff,27)}}),this.hasAppearanceStream=!1};Gr($c,os);var zc=function(){$c.call(this),this.fontName="helvetica",this.combo=!1};Gr(zc,$c);var qc=function(){zc.call(this),this.combo=!0};Gr(qc,zc);var Op=function(){qc.call(this),this.edit=!0};Gr(Op,qc);var Xn=function(){os.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,15)},set:function(n){n?this.Ff=Rn(this.Ff,15):this.Ff=On(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,16)},set:function(n){n?this.Ff=Rn(this.Ff,16):this.Ff=On(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,17)},set:function(n){n?this.Ff=Rn(this.Ff,17):this.Ff=On(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,26)},set:function(n){n?this.Ff=Rn(this.Ff,26):this.Ff=On(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(s){return s};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,i=[];for(r in i.push("<<"),t)i.push("/"+r+" ("+jl(n(t[r]))+")");return i.push(">>"),i.join(` 252`)}},set:function(n){qt(n)==="object"&&(t=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(n){typeof n=="string"&&(t.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){var r=n==null?"":n.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),e="/"+Ll(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+Ll(n)}})};Gr(Xn,os);var Ip=function(){Xn.call(this),this.pushButton=!0};Gr(Ip,Xn);var Hc=function(){Xn.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};Gr(Hc,Xn);var S0=function(){var e,t;os.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(i){t=i}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(a){return a};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var s,o=[];for(s in o.push("<<"),r)o.push("/"+s+" ("+jl(i(r[s]))+")");return o.push(">>"),o.join(` 253`)},set:function(i){qt(i)==="object"&&(r=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(i){typeof i=="string"&&(r.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(i){var s=i==null?"":i.toString();s.substr(0,1)==="/"&&(s=s.substr(1)),n="/"+Ll(s)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(i){var s=i==null?"":i.toString();s.substr(0,1)==="/"&&(s=s.substr(1)),n="/"+Ll(s)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Fe.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Gr(S0,os),Hc.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},Hc.prototype.createOption=function(e){var t=new S0;return t.Parent=this,t.optionName=e,this.Kids.push(t),WD.call(this.scope,t),t};var jp=function(){Xn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Fe.CheckBox.createAppearanceStream()};Gr(jp,Xn);var yl=function(){os.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,13)},set:function(t){t?this.Ff=Rn(this.Ff,13):this.Ff=On(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,21)},set:function(t){t?this.Ff=Rn(this.Ff,21):this.Ff=On(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,23)},set:function(t){t?this.Ff=Rn(this.Ff,23):this.Ff=On(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,24)},set:function(t){t?this.Ff=Rn(this.Ff,24):this.Ff=On(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,25)},set:function(t){t?this.Ff=Rn(this.Ff,25):this.Ff=On(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,26)},set:function(t){t?this.Ff=Rn(this.Ff,26):this.Ff=On(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Gr(yl,os);var Fp=function(){yl.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Tn(this.Ff,14)},set:function(e){e?this.Ff=Rn(this.Ff,14):this.Ff=On(this.Ff,14)}}),this.password=!0};Gr(Fp,yl);var Fe={CheckBox:{createAppearanceStream:function(){return{N:{On:Fe.CheckBox.YesNormal},D:{On:Fe.CheckBox.YesPushDown,Off:Fe.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=ws(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),s=Uv(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+ft(Fe.internal.getWidth(e))+" "+ft(Fe.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+ft(s.fontSize)+" Tf "+i),n.push("BT"),n.push(s.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join(` 254`),t},YesNormal:function(e){var t=ws(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=[],s=Fe.internal.getHeight(e),o=Fe.internal.getWidth(e),a=Uv(e,e.caption);return i.push("1 g"),i.push("0 0 "+ft(o)+" "+ft(s)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+ft(o-1)+" "+ft(s-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+ft(a.fontSize)+" Tf "+r),i.push(a.text),i.push("ET"),i.push("Q"),t.stream=i.join(` 255`),t},OffPushDown:function(e){var t=ws(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ft(Fe.internal.getWidth(e))+" "+ft(Fe.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(` 256`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Fe.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Fe.RadioButton.Circle.YesNormal,t.D[e]=Fe.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=ws(e);t.scope=e.scope;var n=[],r=Fe.internal.getWidth(e)<=Fe.internal.getHeight(e)?Fe.internal.getWidth(e)/4:Fe.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Fe.internal.Bezier_C,s=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Vo(Fe.internal.getWidth(e)/2)+" "+Vo(Fe.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),n.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),n.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),n.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 257`),t},YesPushDown:function(e){var t=ws(e);t.scope=e.scope;var n=[],r=Fe.internal.getWidth(e)<=Fe.internal.getHeight(e)?Fe.internal.getWidth(e)/4:Fe.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),s=Number((i*Fe.internal.Bezier_C).toFixed(5)),o=Number((r*Fe.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Vo(Fe.internal.getWidth(e)/2)+" "+Vo(Fe.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),n.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),n.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),n.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Vo(Fe.internal.getWidth(e)/2)+" "+Vo(Fe.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 258`),t},OffPushDown:function(e){var t=ws(e);t.scope=e.scope;var n=[],r=Fe.internal.getWidth(e)<=Fe.internal.getHeight(e)?Fe.internal.getWidth(e)/4:Fe.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),s=Number((i*Fe.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Vo(Fe.internal.getWidth(e)/2)+" "+Vo(Fe.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),n.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),n.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),n.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 259`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Fe.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Fe.RadioButton.Cross.YesNormal,t.D[e]=Fe.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=ws(e);t.scope=e.scope;var n=[],r=Fe.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+ft(Fe.internal.getWidth(e)-2)+" "+ft(Fe.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(ft(r.x1.x)+" "+ft(r.x1.y)+" m"),n.push(ft(r.x2.x)+" "+ft(r.x2.y)+" l"),n.push(ft(r.x4.x)+" "+ft(r.x4.y)+" m"),n.push(ft(r.x3.x)+" "+ft(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(` 260`),t},YesPushDown:function(e){var t=ws(e);t.scope=e.scope;var n=Fe.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+ft(Fe.internal.getWidth(e))+" "+ft(Fe.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ft(Fe.internal.getWidth(e)-2)+" "+ft(Fe.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(ft(n.x1.x)+" "+ft(n.x1.y)+" m"),r.push(ft(n.x2.x)+" "+ft(n.x2.y)+" l"),r.push(ft(n.x4.x)+" "+ft(n.x4.y)+" m"),r.push(ft(n.x3.x)+" "+ft(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(` 261`),t},OffPushDown:function(e){var t=ws(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ft(Fe.internal.getWidth(e))+" "+ft(Fe.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(` 262`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};Fe.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Fe.internal.getWidth(e),n=Fe.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},Fe.internal.getWidth=function(e){var t=0;return qt(e)==="object"&&(t=P_(e.Rect[2])),t},Fe.internal.getHeight=function(e){var t=0;return qt(e)==="object"&&(t=P_(e.Rect[3])),t};var WD=xn.addField=function(e){if(HD(this,e),!(e instanceof os))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};xn.AcroFormChoiceField=$c,xn.AcroFormListBox=zc,xn.AcroFormComboBox=qc,xn.AcroFormEditBox=Op,xn.AcroFormButton=Xn,xn.AcroFormPushButton=Ip,xn.AcroFormRadioButton=Hc,xn.AcroFormCheckBox=jp,xn.AcroFormTextField=yl,xn.AcroFormPasswordField=Fp,xn.AcroFormAppearance=Fe,xn.AcroForm={ChoiceField:$c,ListBox:zc,ComboBox:qc,EditBox:Op,Button:Xn,PushButton:Ip,RadioButton:Hc,CheckBox:jp,TextField:yl,PasswordField:Fp,Appearance:Fe},Je.AcroForm={ChoiceField:$c,ListBox:zc,ComboBox:qc,EditBox:Op,Button:Xn,PushButton:Ip,RadioButton:Hc,CheckBox:jp,TextField:yl,PasswordField:Fp,Appearance:Fe};function SE(e){return e.reduce(function(t,n,r){return t[n]=r,t},{})}(function(e){var t="addImage_";e.__addimage__={};var n="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.__addimage__.getImageFileTypeByImageData=function(L,I){var J,q,se,ae,le,Y=n;if((I=I||n)==="RGBA"||L.data!==void 0&&L.data instanceof Uint8ClampedArray&&"height"in L&&"width"in L)return"RGBA";if($(L))for(le in r)for(se=r[le],J=0;J<se.length;J+=1){for(ae=!0,q=0;q<se[J].length;q+=1)if(se[J][q]!==void 0&&se[J][q]!==L[q]){ae=!1;break}if(ae===!0){Y=le;break}}else for(le in r)for(se=r[le],J=0;J<se.length;J+=1){for(ae=!0,q=0;q<se[J].length;q+=1)if(se[J][q]!==void 0&&se[J][q]!==L.charCodeAt(q)){ae=!1;break}if(ae===!0){Y=le;break}}return Y===n&&I!==n&&(Y=I),Y},s=function L(I){for(var J=this.internal.write,q=this.internal.putStream,se=(0,this.internal.getFilters)();se.indexOf("FlateEncode")!==-1;)se.splice(se.indexOf("FlateEncode"),1);I.objectId=this.internal.newObject();var ae=[];if(ae.push({key:"Type",value:"/XObject"}),ae.push({key:"Subtype",value:"/Image"}),ae.push({key:"Width",value:I.width}),ae.push({key:"Height",value:I.height}),I.colorSpace===v.INDEXED?ae.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(I.palette.length/3-1)+" "+("sMask"in I&&I.sMask!==void 0?I.objectId+2:I.objectId+1)+" 0 R]"}):(ae.push({key:"ColorSpace",value:"/"+I.colorSpace}),I.colorSpace===v.DEVICE_CMYK&&ae.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ae.push({key:"BitsPerComponent",value:I.bitsPerComponent}),"decodeParameters"in I&&I.decodeParameters!==void 0&&ae.push({key:"DecodeParms",value:"<<"+I.decodeParameters+">>"}),"transparency"in I&&Array.isArray(I.transparency)&&I.transparency.length>0){for(var le="",Y=0,Z=I.transparency.length;Y<Z;Y++)le+=I.transparency[Y]+" "+I.transparency[Y]+" ";ae.push({key:"Mask",value:"["+le+"]"})}I.sMask!==void 0&&ae.push({key:"SMask",value:I.objectId+1+" 0 R"});var he=I.filter!==void 0?["/"+I.filter]:void 0;if(q({data:I.data,additionalKeyValues:ae,alreadyAppliedFilters:he,objectId:I.objectId}),J("endobj"),"sMask"in I&&I.sMask!==void 0){var fe,C=(fe=I.sMaskBitsPerComponent)!==null&&fe!==void 0?fe:I.bitsPerComponent,U={width:I.width,height:I.height,colorSpace:"DeviceGray",bitsPerComponent:C,data:I.sMask};"filter"in I&&(U.decodeParameters="/Predictor ".concat(I.predictor," /Colors 1 /BitsPerComponent ").concat(C," /Columns ").concat(I.width),U.filter=I.filter),L.call(this,U)}if(I.colorSpace===v.INDEXED){var K=this.internal.newObject();q({data:B(new Uint8Array(I.palette)),objectId:K}),J("endobj")}},o=function(){var L=this.internal.collections[t+"images"];for(var I in L)s.call(this,L[I])},a=function(){var L,I=this.internal.collections[t+"images"],J=this.internal.write;for(var q in I)J("/I"+(L=I[q]).index,L.objectId,"0","R")},l=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",a))},c=function(){var L=this.internal.collections[t+"images"];return l.call(this),L},d=function(){return Object.keys(this.internal.collections[t+"images"]).length},p=function(L){return typeof e["process"+L.toUpperCase()]=="function"},m=function(L){return qt(L)==="object"&&L.nodeType===1},h=function(L,I){if(L.nodeName==="IMG"&&L.hasAttribute("src")){var J=""+L.getAttribute("src");if(J.indexOf("data:image/")===0)return Rp(unescape(J).split("base64,").pop());var q=e.loadFile(J,!0);if(q!==void 0)return q}if(L.nodeName==="CANVAS"){if(L.width===0||L.height===0)throw new Error("Given canvas must have data. Canvas width: "+L.width+", height: "+L.height);var se;switch(I){case"PNG":se="image/png";break;case"WEBP":se="image/webp";break;default:se="image/jpeg"}return Rp(L.toDataURL(se,1).split("base64,").pop())}},y=function(L){var I=this.internal.collections[t+"images"];if(I){for(var J in I)if(L===I[J].alias)return I[J]}},w=function(L,I,J){return L||I||(L=-96,I=-96),L<0&&(L=-1*J.width*72/L/this.internal.scaleFactor),I<0&&(I=-1*J.height*72/I/this.internal.scaleFactor),L===0&&(L=I*J.width/J.height),I===0&&(I=L*J.height/J.width),[L,I]},x=function(L,I,J,q,se,ae){var le=w.call(this,J,q,se),Y=this.internal.getCoordinateString,Z=this.internal.getVerticalCoordinateString,he=c.call(this);if(J=le[0],q=le[1],he[se.index]=se,ae){ae*=Math.PI/180;var fe=Math.cos(ae),C=Math.sin(ae),U=function(Q){return Q.toFixed(4)},K=[U(fe),U(C),U(-1*C),U(fe),0,0,"cm"]}this.internal.write("q"),ae?(this.internal.write([1,"0","0",1,Y(L),Z(I+q),"cm"].join(" ")),this.internal.write(K.join(" ")),this.internal.write([Y(J),"0","0",Y(q),"0","0","cm"].join(" "))):this.internal.write([Y(J),"0","0",Y(q),Y(L),Z(I+q),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+se.index+" Do"),this.internal.write("Q")},v=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var _=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},S=e.__addimage__.sHashCode=function(L){var I,J,q=0;if(typeof L=="string")for(J=L.length,I=0;I<J;I++)q=(q<<5)-q+L.charCodeAt(I),q|=0;else if($(L))for(J=L.byteLength/2,I=0;I<J;I++)q=(q<<5)-q+L[I],q|=0;return q},A=e.__addimage__.validateStringAsBase64=function(L){(L=L||"").toString().trim();var I=!0;return L.length===0&&(I=!1),L.length%4!=0&&(I=!1),/^[A-Za-z0-9+/]+$/.test(L.substr(0,L.length-2))===!1&&(I=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(L.substr(-2))===!1&&(I=!1),I},O=e.__addimage__.extractImageFromDataUrl=function(L){if(L==null||!(L=L.trim()).startsWith("data:"))return null;var I=L.indexOf(",");return I<0?null:L.substring(0,I).trim().endsWith("base64")?L.substring(I+1):null};e.__addimage__.isArrayBuffer=function(L){return L instanceof ArrayBuffer};var $=e.__addimage__.isArrayBufferView=function(L){return L instanceof Int8Array||L instanceof Uint8Array||L instanceof Uint8ClampedArray||L instanceof Int16Array||L instanceof Uint16Array||L instanceof Int32Array||L instanceof Uint32Array||L instanceof Float32Array||L instanceof Float64Array},H=e.__addimage__.binaryStringToUint8Array=function(L){for(var I=L.length,J=new Uint8Array(I),q=0;q<I;q++)J[q]=L.charCodeAt(q);return J},B=e.__addimage__.arrayBufferToBinaryString=function(L){for(var I="",J=$(L)?L:new Uint8Array(L),q=0;q<J.length;q+=8192)I+=String.fromCharCode.apply(null,J.subarray(q,q+8192));return I};e.addImage=function(){var L,I,J,q,se,ae,le,Y,Z;if(typeof arguments[1]=="number"?(I=n,J=arguments[1],q=arguments[2],se=arguments[3],ae=arguments[4],le=arguments[5],Y=arguments[6],Z=arguments[7]):(I=arguments[1],J=arguments[2],q=arguments[3],se=arguments[4],ae=arguments[5],le=arguments[6],Y=arguments[7],Z=arguments[8]),qt(L=arguments[0])==="object"&&!m(L)&&"imageData"in L){var he=L;L=he.imageData,I=he.format||I||n,J=he.x||J||0,q=he.y||q||0,se=he.w||he.width||se,ae=he.h||he.height||ae,le=he.alias||le,Y=he.compression||Y,Z=he.rotation||he.angle||Z}var fe=this.internal.getFilters();if(Y===void 0&&fe.indexOf("FlateEncode")!==-1&&(Y="SLOW"),isNaN(J)||isNaN(q))throw new Error("Invalid coordinates passed to
262jsPDF.addImage");l.call(this);var C=R.call(this,L,I,le,Y);return x.call(this,J,q,se,ae,C,Z),this};var R=function(L,I,J,q){var se,ae,le;if(typeof L=="string"&&i(L)===n){L=unescape(L);var Y=X(L,!1);(Y!==""||(Y=e.loadFile(L,!0))!==void 0)&&(L=Y)}if(m(L)&&(L=h(L,I)),I=i(L,I),!p(I))throw new Error("addImage does not support files of type '"+I+"', please ensure that a plugin for '"+I+"' support is added.");if(((le=J)==null||le.length===0)&&(J=function(Z){return typeof Z=="string"||$(Z)?S(Z):$(Z.data)?S(Z.data):null}(L)),(se=y.call(this,J))||(L instanceof Uint8Array||I==="RGBA"||(ae=L,L=H(L)),se=this["process"+I.toUpperCase()](L,d.call(this),J,function(Z){return Z&&typeof Z=="string"&&(Z=Z.toUpperCase()),Z in e.image_compression?Z:_.NONE}(q),ae)),!se)throw new Error("An unknown error occurred whilst processing the image.");return se},X=e.__addimage__.convertBase64ToBinaryString=function(L,I){I=typeof I!="boolean"||I;var J,q="";if(typeof L=="string"){var se;J=(se=O(L))!==null&&se!==void 0?se:L;try{q=Rp(J)}catch(ae){if(I)throw A(J)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ae.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return q};e.getImageProperties=function(L){var I,J,q="";if(m(L)&&(L=h(L)),typeof L=="string"&&i(L)===n&&((q=X(L,!1))===""&&(q=e.loadFile(L)||""),L=q),J=i(L),!p(J))throw new Error("addImage does not support files of type '"+J+"', please ensure that a plugin for '"+J+"' support is added.");if(L instanceof Uint8Array||(L=H(L)),!(I=this["process"+J.toUpperCase()](L)))throw new Error("An unknown error occurred whilst processing the image");return I.fileType=J,I}})(Je.API),function(e){var t=function(n){if(n!==void 0&&n!="")return!0};Je.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(n){for(var r,i,s,o=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(n.objId),c=n.pageContext.annotations,d=!1,p=0;p<c.length&&!d;p++)switch((r=c[p]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(d=!0);break;case"reference":case"text":case"freetext":d=!0}if(d!=0){this.internal.write("/Annots [");for(var m=0;m<c.length;m++){r=c[m];var h=this.internal.pdfEscape,y=this.internal.getEncryptor(n.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var w=this.internal.newAdditionalObject(),x=this.internal.newAdditionalObject(),v=this.internal.getEncryptor(w.objId),_=r.title||"Note";s="<</Type /Annot /Subtype /Text "+(i="/Rect ["+o(r.bounds.x)+" "+a(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y)+"] ")+"/Contents ("+h(v(r.contents))+")",s+=" /Popup "+x.objId+" 0 R",s+=" /P "+l.objId+" 0 R",s+=" /T ("+h(v(_))+") >>",w.content=s;var S=w.objId+" 0 R";s="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+o(r.bounds.x+30)+" "+a(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w+30)+" "+a(r.bounds.y)+"] ")+" /Parent "+S,r.open&&(s+=" /Open true"),s+=" >>",x.content=s,this.internal.write(w.objId,"0 R",x.objId,"0 R");break;case"freetext":i="/Rect ["+o(r.bounds.x)+" "+a(r.bounds.y)+" "+o(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y+r.bounds.h)+"] ";var A=r.color||"#000000";s="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+h(y(r.contents))+")",s+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+A+")",s+=" /Border [0 0 0]",s+=" >>",this.internal.write(s);break;case"link":if(r.options.name){var O=this.annotations._nameMap[r.options.name];r.options.pageNumber=O.page,r.options.top=O.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",s="",r.options.url)s="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+h(y(r.options.url))+") >>";else if(r.options.pageNumber)switch(s="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":s+=" /Fit]";break;case"FitH":s+=" /FitH "+r.options.top+"]";break;
vendor: 9,392 bytes, line 262
262case"FitV":r.options.left=r.options.left||0,s+=" /FitV "+r.options.left+"]";break;default:var $=a(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),s+=" /XYZ "+r.options.left+" "+$+" "+r.options.zoom+"]"}s!=""&&(s+=" >>",this.internal.write(s))}}this.internal.write("]")}}]),e.createAnnotation=function(n){var r=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":r.pageContext.annotations.push(n)}},e.link=function(n,r,i,s,o){var a=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:l(n),y:c(r),w:l(n+i),h:c(r+s)},options:o,type:"link"})},e.textWithLink=function(n,r,i,s){var o,a,l=this.getTextWidth(n),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(s.maxWidth!==void 0){a=s.maxWidth;var d=this.splitTextToSize(n,a).length;o=Math.ceil(c*d)}else a=l,o=c;return this.text(n,r,i,s),i+=.2*c,s.align==="center"&&(r-=l/2),s.align==="right"&&(r-=l),this.link(r,i-c,a,o,s),l},e.getTextWidth=function(n){var r=this.internal.getFontSize();return this.getStringUnitWidth(n)*r/this.internal.scaleFactor}}(Je.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var s=e.__arabicParser__.isInArabicSubstitutionA=function(w){return t[w.charCodeAt(0)]!==void 0},o=e.__arabicParser__.isArabicLetter=function(w){return typeof w=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(w)},a=e.__arabicParser__.isArabicEndLetter=function(w){return o(w)&&s(w)&&t[w.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(w){return o(w)&&i.indexOf(w.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(w){return o(w)&&s(w)&&t[w.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(w){return o(w)&&s(w)&&t[w.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(w){return o(w)&&s(w)&&t[w.charCodeAt(0)].length>=3};var d=e.__arabicParser__.arabicLetterHasMedialForm=function(w){return o(w)&&s(w)&&t[w.charCodeAt(0)].length==4},p=e.__arabicParser__.resolveLigatures=function(w){var x=0,v=n,_="",S=0;for(x=0;x<w.length;x+=1)v[w.charCodeAt(x)]!==void 0?(S++,typeof(v=v[w.charCodeAt(x)])=="number"&&(_+=String.fromCharCode(v),v=n,S=0),x===w.length-1&&(v=n,_+=w.charAt(x-(S-1)),x-=S-1,S=0)):(v=n,_+=w.charAt(x-S),x-=S,S=0);return _};e.__arabicParser__.isArabicDiacritic=function(w){return w!==void 0&&r[w.charCodeAt(0)]!==void 0};var m=e.__arabicParser__.getCorrectForm=function(w,x,v){return o(w)?s(w)===!1?-1:!c(w)||!o(x)&&!o(v)||!o(v)&&a(x)||a(w)&&!o(x)||a(w)&&l(x)||a(w)&&a(x)?0:d(w)&&o(x)&&!a(x)&&o(v)&&c(v)?3:a(w)||!o(v)?1:2:-1},h=function(w){var x=0,v=0,_=0,S="",A="",O="",$=(w=w||"").split("\\s+"),H=[];for(x=0;x<$.length;x+=1){for(H.push(""),v=0;v<$[x].length;v+=1)S=$[x][v],A=$[x][v-1],O=$[x][v+1],o(S)?(_=m(S,A,O),H[x]+=_!==-1?String.fromCharCode(t[S.charCodeAt(0)][_]):S):H[x]+=S;H[x]=p(H[x])}return H.join(" ")},y=e.__arabicParser__.processArabic=e.processArabic=function(){var w,x=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,v=[];if(Array.isArray(x)){var _=0;for(v=[],_=0;_<x.length;_+=1)Array.isArray(x[_])?v.push([h(x[_][0]),x[_][1],x[_][2]]):v.push([h(x[_])]);w=v}else w=h(x);return typeof arguments[0]=="string"?w:(arguments[0].text=w,arguments[0])};e.events.push(["preProcessText",y])}(Je.API),Je.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})),this},function(e){var t=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(a){n=a}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(a){r=isNaN(a)||Number.isInteger(a)===!1||a<0?150:a,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(a){i=isNaN(a)||Number.isInteger(a)===!1||a<0?300:a,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var s=[];Object.defineProperty(this,"childNodes",{get:function(){return s},set:function(a){s=a}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(a){o=a}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(n,r){var i;if((n=n||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(Je.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(w){l=w}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(w){c=w}});var d=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return d},set:function(w){d=w}});var p=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return p},set:function(w){p=w}});var m=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return m},set:function(w){m=w}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(w){h=w}});var y=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return y},set:function(w){y=w}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return r.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,c){r.call(this);var d=(c=c||{}).fontSize||this.getFontSize(),p=c.font||this.getFont(),m=c.scaleFactor||this.internal.scaleFactor,h=0,y=0,w=0,x=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type Str
262ing or type Number or an Array of Strings.");l=String(l)}var v=c.maxWidth;v>0?typeof l=="string"?l=this.splitTextToSize(l,v):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(S,A){return S.concat(x.splitTextToSize(A,v))},[])):l=Array.isArray(l)?l:[l];for(var _=0;_<l.length;_++)h<(w=this.getStringUnitWidth(l[_],{font:p})*d)&&(h=w);return h!==0&&(y=l.length),{w:h/=m,h:Math.max((y*d*this.getLineHeightFactor()-d*(this.getLineHeightFactor()-1))/m,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new s(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=e.cell=function(){var l;l=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var c=this.internal.__cell__.lastCell,d=this.internal.__cell__.padding,p=this.internal.__cell__.margins||t,m=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+p.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=p.top,h&&m&&(this.printHeaderRow(l.lineNumber,!0),l.y+=m[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,n===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-d,l.y+d,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+d,{align:"center",baseline:"top",maxWidth:l.width-d-d}):this.text(l.text,l.x+d,l.y+d,{align:"left",baseline:"top",maxWidth:l.width-d-d})),this.internal.__cell__.lastCell=l,this};e.table=function(l,c,d,p,m){if(r.call(this),!d)throw new Error("No data for PDF table.");var h,y,w,x,v=[],_=[],S=[],A={},O={},$=[],H=[],B=(m=m||{}).autoSize||!1,R=m.printHeaders!==!1,X=m.css&&m.css["font-size"]!==void 0?16*m.css["font-size"]:m.fontSize||12,L=m.margins||Object.assign({width:this.getPageWidth()},t),I=typeof m.padding=="number"?m.padding:3,J=m.headerBackgroundColor||"#c8c8c8",q=m.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=R,this.internal.__cell__.margins=L,this.internal.__cell__.table_font_size=X,this.internal.__cell__.padding=I,this.internal.__cell__.headerBackgroundColor=J,this.internal.__cell__.headerTextColor=q,this.setFontSize(X),p==null)_=v=Object.keys(d[0]),S=v.map(function(){return"left"});else if(Array.isArray(p)&&qt(p[0])==="object")for(v=p.map(function(he){return he.name}),_=p.map(function(he){return he.prompt||he.name||""}),S=p.map(function(he){return he.align||"left"}),h=0;h<p.length;h+=1)O[p[h].name]=.7499990551181103*p[h].width;else Array.isArray(p)&&typeof p[0]=="string"&&(_=v=p,S=v.map(function(){return"left"}));if(B||Array.isArray(p)&&typeof p[0]=="string")for(h=0;h<v.length;h+=1){for(A[x=v[h]]=d.map(function(he){return he[x]}),this.setFont(void 0,"bold"),$.push(this.getTextDimensions(_[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),y=A[x],this.setFont(void 0,"normal"),w=0;w<y.length;w+=1)$.push(this.getTextDimensions(y[w],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);O[x]=Math.max.apply(null,$)+I+I,$=[]}if(R){var se={};for(h=0;h<v.length;h+=1)se[v[h]]={},se[v[h]].text=_[h],se[v[h]].align=S[h];var ae=a.call(this,se,O);H=v.map(function(he){return new s(l,c,O[he],ae,se[he].text,void 0,se[he].align)}),this.setTableHeaderRow(H),this.printHeaderRow(1,!1)}var le=p.reduce(function(he,fe){return he[fe.name]=fe.align,he},{});for(h=0;h<d.length;
vendor: 9,846 bytes, lines 262-286
262h+=1){"rowStart"in m&&m.rowStart instanceof Function&&m.rowStart({row:h,data:d[h]},this);var Y=a.call(this,d[h],O);for(w=0;w<v.length;w+=1){var Z=d[h][v[w]];"cellStart"in m&&m.cellStart instanceof Function&&m.cellStart({row:h,col:w,data:Z},this),o.call(this,new s(l,c,O[v[w]],Y,Z,h+2,le[v[w]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var a=function(l,c){var d=this.internal.__cell__.padding,p=this.internal.__cell__.table_font_size,m=this.internal.scaleFactor;return Object.keys(l).map(function(h){var y=l[h];return this.splitTextToSize(y.hasOwnProperty("text")?y.text:y,c[h]-d-d)},this).map(function(h){return this.getLineHeightFactor()*h.length*p/m+d+d},this).reduce(function(h,y){return Math.max(h,y)},0)};e.setTableHeaderRow=function(l){r.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,c){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var d;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var p=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(p[0],p[1],p[2],p[3],void 0,-1)}this.setFont(void 0,"bold");for(var m=[],h=0;h<this.internal.__cell__.tableHeaderRow.length;h+=1){d=this.internal.__cell__.tableHeaderRow[h].clone(),c&&(d.y=this.internal.__cell__.margins.top||0,m.push(d)),d.lineNumber=l;var y=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,d),this.setTextColor(y)}m.length>0&&this.setTableHeaderRow(m),this.setFont(void 0,"normal"),n=!1}}(Je.API);var kE={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},AE=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],$v=SE(AE),EE=[100,200,300,400,500,600,700,800,900],VD=SE(EE);function s1(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(s){return kE[s=s||"normal"]?s:"normal"}(e.style),r=function(s){return s?typeof s=="number"?s>=100&&s<=900&&s%100==0?s:400:/^\d00$/.test(s)?parseInt(s):s==="bold"?700:400:400}(e.weight),i=function(s){return typeof $v[s=s||"normal"]=="number"?s:"normal"}(e.stretch);return{family:t,style:n,weight:r,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,n,r].join(" ")}}}function T_(e,t,n,r){var i;for(i=n;i>=0&&i<t.length;i+=r)if(e[t[i]])return e[t[i]];for(i=n;i>=0&&i<t.length;i-=r)if(e[t[i]])return e[t[i]]}var GD={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},R_={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function O_(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function I_(e){return e.trimLeft()}function KD(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function YD(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var nc,ip,j_,F_,D_,o1=["times"];function M_(e,t,n,r,i){var s=4,o=U_;switch(i){case Je.API.image_compression.FAST:s=1,o=B_;break;case Je.API.image_compression.MEDIUM:s=6,o=$_;break;case Je.API.image_compression.SLOW:s=9,o=z_}e=function(l,c,d,p){for(var m,h=l.length/c,y=new Uint8Array(l.length+h),w=[JD,B_,U_,$_,z_],x=0;x<h;x+=1){var v=x*c,_=l.subarray(v,v+c);if(p)y.set(p(_,d,m),v+x);else{for(var S=w.length,A=[],O=0;O<S;O+=1)A[O]=w[O](_,d,m);var $=ZD(A.concat());y.set(A[$],v+x)}m=_}return y}(e,t,Math.ceil(n*r/8),o);var a=Cv(e,{level:s});return Je.API.__addimage__.arrayBufferToBinaryString(a)}function JD(e){var t=Array.apply([],e);return t.unshift(0),t}function B_(e,t){var n=e.length,r=[];r[0]=1;for(var i=0;i<n;i+=1){var s=e[i-t]||0;r[i+1]=e[i]-s+256&255}return r}function U_(e,t,n){var r=e.length,i=[];i[0]=2;for(var s=0;s<r;s+=1){var o=n&&n[s]||0;i[s+1]=e[s]-o+256&255}return i}function $_(e,t,n){var r=e.length,i=[];i[0]=3;for(var s=0;s<r;s+=1){var o=e[s-t]||0,a=n&&n[s]||0;i[s+1]=e[s]+256-(o+a>>>1)&255}return i}function z_(e,t,n){var r=e.length,i=[];i[0]=4;for(var s=0;s<r;s+=1){var o=XD(e[s-t]||0,n&&n[s]||0,n&&n[s-t]||0);i[s+1]=e[s]-o+256&255}return i}function XD(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),i=Math.abs(e-n),s=Math.abs(e+t-n-n);return r<=i&&r<=s?e:i<=s?t:n}function ZD(e){var t=e.map(function(n){return n.reduce(function(r,i){return r+Math.abs(i)},0)});return t.indexOf(Math.min.apply(null,t))}function a1(e,t,n){var r=t*n,i=Math.floor(r/8),s=16-(r-8*i+n),o=(1<<n)-1;return NE(e,i)>>s&o}function q_(e,t,n,r){var i=n*r,s=Math.floor(i/8),o=16-(i-8*s+r),a=(1<<r)-1,l=(t&a)<<o;(function(c,d,p){if(d+1<c.byteLength)c.setUint16(d,p,!1);else{var m=p>>8&255;c.setUint8(d,m)}})(e,s,NE(e,s)&~(a<<o)&65535|l)}function NE(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function QD(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],s=i>>7,o=1<<1+(7&i);e[t++],e[t++];var a=null,l=null;s&&(a=t,l=o,t+=3*o);var c=!0,d=[],p=0,m=null,h=0,y=null;for(this.width=n,this.height=r;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,y=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((L=e[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var w=e[t++];p=e[t++]|e[t++]<<8,m=e[t++],1&w||(m=null),h=w>>2&7,t++;break;case 254:for(;;){if(!((L=e[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var x=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,_=e[t++]|e[t++]<<8,S=e[t++]|e[t++]<<8,A=e[t++],O=A>>6&1,$=1<<1+(7&A),H=a,B=l,R=!1;A>>7&&(R=!0,H=t,B=$,t+=3*$);var X=t;for(t++;;){var L;if(!((L=e[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}d.push({x,y:v,width:_,height:S,has_local_palette:R,palette_offset:H,palette_size:B,data_offset:X,data_length:t-X,transparent_index:m,interlaced:!!O,delay:p,disposal:h});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return y},this.frameInfo=function(I){if(I<0||I>=d.length)throw new Error("Frame index out of range.");return d[I]},this.decodeAndBlitFrameBGRA=function(I,J){var q=this.frameInfo(I),se=q.width*q.height;if(se>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ae=new Uint8Array(se);H_(e,q.data_offset,ae,se);var le=q.palette_offset,Y=q.transparent_index;Y===null&&(Y=256);var Z=q.width,he=n-Z,fe=Z,C=4*(q.y*n+q.x),U=4*((q.y+q.height)*n+q.x),K=C,Q=4*he;q.interlaced===!0&&(Q+=4*n*7);for(var ne=8,re=0,pe=ae.length;re<pe;++re){var me=ae[re];if(fe===0&&(fe=Z,(K+=Q)>=U&&(Q=4*he+4*n*(ne-1),K=C+(Z+he)*(ne<<1),ne>>=1)),me===Y)K+=4;else{var ve=e[le+3*me],Ae=e[le+3*me+1],Re=e[le+3*me+2];J[K++]=Re,J[K++]=Ae,J[K++]=ve,J[K++]=255}--fe}},this.decodeAndBlitFrameRGBA=function(I,J){var q=this.frameInfo(I),se=q.width*q.height;if(se>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ae=new Uint8Array(se);H_(e,q.data_offset,ae,se);var le=q.palette_offset,Y=q.transparent_index;Y===null&&(Y=256);var Z=q.width,he=n-Z,fe=Z,C=4*(q.y*n+q.x),U=4*((q.y+q.height)*n+q.x),K=C,Q=4*he;q.interlaced===!0&&(Q+=4*n*7);for(var ne=8,re=0,pe=ae.length;re<pe;++re){var me=ae[re];if(fe===0&&(fe=Z,(K+=Q)>=U&&(Q=4*he+4*n*(ne-1),K=C+(Z+he)*(ne<<1),ne>>=1)),me===Y)K+=4;else{var ve=e[le+3*me],Ae=e[le+3*me+1],Re=e[le+3*me+2];J[K++]=ve,J[K++]=Ae,J[K++]=Re,J[K++]=255}--fe}}}function H_(e,t,n,r){for(var i=e[t++],s=1<<i,o=s+1,a=o+1,l=i+1,c=(1<<l)-1,d=0,p=0,m=0,h=e[t++],y=new Int32Array(4096),w=null;;){for(;d<16&&h!==0;)p|=e[t++]<<d,d+=8,h===1?h=e[t++]:--h;if(d<l)break;var x=p&c;if(p>>=l,d-=l,x!==s){if(x===o)break;for(var v=x<a?x:w,_=0,S=v;S>s;)S=y[S]>>8,++_;var A=S;if(m+_+(v!==x?1:0)>r)return void Kt.log("Warning, gif stream longer than expected.");n[m++]=A;var O=m+=_;for(v!==x&&(n[m++]=A),S=v;_--;)S=y[S],n[--O]=255&S,S>>=8;w!==null&&a<4096&&(y[a++]=w<<8|A,a>=c+1&&l<12&&(++l,c=c<<1|1)),w=x}else a=o+1,c=(1<<(l=i+1))-1,w=null}return m!==r&&Kt.log("Warning, gif stream shorter than expected."),n}/** 263 * @license 264 Copyright (c) 2008, Adobe Systems Incorporated 265 All rights reserved. 266 267 Redistribution and use in source and binary forms, with or without 268 modification, are permitted provided that the following conditions are 269 met: 270 271 * Redistributions of source code must retain the above copyright notice, 272 this list of conditions and the following disclaimer. 273 274 * Redistributions in binary form must reproduce the above copyright 275 notice, this list of conditions and the following disclaimer in the 276 documentation and/or other materials provided with the distribution. 277 278 * Neither the name of Adobe Systems Incorporated nor the names of its 279 contributors may be used to endorse or promote products derived from 280 this software without specific prior written permission. 281 282 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 283 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 284 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 285 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 286 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
287 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 288 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 289 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 290 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 291 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 292 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 293*/function l1(e){var t,n,r,i,s,o=Math.floor,a=new Array(64),l=new Array(64),c=new Array(64),d=new Array(64),p=new Array(65535),m=new Array(65535),h=new Array(64),y=new Array(64),w=[],x=0,v=7,_=new Array(64),S=new Array(64),A=new Array(64),O=new Array(256),$=new Array(2048),H=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],B=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],X=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],L=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],I=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],J=[0,1,2,3,4,5,6,7,8,9,10,11],q=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],se=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function ae(C,U){for(var K=0,Q=0,ne=new Array,re=1;re<=16;re++){for(var pe=1;pe<=C[re];pe++)ne[U[Q]]=[],ne[U[Q]][0]=K,ne[U[Q]][1]=re,Q++,K++;K*=2}return ne}function le(C){for(var U=C[0],K=C[1]-1;K>=0;)U&1<<K&&(x|=1<<v),K--,--v<0&&(x==255?(Y(255),Y(0)):Y(x),v=7,x=0)}function Y(C){w.push(C)}function Z(C){Y(C>>8&255),Y(255&C)}function he(C,U,K,Q,ne){for(var re,pe=ne[0],me=ne[240],ve=function(xe,tt){var Oe,Ze,Be,It,St,Xe,gt,kt,$e,st,We=0;for($e=0;$e<8;++$e){Oe=xe[We],Ze=xe[We+1],Be=xe[We+2],It=xe[We+3],St=xe[We+4],Xe=xe[We+5],gt=xe[We+6];var ln=Oe+(kt=xe[We+7]),At=Oe-kt,at=Ze+gt,vt=Ze-gt,Dt=Be+Xe,Qe=Be-Xe,Wt=It+St,nt=It-St,lt=ln+Wt,Yt=ln-Wt,yt=at+Dt,Ve=at-Dt;xe[We]=lt+yt,xe[We+4]=lt-yt;var jt=.707106781*(Ve+Yt);xe[We+2]=Yt+jt,xe[We+6]=Yt-jt;var it=.382683433*((lt=nt+Qe)-(Ve=vt+At)),ut=.5411961*lt+it,Lt=1.306562965*Ve+it,vn=.707106781*(yt=Qe+vt),Ue=At+vn,Gn=At-vn;xe[We+5]=Gn+ut,xe[We+3]=Gn-ut,xe[We+1]=Ue+Lt,xe[We+7]=Ue-Lt,We+=8}for(We=0,$e=0;$e<8;++$e){Oe=xe[We],Ze=xe[We+8],Be=xe[We+16],It=xe[We+24],St=xe[We+32],Xe=xe[We+40],gt=xe[We+48];var Qn=Oe+(kt=xe[We+56]),cn=Oe-kt,An=Ze+gt,yn=Ze-gt,Kn=Be+Xe,er=Be-Xe,Ta=It+St,Eo=It-St,Oi=Qn+Ta,ls=Qn-Ta,Ii=An+Kn,ji=An-Kn;xe[We]=Oi+Ii,xe[We+32]=Oi-Ii;var gi=.707106781*(ji+ls);xe[We+16]=ls+gi,xe[We+48]=ls-gi;var Ra=.382683433*((Oi=Eo+er)-(ji=yn+cn)),cs=.5411961*Oi+Ra,Oa=1.306562965*ji+Ra,Fl=.707106781*(Ii=er+yn),Dl=cn+Fl,Ml=cn-Fl;xe[We+40]=Ml+cs,xe[We+24]=Ml-cs,xe[We+8]=Dl+Oa,xe[We+56]=Dl-Oa,We++}for($e=0;$e<64;++$e)st=xe[$e]*tt[$e],h[$e]=st>0?st+.5|0:st-.5|0;return h}(C,U),Ae=0;Ae<64;++Ae)y[H[Ae]]=ve[Ae];var Re=y[0]-K;K=y[0],Re==0?le(Q[0]):(le(Q[m[re=32767+Re]]),le(p[re]));for(var Le=63;Le>0&&y[Le]==0;)Le--;if(Le==0)return le(pe),K;for(var He,z=1;z<=Le;){for(var Pe=z;y[z]==0&&z<=Le;)++z;var ht=z-Pe;if(ht>=16){He=ht>>4;for(var Ye=1;Ye<=He;++Ye)le(me);ht&=15}re=32767+y[z],le(ne[(ht<<4)+m[re]]),le(p[re]),z++}return Le!=63&&le(pe),K}function fe(C){C=Math.min(Math.max(C,1),100),s!=C&&(function(U){for(var K=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Q=0;Q<64;Q++){var ne=o((K[Q]*U+50)/100);ne=Math.min(Math.max(ne,1),255),a[H[Q]]=ne}for(var re=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],pe=0;pe<64;pe++){var me=o((re[pe]*U+50)/100);me=Math.min(Math.max(me,1),255),l[H[pe]]=me}for(var ve=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Ae=0,Re=0;Re<8;Re++)for(var Le=0;Le<8;Le++)c[Ae]=1/(a[H[Ae]]*ve[Re]*ve[Le]*8),d[Ae]=1/(l[H[Ae]]*ve[Re]*ve[Le]*8),Ae
vendor: 45,323 bytes, lines 293-299
293++}(C<50?Math.floor(5e3/C):Math.floor(200-2*C)),s=C)}this.encode=function(C,U){U&&fe(U),w=new Array,x=0,v=7,Z(65496),Z(65504),Z(16),Y(74),Y(70),Y(73),Y(70),Y(0),Y(1),Y(1),Y(0),Z(1),Z(1),Y(0),Y(0),function(){Z(65499),Z(132),Y(0);for(var Ze=0;Ze<64;Ze++)Y(a[Ze]);Y(1);for(var Be=0;Be<64;Be++)Y(l[Be])}(),function(Ze,Be){Z(65472),Z(17),Y(8),Z(Be),Z(Ze),Y(3),Y(1),Y(17),Y(0),Y(2),Y(17),Y(1),Y(3),Y(17),Y(1)}(C.width,C.height),function(){Z(65476),Z(418),Y(0);for(var Ze=0;Ze<16;Ze++)Y(B[Ze+1]);for(var Be=0;Be<=11;Be++)Y(R[Be]);Y(16);for(var It=0;It<16;It++)Y(X[It+1]);for(var St=0;St<=161;St++)Y(L[St]);Y(1);for(var Xe=0;Xe<16;Xe++)Y(I[Xe+1]);for(var gt=0;gt<=11;gt++)Y(J[gt]);Y(17);for(var kt=0;kt<16;kt++)Y(q[kt+1]);for(var $e=0;$e<=161;$e++)Y(se[$e])}(),Z(65498),Z(12),Y(3),Y(1),Y(0),Y(2),Y(17),Y(3),Y(17),Y(0),Y(63),Y(0);var K=0,Q=0,ne=0;x=0,v=7,this.encode.displayName="_encode_";for(var re,pe,me,ve,Ae,Re,Le,He,z,Pe=C.data,ht=C.width,Ye=C.height,xe=4*ht,tt=0;tt<Ye;){for(re=0;re<xe;){for(Ae=xe*tt+re,Le=-1,He=0,z=0;z<64;z++)Re=Ae+(He=z>>3)*xe+(Le=4*(7&z)),tt+He>=Ye&&(Re-=xe*(tt+1+He-Ye)),re+Le>=xe&&(Re-=re+Le-xe+4),pe=Pe[Re++],me=Pe[Re++],ve=Pe[Re++],_[z]=($[pe]+$[me+256|0]+$[ve+512|0]>>16)-128,S[z]=($[pe+768|0]+$[me+1024|0]+$[ve+1280|0]>>16)-128,A[z]=($[pe+1280|0]+$[me+1536|0]+$[ve+1792|0]>>16)-128;K=he(_,c,K,t,r),Q=he(S,d,Q,n,i),ne=he(A,d,ne,n,i),re+=32}tt+=8}if(v>=0){var Oe=[];Oe[1]=v+1,Oe[0]=(1<<v+1)-1,le(Oe)}return Z(65497),new Uint8Array(w)},e=e||50,function(){for(var C=String.fromCharCode,U=0;U<256;U++)O[U]=C(U)}(),t=ae(B,R),n=ae(I,J),r=ae(X,L),i=ae(q,se),function(){for(var C=1,U=2,K=1;K<=15;K++){for(var Q=C;Q<U;Q++)m[32767+Q]=K,p[32767+Q]=[],p[32767+Q][1]=K,p[32767+Q][0]=Q;for(var ne=-(U-1);ne<=-C;ne++)m[32767+ne]=K,p[32767+ne]=[],p[32767+ne][1]=K,p[32767+ne][0]=U-1+ne;C<<=1,U<<=1}}(),function(){for(var C=0;C<256;C++)$[C]=19595*C,$[C+256|0]=38470*C,$[C+512|0]=7471*C+32768,$[C+768|0]=-11059*C,$[C+1024|0]=-21709*C,$[C+1280|0]=32768*C+8421375,$[C+1536|0]=-27439*C,$[C+1792|0]=-5329*C}(),fe(e)}/** 294 * @license 295 * Copyright (c) 2017 Aras Abbasi 296 * 297 * Licensed under the MIT License. 298 * http://opensource.org/licenses/mit-license 299 */function qi(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function W_(e){function t(R){if(!R)throw Error("assert :P")}function n(R,X,L){for(var I=0;4>I;I++)if(R[X+I]!=L.charCodeAt(I))return!0;return!1}function r(R,X,L,I,J){for(var q=0;q<J;q++)R[X+q]=L[I+q]}function i(R,X,L,I){for(var J=0;J<I;J++)R[X+J]=L}function s(R){return new Int32Array(R)}function o(R,X){for(var L=[],I=0;I<R;I++)L.push(new X);return L}function a(R,X){var L=[];return function I(J,q,se){for(var ae=se[q],le=0;le<ae&&(J.push(se.length>q+1?[]:new X),!(se.length<q+1));le++)I(J[le],q+1,se)}(L,0,R),L}var l=function(){var R=this;function X(u,f){for(var b=1<<f-1>>>0;u&b;)b>>>=1;return b?(u&b-1)+b:u}function L(u,f,b,k,N){t(!(k%b));do u[f+(k-=b)]=N;while(0<k)}function I(u,f,b,k,N){if(t(2328>=N),512>=N)var P=s(512);else if((P=s(N))==null)return 0;return function(T,F,M,W,te,de){var V,ie,ce=F,ge=1<<M,ue=s(16),ye=s(16);for(t(te!=0),t(W!=null),t(T!=null),t(0<M),ie=0;ie<te;++ie){if(15<W[ie])return 0;++ue[W[ie]]}if(ue[0]==te)return 0;for(ye[1]=0,V=1;15>V;++V){if(ue[V]>1<<V)return 0;ye[V+1]=ye[V]+ue[V]}for(ie=0;ie<te;++ie)V=W[ie],0<W[ie]&&(de[ye[V]++]=ie);if(ye[15]==1)return(W=new J).g=0,W.value=de[0],L(T,ce,1,ge,W),ge;var be,Ee=-1,ke=ge-1,Ke=0,je=1,bt=1,ze=1<<M;for(ie=0,V=1,te=2;V<=M;++V,te<<=1){if(je+=bt<<=1,0>(bt-=ue[V]))return 0;for(;0<ue[V];--ue[V])(W=new J).g=V,W.value=de[ie++],L(T,ce+Ke,te,ze,W),Ke=X(Ke,V)}for(V=M+1,te=2;15>=V;++V,te<<=1){if(je+=bt<<=1,0>(bt-=ue[V]))return 0;for(;0<ue[V];--ue[V]){if(W=new J,(Ke&ke)!=Ee){for(ce+=ze,be=1<<(Ee=V)-M;15>Ee&&!(0>=(be-=ue[Ee]));)++Ee,be<<=1;ge+=ze=1<<(be=Ee-M),T[F+(Ee=Ke&ke)].g=be+M,T[F+Ee].value=ce-F-Ee}W.g=V-M,W.value=de[ie++],L(T,ce+(Ke>>M),te,ze,W),Ke=X(Ke,V)}}return je!=2*ye[15]-1?0:ge}(u,f,b,k,N,P)}function J(){this.value=this.g=0}function q(){this.value=this.g=0}function se(){this.G=o(5,J),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Ha,q)}function ae(u,f,b,k){t(u!=null),t(f!=null),t(2147483648>k),u.Ca=254,u.I=0,u.b=-8,u.Ka=0,u.oa=f,u.pa=b,u.Jd=f,u.Yc=b+k,u.Zc=4<=k?b+k-4+1:b,pe(u)}function le(u,f){for(var b=0;0<f--;)b|=ve(u,128)<<f;return b}function Y(u,f){var b=le(u,f);return me(u)?-b:b}function Z(u,f,b,k){var N,P=0;for(t(u!=null),t(f!=null),t(4294967288>k),u.Sb=k,u.Ra=0,u.u=0,u.h=0,4<k&&(k=4),N=0;N<k;++N)P+=f[b+N]<<8*N;u.Ra=P,u.bb=k,u.oa=f,u.pa=b}function he(u){for(;8<=u.u&&u.bb<u.Sb;)u.Ra>>>=8,u.Ra+=u.oa[u.pa+u.bb]<<Po-8>>>0,++u.bb,u.u-=8;Q(u)&&(u.h=1,u.u=0)}function fe(u,f){if(t(0<=f),!u.h&&f<=Yr){var b=K(u)&Kr[f];return u.u+=f,he(u),b}return u.h=1,u.u=0}function C(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function U(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function K(u){return u.Ra>>>(u.u&Po-1)>>>0}function Q(u){return t(u.bb<=u.Sb),u.h||u.bb==u.Sb&&u.u>Po}function ne(u,f){u.u=f,u.h=Q(u)}function re(u){u.u>=Xs&&(t(u.u>=Xs),he(u))}function pe(u){t(u!=null&&u.oa!=null),u.pa<u.Zc?(u.I=(u.oa[u.pa++]|u.I<<8)>>>0,u.b+=8):(t(u!=null&&u.oa!=null),u.pa<u.Yc?(u.b+=8,u.I=u.oa[u.pa++]|u.I<<8):u.Ka?u.b=0:(u.I<<=8,u.b+=8,u.Ka=1))}function me(u){return le(u,1)}function ve(u,f){var b=u.Ca;0>u.b&&pe(u);var k=u.b,N=b*f>>>8,P=(u.I>>>k>N)+0;for(P?(b-=N,u.I-=N+1<<k>>>0):b=N+1,k=b,N=0;256<=k;)N+=8,k>>=8;return k=7^N+To[k],u.b-=k,u.Ca=(b<<k)-1,P}function Ae(u,f,b){u[f+0]=b>>24&255,u[f+1]=b>>16&255,u[f+2]=b>>8&255,u[f+3]=255&b}function Re(u,f){return u[f+0]|u[f+1]<<8}function Le(u,f){return Re(u,f)|u[f+2]<<16}function He(u,f){return Re(u,f)|Re(u,f+2)<<16}function z(u,f){var b=1<<f;return t(u!=null),t(0<f),u.X=s(b),u.X==null?0:(u.Mb=32-f,u.Xa=f,1)}function Pe(u,f){t(u!=null),t(f!=null),t(u.Xa==f.Xa),r(f.X,0,u.X,0,1<<f.Xa)}function ht(){this.X=[],this.Xa=this.Mb=0}function Ye(u,f,b,k){t(b!=null),t(k!=null);var N=b[0],P=k[0];return N==0&&(N=(u*P+f/2)/f),P==0&&(P=(f*N+u/2)/u),0>=N||0>=P?0:(b[0]=N,k[0]=P,1)}function xe(u,f){return u+(1<<f)-1>>>f}function tt(u,f){return((4278255360&u)+(4278255360&f)>>>0&4278255360)+((16711935&u)+(16711935&f)>>>0&16711935)>>>0}function Oe(u,f){R[f]=function(b,k,N,P,T,F,M){var W;for(W=0;W<T;++W){var te=R[u](F[M+W-1],N,P+W);F[M+W]=tt(b[k+W],te)}}}function Ze(){this.ud=this.hd=this.jd=0}function Be(u,f){return((4278124286&(u^f))>>>1)+(u&f)>>>0}function It(u){return 0<=u&&256>u?u:0>u?0:255<u?255:void 0}function St(u,f){return It(u+(u-f+.5>>1))}function Xe(u,f,b){return Math.abs(f-b)-Math.abs(u-b)}function gt(u,f,b,k,N,P,T){for(k=P[T-1],b=0;b<N;++b)P[T+b]=k=tt(u[f+b],k)}function kt(u,f,b,k,N){var P;for(P=0;P<b;++P){var T=u[f+P],F=T>>8&255,M=16711935&(M=(M=16711935&T)+((F<<16)+F));k[N+P]=(4278255360&T)+M>>>0}}function $e(u,f){f.jd=255&u,f.hd=u>>8&255,f.ud=u>>16&255}function st(u,f,b,k,N,P){var T;for(T=0;T<k;++T){var F=f[b+T],M=F>>>8,W=F,te=255&(te=(te=F>>>16)+((u.jd<<24>>24)*(M<<24>>24)>>>5));W=255&(W=(W+=(u.hd<<24>>24)*(M<<24>>24)>>>5)+((u.ud<<24>>24)*(te<<24>>24)>>>5)),N[P+T]=(4278255360&F)+(te<<16)+W}}function We(u,f,b,k,N){R[f]=function(P,T,F,M,W,te,de,V,ie){for(M=de;M<V;++M)for(de=0;de<ie;++de)W[te++]=N(F[k(P[T++])])},R[u]=function(P,T,F,M,W,te,de){var V=8>>P.b,ie=P.Ea,ce=P.K[0],ge=P.w;if(8>V)for(P=(1<<P.b)-1,ge=(1<<V)-1;T<F;++T){var ue,ye=0;for(ue=0;ue<ie;++ue)ue&P||(ye=k(M[W++])),te[de++]=N(ce[ye&ge]),ye>>=V}else R["VP8LMapColor"+b](M,W,ce,ge,te,de,T,F,ie)}}function ln(u,f,b,k,N){for(b=f+b;f<b;){var P=u[f++];k[N++]=P>>16&255,k[N++]=P>>8&255,k[N++]=255&P}}function At(u,f,b,k,N){for(b=f+b;f<b;){var P=u[f++];k[N++]=P>>16&255,k[N++]=P>>8&255,k[N++]=255&P,k[N++]=P>>24&255}}function at(u,f,b,k,N){for(b=f+b;f<b;){var P=(T=u[f++])>>16&240|T>>12&15,T=240&T|T>>28&15;k[N++]=P,k[N++]=T}}function vt(u,f,b,k,N){for(b=f+b;f<b;){var P=(T=u[f++])>>16&248|T>>13&7,T=T>>5&224|T>>3&31;k[N++]=P,k[N++]=T}}function Dt(u,f,b,k,N){for(b=f+b;f<b;){var P=u[f++];k[N++]=255&P,k[N++]=P>>8&255,k[N++]=P>>16&255}}function Qe(u,f,b,k,N,P){if(P==0)for(b=f+b;f<b;)Ae(k,((P=u[f++])[0]>>24|P[1]>>8&65280|P[2]<<8&16711680|P[3]<<24)>>>0),N+=32;else r(k,N,u,f,b)}function Wt(u,f){R[f][0]=R[u+"0"],R[f][1]=R[u+"1"],R[f][2]=R[u+"2"],R[f][3]=R[u+"3"],R[f][4]=R[u+"4"],R[f][5]=R[u+"5"],R[f][6]=R[u+"6"],R[f][7]=R[u+"7"],R[f][8]=R[u+"8"],R[f][9]=R[u+"9"],R[f][10]=R[u+"10"],R[f][11]=R[u+"11"],R[f][12]=R[u+"12"],R[f][13]=R[u+"13"],R[f][14]=R[u+"0"],R[f][15]=R[u+"0"]}function nt(u){return u==Im||u==jm||u==cf||u==Fm}function lt(){this.eb=[],this.size=this.A=this.fb=0}function Yt(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function yt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new lt,this.f.kb=new Yt,this.sd=null}function Ve(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function jt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function it(u){return alert("todo:WebPSamplerProcessPlane"),u.T}function ut(u,f){var b=u.T,k=f.ba.f.RGBA,N=k.eb,P=k.fb+u.ka*k.A,T=xi[f.ba.S],F=u.y,M=u.O,W=u.f,te=u.N,de=u.ea,V=u.W,ie=f.cc,ce=f.dc,ge=f.Mc,ue=f.Nc,ye=u.ka,be=u.ka+u.T,Ee=u.U,ke=Ee+1>>1;for(ye==0?T(F,M,null,null,W,te,de,V,W,te,de,V,N,P,null,null,Ee):(T(f.ec,f.fc,F,M,ie,ce,ge,ue,W,te,de,V,N,P-k.A,N,P,Ee),++b);ye+2<be;ye+=2)ie=W,ce=te,ge=de,ue=V,te+=u.Rc,V+=u.Rc,P+=2*k.A,T(F,(M+=2*u.fa)-u.fa,F,M,ie,ce,ge,ue,W,te,de,V,N,P-k.A,N,P,Ee);return M+=u.fa,u.j+be<u.o?(r(f.ec,f.fc,F,M,Ee),r(f.cc,f.dc,W,te,ke),r(f.Mc,f.Nc,de,V,ke),b--):1&be||T(F,M,null,null,W,te,de,V,W,te,de,V,N,P+k.A,null,null,Ee),b}function Lt(u,f,b){var k=u.F,N=[u.J];if(k!=null){var P=u.U,T=f.ba.S,F=T==lf||T==cf;f=f.ba.f.RGBA;var M=[0],W=u.ka;M[0]=u.T,u.Kb&&(W==0?--M[0]:(--W,N[0]-=u.width),u.j+u.ka+u.T==u.o&&(M[0]=u.o-u.j-W));var te=f.eb;W=f.fb+W*f.A,u=zy(k,N[0],u.width,P,M,te,W+(F?0:3),f.A),t(b==M),u&&nt(T)&&Wu(te,W,F,P,M,f.A)}return 0}function vn(u){var f=u.ma,b=f.ba.S,k=11>b,N=b==of||b==af||b==lf||b==Om||b==12||nt(b);if(f.memory=null,f.Ib=null,f.Jb=null,f.Nd=null,!Du(f.Oa,u,N?11:12))return 0;if(N&&nt(b)&&Iu(),u.da)alert("todo:use_scaling");else{if(k){if(f.Ib=it,u.Kb){if(b=u.U+1>>1,f.memory=s(u.U+2*b),f.memory==null)return 0;f.ec=f.memory,f.fc=0,f.cc=f.ec,f.dc=f.fc+u.U,f.Mc=f.cc,f.Nc=f.dc+b,f.Ib=ut,Iu()}}else alert("todo:EmitYUV");N&&(f.Jb=Lt,k&&Di())}if(k&&!s5){for(u=0;256>u;++u)dN[u]=89858*(u-128)+df>>uf,pN[u]=-22014*(u-128)+df,fN[u]=-45773*(u-128),hN[u]=113618*(u-128)+df>>uf;for(u=Gu;u<Bm;++u)f=76283*(u-16)+df>>uf,mN[u-Gu]=us(f,255),gN[u-Gu]=us(f+8>>4,15);s5=1}return 1}function Ue(u){var f=u.ma,b=u.U,k=u.T;return t(!(1&u.ka)),0>=b||0>=k?0:(b=f.Ib(u,f),f.Jb!=null&&f.Jb(u,f,b),f.Dc+=b,1)}function Gn(u){u.ma.memory=null}function Qn(u,f,b,k){return fe(u,8)!=47?0:(f[0]=fe(u,14)+1,b[0]=fe(u,14)+1,k[0]=fe(u,1),fe(u,3)!=0?0:!u.h)}function cn(u,f){if(4>u)return u+1;var b=u-2>>1;return(2+(1&u)<<b)+fe(f,b)+1}function An(u,f){return 120<f?f-120:1<=(b=((b=XE[f-1])>>4)*u+(8-(15&b)))?b:1;var b}function yn(u,f,b){var k=K(b),N=u[f+=255&k].g-8;return 0<N&&(ne(b,b.u+8),k=K(b),f+=u[f].value,f+=k&(1<<N)-1),ne(b,b.u+u[f].g),u[f].value}function Kn(u,f,b){return b.g+=u.g,b.value+=u.value<<f>>>0,t(8>=b.g),u.g}function er(u,f,b){var k=u.xc;return t((f=k==0?0:u.vc[u.md*(b>>k)+(f>>k)])<u.Wb),u.Ya[f]}function Ta(u,f,b,k){var N=u.ab,P=u.c*f,T=u.C;f=T+f;var F=b,M=k;for(k=u.Ta,b=u.Ua;0<N--;){var W=u.gc[N],te=T,de=f,V=F,ie=M,ce=(M=k,F=b,W.Ea);switch(t(te<de),t(de<=W.nc),W.hc){case 2:En(V,ie,(de-te)*ce,M,F);break;case 0:var ge=te,ue=de,ye=M,be=F,Ee=(ze=W).Ea;ge==0&&(Bu(V,ie,null,null,1,ye,be),gt(V,ie+1,0,0,Ee-1,ye,be+1),ie+=Ee,be+=Ee,++ge);for(var ke=1<<ze.b,Ke=ke-1,je=xe(Ee,ze.b),bt=ze.K,ze=ze.w+(ge>>ze.b)*je;ge<ue;){var Nt=bt,zn=ze,_t=1;for(Vl(V,ie,ye,be-Ee,1,ye,be);_t<Ee;){var qe=(_t&~Ke)+ke;qe>Ee&&(qe=Ee),(0,$u[Nt[zn++]>>8&15])(V,ie+ +_t,ye,be+_t-Ee,qe-_t,ye,be+_t),_t=qe}ie+=Ee,be+=Ee,++ge&Ke||(ze+=je)}de!=W.nc&&r(M,F-ce,M,F+(de-te-1)*ce,ce);break;case 1:for(ce=V,ue=ie,Ee=(V=W.Ea)-(be=V&~(ye=(ie=1<<W.b)-1)),ge=xe(V,W.b),ke=W.K,W=W.w+(te>>W.b)*ge;te<de;){for(Ke=ke,je=W,bt=new Ze,ze=ue+be,Nt=ue+V;ue<ze;)$e(Ke[je++],bt),zu(bt,ce,ue,ie,M,F),ue+=ie,F+=ie;ue<Nt&&($e(Ke[je++],bt),zu(bt,ce,ue,Ee,M,F),ue+=Ee,F+=Ee),++te&ye||(W+=ge)}break;case 3:if(V==M&&ie==F&&0<W.b){for(ue=M,V=ce=F+(de-te)*ce-(be=(de-te)*xe(W.Ea,W.b)),ie=M,ye=F,ge=[],be=(Ee=be)-1;0<=be;--be)ge[be]=ie[ye+be];for(be=Ee-1;0<=be;--be)ue[V+be]=ge[be];tf(W,te,de,M,ce,M,F)}else tf(W,te,de,V,ie,M,F)}F=k,M=b}M!=b&&r(k,b,F,M,P)}function Eo(u,f){var b=u.V,k=u.Ba+u.c*u.C,N=f-u.C;if(t(f<=u.l.o),t(16>=N),0<N){var P=u.l,T=u.Ta,F=u.Ua,M=P.width;if(Ta(u,N,b,k),N=F=[F],t((b=u.C)<(k=f)),t(P.v<P.va),k>P.o&&(k=P.o),b<P.j){var W=P.j-b;b=P.j,N[0]+=W*M}if(b>=k?b=0:(N[0]+=4*P.v,P.ka=b-P.j,P.U=P.va-P.v,P.T=k-b,b=1),b){if(F=F[0],11>(b=u.ca).S){var te=b.f.RGBA,de=(k=b.S,N=P.U,P=P.T,W=te.eb,te.A),V=P;for(te=te.fb+u.Ma*te.A;0<V--;){var ie=T,ce=F,ge=N,ue=W,ye=te;switch(k){case sf:qu(ie,ce,ge,ue,ye);break;case of:Ro(ie,ce,ge,ue,ye);break;case Im:Ro(ie,ce,ge,ue,ye),Wu(ue,ye,0,ge,1,0);break;case Yy:Wa(ie,ce,ge,ue,ye);break;case af:Qe(ie,ce,ge,ue,ye,1);break;case jm:Qe(ie,ce,ge,ue,ye,1),Wu(ue,ye,0,ge,1,0);break;case lf:Qe(ie,ce,ge,ue,ye,0);break;case cf:Qe(ie,ce,ge,ue,ye,0),Wu(ue,ye,1,ge,1,0);break;case Om:Oo(ie,ce,ge,ue,ye);break;case Fm:Oo(ie,ce,ge,ue,ye),$y(ue,ye,ge,1,0);break;case Jy:Io(ie,ce,ge,ue,ye);break;default:t(0)}F+=M,te+=de}u.Ma+=P}else alert("todo:EmitRescaledRowsYUVA");t(u.Ma<=b.height)}}u.C=f,t(u.C<=u.i)}function Oi(u){var f;if(0<u.ua)return 0;for(f=0;f<u.Wb;++f){var b=u.Ya[f].G,k=u.Ya[f].H;if(0<b[1][k[1]+0].g||0<b[2][k[2]+0].g||0<b[3][k[3]+0].g)return 0}return 1}function ls(u,f,b,k,N,P){if(u.Z!=0){var T=u.qd,F=u.rd;for(t(Do[u.Z]!=null);f<b;++f)Do[u.Z](T,F,k,N,k,N,P),T=k,F=N,N+=P;u.qd=T,u.rd=F}}function Ii(u,f){var b=u.l.ma,k=b.Z==0||b.Z==1?u.l.j:u.C;if(k=u.C<k?k:u.C,t(f<=u.l.o),f>k){var N=u.l.width,P=b.ca,T=b.tb+N*k,F=u.V,M=u.Ba+u.c*k,W=u.gc;t(u.ab==1),t(W[0].hc==3),ps(W[0],k,f,F,M,P,T),ls(b,k,f,P,T,N)}u.C=u.Ma=f}function ji(u,f,b,k,N,P,T){var F=u.$/k,M=u.$%k,W=u.m,te=u.s,de=b+u.$,V=de;N=b+k*N;var ie=b+k*P,ce=280+te.ua,ge=u.Pb?F:16777216,ue=0<te.ua?te.Wa:null,ye=te.wc,be=de<ie?er(te,M,F):null;t(u.C<P),t(ie<=N);var Ee=!1;e:for(;;){for(;Ee||de<ie;){var ke=0;if(F>=ge){var Ke=de-b;t((ge=u).Pb),ge.wd=ge.m,ge.xd=Ke,0<ge.s.ua&&Pe(ge.s.Wa,ge.s.vb),ge=F+QE}if(M&ye||(be=er(te,M,F)),t(be!=null),be.Qb&&(f[de]=be.qb,Ee=!0),!Ee)if(re(W),be.jc){ke=W,Ke=f;var je=de,bt=be.pd[K(ke)&Ha-1];t(be.jc),256>bt.g?(ne(ke,ke.u+bt.g),Ke[je]=bt.value,ke=0):(ne(ke,ke.u+bt.g-256),t(256<=bt.value),ke=bt.value),ke==0&&(Ee=!0)}else ke=yn(be.G[0],be.H[0],W);if(W.h)break;if(Ee||256>ke){if(!Ee)if(be.nd)f[de]=(be.qb|ke<<8)>>>0;else{if(re(W),Ee=yn(be.G[1],be.H[1],W),re(W),Ke=yn(be.G[2],be.H[2],W),je=yn(be.G[3],be.H[3],W),W.h)break;f[de]=(je<<24|Ee<<16|ke<<8|Ke)>>>0}if(Ee=!1,++de,++M>=k&&(M=0,++F,T!=null&&F<=P&&!(F%16)&&T(u,F),ue!=null))for(;V<de;)ke=f[V++],ue.X[(506832829*ke&4294967295)>>>ue.Mb]=ke}else if(280>ke){if(ke=cn(ke-256,W),Ke=yn(be.G[4],be.H[4],W),re(W),Ke=An(k,Ke=cn(Ke,W)),W.h)break;if(de-b<Ke||N-de<ke)break e;for(je=0;je<ke;++je)f[de+je]=f[de+je-Ke];for(de+=ke,M+=ke;M>=k;)M-=k,++F,T!=null&&F<=P&&!(F%16)&&T(u,F);if(t(de<=N),M&ye&&(be=er(te,M,F)),ue!=null)for(;V<de;)ke=f[V++],ue.X[(506832829*ke&4294967295)>>>ue.Mb]=ke}else{if(!(ke<ce))break e;for(Ee=ke-280,t(ue!=null);V<de;)ke=f[V++],ue.X[(506832829*ke&4294967295)>>>ue.Mb]=ke;ke=de,t(!(Ee>>>(Ke=ue).Xa)),f[ke]=Ke.X[Ee],Ee=!0}Ee||t(W.h==Q(W))}if(u.Pb&&W.h&&de<N)t(u.m.h),u.a=5,u.m=u.wd,u.$=u.xd,0<u.s.ua&&Pe(u.s.vb,u.s.Wa);else{if(W.h)break e;T!=null&&T(u,F>P?P:F),u.a=0,u.$=de-b}return 1}return u.a=3,0}function gi(u){t(u!=null),u.vc=null,u.yc=null,u.Ya=null;var f=u.Wa;f!=null&&(f.X=null),u.vb=null,t(u!=null)}function Ra(){var u=new ct;return u==null?null:(u.a=0,u.xb=Qy,Wt("Predictor","VP8LPredictors"),Wt("Predictor","VP8LPredictors_C"),Wt("PredictorAdd","VP8LPredictorsAdd"),Wt("PredictorAdd","VP8LPredictorsAdd_C"),En=kt,zu=st,qu=ln,Ro=At,Oo=at,Io=vt,Wa=Dt,R.VP8LMapColor32b=fs,R.VP8LMapColor8b=Uu,u)}function cs(u,f,b,k,N){var P=1,T=[u],F=[f],M=k.m,W=k.s,te=null,de=0;e:for(;;){if(b)for(;P&&fe(M,1);){var V=T,ie=F,ce=k,ge=1,ue=ce.m,ye=ce.gc[ce.ab],be=fe(ue,2);if(ce.Oc&1<<be)P=0;else{switch(ce.Oc|=1<<be,ye.hc=be,ye.Ea=V[0],ye.nc=ie[0],ye.K=[null],++ce.ab,t(4>=ce.ab),be){case 0:case 1:ye.b=fe(ue,3)+2,ge=cs(xe(ye.Ea,ye.b),xe(ye.nc,ye.b),0,ce,ye.K),ye.K=ye.K[0];break;case 3:var Ee,ke=fe(ue,8)+1,Ke=16<ke?0:4<ke?1:2<ke?2:3;if(V[0]=xe(ye.Ea,Ke),ye.b=Ke,Ee=ge=cs(ke,1,0,ce,ye.K)){var je,bt=ke,ze=ye,Nt=1<<(8>>ze.b),zn=s(Nt);if(zn==null)Ee=0;else{var _t=ze.K[0],qe=ze.w;for(zn[0]=ze.K[0][0],je=1;je<1*bt;++je)zn[je]=tt(_t[qe+je],zn[je-1]);for(;je<4*Nt;++je)zn[je]=0;ze.K[0]=null,ze.K[0]=zn,Ee=1}}ge=Ee;break;case 2:break;default:t(0)}P=ge}}if(T=T[0],F=F[0],P&&fe(M,1)&&!(P=1<=(de=fe(M,4))&&11>=de)){k.a=3;break e}var Te;if(Te=P)t:{var Cn,pt,Pt,tn=k,rr=T,Ar=F,wn=de,fr=b,Er=tn.m,qn=tn.s,Rt=[null],Ut=1,bn=0,$t=ZE[wn];n:for(;;){if(fr&&fe(Er,1)){var ir=fe(Er,3)+2,Bi=xe(rr,ir),Ln=xe(Ar,ir),Fr=Bi*Ln;if(!cs(Bi,Ln,0,tn,Rt))break n;for(Rt=Rt[0],qn.xc=ir,Cn=0;Cn<Fr;++Cn){var Gt=Rt[Cn]>>8&65535;Rt[Cn]=Gt,Gt>=Ut&&(Ut=Gt+1)}}if(Er.h)break n;for(pt=0;5>pt;++pt){var Hn=Xy[pt];!pt&&0<wn&&(Hn+=1<<wn),bn<Hn&&(bn=Hn)}var Xr=o(Ut*$t,J),Nr=Ut,Zr=o(Nr,se);if(Zr==null)var Qr=null;else t(65536>=Nr),Qr=Zr;var Dr=s(bn);if(Qr==null||Dr==null||Xr==null){tn.a=1;break n}var ei=Xr;for(Cn=Pt=0;Cn<Ut;++Cn){var Xt=Qr[Cn],ti=Xt.G,Ui=Xt.H,Ga=0,eo=1,sr=0;for(pt=0;5>pt;++pt){Hn=Xy[pt],ti[pt]=ei,Ui[pt]=Pt,!pt&&0<wn&&(Hn+=1<<wn);i:{var ff,Um=Hn,pf=tn,Ku=Dr,wN=ei,bN=Pt,$m=0,Mo=pf.m,_N=fe(Mo,1);if(i(Ku,0,0,Um),_N){var xN=fe(Mo,1)+1,SN=fe(Mo,1),l5=fe(Mo,SN==0?1:8);Ku[l5]=1,xN==2&&(Ku[l5=fe(Mo,8)]=1);var mf=1}else{var c5=s(19),u5=fe(Mo,4)+4;if(19<u5){pf.a=3;var gf=0;break i}for(ff=0;ff<u5;++ff)c5[JE[ff]]=fe(Mo,3);var zm=void 0,Yu=void 0,d5=pf,kN=c5,vf=Um,h5=Ku,qm=0,Bo=d5.m,f5=8,p5=o(128,J);r:for(;I(p5,0,7,kN,19);){if(fe(Bo,1)){var AN=2+2*fe(Bo,3);if((zm=2+fe(Bo,AN))>vf)break r}else zm=vf;for(Yu=0;Yu<vf&&zm--;){re(Bo);var m5=p5[0+(127&K(Bo))];ne(Bo,Bo.u+m5.g);var Kl=m5.value;if(16>Kl)h5[Yu++]=Kl,Kl!=0&&(f5=Kl);else{var EN=Kl==16,g5=Kl-16,NN=KE[g5],v5=fe(Bo,GE[g5])+NN;if(Yu+v5>vf)break r;for(var CN=EN?f5:0;0<v5--;)h5[Yu++]=CN}}qm=1;break r}qm||(d5.a=3),mf=qm}(mf=mf&&!Mo.h)&&($m=I(wN,bN,8,Ku,Um)),mf&&$m!=0?gf=$m:(pf.a=3,gf=0)}if(gf==0)break n;if(eo&&YE[pt]==1&&(eo=ei[Pt].g==0),Ga+=ei[Pt].g,Pt+=gf,3>=pt){var Ju,Hm=Dr[0];for(Ju=1;Ju<Hn;++Ju)Dr[Ju]>Hm&&(Hm=Dr[Ju]);sr+=Hm}}if(Xt.nd=eo,Xt.Qb=0,eo&&(Xt.qb=(ti[3][Ui[3]+0].value<<24|ti[1][Ui[1]+0].value<<16|ti[2][Ui[2]+0].value)>>>0,Ga==0&&256>ti[0][Ui[0]+0].value&&(Xt.Qb=1,Xt.qb+=ti[0][Ui[0]+0].value<<8)),Xt.jc=!Xt.Qb&&6>sr,Xt.jc){var yf,to=Xt;for(yf=0;yf<Ha;++yf){var Uo=yf,$o=to.pd[Uo],wf=to.G[0][to.H[0]+Uo];256<=wf.value?($o.g=wf.g+256,$o.value=wf.value):($o.g=0,$o.value=0,Uo>>=Kn(wf,8,$o),Uo>>=Kn(to.G[1][to.H[1]+Uo],16,$o),Uo>>=Kn(to.G[2][to.H[2]+Uo],0,$o),Kn(to.G[3][to.H[3]+Uo],24,$o))}}}qn.vc=Rt,qn.Wb=Ut,qn.Ya=Qr,qn.yc=Xr,Te=1;break t}Te=0}if(!(P=Te)){k.a=3;break e}if(0<de){if(W.ua=1<<de,!z(W.Wa,de)){k.a=1,P=0;break e}}else W.ua=0;var Wm=k,y5=T,LN=F,Vm=Wm.s,Gm=Vm.xc;if(Wm.c=y5,Wm.i=LN,Vm.md=xe(y5,Gm),Vm.wc=Gm==0?-1:(1<<Gm)-1,b){k.xb=oN;break e}if((te=s(T*F))==null){k.a=1,P=0;break e}P=(P=ji(k,te,0,T,F,F,null))&&!M.h;break e}return P?(N!=null?N[0]=te:(t(te==null),t(b)),k.$=0,b||gi(W)):gi(W),P}function Oa(u,f){var b=u.c*u.i,k=b+f+16*f;return t(u.c<=f),u.V=s(k),u.V==null?(u.Ta=null,u.Ua=0,u.a=1,0):(u.Ta=u.V,u.Ua=u.Ba+b+f,1)}function Fl(u,f){var b=u.C,k=f-b,N=u.V,P=u.Ba+u.c*b;for(t(f<=u.l.o);0<k;){var T=16<k?16:k,F=u.l.ma,M=u.l.width,W=M*T,te=F.ca,de=F.tb+M*b,V=u.Ta,ie=u.Ua;Ta(u,T,N,P),qy(V,ie,te,de,W),ls(F,b,b+T,te,de,M),k-=T,N+=T*u.c,b+=T}t(b==f),u.C=u.Ma=f}function Dl(){this.ub=this.yd=this.td=this.Rb=0}function Ml(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function gm(){this.Fb=this.Bb=this.Cb=0,this.Zb=s(4),this.Lb=s(4)}function Su(){this.Yb=function(){var u=[];return function f(b,k,N){for(var P=N[k],T=0;T<P&&(b.push(N.length>k+1?[]:0),!(N.length<k+1));T++)f(b[T],k+1,N)}(u,0,[3,11]),u}()}function Dh(){this.jb=s(3),this.Wc=a([4,8],Su),this.Xc=a([4,17],Su)}function Mh(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new s(4),this.od=new s(4)}function vi(){this.ld=this.La=this.dd=this.tc=0}function ku(){this.Na=this.la=0}function Bh(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Au(){this.ad=s(384),this.Za=0,this.Ob=s(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Uh(){this.uc=this.M=this.Nb=0,this.wa=Array(new vi),this.Y=0,this.ya=Array(new Au),this.aa=0,this.l=new Bl}function $h(){this.y=s(16),this.f=s(8),this.ea=s(8)}function zh(){this.cb=this.a=0,this.sc="",this.m=new C,this.Od=new Dl,this.Kc=new Ml,this.ed=new Mh,this.Qa=new gm,this.Ic=this.$c=this.Aa=0,this.D=new Uh,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,C),this.ia=0,this.pb=o(4,Bh),this.Pa=new Dh,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new $h),this.Hd=0,this.rb=Array(new ku),this.sb=0,this.wa=Array(new vi),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Au),this.L=this.aa=0,this.gd=a([4,2],vi),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function us(u,f){return 0>u?0:u>f?f:u}function Bl(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function vm(){var u=new zh;return u!=null&&(u.a=0,u.sc="OK",u.cb=0,u.Xb=0,Vu||(Vu=Ul)),u}function In(u,f,b){return u.a==0&&(u.a=f,u.sc=b,u.cb=0),0}function qh(u,f,b){return 3<=b&&u[f+0]==157&&u[f+1]==1&&u[f+2]==42}function ds(u,f){if(u==null)return 0;if(u.a=0,u.sc="OK",f==null)return In(u,2,"null VP8Io passed to VP8GetHeaders()");var b=f.data,k=f.w,N=f.ha;if(4>N)return In(u,7,"Truncated header.");var P=b[k+0]|b[k+1]<<8|b[k+2]<<16,T=u.Od;if(T.Rb=!(1&P),T.td=P>>1&7,T.yd=P>>4&1,T.ub=P>>5,3<T.td)return In(u,3,"Incorrect keyframe parameters.");if(!T.yd)return In(u,4,"Frame not displayable.");k+=3,N-=3;var F=u.Kc;if(T.Rb){if(7>N)return In(u,7,"cannot parse picture header");if(!qh(b,k,N))return In(u,3,"Bad code word");F.c=16383&(b[k+4]<<8|b[k+3]),F.Td=b[k+4]>>6,F.i=16383&(b[k+6]<<8|b[k+5]),F.Ud=b[k+6]>>6,k+=7,N-=7,u.za=F.c+15>>4,u.Ub=F.i+15>>4,f.width=F.c,f.height=F.i,f.Da=0,f.j=0,f.v=0,f.va=f.width,f.o=f.height,f.da=0,f.ib=f.width,f.hb=f.height,f.U=f.width,f.T=f.height,i((P=u.Pa).jb,0,255,P.jb.length),t((P=u.Qa)!=null),P.Cb=0,P.Bb=0,P.Fb=1,i(P.Zb,0,0,P.Zb.length),i(P.Lb,0,0,P.Lb)}if(T.ub>N)return In(u,7,"bad partition length");ae(P=u.m,b,k,T.ub),k+=T.ub,N-=T.ub,T.Rb&&(F.Ld=me(P),F.Kd=me(P)),F=u.Qa;var M,W=u.Pa;if(t(P!=null),t(F!=null),F.Cb=me(P),F.Cb){if(F.Bb=me(P),me(P)){for(F.Fb=me(P),M=0;4>M;++M)F.Zb[M]=me(P)?Y(P,7):0;for(M=0;4>M;++M)F.Lb[M]=me(P)?Y(P,6):0}if(F.Bb)for(M=0;3>M;++M)W.jb[M]=me(P)?le(P,8):255}else F.Bb=0;if(P.Ka)return In(u,3,"cannot parse segment header");if((F=u.ed).zd=me(P),F.Tb=le(P,6),F.wb=le(P,3),F.Pc=me(P),F.Pc&&me(P)){for(W=0;4>W;++W)me(P)&&(F.vd[W]=Y(P,6));for(W=0;4>W;++W)me(P)&&(F.od[W]=Y(P,6))}if(u.L=F.Tb==0?0:F.zd?1:2,P.Ka)return In(u,3,"cannot parse filter header");var te=N;if(N=M=k,k=M+te,F=te,u.Xb=(1<<le(u.m,2))-1,te<3*(W=u.Xb))b=7;else{for(M+=3*W,F-=3*W,te=0;te<W;++te){var de=b[N+0]|b[N+1]<<8|b[N+2]<<16;de>F&&(de=F),ae(u.Jc[+te],b,M,de),M+=de,F-=de,N+=3}ae(u.Jc[+W],b,M,F),b=M<k?0:5}if(b!=0)return In(u,b,"cannot parse partitions");for(b=le(M=u.m,7),N=me(M)?Y(M,4):0,k=me(M)?Y(M,4):0,F=me(M)?Y(M,4):0,W=me(M)?Y(M,4):0,M=me(M)?Y(M,4):0,te=u.Qa,de=0;4>de;++de){if(te.Cb){var V=te.Zb[de];te.Fb||(V+=b)}else{if(0<de){u.pb[de]=u.pb[0];continue}V=b}var ie=u.pb[de];ie.Sc[0]=Dm[us(V+N,127)],ie.Sc[1]=Mm[us(V+0,127)],ie.Eb[0]=2*Dm[us(V+k,127)],ie.Eb[1]=101581*Mm[us(V+F,127)]>>16,8>ie.Eb[1]&&(ie.Eb[1]=8),ie.Qc[0]=Dm[us(V+W,117)],ie.Qc[1]=Mm[us(V+M,127)],ie.lc=V+M}if(!T.Rb)return In(u,4,"Not a key frame.");for(me(P),T=u.Pa,b=0;4>b;++b){for(N=0;8>N;++N)for(k=0;3>k;++k)for(F=0;11>F;++F)W=ve(P,iN[b][N][k][F])?le(P,8):nN[b][N][k][F],T.Wc[b][N].Yb[k][F]=W;for(N=0;17>N;++N)T.Xc[b][N]=T.Wc[b][sN[N]]}return u.kc=me(P),u.kc&&(u.Bd=le(P,8)),u.cb=1}function Ul(u,f,b,k,N,P,T){var F=f[N].Yb[b];for(b=0;16>N;++N){if(!ve(u,F[b+0]))return N;for(;!ve(u,F[b+1]);)if(F=f[++N].Yb[0],b=0,N==16)return 16;var M=f[N+1].Yb;if(ve(u,F[b+2])){var W=u,te=0;if(ve(W,(V=F)[(de=b)+3]))if(ve(W,V[de+6])){for(F=0,de=2*(te=ve(W,V[de+8]))+(V=ve(W,V[de+9+te])),te=0,V=eN[de];V[F];++F)te+=te+ve(W,V[F]);te+=3+(8<<de)}else ve(W,V[de+7])?(te=7+2*ve(W,165),te+=ve(W,145)):te=5+ve(W,159);else te=ve(W,V[de+4])?3+ve(W,V[de+5]):2;F=M[2]}else te=1,F=M[1];M=T+tN[N],0>(W=u).b&&pe(W);var de,V=W.b,ie=(de=W.Ca>>1)-(W.I>>V)>>31;--W.b,W.Ca+=ie,W.Ca|=1,W.I-=(de+1&ie)<<V,P[M]=((te^ie)-ie)*k[(0<N)+0]}return 16}function Hh(u){var f=u.rb[u.sb-1];f.la=0,f.Na=0,i(u.zc,0,0,u.zc.length),u.ja=0}function yi(u,f,b,k,N){N=u[f+b+32*k]+(N>>3),u[f+b+32*k]=-256&N?0>N?0:255:N}function Bn(u,f,b,k,N,P){yi(u,f,0,b,k+N),yi(u,f,1,b,k+P),yi(u,f,2,b,k-P),yi(u,f,3,b,k-N)}function $s(u){return(20091*u>>16)+u}function Wh(u,f,b,k){var N,P=0,T=s(16);for(N=0;4>N;++N){var F=u[f+0]+u[f+8],M=u[f+0]-u[f+8],W=(35468*u[f+4]>>16)-$s(u[f+12]),te=$s(u[f+4])+(35468*u[f+12]>>16);T[P+0]=F+te,T[P+1]=M+W,T[P+2]=M-W,T[P+3]=F-te,P+=4,f++}for(N=P=0;4>N;++N)F=(u=T[P+0]+4)+T[P+8],M=u-T[P+8],W=(35468*T[P+4]>>16)-$s(T[P+12]),yi(b,k,0,0,F+(te=$s(T[P+4])+(35468*T[P+12]>>16))),yi(b,k,1,0,M+W),yi(b,k,2,0,M-W),yi(b,k,3,0,F-te),P++,k+=32}function ym(u,f,b,k){var N=u[f+0]+4,P=35468*u[f+4]>>16,T=$s(u[f+4]),F=35468*u[f+1]>>16;Bn(b,k,0,N+T,u=$s(u[f+1]),F),Bn(b,k,1,N+P,u,F),Bn(b,k,2,N-P,u,F),Bn(b,k,3,N-T,u,F)}function wm(u,f,b,k,N){Wh(u,f,b,k),N&&Wh(u,f+16,b,k+4)}function hs(u,f,b,k){Va(u,f+0,b,k,1),Va(u,f+32,b,k+128,1)}function Vh(u,f,b,k){var N;for(u=u[f+0]+4,N=0;4>N;++N)for(f=0;4>f;++f)yi(b,k,f,N,u)}function Gh(u,f,b,k){u[f+0]&&Bt(u,f+0,b,k),u[f+16]&&Bt(u,f+16,b,k+4),u[f+32]&&Bt(u,f+32,b,k+128),u[f+48]&&Bt(u,f+48,b,k+128+4)}function $l(u,f,b,k){var N,P=s(16);for(N=0;4>N;++N){var T=u[f+0+N]+u[f+12+N],F=u[f+4+N]+u[f+8+N],M=u[f+4+N]-u[f+8+N],W=u[f+0+N]-u[f+12+N];P[0+N]=T+F,P[8+N]=T-F,P[4+N]=W+M,P[12+N]=W-M}for(N=0;4>N;++N)T=(u=P[0+4*N]+3)+P[3+4*N],F=P[1+4*N]+P[2+4*N],M=P[1+4*N]-P[2+4*N],W=u-P[3+4*N],b[k+0]=T+F>>3,b[k+16]=W+M>>3,b[k+32]=T-F>>3,b[k+48]=W-M>>3,k+=64}function Ia(u,f,b){var k,N=f-32,P=Jr,T=255-u[N-1];for(k=0;k<b;++k){var F,M=P,W=T+u[f-1];for(F=0;F<b;++F)u[f+F]=M[W+u[N+F]];f+=32}}function bm(u,f){Ia(u,f,4)}function _m(u,f){Ia(u,f,8)}function xm(u,f){Ia(u,f,16)}function Eu(u,f){var b;for(b=0;16>b;++b)r(u,f+32*b,u,f-32,16)}function Kh(u,f){var b;for(b=16;0<b;--b)i(u,f,u[f-1],16),f+=32}function Fi(u,f,b){var k;for(k=0;16>k;++k)i(f,b+32*k,u,16)}function Sm(u,f){var b,k=16;for(b=0;16>b;++b)k+=u[f-1+32*b]+u[f+b-32];Fi(k>>5,u,f)}function ja(u,f){var b,k=8;for(b=0;16>b;++b)k+=u[f-1+32*b];Fi(k>>4,u,f)}function Nu(u,f){var b,k=8;for(b=0;16>b;++b)k+=u[f+b-32];Fi(k>>4,u,f)}function km(u,f){Fi(128,u,f)}function dt(u,f,b){return u+2*f+b+2>>2}function Am(u,f){var b,k=f-32;for(k=new Uint8Array([dt(u[k-1],u[k+0],u[k+1]),dt(u[k+0],u[k+1],u[k+2]),dt(u[k+1],u[k+2],u[k+3]),dt(u[k+2],u[k+3],u[k+4])]),b=0;4>b;++b)r(u,f+32*b,k,0,k.length)}function Em(u,f){var b=u[f-1],k=u[f-1+32],N=u[f-1+64],P=u[f-1+96];Ae(u,f+0,16843009*dt(u[f-1-32],b,k)),Ae(u,f+32,16843009*dt(b,k,N)),Ae(u,f+64,16843009*dt(k,N,P)),Ae(u,f+96,16843009*dt(N,P,P))}function Nm(u,f){var b,k=4;for(b=0;4>b;++b)k+=u[f+b-32]+u[f-1+32*b];for(k>>=3,b=0;4>b;++b)i(u,f+32*b,k,4)}function zs(u,f){var b=u[f-1+0],k=u[f-1+32],N=u[f-1+64],P=u[f-1-32],T=u[f+0-32],F=u[f+1-32],M=u[f+2-32],W=u[f+3-32];u[f+0+96]=dt(k,N,u[f-1+96]),u[f+1+96]=u[f+0+64]=dt(b,k,N),u[f+2+96]=u[f+1+64]=u[f+0+32]=dt(P,b,k),u[f+3+96]=u[f+2+64]=u[f+1+32]=u[f+0+0]=dt(T,P,b),u[f+3+64]=u[f+2+32]=u[f+1+0]=dt(F,T,P),u[f+3+32]=u[f+2+0]=dt(M,F,T),u[f+3+0]=dt(W,M,F)}function qs(u,f){var b=u[f+1-32],k=u[f+2-32],N=u[f+3-32],P=u[f+4-32],T=u[f+5-32],F=u[f+6-32],M=u[f+7-32];u[f+0+0]=dt(u[f+0-32],b,k),u[f+1+0]=u[f+0+32]=dt(b,k,N),u[f+2+0]=u[f+1+32]=u[f+0+64]=dt(k,N,P),u[f+3+0]=u[f+2+32]=u[f+1+64]=u[f+0+96]=dt(N,P,T),u[f+3+32]=u[f+2+64]=u[f+1+96]=dt(P,T,F),u[f+3+64]=u[f+2+96]=dt(T,F,M),u[f+3+96]=dt(F,M,M)}function Cm(u,f){var b=u[f-1+0],k=u[f-1+32],N=u[f-1+64],P=u[f-1-32],T=u[f+0-32],F=u[f+1-32],M=u[f+2-32],W=u[f+3-32];u[f+0+0]=u[f+1+64]=P+T+1>>1,u[f+1+0]=u[f+2+64]=T+F+1>>1,u[f+2+0]=u[f+3+64]=F+M+1>>1,u[f+3+0]=M+W+1>>1,u[f+0+96]=dt(N,k,b),u[f+0+64]=dt(k,b,P),u[f+0+32]=u[f+1+96]=dt(b,P,T),u[f+1+32]=u[f+2+96]=dt(P,T,F),u[f+2+32]=u[f+3+96]=dt(T,F,M),u[f+3+32]=dt(F,M,W)}function Lm(u,f){var b=u[f+0-32],k=u[f+1-32],N=u[f+2-32],P=u[f+3-32],T=u[f+4-32],F=u[f+5-32],M=u[f+6-32],W=u[f+7-32];u[f+0+0]=b+k+1>>1,u[f+1+0]=u[f+0+64]=k+N+1>>1,u[f+2+0]=u[f+1+64]=N+P+1>>1,u[f+3+0]=u[f+2+64]=P+T+1>>1,u[f+0+32]=dt(b,k,N),u[f+1+32]=u[f+0+96]=dt(k,N,P),u[f+2+32]=u[f+1+96]=dt(N,P,T),u[f+3+32]=u[f+2+96]=dt(P,T,F),u[f+3+64]=dt(T,F,M),u[f+3+96]=dt(F,M,W)}function zl(u,f){var b=u[f-1+0],k=u[f-1+32],N=u[f-1+64],P=u[f-1+96];u[f+0+0]=b+k+1>>1,u[f+2+0]=u[f+0+32]=k+N+1>>1,u[f+2+32]=u[f+0+64]=N+P+1>>1,u[f+1+0]=dt(b,k,N),u[f+3+0]=u[f+1+32]=dt(k,N,P),u[f+3+32]=u[f+1+64]=dt(N,P,P),u[f+3+64]=u[f+2+64]=u[f+0+96]=u[f+1+96]=u[f+2+96]=u[f+3+96]=P}function Cu(u,f){var b=u[f-1+0],k=u[f-1+32],N=u[f-1+64],P=u[f-1+96],T=u[f-1-32],F=u[f+0-32],M=u[f+1-32],W=u[f+2-32];u[f+0+0]=u[f+2+32]=b+T+1>>1,u[f+0+32]=u[f+2+64]=k+b+1>>1,u[f+0+64]=u[f+2+96]=N+k+1>>1,u[f+0+96]=P+N+1>>1,u[f+3+0]=dt(F,M,W),u[f+2+0]=dt(T,F,M),u[f+1+0]=u[f+3+32]=dt(b,T,F),u[f+1+32]=u[f+3+64]=dt(k,b,T),u[f+1+64]=u[f+3+96]=dt(N,k,b),u[f+1+96]=dt(P,N,k)}function Fa(u,f){var b;for(b=0;8>b;++b)r(u,f+32*b,u,f-32,8)}function Pm(u,f){var b;for(b=0;8>b;++b)i(u,f,u[f-1],8),f+=32}function Hs(u,f,b){var k;for(k=0;8>k;++k)i(f,b+32*k,u,8)}function Tm(u,f){var b,k=8;for(b=0;8>b;++b)k+=u[f+b-32]+u[f-1+32*b];Hs(k>>4,u,f)}function Lu(u,f){var b,k=4;for(b=0;8>b;++b)k+=u[f+b-32];Hs(k>>3,u,f)}function Pu(u,f){var b,k=4;for(b=0;8>b;++b)k+=u[f-1+32*b];Hs(k>>3,u,f)}function Yh(u,f){Hs(128,u,f)}function Ws(u,f,b){var k=u[f-b],N=u[f+0],P=3*(N-k)+Rm[1020+u[f-2*b]-u[f+b]],T=rf[112+(P+4>>3)];u[f-b]=Jr[255+k+rf[112+(P+3>>3)]],u[f+0]=Jr[255+N-T]}function Tu(u,f,b,k){var N=u[f+0],P=u[f+b];return _i[255+u[f-2*b]-u[f-b]]>k||_i[255+P-N]>k}function ql(u,f,b,k){return 4*_i[255+u[f-b]-u[f+0]]+_i[255+u[f-2*b]-u[f+b]]<=k}function Ru(u,f,b,k,N){var P=u[f-3*b],T=u[f-2*b],F=u[f-b],M=u[f+0],W=u[f+b],te=u[f+2*b],de=u[f+3*b];return 4*_i[255+F-M]+_i[255+T-W]>k?0:_i[255+u[f-4*b]-P]<=N&&_i[255+P-T]<=N&&_i[255+T-F]<=N&&_i[255+de-te]<=N&&_i[255+te-W]<=N&&_i[255+W-M]<=N}function Da(u,f,b,k){var N=2*k+1;for(k=0;16>k;++k)ql(u,f+k,b,N)&&Ws(u,f+k,b)}function Ou(u,f,b,k){var N=2*k+1;for(k=0;16>k;++k)ql(u,f+k*b,1,N)&&Ws(u,f+k*b,1)}function Jh(u,f,b,k){var N;for(N=3;0<N;--N)Da(u,f+=4*b,b,k)}function Xh(u,f,b,k){var N;for(N=3;0<N;--N)Ou(u,f+=4,b,k)}function Vs(u,f,b,k,N,P,T,F){for(P=2*P+1;0<N--;){if(Ru(u,f,b,P,T))if(Tu(u,f,b,F))Ws(u,f,b);else{var M=u,W=f,te=b,de=M[W-2*te],V=M[W-te],ie=M[W+0],ce=M[W+te],ge=M[W+2*te],ue=27*(be=Rm[1020+3*(ie-V)+Rm[1020+de-ce]])+63>>7,ye=18*be+63>>7,be=9*be+63>>7;M[W-3*te]=Jr[255+M[W-3*te]+be],M[W-2*te]=Jr[255+de+ye],M[W-te]=Jr[255+V+ue],M[W+0]=Jr[255+ie-ue],M[W+te]=Jr[255+ce-ye],M[W+2*te]=Jr[255+ge-be]}f+=k}}function Gs(u,f,b,k,N,P,T,F){for(P=2*P+1;0<N--;){if(Ru(u,f,b,P,T))if(Tu(u,f,b,F))Ws(u,f,b);else{var M=u,W=f,te=b,de=M[W-te],V=M[W+0],ie=M[W+te],ce=rf[112+(4+(ge=3*(V-de))>>3)],ge=rf[112+(ge+3>>3)],ue=ce+1>>1;M[W-2*te]=Jr[255+M[W-2*te]+ue],M[W-te]=Jr[255+de+ge],M[W+0]=Jr[255+V-ce],M[W+te]=Jr[255+ie-ue]}f+=k}}function Zh(u,f,b,k,N,P){Vs(u,f,b,1,16,k,N,P)}function Ma(u,f,b,k,N,P){Vs(u,f,1,b,16,k,N,P)}function Qh(u,f,b,k,N,P){var T;for(T=3;0<T;--T)Gs(u,f+=4*b,b,1,16,k,N,P)}function g(u,f,b,k,N,P){var T;for(T=3;0<T;--T)Gs(u,f+=4,1,b,16,k,N,P)}function E(u,f,b,k,N,P,T,F){Vs(u,f,N,1,8,P,T,F),Vs(b,k,N,1,8,P,T,F)}function G(u,f,b,k,N,P,T,F){Vs(u,f,1,N,8,P,T,F),Vs(b,k,1,N,8,P,T,F)}function ee(u,f,b,k,N,P,T,F){Gs(u,f+4*N,N,1,8,P,T,F),Gs(b,k+4*N,N,1,8,P,T,F)}function oe(u,f,b,k,N,P,T,F){Gs(u,f+4,1,N,8,P,T,F),Gs(b,k+4,1,N,8,P,T,F)}function we(){this.ba=new yt,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new jt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Se(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Me(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ge(){this.ua=0,this.Wa=new ht,this.vb=new ht,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new se,this.yc=new J}function ct(){this.xb=this.a=0,this.l=new Bl,this.ca=new yt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new U,this.Pb=0,this.wd=new U,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ge,this.ab=0,this.gc=o(4,Me),this.Oc=0}function wt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Bl,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Tt(u,f,b,k,N,P,T){for(u=u==null?0:u[f+0],f=0;f<T;++f)N[P+f]=u+b[k+f]&255,u=N[P+f]}function hn(u,f,b,k,N,P,T){var F;if(u==null)Tt(null,null,b,k,N,P,T);else for(F=0;F<T;++F)N[P+F]=u[f+F]+b[k+F]&255}function jn(u,f,b,k,N,P,T){if(u==null)Tt(null,null,b,k,N,P,T);else{var F,M=u[f+0],W=M,te=M;for(F=0;F<T;++F)W=te+(M=u[f+F])-W,te=b[k+F]+(-256&W?0>W?0:255:W)&255,W=M,N[P+F]=te}}function Jt(u,f,b,k){var N=f.width,P=f.o;if(t(u!=null&&f!=null),0>b||0>=k||b+k>P)return null;if(!u.Cc){if(u.ga==null){var T;if(u.ga=new wt,(T=u.ga==null)||(T=f.width*f.o,t(u.Gb.length==0),u.Gb=s(T),u.Uc=0,u.Gb==null?T=0:(u.mb=u.Gb,u.nb=u.Uc,u.rc=null,T=1),T=!T),!T){T=u.ga;var F=u.Fa,M=u.P,W=u.qc,te=u.mb,de=u.nb,V=M+1,ie=W-1,ce=T.l;if(t(F!=null&&te!=null&&f!=null),Do[0]=null,Do[1]=Tt,Do[2]=hn,Do[3]=jn,T.ca=te,T.tb=de,T.c=f.width,T.i=f.height,t(0<T.c&&0<T.i),1>=W)f=0;else if(T.$a=3&F[M+0],T.Z=F[M+0]>>2&3,T.Lc=F[M+0]>>4&3,M=F[M+0]>>6&3,0>T.$a||1<T.$a||4<=T.Z||1<T.Lc||M)f=0;else if(ce.put=Ue,ce.ac=vn,ce.bc=Gn,ce.ma=T,ce.width=f.width,ce.height=f.height,ce.Da=f.Da,ce.v=f.v,ce.va=f.va,ce.j=f.j,ce.o=f.o,T.$a)e:{t(T.$a==1),f=Ra();t:for(;;){if(f==null){f=0;break e}if(t(T!=null),T.mc=f,f.c=T.c,f.i=T.i,f.l=T.l,f.l.ma=T,f.l.width=T.c,f.l.height=T.i,f.a=0,Z(f.m,F,V,ie),!cs(T.c,T.i,1,f,null)||(f.ab==1&&f.gc[0].hc==3&&Oi(f.s)?(T.ic=1,F=f.c*f.i,f.Ta=null,f.Ua=0,f.V=s(F),f.Ba=0,f.V==null?(f.a=1,f=0):f=1):(T.ic=0,f=Oa(f,T.c)),!f))break t;f=1;break e}T.mc=null,f=0}else f=ie>=T.c*T.i;T=!f}if(T)return null;u.ga.Lc!=1?u.Ga=0:k=P-b}t(u.ga!=null),t(b+k<=P);e:{if(f=(F=u.ga).c,P=F.l.o,F.$a==0){if(V=u.rc,ie=u.Vc,ce=u.Fa,M=u.P+1+b*f,W=u.mb,te=u.nb+b*f,t(M<=u.P+u.qc),F.Z!=0)for(t(Do[F.Z]!=null),T=0;T<k;++T)Do[F.Z](V,ie,ce,M,W,te,f),V=W,ie=te,te+=f,M+=f;else for(T=0;T<k;++T)r(W,te,ce,M,f),V=W,ie=te,te+=f,M+=f;u.rc=V,u.Vc=ie}else{if(t(F.mc!=null),f=b+k,t((T=F.mc)!=null),t(f<=T.i),T.C>=f)f=1;else if(F.ic||Di(),F.ic){F=T.V,V=T.Ba,ie=T.c;var ge=T.i,ue=(ce=1,M=T.$/ie,W=T.$%ie,te=T.m,de=T.s,T.$),ye=ie*ge,be=ie*f,Ee=de.wc,ke=ue<be?er(de,W,M):null;t(ue<=ye),t(f<=ge),t(Oi(de));t:for(;;){for(;!te.h&&ue<be;){if(W&Ee||(ke=er(de,W,M)),t(ke!=null),re(te),256>(ge=yn(ke.G[0],ke.H[0],te)))F[V+ue]=ge,++ue,++W>=ie&&(W=0,++M<=f&&!(M%16)&&Ii(T,M));else{if(!(280>ge)){ce=0;break t}ge=cn(ge-256,te);var Ke,je=yn(ke.G[4],ke.H[4],te);if(re(te),!(ue>=(je=An(ie,je=cn(je,te)))&&ye-ue>=ge)){ce=0;break t}for(Ke=0;Ke<ge;++Ke)F[V+ue+Ke]=F[V+ue+Ke-je];for(ue+=ge,W+=ge;W>=ie;)W-=ie,++M<=f&&!(M%16)&&Ii(T,M);ue<be&&W&Ee&&(ke=er(de,W,M))}t(te.h==Q(te))}Ii(T,M>f?f:M);break t}!ce||te.h&&ue<ye?(ce=0,T.a=te.h?5:3):T.$=ue,f=ce}else f=ji(T,T.V,T.Ba,T.c,T.i,f,Fl);if(!f){k=0;break e}}b+k>=P&&(u.Cc=1),k=1}if(!k)return null;if(u.Cc&&((k=u.ga)!=null&&(k.mc=null),u.ga=null,0<u.Ga))return alert("todo:WebPDequantizeLevels"),null}return u.nb+b*N}function Un(u,f,b,k,N,P){for(;0<N--;){var T,F=u,M=f+(b?1:0),W=u,te=f+(b?0:3);for(T=0;T<k;++T){var de=W[te+4*T];de!=255&&(de*=32897,F[M+4*T+0]=F[M+4*T+0]*de>>23,F[M+4*T+1]=F[M+4*T+1]*de>>23,F[M+4*T+2]=F[M+4*T+2]*de>>23)}f+=P}}function Fn(u,f,b,k,N){for(;0<k--;){var P;for(P=0;P<b;++P){var T=u[f+2*P+0],F=15&(W=u[f+2*P+1]),M=4369*F,W=(240&W|W>>4)*M>>16;u[f+2*P+0]=(240&T|T>>4)*M>>16&240|(15&T|T<<4)*M>>16>>4&15,u[f+2*P+1]=240&W|F}f+=N}}function tr(u,f,b,k,N,P,T,F){var M,W,te=255;for(W=0;W<N;++W){for(M=0;M<k;++M){var de=u[f+M];P[T+4*M]=de,te&=de}f+=b,T+=F}return te!=255}function Ks(u,f,b,k,N){var P;for(P=0;P<N;++P)b[k+P]=u[f+P]>>8}function Di(){Wu=Un,$y=Fn,zy=tr,qy=Ks}function Ys(u,f,b){R[u]=function(k,N,P,T,F,M,W,te,de,V,ie,ce,ge,ue,ye,be,Ee){var ke,Ke=Ee-1>>1,je=F[M+0]|W[te+0]<<16,bt=de[V+0]|ie[ce+0]<<16;t(k!=null);var ze=3*je+bt+131074>>2;for(f(k[N+0],255&ze,ze>>16,ge,ue),P!=null&&(ze=3*bt+je+131074>>2,f(P[T+0],255&ze,ze>>16,ye,be)),ke=1;ke<=Ke;++ke){var Nt=F[M+ke]|W[te+ke]<<16,zn=de[V+ke]|ie[ce+ke]<<16,_t=je+Nt+bt+zn+524296,qe=_t+2*(Nt+bt)>>3;ze=qe+je>>1,je=(_t=_t+2*(je+zn)>>3)+Nt>>1,f(k[N+2*ke-1],255&ze,ze>>16,ge,ue+(2*ke-1)*b),f(k[N+2*ke-0],255&je,je>>16,ge,ue+(2*ke-0)*b),P!=null&&(ze=_t+bt>>1,je=qe+zn>>1,f(P[T+2*ke-1],255&ze,ze>>16,ye,be+(2*ke-1)*b),f(P[T+2*ke+0],255&je,je>>16,ye,be+(2*ke+0)*b)),je=Nt,bt=zn}1&Ee||(ze=3*je+bt+131074>>2,f(k[N+Ee-1],255&ze,ze>>16,ge,ue+(Ee-1)*b),P!=null&&(ze=3*bt+je+131074>>2,f(P[T+Ee-1],255&ze,ze>>16,ye,be+(Ee-1)*b)))}}function Iu(){xi[sf]=aN,xi[of]=e5,xi[Yy]=lN,xi[af]=t5,xi[lf]=n5,xi[Om]=r5,xi[Jy]=cN,xi[Im]=e5,xi[jm]=t5,xi[cf]=n5,xi[Fm]=r5}function Hl(u){return u&~uN?0>u?0:255:u>>i5}function No(u,f){return Hl((19077*u>>8)+(26149*f>>8)-14234)}function Ba(u,f,b){return Hl((19077*u>>8)-(6419*f>>8)-(13320*b>>8)+8708)}function Ua(u,f){return Hl((19077*u>>8)+(33050*f>>8)-17685)}function Co(u,f,b,k,N){k[N+0]=No(u,b),k[N+1]=Ba(u,f,b),k[N+2]=Ua(u,f)}function nr(u,f,b,k,N){k[N+0]=Ua(u,f),k[N+1]=Ba(u,f,b),k[N+2]=No(u,b)}function $a(u,f,b,k,N){var P=Ba(u,f,b);f=P<<3&224|Ua(u,f)>>3,k[N+0]=248&No(u,b)|P>>5,k[N+1]=f}function za(u,f,b,k,N){var P=240&Ua(u,f)|15;k[N+0]=240&No(u,b)|Ba(u,f,b)>>4,k[N+1]=P}function ju(u,f,b,k,N){k[N+0]=255,Co(u,f,b,k,N+1)}function Fu(u,f,b,k,N){nr(u,f,b,k,N),k[N+3]=255}function kr(u,f,b,k,N){Co(u,f,b,k,N),k[N+3]=255}function Js(u,f,b){R[u]=function(k,N,P,T,F,M,W,te,de){for(var V=te+(-2&de)*b;te!=V;)f(k[N+0],P[T+0],F[M+0],W,te),f(k[N+1],P[T+0],F[M+0],W,te+b),N+=2,++T,++M,te+=2*b;1&de&&f(k[N+0],P[T+0],F[M+0],W,te)}}function Wl(u,f,b){return b==0?u==0?f==0?6:5:f==0?4:0:b}function ef(u,f,b,k,N){switch(u>>>30){case 3:Va(f,b,k,N,0);break;case 2:bi(f,b,k,N);break;case 1:Bt(f,b,k,N)}}function wi(u,f){var b,k,N=f.M,P=f.Nb,T=u.oc,F=u.pc+40,M=u.oc,W=u.pc+584,te=u.oc,de=u.pc+600;for(b=0;16>b;++b)T[F+32*b-1]=129;for(b=0;8>b;++b)M[W+32*b-1]=129,te[de+32*b-1]=129;for(0<N?T[F-1-32]=M[W-1-32]=te[de-1-32]=129:(i(T,F-32-1,127,21),i(M,W-32-1,127,9),i(te,de-32-1,127,9)),k=0;k<u.za;++k){var V=f.ya[f.aa+k];if(0<k){for(b=-1;16>b;++b)r(T,F+32*b-4,T,F+32*b+12,4);for(b=-1;8>b;++b)r(M,W+32*b-4,M,W+32*b+4,4),r(te,de+32*b-4,te,de+32*b+4,4)}var ie=u.Gd,ce=u.Hd+k,ge=V.ad,ue=V.Hc;if(0<N&&(r(T,F-32,ie[ce].y,0,16),r(M,W-32,ie[ce].f,0,8),r(te,de-32,ie[ce].ea,0,8)),V.Za){var ye=T,be=F-32+16;for(0<N&&(k>=u.za-1?i(ye,be,ie[ce].y[15],4):r(ye,be,ie[ce+1].y,0,4)),b=0;4>b;b++)ye[be+128+b]=ye[be+256+b]=ye[be+384+b]=ye[be+0+b];for(b=0;16>b;++b,ue<<=2)ye=T,be=F+o5[b],Mi[V.Ob[b]](ye,be),ef(ue,ge,16*+b,ye,be)}else if(ye=Wl(k,N,V.Ob[0]),Fo[ye](T,F),ue!=0)for(b=0;16>b;++b,ue<<=2)ef(ue,ge,16*+b,T,F+o5[b]);for(b=V.Gc,ye=Wl(k,N,V.Dd),Qs[ye](M,W),Qs[ye](te,de),ue=ge,ye=M,be=W,255&(V=0|b)&&(170&V?ms(ue,256,ye,be):Vt(ue,256,ye,be)),V=te,ue=de,255&(b>>=8)&&(170&b?ms(ge,320,V,ue):Vt(ge,320,V,ue)),N<u.Ub-1&&(r(ie[ce].y,0,T,F+480,16),r(ie[ce].f,0,M,W+224,8),r(ie[ce].ea,0,te,de+224,8)),b=8*P*u.B,ie=u.sa,ce=u.ta+16*k+16*P*u.R,ge=u.qa,V=u.ra+8*k+b,ue=u.Ha,ye=u.Ia+8*k+b,b=0;16>b;++b)r(ie,ce+b*u.R,T,F+32*b,16);for(b=0;8>b;++b)r(ge,V+b*u.B,M,W+32*b,8),r(ue,ye+b*u.B,te,de+32*b,8)}}function qa(u,f,b,k,N,P,T,F,M){var W=[0],te=[0],de=0,V=M!=null?M.kd:0,ie=M??new Se;if(u==null||12>b)return 7;ie.data=u,ie.w=f,ie.ha=b,f=[f],b=[b],ie.gb=[ie.gb];e:{var ce=f,ge=b,ue=ie.gb;if(t(u!=null),t(ge!=null),t(ue!=null),ue[0]=0,12<=ge[0]&&!n(u,ce[0],"RIFF")){if(n(u,ce[0]+8,"WEBP")){ue=3;break e}var ye=He(u,ce[0]+4);if(12>ye||4294967286<ye){ue=3;break e}if(V&&ye>ge[0]-8){ue=7;break e}ue[0]=ye,ce[0]+=12,ge[0]-=12}ue=0}if(ue!=0)return ue;for(ye=0<ie.gb[0],b=b[0];;){e:{var be=u;ge=f,ue=b;var Ee=W,ke=te,Ke=ce=[0];if((ze=de=[de])[0]=0,8>ue[0])ue=7;else{if(!n(be,ge[0],"VP8X")){if(He(be,ge[0]+4)!=10){ue=3;break e}if(18>ue[0]){ue=7;break e}var je=He(be,ge[0]+8),bt=1+Le(be,ge[0]+12);if(2147483648<=bt*(be=1+Le(be,ge[0]+15))){ue=3;break e}Ke!=null&&(Ke[0]=je),Ee!=null&&(Ee[0]=bt),ke!=null&&(ke[0]=be),ge[0]+=18,ue[0]-=18,ze[0]=1}ue=0}}if(de=de[0],ce=ce[0],ue!=0)return ue;if(ge=!!(2&ce),!ye&&de)return 3;if(P!=null&&(P[0]=!!(16&ce)),T!=null&&(T[0]=ge),F!=null&&(F[0]=0),T=W[0],ce=te[0],de&&ge&&M==null){ue=0;break}if(4>b){ue=7;break}if(ye&&de||!ye&&!de&&!n(u,f[0],"ALPH")){b=[b],ie.na=[ie.na],ie.P=[ie.P],ie.Sa=[ie.Sa];e:{je=u,ue=f,ye=b;var ze=ie.gb;Ee=ie.na,ke=ie.P,Ke=ie.Sa,bt=22,t(je!=null),t(ye!=null),be=ue[0];var Nt=ye[0];for(t(Ee!=null),t(Ke!=null),Ee[0]=null,ke[0]=null,Ke[0]=0;;){if(ue[0]=be,ye[0]=Nt,8>Nt){ue=7;break e}var zn=He(je,be+4);if(4294967286<zn){ue=3;break e}var _t=8+zn+1&-2;if(bt+=_t,0<ze&&bt>ze){ue=3;break e}if(!n(je,be,"VP8 ")||!n(je,be,"VP8L")){ue=0;break e}if(Nt[0]<_t){ue=7;break e}n(je,be,"ALPH")||(Ee[0]=je,ke[0]=be+8,Ke[0]=zn),be+=_t,Nt-=_t}}if(b=b[0],ie.na=ie.na[0],ie.P=ie.P[0],ie.Sa=ie.Sa[0],ue!=0)break}b=[b],ie.Ja=[ie.Ja],ie.xa=[ie.xa];e:if(ze=u,ue=f,ye=b,Ee=ie.gb[0],ke=ie.Ja,Ke=ie.xa,je=ue[0],be=!n(ze,je,"VP8 "),bt=!n(ze,je,"VP8L"),t(ze!=null),t(ye!=null),t(ke!=null),t(Ke!=null),8>ye[0])ue=7;else{if(be||bt){if(ze=He(ze,je+4),12<=Ee&&ze>Ee-12){ue=3;break e}if(V&&ze>ye[0]-8){ue=7;break e}ke[0]=ze,ue[0]+=8,ye[0]-=8,Ke[0]=bt}else Ke[0]=5<=ye[0]&&ze[je+0]==47&&!(ze[je+4]>>5),ke[0]=ye[0];ue=0}if(b=b[0],ie.Ja=ie.Ja[0],ie.xa=ie.xa[0],f=f[0],ue!=0)break;if(4294967286<ie.Ja)return 3;if(F==null||ge||(F[0]=ie.xa?2:1),T=[T],ce=[ce],ie.xa){if(5>b){ue=7;break}F=T,V=ce,ge=P,u==null||5>b?u=0:5<=b&&u[f+0]==47&&!(u[f+4]>>5)?(ye=[0],ze=[0],Ee=[0],Z(ke=new U,u,f,b),Qn(ke,ye,ze,Ee)?(F!=null&&(F[0]=ye[0]),V!=null&&(V[0]=ze[0]),ge!=null&&(ge[0]=Ee[0]),u=1):u=0):u=0}else{if(10>b){ue=7;break}F=ce,u==null||10>b||!qh(u,f+3,b-3)?u=0:(V=u[f+0]|u[f+1]<<8|u[f+2]<<16,ge=16383&(u[f+7]<<8|u[f+6]),u=16383&(u[f+9]<<8|u[f+8]),1&V||3<(V>>1&7)||!(V>>4&1)||V>>5>=ie.Ja||!ge||!u?u=0:(T&&(T[0]=ge),F&&(F[0]=u),u=1))}if(!u||(T=T[0],ce=ce[0],de&&(W[0]!=T||te[0]!=ce)))return 3;M!=null&&(M[0]=ie,M.offset=f-M.w,t(4294967286>f-M.w),t(M.offset==M.ha-b));break}return ue==0||ue==7&&de&&M==null?(P!=null&&(P[0]|=ie.na!=null&&0<ie.na.length),k!=null&&(k[0]=T),N!=null&&(N[0]=ce),0):ue}function Du(u,f,b){var k=f.width,N=f.height,P=0,T=0,F=k,M=N;if(f.Da=u!=null&&0<u.Da,f.Da&&(F=u.cd,M=u.bd,P=u.v,T=u.j,11>b||(P&=-2,T&=-2),0>P||0>T||0>=F||0>=M||P+F>k||T+M>N))return 0;if(f.v=P,f.j=T,f.va=P+F,f.o=T+M,f.U=F,f.T=M,f.da=u!=null&&0<u.da,f.da){if(!Ye(F,M,b=[u.ib],P=[u.hb]))return 0;f.ib=b[0],f.hb=P[0]}return f.ob=u!=null&&u.ob,f.Kb=u==null||!u.Sd,f.da&&(f.ob=f.ib<3*k/4&&f.hb<3*N/4,f.Kb=0),1}function Mu(u){if(u==null)return 2;if(11>u.S){var f=u.f.RGBA;f.fb+=(u.height-1)*f.A,f.A=-f.A}else f=u.f.kb,u=u.height,f.O+=(u-1)*f.fa,f.fa=-f.fa,f.N+=(u-1>>1)*f.Ab,f.Ab=-f.Ab,f.W+=(u-1>>1)*f.Db,f.Db=-f.Db,f.F!=null&&(f.J+=(u-1)*f.lb,f.lb=-f.lb);return 0}function Lo(u,f,b,k){if(k==null||0>=u||0>=f)return 2;if(b!=null){if(b.Da){var N=b.cd,P=b.bd,T=-2&b.v,F=-2&b.j;if(0>T||0>F||0>=N||0>=P||T+N>u||F+P>f)return 2;u=N,f=P}if(b.da){if(!Ye(u,f,N=[b.ib],P=[b.hb]))return 2;u=N[0],f=P[0]}}k.width=u,k.height=f;e:{var M=k.width,W=k.height;if(u=k.S,0>=M||0>=W||!(u>=sf&&13>u))u=2;else{if(0>=k.Rd&&k.sd==null){T=P=N=f=0;var te=(F=M*a5[u])*W;if(11>u||(P=(W+1)/2*(f=(M+1)/2),u==12&&(T=(N=M)*W)),(W=s(te+2*P+T))==null){u=1;break e}k.sd=W,11>u?((M=k.f.RGBA).eb=W,M.fb=0,M.A=F,M.size=te):((M=k.f.kb).y=W,M.O=0,M.fa=F,M.Fd=te,M.f=W,M.N=0+te,M.Ab=f,M.Cd=P,M.ea=W,M.W=0+te+P,M.Db=f,M.Ed=P,u==12&&(M.F=W,M.J=0+te+2*P),M.Tc=T,M.lb=N)}if(f=1,N=k.S,P=k.width,T=k.height,N>=sf&&13>N)if(11>N)u=k.f.RGBA,f&=(F=Math.abs(u.A))*(T-1)+P<=u.size,f&=F>=P*a5[N],f&=u.eb!=null;else{u=k.f.kb,F=(P+1)/2,te=(T+1)/2,M=Math.abs(u.fa),W=Math.abs(u.Ab);var de=Math.abs(u.Db),V=Math.abs(u.lb),ie=V*(T-1)+P;f&=M*(T-1)+P<=u.Fd,f&=W*(te-1)+F<=u.Cd,f=(f&=de*(te-1)+F<=u.Ed)&M>=P&W>=F&de>=F,f&=u.y!=null,f&=u.f!=null,f&=u.ea!=null,N==12&&(f&=V>=P,f&=ie<=u.Tc,f&=u.F!=null)}else f=0;u=f?0:2}}return u!=0||b!=null&&b.fd&&(u=Mu(k)),u}var Ha=64,Kr=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Yr=24,Po=32,Xs=8,To=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
vendor: 2,612 bytes, line 299
2996,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Oe("Predictor0","PredictorAdd0"),R.Predictor0=function(){return 4278190080},R.Predictor1=function(u){return u},R.Predictor2=function(u,f,b){return f[b+0]},R.Predictor3=function(u,f,b){return f[b+1]},R.Predictor4=function(u,f,b){return f[b-1]},R.Predictor5=function(u,f,b){return Be(Be(u,f[b+1]),f[b+0])},R.Predictor6=function(u,f,b){return Be(u,f[b-1])},R.Predictor7=function(u,f,b){return Be(u,f[b+0])},R.Predictor8=function(u,f,b){return Be(f[b-1],f[b+0])},R.Predictor9=function(u,f,b){return Be(f[b+0],f[b+1])},R.Predictor10=function(u,f,b){return Be(Be(u,f[b-1]),Be(f[b+0],f[b+1]))},R.Predictor11=function(u,f,b){var k=f[b+0];return 0>=Xe(k>>24&255,u>>24&255,(f=f[b-1])>>24&255)+Xe(k>>16&255,u>>16&255,f>>16&255)+Xe(k>>8&255,u>>8&255,f>>8&255)+Xe(255&k,255&u,255&f)?k:u},R.Predictor12=function(u,f,b){var k=f[b+0];return(It((u>>24&255)+(k>>24&255)-((f=f[b-1])>>24&255))<<24|It((u>>16&255)+(k>>16&255)-(f>>16&255))<<16|It((u>>8&255)+(k>>8&255)-(f>>8&255))<<8|It((255&u)+(255&k)-(255&f)))>>>0},R.Predictor13=function(u,f,b){var k=f[b-1];return(St((u=Be(u,f[b+0]))>>24&255,k>>24&255)<<24|St(u>>16&255,k>>16&255)<<16|St(u>>8&255,k>>8&255)<<8|St(255&u,255&k))>>>0};var Bu=R.PredictorAdd0;R.PredictorAdd1=gt,Oe("Predictor2","PredictorAdd2"),Oe("Predictor3","PredictorAdd3"),Oe("Predictor4","PredictorAdd4"),Oe("Predictor5","PredictorAdd5"),Oe("Predictor6","PredictorAdd6"),Oe("Predictor7","PredictorAdd7"),Oe("Predictor8","PredictorAdd8"),Oe("Predictor9","PredictorAdd9"),Oe("Predictor10","PredictorAdd10"),Oe("Predictor11","PredictorAdd11"),Oe("Predictor12","PredictorAdd12"),Oe("Predictor13","PredictorAdd13");var Vl=R.PredictorAdd2;We("ColorIndexInverseTransform","MapARGB","32b",function(u){return u>>8&255},function(u){return u}),We("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(u){return u},function(u){return u>>8&255});var En,tf=R.ColorIndexInverseTransform,fs=R.MapARGB,ps=R.VP8LColorIndexInverseTransformAlpha,Uu=R.MapAlpha,$u=R.VP8LPredictorsAdd=[];$u.length=16,(R.VP8LPredictors=[]).length=16,(R.VP8LPredictorsAdd_C=[]).length=16,(R.VP8LPredictors_C=[]).length=16;var zu,qu,Ro,Oo,Io,Wa,jo,Va,bi,ms,Bt,Vt,Nn,$n,Zs,Hu,Gl,nf,jy,Fy,Dy,My,By,Uy,Wu,$y,zy,qy,Hy=s(511),Wy=s(2041),Vy=s(225),Gy=s(767),Ky=0,Rm
vendor: 4,675 bytes, line 299
299=Wy,rf=Vy,Jr=Gy,_i=Hy,sf=0,of=1,Yy=2,af=3,lf=4,Om=5,Jy=6,Im=7,jm=8,cf=9,Fm=10,GE=[2,3,7],KE=[3,3,11],Xy=[280,256,256,256,40],YE=[0,1,1,1,0],JE=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],XE=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],ZE=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],QE=8,Dm=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Mm=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Vu=null,eN=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],tN=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Zy=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],nN=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,25
2995,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],rN=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,
2991,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],iN=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,25
vendor: 23,740 bytes, lines 299-323
2995,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],sN=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Fo=[],Mi=[],Qs=[],oN=1,Qy=2,Do=[],xi=[];Ys("UpsampleRgbLinePair",Co,3),Ys("UpsampleBgrLinePair",nr,3),Ys("UpsampleRgbaLinePair",kr,4),Ys("UpsampleBgraLinePair",Fu,4),Ys("UpsampleArgbLinePair",ju,4),Ys("UpsampleRgba4444LinePair",za,2),Ys("UpsampleRgb565LinePair",$a,2);var aN=R.UpsampleRgbLinePair,lN=R.UpsampleBgrLinePair,e5=R.UpsampleRgbaLinePair,t5=R.UpsampleBgraLinePair,n5=R.UpsampleArgbLinePair,r5=R.UpsampleRgba4444LinePair,cN=R.UpsampleRgb565LinePair,uf=16,df=1<<uf-1,Gu=-227,Bm=482,i5=6,uN=(256<<i5)-1,s5=0,dN=s(256),hN=s(256),fN=s(256),pN=s(256),mN=s(Bm-Gu),gN=s(Bm-Gu);Js("YuvToRgbRow",Co,3),Js("YuvToBgrRow",nr,3),Js("YuvToRgbaRow",kr,4),Js("YuvToBgraRow",Fu,4),Js("YuvToArgbRow",ju,4),Js("YuvToRgba4444Row",za,2),Js("YuvToRgb565Row",$a,2);var o5=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],hf=[0,2,8],vN=[8,7,6,4,4,2,2,2,1,1,1,1],yN=1;this.WebPDecodeRGBA=function(u,f,b,k,N){var P=of,T=new we,F=new yt;T.ba=F,F.S=P,F.width=[F.width],F.height=[F.height];var M=F.width,W=F.height,te=new Ve;if(te==null||u==null)var de=2;else t(te!=null),de=qa(u,f,b,te.width,te.height,te.Pd,te.Qd,te.format,null);if(de!=0?M=0:(M!=null&&(M[0]=te.width[0]),W!=null&&(W[0]=te.height[0]),M=1),M){F.width=F.width[0],F.height=F.height[0],k!=null&&(k[0]=F.width),N!=null&&(N[0]=F.height);e:{if(k=new Bl,(N=new Se).data=u,N.w=f,N.ha=b,N.kd=1,f=[0],t(N!=null),((u=qa(N.data,N.w,N.ha,null,null,null,f,null,N))==0||u==7)&&f[0]&&(u=4),(f=u)==0){if(t(T!=null),k.data=N.data,k.w=N.w+N.offset,k.ha=N.ha-N.offset,k.put=Ue,k.ac=vn,k.bc=Gn,k.ma=T,N.xa){if((u=Ra())==null){T=1;break e}if(function(V,ie){var ce=[0],ge=[0],ue=[0];t:for(;;){if(V==null)return 0;if(ie==null)return V.a=2,0;if(V.l=ie,V.a=0,Z(V.m,ie.data,ie.w,ie.ha),!Qn(V.m,ce,ge,ue)){V.a=3;break t}if(V.xb=Qy,ie.width=ce[0],ie.height=ge[0],!cs(ce[0],ge[0],1,V,null))break t;return 1}return t(V.a!=0),0}(u,k)){if(k=(f=Lo(k.width,k.height,T.Oa,T.ba))==0){t:{k=u;n:for(;;){if(k==null){k=0;break t}if(t(k.s.yc!=null),t(k.s.Ya!=null),t(0<k.s.Wb),t((b=k.l)!=null),t((N=b.ma)!=null),k.xb!=0){if(k.ca=N.ba,k.tb=N.tb,t(k.ca!=null),!Du(N.Oa,b,af)){k.a=2;break n}if(!Oa(k,b.width)||b.da)break n;if((b.da||nt(k.ca.S))&&Di(),11>k.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),k.ca.f.kb.F!=null&&Di()),k.Pb&&0<k.s.ua&&k.s.vb.X==null&&!z(k.s.vb,k.s.Wa.Xa)){k.a=1;break n}k.xb=0}if(!ji(k,k.V,k.Ba,k.c,k.i,b.o,Eo))break n;N.Dc=k.Ma,k=1;break t}t(k.a!=0),k=0}k=!k}k&&(f=u.a)}else f=u.a}else{if((u=new vm)==null){T=1;break e}if(u.Fa=N.na,u.P=N.P,u.qc=N.Sa,ds(u,k)){if((f=Lo(k.width,k.height,T.Oa,T.ba))==0){if(u.Aa=0,b=T.Oa,t((N=u)!=null),b!=null){if(0<(M=0>(M=b.Md)?0:100<M?255:255*M/100)){for(W=te=0;4>W;++W)12>(de=N.pb[W]).lc&&(de.ia=M*vN[0>de.lc?0:de.lc]>>3),te|=de.ia;te&&(alert("todo:VP8InitRandom"),N.ia=1)}N.Ga=b.Id,100<N.Ga?N.Ga=100:0>N.Ga&&(N.Ga=0)}(function(V,ie){if(V==null)return 0;if(ie==null)return In(V,2,"NULL VP8Io parameter in VP8Decode().");if(!V.cb&&!ds(V,ie))return 0;if(t(V.cb),ie.ac==null||ie.ac(ie)){ie.ob&&(V.L=0);var ce=hf[V.L];if(V.L==2?(V.yb=0,V.zb=0):(V.yb=ie.v-ce>>4,V.zb=ie.j-ce>>4,0>V.yb&&(V.yb=0),0>V.zb&&(V.zb=0)),V.Va=ie.o+15+ce>>4,V.Hb=ie.va+15+ce>>4,V.Hb>V.za&&(V.Hb=V.za),V.Va>V.Ub&&(V.Va=V.Ub),0<V.L){var ge=V.ed;for(ce=0;4>ce;++ce){var ue;if(V.Qa.Cb){var ye=V.Qa.Lb[ce];V.Qa.Fb||(ye+=ge.Tb)}else ye=ge.Tb;for(ue=0;1>=ue;++ue){var be=V.gd[ce][ue],Ee=ye;if(ge.Pc&&(Ee+=ge.vd[0],ue&&(Ee+=ge.od[0])),0<(Ee=0>Ee?0:63<Ee?63:Ee)){var ke=Ee;0<ge.wb&&(ke=4<ge.wb?ke>>2:ke>>1)>9-ge.wb&&(ke=9-ge.wb),1>ke&&(ke=1),be.dd=ke,be.tc=2*Ee+ke,be.ld=40<=Ee?2:15<=Ee?1:0}else be.tc=0;be.La=ue}}}ce=0}else In(V,6,"Frame setup failed"),ce=V.a;if(ce=ce==0){if(ce){V.$c=0,0<V.Aa||(V.Ic=yN);t:{ce=V.Ic,ge=4*(ke=V.za);var Ke=32*ke,je=ke+1,bt=0<V.L?ke*(0<V.Aa?2:1):0,ze=(V.Aa==2?2:1)*ke;if((be=ge+832+(ue=3*(16*ce+hf[V.L])/2*Ke)+(ye=V.Fa!=null&&0<V.Fa.length?V.Kc.c*V.Kc.i:0))!=be)ce=0;else{if(be>V.Vb){if(V.Vb=0,V.Ec=s(be),V.Fc=0,V.Ec==null){ce=In(V,1,"no memory during frame initialization.");break t}V.Vb=be}be=V.Ec,Ee=V.Fc,V.Ac=be,V.Bc=Ee,Ee+=ge,V.Gd=o(Ke,$h),V.Hd=0,V.rb=o(je+1,ku),V.sb=1,V.wa=bt?o(bt,vi):null,V.Y=0,V.D.Nb=0,V.D.wa=V.wa,V.D.Y=V.Y,0<V.Aa&&(V.D.Y+=ke),t(!0),V.oc=be,V.pc=Ee,Ee+=832,V.ya=o(ze,Au),V.aa=0,V.D.ya=V.ya,V.D.aa=V.aa,V.Aa==2&&(V.D.aa+=ke),V.R=16*ke,V.B=8*ke,ke=(Ke=hf[V.L])*V.R,Ke=Ke/2*V.B,V.sa=be,V.ta=Ee+ke,V.qa=V.sa,V.ra=V.ta+16*ce*V.R+Ke,V.Ha=V.qa,V.Ia=V.ra+8*ce*V.B+Ke,V.$c=0,Ee+=ue,V.mb=ye?be:null,V.nb=ye?Ee:null,t(Ee+ye<=V.Fc+V.Vb),Hh(V),i(V.Ac,V.Bc,0,ge),ce=1}}if(ce){if(ie.ka=0,ie.y=V.sa,ie.O=V.ta,ie.f=V.qa,ie.N=V.ra,ie.ea=V.Ha,ie.Vd=V.Ia,ie.fa=V.R,ie.Rc=V.B,ie.F=null,ie.J=0,!Ky){for(ce=-255;255>=ce;++ce)Hy[255+ce]=0>ce?-ce:ce;for(ce=-1020;1020>=ce;++ce)Wy[1020+ce]=-128>ce?-128:127<ce?127:ce;for(ce=-112;112>=ce;++ce)Vy[112+ce]=-16>ce?-16:15<ce?15:ce;for(ce=-255;510>=ce;++ce)Gy[255+ce]=0>ce?0:255<ce?255:ce;Ky=1}jo=$l,Va=wm,ms=hs,Bt=Vh,Vt=Gh,bi=ym,Nn=Zh,$n=Ma,Zs=E,Hu=G,Gl=Qh,nf=g,jy=ee,Fy=oe,Dy=Da,My=Ou,By=Jh,Uy=Xh,Mi[0]=Nm,Mi[1]=bm,Mi[2]=Am,Mi[3]=Em,Mi[4]=zs,Mi[5]=Cm,Mi[6]=qs,Mi[7]=Lm,Mi[8]=Cu,Mi[9]=zl,Fo[0]=Sm,Fo[1]=xm,Fo[2]=Eu,Fo[3]=Kh,Fo[4]=ja,Fo[5]=Nu,Fo[6]=km,Qs[0]=Tm,Qs[1]=_m,Qs[2]=Fa,Qs[3]=Pm,Qs[4]=Pu,Qs[5]=Lu,Qs[6]=Yh,ce=1}else ce=0}ce&&(ce=function(Nt,zn){for(Nt.M=0;Nt.M<Nt.Va;++Nt.M){var _t,qe=Nt.Jc[Nt.M&Nt.Xb],Te=Nt.m,Cn=Nt;for(_t=0;_t<Cn.za;++_t){var pt=Te,Pt=Cn,tn=Pt.Ac,rr=Pt.Bc+4*_t,Ar=Pt.zc,wn=Pt.ya[Pt.aa+_t];if(Pt.Qa.Bb?wn.$b=ve(pt,Pt.Pa.jb[0])?2+ve(pt,Pt.Pa.jb[2]):ve(pt,Pt.Pa.jb[1]):wn.$b=0,Pt.kc&&(wn.Ad=ve(pt,Pt.Bd)),wn.Za=!ve(pt,145)+0,wn.Za){var fr=wn.Ob,Er=0;for(Pt=0;4>Pt;++Pt){var qn,Rt=Ar[0+Pt];for(qn=0;4>qn;++qn){Rt=rN[tn[rr+qn]][Rt];for(var Ut=Zy[ve(pt,Rt[0])];0<Ut;)Ut=Zy[2*Ut+ve(pt,Rt[Ut])];Rt=-Ut,tn[rr+qn]=Rt}r(fr,Er,tn,rr,4),Er+=4,Ar[0+Pt]=Rt}}else Rt=ve(pt,156)?ve(pt,128)?1:3:ve(pt,163)?2:0,wn.Ob[0]=Rt,i(tn,rr,Rt,4),i(Ar,0,Rt,4);wn.Dd=ve(pt,142)?ve(pt,114)?ve(pt,183)?1:3:2:0}if(Cn.m.Ka)return In(Nt,7,"Premature end-of-partition0 encountered.");for(;Nt.ja<Nt.za;++Nt.ja){if(Cn=qe,pt=(Te=Nt).rb[Te.sb-1],tn=Te.rb[Te.sb+Te.ja],_t=Te.ya[Te.aa+Te.ja],rr=Te.kc?_t.Ad:0)pt.la=tn.la=0,_t.Za||(pt.Na=tn.Na=0),_t.Hc=0,_t.Gc=0,_t.ia=0;else{var bn,$t;if(pt=tn,tn=Cn,rr=Te.Pa.Xc,Ar=Te.ya[Te.aa+Te.ja],wn=Te.pb[Ar.$b],Pt=Ar.ad,fr=0,Er=Te.rb[Te.sb-1],Rt=qn=0,i(Pt,fr,0,384),Ar.Za)var ir=0,Bi=rr[3];else{Ut=s(16);var Ln=pt.Na+Er.Na;if(Ln=Vu(tn,rr[1],Ln,wn.Eb,0,Ut,0),pt.Na=Er.Na=(0<Ln)+0,1<Ln)jo(Ut,0,Pt,fr);else{var Fr=Ut[0]+3>>3;for(Ut=0;256>Ut;Ut+=16)Pt[fr+Ut]=Fr}ir=1,Bi=rr[0]}var Gt=15&pt.la,Hn=15&Er.la;for(Ut=0;4>Ut;++Ut){var Xr=1&Hn;for(Fr=$t=0;4>Fr;++Fr)Gt=Gt>>1|(Xr=(Ln=Vu(tn,Bi,Ln=Xr+(1&Gt),wn.Sc,ir,Pt,fr))>ir)<<7,$t=$t<<2|(3<Ln?3:1<Ln?2:Pt[fr+0]!=0),fr+=16;Gt>>=4,Hn=Hn>>1|Xr<<7,qn=(qn<<8|$t)>>>0}for(Bi=Gt,ir=Hn>>4,bn=0;4>bn;bn+=2){for($t=0,Gt=pt.la>>4+bn,Hn=Er.la>>4+bn,Ut=0;2>Ut;++Ut){for(Xr=1&Hn,Fr=0;2>Fr;++Fr)Ln=Xr+(1&Gt),Gt=Gt>>1|(Xr=0<(Ln=Vu(tn,rr[2],Ln,wn.Qc,0,Pt,fr)))<<3,$t=$t<<2|(3<Ln?3:1<Ln?2:Pt[fr+0]!=0),fr+=16;Gt>>=2,Hn=Hn>>1|Xr<<5}Rt|=$t<<4*bn,Bi|=Gt<<4<<bn,ir|=(240&Hn)<<bn}pt.la=Bi,Er.la=ir,Ar.Hc=qn,Ar.Gc=Rt,Ar.ia=43690&Rt?0:wn.ia,rr=!(qn|Rt)}if(0<Te.L&&(Te.wa[Te.Y+Te.ja]=Te.gd[_t.$b][_t.Za],Te.wa[Te.Y+Te.ja].La|=!rr),Cn.Ka)return In(Nt,7,"Premature end-of-file encountered.")}if(Hh(Nt),Te=zn,Cn=1,_t=(qe=Nt).D,pt=0<qe.L&&qe.M>=qe.zb&&qe.M<=qe.Va,qe.Aa==0)t:{if(_t.M=qe.M,_t.uc=pt,wi(qe,_t),Cn=1,_t=($t=qe.D).Nb,pt=(Rt=hf[qe.L])*qe.R,tn=Rt/2*qe.B,Ut=16*_t*qe.R,Fr=8*_t*qe.B,rr=qe.sa,Ar=qe.ta-pt+Ut,wn=qe.qa,Pt=qe.ra-tn+Fr,fr=qe.Ha,Er=qe.Ia-tn+Fr,Hn=(Gt=$t.M)==0,qn=Gt>=qe.Va-1,qe.Aa==2&&wi(qe,$t),$t.uc)for(Xr=(Ln=qe).D.M,t(Ln.D.uc),$t=Ln.yb;$t<Ln.Hb;++$t){ir=$t,Bi=Xr;var Nr=(Zr=(sr=Ln).D).Nb;bn=sr.R;var Zr=Zr.wa[Zr.Y+ir],Qr=sr.sa,Dr=sr.ta+16*Nr*bn+16*ir,ei=Zr.dd,Xt=Zr.tc;if(Xt!=0)if(t(3<=Xt),sr.L==1)0<ir&&My(Qr,Dr,bn,Xt+4),Zr.La&&Uy(Qr,Dr,bn,Xt),0<Bi&&Dy(Qr,Dr,bn,Xt+4),Zr.La&&By(Qr,Dr,bn,Xt);else{var ti=sr.B,Ui=sr.qa,Ga=sr.ra+8*Nr*ti+8*ir,eo=sr.Ha,sr=sr.Ia+8*Nr*ti+8*ir;Nr=Zr.ld,0<ir&&($n(Qr,Dr,bn,Xt+4,ei,Nr),Hu(Ui,Ga,eo,sr,ti,Xt+4,ei,Nr)),Zr.La&&(nf(Qr,Dr,bn,Xt,ei,Nr),Fy(Ui,Ga,eo,sr,ti,Xt,ei,Nr)),0<Bi&&(Nn(Qr,Dr,bn,Xt+4,ei,Nr),Zs(Ui,Ga,eo,sr,ti,Xt+4,ei,Nr)),Zr.La&&(Gl(Qr,Dr,bn,Xt,ei,Nr),jy(Ui,Ga,eo,sr,ti,Xt,ei,Nr))}}if(qe.ia&&alert("todo:DitherRow"),Te.put!=null){if($t=16*Gt,Gt=16*(Gt+1),Hn?(Te.y=qe.sa,Te.O=qe.ta+Ut,Te.f=qe.qa,Te.N=qe.ra+Fr,Te.ea=qe.Ha,Te.W=qe.Ia+Fr):($t-=Rt,Te.y=rr,Te.O=Ar,Te.f=wn,Te.N=Pt,Te.ea=fr,Te.W=Er),qn||(Gt-=Rt),Gt>Te.o&&(Gt=Te.o),Te.F=null,Te.J=null,qe.Fa!=null&&0<qe.Fa.length&&$t<Gt&&(Te.J=Jt(qe,Te,$t,Gt-$t),Te.F=qe.mb,Te.F==null&&Te.F.length==0)){Cn=In(qe,3,"Could not decode alpha data.");break t}$t<Te.j&&(Rt=Te.j-$t,$t=Te.j,t(!(1&Rt)),Te.O+=qe.R*Rt,Te.N+=qe.B*(Rt>>1),Te.W+=qe.B*(Rt>>1),Te.F!=null&&(Te.J+=Te.width*Rt)),$t<Gt&&(Te.O+=Te.v,Te.N+=Te.v>>1,Te.W+=Te.v>>1,Te.F!=null&&(Te.J+=Te.v),Te.ka=$t-Te.j,Te.U=Te.va-Te.v,Te.T=Gt-$t,Cn=Te.put(Te))}_t+1!=qe.Ic||qn||(r(qe.sa,qe.ta-pt,rr,Ar+16*qe.R,pt),r(qe.qa,qe.ra-tn,wn,Pt+8*qe.B,tn),r(qe.Ha,qe.Ia-tn,fr,Er+8*qe.B,tn))}if(!Cn)return In(Nt,6,"Output aborted.")}return 1}(V,ie)),ie.bc!=null&&ie.bc(ie),ce&=1}return ce?(V.cb=0,ce):0})(u,k)||(f=u.a)}}else f=u.a}f==0&&T.Oa!=null&&T.Oa.fd&&(f=Mu(T.ba))}T=f}P=T!=0?null:11>P?F.f.RGBA.eb:F.f.kb.y}else P=null;return P};var a5=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(R,X){for(var L="",I=0;I<4;I++)L+=String.fromCharCode(R[X++]);return L}function d(R,X){return R[X+0]|R[X+1]<<8}function p(R,X){return(R[X+0]|R[X+1]<<8|R[X+2]<<16)>>>0}function m(R,X){return(R[X+0]|R[X+1]<<8|R[X+2]<<16|R[X+3]<<24)>>>0}new l;var h=[0],y=[0],w=[],x=new l,v=e,_=function(R,X){var L={},I=0,J=!1,q=0,se=0;if(L.frames=[],!function(C,U){for(var K=0;K<4;K++)if(C[U+K]!="RIFF".charCodeAt(K))return!0;return!1}(R,X)){for(m(R,X+=4),X+=8;X<R.length;){var ae=c(R,X),le=m(R,X+=4);X+=4;var Y=le+(1&le);switch(ae){case"VP8 ":case"VP8L":L.frames[I]===void 0&&(L.frames[I]={}),(fe=L.frames[I]).src_off=J?se:X-8,fe.src_size=q+le+8,I++,J&&(J=!1,q=0,se=0);break;case"VP8X":(fe=L.header={}).feature_flags=R[X];var Z=X+4;fe.canvas_width=1+p(R,Z),Z+=3,fe.canvas_height=1+p(R,Z),Z+=3;break;case"ALPH":J=!0,q=Y+8,se=X-8;break;case"ANIM":(fe=L.header).bgcolor=m(R,X),Z=X+4,fe.loop_count=d(R,Z),Z+=2;break;case"ANMF":var he,fe;(fe=L.frames[I]={}).offset_x=2*p(R,X),X+=3,fe.offset_y=2*p(R,X),X+=3,fe.width=1+p(R,X),X+=3,fe.height=1+p(R,X),X+=3,fe.duration=p(R,X),X+=3,he=R[X++],fe.dispose=1&he,fe.blend=he>>1&1}ae!="ANMF"&&(X+=Y)}return L}}(v,0);_.response=v,_.rgbaoutput=!0,_.dataurl=!1;var S=_.header?_.header:null,A=_.frames?_.frames:null;if(S){S.loop_counter=S.loop_count,h=[S.canvas_height],y=[S.canvas_width];for(var O=0;O<A.length&&A[O].blend!=0;O++);}var $=A[0],H=x.WebPDecodeRGBA(v,$.src_off,$.src_size,y,h);$.rgba=H,$.imgwidth=y[0],$.imgheight=h[0];for(var B=0;B<y[0]*h[0]*4;B++)w[B]=H[B];return this.width=y,this.height=h,this.data=w,this}/** ==================================================================== 300 * @license 301 * jsPDF XMP metadata plugin 302 * Copyright (c) 2016 Jussi Utunen, [email protected] 303 * 304 * Permission is hereby granted, free of charge, to any person obtaining 305 * a copy of this software and associated documentation files (the 306 * "Software"), to deal in the Software without restriction, including 307 * without limitation the rights to use, copy, modify, merge, publish, 308 * distribute, sublicense, and/or sell copies of the Software, and to 309 * permit persons to whom the Software is furnished to do so, subject to 310 * the following conditions: 311 * 312 * The above copyright notice and this permission notice shall be 313 * included in all copies or substantial portions of the Software. 314 * 315 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 316 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 317 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 318 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 319 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 320 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 321 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 322 * ==================================================================== 323 */function eM(){var e,t=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?n:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+e.length+" >>"),this.internal.write("stream"),this.internal.write(e),this.internal.write("endstream"),this.internal.write("endobj")}function tM(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var t,n,r,i,s,o,a,l,c,d=function(C){return C=C||{},this.isStrokeTransparent=C.isStrokeTransparent||!1,this.strokeOpacity=C.strokeOpacity||1,this.strokeStyle=C.strokeStyle||"#000000",this.fillStyle=C.fillStyle||"#000000",this.isFillTransparent=C.isFillTransparent||!1,this.fillOpacity=C.fillOpacity||1,this.font=C.font||"10px sans-serif",this.textBaseline=C.textBaseline||"alphabetic",this.textAlign=C.textAlign||"left",this.lineWidth=C.lineWidth||1,this.lineJoin=C.lineJoin||"miter",this.lineCap=C.lineCap||"butt",this.path=C.path||[],this.transform=C.transform!==void 0?C.transform.clone():new l,this.globalCompositeOperation=C.globalCompositeOperation||"normal",this.globalAlpha=C.globalAlpha||1,this.clip_path=C.clip_path||[],this.currentPoint=C.currentPoint||new o,this.miterLimit=C.miterLimit||10,this.lastPoint=C.lastPoint||new o,this.lineDashOffset=C.lineDashOffset||0,this.lineDash=C.lineDash||[],this.margin=C.margin||[0,0,0,0],this.prevPageLastElemOffset=C.prevPageLastElemOffset||0,this.ignoreClearRect=typeof C.ignoreClearRect!="boolean"||C.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new p(this),t=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,o=this.internal.Point,a=this.internal.Rectangle,l=this.internal.Matrix,c=new d}]);var p=function(C){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var U=C;Object.defineProperty(this,"pdf",{get:function(){return U}});var K=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return K},set:function(z){K=!!z}});var Q=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Q},set:function(z){Q=!!z}});var ne=0;Object.defineProperty(this,"posX",{get:function(){return ne},set:function(z){isNaN(z)||(ne=z)}});var re=0;Object.defineProperty(this,"posY",{get:function(){return re},set:function(z){isNaN(z)||(re=z)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(z){var Pe;typeof z=="number"?Pe=[z,z,z,z]:((Pe=new Array(4))[0]=z[0],Pe[1]=z.length>=2?z[1]:Pe[0],Pe[2]=z.length>=3?z[2]:Pe[0],Pe[3]=z.length>=4?z[3]:Pe[1]),c.margin=Pe}});var pe=!1;Object.defineProperty(this,"autoPaging",{get:function(){return pe},set:function(z){pe=z}});var me=0;Object.defineProperty(this,"lastBreak",{get:function(){return me},set:function(z){me=z}});var ve=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ve},set:function(z){ve=z}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(z){z instanceof d&&(c=z)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(z){c.path=z}});var Ae=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ae},set:function(z){Ae=z}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(z){var Pe;Pe=m(z),this.ctx.fillStyle=Pe.style,this.ctx.isFillTransparent=Pe.a===0,this.ctx.fillOpacity=Pe.a,this.pdf.setFillColor(Pe.r,Pe.g,Pe.b,{a:Pe.a}),this.pdf.setTextColor(Pe.r,Pe.g,Pe.b,{a:Pe.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(z){var Pe=m(z);this.ctx.strokeStyle=Pe.style,this.ctx.isStrokeTransparent=Pe.a===0,this.ctx.strokeOpacity=Pe.a,Pe.a===0?this.pdf.setDrawColor(255,255,255):(Pe.a,this.pdf.setDrawColor(Pe.r,Pe.g,Pe.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(z){["butt","round","square"].indexOf(z)!==-1&&(this.ctx.lineCap=z,this.pdf.setLineCap(z))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(z){isNaN(z)||(this.ctx.lineWidth=z,this.pdf.setLineWidth(z))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(z){["bevel","round","miter"].indexOf(z)!==-1&&(this.ctx.lineJoin=z,this.pdf.setLineJoin(z))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(z){isNaN(z)||(this.ctx.miterLimit=z,this.pdf.setMiterLimit(z))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(z){this.ctx.textBaseline=z}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(z){["right","end","center","left","start"].indexOf(z)!==-1&&(this.ctx.textAlign=z)}});var Re=null,Le=null,He=null;Object.defineProperty(this,"fontFaces",{get:function(){return He},set:function(z){Re=null,Le=null,He=z}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(z){var Pe;if(this.ctx.font=z,(Pe=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(z))!==null){var ht=Pe[1];Pe[2];var Ye=Pe[3],xe=Pe[4];Pe[5];var tt=Pe[6],Oe=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(xe)[2];xe=Math.floor(Oe==="px"?parseFloat(xe)*this.pdf.internal.scaleFactor:Oe==="em"?parseFloat(xe)*this.pdf.getFontSize():parseFloat(xe)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(xe);var Ze=function(We){var ln,At,at=[],vt=We.trim();if(vt==="")return o1;if(vt in R_)return[R_[vt]];for(;vt!=="";){switch(At=null,ln=(vt=I_(vt)).charAt(0)){case'"':case"'":At=KD(vt.substring(1),ln);break;default:At=YD(vt)}if(At===null||(at.push(At[0]),(vt=I_(At[1]))!==""&&vt.charAt(0)!==","))return o1;vt=vt.replace(/^,/,"")}return at}(tt);if(this.fontFaces){var Be=function(We,ln){var At=We.getFontList(),at=JSON.stringify(At);if(Re===null||Le!==at){var vt=function(Dt){var Qe=[];return Object.keys(Dt).forEach(function(Wt){Dt[Wt].forEach(function(nt){var lt=null;switch(nt){case"bold":lt={family:Wt,weight:"bold"};break;case"italic":lt={family:Wt,style:"italic"};break;case"bolditalic":lt={family:Wt,weight:"bold",style:"italic"};break;case"":case"normal":lt={family:Wt}}lt!==null&&(lt.ref={name:Wt,style:nt},Qe.push(lt))})}),Qe}(At);Re=function(Dt){for(var Qe={},Wt=0;Wt<Dt.length;++Wt){var nt=s1(Dt[Wt]),lt=nt.family,Yt=nt.stretch,yt=nt.style,Ve=nt.weight;Qe[lt]=Qe[lt]||{},Qe[lt][Yt]=Qe[lt][Yt]||{},Qe[lt][Yt][yt]=Qe[lt][Yt][yt]||{},Qe[lt][Yt][yt][Ve]=nt}return Qe}(vt.concat(ln)),Le=at}return Re}(this.pdf,this.fontFaces),It=Ze.map(function(We){return{family:We,stretch:"normal",weight:Ye,style:ht}}),St=function(We,ln,At){for(var at=(At=At||{}).defaultFontFamily||"times",vt=Object.assign({},GD,At.genericFontFamilies||{}),Dt=null,Qe=null,Wt=0;Wt<ln.length;++Wt)if(vt[(Dt=s1(ln[Wt])).family]&&(Dt.family=vt[Dt.family]),We.hasOwnProperty(Dt.family)){Qe=We[Dt.family];break}if(!(Qe=Qe||We[at]))throw new Error("Could not find a font-family for the rule '"+O_(Dt)+"' and default family '"+at+"'.");if(Qe=function(nt,lt){if(lt[nt])return lt[nt];var Yt=$v[nt],yt=Yt<=$v.normal?-1:1,Ve=T_(lt,AE,Yt,yt);if(!Ve)throw new Error("Could not find a matching font-stretch value for "+nt);return Ve}(Dt.stretch,Qe),Qe=function(nt,lt){if(lt[nt])return lt[nt];for(var Yt=kE[nt],yt=0;yt<Yt.length;++yt)if(lt[Yt[yt]])return lt[Yt[yt]];throw new Error("Could not find a matching font-style for "+nt)}(Dt.style,Qe),!(Qe=function(nt,lt){if(lt[nt])return lt[nt];if(nt===400&<[500])return lt[500];if(nt===500&<[400])return lt[400];var Yt=VD[nt],yt=T_(lt,EE,Yt,nt<400?-1:1);if(!yt)throw new Error("Could not find a matching font-weight for value "+nt);return yt}(Dt.weight,Qe)))throw new Error("Failed to resolve a font for the rule '"+O_(Dt)+"'.");return Qe}(Be,It);this.pdf.setFont(St.ref.name,St.ref.style)}else{var Xe="";(Ye==="bold"||parseInt(Ye,10)>=700||ht==="bold")&&(Xe="bold"),ht==="italic"&&(Xe+="italic"),Xe.length===0&&(Xe="normal");for(var gt="",kt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},$e=0;$e<Ze.length;$e++){if(this.pdf.internal.getFont(Ze[$e],Xe,{noFallback:!0,disableWarning:!0})!==void 0){gt=Ze[$e];break}if(Xe==="bolditalic"&&this.pdf.internal.getFont(Ze[$e],"bold",{noFallback:!0,disableWarning:!0})!==void 0)gt=Ze[$e],Xe="bold";else if(this.pdf.internal.getFont(Ze[$e],"normal",{noFallback:!0,disableWarning:!0})!==void 0){gt=Ze[$e],Xe="normal";break}}if(gt===""){for(var st=0;st<Ze.length;st++)if(kt[Ze[st]]){gt=kt[Ze[st]];break}}gt=gt===""?"Times":gt,this.pdf.setFont(gt,Xe)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(z){this.ctx.globalCompositeOperation=z}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(z){this.ctx.globalAlpha=z}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(z){this.ctx.lineDashOffset=z,fe.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(z){this.ctx.lineDash=z,fe.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(z){this.ctx.ignoreClearRect=!!z}})};p.prototype.setLineDash=function(C){this.lineDash=C},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){A.call(this,"fill",!1)},p.prototype.stroke=function(){A.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(C,U){if(isNaN(C)||isNaN(U))throw Kt.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to
323jsPDF.context2d.moveTo");var K=this.ctx.transform.applyToPoint(new o(C,U));this.path.push({type:"mt",x:K.x,y:K.y}),this.ctx.lastPoint=new o(C,U)},p.prototype.closePath=function(){var C=new o(0,0),U=0;for(U=this.path.length-1;U!==-1;U--)if(this.path[U].type==="begin"&&qt(this.path[U+1])==="object"&&typeof this.path[U+1].x=="number"){C=new o(this.path[U+1].x,this.path[U+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(C.x,C.y)},p.prototype.lineTo=function(C,U){if(isNaN(C)||isNaN(U))throw Kt.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var K=this.ctx.transform.applyToPoint(new o(C,U));this.path.push({type:"lt",x:K.x,y:K.y}),this.ctx.lastPoint=new o(K.x,K.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),A.call(this,null,!0)},p.prototype.quadraticCurveTo=function(C,U,K,Q){if(isNaN(K)||isNaN(Q)||isNaN(C)||isNaN(U))throw Kt.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ne=this.ctx.transform.applyToPoint(new o(K,Q)),re=this.ctx.transform.applyToPoint(new o(C,U));this.path.push({type:"qct",x1:re.x,y1:re.y,x:ne.x,y:ne.y}),this.ctx.lastPoint=new o(ne.x,ne.y)},p.prototype.bezierCurveTo=function(C,U,K,Q,ne,re){if(isNaN(ne)||isNaN(re)||isNaN(C)||isNaN(U)||isNaN(K)||isNaN(Q))throw Kt.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var pe=this.ctx.transform.applyToPoint(new o(ne,re)),me=this.ctx.transform.applyToPoint(new o(C,U)),ve=this.ctx.transform.applyToPoint(new o(K,Q));this.path.push({type:"bct",x1:me.x,y1:me.y,x2:ve.x,y2:ve.y,x:pe.x,y:pe.y}),this.ctx.lastPoint=new o(pe.x,pe.y)},p.prototype.arc=function(C,U,K,Q,ne,re){if(isNaN(C)||isNaN(U)||isNaN(K)||isNaN(Q)||isNaN(ne))throw Kt.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(re=!!re,!this.ctx.transform.isIdentity){var pe=this.ctx.transform.applyToPoint(new o(C,U));C=pe.x,U=pe.y;var me=this.ctx.transform.applyToPoint(new o(0,K)),ve=this.ctx.transform.applyToPoint(new o(0,0));K=Math.sqrt(Math.pow(me.x-ve.x,2)+Math.pow(me.y-ve.y,2))}Math.abs(ne-Q)>=2*Math.PI&&(Q=0,ne=2*Math.PI),this.path.push({type:"arc",x:C,y:U,radius:K,startAngle:Q,endAngle:ne,counterclockwise:re})},p.prototype.arcTo=function(C,U,K,Q,ne){throw new Error("arcTo not implemented.")},p.prototype.rect=function(C,U,K,Q){if(isNaN(C)||isNaN(U)||isNaN(K)||isNaN(Q))throw Kt.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(C,U),this.lineTo(C+K,U),this.lineTo(C+K,U+Q),this.lineTo(C,U+Q),this.lineTo(C,U),this.lineTo(C+K,U),this.lineTo(C,U)},p.prototype.fillRect=function(C,U,K,Q){if(isNaN(C)||isNaN(U)||isNaN(K)||isNaN(Q))throw Kt.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var ne={};this.lineCap!=="butt"&&(ne.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(ne.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(C,U,K,Q),this.fill(),ne.hasOwnProperty("lineCap")&&(this.lineCap=ne.lineCap),ne.hasOwnProperty("lineJoin")&&(this.lineJoin=ne.lineJoin)}},p.prototype.strokeRect=function(C,U,K,Q){if(isNaN(C)||isNaN(U)||isNaN(K)||isNaN(Q))throw Kt.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");y.call(this)||(this.beginPath(),this.rect(C,U,K,Q),this.stroke())},p.prototype.clearRect=function(C,U,K,Q){if(isNaN(C)||isNaN(U)||isNaN(K)||isNaN(Q))throw Kt.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(C,U,K,Q))},p.prototype.save=function(C){C=typeof C!="boolean"||C;for(var U=this.pdf.internal.getCurrentPageInfo().pageNumber,K=0;K<this.pdf.internal.getNumberOfPages();K++)this.pdf.setPage(K+1),this.pdf.internal.out("q");
vendor: 4,163 bytes, line 323
323if(this.pdf.setPage(U),C){this.ctx.fontSize=this.pdf.internal.getFontSize();var Q=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Q}},p.prototype.restore=function(C){C=typeof C!="boolean"||C;for(var U=this.pdf.internal.getCurrentPageInfo().pageNumber,K=0;K<this.pdf.internal.getNumberOfPages();K++)this.pdf.setPage(K+1),this.pdf.internal.out("Q");this.pdf.setPage(U),C&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var m=function(C){var U,K,Q,ne;if(C.isCanvasGradient===!0&&(C=C.getColor()),!C)return{r:0,g:0,b:0,a:0,style:C};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(C))U=0,K=0,Q=0,ne=0;else{var re=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(C);if(re!==null)U=parseInt(re[1]),K=parseInt(re[2]),Q=parseInt(re[3]),ne=1;else if((re=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(C))!==null)U=parseInt(re[1]),K=parseInt(re[2]),Q=parseInt(re[3]),ne=parseFloat(re[4]);else{if(ne=1,typeof C=="string"&&C.charAt(0)!=="#"){var pe=new vE(C);C=pe.ok?pe.toHex():"#000000"}C.length===4?(U=C.substring(1,2),U+=U,K=C.substring(2,3),K+=K,Q=C.substring(3,4),Q+=Q):(U=C.substring(1,3),K=C.substring(3,5),Q=C.substring(5,7)),U=parseInt(U,16),K=parseInt(K,16),Q=parseInt(Q,16)}}return{r:U,g:K,b:Q,a:ne,style:C}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},y=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(C,U,K,Q){if(isNaN(U)||isNaN(K)||typeof C!="string")throw Kt.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Q=isNaN(Q)?void 0:Q,!h.call(this)){var ne=Y(this.ctx.transform.rotation),re=this.ctx.transform.scaleX;I.call(this,{text:C,x:U,y:K,scale:re,angle:ne,align:this.textAlign,maxWidth:Q})}},p.prototype.strokeText=function(C,U,K,Q){if(isNaN(U)||isNaN(K)||typeof C!="string")throw Kt.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!y.call(this)){Q=isNaN(Q)?void 0:Q;var ne=Y(this.ctx.transform.rotation),re=this.ctx.transform.scaleX;I.call(this,{text:C,x:U,y:K,scale:re,renderingMode:"stroke",angle:ne,align:this.textAlign,maxWidth:Q})}},p.prototype.measureText=function(C){if(typeof C!="string")throw Kt.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var U=this.pdf,K=this.pdf.internal.scaleFactor,Q=U.internal.getFontSize(),ne=U.getStringUnitWidth(C)*Q/U.internal.scaleFactor;return new function(re){var pe=(re=re||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return pe}}),this}({width:ne*=Math.round(96*K/72*1e4)/1e4})},p.prototype.scale=function(C,U){if(isNaN(C)||isNaN(U))throw Kt.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var K=new l(C,0,0,U,0,0);this.ctx.transform=this.ctx.transform.multiply(K)},p.prototype.rotate=function(C){if(isNaN(C))throw Kt.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var U=new l(Math.cos(C),Math.sin(C),-Math.sin(C),Math.cos(C),0,0);this.ctx.transform=this.ctx.transform.multiply(U)},p.prototype.translate=function(C,U){if(isNaN(C)||isNaN(U))throw Kt.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var K=new l(1,0,0,1,C,U);this.ctx.transform=this.ctx.transform.multiply(K)},p.prototype.transform=function(C,U,K,Q,ne,re){if(isNaN(C)||isNaN(U)||isNaN(K)||isNaN(Q)||isNaN(ne)||isNaN(re))throw Kt.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to
323jsPDF.context2d.transform");var pe=new l(C,U,K,Q,ne,re);this.ctx.transform=this.ctx.transform.multiply(pe)},p.prototype.setTransform=function(C,U,K,Q,ne,re){C=isNaN(C)?1:C,U=isNaN(U)?0:U,K=isNaN(K)?0:K,Q=isNaN(Q)?1:Q,ne=isNaN(ne)?0:ne,re=isNaN(re)?0:re,this.ctx.transform=new l(C,U,K,Q,ne,re)};var w=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(C,U,K,Q,ne,re,pe,me,ve){var Ae=this.pdf.getImageProperties(C),Re=1,Le=1,He=1,z=1;Q!==void 0&&me!==void 0&&(He=me/Q,z=ve/ne,Re=Ae.width/Q*me/Q,Le=Ae.height/ne*ve/ne),re===void 0&&(re=U,pe=K,U=0,K=0),Q!==void 0&&me===void 0&&(me=Q,ve=ne),Q===void 0&&me===void 0&&(me=Ae.width,ve=Ae.height);var Pe=this.ctx.transform.decompose(),ht=Y(Pe.rotate.shx),Ye=new l,xe=(Ye=(Ye=(Ye=Ye.multiply(Pe.translate)).multiply(Pe.skew)).multiply(Pe.scale)).applyToRectangle(new a(re-U*He,pe-K*z,Q*Re,ne*Le));if(this.autoPaging){for(var tt,Oe=x.call(this,xe),Ze=[],Be=0;Be<Oe.length;Be+=1)Ze.indexOf(Oe[Be])===-1&&Ze.push(Oe[Be]);S(Ze);for(var It=Ze[0],St=Ze[Ze.length-1],Xe=It;Xe<St+1;Xe++){this.pdf.setPage(Xe);var gt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],kt=Xe===1?this.posY+this.margin[0]:this.margin[0],$e=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],st=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],We=Xe===1?0:$e+(Xe-2)*st;if(this.ctx.clip_path.length!==0){var ln=this.path;tt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(tt,this.posX+this.margin[3],-We+kt+this.ctx.prevPageLastElemOffset),O.call(this,"fill",!0),this.path=ln}var At=JSON.parse(JSON.stringify(xe));At=_([At],this.posX+this.margin[3],-We+kt+this.ctx.prevPageLastElemOffset)[0];var at=(Xe>It||Xe<St)&&w.call(this);at&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],gt,st,null).clip().discardPath()),this.pdf.addImage(C,"JPEG",At.x,At.y,At.w,At.h,null,null,ht),at&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(C,"JPEG",xe.x,xe.y,xe.w,xe.h,null,null,ht)};var x=function(C,U,K){var Q=[];U=U||this.pdf.internal.pageSize.width,K=K||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ne=this.posY+this.ctx.prevPageLastElemOffset;switch(C.type){default:case"mt":case"lt":Q.push(Math.floor((C.y+ne)/K)+1);break;case"arc":Q.push(Math.floor((C.y+ne-C.radius)/K)+1),Q.push(Math.floor((C.y+ne+C.radius)/K)+1);break;case"qct":var re=Z(this.ctx.lastPoint.x,this.ctx.lastPoint.y,C.x1,C.y1,C.x,C.y);Q.push(Math.floor((re.y+ne)/K)+1),Q.push(Math.floor((re.y+re.h+ne)/K)+1);break;case"bct":var pe=he(this.ctx.lastPoint.x,this.ctx.lastPoint.y,C.x1,C.y1,C.x2,C.y2,C.x,C.y);Q.push(Math.floor((pe.y+ne)/K)+1),Q.push(Math.floor((pe.y+pe.h+ne)/K)+1);break;case"rect":Q.push(Math.floor((C.y+ne)/K)+1),Q.push(Math.floor((C.y+C.h+ne)/K)+1)}for(var me=0;me<Q.length;me+=1)for(;this.pdf.internal.getNumberOfPages()<Q[me];)v.call(this);return Q},v=function(){var C=this.fillStyle,U=this.strokeStyle,K=this.font,Q=this.lineCap,ne=this.lineWidth,re=this.lineJoin;this.pdf.addPage(),this.fillStyle=C,this.strokeStyle=U,this.font=K,this.lineCap=Q,this.lineWidth=ne,this.lineJoin=re},_=function(C,U,K){for(var Q=0;Q<C.length;Q++)switch(C[Q].type){case"bct":C[Q].x2+=U,C[Q].y2+=K;case"qct":C[Q].x1+=U,C[Q].y1+=K;default:C[Q].x+=U,C[Q].y+=K}return C},S=function(C){return C.sort(function(U,K){return U-K})},A=function(C,U){var K=this.fillStyle,Q=this.strokeStyle,ne=this.lineCap,re=this.lineWidth,pe=Math.abs(re*this.ctx.transform.scaleX),me=this.lineJoin;if(this.autoPaging){for(var ve,Ae,Re=JSON.parse(JSON.stringify(this.path)),Le=JSON.parse(JSON.stringify(this.path)),He=[],z=0;z<Le.length;z++)if(Le[z].x!==void 0)for(var Pe=x.call(this,Le[z]),ht=0;ht<Pe.length;ht+=1)He.indexOf(Pe[ht])===-1&&He.push(Pe[ht]);for(var Ye=0;Ye<He.length;Ye++)for(;this.pdf.internal.getNumberOfPages()<He[Ye];)v.call(this);S(He);for(var xe=He[0],tt=He[He.length-1],Oe=xe;Oe<tt+1;Oe++){this.pdf.setPage(Oe),this.fillStyle=K,this.strokeStyle=Q,this.lineCap=ne,this.lineWidth=pe,this.lineJoin=me;var Ze=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Be=Oe===1?this.posY+this.margin[0]:this.margin[0],It=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],St=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Xe=Oe===1?0:It+(Oe-2)*St;if(this.ctx.clip_path.length!==0){var gt=this.path;ve=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(ve,this.posX+this.margin[3],-Xe+Be+this.ctx.prevPageLastElemOffset),O.call(this,C,!0),this.path=gt}if(Ae=JSON.parse(JSON.stringify(Re)),this.path=_(Ae,this.posX+this.margin[3],-Xe+Be+this.ctx.prevPageLastElemOffset),U===!1||Oe===0){var kt=(Oe>xe||Oe<tt)&&w.call(this);kt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ze,St,null).clip().discardPath()),O.call(this,C,U),kt&&this.pdf.restoreGraphicsState()}this.lineWidth=re}this.path=Re}else this.lineWidth=pe,O.call(this,C,U),this.lineWidth=re},O=function(C,U){if((C!=="stroke"||U||!y.call(this))&&(C==="stroke"||U||!h.call(this))){for(var K,Q,ne=[],re=this.path,pe=0;pe<re.length;pe++){var me=re[pe];switch(me.type){case"begin":ne.push({begin:!0}
vendor: 36,400 bytes, lines 323-329
323);break;case"close":ne.push({close:!0});break;case"mt":ne.push({start:me,deltas:[],abs:[]});break;case"lt":var ve=ne.length;if(re[pe-1]&&!isNaN(re[pe-1].x)&&(K=[me.x-re[pe-1].x,me.y-re[pe-1].y],ve>0)){for(;ve>=0;ve--)if(ne[ve-1].close!==!0&&ne[ve-1].begin!==!0){ne[ve-1].deltas.push(K),ne[ve-1].abs.push(me);break}}break;case"bct":K=[me.x1-re[pe-1].x,me.y1-re[pe-1].y,me.x2-re[pe-1].x,me.y2-re[pe-1].y,me.x-re[pe-1].x,me.y-re[pe-1].y],ne[ne.length-1].deltas.push(K);break;case"qct":var Ae=re[pe-1].x+2/3*(me.x1-re[pe-1].x),Re=re[pe-1].y+2/3*(me.y1-re[pe-1].y),Le=me.x+2/3*(me.x1-me.x),He=me.y+2/3*(me.y1-me.y),z=me.x,Pe=me.y;K=[Ae-re[pe-1].x,Re-re[pe-1].y,Le-re[pe-1].x,He-re[pe-1].y,z-re[pe-1].x,Pe-re[pe-1].y],ne[ne.length-1].deltas.push(K);break;case"arc":ne.push({deltas:[],abs:[],arc:!0}),Array.isArray(ne[ne.length-1].abs)&&ne[ne.length-1].abs.push(me)}}Q=U?null:C==="stroke"?"stroke":"fill";for(var ht=!1,Ye=0;Ye<ne.length;Ye++)if(ne[Ye].arc)for(var xe=ne[Ye].abs,tt=0;tt<xe.length;tt++){var Oe=xe[tt];Oe.type==="arc"?B.call(this,Oe.x,Oe.y,Oe.radius,Oe.startAngle,Oe.endAngle,Oe.counterclockwise,void 0,U,!ht):J.call(this,Oe.x,Oe.y),ht=!0}else if(ne[Ye].close===!0)this.pdf.internal.out("h"),ht=!1;else if(ne[Ye].begin!==!0){var Ze=ne[Ye].start.x,Be=ne[Ye].start.y;q.call(this,ne[Ye].deltas,Ze,Be),ht=!0}Q&&R.call(this,Q),U&&X.call(this)}},$=function(C){var U=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,K=U*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return C-K;case"top":return C+U-K;case"hanging":return C+U-2*K;case"middle":return C+U/2-K;default:return C}},H=function(C){return C+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var C=function(){};return C.colorStops=[],C.addColorStop=function(U,K){this.colorStops.push([U,K])},C.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},C.isCanvasGradient=!0,C},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var B=function(C,U,K,Q,ne,re,pe,me,ve){for(var Ae=ae.call(this,K,Q,ne,re),Re=0;Re<Ae.length;Re++){var Le=Ae[Re];Re===0&&(ve?L.call(this,Le.x1+C,Le.y1+U):J.call(this,Le.x1+C,Le.y1+U)),se.call(this,C,U,Le.x2,Le.y2,Le.x3,Le.y3,Le.x4,Le.y4)}me?X.call(this):R.call(this,pe)},R=function(C){switch(C){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},X=function(){this.pdf.clip(),this.pdf.discardPath()},L=function(C,U){this.pdf.internal.out(n(C)+" "+r(U)+" m")},I=function(C){var U;switch(C.align){case"right":case"end":U="right";break;case"center":U="center";break;default:U="left"}var K,Q,ne,re=this.pdf.getTextDimensions(C.text),pe=$.call(this,C.y),me=H.call(this,pe)-re.h,ve=this.ctx.transform.applyToPoint(new o(C.x,pe));if(this.autoPaging){var Ae=this.ctx.transform.decompose(),Re=new l;Re=(Re=(Re=Re.multiply(Ae.translate)).multiply(Ae.skew)).multiply(Ae.scale);for(var Le=this.ctx.transform.applyToRectangle(new a(C.x,pe,re.w,re.h)),He=Re.applyToRectangle(new a(C.x,me,re.w,re.h)),z=x.call(this,He),Pe=[],ht=0;ht<z.length;ht+=1)Pe.indexOf(z[ht])===-1&&Pe.push(z[ht]);S(Pe);for(var Ye=Pe[0],xe=Pe[Pe.length-1],tt=Ye;tt<xe+1;tt++){this.pdf.setPage(tt);var Oe=tt===1?this.posY+this.margin[0]:this.margin[0],Ze=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Be=this.pdf.internal.pageSize.height-this.margin[2],It=Be-this.margin[0],St=this.pdf.internal.pageSize.width-this.margin[1],Xe=St-this.margin[3],gt=tt===1?0:Ze+(tt-2)*It;if(this.ctx.clip_path.length!==0){var kt=this.path;K=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(K,this.posX+this.margin[3],-1*gt+Oe),O.call(this,"fill",!0),this.path=kt}var $e=_([JSON.parse(JSON.stringify(He))],this.posX+this.margin[3],-gt+Oe+this.ctx.prevPageLastElemOffset)[0];C.scale>=.01&&(Q=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Q*C.scale),ne=this.lineWidth,this.lineWidth=ne*C.scale);var st=this.autoPaging!=="text";if(st||$e.y+$e.h<=Be){if(st||$e.y>=Oe&&$e.x<=St){var We=st?C.text:this.pdf.splitTextToSize(C.text,C.maxWidth||St-$e.x)[0],ln=_([JSON.parse(JSON.stringify(Le))],this.posX+this.margin[3],-gt+Oe+this.ctx.prevPageLastElemOffset)[0],At=st&&(tt>Ye||tt<xe)&&w.call(this);At&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Xe,It,null).clip().discardPath()),this.pdf.text(We,ln.x,ln.y,{angle:C.angle,align:U,renderingMode:C.renderingMode}),At&&this.pdf.restoreGraphicsState()}}else $e.y<Be&&(this.ctx.prevPageLastElemOffset+=Be-$e.y);C.scale>=.01&&(this.pdf.setFontSize(Q),this.lineWidth=ne)}}else C.scale>=.01&&(Q=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Q*C.scale),ne=this.lineWidth,this.lineWidth=ne*C.scale),this.pdf.text(C.text,ve.x+this.posX,ve.y+this.posY,{angle:C.angle,align:U,renderingMode:C.renderingMode,maxWidth:C.maxWidth}),C.scale>=.01&&(this.pdf.setFontSize(Q),this.lineWidth=ne)},J=function(C,U,K,Q){K=K||0,Q=Q||0,this.pdf.internal.out(n(C+K)+" "+r(U+Q)+" l")},q=function(C,U,K){return this.pdf.lines(C,U,K,null,null)},se=function(C,U,K,Q,ne,re,pe,me){this.pdf.internal.out([t(i(K+C)),t(s(Q+U)),t(i(ne+C)),t(s(re+U)),t(i(pe+C)),t(s(me+U)),"c"].join(" "))},ae=function(C,U,K,Q){for(var ne=2*Math.PI,re=Math.PI/2;U>K;)U-=ne;var pe=Math.abs(K-U);pe<ne&&Q&&(pe=ne-pe);for(var me=[],ve=Q?-1:1,Ae=U;pe>1e-5;){var Re=Ae+ve*Math.min(pe,re);me.push(le.call(this,C,Ae,Re)),pe-=Math.abs(Re-Ae),Ae=Re}return me},le=function(C,U,K){var Q=(K-U)/2,ne=C*Math.cos(Q),re=C*Math.sin(Q),pe=ne,me=-re,ve=pe*pe+me*me,Ae=ve+pe*ne+me*re,Re=4/3*(Math.sqrt(2*ve*Ae)-Ae)/(pe*re-me*ne),Le=pe-Re*me,He=me+Re*pe,z=Le,Pe=-He,ht=Q+U,Ye=Math.cos(ht),xe=Math.sin(ht);return{x1:C*Math.cos(U),y1:C*Math.sin(U),x2:Le*Ye-He*xe,y2:Le*xe+He*Ye,x3:z*Ye-Pe*xe,y3:z*xe+Pe*Ye,x4:C*Math.cos(K),y4:C*Math.sin(K)}},Y=function(C){return 180*C/Math.PI},Z=function(C,U,K,Q,ne,re){var pe=C+.5*(K-C),me=U+.5*(Q-U),ve=ne+.5*(K-ne),Ae=re+.5*(Q-re),Re=Math.min(C,ne,pe,ve),Le=Math.max(C,ne,pe,ve),He=Math.min(U,re,me,Ae),z=Math.max(U,re,me,Ae);return new a(Re,He,Le-Re,z-He)},he=function(C,U,K,Q,ne,re,pe,me){var ve,Ae,Re,Le,He,z,Pe,ht,Ye,xe,tt,Oe,Ze,Be,It=K-C,St=Q-U,Xe=ne-K,gt=re-Q,kt=pe-ne,$e=me-re;for(Ae=0;Ae<41;Ae++)Ye=(Pe=(Re=C+(ve=Ae/40)*It)+ve*((He=K+ve*Xe)-Re))+ve*(He+ve*(ne+ve*kt-He)-Pe),xe=(ht=(Le=U+ve*St)+ve*((z=Q+ve*gt)-Le))+ve*(z+ve*(re+ve*$e-z)-ht),Ae==0?(tt=Ye,Oe=xe,Ze=Ye,Be=xe):(tt=Math.min(tt,Ye),Oe=Math.min(Oe,xe),Ze=Math.max(Ze,Ye),Be=Math.max(Be,xe));return new a(Math.round(tt),Math.round(Oe),Math.round(Ze-tt),Math.round(Be-Oe))},fe=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var C,U,K=(C=this.ctx.lineDash,U=this.ctx.lineDashOffset,JSON.stringify({lineDash:C,lineDashOffset:U}));this.prevLineDash!==K&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=K)}}})(Je.API),function(e){var t=function(o){var a,l,c,d,p,m,h,y,w,x;for(l=[],c=0,d=(o+=a="\0\0\0\0".slice(o.length%4||4)).length;d>c;c+=4)(p=(o.charCodeAt(c)<<24)+(o.charCodeAt(c+1)<<16)+(o.charCodeAt(c+2)<<8)+o.charCodeAt(c+3))!==0?(m=(p=((p=((p=((p=(p-(x=p%85))/85)-(w=p%85))/85)-(y=p%85))/85)-(h=p%85))/85)%85,l.push(m+33,h+33,y+33,w+33,x+33)):l.push(122);return function(v,_){for(var S=_;S>0;S--)v.pop()}(l,a.length),String.fromCharCode.apply(String,l)+"~>"},n=function(o){var a,l,c,d,p,m=String,h="length",y=255,w="charCodeAt",x="slice",v="replace";for(o[x](-2),o=o[x](0,-2)[v](/\s/g,"")[v]("z","!!!!!"),c=[],d=0,p=(o+=a="uuuuu"[x](o[h]%5||5))[h];p>d;d+=5)l=52200625*(o[w](d)-33)+614125*(o[w](d+1)-33)+7225*(o[w](d+2)-33)+85*(o[w](d+3)-33)+(o[w](d+4)-33),c.push(y&l>>24,y&l>>16,y&l>>8,y&l);return function(_,S){for(var A=S;A>0;A--)_.pop()}(c,a[h]),m.fromCharCode.apply(m,c)},r=function(o){return o.split("").map(function(a){return("0"+a.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(o){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),a.test(o)===!1)return"";for(var l="",c=0;c<o.length;c+=2)l+=String.fromCharCode("0x"+(o[c]+o[c+1]));return l},s=function(o){for(var a=new Uint8Array(o.length),l=o.length;l--;)a[l]=o.charCodeAt(l);return(a=Cv(a)).reduce(function(c,d){return c+String.fromCharCode(d)},"")};e.processDataByFilters=function(o,a){var l=0,c=o||"",d=[];for(typeof(a=a||[])=="string"&&(a=[a]),l=0;l<a.length;l+=1)switch(a[l]){case"ASCII85Decode":case"/ASCII85Decode":c=n(c),d.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=t(c),d.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=i(c),d.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=r(c),d.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=s(c),d.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[l]+'" is not implemented')}return{data:c,reverseChain:d.reverse().join(" ")}}}(Je.API),function(e){e.loadFile=function(t,n,r){return function(i,s,o){s=s!==!1,o=typeof o=="function"?o:function(){};var a=void 0;try{a=function(l,c,d){var p=new XMLHttpRequest,m=0,h=function(y){var w=y.length,x=[],v=String.fromCharCode;for(m=0;m<w;m+=1)x.push(v(255&y.charCodeAt(m)));return x.join("")};if(p.open("GET",l,!c),p.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(p.onload=function(){p.status===200?d(h(this.responseText)):d(void 0)}),p.send(null),c&&p.status===200)return h(p.responseText)}(i,s,o)}catch{}return a}(t,n,r)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(Je.API),function(e){function t(){return(ot.html2canvas?Promise.resolve(ot.html2canvas):jg(()=>import("./html2canvas.esm-CBrSDip1.js"),[])).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function n(){return(ot.DOMPurify?Promise.resolve(ot.DOMPurify):jg(()=>import("./purify.es-C5KSVp3G.js"),[])).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var r=function(a){var l=qt(a);return l==="undefined"?"undefined":l==="string"||a instanceof String?"string":l==="number"||a instanceof Number?"number":l==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":l==="object"?"object":"unknown"},i=function(a,l){var c=document.createElement(a);for(var d in l.className&&(c.className=l.className),l.innerHTML&&l.dompurify&&(c.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)c.style[d]=l.style[d];return c},s=function a(l,c){for(var d=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),p=l.firstChild;p;p=p.nextSibling)c!==!0&&p.nodeType===1&&p.nodeName==="SCRIPT"||d.appendChild(a(p,c));return l.nodeType===1&&(l.nodeName==="CANVAS"?(d.width=l.width,d.height=l.height,d.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(d.value=l.value),d.addEventListener("load",function(){d.scrollTop=l.scrollTop,d.scrollLeft=l.scrollLeft},!0)),d},o=function a(l){var c=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),d=a.convert(Promise.resolve(),c);return(d=d.setProgress(1,a,1,[a])).set(l)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(a,l){return a.__proto__=l||o.prototype,a},o.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},o.prototype.from=function(a,l){return this.then(function(){switch(l=l||function(c){switch(r(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a),l){case"string":return this.then(n).then(function(c){return this.set({src:i("div",{innerHTML:a,dompurify:c})})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},o.prototype.to=function(a){switch(a){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},o.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},l=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);l.tagName==="BODY"&&(a.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(l),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},o.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(t).then(function(l){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,l(this.prop.container,c)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(t).then(function(l){var c=this.opt.jsPDF,d=this.opt.fontFaces,p=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,m=Object.assign({async:!0,allowTaint:!0,scale:p,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete m.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=d,d)for(var h=0;h<d.length;++h){var y=d[h],w=y.src.find(function(x){return x.format==="truetype"});w&&c.addFont(w.url,y.ref.name,y.ref.style)}return m.windowHeight=m.windowHeight||0,m.windowHeight=m.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):m.windowHeight,c.context2d.save(!0),l(this.prop.container,m)}).then(function(l){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(a,l,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(a,l):this.outputPdf(a,l)},o.prototype.outputPdf=function(a,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,l)})},o.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+a+'" is not supported.'}})},o.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(a){if(r(a)!=="object")return this;var l=Object.keys(a||{}).map(function(c){if(c in o.template.prop)return function(){this.prop[c]=a[c]};switch(c){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[c]=a[c]}}},this);return this.then(function(){return this.thenList(l)})},o.prototype.get=function(a,l){return this.then(function(){var c=a in o.template.prop?this.prop[a]:this.opt[a];return l?l(c):c})},o.prototype.setMargin=function(a){return this.then(function(){switch(r(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},o.prototype.setPageSize=function(a){function l(c,d){return Math.floor(c*d/72*96)}return this.then(function(){(a=a||Je.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:l(a.inner.width,a.k),height:l(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},o.prototype.setProgress=function(a,l,c,d){return a!=null&&(this.progress.val=a),l!=null&&(this.progress.state=l),c!=null&&(this.progress.n=c),d!=null&&(this.progress.stack=d),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(a,l,c,d){return this.setProgress(a?this.progress.val+a:null,l||null,c?this.progress.n+c:null,d?this.progress.stack.concat(d):null)},o.prototype.then=function(a,l){var c=this;return this.thenCore(a,l,function(d,p){return c.updateProgress(null,null,1,[d]),Promise.prototype.then.call(this,function(m){return c.updateProgress(null,d),m}).then(d,p).then(function(m){return c.updateProgress(1),m})})},o.prototype.thenCore=function(a,l,c){c=c||Promise.prototype.then;var d=this;a&&(a=a.bind(d)),l&&(l=l.bind(d));var p=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?d:o.convert(Object.assign({},d),Promise.prototype),m=c.call(p,a,l);return o.convert(m,d.__proto__)},o.prototype.thenExternal=function(a,l){return Promise.prototype.then.call(this,a,l)},o.prototype.thenList=function(a){var l=this;return a.forEach(function(c){l=l.thenCore(c)}),l},o.prototype.catch=function(a){a&&(a=a.bind(this));var l=Promise.prototype.catch.call(this,a);return o.convert(l,this)},o.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},o.prototype.error=function(a){return this.then(function(){throw new Error(a)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,Je.getPageSize=function(a,l,c){if(qt(a)==="object"){var d=a;a=d.orientation,l=d.unit||l,c=d.format||c}l=l||"mm",c=c||"a4",a=(""+(a||"P")).toLowerCase();var p,m=(""+c).toLowerCase(),h={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(l){case"pt":p=1;break;case"mm":p=72/25.4;break;case"cm":p=72/2.54;break;case"in":p=72;break;case"px":p=.75;break;case"pc":case"em":p=12;break;case"ex":p=6;break;default:throw"Invalid unit: "+l}var y,w=0,x=0;if(h.hasOwnProperty(m))w=h[m][1]/p,x=h[m][0]/p;else try{w=c[1],x=c[0]}catch{throw new Error("Invalid format: "+c)}if(a==="p"||a==="portrait")a="p",x>w&&(y=x,x=w,w=y);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",w>x&&(y=x,x=w,w=y)}return{width:x,height:w,unit:l,k:p,orientation:a}},e.html=function(a,l){(l=l||{}).callback=l.callback||function(){},l.html2canvas=l.html2canvas||{},l.html2canvas.canvas=l.html2canvas.canvas||this.canvas,l.jsPDF=l.jsPDF||this,l.fontFaces=l.fontFaces?l.fontFaces.map(s1):null;var c=new o(l);return l.worker?c:c.from(a).doCallback()}}(Je.API),Je.API.addJS=function(e){var t,n,r=function(i){for(var s="",o=0;o<i.length;o++){var a=i[o];if(a==="("||a===")"){for(var l=0,c=o-1;c>=0&&i[c]==="\\";c--)l++;s+=l%2==0?"\\"+a:a}else s+=a}return s}(e);return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&n!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var n=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=n.outline.render().split(/\r\n/),s=0;s<i.length;s++){var o=i[s],a=r.exec(o);if(a!=null){var l=a[1];n.internal.newObjectDeferredBegin(l,!1)}n.internal.write(o)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,d=[];for(s=0;s<c;s++){var p=n.internal.newObject();d.push(p);var m=n.internal.getPageInfo(s+1);n.internal.write("<< /D["+m.objId+" 0 R /XYZ null null null]>> endobj")}var h=n.internal.newObject();for(n.internal.write("<< /Names [ "),s=0;s<d.length;s++)n.internal.write("(page_"+(s+1)+")"+d[s]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+h+" 0 R"),n.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var n=this;n.outline.root.children.length>0&&(n.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&n.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(r,i,s){var o={title:i,options:s,children:[]};return r==null&&(r=this.root),r.children.push(o),o},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(r){r.id=n.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},n.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},n.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s<r.children.length;s++){var o=r.children[s];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(r)),s>0&&this.line("/Prev "+this.makeRef(r.children[s-1])),s<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[s+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var a=this.count=this.count_r({count:0},o);if(a>0&&this.line("/Count "+a),o.options&&o.options.pageNumber){var l=n.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var c=0;c<r.children.length;c++)this.renderItems(r.children[c])},n.outline.line=function(r){this.ctx.val+=r+`\r 324`},n.outline.makeRef=function(r){return r.id+" 0 R"},n.outline.makeString=function(r){return"("+n.internal.pdfEscape(r)+")"},n.outline.objStart=function(r){this.ctx.val+=`\r 325`+r.id+` 0 obj\r 326<<\r 327`},n.outline.objEnd=function(){this.ctx.val+=`>> \r 328endobj\r 329`},n.outline.count_r=function(r,i){for(var s=0;s<i.children.length;s++)r.count++,this.count_r(r,i.children[s]);return r.count}}])}(Je.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,r,i,s,o,a){var l,c=this.decode.DCT_DECODE,d=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=o||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,l=function(p){for(var m,h=256*p.charCodeAt(4)+p.charCodeAt(5),y=p.length,w={width:0,height:0,numcomponents:1},x=4;x<y;x+=2){if(x+=h,t.indexOf(p.charCodeAt(x+1))!==-1){m=256*p.charCodeAt(x+5)+p.charCodeAt(x+6),w={width:256*p.charCodeAt(x+7)+p.charCodeAt(x+8),height:m,numcomponents:p.charCodeAt(x+9)};break}h=256*p.charCodeAt(x+2)+p.charCodeAt(x+3)}return w}(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),l.numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}d={data:n,width:l.width,height:l.height,colorSpace:a,bitsPerComponent:8,filter:c,index:r,alias:i}}return d}}(Je.API),Je.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,s=RD(e,{checkCrc:!0}),o=s.width,a=s.height,l=s.channels,c=s.palette,d=s.depth;i=c&&l===1?function(B){for(var R=B.width,X=B.height,L=B.data,I=B.palette,J=B.depth,q=!1,se=[],ae=[],le=void 0,Y=!1,Z=0,he=0;he<I.length;he++){var fe=Pb(I[he],4),C=fe[0],U=fe[1],K=fe[2],Q=fe[3];se.push(C,U,K),Q!=null&&(Q===0?(Z++,ae.length<1&&ae.push(he)):Q<255&&(Y=!0))}if(Y||Z>1){q=!0,ae=void 0;var ne=R*X;le=new Uint8Array(ne);for(var re=new DataView(L.buffer),pe=0;pe<ne;pe++){var me=a1(re,pe,J),ve=Pb(I[me],4)[3];le[pe]=ve}}else Z===0&&(ae=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:q?8:void 0,colorBytes:L,alphaBytes:le,needSMask:q,palette:se,mask:ae}}(s):l===2||l===4?function(B){for(var R=B.data,X=B.width,L=B.height,I=B.channels,J=B.depth,q=I===2?"DeviceGray":"DeviceRGB",se=I-1,ae=X*L,le=se,Y=ae*le,Z=1*ae,he=Math.ceil(Y*J/8),fe=Math.ceil(Z*J/8),C=new Uint8Array(he),U=new Uint8Array(fe),K=new DataView(R.buffer),Q=new DataView(C.buffer),ne=new DataView(U.buffer),re=!1,pe=0;pe<ae;pe++){for(var me=pe*I,ve=0;ve<le;ve++)q_(Q,a1(K,me+ve,J),pe*le+ve,J);var Ae=a1(K,me+le,J);Ae<(1<<J)-1&&(re=!0),q_(ne,Ae,1*pe,J)}return{colorSpace:q,colorsPerPixel:se,sMaskBitsPerComponent:re?J:void 0,colorBytes:C,alphaBytes:U,needSMask:re}}(s):function(B){var R=B.data,X=B.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:X,colorsPerPixel:X==="DeviceGray"?1:3,colorBytes:R instanceof Uint16Array?function(L){for(var I=L.length,J=new Uint8Array(2*I),q=new DataView(J.buffer,J.byteOffset,J.byteLength),se=0;se<I;se++)q.setUint16(2*se,L[se],!1);return J}(R):R,needSMask:!1}}(s);var p,m,h,y=i,w=y.colorSpace,x=y.colorsPerPixel,v=y.sMaskBitsPerComponent,_=y.colorBytes,S=y.alphaBytes,A=y.needSMask,O=y.palette,$=y.mask,H=null;return r!==Je.API.image_compression.NONE&&typeof Cv=="function"?(H=function(B){var R;switch(B){case Je.API.image_compression.FAST:R=11;break;case Je.API.image_compression.MEDIUM:R=13;break;case Je.API.image_compression.SLOW:R=14;break;default:R=12}return R}(r),p=this.decode.FLATE_DECODE,m="/Predictor ".concat(H," /Colors ").concat(x," /BitsPerComponent ").concat(d," /Columns ").concat(o),e=M_(_,Math.ceil(o*x*d/8),x,d,r),A&&(h=M_(S,Math.ceil(o*v/8),1,v,r))):(p=void 0,m=void 0,e=_,A&&(h=S)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:n,data:e,index:t,filter:p,decodeParameters:m,transparency:$,palette:O,sMask:h,predictor:H,width:o,height:a,bitsPerComponent:d,sMaskBitsPerComponent:v,colorSpace:w}}},function(e){e.processGIF89A=function(t,n,r,i){var s=new QD(t),o=s.width,a=s.height,l=[];s.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:a},d=new l1(100).encode(c,100);return e.processJPEG.call(this,d,n,r,i)},e.processGIF87A=e.processGIF89A}(Je.API),qi.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:r,blue:n,quad:s}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},qi.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(n){Kt.log("bit decode error:"+n)}},qi.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var s=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*i*4,a=0;a<8&&8*i+a<this.width;a++){var l=this.palette[s>>7-a&1];this.data[o+4*a]=l.blue,this.data[o+4*a+1]=l.green,this.data[o+4*a+2]=l.red,this.data[o+4*a+3]=255}n!==0&&(this.pos+=4-n)}},qi.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var s=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,a=s>>4,l=15&s,c=this.palette[a];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},qi.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+4*r;if(i<this.palette.length){var o=this.palette[i];this.data[s]=o.red,this.data[s+1]=o.green,this.data[s+2]=o.blue,this.data[s+3]=255}else this.data[s]=255,this.data[s+1]=255,this.data[s+2]=255,this.data[s+3]=255}e!==0&&(this.pos+=4-e)}},qi.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(s&t)/t*255|0,a=(s>>5&t)/t*255|0,l=(s>>10&t)/t*255|0,c=s>>15?255:0,d=r*this.width*4+4*i;this.data[d]=l,this.data[d+1]=a,this.data[d+2]=o,this.data[d+3]=c}this.pos+=e}},qi.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,s=0;s<this.width;s++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&t)/t*255|0,l=(o>>5&n)/n*255|0,c=(o>>11)/t*255|0,d=i*this.width*4+4*s;this.data[d]=c,this.data[d+1]=l,this.data[d+2]=a,this.data[d+3]=255}this.pos+=e}},qi.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*n;this.data[o]=s,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},qi.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;this.data[a]=s,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=o}},qi.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,r,i){var s=new qi(t,!1),o=s.width,a=s.height,l={data:s.getData(),width:o,height:a},c=new l1(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}}(Je.API),W_.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,r,i){var s=new W_(t),o=s.width,a=s.height,l={data:s.getData(),width:o,height:a},c=new l1(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}}(Je.API),Je.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,s=new Uint8Array(i/4*3),o=new Uint8Array(i/4),a=0,l=0,c=0;c<i;c+=4){var d=r[c],p=r[c+1],m=r[c+2],h=r[c+3];s[a++]=d,s[a++]=p,s[a++]=m,o[l++]=h}var y=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:y,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Je.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canad
329a)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},nc=Je.API,ip=nc.getCharWidthsArray=function(e,t){var n,r,i=(t=t||{}).font||this.internal.getFont(),s=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),a=t.widths?t.widths:i.metadata.Unicode.widths,l=a.fof?a.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,d=c.fof?c.fof:1,p=t.doKerning!==!1,m=0,h=e.length,y=0,w=a[0]||l,x=[];for(n=0;n<h;n++)r=e.charCodeAt(n),typeof i.metadata.widthOfString=="function"?x.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+o*(1e3/s)||0)/1e3):(m=p&&qt(c[r])==="object"&&!isNaN(parseInt(c[r][y],10))?c[r][y]/d:0,x.push((a[r]||w)/l+m)),y=r;return x},j_=nc.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return nc.processArabic&&(e=nc.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,n,i)/n:ip.apply(this,arguments).reduce(function(s,o){return s+o},0)},F_=function(e,t,n,r){for(var i=[],s=0,o=e.length,a=0;s!==o&&a+t[s]<n;)a+=t[s],s++;i.push(e.slice(0,s));var l=s;for(a=0;s!==o;)a+t[s]>r&&(i.push(e.slice(l,s)),a=0,l=s),a+=t[s],s++;return l!==s&&i.push(e.slice(l,s)),i},D_=function(e,t,n){n||(n={});var r,i,s,o,a,l,c,d=[],p=[d],m=n.textIndent||0,h=0,y=0,w=e.split(" "),x=i
vendor: 3,048 bytes, lines 329-331
329p.apply(this,[" ",n])[0];if(l=n.lineIndent===-1?w[0].length+2:n.lineIndent||0){var v=Array(l).join(" "),_=[];w.map(function(A){(A=A.split(/\s*\n/)).length>1?_=_.concat(A.map(function(O,$){return($&&O.length?` 330`:"")+O})):_.push(A[0])}),w=_,l=j_.apply(this,[v,n])}for(s=0,o=w.length;s<o;s++){var S=0;if(r=w[s],l&&r[0]==` 331`&&(r=r.substr(1),S=1),m+h+(y=(i=ip.apply(this,[r,n])).reduce(function(A,O){return A+O},0))>t||S){if(y>t){for(a=F_.apply(this,[r,i,t-(m+h),t]),d.push(a.shift()),d=[a.pop()];a.length;)p.push([a.shift()]);y=i.slice(r.length-(d[0]?d[0].length:0)).reduce(function(A,O){return A+O},0)}else d=[r];p.push(d),m=y+l,h=x}else d.push(r),m+=h+y,h=x}return c=l?function(A,O){return(O?v:"")+A.join(" ")}:function(A){return A.join(" ")},p.map(c)},nc.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),s=(function(d){if(d.widths&&d.kerning)return{widths:d.widths,kerning:d.kerning};var p=this.internal.getFont(d.fontName,d.fontStyle),m="Unicode";return p.metadata[m]?{widths:p.metadata[m].widths||{0:1},kerning:p.metadata[m].kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;s.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,s.lineIndent=n.lineIndent;var a,l,c=[];for(a=0,l=r.length;a<l;a++)c=c.concat(D_.apply(this,[r[a],o,s]));return c},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},s=0;s<16;s++)r[n[s]]=t[s],i[t[s]]=n[s];var o=function(m){return"0x"+parseInt(m,10).toString(16)},a=e.__fontmetrics__.compress=function(m){var h,y,w,x,v=["{"];for(var _ in m){if(h=m[_],isNaN(parseInt(_,10))?y="'"+_+"'":(_=parseInt(_,10),y=(y=o(_).slice(2)).slice(0,-1)+i[y.slice(-1)]),typeof h=="number")h<0?(w=o(h).slice(3),x="-"):(w=o(h).slice(2),x=""),w=x+w.slice(0,-1)+i[w.slice(-1)];else{if(qt(h)!=="object")throw new Error("Don't know what to do with value type "+qt(h)+".");w=a(h)}v.push(y+w)}return v.push("}"),v.join("")},l=e.__fontmetrics__.uncompress=function(m){if(typeof m!="string")throw new Error("Invalid argument passed to uncompress.");for(var h,y,w,x,v={},_=1,S=v,A=[],O="",$="",H=m.length-1,B=1;B<H;B+=1)(x=m[B])=="'"?h?(w=h.join(""),h=void 0):h=[]:h?h.push(x):x=="{"?(A.push([S,w]),S={},w=void 0):x=="}"?((y=A.pop())[0][y[1]]=S,w=void 0,S=y[0]):x=="-"?_=-1:w===void 0?r.hasOwnProperty(x)?(O+=r[x],w=parseInt(O,16)*_,_=1,O=""):O+=x:r.hasOwnProperty(x)?($+=r[x],S[w]=parseInt($,16)*_,_=1,w=void 0,$=""):$+=x;return v},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},p
vendor: 14,727 bytes, line 331
331={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(
vendor: 44,946 bytes, lines 331-359
331m){var h=m.font,y=p.Unicode[h.postScriptName];y&&(h.metadata.Unicode={},h.metadata.Unicode.widths=y.widths,h.metadata.Unicode.kerning=y.kerning);var w=d.Unicode[h.postScriptName];w&&(h.metadata.Unicode.encoding=w,h.encoding=w.codePages[0])}])}(Je.API),function(e){var t=function(n){for(var r=n.length,i=new Uint8Array(r),s=0;s<r;s++)i[s]=n.charCodeAt(s);return i};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,s=n.instance;if(!i.isStandardFont){if(s===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=s.existsFileInVFS(i.postScriptName)===!1?s.loadFile(i.postScriptName):s.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,a){a=/^\x00\x01\x00\x00/.test(a)?t(a):t(Rp(a)),o.metadata=e.API.TTFFont.open(a),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,r)}}])}(Je),Je.API.addSvgAsImage=function(e,t,n,r,i,s,o,a){if(isNaN(t)||isNaN(n))throw Kt.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw Kt.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=i;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return(ot.canvg?Promise.resolve(ot.canvg):jg(()=>import("./index.es-eLqHXCcB.js"),[])).catch(function(m){return Promise.reject(new Error("Could not load canvg: "+m))}).then(function(m){return m.default?m.default:m}).then(function(m){return m.fromString(c,e,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(m){return m.render(d)}).then(function(){p.addImage(l.toDataURL("image/jpeg",1),t,n,r,i,o,a)})},Je.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},Je.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,i,s,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(o),l=[],c=0,d=0,p=0;function m(y,w){var x,v=!1;for(x=0;x<y.length;x+=1)y[x]===w&&(v=!0);return v}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var h=a.length;for(p=0;p<h;p+=1)n[a[p]].value=n[a[p]].defaultValue,n[a[p]].explicitSet=!1}if(qt(e)==="object"){for(i in e)if(s=e[i],m(a,i)&&s!==void 0){if(n[i].type==="boolean"&&typeof s=="boolean")n[i].value=s;else if(n[i].type==="name"&&m(n[i].valueSet,s))n[i].value=s;else if(n[i].type==="integer"&&Number.isInteger(s))n[i].value=s;else if(n[i].type==="array"){for(c=0;c<s.length;c+=1)if(r=!0,s[c].length===1&&typeof s[c][0]=="number")l.push(String(s[c]-1));else if(s[c].length>1){for(d=0;d<s[c].length;d+=1)typeof s[c][d]!="number"&&(r=!1);r===!0&&l.push([s[c][0]-1,s[c][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var y,w=[];for(y in n)n[y].explicitSet===!0&&(n[y].type==="name"?w.push("/"+y+" /"+n[y].value):w.push("/"+y+" "+n[y].value));w.length!==0&&this.internal.write(`/ViewerPreferences 332<< 333`+w.join(` 334`)+` 335>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},Je.API.addMetadata=function(e,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceUri:t??"http://jspdf.default.namespaceuri/",rawXml:typeof t=="boolean"&&t},this.internal.events.subscribe("putCatalog",tM),this.internal.events.subscribe("postPutResources",eM)),this},function(e){var t=e.API,n=t.pdfEscape16=function(s,o){for(var a,l=o.metadata.Unicode.widths,c=["","0","00","000","0000"],d=[""],p=0,m=s.length;p<m;++p){if(a=o.metadata.characterToGlyph(s.charCodeAt(p)),o.metadata.glyIdsUsed.push(a),o.metadata.toUnicode[a]=s.charCodeAt(p),l.indexOf(a)==-1&&(l.push(a),l.push([parseInt(o.metadata.widthOfGlyph(a),10)])),a=="0")return d.join("");a=a.toString(16),d.push(c[4-a.length],a)}return d.join("")},r=function(s){var o,a,l,c,d,p,m;for(d=`/CIDInit /ProcSet findresource begin 33612 dict begin 337begincmap 338/CIDSystemInfo << 339 /Registry (Adobe) 340 /Ordering (UCS) 341 /Supplement 0 342>> def 343/CMapName /Adobe-Identity-UCS def 344/CMapType 2 def 3451 begincodespacerange 346<0000><ffff> 347endcodespacerange`,l=[],p=0,m=(a=Object.keys(s).sort(function(h,y){return h-y})).length;p<m;p++)o=a[p],l.length>=100&&(d+=` 348`+l.length+` beginbfchar 349`+l.join(` 350`)+` 351endbfchar`,l=[]),s[o]!==void 0&&s[o]!==null&&typeof s[o].toString=="function"&&(c=("0000"+s[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),l.push("<"+o+"><"+c+">"));return l.length&&(d+=` 352`+l.length+` beginbfchar 353`+l.join(` 354`)+` 355endbfchar 356`),d+`endcmap 357CMapName currentdict /CMap defineresource pop 358end 359end`};t.events.push(["putFont",function(s){(function(o){var a=o.font,l=o.out,c=o.newObject,d=o.putStream;if(a.metadata instanceof e.API.TTFFont&&a.encoding==="Identity-H"){for(var p=a.metadata.Unicode.widths,m=a.metadata.subset.encode(a.metadata.glyIdsUsed,1),h="",y=0;y<m.length;y++)h+=String.fromCharCode(m[y]);var w=c();d({data:h,addLength1:!0,objectId:w}),l("endobj");var x=c();d({data:r(a.metadata.toUnicode),addLength1:!0,objectId:x}),l("endobj");var v=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+uc(a.fontName)),l("/FontFile2 "+w+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(a.metadata.bbox)),l("/Flags "+a.metadata.flags),l("/StemV "+a.metadata.stemV),l("/ItalicAngle "+a.metadata.italicAngle),l("/Ascent "+a.metadata.ascender),l("/Descent "+a.metadata.decender),l("/CapHeight "+a.metadata.capHeight),l(">>"),l("endobj");var _=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+uc(a.fontName)),l("/FontDescriptor "+v+" 0 R"),l("/W "+e.API.PDFObject.convert(p)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+a.encoding+")"),l(">>"),l(">>"),l("endobj"),a.objectNumber=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+x+" 0 R"),l("/BaseFont /"+uc(a.fontName)),l("/Encoding /"+a.encoding),l("/DescendantFonts ["+_+" 0 R]"),l(">>"),l("endobj"),a.isAlreadyPutted=!0}})(s)}]),t.events.push(["putFont",function(s){(function(o){var a=o.font,l=o.out,c=o.newObject,d=o.putStream;if(a.metadata instanceof e.API.TTFFont&&a.encoding==="WinAnsiEncoding"){for(var p=a.metadata.rawData,m="",h=0;h<p.length;h++)m+=String.fromCharCode(p[h]);var y=c();d({data:m,addLength1:!0,objectId:y}),l("endobj");var w=c();d({data:r(a.metadata.toUnicode),addLength1:!0,objectId:w}),l("endobj");var x=c();l("<<"),l("/Descent "+a.metadata.decender),l("/CapHeight "+a.metadata.capHeight),l("/StemV "+a.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+y+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(a.metadata.bbox)),l("/FontName /"+uc(a.fontName)),l("/ItalicAngle "+a.metadata.italicAngle),l("/Ascent "+a.metadata.ascender),l(">>"),l("endobj"),a.objectNumber=c();for(var v=0;v<a.metadata.hmtx.widths.length;v++)a.metadata.hmtx.widths[v]=parseInt(a.metadata.hmtx.widths[v]*(1e3/a.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+w+" 0 R/BaseFont/"+uc(a.fontName)+"/FontDescriptor "+x+" 0 R/Encoding/"+a.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(a.metadata.hmtx.widths)+">>"),l("endobj"),a.isAlreadyPutted=!0}})(s)}]);var i=function(s){var o,a=s.text||"",l=s.x,c=s.y,d=s.options||{},p=s.mutex||{},m=p.pdfEscape,h=p.activeFontKey,y=p.fonts,w=h,x="",v=0,_="",S=y[w].encoding;if(y[w].encoding!=="Identity-H")return{text:a,x:l,y:c,options:d,mutex:p};for(_=a,w=h,Array.isArray(a)&&(_=a[0]),v=0;v<_.length;v+=1)y[w].metadata.hasOwnProperty("cmap")&&(o=y[w].metadata.cmap.unicode.codeMap[_[v].charCodeAt(0)]),o||_[v].charCodeAt(0)<256&&y[w].metadata.hasOwnProperty("Unicode")?x+=_[v]:x+="";var A="";return parseInt(w.slice(1))<14||S==="WinAnsiEncoding"?A=m(x,w).split("").map(function(O){return O.charCodeAt(0).toString(16)}).join(""):S==="Identity-H"&&(A=n(x,y[w])),p.isHex=!0,{text:A,x:l,y:c,options:d,mutex:p}};t.events.push(["postProcessText",function(s){var o=s.text||"",a=[],l={text:o,x:s.x,y:s.y,options:s.options,mutex:s.mutex};if(Array.isArray(o)){var c=0;for(c=0;c<o.length;c+=1)Array.isArray(o[c])&&o[c].length===3?a.push([i(Object.assign({},l,{text:o[c][0]})).text,o[c][1],o[c][2]]):a.push(i(Object.assign({},l,{text:o[c]})).text);s.text=a}else s.text=i(Object.assign({},l,{text:o})).text}])}(Je),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0},e.addFileToVFS=function(n,r){return t.call(this),this.internal.vFS[n]=r,this},e.getFileFromVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}}(Je.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var i,s,o,a,l,c,d,p=t,m=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],y={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},w={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},x=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","â¹","âº","â¹","â ","â","â ","â½","â¾","â½","â","â","â","â¤","â¥","â¤","â©","âª","â©","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","﹤","ï¹¥","﹤"],v=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),_=!1,S=0;this.__bidiEngine__={};var A=function(L){var I=L.charCodeAt(),J=I>>8,q=w[J];return q!==void 0?p[256*q+(255&I)]:J===252||J===253?"AL":v.test(J)?"L":J===8?"R":"N"},O=function(L){for(var I,J=0;J<L.length;J++){if((I=A(L.charAt(J)))==="L")return!1;if(I==="R")return!0}return!1},$=function(L,I,J,q){var se,ae,le,Y,Z=I[q];switch(Z){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":_=!1;break;case"N":case"AN":break;case"EN":_&&(Z="AN");break;case"AL":_=!0,Z="R";break;case"WS":case"BN":Z="N";break;case"CS":q<1||q+1>=I.length||(se=J[q-1])!=="EN"&&se!=="AN"||(ae=I[q+1])!=="EN"&&ae!=="AN"?Z="N":_&&(ae="AN"),Z=ae===se?ae:"N";break;case"ES":Z=(se=q>0?J[q-1]:"B")==="EN"&&q+1<I.length&&I[q+1]==="EN"?"EN":"N";break;case"ET":if(q>0&&J[q-1]==="EN"){Z="EN";break}if(_){Z="N";break}for(le=q+1,Y=I.length;le<Y&&I[le]==="ET";)le++;Z=le<Y&&I[le]==="EN"?"EN":"N";break;case"NSM":if(o&&!a){for(Y=I.length,le=q+1;le<Y&&I[le]==="NSM";)le++;if(le<Y){var he=L[q],fe=he>=1425&&he<=2303||he===64286;if(se=I[le],fe&&(se==="R"||se==="AL")){Z="R";break}}}Z=q<1||(se=I[q-1])==="B"?"N":J[q-1];break;case"B":_=!1,i=!0,Z=S;break;case"S":s=!0,Z="N"}return Z},H=function(L,I,J){var q=L.split("");return J&&B(q,J,{hiLevel:S}),q.reverse(),I&&I.reverse(),q.join("")},B=function(L,I,J){var q,se,ae,le,Y,Z=-1,he=L.length,fe=0,C=[],U=S?h:m,K=[];for(_=!1,i=!1,s=!1,se=0;se<he;se++)K[se]=A(L[se]);for(ae=0;ae<he;ae++){if(Y=fe,C[ae]=$(L,K,C,ae),q=240&(fe=U[Y][y[C[ae]]]),fe&=15,I[ae]=le=U[fe][5],q>0)if(q===16){for(se=Z;se<ae;se++)I[se]=1;Z=-1}else Z=-1;if(U[fe][6])Z===-1&&(Z=ae);else if(Z>-1){for(se=Z;se<ae;se++)I[se]=le;Z=-1}K[ae]==="B"&&(I[ae]=0),J.hiLevel|=le}s&&function(Q,ne,re){for(var pe=0;pe<re;pe++)if(Q[pe]==="S"){ne[pe]=S;for(var me=pe-1;me>=0&&Q[me]==="WS";me--)ne[me]=S}}(K,I,he)},R=function(L,I,J,q,se){if(!(se.hiLevel<L)){if(L===1&&S===1&&!i)return I.reverse(),void(J&&J.reverse());for(var ae,le,Y,Z,he=I.length,fe=0;fe<he;){if(q[fe]>=L){for(Y=fe+1;Y<he&&q[Y]>=L;)Y++;for(Z=fe,le=Y-1;Z<le;Z++,le--)ae=I[Z],I[Z]=I[le],I[le]=ae,J&&(ae=J[Z],J[Z]=J[le],J[le]=ae);fe=Y}fe++}}},X=function(L,I,J){var q=L.split(""),se={hiLevel:S};return J||(J=[]),B(q,J,se),function(ae,le,Y){if(Y.hiLevel!==0&&d)for(var Z,he=0;he<ae.length;he++)le[he]===1&&(Z=x.indexOf(ae[he]))>=0&&(ae[he]=x[Z+1])}(q,J,se),R(2,q,I,J,se),R(1,q,I,J,se),q.join("")};return this.__bidiEngine__.doBidiReorder=function(L,I,J){if(function(se,ae){if(ae)for(var le=0;le<se.length;le++)ae[le]=le;a===void 0&&(a=O(se)),c===void 0&&(c=O(se))}(L,I),o||!l||c)if(o&&l&&a^c)S=a?1:0,L=H(L,I,J);else if(!o&&l&&c)S=a?1:0,L=X(L,I,J),L=H(L,I);else if(!o||a||l||c){if(o&&!l&&a^c)L=H(L,I),a?(S=0,L=X(L,I,J)):(S=1,L=X(L,I,J),L=H(L,I));else if(o&&a&&!l&&c)S=1,L=X(L,I,J),L=H(L,I);else if(!o&&!l&&a^c){var q=d;a?(S=1,L=X(L,I,J),S=0,d=!1,L=X(L,I,J),d=q):(S=0,L=X(L,I,J),L=H(L,I),S=1,d=!1,L=X(L,I,J),d=q,L=H(L,I))}}else S=0,L=X(L,I,J);else S=a?1:0,L=X(L,I,J);return L},this.__bidiEngine__.setOptions=function(L){L&&(o=L.isInputVisual,l=L.isOutputVisual,a=L.isInputRtl,c=L.isOutputRtl,d=L.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(r){var i=r.text;r.x,r.y;var s=r.options||{};r.mutex,s.lang;var o=[];if(s.isInputVisual=typeof s.isInputVisual!="boolean"||s.isInputVisual,n.setOptions(s),Object.prototype.toString.call(i)==="[object Array]"){var a=0;for(o=[],a=0;a<i.length;a+=1)Object.prototype.toString.call(i[a])==="[object Array]"?o.push([n.doBidiReorder(i[a][0]),i[a][1],i[a][2]]):o.push([n.doBidiReorder(i[a])]);r.text=o}else r.text=n.doBidiReorder(i);n.setOptions({isInputVisual:!0})}])}(Je),Je.API.TTFFont=function(){function e(t){var n;if(this.rawData=t,n=this.contents=new Na(t),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new gM(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new nM(this.contents),this.head=new iM(this),this.name=new cM(this),this.cmap=new CE(this),this.toUnicode={},this.hhea=new sM(this),this.maxp=new uM(this),this.hmtx=new dM(this),this.post=new aM(this),this.os2=new oM(this),this.loca=new mM(this),this.glyf=new hM(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,n,r,i,s;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,a,l,c;for(c=[],o=0,a=(l=this.bbox).length;o<a;o++)t=l[o],c.push(Math.round(t*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(r=255&(i=this.post.italic_angle),32768&(n=i>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(s=this.familyClass)===1||s===2||s===3||s===4||s===5||s===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var n;return((n=this.cmap.unicode)!=null?n.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*n},e.prototype.widthOfString=function(t,n,r){var i,s,o,a;for(o=0,s=0,a=(t=""+t).length;0<=a?s<a:s>a;s=0<=a?++s:--s)i=t.charCodeAt(s),o+=this.widthOfGlyph(this.characterToGlyph(i))+r*(1e3/n)||0;return o*(n/1e3)},e.prototype.lineHeight=function(t,n){var r;return n==null&&(n=!1),r=n?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},e}();var as,Na=function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var n,r;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r[n]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(t){var n,r,i;for(i=[],n=0,r=t.length;0<=r?n<r:n>r;n=0<=r?++n:--n)i.push(this.writeByte(t.charCodeAt(n)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,n,r,i,s,o,a,l;return t=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),s=this.readByte(),o=this.readByte(),a=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^n)+1099511627776*(255^r)+4294967296*(255^i)+16777216*(255^s)+65536*(255^o)+256*(255^a)+(255^l)+1):72057594037927940*t+281474976710656*n+1099511627776*r+4294967296*i+16777216*s+65536*o+256*a+l},e.prototype.writeLongLong=function(t){var n,r;return n=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var n,r;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n.push(this.readByte());return n},e.prototype.write=function(t){var n,r,i,s;for(s=[],r=0,i=t.length;r<i;r++)n=t[r],s.push(this.writeByte(n));return s},e}(),nM=function(){var e;function t(n){var r,i,s;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},i=0,s=this.tableCount;0<=s?i<s:i>s;i=0<=s?++i:--i)r={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(n){var r,i,s,o,a,l,c,d,p,m,h,y,w;for(w in h=Object.keys(n).length,l=Math.log(2),p=16*Math.floor(Math.log(h)/l),o=Math.floor(p/l),d=16*h-p,(i=new Na).writeInt(this.scalarType),i.writeShort(h),i.writeShort(p),i.writeShort(o),i.writeShort(d),s=16*h,c=i.pos+s,a=null,y=[],n)for(m=n[w],i.writeString(w),i.writeInt(e(m)),i.writeInt(c),i.writeInt(m.length),y=y.concat(m),w==="head"&&(a=c),c+=m.length;c%4;)y.push(0),c++;return i.write(y),r=2981146554-e(i.data),i.pos=a+8,i.writeUInt32(r),i.data},e=function(n){var r,i,s,o;for(n=LE.call(n);n.length%4;)n.push(0);for(s=new Na(n),i=0,r=0,o=n.length;r<o;r=r+=4)i+=s.readUInt32();return 4294967295&i},t}(),rM={}.hasOwnProperty,Us=function(e,t){for(var n in t)rM.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};as=function(){function e(t){var n;this.file=t,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var iM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,as),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var n;return(n=new Na).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(t),n.writeShort(this.glyphDataFormat),n.data},e}(),V_=function(){function e(t,n){var r,i,s,o,a,l,c,d,p,m,h,y,w,x,v,_,S;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=n+t.readInt(),p=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=t.readByte();break;case 4:for(h=t.readUInt16(),m=h/2,t.pos+=6,s=function(){var A,O;for(O=[],l=A=0;0<=m?A<m:A>m;l=0<=m?++A:--A)O.push(t.readUInt16());return O}(),t.pos+=2,w=function(){var A,O;for(O=[],l=A=0;0<=m?A<m:A>m;l=0<=m?++A:--A)O.push(t.readUInt16());return O}(),c=function(){var A,O;for(O=[],l=A=0;0<=m?A<m:A>m;l=0<=m?++A:--A)O.push(t.readUInt16());return O}(),d=function(){var A,O;for(O=[],l=A=0;0<=m?A<m:A>m;l=0<=m?++A:--A)O.push(t.readUInt16());return O}(),i=(this.length-t.pos+this.offset)/2,a=function(){var A,O;for(O=[],l=A=0;0<=i?A<i:A>i;l=0<=i?++A:--A)O.push(t.readUInt16());return O}(),l=v=0,S=s.length;v<S;l=++v)for(x=s[l],r=_=y=w[l];y<=x?_<=x:_>=x;r=y<=x?++_:--_)d[l]===0?o=r+c[l]:(o=a[d[l]/2+(r-y)-(m-l)]||0)!==0&&(o+=c[l]),this.codeMap[r]=65535&o}t.pos=p}return e.encode=function(t,n){var r,i,s,o,a,l,c,d,p,m,h,y,w,x,v,_,S,A,O,$,H,B,R,X,L,I,J,q,se,ae,le,Y,Z,he,fe,C,U,K,Q,ne,re,pe,me,ve,Ae,Re;switch(q=new Na,o=Object.keys(t).sort(function(Le,He){return Le-He}),n){case"macroman":for(w=0,x=function(){var Le=[];for(y=0;y<256;++y)Le.push(0);return Le}(),_={0:0},s={},se=0,Z=o.length;se<Z;se++)_[me=t[i=o[se]]]==null&&(_[me]=++w),s[i]={old:t[i],new:_[t[i]]},x[i]=_[t[i]];return q.writeUInt16(1),q.writeUInt16(0),q.writeUInt32(12),q.writeUInt16(0),q.writeUInt16(262),q.writeUInt16(0),q.write(x),{charMap:s,subtable:q.data,maxGlyphID:w+1};case"unicode":for(I=[],p=[],S=0,_={},r={},v=c=null,ae=0,he=o.length;ae<he;ae++)_[O=t[i=o[ae]]]==null&&(_[O]=++S),r[i]={old:O,new:_[O]},a=_[O]-i,v!=null&&a===c||(v&&p.push(v),I.push(i),c=a),v=i;for(v&&p.push(v),p.push(65535),I.push(65535),X=2*(R=I.length),B=2*Math.pow(Math.log(R)/Math.LN2,2),m=Math.log(B/2)/Math.LN2,H=2*R-B,l=[],$=[],h=[],y=le=0,fe=I.length;le<fe;y=++le){if(L=I[y],d=p[y],L===65535){l.push(0),$.push(0);break}if(L-(J=r[L].new)>=32768)for(l.push(0),$.push(2*(h.length+R-y)),i=Y=L;L<=d?Y<=d:Y>=d;i=L<=d?++Y:--Y)h.push(r[i].new);else l.push(J-L),$.push(0)}for(q.writeUInt16(3),q.writeUInt16(1),q.writeUInt32(12),q.writeUInt16(4),q.writeUInt16(16+8*R+2*h.length),q.writeUInt16(0),q.writeUInt16(X),q.writeUInt16(B),q.writeUInt16(m),q.writeUInt16(H),re=0,C=p.length;re<C;re++)i=p[re],q.writeUInt16(i);for(q.writeUInt16(0),pe=0,U=I.length;pe<U;pe++)i=I[pe],q.writeUInt16(i);for(ve=0,K=l.length;ve<K;ve++)a=l[ve],q.writeUInt16(a);for(Ae=0,Q=$.length;Ae<Q;Ae++)A=$[Ae],q.writeUInt16(A);for(Re=0,ne=h.length;Re<ne;Re++)w=h[Re],q.writeUInt16(w);return{charMap:r,subtable:q.data,maxGlyphID:S+1}}},e}(),CE=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,as),e.prototype.tag="cmap",e.prototype.parse=function(t){var n,r,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=i?r<i:r>i;r=0<=i?++r:--r)n=new V_(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(t,n){var r,i;return n==null&&(n="macroman"),r=V_.encode(t,n),(i=new Na).writeUInt16(0),i.writeUInt16(1),r.table=i.data.concat(r.subtable),r},e}(),sM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,as),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),oM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,as),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var n,r;for(r=[],n=0;n<10;++n)r.push(t.readByte());return r}(),this.charRange=function(){var n,r;for(r=[],n=0;n<4;++n)r.push(t.readInt());return r}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var n,r;for(r=[],n=0;n<2;n=++n)r.push(t.readInt());return r}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),aM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,as),e.prototype.tag="post",e.prototype.parse=function(t){var n,r,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var s;for(r=t.readUInt16(),this.glyphNameIndex=[],s=0;0<=r?s<r:s>r;s=0<=r?++s:--s)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)n=t.readByte(),i.push(this.names.push(t.readString(n)));return i;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=(function(){var o,a,l;for(l=[],s=o=0,a=this.file.maxp.numGlyphs;0<=a?o<a:o>a;s=0<=a?++o:--o)l.push(t.readUInt32());return l}).call(this)}},e}(),lM=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},cM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,as),e.prototype.tag="name",e.prototype.parse=function(t){var n,r,i,s,o,a,l,c,d,p,m;for(t.pos=this.offset,t.readShort(),n=t.readShort(),a=t.readShort(),r=[],s=0;0<=n?s<n:s>n;s=0<=n?++s:--s)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+a+t.readShort()});for(l={},s=d=0,p=r.length;d<p;s=++d)i=r[s],t.pos=i.offset,c=t.readString(i.length),o=new lM(c,i),l[m=i.nameID]==null&&(l[m]=[]),l[i.nameID].push(o);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},e}(),uM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,as),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),dM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,as),e.prototype.tag="hmtx",e.prototype.parse=function(t){var n,r,i,s,o,a,l;for(t.pos=this.offset,this.metrics=[],n=0,a=this.file.hhea.numberOfMetrics;0<=a?n<a:n>a;n=0<=a?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var c,d;for(d=[],n=c=0;0<=i?c<i:c>i;n=0<=i?++c:--c)d.push(t.readInt16());return d}(),this.widths=(function(){var c,d,p,m;for(m=[],c=0,d=(p=this.metrics).length;c<d;c++)s=p[c],m.push(s.advance);return m}).call(this),r=this.widths[this.widths.length-1],l=[],n=o=0;0<=i?o<i:o>i;n=0<=i?++o:--o)l.push(this.widths.push(r));return l},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),LE=[].slice,hM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,as),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,r,i,s,o,a,l,c,d,p;return t in this.cache?this.cache[t]:(s=this.file.loca,n=this.file.contents,r=s.indexOf(t),(i=s.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+r,o=(a=new Na(n.read(i))).readShort(),c=a.readShort(),p=a.readShort(),l=a.readShort(),d=a.readShort(),this.cache[t]=o===-1?new pM(a,c,p,l,d):new fM(a,o,c,p,l,d),this.cache[t]))},e.prototype.encode=function(t,n,r){var i,s,o,a,l;for(o=[],s=[],a=0,l=n.length;a<l;a++)i=t[n[a]],s.push(o.length),i&&(o=o.concat(i.encode(r)));return s.push(o.length),{table:o,offsets:s}},e}(),fM=function(){function e(t,n,r,i,s,o){this.raw=t,this.numberOfContours=n,this.xMin=r,this.yMin=i,this.xMax=s,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),pM=function(){function e(t,n,r,i,s){var o,a;for(this.raw=t,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=s,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;a=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&a;)o.pos+=1&a?4:2,128&a?o.pos+=8:64&a?o.pos+=4:8&a&&(o.pos+=2)}return e.prototype.encode=function(){var t,n,r;for(n=new Na(LE.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)n.pos=this.glyphOffsets[t];return n.data},e}(),mM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,as),e.prototype.tag="loca",e.prototype.parse=function(t){var n,r;return t.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var i,s;for(s=[],r=0,i=this.length;r<i;r+=2)s.push(2*t.readUInt16());return s}).call(this):(function(){var i,s;for(s=[],r=0,i=this.length;r<i;r+=4)s.push(t.readUInt32());return s}).call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]}
359,e.prototype.encode=function(t,n){for(var r=new Uint32Array(this.offsets.length),i=0,s=0,o=0;o<r.length;++o)if(r[o]=i,s<n.length&&n[s]==o){++s,r[o]=i;var a=this.offsets[o],l=this.offsets[o+1]-a;l>0&&(i+=l)}for(var c=new Array(4*r.length),d=0;d<r.length;++d)c[4*d+3]=255&r[d],c[4*d+2]=(65280&r[d])>>8,c[4*d+1]=(16711680&r[d])>>16,c[4*d]=(4278190080&r[d])>>24;return c},e}(),gM=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,n,r,i,s;for(n in i=this.font.cmap.tables[0].codeMap,t={},s=this.subset)r=s[n],t[n]=i[r];return t},e.prototype.glyphsFor=function(t){var n,r,i,s,o,a,l;for(i={},o=0,a=t.length;o<a;o++)i[s=t[o]]=this.font.glyf.glyphFor(s);for(s in n=[],i)(r=i[s])!=null&&r.compound&&n.push.apply(n,r.glyphIDs);if(n.length>0)for(s in l=this.glyphsFor(n))r=l[s],i[s]=r;return i},e.prototype.encode=function(t,n){var r,i,s,o,a,l,c,d,p,m,h,y,w,x,v;for(i in r=CE.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),h={0:0},v=r.charMap)h[(l=v[i]).old]=l.new;for(y in m=r.maxGlyphID,o)y in h||(h[y]=m++);return d=function(_){var S,A;for(S in A={},_)A[_[S]]=S;return A}(h),p=Object.keys(d).sort(function(_,S){return _-S}),w=function(){var _,S,A;for(A=[],_=0,S=p.length;_<S;_++)a=p[_],A.push(d[a]);return A}(),s=this.font.glyf.encode(o,w,h),c=this.font.loca.encode(s.offsets,w),x={cmap:this.font.cmap.raw(),glyf:s.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(n)},this.font.os2.exists&&(x["OS/2"]=this.font.os2.raw()),this.font.directory.encode(x)},e}();Je.API.PDFObject=function(){var e;function t(){}return e=function(n,r){return(Array(r+1).join("0")+n).slice(-r)},t.convert=function(n){var r,i,s,o;if(Array.isArray(n))return"["+function(){var a,l,c;for(c=[],a=0,l=n.length;a<l;a++)r=n[a],c.push(t.convert(r));return c}().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n!=null&&n.isString)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(i in s=["<<"],n)o=n[i],s.push("/"+i+" "+t.convert(o));return s.push(">>"),s.join(` 360`)}return""+n},t}();const vM="/assets/logo-captain-contrat-zJ8UKiuE.png",Cr="#1D3D5D",so="#43444C",Ka="#737482",sp="#ECF3FF",yM="#ef6c77",wM="https://www.captaincontrat.com/creer-entreprise",ud=e=>`${e.toLocaleString("fr-FR",{minimumFractionDigits:2,maximumFractionDigits:2}).replace(/[\u202F\u00A0]/g," ")} â¬`,bM=()=>new Intl.DateTimeFormat("fr-FR",{day:"2-digit",month:"2-digit",year:"numeric"}).format(new Date);function _M(e){return new Promise((t,n)=>{const r=new Image;r.crossOrigin="anonymous",r.onload=()=>{const i=document.createElement("canvas");i.width=r.naturalWidth,i.height=r.naturalHeight,i.getContext("2d").drawImage(r,0,0),t(i.toDataURL("image/png"))},r.onerror=n,r.src=e})}async function xM(e,t){const n=new Je({unit:"mm",format:"a4"}),r=210,i=20,s=r-2*i,o=e.filter(A=>A.category==="obligatoire"),a=e.filter(A=>A.category==="recommande"),l=e.filter(A=>A.category==="optionnel"),c=Td(o),d=["micro-entreprise","ei"].includes(t.toLowerCase().replace(/\s+/g,"-")),p=d?"59":"0",m=d?`Créer mon ${t} avec Captain Contrat`:"Créer ma société avec Captain Contrat",h=A=>A===0?"Gratuit":ud(A);let y=15;try{const A=await _M(vM);n.addImage(A,"PNG",i,y-6,30,18),y+=16}catch{n.setFont("helvetica","bold"),n.setFontSize(15),n.setTextColor(Cr),n.text("Captain Contrat",i,y),y+=10}y+=2,n.setFont("helvetica","bold"),n.setFontSize(20),n.setTextColor(Cr);const w=d?`Estimation du coût de création de votre ${t}`:"Estimation du coût de création de votre société";if(n.text(w,i,y),y+=7,n.setFont("helvetica","normal"),n.setFontSize(11),n.setTextColor(Ka),n.text(`Simulation réalisée le ${bM()}`,i,y),y+=6,n.setFontSize(11),n.setTextColor(so),n.text("Cette estimation présente les frais administratifs nécessaires pour créer votre entreprise en France.",i,y,{maxWidth:s}
360),y+=10,n.setFillColor(Cr),n.roundedRect(i,y,s,28,3,3,"F"),n.setFont("helvetica","normal"),n.setFontSize(10),n.setTextColor("#FFFFFF"),n.text("BUDGET ESTIMÃ",i+8,y+8),n.setFont("helvetica","bold"),n.setFontSize(24),n.text(ud(c),i+8,y+18),n.setFont("helvetica","normal"),n.setFontSize(10),n.text("Frais obligatoires",i+8,y+24),y+=32,n.setFontSize(10),n.setTextColor(Ka),n.text("Ces frais correspondent aux coûts administratifs obligatoires.",i,y,{maxWidth:s}),y+=10,n.setFont("helvetica","bold"),n.setFontSize(14),n.setTextColor(Cr),n.text("Détail des frais obligatoires",i,y),y+=6,n.setFillColor(sp),n.rect(i,y,s,7,"F"),n.setFont("helvetica","bold"),n.setFontSize(10),n.setTextColor(Cr),n.text("Frais",i+2,y+5),n.text("Description",i+55,y+5),n.text("Montant",i+s-2,y+5,{align:"right"}),y+=7,o.forEach(A=>{const O=A.description?n.splitTextToSize(A.description,80):[],$=Math.max(10,5+O.length*3.5);y+$>270&&(n.addPage(),y=20),n.setDrawColor("#E6EAF0"),n.line(i,y,i+s,y),n.setFont("helvetica","normal"),n.setFontSize(10),n.setTextColor(so),n.splitTextToSize(A.label,50).forEach((B,R)=>{n.text(B,i+2,y+4+R*3.5)}),n.setFontSize(9),n.setTextColor(Ka),O.forEach((B,R)=>{n.text(B,i+55,y+4+R*3.5)}),n.setFont("helvetica","bold"),n.setFontSize(10),n.setTextColor(A.amount===0?"#2E7D32":so),n.text(h(A.amount),i+s-2,y+4,{align:"right"}),y+=$}),n.setDrawColor("#E6EAF0"),n.line(i,y,i+s,y),n.setFillColor(sp),n.rect(i,y,s,8,"F"),n.setFont("helvetica","bold"),n.setFontSize(11),n.setTextColor(Cr),n.text("Total frais obligatoires",i+2,y+5.5),n.text(ud(c),i+s-2,y+5.5,{align:"right"}),y+=14,a.length>0)if(y>210&&(n.addPage(),y=20),n.setFont("helvetica","bold"),n.setFontSize(13),n.setTextColor(Cr),n.text("Accompagnement recommandé",i,y),y+=8,d)a.forEach(A=>{const O=A.description?n.splitTextToSize(A.description,80):[],$=Math.max(10,5+O.length*3.5);y+$>270&&(n.addPage(),y=20),n.setDrawColor("#E6EAF0"),n.line(i,y,i+s,y),n.setFont("helvetica","normal"),n.setFontSize(10),n.setTextColor(so),n.splitTextToSize(A.label,50).forEach((B,R)=>{n.text(B,i+2,y+4+R*3.5)}),n.setFontSize(9),n.setTextColor(Ka),O.forEach((B,R)=>{n.text(B,i+55,y+4+R*3.5)}),n.setFont("helvetica","bold"),n.setFontSize(10),n.setTextColor(so),n.text(h(A.amount),i+s-2,y+4,{align:"right"}),y+=$}),y+=6;else{n.setFont("helvetica","normal"),n.setFontSize(10),n.setTextColor(so),n.text("Deux façons de créer votre société",i,y),y+=6;const A=(s-4)/2,O=y,$=52;n.setFillColor("#F5F5F5"),n.roundedRect(i,O,A,$,2,2,"F"),n.setFont("helvetica","bold"),n.setFontSize(10),n.setTextColor(Cr),n.text("Créer seul",i+4,O+7),n.setFont("helvetica","normal"),n.setFontSize(9),n.setTextColor(so),["Rédiger les statuts vous-même","Remplir le formulaire unique","Publier l'annonce légale","Déposer le dossier sur le Guichet Unique","Gérer les éventuels retours"].forEach((L,I)=>{n.text("⢠"+L,i+4,O+14+I*4.5)});const B=a.find(L=>L.label.includes("avocat"));B&&(n.setFont("helvetica","bold"),n.setFontSize(9),n.setTextColor(Cr),n.text("Rédaction statuts par avocat :",i+4,O+40),n.text(ud(B.amount),i+4,O+45));const R=i+A+4;n.setFillColor(Cr),n.roundedRect(R,O,A,$,2,2,"F"),n.setFont("helvetica","bold"),n.setFontSize(10),n.setTextColor("#FFFFFF"),n.text("Avec Captain Contrat",R+4,O+7),n.setFont("helvetica","normal"),n.setFontSize(9),["Questionnaire simple en ligne","Statuts rédigés par un avocat","Formalités prises en charge","Société créée en 72h"].forEach((L,I)=>{n.text("⢠"+L,R+4,O+14+I*4.5)}),n.setFont("helvetica","bold"),n.setFontSize(9),n.text("Accompagnement complet :",R+4,O+36),n.text(`dès ${p} euros`,R+4,O+41),n.setFont("helvetica","normal"),n.setFontSize(8),n.setTextColor("#FFFFFF"),n.text("Les frais administratifs restent à payer.",R+4,O+48),y=O+$+6}y>200&&(n.addPage(),y=20),n.setFont("helvetica","bold"),n.setFontSize(14),n.setTextColor(Cr),n.text("Gagnez du temps : déléguez vos formalités",i,y),y+=7;const x=y,v=42;n.setFillColor(Cr),n.roundedRect(i,x,s,v,2,2,"F"),n.setFont("helvetica","normal"),n.setFontSize(9.5),n.setTextColor("#FFFFFF"),n.text(`Création dès ${p} euros (hors frais administratifs)`,i+5,x+8);const _=["Formalités et immatriculation prises en charge","Dossier validé par nos juristes en 24h","Process 100 % en ligne"];let S=x+16;if(_.forEach(A=>{n.text("⢠"+A,i+7,S),S+=5}),n.setFontSize(9),n.setTextColor("#FFFFFF"),n.text("+ de 40 000 entrepreneurs accompagnés",i+5,x+v-5),y=x+v+10,y>240&&(n.addPage(),y=20),l.length>0){n.setFont("helvetica","bold"),n.setFontSize(13),n.setTextColor(Cr),n.text("Services complémentaires possibles",i,y),y+=5,n.setFont("helvetica","normal"),n.setFontSize(9.5),n.setTextColor(Ka),n.text("Ces services ne sont pas obligatoires mais peuvent être utiles selon votre projet.",i,y,{maxWidth:s}),y+=9,n.setFillColor(sp),n.rect(i,y,s,7,"F"),n.setFont("helvetica","bold"),n.setFontSize(10),n.setTextColor(Cr),n.text("Service",i+2,y+5),n.text("Description",i+55,y+5),n.text("Montant",i+s-2,y+5,{align:"right"}),y+=7,l.forEach(O=>{const $=O.description?n.splitTextToSize(O.description,80):[],H=Math.max(10,5+$.length*3.5);y+H>270&&(n.addPage(),y=20),n.setDrawColor("#E6EAF0"),n.line(i,y,i+s,y),n.setFont("helvetica","normal"),n.setFontSize(10),n.setTextColor(so),n.splitTextToSize(O.label,50).forEac
360h((R,X)=>{n.text(R,i+2,y+4+X*3.5)}),n.setFontSize(9),n.setTextColor(Ka),$.forEach((R,X)=>{n.text(R,i+55,y+4+X*3.5)}),n.setFont("helvetica","bold"),n.setFontSize(10),n.setTextColor(so),n.text(h(O.amount),i+s-2,y+4,{align:"right"}),y+=H});const A=Td(l);n.setDrawColor("#E6EAF0"),n.line(i,y,i+s,y),n.setFillColor(sp),n.rect(i,y,s,8,"F"),n.setFont("helvetica","bold"),n.setFontSize(11),n.setTextColor(Cr),n.text("Total services complémentaires",i+2,y+5.5),n.text(ud(A),i+s-2,y+5.5,{align:"right"}),y+=14}y>250&&(n.addPage(),y=20),n.setFillColor(yM),n.roundedRect(i,y,s,16,3,3,"F"),n.setFont("helvetica","bold"),n.setFontSize(12),n.setTextColor("#FFFFFF"),n.text(m,r/2,y+7,{align:"center"}),n.setFont("helvetica","normal"),n.setFontSize(9.5),n.text(`Création dès ${p} euros (hors frais administratifs)`,r/2,y+13,{align:"center"}),n.link(i,y,s,16,{url:wM}),y+=22,n.setFont("helvetica","normal"),n.setFontSize(9),n.setTextColor(Ka),n.text("Cette estimation est fournie à titre indicatif et peut varier selon votre situation et votre département.",r/2,y,{align:"center",maxWidth:s}),n.save(`estimation-creation-${t.toLowerCase().replace(/\s+/g,"-")}.pdf`)}const SM={infogreffe:"Guichet Unique",inpi:"INPI","annonce-legale":"Journal d'annonces légales"},Wc=e=>new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:2}).format(e),kM="https://www.captaincontrat.com/creer-entreprise";function AM({costs:e,businessTypeName:t,businessTypeId:n}){const r=t.charAt(0).toUpperCase()+t.slice(1),i=e.filter(h=>h.category==="obligatoire"),s=e.filter(h=>h.category==="recommande"),o=e.filter(h=>h.category==="optionnel"),a=["micro-entreprise","ei"].includes(n),l=a?"59 â¬":"0 â¬",c=a?`Créer mon ${r} avec Captain Contrat`:"Créer ma société avec Captain Contrat",d=Td(i);Td(s);const p=Td(o),m=async()=>{await xM(e,r)};return j.jsxs("div",{className:"space-y-4 slide-up",children:[j.jsx("div",{children:j.jsxs("h2",{className:"font-bold",style:{fontFamily:"'Crimson Pro', serif",fontSize:28,color:"#1D3D5D"},children:["Quel est le coût de création de votre ",r," ?"]})}),j.jsxs("div",{className:"rounded-xl overflow-hidden",style:{background:"#1D3D5D"},children:[j.jsxs("div",{className:"px-5 py-3 text-white",children:[j.jsx("p",{className:"text-xs opacity-60 uppercase tracking-wider font-medium mb-0.5",children:"Budget estimé"}),j.jsx("p",{className:"text-2xl font-bold font-mono tabular-nums",children:Wc(d)}),j.jsx("p",{className:"text-[11px] opacity-50 font-mono mt-0.5",children:"Frais obligatoires"})]}),j.jsx("p",{className:"px-5 pb-3 text-[11px] text-white/50 italic",children:"Ces frais correspondent aux coûts administratifs obligatoires. Estimation au 01/01/2026."})]}),j.jsx(e7,{type:"single",collapsible:!0,className:"border border-border rounded-xl overflow-hidden bg-card",children:j.jsxs(Dk,{value:"detail",className:"border-none",children:[j.jsx(Mk,{className:"px-4 py-3 hover:no-underline bg-card",children:j.jsxs("div",{className:"flex items-center gap-2",children:[j.jsx(uL,{className:"w-4 h-4 text-foreground"}),j.jsx("span",{className:"text-sm font-semibold text-foreground",children:"Voir le détail des coûts"})]})}),j.jsxs(Bk,{className:"pb-0",children:[j.jsx("div",{className:"px-4 py-2.5 border-y border-white/20",style:{background:"#1D3D5D"},children:j.jsxs("div",{className:"flex items-center gap-1.5",children:[j.jsx(dL,{className:"w-3.5 h-3.5 text-white"}),j.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wider text-white",children:"Frais obligatoires"}),j.jsx("span",{className:"ml-2 text-[10px] font-mono px-1.5 py-0.5 rounded bg-white/20 text-white font-medium",children:Wc(d)})]})}),i.map((h,y)=>j.jsx(c1,{cost:h,isLast:y===i.length-1&&s.length===0},y)),s.length>0&&j.jsxs(j.Fragment,{children:[j.jsx("div",{className:"px-4 py-2.5 border-y border-border bg-card",children:j.jsxs("div",{className:"flex items-center gap-1.5",children:[j.jsx(Nc,{className:"w-3.5 h-3.5 text-foreground"}),j.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wider text-foreground",children:"Accompagnement recommandé"}),j.jsxs("span",{className:"ml-2 text-[10px] font-mono px-1.5 py-0.5 rounded bg-muted text-muted-foreground font-medium",children:["dès ",l]})]})}),a?j.jsx(j.Fragment,{children:s.map((h,y)=>j.jsx(c1,{cost:h,isLast:y===s.length-1},`rec-${y}`))}):j.jsxs("div",{className:"px-4 py-4 bg-card",children:[j.jsx("p",{className:"text-[11px] text-muted-foreground font-semibold uppercase tracking-wider mb-3",children:"Deux façons de créer votre société"}),j.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[j.jsxs("div",{className:"rounded-lg p-3 bg-muted/50 border border-border",children:[j.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[j.jsx(fL,{className:"w-3.5 h-3.5 text-muted-foreground"}),j.jsx("span",{className:"text-xs font-semibold text-foreground",children:"Créer seul"})]}),j.jsx("ul",{className:"space-y-1.5",children:["Rédiger les statuts vous-même","Remplir le formulaire unique","Publier l'annonce légale","Déposer le dossier sur le Guichet Unique","Gérer les éventuels retours"].map(h=>j.jsxs("li",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground",children:[j.jsx(oL,{className:"w-3 h-3 flex-shrink-0 mt-0.5"}),h]},h))}),j.jsx("p",{className:"text-sm font-mono font-semibold text-foreground mt-3 pt-2 border-t border-border",children:"Les frais administratifs restent à payer dans tous les cas."})]}),j.jsxs("div",{className:"rounded-lg p-3 border border-border",style:{background:"#ECF3FF"},children:[j.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[j.jsx(hL,{className:"w-3.5 h-3.5",style:{color:"#ef6c77"}}),j.jsx("span",{className:"text-xs font-semibold text-foreground",children:"Avec Captain Contrat"})]}),j.jsx("ul",{className:"space-y-1.5",children:["Questionnaire simple en ligne","Statuts validés par un juriste","Publication de l'annonce légale","Formalités prises en charge","Gestion de tous les allers-retours"].map(h=>j.jsxs("li",{className:"flex items-start gap-1.5 text-[11px] text-foreground",children:[j.jsx(Nc,{className:"w-3 h-3 flex-shrink-0 mt-0.5",style:{color:"#ef6c77"}}),h]},h))}),j.jsx("div",{className:"mt-3 pt-2 border-t border-border",children:j.jsxs("p",{className:"text-sm font-mono font-semibold text-foreground",children:["Dès ",l," (avec un accompagnement comptable)"]})}),j.jsx("p",{className:"text-[9px] text-muted-foreground mt-1 italic",children:"Hors frais administratifs obligatoires"})]})]})]})]}),j.jsx("p",{className:"px-4 py-3 text-xs text-muted-foreground border-t border-border bg-card italic",children:"Vous pouvez réaliser ces démarches seul ou vous faire accompagner."}),o.length>0&&j.jsxs(j.Fragment,{children:[j.jsx("div",{className:"px-4 py-2.5 border-t border-border bg-card",children:j.jsxs("div",{className:"flex items-center gap-1.5",children:[j.jsx(lL,{className:"w-3.5 h-3.5 text-muted-foreground"}),j.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wider text-muted-foreground",children:"Services complémentaires â prix estimatifs"}),j.jsx("span",{className:"ml-2 text-[10px] font-mono px-1.5 py-0.5 rounded bg-muted text-muted-foreground font-medium",children:Wc(p)})]})}),o.map((h,y)=>j.jsx(c1,{cost:h,isLast:y===o.length-1,shortDesc:!0},`opt-${y}`))]})]})]})}),j.jsxs("div",{className:"rounded-xl border border-border bg-card p-5 space-y-4",children:[j.jsx("p",{className:"text-sm font-semibold",style:{color:"#1D3D5D"},children:"Gagnez du temps : déléguez vos formalités"}),j.jsx("ul",{className:"space-y-1.5",children:["Formalités et immatriculation prises en charge","Dossier validé par nos juristes en 24h","Process 100 % en ligne"].map(h=>j.jsxs("li",{className:"flex items-center gap-2 text-sm text-foreground",children:[j.jsx(Nc,{className:"w-3.5 h-3.5 flex-shrink-0",style:{color:"#ef6c77"}}),h]},h))}),j.jsx("a",{href:kM,target:"_blank",rel:"noopener noreferrer",className:"btn-cta text-center text-sm w-full block",children:c}),j.jsxs("div",{className:"flex items-center justify-between text-[11px] text-muted-foreground",children:[j.jsxs("span",{children:["Création dès ",l," (offert avec abonnement comptabilité)"]}),j.jsxs("span",{className:"flex items-center gap-1",children:[j.jsx(Nc,{className:"w-3 h-3",style:{color:"#1D3D5D"}}),"+ de 40 000 accompagnés"]})]}),j.jsxs("div",{className:"border-t border-border pt-4",children:[j.jsxs("button",{onClick:m,className:"flex items-center justify-center gap-2 text-sm font-medium px-4 py-2.5 rounded-full border border-border text-foreground hover:bg-muted transition-colors w-full",children:[j.jsx(cL,{className:"w-4 h-4"}),"Télécharger mon estimation (PDF)"]}),j.jsx("p",{className:"text-[10px] text-muted-foreground text-center mt-1.5",children:"Recevez le détail des coûts et les étapes pour créer votre société."})]})]}),j.jsx(EM,{})]})}function c1({cost:e,isLast:t=!1,shortDesc:n=!1,darkMode:r=!1}){const i=n&&e.description?e.description.split(".")[0]+".":e.description,s=e.source!=="annonce-legale"||e.label.toLowerCase().includes("annonce légale");return j.jsxs("div",{className:pn("flex items-start justify-between px-4 py-3.5 gap-4",r?"bg-white/5":"bg-card",!t&&(r?"border-b border-white/10":"border-b border-border")),children:[j.jsxs("div",{className:"flex-1 min-w-0",children:[j.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[j.jsx("span",{className:pn("text-sm font-medium",r?"text-white":"text-foreground"),children:e.label}),e.badge&&j.jsx("span",{className:pn("inline-flex items-center px-1.5 py-0.5 rounded-full text-[9px] font-semibold uppercase tracking-wider",e.badge==="essentiel"?"bg-amber-100 text-amber-700":"bg-emerald-100 text-emerald-700"),children:e.badge}),s&&j.jsx("span",{className:pn("inline-flex items-center px-1.5 py-0.5 rounded text-[9px] font-mono font-medium",r?"bg-white/15 text-white/70":"bg-muted text-muted-foreground"),children:SM[e.source]})]}),i&&j.jsx("p",{className:pn("text-[11px] mt-1 leading-relaxed",r?"text-white/60":"text-muted-foreground"),children:i})]}),j.jsx("div",{className:"text-right flex-shrink-0 pt-0.5",children:j.jsx("span",{className:pn("font-mono font-medium tabular-nums text-sm",e.amount===0?r?"text-emerald-300":"text-emerald-600":r?"text-white":"text-foreground"),children:e.amount===0?"Gratuit":e.priceLabel?e.priceLabel:e.amountMax?`${Wc(e.amount)} à ${Wc(e.amountMax)}`:Wc(e.amount)})})]})}function EM(){return j.jsxs(lI,{children:[j.jsx(cI,{asChild:!0,children:j.jsxs("button",{className:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors mx-auto",children:[j.jsx(Nc,{className:"w-3 h-3 text-success"}),"Sources officielles",j.jsx(Uf,{className:"w-3 h-3"})]})}),j.jsxs(yA,{className:"max-w-md",children:[j.jsx(wA,{children:j.jsxs(bA,{className:"text-sm font-semibold flex items-center gap-2",style:{color:"#1D3D5D"},children:[j.jsx(Nc,{className:"w-4 h-4 text-success"}),"Sources officielles"]})}),j.jsxs("div",{className:"space-y-3 pt-2",children:[j.jsxs("a",{href:fb.inpi,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-sm text-foreground hover:text-primary transition-colors underline underline-offset-2",children:["INPI · Tarifs des formalités",j.jsx(Uf,{className:"w-3 h-3"})]}),j.jsxs("a",{href:"https://entreprendre.service-public.gouv.fr/actualites/A18724",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-sm text-foreground hover:text-primary transition-colors underline underline-offset-2",children:["Service-Public · Annonces légales",j.jsx(Uf,{className:"w-3 h-3"})]}),j.jsxs("a",{href:fb.infogreffe,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-sm text-foreground hover:text-primary transition-colors underline underline-offset-2",children:["Infogreffe · Tarifs des formalités",j.jsx(Uf,{className:"w-3 h-3"})]}),j.jsx("p",{className:"text-[10px] text-muted-foreground font-mono pt-2 border-t border-border",children:"Tarifs TTC au 01/01/2026. Les frais d'annonces légales varient selon le département."})]})]})]})}
360function NM({totalSteps:e,currentStep:t,simulatorName:n,onBack:r,showBack:i=!1}){return j.jsxs("div",{className:"flex flex-col gap-2 mb-8",children:[i&&r&&j.jsxs("button",{onClick:r,className:"flex items-center gap-1.5 text-sm font-medium self-start mb-1",style:{color:"#1D3D5D"},children:[j.jsx(sL,{className:"w-4 h-4"}),"Retour"]}),j.jsx("p",{className:"text-sm text-center",style:{color:"#737482"},children:n}),j.jsx("div",{className:"flex gap-1 w-full",children:Array.from({length:e}).map((s,o)=>j.jsx("div",{className:"flex-1 h-1 rounded",style:{backgroundColor:o<t?"#1D3D5D":"#E6EAF0"}},o))})]})}function CM(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{c(r.next(d))}catch(p){o(p)}}function l(d){try{c(r.throw(d))}catch(p){o(p)}}function c(d){d.done?s(d.value):i(d.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}const LM=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Oy extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class PM extends Oy{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class G_ extends Oy{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class K_ extends Oy{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var zv;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(zv||(zv={}));class TM{constructor(t,{headers:n={},customFetch:r,region:i=zv.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=LM(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return CM(this,arguments,void 0,function*(n,r={}){var i;let s,o;try{const{headers:a,method:l,body:c,signal:d,timeout:p}=r;let m={},{region:h}=r;h||(h=this.region);const y=new URL(`${this.url}/${n}`);h&&h!=="any"&&(m["x-region"]=h,y.searchParams.set("forceFunctionRegion",h));let w;c&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(m["Content-Type"]="application/octet-stream",w=c):typeof c=="string"?(m["Content-Type"]="text/plain",w=c):typeof FormData<"u"&&c instanceof FormData?w=c:(m["Content-Type"]="application/json",w=JSON.stringify(c)):c&&typeof c!="string"&&!(typeof Blob<"u"&&c instanceof Blob)&&!(c instanceof ArrayBuffer)&&!(typeof FormData<"u"&&c instanceof FormData)?w=JSON.stringify(c):w=c;let x=d;p&&(o=new AbortController,s=setTimeout(()=>o.abort(),p),d?(x=o.signal,d.addEventListener("abort",()=>o.abort())):x=o.signal);const v=yield this.fetch(y.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},m),this.headers),a),body:w,signal:x}).catch(O=>{throw new PM(O)}),_=v.headers.get("x-relay-error");if(_&&_==="true")throw new G_(v);if(!v.ok)throw new K_(v);let S=((i=v.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),A;return S==="application/json"?A=yield v.json():S==="application/octet-stream"||S==="application/pdf"?A=yield v.blob():S==="text/event-stream"?A=v:S==="multipart/form-data"?A=yield v.formData():A=yield v.text(),{data:A,error:null,response:v}}catch(a){return{data:null,error:a,response:a instanceof K_||a instanceof G_?a.context:void 0}}finally{s&&clearTimeout(s)}})}}var RM=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
360de=e.code}},OM=class{constructor(e){var t,n,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(r=e.urlLengthLimit)!==null&&r!==void 0?r:8e3,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{let o=null,a=null,l=null,c=s.status,d=s.statusText;if(s.ok){var p,m;if(n.method!=="HEAD"){var h;const x=await s.text();x===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((h=n.headers.get("Accept"))===null||h===void 0)&&h.includes("application/vnd.pgrst.plan+text"))?a=x:a=JSON.parse(x))}const y=(p=n.headers.get("Prefer"))===null||p===void 0?void 0:p.match(/count=(exact|planned|estimated)/),w=(m=s.headers.get("content-range"))===null||m===void 0?void 0:m.split("/");y&&w&&w.length>1&&(l=parseInt(w[1])),n.isMaybeSingle&&Array.isArray(a)&&(a.length>1?(o={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,c=406,d="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{const y=await s.text();try{o=JSON.parse(y),Array.isArray(o)&&s.status===404&&(a=[],o=null,c=200,d="OK")}catch{s.status===404&&y===""?(c=204,d="No Content"):o={message:y}}if(o&&n.shouldThrowOnError)throw new RM(o)}return{error:o,data:a,count:l,status:c,statusText:d}});return this.shouldThrowOnError||(i=i.catch(s=>{var o;let a="",l="",c="";const d=s==null?void 0:s.cause;if(d){var p,m,h,y;const v=(p=d==null?void 0:d.message)!==null&&p!==void 0?p:"",_=(m=d==null?void 0:d.code)!==null&&m!==void 0?m:"";a=`${(h=s==null?void 0:s.name)!==null&&h!==void 0?h:"FetchError"}: ${s==null?void 0:s.message}`,a+=` 361 362Caused by: ${(y=d==null?void 0:d.name)!==null&&y!==void 0?y:"Error"}: ${v}`,_&&(a+=` (${_})`),d!=null&&d.stack&&(a+=` 363${d.stack}`)}else{var w;a=(w=s==null?void 0:s.stack)!==null&&w!==void 0?w:""}const x=this.url.toString().length;return(s==null?void 0:s.name)==="AbortError"||(s==null?void 0:s.code)==="ABORT_ERR"?(c="",l="Request was aborted (timeout or manual cancellation)",x>this.urlLengthLimit&&(l+=`. Note: Your request URL is ${x} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((d==null?void 0:d.name)==="HeadersOverflowError"||(d==null?void 0:d.code)==="UND_ERR_HEADERS_OVERFLOW")&&(c="",l="HTTP headers exceeded server limits (typically 16KB)",x>this.urlLengthLimit&&(l+=`. Your request URL is ${x} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(o=s==null?void 0:s.name)!==null&&o!==void 0?o:"FetchError"}: ${s==null?void 0:s.message}`,details:a,hint:l,code:c},data:null,count:null,status:0,statusText:""}})),i.then(e,t)}returns(){return this}overrideTypes(){return this}},IM=class extends OM{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:i=r}={}){const s=i?`${i}.order`:"order",o=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"offset":`${r}.offset`,s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(s,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
363explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:s="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,i?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${s}; for="${l}"; options=${a};`),s==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Y_=new RegExp("[,()]");var dc=class extends IM{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Y_.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Y_.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let i="";r==="plain"?i="pl":r==="phrase"?i="ph":r==="websearch"&&(i="w");const s=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${i}fts${s}.${t}`),this}match(e){return Object.entries(e).filter(([t,n])=>n!==void 0).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},jM=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:i=8e3}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},i=n?"HEAD":"GET";let s=!1;const o=(e??"*").split("").map(c=>/\s/.test(c)&&!s?"":(c==='"'&&(s=!s),c)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),r&&l.append("Prefer",`count=${r}`),new dc({method:i,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const i="POST",{url:s,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(a.length>
3630){const l=[...new Set(a)].map(c=>`"${c}"`);s.searchParams.set("columns",l.join(","))}}return new dc({method:i,url:s,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){var s;const o="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),r&&l.append("Prefer",`count=${r}`),i||l.append("Prefer","missing=default"),Array.isArray(e)){const c=e.reduce((d,p)=>d.concat(Object.keys(p)),[]);if(c.length>0){const d=[...new Set(c)].map(p=>`"${p}"`);a.searchParams.set("columns",d.join(","))}}return new dc({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var n;const r="PATCH",{url:i,headers:s}=this.cloneRequestState();return t&&s.append("Prefer",`count=${t}`),new dc({method:r,url:i,headers:s,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new dc({method:n,url:r,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function ph(e){"@babel/helpers - typeof";return ph=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ph(e)}function FM(e,t){if(ph(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ph(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DM(e){var t=FM(e,"string");return ph(t)=="symbol"?t:t+""}function MM(e,t,n){return(t=DM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function op(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J_(Object(n),!0).forEach(function(r){MM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var BM=class PE{constructor(t,{headers:n={},schema:r,fetch:i,timeout:s,urlLengthLimit:o=8e3}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const a=i??globalThis.fetch;s!==void 0&&s>0?this.fetch=(l,c)=>{const d=new AbortController,p=setTimeout(()=>d.abort(),s),m=c==null?void 0:c.signal;if(m){if(m.aborted)return clearTimeout(p),a(l,c);const h=()=>{clearTimeout(p),d.abort()};return m.addEventListener("abort",h,{once:!0}),a(l,op(op({},c),{},{signal:d.signal})).finally(()=>{clearTimeout(p),m.removeEventListener("abort",h)})}return a(l,op(op({},c),{},{signal:d.signal})).finally(()=>clearTimeout(p))}:this.fetch=a}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new jM(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new PE(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(t,n={},{head:r=!1,get:i=!1,count:s}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let c;const d=h=>h!==null&&typeof h=="object"&&(!Array.isArray(h)||h.some(d)),p=r&&Object.values(n).some(d);p?(a="POST",c=n):r||i?(a=r?"HEAD":"GET",Object.entries(n).filter(([h,y])=>y!==void 0).map(([h,y])=>[h,Array.isArray(y)?`{${y.join(",")}}`:`${y}
363`]).forEach(([h,y])=>{l.searchParams.append(h,y)})):(a="POST",c=n);const m=new Headers(this.headers);return p?m.set("Prefer",s?`count=${s},return=minimal`:"return=minimal"):s&&m.set("Prefer",`count=${s}`),new dc({method:a,url:l,headers:m,schema:this.schemaName,body:c,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit})}};class UM{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const i=r.node,s=parseInt(i.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 364import ws from "ws" 365new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 366 367Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const $M="2.101.1",zM=`realtime-js/${$M}`,qM="1.0.0",TE="2.0.0",HM=TE,WM=1e4,VM=100,ea={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},RE={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},qv={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class GM{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var i,s;const o=t.topic,a=(i=t.ref)!==null&&i!==void 0?i:"",l=(s=t.join_ref)!==null&&s!==void 0?s:"",c=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},p=Object.keys(d).length===0?"":JSON.stringify(d);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(p.length>255)throw new Error(`metadata length ${p.length} exceeds maximum of 255`);const m=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+c.length+p.length,h=new ArrayBuffer(this.HEADER_LENGTH+m);
367let y=new DataView(h),w=0;y.setUint8(w++,this.KINDS.userBroadcastPush),y.setUint8(w++,l.length),y.setUint8(w++,a.length),y.setUint8(w++,o.length),y.setUint8(w++,c.length),y.setUint8(w++,p.length),y.setUint8(w++,n),Array.from(l,v=>y.setUint8(w++,v.charCodeAt(0))),Array.from(a,v=>y.setUint8(w++,v.charCodeAt(0))),Array.from(o,v=>y.setUint8(w++,v.charCodeAt(0))),Array.from(c,v=>y.setUint8(w++,v.charCodeAt(0))),Array.from(p,v=>y.setUint8(w++,v.charCodeAt(0)));var x=new Uint8Array(h.byteLength+r.byteLength);return x.set(new Uint8Array(h),0),x.set(new Uint8Array(r),h.byteLength),x.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[i,s,o,a,l]=r;return n({join_ref:i,ref:s,topic:o,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),i=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,i)}}_decodeUserBroadcast(t,n,r){const i=n.getUint8(1),s=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const c=r.decode(t.slice(l,l+i));l=l+i;const d=r.decode(t.slice(l,l+s));l=l+s;const p=r.decode(t.slice(l,l+o));l=l+o;const m=t.slice(l,t.byteLength),h=a===this.JSON_ENCODING?JSON.parse(r.decode(m)):m,y={type:this.BROADCAST_EVENT,event:d,payload:h};return o>0&&(y.meta=JSON.parse(p)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:y}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}var Zt;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Zt||(Zt={}));const X_=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((s,o)=>(s[o]=KM(o,e,t,i),s),{}):{}},KM=(e,t,n,r)=>{const i=t.find(a=>a.name===e),s=i==null?void 0:i.type,o=n[e];return s&&!r.includes(s)?OE(s,o):Hv(o)},OE=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return ZM(t,n)}switch(e){case Zt.bool:return YM(t);case Zt.float4:case Zt.float8:case Zt.int2:case Zt.int4:case Zt.int8:case Zt.numeric:case Zt.oid:return JM(t);case Zt.json:case Zt.jsonb:return XM(t);case Zt.timestamp:return QM(t);case Zt.abstime:case Zt.date:case Zt.daterange:case Zt.int4range:case Zt.int8range:case Zt.money:case Zt.reltime:case Zt.text:case Zt.time:case Zt.timestamptz:case Zt.timetz:case Zt.tsrange:case Zt.tstzrange:return Hv(t);default:return Hv(t)}},Hv=e=>e,YM=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},JM=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},XM=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},ZM=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let s;const o=e.slice(1,n);try{s=JSON.parse("["+o+"]")}catch{s=o?o.split(","):[]}return s.map(a=>OE(t,a))}return e},QM=e=>typeof e=="string"?e.replace(" ","T"):e,IE=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var Fd=e=>typeof e=="function"?e:function(){return e},e9=typeof self<"u"?self:null,hc=typeof window<"u"?window:null,_s=e9||hc||globalThis,t9="2.0.0",n9=1e4,r9=1e3,As={connecting:0,open:1,closing:2,closed:3},Mr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},lo={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Wv={longpoll:"longpoll",websocket:"websocket"},i9={complete:4},Vv="base64url.bearer.phx.",ap=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHo
vendor: 4,377 bytes, line 367
367oks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},jE=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},s9=class{constructor(e,t,n){this.state=Mr.closed,this.topic=e,this.params=Fd(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new ap(this,lo.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new jE(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Mr.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=Mr.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=Mr.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=Mr.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new ap(this,lo.leave,Fd({}),this.timeout).send(),this.state=Mr.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(lo.reply,(r,i)=>{this.trigger(this.replyEventName(i),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Mr.closed,this.bindings=[]}onClose(e){this.on(lo.close,e)}onError(e){return this.on(lo.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new ap(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Mr.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}
367`),this.trigger(lo.close,"leave")},n=new ap(this,lo.leave,Fd({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Mr.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let i=this.onMessage(e,t,n,r);if(t&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let s=this.bindings.filter(o=>o.event===e&&this.filterBindings(o,t,n));for(let o=0;o<s.length;o++)s[o].callback(i,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===Mr.closed}isErrored(){return this.state===Mr.errored}isJoined(){return this.state===Mr.joined}isJoining(){return this.state===Mr.joining}isLeaving(){return this.state===Mr.leaving}},k0=class{static request(e,t,n,r,i,s,o){if(_s.XDomainRequest){let a=new _s.XDomainRequest;return this.xdomainRequest(a,e,t,r,i,s,o)}else if(_s.XMLHttpRequest){let a=new _s.XMLHttpRequest;return this.xhrRequest(a,e,t,n,r,i,s,o)}else{if(_s.fetch&&_s.AbortController)return this.fetchRequest(e,t,n,r,i,s,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,r,i,s,o){let a={method:e,headers:n,body:r},l=null;return i&&(l=new AbortController,setTimeout(()=>l.abort(),i),a.signal=l.signal),_s.fetch(t,a).then(c=>c.text()).then(c=>this.parseJSON(c)).then(c=>o&&o(c)).catch(c=>{c.name==="AbortError"&&s?s():o&&o(null)}),l}static xdomainRequest(e,t,n,r,i,s,o){return e.timeout=i,e.open(t,n),e.onload=()=>{let a=this.parseJSON(e.responseText);o&&o(a)},s&&(e.ontimeout=s),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,i,s,o,a){e.open(t,n,!0),e.timeout=s;for(let[l,c]of Object.entries(r))e.setRequestHeader(l,c);return e.onerror=()=>a&&a(null),e.onreadystatechange=()=>{if(e.readyState===i9.complete&&a){let l=this.parseJSON(e.responseText);a(l)}},o&&(e.ontimeout=o),e.send(i),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=t?`${t}[${r}]`:r,s=e[r];typeof s=="object"?n.push(this.serialize(s,i)):n.push(encodeURIComponent(i)+"="+encodeURIComponent(s))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},o9=e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let i=0;i<r;i++)t+=String.fromCharCode(n[i]);return btoa(t)},rc=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(Vv)&&(this.authToken=atob(t[1].slice(Vv.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=As.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Wv.websocket),"$1/"+Wv.longpoll)}endpointURL(){return k0.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=As.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===As.open||this.readyState===As.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:r,messages:i}=t;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else n=0;switch(n){case 200:i.forEach(s=>{setTimeout(()=>this.onmessage({data:s}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=As.open,this.onopen({}),this.poll();break;
367case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=o9(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(` 368`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let i of this.reqs)i.abort();this.readyState=As.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,i){let s,o=()=>{this.reqs.delete(s),r()};s=k0.request(e,this.endpointURL(),t,n,this.timeout,o,a=>{this.reqs.delete(s),this.isActive()&&i(a)}),this.reqs.add(s)}},a9=class yd{constructor(t,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,i=>{let{onJoin:s,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel.joinRef(),this.state=yd.syncState(this.state,i,s,o),this.pendingDiffs.forEach(l=>{this.state=yd.syncDiff(this.state,l,s,o)}),this.pendingDiffs=[],a()}),this.channel.on(r.diff,i=>{let{onJoin:s,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=yd.syncDiff(this.state,i,s,o),a())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return yd.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,r,i){let s=this.clone(t),o={},a={};return this.map(s,(l,c)=>{n[l]||(a[l]=c)}),this.map(n,(l,c)=>{let d=s[l];if(d){let p=c.metas.map(w=>w.phx_ref),m=d.metas.map(w=>w.phx_ref),h=c.metas.filter(w=>m.indexOf(w.phx_ref)<0),y=d.metas.filter(w=>p.indexOf(w.phx_ref)<0);h.length>0&&(o[l]=c,o[l].metas=h),y.length>0&&(a[l]=this.clone(d),a[l].metas=y)}else o[l]=c}),this.syncDiff(s,{joins:o,leaves:a},r,i)}static syncDiff(t,n,r,i){let{joins:s,leaves:o}=this.clone(n);return r||(r=function(){}),i||(i=function(){}),this.map(s,(a,l)=>{let c=t[a];if(t[a]=this.clone(l),c){let d=t[a].metas.map(m=>m.phx_ref),p=c.metas.filter(m=>d.indexOf(m.phx_ref)<0);t[a].metas.unshift(...p)}r(a,c,l)}),this.map(o,(a,l)=>{let c=t[a];if(!c)return;let d=l.metas.map(p=>p.phx_ref);c.metas=c.metas.filter(p=>d.indexOf(p.phx_ref)<0),i(a,c,l),c.metas.length===0&&delete t[a]}),t}static list(t,n){return n||(n=function(r,i){return i}),this.map(t,(r,i)=>n(r,i))}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static clone(t){return JSON.parse(JSON.stringify(t))}},lp={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,s,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:s,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:s}=e,o=this.META_LENGTH+t.length+n.length+i.length+r.length,a=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(a),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,t.length),l.setUint8(c++,n.length),l.setUint8(c++,i.length),l.setUint8(c++,r.length),Array.from(t,p=>l.setUint8(c++,p.charCodeAt(0))),Array.from(n,p=>l.setUint8(c++,p.charCodeAt(0))),Array.from(i,p=>l.setUint8(c++,p.charCodeAt(0))),Array.from(r,p=>l.setUint8(c++,p.charCodeAt(0)));var d=new Uint8Array(a.byteLength+s.byteLength);return d.set(new Uint8Array(a),0),d.set(new Uint8Array(s),a.byteLength),d.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}}
vendor: 8,419 bytes, line 368
368,decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,a=n.decode(e.slice(o,o+r));o=o+r;let l=n.decode(e.slice(o,o+i));o=o+i;let c=n.decode(e.slice(o,o+s));o=o+s;let d=e.slice(o,e.byteLength);return{join_ref:a,ref:null,topic:l,event:c,payload:d}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=t.getUint8(3),o=t.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(a,a+r));a=a+r;let c=n.decode(e.slice(a,a+i));a=a+i;let d=n.decode(e.slice(a,a+s));a=a+s;let p=n.decode(e.slice(a,a+o));a=a+o;let m=e.slice(a,e.byteLength),h={status:p,response:m};return{join_ref:l,ref:c,topic:d,event:lo.reply,payload:h}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=this.HEADER_LENGTH+2,o=n.decode(e.slice(s,s+r));s=s+r;let a=n.decode(e.slice(s,s+i));s=s+i;let l=e.slice(s,e.byteLength);return{join_ref:null,ref:null,topic:o,event:a,payload:l}}},l9=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||n9,this.transport=t.transport||_s.WebSocket||rc,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||_s&&_s.sessionStorage,this.establishedConnections=0,this.defaultEncoder=lp.encode.bind(lp),this.defaultDecoder=lp.decode.bind(lp),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==rc?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;hc&&hc.addEventListener&&(hc.addEventListener("pagehide",r=>{this.conn&&(this.disconnect(),n=this.connectClock)}),hc.addEventListener("pageshow",r=>{n===this.connectClock&&(n=null,this.connect())}),hc.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=r=>t.rejoinAfterMs?t.rejoinAfterMs(r):[1e3,2e3,5e3][r-1]||1e4,this.reconnectAfterMs=r=>t.reconnectAfterMs?t.reconnectAfterMs(r):[10,50,100,150,200,250,500,1e3,2e3][r-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(r,i,s)=>{console.log(`${r}: ${i}`,s)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Fd(t.params||{}),this.endPoint=`${e}/${Wv.websocket}`,this.vsn=t.vsn||t9,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new jE(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return rc}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=k0.appendParams(k0.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Fd(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==rc?this.connectWithFallback(rc,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(i=>{i.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case rc:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${Vv}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,i,s,o=this.transportName(e),a=l=>{this.log("transport",`falling back to ${o}...`,l),this.off([i,s]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return a("memorized");this.fallbackTimer=setTimeout(a,t),s=this.onError(l=>{this.log("transport","error",l),r&&!n&&(clearTimeout(this.fallbackTimer),a(l))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let l=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${l}`,"true"),this.log("transport",`established ${l} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(a,t),this.ping(l=>{this.log("transport","connected to primary after",l),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),r9,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===As.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError()}
368triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(lo.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case As.connecting:return"connecting";case As.open:return"open";case As.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new s9(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:i,join_ref:s}=e;this.log("push",`${t} ${n} (${s}, ${i})`,r)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:r,payload:i,ref:s,join_ref:o}=t;if(s&&s===this.pendingHeartbeatRef){const a=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(i.status==="ok"?"ok":"error",a)}catch(l){this.log("error","error in heartbeat callback",l)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${i.status||""} ${n} ${r} ${s&&"("+s+")"||""}`.trim(),i);for(let a=0;a<this.channels.length;a++){const l=this.channels[a];l.isMember(n,r,i,o)&&l.trigger(r,i,s,o)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(i){this.log("error",`error in ${e} callback`,i)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Dd{constructor(t,n){const r=u9(n);this.presence=new a9(t.getChannel(),r),this.presence.onJoin((i,s,o)=>{const a=Dd.onJoinPayload(i,s,o);t.getChannel().trigger("presence",a)}),this.presence.onLeave((i,s,o)=>{const a=Dd.onLeavePayload(i,s,o);t.getChannel().trigger("presence",a)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Dd.transformState(this.presence.state)}static transformState(t){return t=c9(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const i=t[r];return n[r]=Dp(i),n},{})}static onJoinPayload(t,n,r){const i=Z_(n),s=Dp(r);return{event:"join",key:t,currentPresences:i,newPresences:s}}static onLeavePayload(t,n,r){const i=Z_(n),s=Dp(r);return{event:"leave",key:t,currentPresences:i,leftPresences:s}}}function Dp(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function c9(e){return JSON.parse(JSON.stringify(e))}function u9(e){return(e==null?void 0:e.events)&&{events:e.events}}function Z_(e){return e!=null&&e.metas?Dp(e):[]}var Q_;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Q_||(Q_={}));class d9{get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new Dd(this.channel.channelAdapter,n)}}class h9{constructor(t,n,r){const i=f9(r);this.channel=t.getSocket().channel(n,i),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,n){return this.channel.on(t,n)}off(t,n){this.channel.off(t,n)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,n,r){let i;try{i=this.channel.push(t,n,r)}catch{throw`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`}if(this.channel.pushBuffer.length>VM){const s=this.channel.pushBuffer.shift();s.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${s.event}`,s.payload())}return i}updateJoinPayload(t){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),t)}canPush(){return this.socket.isConnected()&&this.state===ea.joined}isJoined(){return this.state===ea.joined}isJoining(){return this.state===ea.joining}isClosed(){return this.state===ea.closed}isLeaving(){return this.state===ea.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function f9(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var ex;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(ex||(ex={}));var Lc;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Lc||(Lc={}));var co;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(co||(co={}));class Md{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,n={config:{}},r){var i,s;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new h9(this.socket.socketAdapter,t,this.params),this.presence=new d9(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=IE(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((s=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||s===void 0)&&s.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,i,s;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:o,presence:a,private:l}}=this.params,c=(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(h=>h.filter))!==null&&i!==void 0?i:[],d=!!this.bindings[Lc.PRESENCE]&&this.bindings[Lc.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,p={},m={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(p.access_token=this.socket.accessTokenValue),this._onError(h=>
368{t==null||t(co.CHANNEL_ERROR,h)}),this._onClose(()=>t==null?void 0:t(co.CLOSED)),this.updateJoinPayload(Object.assign({config:m},p)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:h})=>{if(this.socket._isManualToken()||this.socket.setAuth(),h===void 0){t==null||t(co.SUBSCRIBED);return}this._updatePostgresBindings(h,t)}).receive("error",h=>{this.state=ea.errored,t==null||t(co.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(co.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var r;const i=this.bindings.postgres_changes,s=(r=i==null?void 0:i.length)!==null&&r!==void 0?r:0,o=[];for(let a=0;a<s;a++){const l=i[a],{filter:{event:c,schema:d,table:p,filter:m}}=l,h=t&&t[a];if(h&&h.event===c&&Md.isFilterValueEqual(h.schema,d)&&Md.isFilterValueEqual(h.table,p)&&Md.isFilterValueEqual(h.filter,m))o.push(Object.assign(Object.assign({},l),{id:h.id}));else{this.unsubscribe(),this.state=ea.errored,n==null||n(co.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=ea.errored&&n&&n(co.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){const i=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),s=t===Lc.PRESENCE||t===Lc.POSTGRES_CHANGES;if(i&&s)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,n,r)}async httpSend(t,n,r={}){var i;if(n==null)return Promise.reject("Payload is required for httpSend()");const s={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(s.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:s,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(i=r.timeout)!==null&&i!==void 0?i:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;try{const c=await a.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,i;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
368in the future. Please use httpSend() explicitly for REST delivery.");const{event:s,payload:o}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=c.body)===null||i===void 0?void 0:i.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var o,a,l;const c=this.channelAdapter.push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&s("ok"),c.receive("ok",()=>s("ok")),c.receive("error",()=>s("error")),c.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,n,r){const i=new AbortController,s=setTimeout(()=>i.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(s),o}_on(t,n,r){const i=t.toLocaleLowerCase(),s=this.channelAdapter.on(t,r),o={type:i,filter:n,callback:r,ref:s};return this.bindings[i]?this.bindings[i].push(o):this.bindings[i]=[o],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,r)=>{var i,s,o,a,l,c,d;const p=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(p,r))return!1;const m=(i=this.bindings[p])===null||i===void 0?void 0:i.find(h=>h.ref===t.ref);if(!m)return!0;if(["broadcast","presence","postgres_changes"].includes(p))if("id"in m){const h=m.id,y=(s=m.filter)===null||s===void 0?void 0:s.event;return h&&((o=n.ids)===null||o===void 0?void 0:o.includes(h))&&(y==="*"||(y==null?void 0:y.toLocaleLowerCase())===((a=n.data)===null||a===void 0?void 0:a.type.toLocaleLowerCase()))}else{const h=(c=(l=m==null?void 0:m.filter)===null||l===void 0?void 0:l.event)===null||c===void 0?void 0:c.toLocaleLowerCase();return h==="*"||h===((d=n==null?void 0:n.event)===null||d===void 0?void 0:d.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===p})}_notThisChannelEvent(t,n){const{close:r,error:i,leave:s,join:o}=RE;return n&&[r,i,s,o].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,r)=>{if(typeof n=="object"&&"ids"in n){const i=n.data,{schema:s,table:o,commit_timestamp:a,type:l,errors:c}=i;return Object.assign(Object.assign({},{schema:s,table:o,commit_timestamp:a,eventType:l,new:{},old:{},errors:c}),this._getPayloadRecords(i))}return n})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in t.bindings)for(const r of t.bindings[n])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=X_(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=X_(t.columns,t.old_record)),n}}class p9{constructor(t,n){this.socket=new l9(t,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,r,i=1e4){return new Promise(s=>{setTimeout(()=>s("timeout"),i),this.socket.disconnect(()=>{t(),s("ok")},n,r)})}push(t){this.socket.push(t)}log(t,n,r){this.socket.log(t,n,r)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==qv.connecting}isDisconnecting(){return this.socket.connectionState()==qv.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const m9={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},g9=[1e3,2e3,5e3,1e4],v9=1e4,y9=` 369 addEventListener("message", (e) => { 370 if (e.data.event === "start") { 371 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 372 } 373 });`;class w9{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
373,this.ref=0,this.serializer=new GM,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._resolveFetch=s=>s?(...o)=>s(...o):(...o)=>fetch(...o),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const i=this._initializeOptions(n);this.socketAdapter=new p9(t,i),this.httpEndpoint=IE(t),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const n=t.message;throw n.includes("Node.js")?new Error(`${n} 374 375To use Realtime in Node.js, you need to provide a WebSocket implementation: 376 377Option 1: Use Node.js 22+ which has native WebSocket support 378Option 2: Install and provide the "ws" package: 379 380 npm install ws 381 382 import ws from "ws" 383 const client = new RealtimeClient(url, { 384 ...options, 385 transport: ws 386 })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,n)}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&t.teardown(),this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=this.channels.map(async r=>{const i=await r.unsubscribe();return r.teardown(),i}),n=await Promise.all(t);return this.disconnect(),n}log(t,n,r){this.socketAdapter.log(t,n,r)}connectionState(){return this.socketAdapter.connectionState()||qv.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const r=`realtime:${t}`,i=this.getChannels().find(s=>s.topic===r);if(i)return i;{const s=new Md(`realtime:${t}`,n,this);return this.channels.push(s),s}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(i=>{const s={access_token:n,version:zM};n&&i.updateJoinPayload(s),i.joinedOnce&&i.channelAdapter.isJoined()&&i.channelAdapter.push(RE.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(n,r)=>{n=="sent"&&this._setAuthSafely(),t&&t(n,r)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([y9],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,i,s,o,a,l,c,d;this.worker=(n=t==null?void 0:t.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=t==null?void 0:t.accessToken)!==null&&r!==void 0?r:null;const p={};
386p.timeout=(i=t==null?void 0:t.timeout)!==null&&i!==void 0?i:WM,p.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:m9.HEARTBEAT_INTERVAL,p.transport=(o=t==null?void 0:t.transport)!==null&&o!==void 0?o:UM.getWebSocketConstructor(),p.params=t==null?void 0:t.params,p.logger=t==null?void 0:t.logger,p.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),p.reconnectAfterMs=(a=t==null?void 0:t.reconnectAfterMs)!==null&&a!==void 0?a:w=>g9[w-1]||v9;let m,h;const y=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:HM;switch(y){case qM:m=(w,x)=>x(JSON.stringify(w)),h=(w,x)=>x(JSON.parse(w));break;case TE:m=this.serializer.encode.bind(this.serializer),h=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${p.vsn}`)}if(p.vsn=y,p.encode=(c=t==null?void 0:t.encode)!==null&&c!==void 0?c:m,p.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:h,p.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,p.params=Object.assign(Object.assign({},p.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,p.autoSendHeartbeat=!this.worker}return p}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}var mh=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function b9(e,t,n){const r=new URL(t,e);if(n)for(const[i,s]of Object.entries(n))s!==void 0&&r.searchParams.set(i,s);return r.toString()}async function _9(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function x9(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:s,headers:o}){const a=b9(e.baseUrl,r,i),l=await _9(e.auth),c=await t(a,{method:n,headers:{...s?{"Content-Type":"application/json"}:{},...l,...o},body:s?JSON.stringify(s):void 0}),d=await c.text(),p=(c.headers.get("content-type")||"").includes("application/json"),m=p&&d?JSON.parse(d):d;if(!c.ok){const h=p?m:void 0,y=h==null?void 0:h.error;throw new mh((y==null?void 0:y.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:y==null?void 0:y.type,icebergCode:y==null?void 0:y.code,details:h})}return{status:c.status,headers:c.headers,data:m}}}}function cp(e){return e.join("�")}var S9=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:cp(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${cp(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${cp(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${cp(e.namespace)}`}),!0}catch(t){if(t instanceof mh&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof mh&&n.status===409)return;throw n}}};function ic(e){return e.join("�")}var k9=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ic(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ic(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ic(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ic(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ic(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ic(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof mh&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof mh&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},A9=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=x9({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new S9(this.client,t),this.tableOps=new k9(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
386async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},hm=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}};function fm(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Gv=class extends hm{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},FE=class extends hm{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const E9=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),N9=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Kv=e=>{if(Array.isArray(e))return e.map(n=>Kv(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[i]=Kv(r)}),t},C9=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function gh(e){"@babel/helpers - typeof";return gh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gh(e)}function L9(e,t){if(gh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P9(e){var t=L9(e,"string");return gh(t)=="symbol"?t:t+""}function T9(e,t,n){return(t=P9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tx(Object(n),!0).forEach(function(r){T9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const nx=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},R9=async(e,t,n,r)=>{if(e!==null&&typeof e=="object"&&typeof e.json=="function"){const i=e;let s=parseInt(i.status,10);Number.isFinite(s)||(s=500),i.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||s+"";t(new Gv(nx(o),s,a,r))}).catch(()=>{const o=s+"";t(new Gv(i.statusText||`HTTP ${s} error`,s,o,r))})}else t(new FE(nx(e),e,r))},O9=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!r?rt(rt({},i),n):(N9(r)?(i.headers=rt({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r)):i.body=r,t!=null&&t.duplex&&(i.duplex=t.duplex),rt(rt({},i),n))};async function dd(e,t,n,r,i,s,o){return new Promise((a,l)=>{e(n,O9(t,r,i,s)).then(c=>{if(!c.ok)throw c;if(r!=null&&r.noResolveJson)return c;if(o==="vectors"){const d=c.headers.get("content-type");if(c.headers.get("content-length")==="0"||c.status===204)return{};if(!d||!d.includes("application/json"))return{}}return c.json()}).then(c=>a(c)).catch(c=>R9(c,l,r,o))})}function DE(e="storage"){return{get:async(t,n,r,i)=>dd(t,"GET",n,r,i,void 0,e),post:async(t,n,r,i,s)=>dd(t,"POST",n,i,s,r,e),put:async(t,n,r,i,s)=>dd(t,"PUT",n,i,s,r,e),head:async(t,n,r,i)=>dd(t,"HEAD",n,rt(rt({},r),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,n,r,i,s)=>dd(t,"DELETE",n,i,s,r,e)}}const I9=DE("storage"),{get:vh,post:Gi,put:Yv,head:j9,remove:Iy}=I9,ai=DE("vectors");var xu=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=E9(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=rt(rt({},this.headers),{},{[e]:t}),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(fm(n))return{data:null,error:n};throw n}}},F9=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(fm(t))return{data:null,error:t};throw t}}};let ME;ME=Symbol.toStringTag;var D9=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[ME]="BlobDownloadBuilder",this.promise=null}asStream(){return new F9(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(fm(t))return{data:null,error:t};throw t}}};const M9={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},rx={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var B9=class extends xu{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var i=this;return i.handleOperation(async()=>{let s;const o=rt(rt({},rx),r);let a=rt(rt({},i.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&n instanceof Blob?(s=new FormData,s.append("cacheControl",o.cacheControl),l&&s.append("metadata",i.encodeMetadata(l)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.has("cacheControl")||s.append("cacheControl",o.cacheControl),l&&!s.has("metadata")&&s.append("metadata",i.encodeMetadata(l))):(s=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=i.toBase64(i.encodeMetadata(l))),(typeof ReadableStream<"u"&&s instanceof ReadableStream||s&&typeof s=="object"&&"pipe"in s&&typeof s.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers&&(a=rt(rt({},a),r.headers));const c=i._removeEmptyFolders(t),d=i._getFinalPath(c),p=await(e=="PUT"?Yv:Gi)(i.fetch,`${i.url}/object/${d}`,s,rt({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:c,id:p.Id,fullPath:p.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var i=this;const s=i._removeEmptyFolders(e),o=i._getFinalPath(s),a=new URL(i.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",t),i.handleOperation(async()=>{let l;const c=rt(rt({},rx),r),d=rt(rt({},i.headers),{"x-upsert":String(c.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",c.cacheControl)):(l=n,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType),{path:s,fullPath:(await Yv(i.fetch,a.toString(),l,{headers:d})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const i=rt({},n.headers);t!=null&&t.upsert&&(i["x-upsert"]="true");const s=await Gi(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),o=new URL(n.url+s.url),a=o.searchParams.get("token");if(!a)throw new hm("No token returned by API");return{signedUrl:o.toString(),path:e,token:a}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await Gi(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
386stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await Gi(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let i=r._getFinalPath(e);const s=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let o=await Gi(r.fetch,`${r.url}/object/sign/${i}`,rt({expiresIn:t},s?{transform:n.transform}:{}),{headers:r.headers});const a=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"",l=s&&o.signedURL.includes("/object/sign/")?o.signedURL.replace("/object/sign/","/render/image/sign/"):o.signedURL;return{signedUrl:encodeURI(`${r.url}${l}${a}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const i=await Gi(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),s=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i.map(o=>rt(rt({},o),{},{signedUrl:o.signedURL?encodeURI(`${r.url}${o.signedURL}${s}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),s=i?`?${i}`:"",o=this._getFinalPath(e),a=()=>vh(this.fetch,`${this.url}/${r}/${o}${s}`,{headers:this.headers,noResolveJson:!0},n);return new D9(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>Kv(await vh(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await j9(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(i){if(t.shouldThrowOnError)throw i;if(fm(i)){var r;const s=i instanceof Gv?i.status:i instanceof FE?(r=i.originalError)===null||r===void 0?void 0:r.status:void 0;if(s!==void 0&&[400,404].includes(s))return{data:!1,error:i}}throw i}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],i=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";i!==""&&r.push(i);const s=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",o=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});o!==""&&r.push(o);let a=r.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${n}${a}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await Iy(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const i=rt(rt(rt({},M9),t),{},{prefix:e||""});return await Gi(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=rt({},e);return await Gi(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const U9="2.101.1",Fh={"X-Client-Info":`storage-js/${U9}`};var $9=class extends xu{constructor(e,t={},n,r){const i=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const s=i.href.replace(/\/$/,""),o=rt(rt({},Fh),t);super(s,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await vh(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await vh(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await Gi(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await Yv(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Gi(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Iy(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},z9=class extends xu{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=rt(rt({},Fh),t);super(r,i,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Gi(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),i=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await vh(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Iy(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!C9(e))throw new hm("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new A9({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
386),r=this.shouldThrowOnError;return new Proxy(n,{get(i,s){const o=i[s];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(i,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}},q9=class extends xu{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=rt(rt({},Fh),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await ai.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await ai.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},H9=class extends xu{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=rt(rt({},Fh),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},W9=class extends xu{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=rt(rt({},Fh),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ai.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},V9=class extends W9{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new G9(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},G9=class extends q9{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,rt(rt({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,rt(rt({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new K9(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},K9=class extends H9{constructor(e,t,n,r,i){super(e,t,i),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,rt(rt({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,rt(rt({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,rt(rt({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,rt(rt({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,rt(rt({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},Y9=class extends $9{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new B9(this.url,this.headers,e,this.fetch)}get vectors(){return new V9(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new z9(this.url+"/iceberg",this.headers,this.fetch)}};function pm(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}const BE="2.101.1",fc=30*1e3,Jv=3,u1=Jv*fc,J9="http://localhost:9999",X9="supabase.auth.token",Z9={"X-Client-Info":`gotrue-js/${BE}`},Xv="X-Supabase-Api-Version",UE={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Q9=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,eB=10*60*1e3;
386class yh extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function De(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class tB extends yh{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function nB(e){return De(e)&&e.name==="AuthApiError"}class nl extends yh{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Ao extends yh{constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class ri extends Ao{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function d1(e){return De(e)&&e.name==="AuthSessionMissingError"}class sc extends Ao{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class up extends Ao{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class dp extends Ao{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function rB(e){return De(e)&&e.name==="AuthImplicitGrantRedirectError"}class ix extends Ao{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class iB extends Ao{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Zv extends Ao{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function h1(e){return De(e)&&e.name==="AuthRetryableFetchError"}class sx extends Ao{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Qv extends Ao{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const A0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),ox=` 387\r=`.split(""),sB=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<ox.length;t+=1)e[ox[t].charCodeAt(0)]=-2;for(let t=0;t<A0.length;t+=1)e[A0[t].charCodeAt(0)]=t;return e})();function ax(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(A0[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(A0[r]),t.queuedBits-=6}}function $E(e,t,n){const r=sB[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function lx(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=o=>{lB(o,r,n)};for(let o=0;o<e.length;o+=1)$E(e.charCodeAt(o),i,s);return t.join("")}function oB(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function aB(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}oB(r,t)}}function lB(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Vc(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)$E(e.charCodeAt(i),n,r);return new Uint8Array(t)}function cB(e){const t=[];return aB(e,n=>t.push(n)),new Uint8Array(t)}function cl(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};return e.forEach(i=>
387ax(i,n,r)),ax(null,n,r),t.join("")}function uB(e){return Math.round(Date.now()/1e3)+e}function dB(){return Symbol("auth-callback")}const ar=()=>typeof window<"u"&&typeof document<"u",Ya={tested:!1,writable:!1},zE=()=>{if(!ar())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Ya.tested)return Ya.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Ya.tested=!0,Ya.writable=!0}catch{Ya.tested=!0,Ya.writable=!1}return Ya.writable};function hB(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,s)=>{t[s]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const qE=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),fB=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",pc=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Ja=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},or=async(e,t)=>{await e.removeItem(t)};class mm{constructor(){this.promise=new mm.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}mm.promiseConstructor=Promise;function hp(e){const t=e.split(".");if(t.length!==3)throw new Qv("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!Q9.test(t[r]))throw new Qv("JWT not in base64url format");return{header:JSON.parse(lx(t[0])),payload:JSON.parse(lx(t[1])),signature:Vc(t[2]),raw:{header:t[0],payload:t[1]}}}async function pB(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function mB(e,t){return new Promise((r,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const o=await e(s);if(!t(s,null,o)){r(o);return}}catch(o){if(!t(s,o)){i(o);return}}})()})}function gB(e){return("0"+e.toString(16)).substr(-2)}function vB(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let s=0;s<56;s++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,gB).join("")}async function yB(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function wB(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await yB(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function oc(e,t,n=!1){const r=vB();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await pc(e,`${t}-code-verifier`,i);const s=await wB(r);return[s,r===s?"plain":"s256"]}const bB=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function _B(e){const t=e.headers.get(Xv);if(!t||!t.match(bB))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function xB(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function SB(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const kB=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ac(e){if(!kB.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function f1(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function AB(e,t){return new Proxy(e,{get:(n,r,i)=>{if(r==="__isInsecureUserWarningProxy")return!0;
387if(typeof r=="symbol"){const s=r.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)"||s==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,i)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,i)}})}function cx(e){return JSON.parse(JSON.stringify(e))}const el=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),EB=[502,503,504];async function ux(e){var t;if(!fB(e))throw new Zv(el(e),0);if(EB.includes(e.status))throw new Zv(el(e),e.status);let n;try{n=await e.json()}catch(s){throw new nl(el(s),s)}let r;const i=_B(e);if(i&&i.getTime()>=UE["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new sx(el(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new ri}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((s,o)=>s&&typeof o=="string",!0))throw new sx(el(n),e.status,n.weak_password.reasons);throw new tB(el(n),e.status||500,r)}const NB=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function et(e,t,n,r){var i;const s=Object.assign({},r==null?void 0:r.headers);s[Xv]||(s[Xv]=UE["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const o=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await CB(e,t,n+a,{headers:s,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function CB(e,t,n,r,i,s){const o=NB(t,r,i,s);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new Zv(el(l),0)}if(a.ok||await ux(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await ux(l)}}function Hi(e){var t;let n=null;TB(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=uB(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function dx(e){const t=Hi(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function ta(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function LB(e){return{data:e,error:null}}function PB(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s}=e,o=pm(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function hx(e){return e}function TB(e){return e.access_token&&e.refresh_token&&e.expires_in}const p1=["global","local","others"];class RB{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=qE(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)}}async signOut(t,n=p1[0]){if(p1.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${p1.join(", ")}`);try{return await et(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(De(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await et(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:ta})}catch(r){if(De(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=pm(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await et(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:PB,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(De(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await et(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:ta})}catch(n){if(De(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,s,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=await et(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:hx});if(d.error)throw d.error;const p=await d.json(),m=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,h=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>
3870&&(h.forEach(y=>{const w=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(y.split(";")[1].split("=")[1]);c[`${x}Page`]=w}),c.total=parseInt(m)),{data:Object.assign(Object.assign({},p),c),error:null}}catch(c){if(De(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){ac(t);try{return await et(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:ta})}catch(n){if(De(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){ac(t);try{return await et(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:ta})}catch(r){if(De(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){ac(t);try{return await et(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:ta})}catch(r){if(De(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){ac(t.userId);try{const{data:n,error:r}=await et(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(De(n))return{data:null,error:n};throw n}}async _deleteFactor(t){ac(t.userId),ac(t.id);try{return{data:await et(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(De(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,i,s,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=await et(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:hx});if(d.error)throw d.error;const p=await d.json(),m=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,h=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>0&&(h.forEach(y=>{const w=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(y.split(";")[1].split("=")[1]);c[`${x}Page`]=w}),c.total=parseInt(m)),{data:Object.assign(Object.assign({},p),c),error:null}}catch(c){if(De(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await et(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(De(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await et(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(De(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await et(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(De(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await et(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(De(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await et(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(De(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t!=null&&t.type&&(n.type=t.type),await et(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var i;return{data:{providers:(i=r==null?void 0:r.providers)!==null&&i!==void 0?i:[]},error:null}}})}catch(n){if(De(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await et(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(De(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await et(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(De(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await et(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(De(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await et(this.fetch,"DELET
387E",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(De(n))return{data:null,error:n};throw n}}}function fx(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const ys={debug:!!(globalThis&&zE()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class HE extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class px extends HE{}async function OB(e,t,n){ys.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;let i;t>0&&(i=setTimeout(()=>{r.abort(),ys.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){clearTimeout(i),ys.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{ys.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw ys.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new px(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(ys.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null," "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),clearTimeout(i),await n()}})}catch(s){if(t>0&&clearTimeout(i),(s==null?void 0:s.name)==="AbortError"&&t>0){if(r.signal.aborted)return ys.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async o=>{if(o){ys.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,o.name);try{return await n()}finally{ys.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,o.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await n()}));throw ys.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new px(`Lock "${e}" was released because another request stole it`)}throw s}}function IB(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function WE(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function jB(e){return parseInt(e,16)}function FB(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function DB(e){var t;const{chainId:n,domain:r,expirationTime:i,issuedAt:s=new Date,nonce:o,notBefore:a,requestId:l,resources:c,scheme:d,uri:p,version:m}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!p)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(m!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${m}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 388`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const h=WE(e.address),y=d?`${d}://${r}`:r,w=e.statement?`${e.statement} 389`:"",x=`${y} wants you to sign in with your Ethereum account: 390${h} 391 392${w}`;let v=`URI: ${p} 393Version: ${m} 394Chain ID: ${n}${o?` 395Nonce: ${o}`:""} 396Issued At: ${s.toISOString()}`;if(i&&(v+=` 397Expiration Time: ${i.toISOString()}`),a&&(v+=` 398Not Before: ${a.toISOString()}`),l&&(v+=` 399Request ID: ${l}`),c){let _=` 400Resources:`;
400for(const S of c){if(!S||typeof S!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${S}`);_+=` 401- ${S}`}v+=_}return`${x} 402${v}`}class Dn extends Error{constructor({message:t,code:n,cause:r,name:i}){var s;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(s=i??(r instanceof Error?r.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=n}}class E0 extends Dn{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function MB({error:e,options:t}){var n,r,i;const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Dn({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=s.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Dn({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=s.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Dn({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=s.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new Dn({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Dn({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Dn({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return s.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Dn({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Dn({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(VE(o)){if(s.rp.id!==o)return new Dn({message:`The RP ID "${s.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Dn({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new Dn({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Dn({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Dn({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function BB({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Dn({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Dn({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(VE(r)){if(n.rpId!==r)return new Dn({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Dn({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Dn({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ER
402ROR",cause:e})}return new Dn({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class UB{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const $B=new UB;function zB(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,i=pm(e,["challenge","user","excludeCredentials"]),s=Vc(t).buffer,o=Object.assign(Object.assign({},n),{id:Vc(n.id).buffer}),a=Object.assign(Object.assign({},i),{challenge:s,user:o});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const c=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:Vc(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function qB(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=pm(e,["challenge","allowCredentials"]),i=Vc(t).buffer,s=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){s.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];s.allowCredentials[o]=Object.assign(Object.assign({},a),{id:Vc(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return s}function HB(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:cl(new Uint8Array(e.response.attestationObject)),clientDataJSON:cl(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function WB(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:cl(new Uint8Array(i.authenticatorData)),clientDataJSON:cl(new Uint8Array(i.clientDataJSON)),signature:cl(new Uint8Array(i.signature)),userHandle:i.userHandle?cl(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function VE(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function mx(){var e,t;return!!(ar()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function VB(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new E0("Browser returned unexpected credential type",t)}:{data:null,error:new E0("Empty credential response",t)}}catch(t){return{data:null,error:MB({error:t,options:e})}}}async function GB(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new E0("Browser returned unexpected credential type",t)}:{data:null,error:new E0("Empty credential response",t)}}catch(t){return{data:null,error:BB({error:t,options:e})}}}const KB={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},YB={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function N0(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),n=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),r={};for(const i of e)if(i)for(const s in i){const o=i[s];if(o!==void 0)if(Array.isArray(o))r[s]=o;else if(n(o))r[s]=o;else if(t(o)){const a=r[s];t(a)?r[s]=N0(a,o):r[s]=N0(o)}else r[s]=o}return r}function JB(e,t){return N0(KB,e,t||{})}function XB(e,t){return N0(YB,e,t||{})}class ZB{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:i},s){var o;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!a)return{data:null,error:l};const c=i??$B.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:d}=a.webauthn.credential_options.publicKey;if(!d.name){const p=r;if(p)d.name=`${d.id}:${p}`;else{const h=(await this.client.getUser()).data.user,y=((o=h==null?void 0:h.user_metadata)===null||o===void 0?void 0:o.name)||(h==null?void 0:h.email)||(h==null?void 0:h.id)||"User";d.name=`${d.id}:${y}`}}d.displayName||(d.displayName=d.name)}switch(a.webauthn.type){case"create":{const d=JB(a.webauthn.credential_options.publicKey,s==null?void 0:s.create),{data:p,error:m}=await VB({publicKey:d,signal:c});return p?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:p}},error:null}:{data:null,error:m}}case"request":{const d=XB(a.webauthn.credential_options.publicKey,s==null?void 0:s.request),{data:p,error:m}=await GB(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:d,signal:c}));return p?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:p}},error:null}:{data:null,error:m}}}}catch(a){return De(a)?{data:null,error:a}:{data:null,error:new nl("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!n)return{data:null,error:new yh("rpId is required for WebAuthn authentication")};try{if(!mx())return{data:null,error:new nl("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:i},{request:s});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(o){return De(o)?{data:null,error:o}:{data:null,error:new nl("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!n)return{data:null,error:new yh("rpId is required for WebAuthn registration")};try{if(!mx())return{data:null,error:new nl("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(d=>{var p;return(p=d.data)===null||p===void 0?void 0:p.all.find(m=>m.factor_type==="webauthn"&&m.friendly_name===t&&m.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:a};const{data:l,error:c}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:i},{create:s});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(o){return De(o)?{data:null,error:o}:{data:null,error:new nl("Unexpected error in register",o)}}}}IB();const QB={url:J9,storageKey:X9,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Z9,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1};async function gx(e,t,n){return await n()}const lc={};class wh{get jwks(){var t,n;return(n=(t=lc[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){lc[this.storageKey]=Object.assign(Object.assign({},lc[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=lc[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){lc[this.storageKey]=Object.assign(Object.assign({},lc[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const s=Object.assign(Object.assign({},QB),t);if(this.storageKey=s.storageKey,this.instanceID=(n=wh.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,wh.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.instanceID>0&&ar()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=s.persistSession,this.autoRefreshToken=s.autoRefreshToken,this.admin=new RB({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=qE(s.fetch),this.lock=s.lock||gx,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,this.throwOnError=s.throwOnError,this.lockAcquireTimeout=s.lockAcquireTimeout,s.lock?this.lock=s.lock:this.persistSession&&ar()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=OB:this.lock=gx,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new ZB(this)}
402,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:zE()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=fx(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=fx(this.memoryStorage)),ar()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}s.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${BE}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(ar()&&(n=hB(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),ar()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),rB(s)){const l=(t=s.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:s}}return{error:s}}const{session:o,redirectType:a}=i;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return De(n)?this._returnResult({error:n}):this._returnResult({error:new nl("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{const s=await et(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:Hi}),{data:o,error:a}=s;
402if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(De(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signUp(t){var n,r,i;try{let s;if("email"in t){const{email:d,password:p,options:m}=t;let h=null,y=null;this.flowType==="pkce"&&([h,y]=await oc(this.storage,this.storageKey)),s=await et(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:m==null?void 0:m.emailRedirectTo,body:{email:d,password:p,data:(n=m==null?void 0:m.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken},code_challenge:h,code_challenge_method:y},xform:Hi})}else if("phone"in t){const{phone:d,password:p,options:m}=t;s=await et(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:p,data:(r=m==null?void 0:m.data)!==null&&r!==void 0?r:{},channel:(i=m==null?void 0:m.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken}},xform:Hi})}else throw new up("You must provide either an email or phone number and a password");const{data:o,error:a}=s;
402if(a||!o)return await or(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(await or(this.storage,`${this.storageKey}-code-verifier`),De(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithPassword(t){try{let n;if("email"in t){const{email:s,password:o,options:a}=t;n=await et(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:dx})}else if("phone"in t){const{phone:s,password:o,options:a}=t;n=await et(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:dx})}else throw new up("You must provide either an email or phone number and a password");const{data:r,error:i}=n;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!r||!r.session||!r.user){const s=new sc;return this._returnResult({data:{user:null,session:null},error:s})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:i})}catch(n){if(De(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,i,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,i,s,o,a,l,c,d,p,m;let h,y;if("message"in t)h=t.message,y=t.signature;else{const{chain:w,wallet:x,statement:v,options:_}=t;let S;if(ar())if(typeof x=="object")S=x;else{const R=window;if("ethereum"in R&&typeof R.ethereum=="object"&&"request"in R.ethereum&&typeof R.ethereum.request=="function")S=R.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(_!=null&&_.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=x}const A=new URL((n=_==null?void 0:_.url)!==null&&n!==void 0?n:window.location.href),O=await S.request({method:"eth_requestAccounts"}).then(R=>R).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!O||O.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const $=WE(O[0]);let H=(r=_==null?void 0:_.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!H){const R=await S.request({method:"eth_chainId"});H=jB(R)}const B={domain:A.host,address:$,statement:v,uri:A.href,version:"1",chainId:H,nonce:(i=_==null?void 0:_.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(o=(s=_==null?void 0:_.signInWithEthereum)===null||s===void 0?void 0:s.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=_==null?void 0:_.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=_==null?void 0:_.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=_==null?void 0:_.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(d=_==null?void 0:_.signInWithEthereum)===null||d===void 0?void 0:d.resources};h=DB(B),y=await S.request({method:"personal_sign",params:[FB(h),$]})}try{const{data:w,error:x}=await et(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:h,signature:y},!((p=t.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(m=t.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:Hi});if(x)throw x;if(!w||!w.session||!w.user){const v=new sc;return this._returnResult({data:{user:null,session:null},error:v})}return w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),this._returnResult({data:Object.assign({},w),error:x})}catch(w){if(De(w))return this._returnResult({data:{user:null,session:null},error:w});throw w}}async signInWithSolana(t){var n,r,i,s,o,a,l,c,d,p,m,h;let y,w;if("message"in t)y=t.message,w=t.signature;else{const{chain:x,wallet:v,statement:_,options:S}=t;let A;if(ar())if(typeof v=="object")A=v;else{const $=window;if("solana"in $&&typeof $.solana=="object"&&("signIn"in $.solana&&typeof $.solana.signIn=="function"||"signMessage"in $.solana&&typeof $.solana.signMessage=="function"))A=$.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(S!=null&&S.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");A=v}
402const O=new URL((n=S==null?void 0:S.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in A&&A.signIn){const $=await A.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},S==null?void 0:S.signInWithSolana),{version:"1",domain:O.host,uri:O.href}),_?{statement:_}:null));let H;if(Array.isArray($)&&$[0]&&typeof $[0]=="object")H=$[0];else if($&&typeof $=="object"&&"signedMessage"in $&&"signature"in $)H=$;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in H&&"signature"in H&&(typeof H.signedMessage=="string"||H.signedMessage instanceof Uint8Array)&&H.signature instanceof Uint8Array)y=typeof H.signedMessage=="string"?H.signedMessage:new TextDecoder().decode(H.signedMessage),w=H.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in A)||typeof A.signMessage!="function"||!("publicKey"in A)||typeof A!="object"||!A.publicKey||!("toBase58"in A.publicKey)||typeof A.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");y=[`${O.host} wants you to sign in with your Solana account:`,A.publicKey.toBase58(),..._?["",_,""]:[""],"Version: 1",`URI: ${O.href}`,`Issued At: ${(i=(r=S==null?void 0:S.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((s=S==null?void 0:S.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${S.signInWithSolana.notBefore}`]:[],...!((o=S==null?void 0:S.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${S.signInWithSolana.expirationTime}`]:[],...!((a=S==null?void 0:S.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${S.signInWithSolana.chainId}`]:[],...!((l=S==null?void 0:S.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${S.signInWithSolana.nonce}`]:[],...!((c=S==null?void 0:S.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${S.signInWithSolana.requestId}`]:[],...!((p=(d=S==null?void 0:S.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||p===void 0)&&p.length?["Resources",...S.signInWithSolana.resources.map(H=>`- ${H}`)]:[]].join(` 403`);const $=await A.signMessage(new TextEncoder().encode(y),"utf8");if(!$||!($ instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");w=$}}try{const{data:x,error:v}=await et(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:cl(w)},!((m=t.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Hi});if(v)throw v;if(!x||!x.session||!x.user){const _=new sc;return this._returnResult({data:{user:null,session:null},error:_})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:v})}catch(x){if(De(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const n=await Ja(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new iB;const{data:s,error:o}=await et(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Hi});if(await or(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!s||!s.session||!s.user){const a=new sc;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:o})}catch(s){if(await or(this.storage,`${this.storageKey}-code-verifier`),De(s))return this._returnResult({data:{user:null,session:null,redirectType:null},error:s});throw s}}async signInWithIdToken(t){try{const{options:n,provider:r,token:i,access_token:s,nonce:o}=t,a=await et(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:s,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Hi}),{data:l,error:c}=a;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const d=new sc;return this._returnResult({data:{user:null,session:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(n){if(De(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,i,s,o;try{if("email"in t){const{email:a,options:l}=t;
403let c=null,d=null;this.flowType==="pkce"&&([c,d]=await oc(this.storage,this.storageKey));const{error:p}=await et(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:p})}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:d}=await et(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:d})}throw new up("You must provide either an email or phone number.")}catch(a){if(await or(this.storage,`${this.storageKey}-code-verifier`),De(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let i,s;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,s=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await et(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:Hi});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(De(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var n,r,i,s,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await oc(this.storage,this.storageKey));const c=await et(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:LB});return!((s=c.data)===null||s===void 0)&&s.url&&ar()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await or(this.storage,`${this.storageKey}-code-verifier`),De(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new ri;const{error:i}=await et(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(De(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:i,options:s}=t,{error:o}=await et(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:r,type:i,options:s}=t,{data:o,error:a}=await et(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new up("You must provide either an email or phone number and a type")}catch(n){if(De(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Ja(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
403id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<u1:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await Ja(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=f1()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=AB(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{session:null},error:s}):this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await et(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:ta}):await this._useSession(async n=>{var r,i,s;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new ri}:await et(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:ta})})}catch(n){if(De(n))return d1(n)&&(await this._removeSession(),await or(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:i,error:s}=r;if(s)throw s;if(!i.session)throw new ri;const o=i.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await oc(this.storage,this.storageKey));const{data:c,error:d}=await et(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:ta});if(d)throw d;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await or(this.storage,`${this.storageKey}-code-verifier`),De(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new ri;const n=Date.now()/1e3;let r=n,i=!0,s=null;const{payload:o}=hp(t.access_token);if(o.exp&&(r=o.exp,i=r<=n),i){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};s=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});s={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return this._returnResult({data:{user:s.user,session:s},error:null})}catch(n){if(De(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:a}=n;if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new ri;const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{user:null,session:null},error:s}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(De(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!ar())throw new dp("No browser detected.");
403if(t.error||t.error_description||t.error_code)throw new dp(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new ix("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new dp("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new ix("No code detected.");const{data:_,error:S}=await this._exchangeCodeForSession(t.code);if(S)throw S;const A=new URL(window.location.href);return A.searchParams.delete("code"),window.history.replaceState(window.history.state,"",A.toString()),{data:{session:_.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:s,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=t;if(!s||!a||!o||!c)throw new dp("No session defined in URL");const d=Math.round(Date.now()/1e3),p=parseInt(a);let m=d+p;l&&(m=parseInt(l));const h=m-d;h*1e3<=fc&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${p}s`);const y=m-p;d-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,m,d):d-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,m,d);const{data:w,error:x}=await this._getUser(s);if(x)throw x;const v={provider_token:r,provider_refresh_token:i,access_token:s,expires_in:p,expires_at:m,refresh_token:o,token_type:c,user:w.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:t.type},error:null})}catch(r){if(De(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Ja(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s&&!d1(s))return this._returnResult({error:s});const o=(r=i.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(nB(a)&&(a.status===404||a.status===401||a.status===403)||d1(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await or(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=dB(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,i;try{const{data:{session:s},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await oc(this.storage,this.storageKey,!0));try{return await et(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(await or(this.storage,`${this.storageKey}-code-verifier`),De(s))return this._returnResult({data:null,error:s});throw s}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(De(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:i}=await this._useSession(async s=>{var o,a,l,c,d;const{data:p,error:m}=s;if(m)throw m;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await et(this.fetch,"GET",h,{headers:this.headers,jwt:(d=(c=p.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(i)throw i;return ar()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(De(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:i,data:{session:s}}=n;
403if(i)throw i;const{options:o,provider:a,token:l,access_token:c,nonce:d}=t,p=await et(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=s==null?void 0:s.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:c,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Hi}),{data:m,error:h}=p;return h?this._returnResult({data:{user:null,session:null},error:h}):!m||!m.session||!m.user?this._returnResult({data:{user:null,session:null},error:new sc}):(m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("USER_UPDATED",m.session)),this._returnResult({data:m,error:h}))}catch(i){if(await or(this.storage,`${this.storageKey}-code-verifier`),De(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;if(o)throw o;return await et(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(De(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await mB(async i=>(i>0&&await pB(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await et(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Hi})),(i,s)=>{const o=200*Math.pow(2,i);return s&&h1(s)&&Date.now()+o-r<fc})}catch(r){if(this._debug(n,"error",r),De(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),ar()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const i=await Ja(this.storage,this.storageKey);if(i&&this.userStorage){let o=await Ja(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:i.user},await pc(this.userStorage,this.storageKey+"-user",o)),i.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:f1()}else if(i&&!i.user&&!i.user){const o=await Ja(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(i.user=o.user,await or(this.storage,this.storageKey+"-user"),await pc(this.storage,this.storageKey,i)):i.user=f1()}if(this._debug(r,"session from storage",i),!this._isValidSession(i)){this._debug(r,"session is not valid"),i!==null&&await this._removeSession();return}const s=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<u1;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${u1}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:o}=await this._callRefreshToken(i.refresh_token);o&&(console.error(o),h1(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(i.access_token);!a&&(o!=null&&o.user)?(i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(r,"error",i),console.error(i);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new ri;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new mm;const{data:s,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!s.session)throw new ri;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={data:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(i,"error",s),De(s)){const o={data:null,error:s};return h1(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const s=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){s.push(l)}});if(await Promise.all(o),s.length>0){for(let a=0;a<s.length;a+=1)console.error(s[a]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await or(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await pc(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const s=cx(i);await pc(this.storage,this.storageKey,s)}else{const i=cx(n);await pc(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await or(this.storage,this.storageKey),await or(this.storage,this.storageKey+"-code-verifier"),await or(this.storage,this.storageKey+"-user"),this.userStorage&&await or(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&ar()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
403catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),fc);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((r.expires_at*1e3-t)/fc);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${fc}ms, refresh threshold is ${Jv} ticks`),i<=Jv&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof HE)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!ar()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,o]=await oc(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(a.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);i.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?this._returnResult({data:null,error:s}):await et(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(De(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;
403if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:c}=await et(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&l.type==="totp"&&(!((i=l==null?void 0:l.totp)===null||i===void 0)&&i.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if(De(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?HB(t.webauthn.credential_response):WB(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await et(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(n){if(De(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const o=await et(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});if(o.error)return o;const{data:a}=o;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:zB(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:qB(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(De(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const i={all:[],phone:[],totp:[],webauthn:[]};for(const s of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])i.all.push(s),s.status==="verified"&&i[s.factor_type].push(s);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,i,s;if(t)try{const{payload:h}=hp(t);let y=null;h.aal&&(y=h.aal);let w=y;const{data:{user:x},error:v}=await this.getUser(t);if(v)return this._returnResult({data:null,error:v});((r=(n=x==null?void 0:x.factors)===null||n===void 0?void 0:n.filter(A=>A.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(w="aal2");const S=h.amr||[];return{data:{currentLevel:y,nextLevel:w,currentAuthenticationMethods:S},error:null}}catch(h){if(De(h))return this._returnResult({data:null,error:h});throw h}const{data:{session:o},error:a}
403=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=hp(o.access_token);let c=null;l.aal&&(c=l.aal);let d=c;((s=(i=o.user.factors)===null||i===void 0?void 0:i.filter(h=>h.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(d="aal2");const m=l.amr||[];return{data:{currentLevel:c,nextLevel:d,currentAuthenticationMethods:m},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?await et(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new ri})})}catch(n){if(De(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new ri});const o=await et(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&ar()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(De(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new ri});const o=await et(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&ar()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(De(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await et(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new ri})})}catch(t){if(De(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?(await et(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new ri})})}catch(n){if(De(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const i=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+eB>i)return r;const{data:s,error:o}=await et(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,r=s.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:h,error:y}
403=await this.getSession();if(y||!h.session)return this._returnResult({data:null,error:y});r=h.session.access_token}const{header:i,payload:s,signature:o,raw:{header:a,payload:l}}=hp(r);n!=null&&n.allowExpired||xB(s.exp);const c=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!c){const{error:h}=await this.getUser(r);if(h)throw h;return{data:{claims:s,header:i,signature:o},error:null}}const d=SB(i.alg),p=await crypto.subtle.importKey("jwk",c,d,!0,["verify"]);if(!await crypto.subtle.verify(d,p,o,cB(`${a}.${l}`)))throw new Qv("Invalid JWT signature");return{data:{claims:s,header:i,signature:o},error:null}}catch(r){if(De(r))return this._returnResult({data:null,error:r});throw r}}}wh.nextInstanceID={};const eU=wh,tU="2.101.1";let wd="";typeof Deno<"u"?wd="deno":typeof document<"u"?wd="web":typeof navigator<"u"&&navigator.product==="ReactNative"?wd="react-native":wd="node";const nU={"X-Client-Info":`supabase-js-${wd}/${tU}`},rU={headers:nU},iU={schema:"public"},sU={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},oU={};function bh(e){"@babel/helpers - typeof";return bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bh(e)}function aU(e,t){if(bh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lU(e){var t=aU(e,"string");return bh(t)=="symbol"?t:t+""}function cU(e,t,n){return(t=lU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vx(Object(n),!0).forEach(function(r){cU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const uU=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),dU=()=>Headers,hU=(e,t,n)=>{const r=uU(n),i=dU();return async(s,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let c=new i(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),r(s,Sn(Sn({},o),{},{headers:c}))}};function fU(e){return e.endsWith("/")?e:e+"/"}function pU(e,t){var n,r;const{db:i,auth:s,realtime:o,global:a}=e,{db:l,auth:c,realtime:d,global:p}=t,m={db:Sn(Sn({},l),i),auth:Sn(Sn({},c),s),realtime:Sn(Sn({},d),o),storage:{},global:Sn(Sn(Sn({},p),a),{},{headers:Sn(Sn({},(n=p==null?void 0:p.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?m.accessToken=e.accessToken:delete m.accessToken,m}function mU(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(fU(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var gU=class extends eU{constructor(e){super(e)}},vU=class{constructor(e,t,n){var r,i;this.supabaseUrl=e,this.supabaseKey=t;const s=mU(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",s),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",s),this.storageUrl=new URL("storage/v1",s),this.functionsUrl=new URL("functions/v1",s);const o=`sb-${s.hostname.split(".")[0]}-auth-token`,a={db:iU,realtime:oU,auth:Sn(Sn({},sU),{},{storageKey:o}),global:rU},l=pU(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(i=l.global.headers)!==null&&i!==void 0?i:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(d,p)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(p)} is not possible`)}});else{var c;this.auth=this._initSupabaseAuthClient((c=l.auth)!==null&&c!==void 0?c:{},this.headers,l.global.fetch)}this.fetch=hU(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Sn({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new BM(new URL("rest/v1",s).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}
403),this.storage=new Y9(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new TM(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,storageKey:s,flowType:o,lock:a,debug:l,throwOnError:c},d,p){const m={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new gU({url:this.authUrl.href,headers:Sn(Sn({},m),d),storageKey:s,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,flowType:o,lock:a,debug:l,throwOnError:c,fetch:p,hasCustomAuthorizationHeader:Object.keys(this.headers).some(h=>h.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new w9(this.realtimeUrl.href,Sn(Sn({},e),{},{params:Sn(Sn({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const yU=(e,t,n)=>new vU(e,t,n);function wU(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}wU()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const bU="https://ttrczezcvefvzrlfsacc.supabase.co",_U="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InR0cmN6ZXpjdmVmdnpybGZzYWNjIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzM3NjAwMzksImV4cCI6MjA4OTMzNjAzOX0.h8eVx0_Eh-3gr59fyEpG0zjFZnhlbY0cRbPoewHhJ2w",xU=yU(bU,_U,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}});function SU({onSubmit:e,businessType:t,activityType:n}){const[r,i]=D.useState(""),[s,o]=D.useState(""),[a,l]=D.useState(""),[c,d]=D.useState(""),[p,m]=D.useState({}),[h,y]=D.useState(!1),w=()=>{const v={};return r.trim()||(v.firstName="Le prénom est requis"),s.trim()||(v.lastName="Le nom est requis"),a.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a)||(v.email="L'adresse email n'est pas valide"):v.email="L'adresse email est requise",m(v),Object.keys(v).length===0},x=async v=>{if(v.preventDefault(),!!w()){y(!0);try{const _={first_name:r.trim(),last_name:s.trim(),email:a.trim(),phone:c.trim()||null,business_type:t||null,activity_type:n||null},{error:S}=await xU.from("leads").insert(_);S&&console.error("Error saving lead:",S),fetch("https://hooks.zapier.com/hooks/catch/4488271/up6dco5/",{method:"POST",headers:{"Content-Type":"application/json"},mode:"no-cors",body:JSON.stringify({..._,timestamp:new Date().toISOString()})}).catch(A=>console.error("Zapier webhook error:",A)),e({firstName:r.trim(),lastName:s.trim(),email:a.trim(),phone:c.trim()||void 0})}catch(_){console.error("Error saving lead:",_),e({firstName:r.trim(),lastName:s.trim(),email:a.trim(),phone:c.trim()||void 0})}finally{y(!1)}}};return j.jsxs("div",{children:[j.jsx("h2",{className:"font-bold mb-2",style:{fontFamily:"'Crimson Pro', serif",fontSize:28,color:"hsl(var(--primary))"},children:"Vos coordonnées"}),j.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"Renseignez vos informations pour accéder à votre estimation détaillée."}),j.jsxs("form",{onSubmit:x,className:"flex flex-col gap-4",children:[j.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[j.jsxs("div",{className:"flex flex-col gap-1.5",children:[j.jsxs("label",{className:"text-sm font-medium",style:{color:"hsl(var(--foreground))"},children:["Prénom ",j.jsx("span",{className:"text-destructive",children:"*"})]}),j.jsx("input",{type:"text",value:r,onChange:v=>i(v.target.value),placeholder:"Jean",maxLength:100,className:"h-11 w-full rounded-lg border border-input bg-card px-3 py-2 text-sm r
403ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"}),p.firstName&&j.jsx("p",{className:"text-xs text-destructive",children:p.firstName})]}),j.jsxs("div",{className:"flex flex-col gap-1.5",children:[j.jsxs("label",{className:"text-sm font-medium",style:{color:"hsl(var(--foreground))"},children:["Nom ",j.jsx("span",{className:"text-destructive",children:"*"})]}),j.jsx("input",{type:"text",value:s,onChange:v=>o(v.target.value),placeholder:"Dupont",maxLength:100,className:"h-11 w-full rounded-lg border border-input bg-card px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"}),p.lastName&&j.jsx("p",{className:"text-xs text-destructive",children:p.lastName})]})]}),j.jsxs("div",{className:"flex flex-col gap-1.5",children:[j.jsxs("label",{className:"text-sm font-medium",style:{color:"hsl(var(--foreground))"},children:["Adresse email ",j.jsx("span",{className:"text-destructive",children:"*"})]}),j.jsx("input",{type:"email",value:a,onChange:v=>l(v.target.value),placeholder:"[email protected]",maxLength:255,className:"h-11 w-full rounded-lg border border-input bg-card px-3 py-2 text-sm r
403ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"}),p.email&&j.jsx("p",{className:"text-xs text-destructive",children:p.email})]}),j.jsxs("div",{className:"flex flex-col gap-1.5",children:[j.jsxs("label",{className:"text-sm font-medium",style:{color:"hsl(var(--foreground))"},children:["N° de téléphone ",j.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"(optionnel)"})]}),j.jsx("input",{type:"tel",value:c,onChange:v=>d(v.target.value),placeholder:"06 12 34 56 78",maxLength:20,className:"h-11 w-full rounded-lg border border-input bg-card px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"})]}),j.jsx("button",{type:"submit",className:"btn-cta mt-4",disabled:h,children:h?"Envoi en cours...":"Voir mon estimation"})]})]})}const kU=4;function AU(){const[e,t]=D.useState(1),[n,r]=D.useState(null),[i,s]=D.useState(null),[o,a]=D.useState(null),l=D.useMemo(()=>hb.find(x=>x.id===n),[n]),c=D.useMemo(()=>n?n!=="sci"&&!i?[]:CO(n,i||"liberal"):[],[n,i]),d=()=>{e===1&&n==="sci"?t(3):e<kU&&t(e+1)},p=()=>{e===3&&n==="sci"?t(1):e>1&&t(e-1)},m=x=>{a(x),t(4)},h=()=>e===1?n!==null:e===2?i!==null:!0,y=n==="sci"&&e>=3?e-1:e,w=n==="sci"?3:4;return j.jsxs("div",{className:"w-full max-w-[608px] mx-auto px-4",children:[j.jsx(NM,{totalSteps:w,currentStep:y,simulatorName:"Simulateur de coûts de création d'une entreprise en France",onBack:p,showBack:e>1}),e===1&&j.jsxs("div",{className:"fade-in",children:[j.jsx("h2",{className:"font-bold mb-4",style:{fontFamily:"'Crimson Pro', serif",fontSize:28,color:"#1D3D5D"},children:"Quelle est votre forme juridique ?"}),j.jsx("div",{className:"mb-4",children:j.jsx(TO,{businessTypes:hb,selectedType:n,onSelect:r})}),j.jsxs("div",{className:"expert-tip mt-4 mb-8",children:[j.jsx("img",{src:LO,alt:"Célestin Boudeau",className:"w-12 h-12 rounded-full flex-shrink-0 object-cover"}),j.jsxs("div",{className:"flex-1",children:[j.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[j.jsx("span",{className:"text-base font-semibold",children:"Célestin Boudeau"}),j.jsx("span",{className:"text-xs font-semibold px-2.5 py-0.5 rounded-full bg-white",style:{color:"#1D3D5D"},children:"Juriste"})]}),j.jsx("p",{className:"text-sm",style:{color:"#43444C"},children:"La SASU ou la SAS sont les formes les plus flexibles pour les créateurs d'entreprise."})]})]})]}),e===2&&j.jsxs("div",{className:"fade-in",children:[j.jsx("h2",{className:"font-bold mb-4",style:{fontFamily:"'Crimson Pro', serif",fontSize:28,color:"#1D3D5D"},children:"Quelle est la nature de votre activité ?"}),j.jsx("div",{className:"mb-4",children:j.jsx(OO,{selectedType:i,onSelect:s})})]}),e===3&&j.jsx("div",{className:"fade-in",children:j.jsx(SU,{onSubmit:m,businessType:n,activityType:i})}),e===4&&l&&j.jsx("div",{className:"fade-in",children:j.jsx(AM,{costs:c,businessTypeName:l.name,businessTypeId:l.id})}),e<3&&j.jsx("div",{className:"flex justify-center mt-8",children:j.jsx("button",{onClick:d,disabled:!h(),className:"btn-cta",children:"Continuer"})})]})}const EU=()=>j.jsxs("div",{className:"min-h-screen bg-white dark:bg-background",children:[j.jsx("main",{className:"py-8 md:py-12",children:j.jsx(AU,{})}),j.jsx("footer",{className:"border-t border-border py-5",children:j.jsx("div",{className:"max-w-[608px] mx-auto px-4",children:j.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"Estimation indicative · Les tarifs peuvent varier selon le département et la complexité de votre dossier."})})})]}),NU=()=>{const e=yk();return D.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),j.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:j.jsxs("div",{className:"text-center",children:[j.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),j.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),j.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},CU=new MR,LU=()=>j.jsx(UR,{client:CU,children:j.jsxs(pR,{children:[j.jsx(YL,{}),j.jsx(NP,{}),j.jsx(AO,{children:j.jsxs(xO,{children:[j.jsx(_v,{path:"/",element:j.jsx(EU,{})}),j.jsx(_v,{path:"*",element:j.jsx(NU,{})})]})})]})});US(document.getElementById("root")).render(j.jsx(LU,{}));export{qt as _,TU as c,Ex 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.