vendor: 6,366 bytes, lines 1-9
1var jte=Object.defineProperty;var OR=e=>{throw TypeError(e)};var _te=(e,t,n)=>t in e?jte(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var en=(e,t,n)=>_te(e,typeof t!="symbol"?t+"":t,n),V_=(e,t,n)=>t.has(e)||OR("Cannot "+n);var _e=(e,t,n)=>(V_(e,t,"read from private field"),n?n.call(e):t.get(e)),Jt=(e,t,n)=>t.has(e)?OR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),kt=(e,t,n,r)=>(V_(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Mn=(e,t,n)=>(V_(e,t,"access private method"),n);var xb=(e,t,n,r)=>({set _(i){kt(e,t,i,n)},get _(){return _e(e,t,r)}});function Nte(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 bb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W_={exports:{}},Zv={},H_={exports:{}},qn={};/** 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 RR;function Ste(){if(RR)return qn;RR=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator;function p($){return $===null||typeof $!="object"?null:($=f&&$[f]||$["@@iterator"],typeof $=="function"?$:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,v={};function g($,B,z){this.props=$,this.context=B,this.refs=v,this.updater=z||h}g.prototype.isReactComponent={},g.prototype.setState=function($,B){if(typeof $!="object"&&typeof $!="function"&&$!=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,$,B,"setState")},g.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function y(){}y.prototype=g.prototype;function w($,B,z){this.props=$,this.context=B,this.refs=v,this.updater=z||h}var j=w.prototype=new y;j.constructor=w,x(j,g.prototype),j.isPureReactComponent=!0;var _=Array.isArray,N=Object.prototype.hasOwnProperty,A={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function k($,B,z){var ee,te={},X=null,ne=null;if(B!=null)for(ee in B.ref!==void 0&&(ne=B.ref),B.key!==void 0&&(X=""+B.key),B)N.call(B,ee)&&!E.hasOwnProperty(ee)&&(te[ee]=B[ee]);var le=arguments.length-2;if(le===1)te.children=z;else if(1<le){for(var re=Array(le),he=0;he<le;he++)re[he]=arguments[he+2];te.children=re}if($&&$.defaultProps)for(ee in le=$.defaultProps,le)te[ee]===void 0&&(te[ee]=le[ee]);return{$$typeof:e,type:$,key:X,ref:ne,props:te,_owner:A.current}}function T($,B){return{$$typeof:e,type:$.type,key:B,ref:$.ref,props:$.props,_owner:$._owner}}function D($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function P($){var B={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(z){return B[z]})}var R=/\/+/g;function q($,B){return typeof $=="object"&&$!==null&&$.key!=null?P(""+$.key):B.toString(36)}function M($,B,z,ee,te){var X=typeof $;(X==="undefined"||X==="boolean")&&($=null);var ne=!1;if($===null)ne=!0;else switch(X){case"string":case"number":ne=!0;break;case"object":switch($.$$typeof){case e:case t:ne=!0}}if(ne)return ne=$,te=te(ne),$=ee===""?"."+q(ne,0):ee,_(te)?(z="",$!=null&&(z=$.replace(R,"$&/")+"/"),M(te,B,z,"",function(he){return he})):te!=null&&(D(te)&&(te=T(te,z+(!te.key||ne&&ne.key===te.key?"":(""+te.key).replace(R,"$&/")+"/")+$)),B.push(te)),1;if(ne=0,ee=ee===""?".":ee+":",_($))for(var le=0;le<$.length;le++){X=$[le];var re=ee+q(X,le);ne+=M(X,B,z,re,te)}else if(re=p($),typeof re=="function")for($=re.call($),le=0;!(X=$.next()).done;)X=X.value,re=ee+q(X,le++),ne+=M(X,B,z,re,te);else if(X==="object")throw B=String($),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.");return ne}function V($,B,z){if($==null)return $;var ee=[],te=0;return M($,ee,"","",function(X){return B.call(z,X,te++)}),ee}function H($){if($._status===-1){var B=$._result;B=B(),B.then(function(z){($._status===0||$._status===-1)&&($._status=1,$._result=z)},function(z){($._status===0||$._status===-1)&&($._status=2,$._result=z)}),$._status===-1&&($._status=0,$._result=B)}if($._status===1)return $._result.default;throw $._result}var Z={current:null},J={transition:null},K={ReactCurrentDispatcher:Z,ReactCurrentBatchConfig:J,ReactCurrentOwner:A};function F(){throw Error("act(...) is not supported in production builds of React.")}return qn.Children={map:V,forEach:function($,B,z){V($,function(){B.apply(this,arguments)},z)},count:function($){var B=0;return V($,function(){B++}),B},toArray:function($){return V($,function(B){return B})||[]},only:function($){if(!D($))throw Error("React.Children.only expected to receive a single React element child.");return $}}
vendor: 8,969 bytes, lines 9-33
9,qn.Component=g,qn.Fragment=n,qn.Profiler=i,qn.PureComponent=w,qn.StrictMode=r,qn.Suspense=c,qn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,qn.act=F,qn.cloneElement=function($,B,z){if($==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+$+".");var ee=x({},$.props),te=$.key,X=$.ref,ne=$._owner;if(B!=null){if(B.ref!==void 0&&(X=B.ref,ne=A.current),B.key!==void 0&&(te=""+B.key),$.type&&$.type.defaultProps)var le=$.type.defaultProps;for(re in B)N.call(B,re)&&!E.hasOwnProperty(re)&&(ee[re]=B[re]===void 0&&le!==void 0?le[re]:B[re])}var re=arguments.length-2;if(re===1)ee.children=z;else if(1<re){le=Array(re);for(var he=0;he<re;he++)le[he]=arguments[he+2];ee.children=le}return{$$typeof:e,type:$.type,key:te,ref:X,props:ee,_owner:ne}},qn.createContext=function($){return $={$$typeof:o,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},$.Provider={$$typeof:s,_context:$},$.Consumer=$},qn.createElement=k,qn.createFactory=function($){var B=k.bind(null,$);return B.type=$,B},qn.createRef=function(){return{current:null}},qn.forwardRef=function($){return{$$typeof:l,render:$}},qn.isValidElement=D,qn.lazy=function($){return{$$typeof:d,_payload:{_status:-1,_result:$},_init:H}},qn.memo=function($,B){return{$$typeof:u,type:$,compare:B===void 0?null:B}},qn.startTransition=function($){var B=J.transition;J.transition={};try{$()}finally{J.transition=B}},qn.unstable_act=F,qn.useCallback=function($,B){return Z.current.useCallback($,B)},qn.useContext=function($){return Z.current.useContext($)},qn.useDebugValue=function(){},qn.useDeferredValue=function($){return Z.current.useDeferredValue($)},qn.useEffect=function($,B){return Z.current.useEffect($,B)},qn.useId=function(){return Z.current.useId()},qn.useImperativeHandle=function($,B,z){return Z.current.useImperativeHandle($,B,z)},qn.useInsertionEffect=function($,B){return Z.current.useInsertionEffect($,B)},qn.useLayoutEffect=function($,B){return Z.current.useLayoutEffect($,B)},qn.useMemo=function($,B){return Z.current.useMemo($,B)},qn.useReducer=function($,B,z){return Z.current.useReducer($,B,z)},qn.useRef=function($){return Z.current.useRef($)},qn.useState=function($){return Z.current.useState($)},qn.useSyncExternalStore=function($,B,z){return Z.current.useSyncExternalStore($,B,z)},qn.useTransition=function(){return Z.current.useTransition()},qn.version="18.3.1",qn}var IR;function b2(){return IR||(IR=1,H_.exports=Ste()),H_.exports}/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var LR;function Ate(){if(LR)return Zv;LR=1;var e=b2(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(l,c,u){var d,f={},p=null,h=null;u!==void 0&&(p=""+u),c.key!==void 0&&(p=""+c.key),c.ref!==void 0&&(h=c.ref);for(d in c)r.call(c,d)&&!s.hasOwnProperty(d)&&(f[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)f[d]===void 0&&(f[d]=c[d]);return{$$typeof:t,type:l,key:p,ref:h,props:f,_owner:i.current}}return Zv.Fragment=n,Zv.jsx=o,Zv.jsxs=o,Zv}var MR;function kte(){return MR||(MR=1,W_.exports=Ate()),W_.exports}var a=kte(),O=b2();const Ae=Zn(O),w2=Nte({__proto__:null,default:Ae},[O]);var wb={},K_={exports:{}},Ws={},Y_={exports:{}},X_={};/** 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 */var DR;function Pte(){return DR||(DR=1,(function(e){function t(J,K){var F=J.length;J.push(K);e:for(;0<F;){var $=F-1>>>1,B=J[$];if(0<i(B,K))J[$]=K,J[F]=B,F=$;else break e}}function n(J){return J.length===0?null:J[0]}function r(J){if(J.length===0)return null;var K=J[0],F=J.pop();if(F!==K){J[0]=F;e:for(var $=0,B=J.length,z=B>>>1;$<z;){var ee=2*($+1)-1,te=J[ee],X=ee+1,ne=J[X];if(0>i(te,F))X<B&&0>i(ne,te)?(J[$]=ne,J[X]=F,$=X):(J[$]=te,J[ee]=F,$=ee);else if(X<B&&0>i(ne,F))J[$]=ne,J[X]=F,$=X;else break e}}return K}function i(J,K){var F=J.sortIndex-K.sortIndex;return F!==0?F:J.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,x=!1,v=!1,g=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(J){for(var K=n(u);K!==null;){if(K.callback===null)r(u);else if(K.startTime<=J)r(u),K.sortIndex=K.expirationTime,t(c,K);else break;K=n(u)}}function _(J){if(v=!1,j(J),!x)if(n(c)!==null)x=!0,H(N);else{var K=n(u);K!==null&&Z(_,K.startTime-J)}}function N(J,K){x=!1,v&&(v=!1,y(k),k=-1),h=!0;var F=p;try{for(j(K),f=n(c);f!==null&&(!(f.expirationTime>K)||J&&!P());){var $=f.callback;if(typeof $=="function"){f.callback=null,p=f.priorityLevel;var B=$(f.expirationTime<=K);K=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(c)&&r(c),j(K)}else r(c);f=n(c)}if(f!==null)var z=!0;else{var ee=n(u);ee!==null&&Z(_,ee.startTime-K),z=!1}return z}finally{f=null,p=F,h=!1}}var A=!1,E=null,k=-1,T=5,D=-1;function P(){return!(e.unstable_now()-D<T)}function R(){if(E!==null){var J=e.unstable_now();D=J;var K=!0;try{K=E(!0,J)}finally{K?q():(A=!1,E=null)}}else A=!1}var q;if(typeof w=="function")q=function(){w(R)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,V=M.port2;M.port1.onmessage=R,q=function(){V.postMessage(null)}}else q=function(){g(R,0)};function H(J){E=J,A||(A=!0,q())}function Z(J,K){k=g(function(){J(e.unstable_now())},K)}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(J){J.callback=null},e.unstable_continueExecution=function(){x||h||(x=!0,H(N))},e.unstable_forceFrameRate=function(J){0>J||125<J?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<J?Math.floor(1e3/J):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(J){switch(p){case 1:case 2:case 3:var K=3;break;default:K=p}var F=p;p=K;try{return J()}finally{p=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(J,K){switch(J){case 1:case 2:case 3:case 4:case 5:break;default:J=3}var F=p;p=J;try{return K()}finally{p=F}},e.unstable_scheduleCallback=function(J,K,F){var $=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?$+F:$):F=$,J){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=F+B,J={id:d++,callback:K,priorityLevel:J,startTime:F,expirationTime:B,sortIndex:-1},F>$?(J.sortIndex=F,t(u,J),n(c)===null&&J===n(u)&&(v?(y(k),k=-1):v=!0,Z(_,F-$))):(J.sortIndex=B,t(c,J),x||h||(x=!0,H(N))),J},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(J){var K=p;return function(){var F=p;p=K;try{return J.apply(this,arguments)}finally{p=F}}}})(X_)),X_}var FR;function Cte(){return FR||(FR=1,Y_.exports=Pte()),Y_.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 BR;function Ete(){if(BR)return Ws;BR=1;var e=b2(),t=Cte();function n(m){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+m,S=1;S<arguments.length;S++)b+="&args[]="+encodeURIComponent(arguments[S]);return"Minified React error #"+m+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function s(m,b){o(m,b),o(m+"Capture",b)}function o(m,b){for(i[m]=b,m=0;m<b.length;m++)r.add(b[m])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,u=/^[: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]*$/,d={},f={};
vendor: 14,009 bytes, lines 33-37
33function p(m){return c.call(f,m)?!0:c.call(d,m)?!1:u.test(m)?f[m]=!0:(d[m]=!0,!1)}function h(m,b,S,I){if(S!==null&&S.type===0)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":return I?!1:S!==null?!S.acceptsBooleans:(m=m.toLowerCase().slice(0,5),m!=="data-"&&m!=="aria-");default:return!1}}function x(m,b,S,I){if(b===null||typeof b>"u"||h(m,b,S,I))return!0;if(I)return!1;if(S!==null)switch(S.type){case 3:return!b;case 4:return b===!1;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function v(m,b,S,I,G,Y,se){this.acceptsBooleans=b===2||b===3||b===4,this.attributeName=I,this.attributeNamespace=G,this.mustUseProperty=S,this.propertyName=m,this.type=b,this.sanitizeURL=Y,this.removeEmptyString=se}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){g[m]=new v(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var b=m[0];g[b]=new v(b,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){g[m]=new v(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){g[m]=new v(m,2,!1,m,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(m){g[m]=new v(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){g[m]=new v(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){g[m]=new v(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){g[m]=new v(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){g[m]=new v(m,5,!1,m.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function w(m){return m[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(m){var b=m.replace(y,w);g[b]=new v(b,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var b=m.replace(y,w);g[b]=new v(b,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var b=m.replace(y,w);g[b]=new v(b,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){g[m]=new v(m,1,!1,m.toLowerCase(),null,!1,!1)}),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){g[m]=new v(m,1,!1,m.toLowerCase(),null,!0,!0)});function j(m,b,S,I){var G=g.hasOwnProperty(b)?g[b]:null;(G!==null?G.type!==0:I||!(2<b.length)||b[0]!=="o"&&b[0]!=="O"||b[1]!=="n"&&b[1]!=="N")&&(x(b,S,G,I)&&(S=null),I||G===null?p(b)&&(S===null?m.removeAttribute(b):m.setAttribute(b,""+S)):G.mustUseProperty?m[G.propertyName]=S===null?G.type===3?!1:"":S:(b=G.attributeName,I=G.attributeNamespace,S===null?m.removeAttribute(b):(G=G.type,S=G===3||G===4&&S===!0?"":""+S,I?m.setAttributeNS(I,b,S):m.setAttribute(b,S))))}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=Symbol.for("react.element"),A=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),P=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),Z=Symbol.for("react.offscreen"),J=Symbol.iterator;function K(m){return m===null||typeof m!="object"?null:(m=J&&m[J]||m["@@iterator"],typeof m=="function"?m:null)}var F=Object.assign,$;function B(m){if($===void 0)try{throw Error()}catch(S){var b=S.stack.trim().match(/\n( *(at )?)/);$=b&&b[1]||""}return` 34`+$+m}var z=!1;function ee(m,b){if(!m||z)return"";z=!0;var S=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(b)if(b=function(){throw Error()},Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(Ke){var I=Ke}Reflect.construct(m,[],b)}else{try{b.call()}catch(Ke){I=Ke}m.call(b.prototype)}else{try{throw Error()}catch(Ke){I=Ke}m()}}catch(Ke){if(Ke&&I&&typeof Ke.stack=="string"){for(var G=Ke.stack.split(` 35`),Y=I.stack.split(` 36`),se=G.length-1,ye=Y.length-1;1<=se&&0<=ye&&G[se]!==Y[ye];)ye--;for(;1<=se&&0<=ye;se--,ye--)if(G[se]!==Y[ye]){if(se!==1||ye!==1)do if(se--,ye--,0>ye||G[se]!==Y[ye]){var Pe=` 37`+G[se].replace(" at new "," at ");return m.displayName&&Pe.includes("<anonymous>")&&(Pe=Pe.replace("<anonymous>",m.displayName)),Pe}while(1<=se&&0<=ye);break}}}finally{z=!1,Error.prepareStackTrace=S}return(m=m?m.displayName||m.name:"")?B(m):""}function te(m){switch(m.tag){case 5:return B(m.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return m=ee(m.type,!1),m;case 11:return m=ee(m.type.render,!1),m;case 1:return m=ee(m.type,!0),m;default:return""}}function X(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case E:return"Fragment";case A:return"Portal";case T:return"Profiler";case k:return"StrictMode";case q:return"Suspense";case M:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case P:return(m.displayName||"Context")+".Consumer";case D:return(m._context.displayName||"Context")+".Provider";case R:var b=m.render;return m=m.displayName,m||(m=b.displayName||b.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case V:return b=m.displayName||null,b!==null?b:X(m.type)||"Memo";case H:b=m._payload,m=m._init;try{return X(m(b))}catch{}}return null}function ne(m){var b=m.type;switch(m.tag){case 24:return"Cache";case 9:return(b.displayName||"Context")+".Consumer";case 10:return(b._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return m=b.render,m=m.displayName||m.name||"",b.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 5:return b;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return X(b);case 8:return b===k?"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 b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b}return null}function le(m){switch(typeof m){case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function re(m){var b=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(b==="checkbox"||b==="radio")}function he(m){var b=re(m)?"checked":"value",S=Object.getOwnPropertyDescriptor(m.constructor.prototype,b),I=""+m[b];if(!m.hasOwnProperty(b)&&typeof S<"u"&&typeof S.get=="function"&&typeof S.set=="function"){var G=S.get,Y=S.set;return Object.defineProperty(m,b,{configurable:!0,get:function(){return G.call(this)},set:function(se){I=""+se,Y.call(this,se)}}),Object.defineProperty(m,b,{enumerable:S.enumerable}),{getValue:function(){return I},setValue:function(se){I=""+se},stopTracking:function(){m._valueTracker=null,delete m[b]}}}}function be(m){m._valueTracker||(m._valueTracker=he(m))}function ve(m){if(!m)return!1;var b=m._valueTracker;if(!b)return!0;var S=b.getValue(),I="";return m&&(I=re(m)?m.checked?"true":"false":m.value),m=I,m!==S?(b.setValue(m),!0):!1}function ze(m){if(m=m||(typeof document<"u"?document:void 0),typeof m>"u")return null;try{return m.activeElement||m.body}catch{return m.body}}function He(m,b){var S=b.checked;return F({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:S??m._wrapperState.initialChecked})}function ue(m,b){var S=b.defaultValue==null?"":b.defaultValue,I=b.checked!=null?b.checked:b.defaultChecked;S=le(b.value!=null?b.value:S),m._wrapperState={initialChecked:I,initialValue:S,controlled:b.type==="checkbox"||b.type==="radio"?b.checked!=null:b.value!=null}}function Ue(m,b){b=b.checked,b!=null&&j(m,"checked",b,!1)}function ut(m,b){Ue(m,b);var S=le(b.value),I=b.type;if(S!=null)I==="number"?(S===0&&m.value===""||m.value!=S)&&(m.value=""+S):m.value!==""+S&&(m.value=""+S);else if(I==="submit"||I==="reset"){m.removeAttribute("value");return}b.hasOwnProperty("value")?we(m,b.type,S):b.hasOwnProperty("defaultValue")&&we(m,b.type,le(b.defaultValue)),b.checked==null&&b.defaultChecked!=null&&(m.defaultChecked=!!b.defaultChecked)}function Ee(m,b,S){if(b.hasOwnProperty("value")||b.hasOwnProperty("defaultValue")){var I=b.type;if(!(I!=="submit"&&I!=="reset"||b.value!==void 0&&b.value!==null))return;b=""+m._wrapperState.initialValue,S||b===m.value||(m.value=b),m.defaultValue=b}S=m.name,S!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,S!==""&&(m.name=S)}function we(m,b,S){(b!=="number"||ze(m.ownerDocument)!==m)&&(S==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+S&&(m.defaultValue=""+S))}var Ye=Array.isArray;function We(m,b,S,I){if(m=m.options,b){b={};for(var G=0;G<S.length;G++)b["$"+S[G]]=!0;for(S=0;S<m.length;S++)G=b.hasOwnProperty("$"+m[S].value),m[S].selected!==G&&(m[S].selected=G),G&&I&&(m[S].defaultSelected=!0)}else{for(S=""+le(S),b=null,G=0;G<m.length;G++){if(m[G].value===S){m[G].selected=!0,I&&(m[G].defaultSelected=!0);return}b!==null||m[G].disabled||(b=m[G])}b!==null&&(b.selected=!0)}}function Be(m,b){if(b.dangerouslySetInnerHTML!=null)throw Error(n(91));return F({},b,{value:void 0,defaultValue:void 0,children:""+m._wrapperState.initialValue})}function dt(m,b){var S=b.value;if(S==null){if(S=b.children,b=b.defaultValue,S!=null){if(b!=null)throw Error(n(92));if(Ye(S)){if(1<S.length)throw Error(n(93));S=S[0]}b=S}b==null&&(b=""),S=b}m._wrapperState={initialValue:le(S)}}function St(m,b){var S=le(b.value),I=le(b.defaultValue);S!=null&&(S=""+S,S!==m.value&&(m.value=S),b.defaultValue==null&&m.defaultValue!==S&&(m.defaultValue=S)),I!=null&&(m.defaultValue=""+I)}function Nt(m){var b=m.textContent;b===m._wrapperState.initialValue&&b!==""&&b!==null&&(m.value=b)}function De(m){switch(m){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 et(m,b){return m==null||m==="http://www.w3.org/1999/xhtml"?De(b):m==="http://www.w3.org/2000/svg"&&b==="foreignObject"?"http://www.w3.org/1999/xhtml":m}var ot,ht=(function(m){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(b,S,I,G){MSApp.execUnsafeLocalFunction(function(){return m(b,S,I,G)})}:m})(function(m,b){if(m.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in m)m.innerHTML=b;else{for(ot=ot||document.createElement("div"),ot.innerHTML="<svg>"+b.valueOf().toString()+"</svg>",b=ot.firstChild;m.firstChild;)m.removeChild(m.firstChild);for(;b.firstChild;)m.appendChild(b.firstChild)}});function mt(m,b){if(b){var S=m.firstChild;if(S&&S===m.lastChild&&S.nodeType===3){S.nodeValue=b;return}}m.textContent=b}var jt={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},ar=["Webkit","ms","Moz","O"];Object.keys(jt).forEach(function(m){ar.forEach(function(b){b=b+m.charAt(0).toUpperCase()+m.substring(1),jt[b]=jt[m]})});function jn(m,b,S){return b==null||typeof b=="boolean"||b===""?"":S||typeof b!="number"||b===0||jt.hasOwnProperty(m)&&jt[m]?(""+b).trim():b+"px"}function fn(m,b){m=m.style;for(var S in b)if(b.hasOwnProperty(S)){var I=S.indexOf("--")===0,G=jn(S,b[S],I);S==="float"&&(S="cssFloat"),I?m.setProperty(S,G):m[S]=G}}var pn=F({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 Tn(m,b){if(b){if(pn[m]&&(b.children!=null||b.dangerouslySetInnerHTML!=null))throw Error(n(137,m));if(b.dangerouslySetInnerHTML!=null){if(b.children!=null)throw Error(n(60));if(typeof b.dangerouslySetInnerHTML!="object"||!("__html"in b.dangerouslySetInnerHTML))throw Error(n(61))}if(b.style!=null&&typeof b.style!="object")throw Error(n(62))}}function zt(m,b){if(m.indexOf("-")===-1)return typeof b.is=="str
37ing";switch(m){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 In=null;function tn(m){return m=m.target||m.srcElement||window,m.correspondingUseElement&&(m=m.correspondingUseElement),m.nodeType===3?m.parentNode:m}var mn=null,sr=null,Sn=null;function nn(m){if(m=Ud(m)){if(typeof mn!="function")throw Error(n(280));var b=m.stateNode;b&&(b=hh(b),mn(m.stateNode,m.type,b))}}function Jn(m){sr?Sn?Sn.push(m):Sn=[m]:sr=m}function oc(){if(sr){var m=sr,b=Sn;if(Sn=sr=null,nn(m),b)for(m=0;m<b.length;m++)nn(b[m])}}function Yi(m,b){return m(b)}function Do(){}var Es=!1;function rn(m,b,S){if(Es)return m(b,S);Es=!0;try{return Yi(m,b,S)}finally{Es=!1,(sr!==null||Sn!==null)&&(Do(),oc())}}function us(m,b){var S=m.stateNode;if(S===null)return null;var I=hh(S);if(I===null)return null;S=I[b];e:switch(b){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(I=!I.disabled)||(m=m.type,I=!(m==="button"||m==="input"||m==="select"||m==="textarea")),m=!I;break e;default:m=!1}if(m)return null;if(S&&typeof S!="function")throw Error(n(231,b,typeof S));return S}var io=!1;if(l)try{var la={};Object.defineProperty(la,"passive",{get:function(){io=!0}}),window.addEventListener("test",la,la),window.removeEventListener("test",la,la)}catch{io=!1}function Ts(m,b,S,I,G,Y,se,ye,Pe){var Ke=Array.prototype.slice.call(arguments,3);try{b.apply(S,Ke)}catch(ft){this.onError(ft)}}var kr=!1,ai=null,hi=!1,wl=null,lc={onError:function(m){kr=!0,ai=m}};function ao(m,b,S,I,G,Y,se,ye,Pe){kr=!1,ai=null,Ts.apply(lc,arguments)}function Fo(m,b,S,I,G,Y,se,ye,Pe){if(ao.apply(this,arguments),kr){if(kr){var Ke=ai;kr=!1,ai=null}else throw Error(n(198));hi||(hi=!0,wl=Ke)}}function Xi(m){var b=m,S=m;if(m.alternate)for(;b.return;)b=b.return;else{m=b;do b=m,(b.flags&4098)!==0&&(S=b.return),m=b.return;while(m)}return b.tag===3?S:null}function Os(m){if(m.tag===13){var b=m.memoizedState;if(b===null&&(m=m.alternate,m!==null&&(b=m.memoizedState)),b!==null)return b.dehydrated}return null}function ds(m){if(Xi(m)!==m)throw Error(n(188))}function ru(m){var b=m.alternate;if(!b){if(b=Xi(m),b===null)throw Error(n(188));return b!==m?null:m}for(var S=m,I=b;;){var G=S.return;if(G===null)break;var Y=G.alternate;if(Y===null){if(I=G.return,I!==null){S=I;continue}break}if(G.child===Y.child){for(Y=G.child;Y;){if(Y===S)return ds(G),m;if(Y===I)return ds(G),b;Y=Y.sibling}throw Error(n(188))}if(S.return!==I.return)S=G,I=Y;else{for(var se=!1,ye=G.child;ye;){if(ye===S){se=!0,S=G,I=Y;break}if(ye===I){se=!0,I=G,S=Y;break}ye=ye.sibling}if(!se){for(ye=Y.child;ye;){if(ye===S){se=!0,S=Y,I=G;break}if(ye===I){se=!0,I=Y,S=G;break}ye=ye.sibling}if(!se)throw Error(n(189))}}if(S.alternate!==I)throw Error(n(190))}if(S.tag!==3)throw Error(n(188));return S.stateNode.current===S?m:b}function so(m){return m=ru(m),m!==null?cc(m):null}function cc(m){if(m.tag===5||m.tag===6)return m;for(m=m.child;m!==null;){var b=cc(m);if(b!==null)return b;m=m.sibling}return null}var iu=t.unstable_scheduleCallback,au=t.unstable_cancelCallback,jd=t.unstable_shouldYield,wv=t.unstable_requestPaint,Er=t.unstable_now,zp=t.unstable_getCurrentPriorityLevel,_d=t.unstable_ImmediatePriority,fs=t.unstable_UserBlockingPriority,uc=t.unstable_NormalPriority,$p=t.unstable_LowPriority,Nd=t.unstable_IdlePriority,su=null,hs=null;function Up(m){if(hs&&typeof hs.onCommitFiberRoot=="function")try{hs.onCommitFiberRoot(su,m,void 0,(m.current.flags&128)===128)}catch{}}
vendor: 26,049 bytes, line 37
37var pi=Math.clz32?Math.clz32:mi,Sd=Math.log,jv=Math.LN2;function mi(m){return m>>>=0,m===0?32:31-(Sd(m)/jv|0)|0}var ou=64,ps=4194304;function Bo(m){switch(m&-m){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 m&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return m&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return m}}function dc(m,b){var S=m.pendingLanes;if(S===0)return 0;var I=0,G=m.suspendedLanes,Y=m.pingedLanes,se=S&268435455;if(se!==0){var ye=se&~G;ye!==0?I=Bo(ye):(Y&=se,Y!==0&&(I=Bo(Y)))}else se=S&~G,se!==0?I=Bo(se):Y!==0&&(I=Bo(Y));if(I===0)return 0;if(b!==0&&b!==I&&(b&G)===0&&(G=I&-I,Y=b&-b,G>=Y||G===16&&(Y&4194240)!==0))return b;if((I&4)!==0&&(I|=S&16),b=m.entangledLanes,b!==0)for(m=m.entanglements,b&=I;0<b;)S=31-pi(b),G=1<<S,I|=m[S],b&=~G;return I}function ms(m,b){switch(m){case 1:case 2:case 4:return b+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 b+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 Ad(m,b){for(var S=m.suspendedLanes,I=m.pingedLanes,G=m.expirationTimes,Y=m.pendingLanes;0<Y;){var se=31-pi(Y),ye=1<<se,Pe=G[se];Pe===-1?((ye&S)===0||(ye&I)!==0)&&(G[se]=ms(ye,b)):Pe<=b&&(m.expiredLanes|=ye),Y&=~ye}}function oo(m){return m=m.pendingLanes&-1073741825,m!==0?m:m&1073741824?1073741824:0}function Fi(){var m=ou;return ou<<=1,(ou&4194240)===0&&(ou=64),m}function kd(m){for(var b=[],S=0;31>S;S++)b.push(m);return b}function lu(m,b,S){m.pendingLanes|=b,b!==536870912&&(m.suspendedLanes=0,m.pingedLanes=0),m=m.eventTimes,b=31-pi(b),m[b]=S}function _v(m,b){var S=m.pendingLanes&~b;m.pendingLanes=b,m.suspendedLanes=0,m.pingedLanes=0,m.expiredLanes&=b,m.mutableReadLanes&=b,m.entangledLanes&=b,b=m.entanglements;var I=m.eventTimes;for(m=m.expirationTimes;0<S;){var G=31-pi(S),Y=1<<G;b[G]=0,I[G]=-1,m[G]=-1,S&=~Y}}function Zf(m,b){var S=m.entangledLanes|=b;for(m=m.entanglements;S;){var I=31-pi(S),G=1<<I;G&b|m[I]&b&&(m[I]|=b),S&=~G}}var Ln=0;function Jf(m){return m&=-m,1<m?4<m?(m&268435455)!==0?16:536870912:4:1}var cu,fc,Pd,Gp,Vp,eh=!1,lo=[],co=null,Na=null,qo=null,uo=new Map,an=new Map,zo=[],Nv="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 Wp(m,b){switch(m){case"focusin":case"focusout":co=null;break;case"dragenter":case"dragleave":Na=null;break;case"mouseover":case"mouseout":qo=null;break;case"pointerover":case"pointerout":uo.delete(b.pointerId);break;case"gotpointercapture":case"lostpointercapture":an.delete(b.pointerId)}}function uu(m,b,S,I,G,Y){return m===null||m.nativeEvent!==Y?(m={blockedOn:b,domEventName:S,eventSystemFlags:I,nativeEvent:Y,targetContainers:[G]},b!==null&&(b=Ud(b),b!==null&&fc(b)),m):(m.eventSystemFlags|=I,b=m.targetContainers,G!==null&&b.indexOf(G)===-1&&b.push(G),m)}function Sv(m,b,S,I,G){switch(b){case"focusin":return co=uu(co,m,b,S,I,G),!0;case"dragenter":return Na=uu(Na,m,b,S,I,G),!0;case"mouseover":return qo=uu(qo,m,b,S,I,G),!0;case"pointerover":var Y=G.pointerId;return uo.set(Y,uu(uo.get(Y)||null,m,b,S,I,G)),!0;case"gotpointercapture":return Y=G.pointerId,an.set(Y,uu(an.get(Y)||null,m,b,S,I,G)),!0}return!1}function $o(m){var b=jc(m.target);if(b!==null){var S=Xi(b);if(S!==null){if(b=S.tag,b===13){if(b=Os(S),b!==null){m.blockedOn=b,Vp(m.priority,function(){Pd(S)});return}}else if(b===3&&S.stateNode.current.memoizedState.isDehydrated){m.blockedOn=S.tag===3?S.stateNode.containerInfo:null;return}}}m.blockedOn=null}function Rs(m){if(m.blockedOn!==null)return!1;for(var b=m.targetContainers;0<b.length;){var S=fu(m.domEventName,m.eventSystemFlags,b[0],m.nativeEvent);if(S===null){S=m.nativeEvent;var I=new S.constructor(S.type,S);In=I,S.target.dispatchEvent(I),In=null}else return b=Ud(S),b!==null&&fc(b),m.blockedOn=S,!1;b.shift()}return!0}function Hp(m,b,S){Rs(m)&&S.delete(b)}function Av(){eh=!1,co!==null&&Rs(co)&&(co=null),Na!==null&&Rs(Na)&&(Na=null),qo!==null&&Rs(qo)&&(qo=null),uo.forEach(Hp),an.forEach(Hp)}function Uo(m,b){m.blockedOn===b&&(m.blockedOn=null,eh||(eh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Av)))}function jl(m){function b(G){return Uo(G,m)}if(0<lo.length){Uo(lo[0],m);for(var S=1;S<lo.length;S++){var I=lo[S];I.blockedOn===m&&(I.blockedOn=null)}}for(co!==null&&Uo(co,m),Na!==null&&Uo(Na,m),qo!==null&&Uo(qo,m),uo.forEach(b),an.forEach(b),S=0;S<zo.length;S++)I=zo[S],I.blockedOn===m&&(I.blockedOn=null);for(;0<zo.length&&(S=zo[0],S.blockedOn===null);)$o(S),S.blockedOn===null&&zo.shift()}var Sa=_.ReactCurrentBatchConfig,Cd=!0;function Ed(m,b,S,I){var G=Ln,Y=Sa.transition;Sa.transition=null;try{Ln=1,du(m,b,S,I)}finally{Ln=G,Sa.transition=Y}}function kv(m,b,S,I){var G=Ln,Y=Sa.transition;Sa.transition=null;try{Ln=4,du(m,b,S,I)}finally{Ln=G,Sa.transition=Y}}function du(m,b,S,I){if(Cd){var G=fu(m,b,S,I);if(G===null)uh(m,b,I,fo,S),Wp(m,I);else if(Sv(G,m,b,S,I))I.stopPropagation();else if(Wp(m,I),b&4&&-1<Nv.indexOf(m)){for(;G!==null;){var Y=Ud(G);if(Y!==null&&cu(Y),Y=fu(m,b,S,I),Y===null&&uh(m,b,I,fo,S),Y===G)break;G=Y}G!==null&&I.stopPropagation()}else uh(m,b,I,null,S)}}var fo=null;function fu(m,b,S,I){if(fo=null,m=tn(I),m=jc(m),m!==null)if(b=Xi(m),b===null)m=null;else if(S=b.tag,S===13){if(m=Os(b),m!==null)return m;m=null}else if(S===3){if(b.stateNode.current.memoizedState.isDehydrated)return b.tag===3?b.stateNode.containerInfo:null;m=null}else b!==m&&(m=null);return fo=m,null}function hc(m){switch(m){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(zp()){case _d:return 1;case fs:return 4;case uc:case $p:return 16;case Nd:return 536870912;default:return 16}default:return 16}}var Is=null,pc=null,mc=null;function hu(){if(mc)return mc;var m,b=pc,S=b.length,I,G="value"in Is?Is.value:Is.textContent,Y=G.length;for(m=0;m<S&&b[m]===G[m];m++);var se=S-m;for(I=1;I<=se&&b[S-I]===G[Y-I];I++);return mc=G.slice(m,1<I?1-I:void 0)}function pu(m){var b=m.keyCode;return"charCode"in m?(m=m.charCode,m===0&&b===13&&(m=13)):m=b,m===10&&(m=13),32<=m||m===13?m:0}function Ls(){return!0}function Go(){return!1}function ca(m){function b(S,I,G,Y,se){this._reactName=S,this._targetInst=G,this.type=I,this.nativeEvent=Y,this.target=se,this.currentTarget=null;for(var ye in m)m.hasOwnProperty(ye)&&(S=m[ye],this[ye]=S?S(Y):Y[ye]);return this.isDefaultPrevented=(Y.defaultPrevented!=null?Y.defaultPrevented:Y.returnValue===!1)?Ls:Go,this.isPropagationStopped=Go,this}return F(b.prototype,{preventDefault:function(){this.defaultPrevented=!0;var S=this.nativeEvent;S&&(S.preventDefault?S.preventDefault():typeof S.returnValue!="unknown"&&(S.returnValue=!1),this.isDefaultPrevented=Ls)},stopPropagation:function(){var S=this.nativeEvent;S&&(S.stopPropagation?S.stopPropagation():typeof S.cancelBubble!="unknown"&&(S.cancelBubble=!0),this.isPropagationStopped=Ls)},persist:function(){},isPersistent:Ls}),b}var _l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(m){return m.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Td=ca(_l),ho=F({},_l,{view:0,detail:0}),Kp=ca(ho),U,ie,pe,je=F({},ho,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:po,button:0,buttons:0,relatedTarget:function(m){return m.relatedTarget===void 0?m.fromElement===m.srcElement?m.toElement:m.fromElement:m.relatedTarget},movementX:function(m){return"movementX"in m?m.movementX:(m!==pe&&(pe&&m.type==="mousemove"?(U=m.screenX-pe.screenX,ie=m.screenY-pe.screenY):ie=U=0,pe=m),U)},movementY:function(m){return"movementY"in m?m.movementY:ie}}),Me=ca(je),tt=F({},je,{dataTransfer:0}),st=ca(tt),$t=F({},ho,{relatedTarget:0}),Lt=ca($t),gn=F({},_l,{animationName:0,elapsedTime:0,pseudoElement:0}),An=ca(gn),Hn=F({},_l,{clipboardData:function(m){return"clipboardData"in m?m.clipboardData:window.clipboardData}}),gi=ca(Hn),vr=F({},_l,{data:0}),or=ca(vr),Tr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gr={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"},Vr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ua(m){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(m):(m=Vr[m])?!!b[m]:!1}function po(){return ua}var th=F({},ho,{key:function(m){if(m.key){var b=Tr[m.key]||m.key;if(b!=="Unidentified")return b}return m.type==="keypress"?(m=pu(m),m===13?"Enter":String.fromCharCode(m)):m.type==="keydown"||m.type==="keyup"?Gr[m.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:po,charCode:function(m){return m.type==="keypress"?pu(m):0},keyCode:function(m){return m.type==="keydown"||m.type==="keyup"?m.keyCode:0},which:function(m){return m.type==="keypress"?pu(m):m.type==="keydown"||m.type==="keyup"?m.keyCode:0}}),mu=ca(th),gu=F({},je,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nl=ca(gu),vu=F({},ho,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:po}),Od=ca(vu),Rd=F({},_l,{propertyName:0,elapsedTime:0,pseudoElement:0}),da=ca(Rd),yu=F({},je,{deltaX:function(m){return"deltaX"in m?m.deltaX:"wheelDeltaX"in m?-m.wheelDeltaX:0},deltaY:function(m){return"deltaY"in m?m.deltaY:"wheelDeltaY"in m?-m.wheelDeltaY:"wheelDelta"in m?-m.wheelDelta:0},deltaZ:0,deltaMode:0}),xu=ca(yu),nh=[9,13,27,32],Ms=l&&"CompositionEvent"in window,Ai=null;l&&"documentMode"in document&&(Ai=document.documentMode);var Yp=l&&"TextEvent"in window&&!Ai,bu=l&&(!Ms||Ai&&8<Ai&&11>=Ai),rh=" ",gs=!1;function gc(m,b){switch(m){case"keyup":return nh.indexOf(b.keyCode)!==-1;case"keydown":return b.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Id(m){return m=m.detail,typeof m=="object"&&"data"in m?m.data:null}var mo=!1;function wu(m,b){switch(m){case"compositionend":return Id(b);case"keypress":return b.which!==32?null:(gs=!0,rh);case"textInput":return m=b.data,m===rh&&gs?null:m;default:return null}}function ih(m,b){if(mo)return m==="compositionend"||!Ms&&gc(m,b)?(m=hu(),mc=pc=Is=null,mo=!1,m):null;switch(m){case"paste":return null;case"keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case"compositionend":return bu&&b.locale!=="ko"?null:b.data;default:return null}}var Aa={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 ka(m){var b=m&&m.nodeName&&m.nodeName.toLowerCase();return b==="input"?!!Aa[m.type]:b==="textarea"}function ju(m,b,S,I){Jn(I),b=em(b,"onChange"),0<b.length&&(S=new Td("onChange","change",null,S,I),m.push({event:S,listeners:b}))}var Ds=null,Fs=null;function Ld(m){lh(m,0)}function Vo(m){var b=Eu(m);if(ve(b))return m}function vi(m,b){if(m==="change")return b}var Xp=!1;if(l){var Bs;if(l){var vs="oninput"in document;if(!vs){var vc=document.createElement("div");vc.setAttribute("oninput","return;"),vs=typeof vc.oninput=="function"}Bs=vs}else Bs=!1;Xp=Bs&&(!document.documentMode||9<document.documentMode)}function Md(){Ds&&(Ds.detachEvent("onpropertychange",Dd),Fs=Ds=null)}function Dd(m){if(m.propertyName==="value"&&Vo(Fs)){var b=[];ju(b,Fs,m,tn(m)),rn(Ld,b)}}function Fd(m,b,S){m==="focusin"?(Md(),Ds=b,Fs=S,Ds.attachEvent("onpropertychange",Dd)):m==="focusout"&&Md()}function _u(m){if(m==="selectionchange"||m==="keyup"||m==="keydown")return Vo(Fs)}function Nu(m,b){if(m==="click")return Vo(b)}function yc(m,b){if(m==="input"||m==="change")return Vo(b)}function Sl(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}var Bi=typeof Object.is=="function"?Object.is:Sl;function Wo(m,b){if(Bi(m,b))return!0;if(typeof m!="object"||m===null||typeof b!="object"||b===null)return!1;var S=Object.keys(m),I=Object.keys(b);if(S.length!==I.length)return!1;for(I=0;I<S.length;I++){var G=S[I];if(!c.call(b,G)||!Bi(m[G],b[G]))return!1}return!0}function Qi(m){for(;m&&m.firstChild;)m=m.firstChild;return m}function go(m,b){var S=Qi(m);m=0;for(var I;S;){if(S.nodeType===3){if(I=m+S.textContent.length,m<=b&&I>=b)return{node:S,offset:b-m};m=I}e:{for(;S;){if(S.nextSibling){S=S.nextSibling;break e}S=S.parentNode}S=void 0}S=Qi(S)}}function yr(m,b){return m&&b?m===b?!0:m&&m.nodeType===3?!1:b&&b.nodeType===3?yr(m,b.parentNode):"contains"in m?m.contains(b):m.compareDocumentPosition?!!(m.compareDocumentPosition(b)&16):!1:!1}function xr(){for(var m=window,b=ze();b instanceof m.HTMLIFrameElement;){try{var S=typeof b.contentWindow.location.href=="string"}catch{S=!1}if(S)m=b.contentWindow;else break;b=ze(m.document)}return b}function Wr(m){var b=m&&m.nodeName&&m.nodeName.toLowerCase();return b&&(b==="input"&&(m.type==="text"||m.type==="search"||m.type==="tel"||m.type==="url"||m.type==="password")||b==="textarea"||m.contentEditable==="true")}function ki(m){var b=xr(),S=m.focusedElem,I=m.selectionRange;if(b!==S&&S&&S.ownerDocument&&yr(S.ownerDocument.documentElement,S)){if(I!==null&&Wr(S)){if(b=I.start,m=I.end,m===void 0&&(m=b),"selectionStart"in S)S.selectionStart=b,S.selectionEnd=Math.min(m,S.value.length);else if(m=(b=S.ownerDocument||document)&&b.defaultView||window,m.getSelection){m=m.getSelection();var G=S.textContent.length,Y=Math.min(I.start,G);I=I.end===void 0?Y:Math.min(I.end,G),!m.extend&&Y>I&&(G=I,I=Y,Y=G),G=go(S,Y);var se=go(S,I);G&&se&&(m.rangeCount!==1||m.anchorNode!==G.node||m.anchorOffset!==G.offset||m.focusNode!==se.node||m.focusOffset!==se.offset)&&(b=b.createRange(),b.setStart(G.node,G.offset),m.removeAllRanges(),Y>I?(m.addRange(b),m.extend(se.node,se.offset)):(b.setEnd(se.node,se.offset),m.addRange(b)))}}for(b=[],m=S;m=m.parentNode;)m.nodeType===1&&b.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<b.length;S++)m=b[S],m.element.scrollLeft=m.left,m.element.scrollTop=m.top}}var Al=l&&"documentMode"in document&&11>=document.documentMode,Ho=null,xc=null,bc=null,Qp=!1;function Pv(m,b,S){var I=S.window===S?S.document:S.nodeType===9?S:S.ownerDocument;Qp||Ho==null||Ho!==ze(I)||(I=Ho,"selectionStart"in I&&Wr(I)?I={start:I.selectionStart,end:I.selectionEnd}:(I=(I.ownerDocument&&I.ownerDocument.defaultView||window).getSelection(),I={anchorNode:I.anchorNode,anchorOffset:I.anchorOffset,focusNode:I.focusNode,focusOffset:I.focusOffset}),bc&&Wo(bc,I)||(bc=I,I=em(xc,"onSelect"),0<I.length&&(b=new Td("onSelect","select",null,b,S),m.push({event:b,listeners:I}),b.target=Ho)))}function ah(m,b){var S={};return S[m.toLowerCase()]=b.toLowerCase(),S["Webkit"+m]="webkit"+b,S["Moz"+m]="moz"+b,S}var Su={animationend:ah("Animation","AnimationEnd"),animationiteration:ah("Animation","AnimationIteration"),animationstart:ah("Animation","AnimationStart"),transitionend:ah("Transition","TransitionEnd")},Au={},Cv={};l&&(Cv=document.createElement("div").style,"AnimationEvent"in window||(delete Su.animationend.animation,delete Su.animationiteration.animation,delete Su.animationstart.animation),"TransitionEvent"in window||delete Su.transitionend.transition);function sh(m){if(Au[m])return Au[m];if(!Su[m])return m;var b=Su[m],S;for(S in b)if(b.hasOwnProperty(S)&&S in Cv)return Au[m]=b[S];return m}var Ev=sh("animationend"),Tv=sh("animationiteration"),Ov=sh("animationstart"),Rv=sh("transitionend"),Iv=new Map,Lv="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 Ko(m,b){Iv.set(m,b),s(b,[m])}for(var Bd=0;Bd<Lv.length;Bd++){var Pa=Lv[Bd],qs=Pa.toLowerCase(),Zp=Pa[0].toUpperCase()+Pa.slice(1);Ko(qs,"on"+Zp)}Ko(Ev,"onAnimationEnd"),Ko(Tv,"onAnimationIteration"),Ko(Ov,"onAnimationStart"),Ko("dblclick","onDoubleClick"),Ko("focusin","onFocus"),Ko("focusout","onBlur"),Ko(Rv,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wc="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(" "),B0=new Set("cancel close invalid load scroll toggle".split(" ").concat(wc));function oh(m,b,S){var I=m.type||"unknown-event";m.currentTarget=S,Fo(I,b,void 0,m),m.currentTarget=null}function lh(m,b){b=(b&4)!==0;for(var S=0;S<m.length;S++){var I=m[S],G=I.event;I=I.listeners;e:{var Y=void 0;if(b)for(var se=I.length-1;0<=se;se--){var ye=I[se],Pe=ye.instance,Ke=ye.currentTarget;if(ye=ye.listener,Pe!==Y&&G.isPropagationStopped())break e;oh(G,ye,Ke),Y=Pe}else for(se=0;se<I.length;se++){if(ye=I[se],Pe=ye.instance,Ke=ye.currentTarget,ye=ye.listener,Pe!==Y&&G.isPropagationStopped())break e;oh(G,ye,Ke),Y=Pe}}}if(hi)throw m=wl,hi=!1,wl=null,m}function br(m,b){var S=b[Da];S===void 0&&(S=b[Da]=new Set);var I=m+"__bubble";S.has(I)||(ch(b,m,2,!1),S.add(I))}function Jp(m,b,S){var I=0;b&&(I|=4),ch(S,m,I,b)}var qd="_reactListening"+Math.random().toString(36).slice(2);function ku(m){if(!m[qd]){m[qd]=!0,r.forEach(function(S){S!=="selectionchange"&&(B0.has(S)||Jp(S,!1,m),Jp(S,!0,m))});var b=m.nodeType===9?m:m.ownerDocument;b===null||b[qd]||(b[qd]=!0,Jp("selectionchange",!1,b))}}function ch(m,b,S,I){switch(hc(b)){case 1:var G=Ed;break;case 4:G=kv;break;default:G=du}S=G.bind(null,b,S,m),G=void 0,!io||b!=="touchstart"&&b!=="touchmove"&&b!=="wheel"||(G=!0),I?G!==void 0?m.addEventListener(b,S,{capture:!0,passive:G}):m.addEventListener(b,S,!0):G!==void 0?m.addEventListener(b,S,{passive:G}):m.addEventListener(b,S,!1)}function uh(m,b,S,I,G){var Y=I;if((b&1)===0&&(b&2)===0&&I!==null)e:for(;;){if(I===null)return;var se=I.tag;if(se===3||se===4){var ye=I.stateNode.containerInfo;if(ye===G||ye.nodeType===8&&ye.parentNode===G)break;if(se===4)for(se=I.return;se!==null;){var Pe=se.tag;if((Pe===3||Pe===4)&&(Pe=se.stateNode.containerInfo,Pe===G||Pe.nodeType===8&&Pe.parentNode===G))return;se=se.return}for(;ye!==null;){if(se=jc(ye),se===null)return;if(Pe=se.tag,Pe===5||Pe===6){I=Y=se;continue e}ye=ye.parentNode}}I=I.return}rn(function(){var Ke=Y,ft=tn(S),gt=[];e:{var ct=Iv.get(m);if(ct!==void 0){var Ot=Td,Ut=m;switch(m){case"keypress":if(pu(S)===0)break e;case"keydown":case"keyup":Ot=mu;break;case"focusin":Ut="focus",Ot=Lt;break;case"focusout":Ut="blur",Ot=Lt;break;case"beforeblur":case"afterblur":Ot=Lt;break;case"click":if(S.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ot=Me;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ot=st;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ot=Od;break;case Ev:case Tv:case Ov:Ot=An;break;case Rv:Ot=da;break;case"scroll":Ot=Kp;break;case"wheel":Ot=xu;break;case"copy":case"cut":case"paste":Ot=gi;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ot=Nl}var Ht=(b&4)!==0,Ei=!Ht&&m==="scroll",$e=Ht?ct!==null?ct+"Capture":null:ct;Ht=[];for(var Re=Ke,Ve;Re!==null;){Ve=Re;var bt=Ve.stateNode;if(Ve.tag===5&&bt!==null&&(Ve=bt,$e!==null&&(bt=us(Re,$e),bt!=null&&Ht.push(dh(Re,bt,Ve)))),Ei)break;Re=Re.return}0<Ht.length&&(ct=new Ot(ct,Ut,null,S,ft),gt.push({event:ct,listeners:Ht}))}}if((b&7)===0){e:{if(ct=m==="mouseover"||m==="pointerover",Ot=m==="mouseout"||m==="pointerout",ct&&S!==In&&(Ut=S.relatedTarget||S.fromElement)&&(jc(Ut)||Ut[fa]))break e;if((Ot||ct)&&(ct=ft.window===ft?ft:(ct=ft.ownerDocument)?ct.defaultView||ct.parentWindow:window,Ot?(Ut=S.relatedTarget||S.toElement,Ot=Ke,Ut=Ut?jc(Ut):null,Ut!==null&&(Ei=Xi(Ut),Ut!==Ei||Ut.tag!==5&&Ut.tag!==6)&&(Ut=null)):(Ot=null,Ut=Ke),Ot!==Ut)){if(Ht=Me,bt="onMouseLeave",$e="onMouseEnter",Re="mouse",(m==="pointerout"||m==="pointerover")&&(Ht=Nl,bt="onPointerLeave",$e="onPointerEnter",Re="pointer"),Ei=Ot==null?ct:Eu(Ot),Ve=Ut==null?ct:Eu(Ut),ct=new Ht(bt,Re+"leave",Ot,S,ft),ct.target=Ei,ct.relatedTarget=Ve,bt=null,jc(ft)===Ke&&(Ht=new Ht($e,Re+"enter",Ut,S,ft),Ht.target=Ve,Ht.relatedTarget=Ei,bt=Ht),Ei=bt,Ot&&Ut)t:{for(Ht=Ot,$e=Ut,Re=0,Ve=Ht;Ve;Ve=Pu(Ve))Re++;for(Ve=0,bt=$e;bt;bt=Pu(bt))Ve++;for(;0<Re-Ve;)Ht=Pu(Ht),Re--;for(;0<Ve-Re;)$e=Pu($e),Ve--;for(;Re--;){if(Ht===$e||$e!==null&&Ht===$e.alternate)break t;Ht=Pu(Ht),$e=Pu($e)}Ht=null}else Ht=null;Ot!==null&&q0(gt,ct,Ot,Ht,!1),Ut!==null&&Ei!==null&&q0(gt,Ei,Ut,Ht,!0)}}e:{if(ct=Ke?Eu(Ke):window,Ot=ct.nodeName&&ct.nodeName.toLowerCase(),Ot==="select"||Ot==="input"&&ct.type==="file")var Yt=vi;else if(ka(ct))if(Xp)Yt=yc;else{Yt=_u;var sn=Fd}else(Ot=ct.nodeName)&&Ot.toLowerCase()==="input"&&(ct.type==="checkbox"||ct.type==="radio")&&(Yt=Nu);if(Yt&&(Yt=Yt(m,Ke))){ju(gt,Yt,S,ft);break e}sn&&sn(m,ct,Ke),m==="focusout"&&(sn=ct._wrapperState)&&sn.controlled&&ct.type==="number"&&we(ct,"number",ct.value)}switch(sn=Ke?Eu(Ke):window,m){case"focusin":(ka(sn)||sn.contentEditable==="true")&&(Ho=sn,xc=Ke,bc=null);break;case"focusout":bc=xc=Ho=null;break;case"mousedown":Qp=!0;break;case"contextmenu":case"mouseup":case"dragend":Qp=!1,Pv(gt,S,ft);break;case"selectionchange":if(Al)break;case"keydown":case"keyup":Pv(gt,S,ft)}var on;if(Ms)e:{switch(m){case"compositionstart":var vn="onCompositionStart";break e;case"compositionend":vn="onCompositionEnd";break e;case"compositionupdate":vn="onCompositionUpdate";break e}vn=void 0}else mo?gc(m,S)&&(vn="onCompositionEnd"):m==="keydown"&&S.keyCode===229&&(vn="onCompositionStart");vn&&(bu&&S.locale!=="ko"&&(mo||vn!=="onCompositionStart"?vn==="onCompositionEnd"&&mo&&(on=hu()):(Is=ft,pc="value"in Is?Is.value:Is.textContent,mo=!0)),sn=em(Ke,vn),0<sn.length&&(vn=new or(vn,m,null,S,ft),gt.push({event:vn,listeners:sn}),on?vn.data=on:(on=Id(S),on!==null&&(vn.data=on)))),(on=Yp?wu(m,S):ih(m,S))&&(Ke=em(Ke,"onBeforeInput"),0<Ke.length&&(ft=new or("onBeforeInput","beforeinput",null,S,ft),gt.push({event:ft,listeners:Ke}),ft.data=on))}lh(gt,b)})}function dh(m,b,S){return{instance:m,listener:b,currentTarget:S}}function em(m,b){for(var S=b+"Capture",I=[];m!==null;){var G=m,Y=G.stateNode;G.tag===5&&Y!==null&&(G=Y,Y=us(m,S),Y!=null&&I.unshift(dh(m,Y,G)),Y=us(m,b),Y!=null&&I.push(dh(m,Y,G))),m=m.return}return I}function Pu(m){if(m===null)return null;do m=m.return;while(m&&m.tag!==5);return m||null}function q0(m,b,S,I,G){for(var Y=b._reactName,se=[];S!==null&&S!==I;){var ye=S,Pe=ye.alternate,Ke=ye.stateNode;if(Pe!==null&&Pe===I)break;ye.tag===5&&Ke!==null&&(ye=Ke,G?(Pe=us(S,Y),Pe!=null&&se.unshift(dh(S,Pe,ye))):G||(Pe=us(S,Y),Pe!=null&&se.push(dh(S,Pe,ye)))),S=S.return}se.length!==0&&m.push({event:b,listeners:se})}var a_=/\r\n?/g,s_=/\u0000|\uFFFD/g;function z0(m){return(typeof m=="string"?m:""+m).replace(a_,`
38`).replace(s_,"")}function tm(m,b,S){if(b=z0(b),z0(m)!==b&&S)throw Error(n(425))}function zd(){}var fh=null,Cu=null;function Mv(m,b){return m==="textarea"||m==="noscript"||typeof b.children=="string"||typeof b.children=="number"||typeof b.dangerouslySetInnerHTML=="object"&&b.dangerouslySetInnerHTML!==null&&b.dangerouslySetInnerHTML.__html!=null}var Dv=typeof setTimeout=="function"?setTimeout:void 0,$0=typeof clearTimeout=="function"?clearTimeout:void 0,U0=typeof Promise=="function"?Promise:void 0,o_=typeof queueMicrotask=="function"?queueMicrotask:typeof U0<"u"?function(m){return U0.resolve(null).then(m).catch(l_)}:Dv;function l_(m){setTimeout(function(){throw m})}function Fv(m,b){var S=b,I=0;do{var G=S.nextSibling;if(m.removeChild(S),G&&G.nodeType===8)if(S=G.data,S==="/$"){if(I===0){m.removeChild(G),jl(b);return}I--}else S!=="$"&&S!=="$?"&&S!=="$!"||I++;S=G}while(S);jl(b)}function Ca(m){for(;m!=null;m=m.nextSibling){var b=m.nodeType;if(b===1||b===3)break;if(b===8){if(b=m.data,b==="$"||b==="$!"||b==="$?")break;if(b==="/$")return null}}return m}function zs(m){m=m.previousSibling;for(var b=0;m;){if(m.nodeType===8){var S=m.data;if(S==="$"||S==="$!"||S==="$?"){if(b===0)return m;b--}else S==="/$"&&b++}m=m.previousSibling}return null}var Ma=Math.random().toString(36).slice(2),Yo="__reactFiber$"+Ma,$d="__reactProps$"+Ma,fa="__reactContainer$"+Ma,Da="__reactEvents$"+Ma,c_="__reactListeners$"+Ma,u_="__reactHandles$"+Ma;function jc(m){var b=m[Yo];if(b)return b;for(var S=m.parentNode;S;){if(b=S[fa]||S[Yo]){if(S=b.alternate,b.child!==null||S!==null&&S.child!==null)for(m=zs(m);m!==null;){if(S=m[Yo])return S;m=zs(m)}return b}m=S,S=m.parentNode}return null}function Ud(m){return m=m[Yo]||m[fa],!m||m.tag!==5&&m.tag!==6&&m.tag!==13&&m.tag!==3?null:m}function Eu(m){if(m.tag===5||m.tag===6)return m.stateNode;throw Error(n(33))}function hh(m){return m[$d]||null}var Bv=[],kl=-1;function vo(m){return{current:m}}function lr(m){0>kl||(m.current=Bv[kl],Bv[kl]=null,kl--)}function dr(m,b){kl++,Bv[kl]=m.current,m.current=b}var _c={},Zi=vo(_c),Fa=vo(!1),Tu=_c;function Gd(m,b){var S=m.type.contextTypes;if(!S)return _c;var I=m.stateNode;if(I&&I.__reactInternalMemoizedUnmaskedChildContext===b)return I.__reactInternalMemoizedMaskedChildContext;var G={},Y;for(Y in S)G[Y]=b[Y];return I&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=b,m.__reactInternalMemoizedMaskedChildContext=G),G}function Ba(m){return m=m.childContextTypes,m!=null}function nm(){lr(Fa),lr(Zi)}function G0(m,b,S){if(Zi.current!==_c)throw Error(n(168));dr(Zi,b),dr(Fa,S)}function qv(m,b,S){var I=m.stateNode;if(b=b.childContextTypes,typeof I.getChildContext!="function")return S;I=I.getChildContext();for(var G in I)if(!(G in b))throw Error(n(108,ne(m)||"Unknown",G));return F({},S,I)}function Ou(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||_c,Tu=Zi.current,dr(Zi,m),dr(Fa,Fa.current),!0}function V0(m,b,S){var I=m.stateNode;if(!I)throw Error(n(169));S?(m=qv(m,b,Tu),I.__reactInternalMemoizedMergedChildContext=m,lr(Fa),lr(Zi),dr(Zi,m)):lr(Fa),dr(Fa,S)}var Pl=null,ph=!1,C=!1;function L(m){Pl===null?Pl=[m]:Pl.push(m)}function W(m){ph=!0,L(m)}function Q(){if(!C&&Pl!==null){C=!0;var m=0,b=Ln;try{var S=Pl;for(Ln=1;m<S.length;m++){var I=S[m];do I=I(!0);while(I!==null)}Pl=null,ph=!1}catch(G){throw Pl!==null&&(Pl=Pl.slice(m+1)),iu(_d,Q),G}finally{Ln=b,C=!1}}return null}var ae=[],oe=0,ce=null,de=0,fe=[],me=0,ke=null,qe=1,ge="";function Te(m,b){ae[oe++]=de,ae[oe++]=ce,ce=m,de=b}function Fe(m,b,S){fe[me++]=qe,fe[me++]=ge,fe[me++]=ke,ke=m;var I=qe;m=ge;var G=32-pi(I)-1;I&=~(1<<G),S+=1;var Y=32-pi(b)+G;if(30<Y){var se=G-G%5;Y=(I&(1<<se)-1).toString(32),I>>=se,G-=se,qe=1<<32-pi(b)+G|S<<G|I,ge=Y+m}else qe=1<<Y|S<<G|I,ge=m}function Je(m){m.return!==null&&(Te(m,1),Fe(m,1,0))}function Ge(m){for(;m===ce;)ce=ae[--oe],ae[oe]=null,de=ae[--oe],ae[oe]=null;for(;m===ke;)ke=fe[--me],fe[me]=null,ge=fe[--me],fe[me]=null,qe=fe[--me],fe[me]=null}var Xe=null,Ze=null,rt=!1,it=null;function Kt(m,b){var S=el(5,null,null,0);S.elementType="DELETED",S.stateNode=b,S.return=m,b=m.deletions,b===null?(m.deletions=[S],m.flags|=16):b.push(S)}function Rt(m,b){switch(m.tag){case 5:var S=m.type;return b=b.nodeType!==1||S.toLowerCase()!==b.nodeName.toLowerCase()?null:b,b!==null?(m.stateNode=b,Xe=m,Ze=Ca(b.firstChild),!0):!1;case 6:return b=m.pendingProps===""||b.nodeType!==3?null:b,b!==null?(m.stateNode=b,Xe=m,Ze=null,!0):!1;case 13:return b=b.nodeType!==8?null:b,b!==null?(S=ke!==null?{id:qe,overflow:ge}:null,m.memoizedState={dehydrated:b,treeContext:S,retryLane:1073741824},S=el(18,null,null,0),S.stateNode=b,S.return=m,m.child=S,Xe=m,Ze=null,!0):!1;default:return!1}}function kn(m){return(m.mode&1)!==0&&(m.flags&128)===0}function Bt(m){if(rt){var b=Ze;if(b){var S=b;if(!Rt(m,b)){if(kn(m))throw Error(n(418));b=Ca(S.nextSibling);var I=Xe;
vendor: 7,804 bytes, line 38
38b&&Rt(m,b)?Kt(I,S):(m.flags=m.flags&-4097|2,rt=!1,Xe=m)}}else{if(kn(m))throw Error(n(418));m.flags=m.flags&-4097|2,rt=!1,Xe=m}}}function Bn(m){for(m=m.return;m!==null&&m.tag!==5&&m.tag!==3&&m.tag!==13;)m=m.return;Xe=m}function Zr(m){if(m!==Xe)return!1;if(!rt)return Bn(m),rt=!0,!1;var b;if((b=m.tag!==3)&&!(b=m.tag!==5)&&(b=m.type,b=b!=="head"&&b!=="body"&&!Mv(m.type,m.memoizedProps)),b&&(b=Ze)){if(kn(m))throw Cn(),Error(n(418));for(;b;)Kt(m,b),b=Ca(b.nextSibling)}if(Bn(m),m.tag===13){if(m=m.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));e:{for(m=m.nextSibling,b=0;m;){if(m.nodeType===8){var S=m.data;if(S==="/$"){if(b===0){Ze=Ca(m.nextSibling);break e}b--}else S!=="$"&&S!=="$!"&&S!=="$?"||b++}m=m.nextSibling}Ze=null}}else Ze=Xe?Ca(m.stateNode.nextSibling):null;return!0}function Cn(){for(var m=Ze;m;)m=Ca(m.nextSibling)}function It(){Ze=Xe=null,rt=!1}function _t(m){it===null?it=[m]:it.push(m)}var si=_.ReactCurrentBatchConfig;function dn(m,b,S){if(m=S.ref,m!==null&&typeof m!="function"&&typeof m!="object"){if(S._owner){if(S=S._owner,S){if(S.tag!==1)throw Error(n(309));var I=S.stateNode}if(!I)throw Error(n(147,m));var G=I,Y=""+m;return b!==null&&b.ref!==null&&typeof b.ref=="function"&&b.ref._stringRef===Y?b.ref:(b=function(se){var ye=G.refs;se===null?delete ye[Y]:ye[Y]=se},b._stringRef=Y,b)}if(typeof m!="string")throw Error(n(284));if(!S._owner)throw Error(n(290,m))}return m}function Dn(m,b){throw m=Object.prototype.toString.call(b),Error(n(31,m==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":m))}function Pr(m){var b=m._init;return b(m._payload)}function qi(m){function b($e,Re){if(m){var Ve=$e.deletions;Ve===null?($e.deletions=[Re],$e.flags|=16):Ve.push(Re)}}function S($e,Re){if(!m)return null;for(;Re!==null;)b($e,Re),Re=Re.sibling;return null}function I($e,Re){for($e=new Map;Re!==null;)Re.key!==null?$e.set(Re.key,Re):$e.set(Re.index,Re),Re=Re.sibling;return $e}function G($e,Re){return $e=ef($e,Re),$e.index=0,$e.sibling=null,$e}function Y($e,Re,Ve){return $e.index=Ve,m?(Ve=$e.alternate,Ve!==null?(Ve=Ve.index,Ve<Re?($e.flags|=2,Re):Ve):($e.flags|=2,Re)):($e.flags|=1048576,Re)}function se($e){return m&&$e.alternate===null&&($e.flags|=2),$e}function ye($e,Re,Ve,bt){return Re===null||Re.tag!==6?(Re=B_(Ve,$e.mode,bt),Re.return=$e,Re):(Re=G(Re,Ve),Re.return=$e,Re)}function Pe($e,Re,Ve,bt){var Yt=Ve.type;return Yt===E?ft($e,Re,Ve.props.children,bt,Ve.key):Re!==null&&(Re.elementType===Yt||typeof Yt=="object"&&Yt!==null&&Yt.$$typeof===H&&Pr(Yt)===Re.type)?(bt=G(Re,Ve.props),bt.ref=dn($e,Re,Ve),bt.return=$e,bt):(bt=db(Ve.type,Ve.key,Ve.props,null,$e.mode,bt),bt.ref=dn($e,Re,Ve),bt.return=$e,bt)}function Ke($e,Re,Ve,bt){return Re===null||Re.tag!==4||Re.stateNode.containerInfo!==Ve.containerInfo||Re.stateNode.implementation!==Ve.implementation?(Re=q_(Ve,$e.mode,bt),Re.return=$e,Re):(Re=G(Re,Ve.children||[]),Re.return=$e,Re)}function ft($e,Re,Ve,bt,Yt){return Re===null||Re.tag!==7?(Re=jh(Ve,$e.mode,bt,Yt),Re.return=$e,Re):(Re=G(Re,Ve),Re.return=$e,Re)}function gt($e,Re,Ve){if(typeof Re=="string"&&Re!==""||typeof Re=="number")return Re=B_(""+Re,$e.mode,Ve),Re.return=$e,Re;if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case N:return Ve=db(Re.type,Re.key,Re.props,null,$e.mode,Ve),Ve.ref=dn($e,null,Re),Ve.return=$e,Ve;case A:return Re=q_(Re,$e.mode,Ve),Re.return=$e,Re;case H:var bt=Re._init;return gt($e,bt(Re._payload),Ve)}if(Ye(Re)||K(Re))return Re=jh(Re,$e.mode,Ve,null),Re.return=$e,Re;Dn($e,Re)}return null}function ct($e,Re,Ve,bt){var Yt=Re!==null?Re.key:null;if(typeof Ve=="string"&&Ve!==""||typeof Ve=="number")return Yt!==null?null:ye($e,Re,""+Ve,bt);if(typeof Ve=="object"&&Ve!==null){switch(Ve.$$typeof){case N:return Ve.key===Yt?Pe($e,Re,Ve,bt):null;case A:return Ve.key===Yt?Ke($e,Re,Ve,bt):null;case H:return Yt=Ve._init,ct($e,Re,Yt(Ve._payload),bt)}if(Ye(Ve)||K(Ve))return Yt!==null?null:ft($e,Re,Ve,bt,null);Dn($e,Ve)}return null}function Ot($e,Re,Ve,bt,Yt){if(typeof bt=="string"&&bt!==""||typeof bt=="number")return $e=$e.get(Ve)||null,ye(Re,$e,""+bt,Yt);if(typeof bt=="object"&&bt!==null){switch(bt.$$typeof){case N:return $e=$e.get(bt.key===null?Ve:bt.key)||null,Pe(Re,$e,bt,Yt);case A:return $e=$e.get(bt.key===null?Ve:bt.key)||null,Ke(Re,$e,bt,Yt);case H:var sn=bt._init;return Ot($e,Re,Ve,sn(bt._payload),Yt)}if(Ye(bt)||K(bt))return $e=$e.get(Ve)||null,ft(Re,$e,bt,Yt,null);Dn(Re,bt)}return null}function Ut($e,Re,Ve,bt){for(var Yt=null,sn=null,on=Re,vn=Re=0,va=null;on!==null&&vn<Ve.length;vn++){on.index>vn?(va=on,on=null):va=on.sibling;var rr=ct($e,on,Ve[vn],bt);if(rr===null){on===null&&(on=va);break}m&&on&&rr.alternate===null&&b($e,on),Re=Y(rr,Re,vn),sn===null?Yt=rr:sn.sibling=rr,sn=rr,on=va}if(vn===Ve.length)return S($e,on),rt&&Te($e,vn),Yt;if(on===null){for(;vn<Ve.length;vn++)on=gt($e,Ve[vn],bt),on!==null&&(Re=Y(on,Re,vn),sn===null?Yt=on:sn.sibling=on,sn=on);return rt&&Te($e,vn),Yt}for(on=I($e,on);vn<Ve.length;vn++)va=Ot(on,$e,vn,Ve[vn],bt),va!==null&&(m&&va.alternate!==null&&on.delete(va.key===null?vn:va.key),Re=Y(va,Re,vn),sn===null?Yt=va:sn.sibling=va,sn=va);return m&&on.forEach(function(tf){return b($e,tf)}),rt&&Te($e,vn),Yt}function Ht($e,Re,Ve,bt){var Yt=K(Ve);if(typeof Yt!="function")throw Error(n(150));if(Ve=Yt.call(Ve),Ve==null)throw Error(n(151));for(var sn=Yt=null,on=Re,vn=Re=0,va=null,rr=Ve.next();on!==null&&!rr.done;vn++,rr=Ve.next()){on.index>vn?(va=on,on=null):va=on.sibling;var tf=ct($e,on,rr.value,bt);if(tf===null){on===null&&(on=va);break}m&&on&&tf.alternate===null&&b($e,on),Re=Y(tf,Re,vn),sn===null?Yt=tf:sn.sibling=tf,sn=tf,on=va}if(rr.done)return S($e,on),rt&&Te($e,vn),Yt;if(on===null){for(;!rr.done;vn++,rr=Ve.next())rr=gt($e,rr.value,bt),rr!==null&&(Re=Y(rr,Re,vn),sn===null?Yt=rr:sn.sibling=rr,sn=rr);return rt&&Te($e,vn),Yt}for(on=I($e,on);!rr.done;vn++,rr=Ve.next())rr=Ot(on,$e,vn,rr.value,bt),rr!==null&&(m&&rr.alternate!==null&&on.delete(rr.key===null?vn:rr.key),Re=Y(rr,Re,vn),sn===null?Yt=rr:sn.sibling=rr,sn=rr);return m&&on.forEach(function(wte){return b($e,wte)}),rt&&Te($e,vn),Yt}function Ei($e,Re,Ve,bt){if(typeof Ve=="object"&&Ve!==null&&Ve.type===E&&Ve.key===null&&(Ve=Ve.props.children),typeof Ve=="object"&&Ve!==null){switch(Ve.$$typeof){case N:e:{for(var Yt=Ve.key,sn=Re;sn!==null;){if(sn.key===Yt){if(Yt=Ve.type,Yt===E){if(sn.tag===7){S($e,sn.sibling),Re=G(sn,Ve.props.children),Re.return=$e,$e=Re;break e}}else if(sn.elementType===Yt||typeof Yt=="object"&&Yt!==null&&Yt.$$typeof===H&&Pr(Yt)===sn.type){S($e,sn.sibling),Re=G(sn,Ve.props),Re.ref=dn($e,sn,Ve),Re.return=$e,$e=Re;break e}S($e,sn);break}else b($e,sn);sn=sn.sibling}Ve.type===E?(Re=jh(Ve.props.children,$e.mode,bt,Ve.key),Re.return=$e,$e=Re):(bt=db(Ve.type,Ve.key,Ve.props,null,$e.mode,bt),bt.ref=dn($e,Re,Ve),bt.return=$e,$e=bt)}return se($e);case A:e:{for(sn=Ve.key;Re!==null;){if(Re.key===sn)if(Re.tag===4&&Re.stateNode.containerInfo===Ve.containerInfo&&Re.stateNode.implementation===Ve.implementation){S($e,Re.sibling),Re=G(Re,Ve.children||[]),Re.return=$e,$e=Re;break e}else{S($e,Re);break}else b($e,Re);Re=Re.sibling}Re=q_(Ve,$e.mode,bt),Re.return=$e,$e=Re}return se($e);case H:return sn=Ve._init,Ei($e,Re,sn(Ve._payload),bt)}if(Ye(Ve))return Ut($e,Re,Ve,bt);if(K(Ve))return Ht($e,Re,Ve,bt);Dn($e,Ve)}return typeof Ve=="string"&&Ve!==""||typeof Ve=="number"?(Ve=""+Ve,Re!==null&&Re.tag===6?(S($e,Re.sibling),Re=G(Re,Ve),Re.return=$e,$e=Re):(S($e,Re),Re=B_(Ve,$e.mode,bt),Re.return=$e,$e=Re),se($e)):S($e,Re)}return Ei}var yi=qi(!0),Hr=qi(!1),Pi=vo(null),zi=null,Lr=null,Un=null;function er(){Un=Lr=zi=null}function Mr(m){var b=Pi.current;lr(Pi),m._currentValue=b}function tr(m,b,S){for(;m!==null;){var I=m.alternate;if((m.childLanes&b)!==b?(m.childLanes|=b,I!==null&&(I.childLanes|=b)):I!==null&&(I.childLanes&b)!==b&&(I.childLanes|=b),m===S)break;m=m.return}}
vendor: 11,319 bytes, line 38
38function Jr(m,b){zi=m,Un=Lr=null,m=m.dependencies,m!==null&&m.firstContext!==null&&((m.lanes&b)!==0&&(Us=!0),m.firstContext=null)}function ei(m){var b=m._currentValue;if(Un!==m)if(m={context:m,memoizedValue:b,next:null},Lr===null){if(zi===null)throw Error(n(308));Lr=m,zi.dependencies={lanes:0,firstContext:m}}else Lr=Lr.next=m;return b}var wr=null;function ha(m){wr===null?wr=[m]:wr.push(m)}function fr(m,b,S,I){var G=b.interleaved;return G===null?(S.next=S,ha(b)):(S.next=G.next,G.next=S),b.interleaved=S,jr(m,I)}function jr(m,b){m.lanes|=b;var S=m.alternate;for(S!==null&&(S.lanes|=b),S=m,m=m.return;m!==null;)m.childLanes|=b,S=m.alternate,S!==null&&(S.childLanes|=b),S=m,m=m.return;return S.tag===3?S.stateNode:null}var xi=!1;function Ji(m){m.updateQueue={baseState:m.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qa(m,b){m=m.updateQueue,b.updateQueue===m&&(b.updateQueue={baseState:m.baseState,firstBaseUpdate:m.firstBaseUpdate,lastBaseUpdate:m.lastBaseUpdate,shared:m.shared,effects:m.effects})}function oi(m,b){return{eventTime:m,lane:b,tag:0,payload:null,callback:null,next:null}}function li(m,b,S){var I=m.updateQueue;if(I===null)return null;if(I=I.shared,(nr&2)!==0){var G=I.pending;return G===null?b.next=b:(b.next=G.next,G.next=b),I.pending=b,jr(m,S)}return G=I.interleaved,G===null?(b.next=b,ha(I)):(b.next=G.next,G.next=b),I.interleaved=b,jr(m,S)}function pa(m,b,S){if(b=b.updateQueue,b!==null&&(b=b.shared,(S&4194240)!==0)){var I=b.lanes;I&=m.pendingLanes,S|=I,b.lanes=S,Zf(m,S)}}function _r(m,b){var S=m.updateQueue,I=m.alternate;if(I!==null&&(I=I.updateQueue,S===I)){var G=null,Y=null;if(S=S.firstBaseUpdate,S!==null){do{var se={eventTime:S.eventTime,lane:S.lane,tag:S.tag,payload:S.payload,callback:S.callback,next:null};Y===null?G=Y=se:Y=Y.next=se,S=S.next}while(S!==null);Y===null?G=Y=b:Y=Y.next=b}else G=Y=b;S={baseState:I.baseState,firstBaseUpdate:G,lastBaseUpdate:Y,shared:I.shared,effects:I.effects},m.updateQueue=S;return}m=S.lastBaseUpdate,m===null?S.firstBaseUpdate=b:m.next=b,S.lastBaseUpdate=b}function ma(m,b,S,I){var G=m.updateQueue;xi=!1;var Y=G.firstBaseUpdate,se=G.lastBaseUpdate,ye=G.shared.pending;if(ye!==null){G.shared.pending=null;var Pe=ye,Ke=Pe.next;Pe.next=null,se===null?Y=Ke:se.next=Ke,se=Pe;var ft=m.alternate;ft!==null&&(ft=ft.updateQueue,ye=ft.lastBaseUpdate,ye!==se&&(ye===null?ft.firstBaseUpdate=Ke:ye.next=Ke,ft.lastBaseUpdate=Pe))}if(Y!==null){var gt=G.baseState;se=0,ft=Ke=Pe=null,ye=Y;do{var ct=ye.lane,Ot=ye.eventTime;if((I&ct)===ct){ft!==null&&(ft=ft.next={eventTime:Ot,lane:0,tag:ye.tag,payload:ye.payload,callback:ye.callback,next:null});e:{var Ut=m,Ht=ye;switch(ct=b,Ot=S,Ht.tag){case 1:if(Ut=Ht.payload,typeof Ut=="function"){gt=Ut.call(Ot,gt,ct);break e}gt=Ut;break e;case 3:Ut.flags=Ut.flags&-65537|128;case 0:if(Ut=Ht.payload,ct=typeof Ut=="function"?Ut.call(Ot,gt,ct):Ut,ct==null)break e;gt=F({},gt,ct);break e;case 2:xi=!0}}ye.callback!==null&&ye.lane!==0&&(m.flags|=64,ct=G.effects,ct===null?G.effects=[ye]:ct.push(ye))}else Ot={eventTime:Ot,lane:ct,tag:ye.tag,payload:ye.payload,callback:ye.callback,next:null},ft===null?(Ke=ft=Ot,Pe=gt):ft=ft.next=Ot,se|=ct;if(ye=ye.next,ye===null){if(ye=G.shared.pending,ye===null)break;ct=ye,ye=ct.next,ct.next=null,G.lastBaseUpdate=ct,G.shared.pending=null}}while(!0);if(ft===null&&(Pe=gt),G.baseState=Pe,G.firstBaseUpdate=Ke,G.lastBaseUpdate=ft,b=G.shared.interleaved,b!==null){G=b;do se|=G.lane,G=G.next;while(G!==b)}else Y===null&&(G.shared.lanes=0);yh|=se,m.lanes=se,m.memoizedState=gt}}function $s(m,b,S){if(m=b.effects,b.effects=null,m!==null)for(b=0;b<m.length;b++){var I=m[b],G=I.callback;if(G!==null){if(I.callback=null,I=S,typeof G!="function")throw Error(n(191,G));G.call(I)}}}var yo={},$i=vo(yo),ci=vo(yo),Nc=vo(yo);function Cl(m){if(m===yo)throw Error(n(174));return m}function Vd(m,b){switch(dr(Nc,b),dr(ci,m),dr($i,yo),m=b.nodeType,m){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:et(null,"");break;default:m=m===8?b.parentNode:b,b=m.namespaceURI||null,m=m.tagName,b=et(b,m)}lr($i),dr($i,b)}function Xo(){lr($i),lr(ci),lr(Nc)}function W0(m){Cl(Nc.current);var b=Cl($i.current),S=et(b,m.type);b!==S&&(dr(ci,m),dr($i,S))}function zv(m){ci.current===m&&(lr($i),lr(ci))}var Or=vo(0);function xo(m){for(var b=m;b!==null;){if(b.tag===13){var S=b.memoizedState;if(S!==null&&(S=S.dehydrated,S===null||S.data==="$?"||S.data==="$!"))return b}else if(b.tag===19&&b.memoizedProps.revealOrder!==void 0){if((b.flags&128)!==0)return b}else if(b.child!==null){b.child.return=b,b=b.child;continue}if(b===m)break;for(;b.sibling===null;){if(b.return===null||b.return===m)return null;b=b.return}b.sibling.return=b.return,b=b.sibling}return null}var $v=[];function Uv(){for(var m=0;m<$v.length;m++)$v[m]._workInProgressVersionPrimary=null;$v.length=0}var rm=_.ReactCurrentDispatcher,im=_.ReactCurrentBatchConfig,Qo=0,Dr=null,bi=null,ui=null,Wd=!1,El=!1,Hd=0,d_=0;function Ci(){throw Error(n(321))}function am(m,b){if(b===null)return!1;for(var S=0;S<b.length&&S<m.length;S++)if(!Bi(m[S],b[S]))return!1;return!0}function mh(m,b,S,I,G,Y){if(Qo=Y,Dr=b,b.memoizedState=null,b.updateQueue=null,b.lanes=0,rm.current=m===null||m.memoizedState===null?Hee:Kee,m=S(I,G),El){Y=0;do{if(El=!1,Hd=0,25<=Y)throw Error(n(301));Y+=1,ui=bi=null,b.updateQueue=null,rm.current=Yee,m=S(I,G)}while(El)}if(rm.current=Q0,b=bi!==null&&bi.next!==null,Qo=0,ui=bi=Dr=null,Wd=!1,b)throw Error(n(300));return m}function Zo(){var m=Hd!==0;return Hd=0,m}function bo(){var m={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ui===null?Dr.memoizedState=ui=m:ui=ui.next=m,ui}function ys(){if(bi===null){var m=Dr.alternate;m=m!==null?m.memoizedState:null}else m=bi.next;var b=ui===null?Dr.memoizedState:ui.next;if(b!==null)ui=b,bi=m;else{if(m===null)throw Error(n(310));bi=m,m={memoizedState:bi.memoizedState,baseState:bi.baseState,baseQueue:bi.baseQueue,queue:bi.queue,next:null},ui===null?Dr.memoizedState=ui=m:ui=ui.next=m}return ui}function gh(m,b){return typeof b=="function"?b(m):b}function sm(m){var b=ys(),S=b.queue;if(S===null)throw Error(n(311));S.lastRenderedReducer=m;var I=bi,G=I.baseQueue,Y=S.pending;if(Y!==null){if(G!==null){var se=G.next;G.next=Y.next,Y.next=se}I.baseQueue=G=Y,S.pending=null}if(G!==null){Y=G.next,I=I.baseState;var ye=se=null,Pe=null,Ke=Y;do{var ft=Ke.lane;if((Qo&ft)===ft)Pe!==null&&(Pe=Pe.next={lane:0,action:Ke.action,hasEagerState:Ke.hasEagerState,eagerState:Ke.eagerState,next:null}),I=Ke.hasEagerState?Ke.eagerState:m(I,Ke.action);else{var gt={lane:ft,action:Ke.action,hasEagerState:Ke.hasEagerState,eagerState:Ke.eagerState,next:null};Pe===null?(ye=Pe=gt,se=I):Pe=Pe.next=gt,Dr.lanes|=ft,yh|=ft}Ke=Ke.next}while(Ke!==null&&Ke!==Y);Pe===null?se=I:Pe.next=ye,Bi(I,b.memoizedState)||(Us=!0),b.memoizedState=I,b.baseState=se,b.baseQueue=Pe,S.lastRenderedState=I}if(m=S.interleaved,m!==null){G=m;do Y=G.lane,Dr.lanes|=Y,yh|=Y,G=G.next;while(G!==m)}else G===null&&(S.lanes=0);return[b.memoizedState,S.dispatch]}function Sc(m){var b=ys(),S=b.queue;if(S===null)throw Error(n(311));S.lastRenderedReducer=m;var I=S.dispatch,G=S.pending,Y=b.memoizedState;if(G!==null){S.pending=null;var se=G=G.next;do Y=m(Y,se.action),se=se.next;while(se!==G);Bi(Y,b.memoizedState)||(Us=!0),b.memoizedState=Y,b.baseQueue===null&&(b.baseState=Y),S.lastRenderedState=Y}return[Y,I]}function H0(){}function Gv(m,b){var S=Dr,I=ys(),G=b(),Y=!Bi(I.memoizedState,G);if(Y&&(I.memoizedState=G,Us=!0),I=I.queue,cm(Y0.bind(null,S,I,m),[m]),I.getSnapshot!==b||Y||ui!==null&&ui.memoizedState.tag&1){if(S.flags|=2048,xs(9,Vv.bind(null,S,I,G,b),void 0,null),ga===null)throw Error(n(349));(Qo&30)!==0||K0(S,b,G)}return G}function K0(m,b,S){m.flags|=16384,m={getSnapshot:b,value:S},b=Dr.updateQueue,b===null?(b={lastEffect:null,stores:null},Dr.updateQueue=b,b.stores=[m]):(S=b.stores,S===null?b.stores=[m]:S.push(m))}function Vv(m,b,S,I){b.value=S,b.getSnapshot=I,Kd(b)&&om(m)}function Y0(m,b,S){return S(function(){Kd(b)&&om(m)})}function Kd(m){var b=m.getSnapshot;m=m.value;try{var S=b();return!Bi(m,S)}catch{return!0}}function om(m){var b=jr(m,1);b!==null&&Ll(b,m,1,-1)}function vh(m){var b=bo();return typeof m=="function"&&(m=m()),b.memoizedState=b.baseState=m,m={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gh,lastRenderedState:m},b.queue=m,m=m.dispatch=Wee.bind(null,Dr,m),[b.memoizedState,m]}function xs(m,b,S,I){return m={tag:m,create:b,destroy:S,deps:I,next:null},b=Dr.updateQueue,b===null?(b={lastEffect:null,stores:null},Dr.updateQueue=b,b.lastEffect=m.next=m):(S=b.lastEffect,S===null?b.lastEffect=m.next=m:(I=S.next,S.next=m,m.next=I,b.lastEffect=m)),m}function Tl(){return ys().memoizedState}function wo(m,b,S,I){var G=bo();Dr.flags|=m,G.memoizedState=xs(1|b,S,void 0,I===void 0?null:I)}function Ru(m,b,S,I){var G=ys();I=I===void 0?null:I;var Y=void 0;if(bi!==null){var se=bi.memoizedState;if(Y=se.destroy,I!==null&&am(I,se.deps)){G.memoizedState=xs(b,S,Y,I);return}}Dr.flags|=m,G.memoizedState=xs(1|b,S,Y,I)}function lm(m,b){return wo(8390656,8,m,b)}function cm(m,b){return Ru(2048,8,m,b)}function X0(m,b){return Ru(4,2,m,b)}function um(m,b){return Ru(4,4,m,b)}function dm(m,b){if(typeof b=="function")return m=m(),b(m),function(){b(null)};if(b!=null)return m=m(),b.current=m,function(){b.current=null}}function EO(m,b,S){return S=S!=null?S.concat([m]):null,Ru(4,4,dm.bind(null,b,m),S)}function f_(){}function TO(m,b){var S=ys();b=b===void 0?null:b;var I=S.memoizedState;return I!==null&&b!==null&&am(b,I[1])?I[0]:(S.memoizedState=[m,b],m)}function OO(m,b){var S=ys();b=b===void 0?null:b;var I=S.memoizedState;return I!==null&&b!==null&&am(b,I[1])?I[0]:(m=m(),S.memoizedState=[m,b],m)}function RO(m,b,S){return(Qo&21)===0?(m.baseState&&(m.baseState=!1,Us=!0),m.memoizedState=S):(Bi(S,b)||(S=Fi(),Dr.lanes|=S,yh|=S,m.baseState=!0),b)}function Gee(m,b){var S=Ln;Ln=S!==0&&4>S?S:4,m(!0);var I=im.transition;im.transition={};try{m(!1),b()}finally{Ln=S,im.transition=I}}function IO(){return ys().memoizedState}function Vee(m,b,S){var I=Zd(m);if(S={lane:I,action:S,hasEagerState:!1,eagerState:null,next:null},LO(m))MO(b,S);else if(S=fr(m,b,S,I),S!==null){var G=ws();Ll(S,m,I,G),DO(S,b,I)}}function Wee(m,b,S){var I=Zd(m),G={lane:I,action:S,hasEagerState:!1,eagerState:null,next:null};if(LO(m))MO(b,G);else{var Y=m.alternate;if(m.lanes===0&&(Y===null||Y.lanes===0)&&(Y=b.lastRenderedReducer,Y!==null))try{var se=b.lastRenderedState,ye=Y(se,S);if(G.hasEagerState=!0,G.eagerState=ye,Bi(ye,se)){var Pe=b.interleaved;Pe===null?(G.next=G,ha(b)):(G.next=Pe.next,Pe.next=G),b.interleaved=G;return}}catch{}finally{}S=fr(m,b,G,I),S!==null&&(G=ws(),Ll(S,m,I,G),DO(S,b,I))}}function LO(m){var b=m.alternate;return m===Dr||b!==null&&b===Dr}function MO(m,b){El=Wd=!0;var S=m.pending;S===null?b.next=b:(b.next=S.next,S.next=b),m.pending=b}function DO(m,b,S){if((S&4194240)!==0){var I=b.lanes;I&=m.pendingLanes,S|=I,b.lanes=S,Zf(m,S)}}var Q0={readContext:ei,useCallback:Ci,useContext:Ci,useEffect:Ci,useImperativeHandle:Ci,useInsertionEffect:Ci,useLayoutEffect:Ci,useMemo:Ci,useReducer:Ci,useRef:Ci,useState:Ci,useDebugValue:Ci,useDeferredValue:Ci,useTransition:Ci,useMutableSource:Ci,useSyncExternalStore:Ci,useId:Ci,unstable_isNewReconciler:!1},Hee={readContext:ei,useCallback:function(m,b){return bo().memoizedState=[m,b
vendor: 4,921 bytes, line 38
38===void 0?null:b],m},useContext:ei,useEffect:lm,useImperativeHandle:function(m,b,S){return S=S!=null?S.concat([m]):null,wo(4194308,4,dm.bind(null,b,m),S)},useLayoutEffect:function(m,b){return wo(4194308,4,m,b)},useInsertionEffect:function(m,b){return wo(4,2,m,b)},useMemo:function(m,b){var S=bo();return b=b===void 0?null:b,m=m(),S.memoizedState=[m,b],m},useReducer:function(m,b,S){var I=bo();return b=S!==void 0?S(b):b,I.memoizedState=I.baseState=b,m={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:m,lastRenderedState:b},I.queue=m,m=m.dispatch=Vee.bind(null,Dr,m),[I.memoizedState,m]},useRef:function(m){var b=bo();return m={current:m},b.memoizedState=m},useState:vh,useDebugValue:f_,useDeferredValue:function(m){return bo().memoizedState=m},useTransition:function(){var m=vh(!1),b=m[0];return m=Gee.bind(null,m[1]),bo().memoizedState=m,[b,m]},useMutableSource:function(){},useSyncExternalStore:function(m,b,S){var I=Dr,G=bo();if(rt){if(S===void 0)throw Error(n(407));S=S()}else{if(S=b(),ga===null)throw Error(n(349));(Qo&30)!==0||K0(I,b,S)}G.memoizedState=S;var Y={value:S,getSnapshot:b};return G.queue=Y,lm(Y0.bind(null,I,Y,m),[m]),I.flags|=2048,xs(9,Vv.bind(null,I,Y,S,b),void 0,null),S},useId:function(){var m=bo(),b=ga.identifierPrefix;if(rt){var S=ge,I=qe;S=(I&~(1<<32-pi(I)-1)).toString(32)+S,b=":"+b+"R"+S,S=Hd++,0<S&&(b+="H"+S.toString(32)),b+=":"}else S=d_++,b=":"+b+"r"+S.toString(32)+":";return m.memoizedState=b},unstable_isNewReconciler:!1},Kee={readContext:ei,useCallback:TO,useContext:ei,useEffect:cm,useImperativeHandle:EO,useInsertionEffect:X0,useLayoutEffect:um,useMemo:OO,useReducer:sm,useRef:Tl,useState:function(){return sm(gh)},useDebugValue:f_,useDeferredValue:function(m){var b=ys();return RO(b,bi.memoizedState,m)},useTransition:function(){var m=sm(gh)[0],b=ys().memoizedState;return[m,b]},useMutableSource:H0,useSyncExternalStore:Gv,useId:IO,unstable_isNewReconciler:!1},Yee={readContext:ei,useCallback:TO,useContext:ei,useEffect:cm,useImperativeHandle:EO,useInsertionEffect:X0,useLayoutEffect:um,useMemo:OO,useReducer:Sc,useRef:Tl,useState:function(){return Sc(gh)},useDebugValue:f_,useDeferredValue:function(m){var b=ys();return bi===null?b.memoizedState=m:RO(b,bi.memoizedState,m)},useTransition:function(){var m=Sc(gh)[0],b=ys().memoizedState;return[m,b]},useMutableSource:H0,useSyncExternalStore:Gv,useId:IO,unstable_isNewReconciler:!1};function Ol(m,b){if(m&&m.defaultProps){b=F({},b),m=m.defaultProps;for(var S in m)b[S]===void 0&&(b[S]=m[S]);return b}return b}function h_(m,b,S,I){b=m.memoizedState,S=S(I,b),S=S==null?b:F({},b,S),m.memoizedState=S,m.lanes===0&&(m.updateQueue.baseState=S)}var Z0={isMounted:function(m){return(m=m._reactInternals)?Xi(m)===m:!1},enqueueSetState:function(m,b,S){m=m._reactInternals;var I=ws(),G=Zd(m),Y=oi(I,G);Y.payload=b,S!=null&&(Y.callback=S),b=li(m,Y,G),b!==null&&(Ll(b,m,G,I),pa(b,m,G))},enqueueReplaceState:function(m,b,S){m=m._reactInternals;var I=ws(),G=Zd(m),Y=oi(I,G);Y.tag=1,Y.payload=b,S!=null&&(Y.callback=S),b=li(m,Y,G),b!==null&&(Ll(b,m,G,I),pa(b,m,G))},enqueueForceUpdate:function(m,b){m=m._reactInternals;var S=ws(),I=Zd(m),G=oi(S,I);G.tag=2,b!=null&&(G.callback=b),b=li(m,G,I),b!==null&&(Ll(b,m,I,S),pa(b,m,I))}};function FO(m,b,S,I,G,Y,se){return m=m.stateNode,typeof m.shouldComponentUpdate=="function"?m.shouldComponentUpdate(I,Y,se):b.prototype&&b.prototype.isPureReactComponent?!Wo(S,I)||!Wo(G,Y):!0}function BO(m,b,S){var I=!1,G=_c,Y=b.contextType;return typeof Y=="object"&&Y!==null?Y=ei(Y):(G=Ba(b)?Tu:Zi.current,I=b.contextTypes,Y=(I=I!=null)?Gd(m,G):_c),b=new b(S,Y),m.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Z0,m.stateNode=b,b._reactInternals=m,I&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=G,m.__reactInternalMemoizedMaskedChildContext=Y),b}function qO(m,b,S,I){m=b.state,typeof b.componentWillReceiveProps=="function"&&b.componentWillReceiveProps(S,I),typeof b.UNSAFE_componentWillReceiveProps=="function"&&b.UNSAFE_componentWillReceiveProps(S,I),b.state!==m&&Z0.enqueueReplaceState(b,b.state,null)}function p_(m,b,S,I){var G=m.stateNode;G.props=S,G.state=m.memoizedState,G.refs={},Ji(m);var Y=b.contextType;typeof Y=="object"&&Y!==null?G.context=ei(Y):(Y=Ba(b)?Tu:Zi.current,G.context=Gd(m,Y)),G.state=m.memoizedState,Y=b.getDerivedStateFromProps,typeof Y=="function"&&(h_(m,b,Y,S),G.state=m.memoizedState),typeof b.getDerivedStateFromProps=="function"||typeof G.getSnapshotBeforeUpdate=="function"||typeof G.UNSAFE_componentWillMount!="function"&&typeof G.componentWillMount!="function"||(b=G.state,typeof G.componentWillMount=="function"&&G.componentWillMount(),typeof G.UNSAFE_componentWillMount=="function"&&G.UNSAFE_componentWillMount(),b!==G.state&&Z0.enqueueReplaceState(G,G.state,null),ma(m,S,G,I),G.state=m.memoizedState),typeof G.componentDidMount=="function"&&(m.flags|=4194308)}function fm(m,b){try{var S="",I=b;do S+=te(I),I=I.return;
vendor: 17,145 bytes, lines 38-40
38while(I);var G=S}catch(Y){G=` 39Error generating stack: `+Y.message+` 40`+Y.stack}return{value:m,source:b,stack:G,digest:null}}function m_(m,b,S){return{value:m,source:null,stack:S??null,digest:b??null}}function g_(m,b){try{console.error(b.value)}catch(S){setTimeout(function(){throw S})}}var Xee=typeof WeakMap=="function"?WeakMap:Map;function zO(m,b,S){S=oi(-1,S),S.tag=3,S.payload={element:null};var I=b.value;return S.callback=function(){ab||(ab=!0,T_=I),g_(m,b)},S}function $O(m,b,S){S=oi(-1,S),S.tag=3;var I=m.type.getDerivedStateFromError;if(typeof I=="function"){var G=b.value;S.payload=function(){return I(G)},S.callback=function(){g_(m,b)}}var Y=m.stateNode;return Y!==null&&typeof Y.componentDidCatch=="function"&&(S.callback=function(){g_(m,b),typeof I!="function"&&(Xd===null?Xd=new Set([this]):Xd.add(this));var se=b.stack;this.componentDidCatch(b.value,{componentStack:se!==null?se:""})}),S}function UO(m,b,S){var I=m.pingCache;if(I===null){I=m.pingCache=new Xee;var G=new Set;I.set(b,G)}else G=I.get(b),G===void 0&&(G=new Set,I.set(b,G));G.has(S)||(G.add(S),m=ute.bind(null,m,b,S),b.then(m,m))}function GO(m){do{var b;if((b=m.tag===13)&&(b=m.memoizedState,b=b!==null?b.dehydrated!==null:!0),b)return m;m=m.return}while(m!==null);return null}function VO(m,b,S,I,G){return(m.mode&1)===0?(m===b?m.flags|=65536:(m.flags|=128,S.flags|=131072,S.flags&=-52805,S.tag===1&&(S.alternate===null?S.tag=17:(b=oi(-1,1),b.tag=2,li(S,b,1))),S.lanes|=1),m):(m.flags|=65536,m.lanes=G,m)}var Qee=_.ReactCurrentOwner,Us=!1;function bs(m,b,S,I){b.child=m===null?Hr(b,null,S,I):yi(b,m.child,S,I)}function WO(m,b,S,I,G){S=S.render;var Y=b.ref;return Jr(b,G),I=mh(m,b,S,I,Y,G),S=Zo(),m!==null&&!Us?(b.updateQueue=m.updateQueue,b.flags&=-2053,m.lanes&=~G,Iu(m,b,G)):(rt&&S&&Je(b),b.flags|=1,bs(m,b,I,G),b.child)}function HO(m,b,S,I,G){if(m===null){var Y=S.type;return typeof Y=="function"&&!F_(Y)&&Y.defaultProps===void 0&&S.compare===null&&S.defaultProps===void 0?(b.tag=15,b.type=Y,KO(m,b,Y,I,G)):(m=db(S.type,null,I,b,b.mode,G),m.ref=b.ref,m.return=b,b.child=m)}if(Y=m.child,(m.lanes&G)===0){var se=Y.memoizedProps;if(S=S.compare,S=S!==null?S:Wo,S(se,I)&&m.ref===b.ref)return Iu(m,b,G)}return b.flags|=1,m=ef(Y,I),m.ref=b.ref,m.return=b,b.child=m}function KO(m,b,S,I,G){if(m!==null){var Y=m.memoizedProps;if(Wo(Y,I)&&m.ref===b.ref)if(Us=!1,b.pendingProps=I=Y,(m.lanes&G)!==0)(m.flags&131072)!==0&&(Us=!0);else return b.lanes=m.lanes,Iu(m,b,G)}return v_(m,b,S,I,G)}function YO(m,b,S){var I=b.pendingProps,G=I.children,Y=m!==null?m.memoizedState:null;if(I.mode==="hidden")if((b.mode&1)===0)b.memoizedState={baseLanes:0,cachePool:null,transitions:null},dr(pm,jo),jo|=S;else{if((S&1073741824)===0)return m=Y!==null?Y.baseLanes|S:S,b.lanes=b.childLanes=1073741824,b.memoizedState={baseLanes:m,cachePool:null,transitions:null},b.updateQueue=null,dr(pm,jo),jo|=m,null;b.memoizedState={baseLanes:0,cachePool:null,transitions:null},I=Y!==null?Y.baseLanes:S,dr(pm,jo),jo|=I}else Y!==null?(I=Y.baseLanes|S,b.memoizedState=null):I=S,dr(pm,jo),jo|=I;return bs(m,b,G,S),b.child}function XO(m,b){var S=b.ref;(m===null&&S!==null||m!==null&&m.ref!==S)&&(b.flags|=512,b.flags|=2097152)}function v_(m,b,S,I,G){var Y=Ba(S)?Tu:Zi.current;return Y=Gd(b,Y),Jr(b,G),S=mh(m,b,S,I,Y,G),I=Zo(),m!==null&&!Us?(b.updateQueue=m.updateQueue,b.flags&=-2053,m.lanes&=~G,Iu(m,b,G)):(rt&&I&&Je(b),b.flags|=1,bs(m,b,S,G),b.child)}function QO(m,b,S,I,G){if(Ba(S)){var Y=!0;Ou(b)}else Y=!1;if(Jr(b,G),b.stateNode===null)eb(m,b),BO(b,S,I),p_(b,S,I,G),I=!0;else if(m===null){var se=b.stateNode,ye=b.memoizedProps;se.props=ye;var Pe=se.context,Ke=S.contextType;typeof Ke=="object"&&Ke!==null?Ke=ei(Ke):(Ke=Ba(S)?Tu:Zi.current,Ke=Gd(b,Ke));var ft=S.getDerivedStateFromProps,gt=typeof ft=="function"||typeof se.getSnapshotBeforeUpdate=="function";gt||typeof se.UNSAFE_componentWillReceiveProps!="function"&&typeof se.componentWillReceiveProps!="function"||(ye!==I||Pe!==Ke)&&qO(b,se,I,Ke),xi=!1;var ct=b.memoizedState;se.state=ct,ma(b,I,se,G),Pe=b.memoizedState,ye!==I||ct!==Pe||Fa.current||xi?(typeof ft=="function"&&(h_(b,S,ft,I),Pe=b.memoizedState),(ye=xi||FO(b,S,ye,I,ct,Pe,Ke))?(gt||typeof se.UNSAFE_componentWillMount!="function"&&typeof se.componentWillMount!="function"||(typeof se.componentWillMount=="function"&&se.componentWillMount(),typeof se.UNSAFE_componentWillMount=="function"&&se.UNSAFE_componentWillMount()),typeof se.componentDidMount=="function"&&(b.flags|=4194308)):(typeof se.componentDidMount=="function"&&(b.flags|=4194308),b.memoizedProps=I,b.memoizedState=Pe),se.props=I,se.state=Pe,se.context=Ke,I=ye):(typeof se.componentDidMount=="function"&&(b.flags|=4194308),I=!1)}else{se=b.stateNode,qa(m,b),ye=b.memoizedProps,Ke=b.type===b.elementType?ye:Ol(b.type,ye),se.props=Ke,gt=b.pendingProps,ct=se.context,Pe=S.contextType,typeof Pe=="object"&&Pe!==null?Pe=ei(Pe):(Pe=Ba(S)?Tu:Zi.current,Pe=Gd(b,Pe));var Ot=S.getDerivedStateFromProps;(ft=typeof Ot=="function"||typeof se.getSnapshotBeforeUpdate=="function")||typeof se.UNSAFE_componentWillReceiveProps!="function"&&typeof se.componentWillReceiveProps!="function"||(ye!==gt||ct!==Pe)&&qO(b,se,I,Pe),xi=!1,ct=b.memoizedState,se.state=ct,ma(b,I,se,G);var Ut=b.memoizedState;ye!==gt||ct!==Ut||Fa.current||xi?(typeof Ot=="function"&&(h_(b,S,Ot,I),Ut=b.memoizedState),(Ke=xi||FO(b,S,Ke,I,ct,Ut,Pe)||!1)?(ft||typeof se.UNSAFE_componentWillUpdate!="function"&&typeof se.componentWillUpdate!="function"||(typeof se.componentWillUpdate=="function"&&se.componentWillUpdate(I,Ut,Pe),typeof se.UNSAFE_componentWillUpdate=="function"&&se.UNSAFE_componentWillUpdate(I,Ut,Pe)),typeof se.componentDidUpdate=="function"&&(b.flags|=4),typeof se.getSnapshotBeforeUpdate=="function"&&(b.flags|=1024)):(typeof se.componentDidUpdate!="function"||ye===m.memoizedProps&&ct===m.memoizedState||(b.flags|=4),typeof se.getSnapshotBeforeUpdate!="function"||ye===m.memoizedProps&&ct===m.memoizedState||(b.flags|=1024),b.memoizedProps=I,b.memoizedState=Ut),se.props=I,se.state=Ut,se.context=Pe,I=Ke):(typeof se.componentDidUpdate!="function"||ye===m.memoizedProps&&ct===m.memoizedState||(b.flags|=4),typeof se.getSnapshotBeforeUpdate!="function"||ye===m.memoizedProps&&ct===m.memoizedState||(b.flags|=1024),I=!1)}return y_(m,b,S,I,Y,G)}function y_(m,b,S,I,G,Y){XO(m,b);var se=(b.flags&128)!==0;if(!I&&!se)return G&&V0(b,S,!1),Iu(m,b,Y);I=b.stateNode,Qee.current=b;var ye=se&&typeof S.getDerivedStateFromError!="function"?null:I.render();return b.flags|=1,m!==null&&se?(b.child=yi(b,m.child,null,Y),b.child=yi(b,null,ye,Y)):bs(m,b,ye,Y),b.memoizedState=I.state,G&&V0(b,S,!0),b.child}function ZO(m){var b=m.stateNode;b.pendingContext?G0(m,b.pendingContext,b.pendingContext!==b.context):b.context&&G0(m,b.context,!1),Vd(m,b.containerInfo)}function JO(m,b,S,I,G){return It(),_t(G),b.flags|=256,bs(m,b,S,I),b.child}var x_={dehydrated:null,treeContext:null,retryLane:0};function b_(m){return{baseLanes:m,cachePool:null,transitions:null}}function eR(m,b,S){var I=b.pendingProps,G=Or.current,Y=!1,se=(b.flags&128)!==0,ye;if((ye=se)||(ye=m!==null&&m.memoizedState===null?!1:(G&2)!==0),ye?(Y=!0,b.flags&=-129):(m===null||m.memoizedState!==null)&&(G|=1),dr(Or,G&1),m===null)return Bt(b),m=b.memoizedState,m!==null&&(m=m.dehydrated,m!==null)?((b.mode&1)===0?b.lanes=1:m.data==="$!"?b.lanes=8:b.lanes=1073741824,null):(se=I.children,m=I.fallback,Y?(I=b.mode,Y=b.child,se={mode:"hidden",children:se},(I&1)===0&&Y!==null?(Y.childLanes=0,Y.pendingProps=se):Y=fb(se,I,0,null),m=jh(m,I,S,null),Y.return=b,m.return=b,Y.sibling=m,b.child=Y,b.child.memoizedState=b_(S),b.memoizedState=x_,m):w_(b,se));if(G=m.memoizedState,G!==null&&(ye=G.dehydrated,ye!==null))return Zee(m,b,se,I,ye,G,S);if(Y){Y=I.fallback,se=b.mode,G=m.child,ye=G.sibling;var Pe={mode:"hidden",children:I.children};return(se&1)===0&&b.child!==G?(I=b.child,I.childLanes=0,I.pendingProps=Pe,b.deletions=null):(I=ef(G,Pe),I.subtreeFlags=G.subtreeFlags&14680064),ye!==null?Y=ef(ye,Y):(Y=jh(Y,se,S,null),Y.flags|=2),Y.return=b,I.return=b,I.sibling=Y,b.child=I,I=Y,Y=b.child,se=m.child.memoizedState,se=se===null?b_(S):{baseLanes:se.baseLanes|S,cachePool:null,transitions:se.transitions},Y.memoizedState=se,Y.childLanes=m.childLanes&~S,b.memoizedState=x_,I}return Y=m.child,m=Y.sibling,I=ef(Y,{mode:"visible",children:I.children}),(b.mode&1)===0&&(I.lanes=S),I.return=b,I.sibling=null,m!==null&&(S=b.deletions,S===null?(b.deletions=[m],b.flags|=16):S.push(m)),b.child=I,b.memoizedState=null,I}function w_(m,b){return b=fb({mode:"visible",children:b},m.mode,0,null),b.return=m,m.child=b}function J0(m,b,S,I){return I!==null&&_t(I),yi(b,m.child,null,S),m=w_(b,b.pendingProps.children),m.flags|=2,b.memoizedState=null,m}function Zee(m,b,S,I,G,Y,se){if(S)return b.flags&256?(b.flags&=-257,I=m_(Error(n(422))),J0(m,b,se,I)):b.memoizedState!==null?(b.child=m.child,b.flags|=128,null):(Y=I.fallback,G=b.mode,I=fb({mode:"visible",children:I.children},G,0,null),Y=jh(Y,G,se,null),Y.flags|=2,I.return=b,Y.return=b,I.sibling=Y,b.child=I,(b.mode&1)!==0&&yi(b,m.child,null,se),b.child.memoizedState=b_(se),b.memoizedState=x_,Y);if((b.mode&1)===0)return J0(m,b,se,null);if(G.data==="$!"){if(I=G.nextSibling&&G.nextSibling.dataset,I)var ye=I.dgst;return I=ye,Y=Error(n(419)),I=m_(Y,I,void 0),J0(m,b,se,I)}if(ye=(se&m.childLanes)!==0,Us||ye){if(I=ga,I!==null){switch(se&-se){case 4:G=2;break;case 16:G=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:G=32;break;case 536870912:G=268435456;break;default:G=0}G=(G&(I.suspendedLanes|se))!==0?0:G,G!==0&&G!==Y.retryLane&&(Y.retryLane=G,jr(m,G),Ll(I,m,G,-1))}return D_(),I=m_(Error(n(421))),J0(m,b,se,I)}return G.data==="$?"?(b.flags|=128,b.child=m.child,b=dte.bind(null,m),G._reactRetry=b,null):(m=Y.treeContext,Ze=Ca(G.nextSibling),Xe=b,rt=!0,it=null,m!==null&&(fe[me++]=qe,fe[me++]=ge,fe[me++]=ke,qe=m.id,ge=m.overflow,ke=b),b=w_(b,I.children),b.flags|=4096,b)}function tR(m,b,S){m.lanes|=b;var I=m.alternate;I!==null&&(I.lanes|=b),tr(m.return,b,S)}function j_(m,b,S,I,G){var Y=m.memoizedState;Y===null?m.memoizedState={isBackwards:b,rendering:null,renderingStartTime:0,last:I,tail:S,tailMode:G}:(Y.isBackwards=b,Y.rendering=null,Y.renderingStartTime=0,Y.last=I,Y.tail=S,Y.tailMode=G)}function nR(m,b,S){var I=b.pendingProps,G=I.revealOrder,Y=I.tail;if(bs(m,b,I.children,S),I=Or.current,(I&2)!==0)I=I&1|2,b.flags|=128;else{if(m!==null&&(m.flags&128)!==0)e:for(m=b.child;m!==null;){if(m.tag===13)m.memoizedState!==null&&tR(m,S,b);else if(m.tag===19)tR(m,S,b);else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===b)break e;for(;m.sibling===null;){if(m.return===null||m.return===b)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}I&=1}if(dr(Or,I),(b.mode&1)===0)b.memoizedState=null;else switch(G){case"forwards":for(S=b.child,G=null;S!==null;)m=S.alternate,m!==null&&xo(m)===null&&(G=S),S=S.sibling;S=G,S===null?(G=b.child,b.child=null):(G=S.sibling,S.sibling=null),j_(b,!1,G,S,Y);break;case"backwards":for(S=null,G=b.child,b.child=null;G!==null;){if(m=G.alternate,m!==null&&xo(m)===null){b.child=G;break}m=G.sibling,G.sibling=S,S=G,G=m}j_(b,!0,S,null,Y);break;case"together":j_(b,!1,null,null,void 0);break;default:b.memoizedState=null}return b.child}function eb(m,b){(b.mode&1)===0&&m!==null&&(m.alternate=null,b.alternate=null,b.flags|=2)}function Iu(m,b,S){if(m!==null&&(b.dependencies=m.dependencies),yh|=b.lanes,(S&b.childLanes)===0)return null;if(m!==null&&b.child!==m.child)throw Error(n(153));if(b.child!==null){for(m=b.child,S=ef(m,m.pendingProps),b.child=S,S.return=b;m.sibling!==null;)m=m.sibling,S=S.sibling=ef(m,m.pendingProps),S.return=b;S.sibling=null}return b.child}function Jee(m,b,S){switch(b.tag){case 3:ZO(b),It();break;case 5:W0(b);break;case 1:Ba(b.type)&&Ou(b);break;case 4:Vd(b,b.stateNode.containerInfo);break;case 10:var I=b.type._context,G=b.memoizedProps.value;dr(Pi,I._currentValue),I._currentValue=G;break;case 13:if(I=b.memoizedState,I!==null)return I.dehydrated!==null?(dr(Or,Or.current&1),b.flags|=128,null):(S&b.child.childLanes)!==0?eR(m,b,S):(dr(Or,Or.current&1),m=Iu(m,b,S),m!==null?m.sibling:null);dr(Or,Or.current&1);break;case 19:if(I=(S&b.childLanes)!==0,(m.flags&128)!==0){if(I)return nR(m,b,S);b.flags|=128}if(G=b.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),dr(Or,Or.current),I)break;return null;case 22:case 23:return b.lanes=0,YO(m,b,S)}return Iu(m,b,S)}var rR,__,iR,aR;rR=function(m,b){for(var S=b.child;S!==null;){if(S.tag===5||S.tag===6)m.appendChild(S.stateNode);else if(S.tag!==4&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===b)break;for(;S.sibling===null;){if(S.return===null||S.return===b)return;S=S.return}S.sibling.return=S.return,S=S.sibling}},__=function(){},iR=function(m,b,S,I){var G=m.memoizedProps;if(G!==I){m=b.stateNode,Cl($i.current);var Y=null;switch(S){case"input":G=He(m,G),I=He(m,I),Y=[];break;case"select":G=F({},G,{value:void 0}),I=F({},I,{value:void 0}),Y=[];break;case"textarea":G=Be(m,G),I=Be(m,I),Y=[];break;default:typeof G.onClick!="function"&&typeof I.onClick=="function"&&(m.onclick=zd)}Tn(S,I);var se;S=null;for(Ke in G)if(!I.hasOwnProperty(Ke)&&G.hasOwnProperty(Ke)&&G[Ke]!=null)if(Ke==="style"){var ye=G[Ke];for(se in ye)ye.hasOwnProperty(se)&&(S||(S={}),S[se]="")}else Ke!=="dangerouslySetInnerHTML"&&Ke!=="children"&&Ke!=="suppressContentEditableWarning"&&Ke!=="suppressHydrationWarning"&&Ke!=="autoFocus"&&(i.hasOwnProperty(Ke)?Y||(Y=[]):(Y=Y||[]).push(Ke,null));for(Ke in I){var Pe=I[Ke];if(ye=G!=null?G[Ke]:void 0,I.hasOwnProperty(Ke)&&Pe!==ye&&(Pe!=null||ye!=null))if(Ke==="style")if(ye){for(se in ye)!ye.hasOwnProperty(se)||Pe&&Pe.hasOwnProperty(se)||(S||(S={}),S[se]="");for(se in Pe)Pe.hasOwnProperty(se)&&ye[se]!==Pe[se]&&(S||(S={}),S[se]=Pe[se])}else S||(Y||(Y=[]),Y.push(Ke,S)),S=Pe;else Ke==="dangerouslySetInnerHTML"?(Pe=Pe?Pe.__html:void 0,ye=ye?ye.__html:void 0,Pe!=null&&ye!==Pe&&(Y=Y||[]).push(Ke,Pe)):Ke==="children"?typeof Pe!="string"&&typeof Pe!="number"||(Y=Y||[]).push(Ke,""+Pe):Ke!=="suppressContentEditableWarning"&&Ke!=="suppressHydrationWarning"&&(i.hasOwnProperty(Ke)?(Pe!=null&&Ke==="onScroll"&&br("scroll",m),Y||ye===Pe||(Y=[])):(Y=Y||[]).push(Ke,Pe))}S&&(Y=Y||[]).push("style",S);var Ke=Y;(b.updateQueue=Ke)&&(b.flags|=4)}},aR=function(m,b,S,I){S!==I&&(b.flags|=4)};function Wv(m,b){if(!rt)switch(m.tailMode){case"hidden":b=m.tail;for(var S=null;b!==null;)b.alternate!==null&&(S=b),b=b.sibling;S===null?m.tail=null:S.sibling=null;break;case"collapsed":S=m.tail;for(var I=null;S!==null;)S.alternate!==null&&(I=S),S=S.sibling;I===null?b||m.tail===null?m.tail=null:m.tail.sibling=null:I.sibling=null}}function za(m){var b=m.alternate!==null&&m.alternate.child===m.child,S=0,I=0;if(b)for(var G=m.child;G!==null;)S|=G.lanes|G.childLanes,I|=G.subtreeFlags&14680064,I|=G.flags&14680064,G.return=m,G=G.sibling;else for(G=m.child;G!==null;)S|=G.lanes|G.childLanes,I|=G.subtreeFlags,I|=G.flags,G.return=m,G=G.sibling;return m.subtreeFlags|=I,m.childLanes=S,b}function ete(m,b,S){var I=b.pendingProps;switch(Ge(b),b.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return za(b),null;case 1:return Ba(b.type)&&nm(),za(b),null;case 3:return I=b.stateNode,Xo(),lr(Fa),lr(Zi),Uv(),I.pendingContext&&(I.context=I.pendingContext,I.pendingContext=null),(m===null||m.child===null)&&(Zr(b)?b.flags|=4:m===null||m.memoizedState.isDehydrated&&(b.flags&256)===0||(b.flags|=1024,it!==null&&(I_(it),it=null))),__(m,b),za(b),null;case 5:zv(b);var G=Cl(Nc.current);if(S=b.type,m!==null&&b.stateNode!=null)iR(m,b,S,I,G),m.ref!==b.ref&&(b.flags|=512,b.flags|=2097152);else{if(!I){if(b.stateNode===null)throw Error(n(166));return za(b),null}if(m=Cl($i.current),Zr(b)){I=b.stateNode,S=b.type;var Y=b.memoizedProps;switch(I[Yo]=b,I[$d]=Y,m=(b.mode&1)!==0,S){case"dialog":br("cancel",I),br("close",I);break;case"iframe":case"object":case"embed":br("load",I);break;case"video":case"audio":for(G=0;G<wc.length;G++)br(wc[G],I);break;case"source":br("error",I);break;case"img":case"image":case"link":br("error",I),br("load",I);break;case"details":br("toggle",I);break;case"input":ue(I,Y),br("invalid",I);break;case"select":I._wrapperState={wasMultiple:!!Y.multiple},br("invalid",I);break;case"textarea":dt(I,Y),br("invalid",I)}Tn(S,Y),G=null;for(var se in Y)if(Y.hasOwnProperty(se)){var ye=Y[se];se==="children"?typeof ye=="string"?I.textContent!==ye&&(Y.suppressHydrationWarning!==!0&&tm(I.textContent,ye,m),G=["children",ye]):typeof ye=="number"&&I.textContent!==""+ye&&(Y.suppressHydrationWarning!==!0&&tm(I.textContent,ye,m),G=["children",""+ye]):i.hasOwnProperty(se)&&ye!=null&&se==="onScroll"&&br("scroll",I)}switch(S){case"input":be(I),Ee(I,Y,!0);break;case"textarea":be(I),Nt(I);break;case"select":case"option":break;default:typeof Y.onClick=="function"&&(I.onclick=zd)}I=G,b.updateQueue=I,I!==null&&(b.flags|=4)}else{se=G.nodeType===9?G:G.ownerDocument,m==="http://www.w3.org/1999/xhtml"&&(m=De(S)),m==="http://www.w3.org/1999/xhtml"?S==="script"?(m=se.createElement("div"),m.innerHTML="<script><\/script>
40",m=m.removeChild(m.firstChild)):typeof I.is=="string"?m=se.createElement(S,{is:I.is}):(m=se.createElement(S),S==="select"&&(se=m,I.multiple?se.multiple=!0:I.size&&(se.size=I.size))):m=se.createElementNS(m,S),m[Yo]=b,m[$d]=I,rR(m,b,!1,!1),b.stateNode=m;e:{switch(se=zt(S,I),S){case"dialog":br("cancel",m),br("close",m),G=I;break;case"iframe":case"object":case"embed":br("load",m),G=I;break;case"video":case"audio":for(G=0;G<wc.length;G++)br(wc[G],m);G=I;break;case"source":br("error",m),G=I;break;case"img":case"image":case"link":br("error",m),br("load",m),G=I;break;case"details":br("toggle",m),G=I;break;case"input":ue(m,I),G=He(m,I),br("invalid",m);break;case"option":G=I;break;case"select":m._wrapperState={wasMultiple:!!I.multiple},G=F({},I,{value:void 0}),br("invalid",m);break;case"textarea":dt(m,I),G=Be(m,I),br("invalid",m);break;default:G=I}Tn(S,G),ye=G;for(Y in ye)if(ye.hasOwnProperty(Y)){var Pe=ye[Y];Y==="style"?fn(m,Pe):Y==="dangerouslySetInnerHTML"?(Pe=Pe?Pe.__html:void 0,Pe!=null&&ht(m,Pe)):Y==="children"?typeof Pe=="string"?(S!=="textarea"||Pe!=="")&&mt(m,Pe):typeof Pe=="number"&&mt(m,""+Pe):Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&Y!=="autoFocus"&&(i.hasOwnProperty(Y)?Pe!=null&&Y==="onScroll"&&br("scroll",m):Pe!=null&&j(m,Y,Pe,se))}switch(S){case"input":be(m),Ee(m,I,!1);break;case"textarea":be(m),Nt(m);break;case"option":I.value!=null&&m.setAttribute("value",""+le(I.value));break;case"select":m.multiple=!!I.multiple,Y=I.value,Y!=null?We(m,!!I.multiple,Y,!1):I.defaultValue!=null&&We(m,!!I.multiple,I.defaultValue,!0);break;default:typeof G.onClick=="function"&&(m.onclick=zd)}switch(S){case"button":case"input":case"select":case"textarea":I=!!I.autoFocus;break e;case"img":I=!0;break e;default:I=!1}}I&&(b.flags|=4)}b.ref!==null&&(b.flags|=512,b.flags|=2097152)}return za(b),null;case 6:if(m&&b.stateNode!=null)aR(m,b,m.memoizedProps,I);else{if(typeof I!="string"&&b.stateNode===null)throw Error(n(166));if(S=Cl(Nc.current),Cl($i.current),Zr(b)){if(I=b.stateNode,S=b.memoizedProps,I[Yo]=b,(Y=I.nodeValue!==S)&&(m=Xe,m!==null))switch(m.tag){case 3:tm(I.nodeValue,S,(m.mode&1)!==0);break;case 5:m.memoizedProps.suppressHydrationWarning!==!0&&tm(I.nodeValue,S,(m.mode&1)!==0)}Y&&(b.flags|=4)}else I=(S.nodeType===9?S:S.ownerDocument).createTextNode(I),I[Yo]=b,b.stateNode=I}return za(b),null;case 13:if(lr(Or),I=b.memoizedState,m===null||m.memoizedState!==null&&m.memoizedState.dehydrated!==null){if(rt&&Ze!==null&&(b.mode&1)!==0&&(b.flags&128)===0)Cn(),It(),b.flags|=98560,Y=!1;else if(Y=Zr(b),I!==null&&I.dehydrated!==null){if(m===null){if(!Y)throw Error(n(318));if(Y=b.memoizedState,Y=Y!==null?Y.dehydrated:null,!Y)throw Error(n(317));Y[Yo]=b}else It(),(b.flags&128)===0&&(b.memoizedState=null),b.flags|=4;za(b),Y=!1}else it!==null&&(I_(it),it=null),Y=!0;if(!Y)return b.flags&65536?b:null}return(b.flags&128)!==0?(b.lanes=S,b):(I=I!==null,I!==(m!==null&&m.memoizedState!==null)&&I&&(b.child.flags|=8192,(b.mode&1)!==0&&(m===null||(Or.current&1)!==0?ea===0&&(ea=3):D_())),b.updateQueue!==null&&(b.flags|=4),za(b),null);case 4:return Xo(),__(m,b),m===null&&ku(b.stateNode.containerInfo),za(b),null;case 10:return Mr(b.type._context),za(b),null;case 17:return Ba(b.type)&&nm(),za(b),null;case 19:if(lr(Or),Y=b.memoizedState,Y===null)return za(b),null;if(I=(b.flags&128)!==0,se=Y.rendering,se===null)if(I)Wv(Y,!1);else{if(ea!==0||m!==null&&(m.flags&128)!==0)for(m=b.child;m!==null;){if(se=xo(m),se!==null){for(b.flags|=128,Wv(Y,!1),I=se.updateQueue,I!==null&&(b.updateQueue=I,b.flags|=4),b.subtreeFlags=0,I=S,S=b.child;S!==null;)Y=S,m=I,Y.flags&=14680066,se=Y.alternate,se===null?(Y.childLanes=0,Y.lanes=m,Y.child=null,Y.subtreeFlags=0,Y.memoizedProps=null,Y.memoizedState=null,Y.updateQueue=null,Y.dependencies=null,Y.stateNode=null):(Y.childLanes=se.childLanes,Y.lanes=se.lanes,Y.child=se.child,Y.subtreeFlags=0,Y.deletions=null,Y.memoizedProps=se.memoizedProps,Y.memoizedState=se.memoizedState,Y.updateQueue=se.updateQueue,Y.type=se.type,m=se.dependencies,Y.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext}),S=S.sibling;return dr(Or,Or.current&1|2),b.child}m=m.sibling}Y.tail!==null&&Er()>mm&&(b.flags|=128,I=!0,Wv(Y,!1),b.lanes=4194304)}else{if(!I)if(m=xo(se),m!==null){if(b.flags|=128,I=!0,S=m.updateQueue,S!==null&&(b.updateQueue=S,b.flags|=4),Wv(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!se.alternate&&!rt)return za(b),null}else 2*Er()-Y.renderingStartTime>mm&&S!==1073741824&&(b.flags|=128,I=!0,Wv(Y,!1),b.lanes=4194304);Y.isBackwards?(se.sibling=b.child,b.child=se):(S=Y.last,S!==null?S.sibling=se:b.child=se,Y.last=se)}return Y.tail!==null?(b=Y.tail,Y.rendering=b,Y.tail=b.sibling,Y.renderingStartTime=Er(),b.sibling=null,S=Or.current,dr(Or,I?S&1|2:S&1),b):(za(b),null);case 22:case 23:return M_(),I=b.memoizedState!==null,m!==null&&m.memoizedState!==null!==I&&(b.flags|=8192),I&&(b.mode&1)!==0?(jo&1073741824)!==0&&(za(b),b.subtreeFlags&6&&(b.flags|=8192)):za(b),null;case 24:return null;case 25:return null}throw Error(n(156,b.tag))}function tte(m,b){switch(Ge(b),b.tag){case 1:return Ba(b.type)&&nm(),m=b.flags,m&65536?(b.flags=m&-65537|128,b):null;case 3:return Xo(),lr(Fa),lr(Zi),Uv(),m=b.flags,(m&65536)!==0&&(m&128)===0?(b.flags=m&-65537|128,b):null;case 5:return zv(b),null;case 13:if(lr(Or),m=b.memoizedState,m!==null&&m.dehydrated!==null){if(b.alternate===null)throw Error(n(340));It()}return m=b.flags,m&65536?(b.flags=m&-65537|128,b):null;case 19:return lr(Or),null;case 4:return Xo(),null;case 10:return Mr(b.type._context),null;case 22:case 23:return M_(),null;case 24:return null;default:return null}}var tb=!1,$a=!1,nte=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function hm(m,b){var S=m.ref;if(S!==null)if(typeof S=="function")try{S(null)}catch(I){wi(m,b,I)}else S.current=null}function N_(m,b,S){try{S()}catch(I){wi(m,b,I)}}var sR=!1;function rte(m,b){if(fh=Cd,m=xr(),Wr(m)){if("selectionStart"in m)var S={start:m.selectionStart,end:m.selectionEnd};else e:{S=(S=m.ownerDocument)&&S.defaultView||window;var I=S.getSelection&&S.getSelection();if(I&&I.rangeCount!==0){S=I.anchorNode;var G=I.anchorOffset,Y=I.focusNode;I=I.focusOffset;try{S.nodeType,Y.nodeType}catch{S=null;break e}var se=0,ye=-1,Pe=-1,Ke=0,ft=0,gt=m,ct=null;t:for(;;){for(var Ot;gt!==S||G!==0&>.nodeType!==3||(ye=se+G),gt!==Y||I!==0&>.nodeType!==3||(Pe=se+I),gt.nodeType===3&&(se+=gt.nodeValue.length),(Ot=gt.firstChild)!==null;)ct=gt,gt=Ot;for(;;){if(gt===m)break t;if(ct===S&&++Ke===G&&(ye=se),ct===Y&&++ft===I&&(Pe=se),(Ot=gt.nextSibling)!==null)break;gt=ct,ct=gt.parentNode}gt=Ot}S=ye===-1||Pe===-1?null:{start:ye,end:Pe}}else S=null}S=S||{start:0,end:0}}else S=null;for(Cu={focusedElem:m,selectionRange:S},Cd=!1,Mt=b;Mt!==null;)if(b=Mt,m=b.child,(b.subtreeFlags&1028)!==0&&m!==null)m.return=b,Mt=m;else for(;Mt!==null;){b=Mt;try{var Ut=b.alternate;if((b.flags&1024)!==0)switch(b.tag){case 0:case 11:case 15:break;case 1:if(Ut!==null){var Ht=Ut.memoizedProps,Ei=Ut.memoizedState,$e=b.stateNode,Re=$e.getSnapshotBeforeUpdate(b.elementType===b.type?Ht:Ol(b.type,Ht),Ei);$e.__reactInternalSnapshotBeforeUpdate=Re}break;case 3:var Ve=b.stateNode.containerInfo;Ve.nodeType===1?Ve.textContent="":Ve.nodeType===9&&Ve.documentElement&&Ve.removeChild(Ve.documentElement);break;
vendor: 18,048 bytes, line 40
40case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(bt){wi(b,b.return,bt)}if(m=b.sibling,m!==null){m.return=b.return,Mt=m;break}Mt=b.return}return Ut=sR,sR=!1,Ut}function Hv(m,b,S){var I=b.updateQueue;if(I=I!==null?I.lastEffect:null,I!==null){var G=I=I.next;do{if((G.tag&m)===m){var Y=G.destroy;G.destroy=void 0,Y!==void 0&&N_(b,S,Y)}G=G.next}while(G!==I)}}function nb(m,b){if(b=b.updateQueue,b=b!==null?b.lastEffect:null,b!==null){var S=b=b.next;do{if((S.tag&m)===m){var I=S.create;S.destroy=I()}S=S.next}while(S!==b)}}function S_(m){var b=m.ref;if(b!==null){var S=m.stateNode;switch(m.tag){case 5:m=S;break;default:m=S}typeof b=="function"?b(m):b.current=m}}function oR(m){var b=m.alternate;b!==null&&(m.alternate=null,oR(b)),m.child=null,m.deletions=null,m.sibling=null,m.tag===5&&(b=m.stateNode,b!==null&&(delete b[Yo],delete b[$d],delete b[Da],delete b[c_],delete b[u_])),m.stateNode=null,m.return=null,m.dependencies=null,m.memoizedProps=null,m.memoizedState=null,m.pendingProps=null,m.stateNode=null,m.updateQueue=null}function lR(m){return m.tag===5||m.tag===3||m.tag===4}function cR(m){e:for(;;){for(;m.sibling===null;){if(m.return===null||lR(m.return))return null;m=m.return}for(m.sibling.return=m.return,m=m.sibling;m.tag!==5&&m.tag!==6&&m.tag!==18;){if(m.flags&2||m.child===null||m.tag===4)continue e;m.child.return=m,m=m.child}if(!(m.flags&2))return m.stateNode}}function A_(m,b,S){var I=m.tag;if(I===5||I===6)m=m.stateNode,b?S.nodeType===8?S.parentNode.insertBefore(m,b):S.insertBefore(m,b):(S.nodeType===8?(b=S.parentNode,b.insertBefore(m,S)):(b=S,b.appendChild(m)),S=S._reactRootContainer,S!=null||b.onclick!==null||(b.onclick=zd));else if(I!==4&&(m=m.child,m!==null))for(A_(m,b,S),m=m.sibling;m!==null;)A_(m,b,S),m=m.sibling}function k_(m,b,S){var I=m.tag;if(I===5||I===6)m=m.stateNode,b?S.insertBefore(m,b):S.appendChild(m);else if(I!==4&&(m=m.child,m!==null))for(k_(m,b,S),m=m.sibling;m!==null;)k_(m,b,S),m=m.sibling}var Ea=null,Rl=!1;function Yd(m,b,S){for(S=S.child;S!==null;)uR(m,b,S),S=S.sibling}function uR(m,b,S){if(hs&&typeof hs.onCommitFiberUnmount=="function")try{hs.onCommitFiberUnmount(su,S)}catch{}switch(S.tag){case 5:$a||hm(S,b);case 6:var I=Ea,G=Rl;Ea=null,Yd(m,b,S),Ea=I,Rl=G,Ea!==null&&(Rl?(m=Ea,S=S.stateNode,m.nodeType===8?m.parentNode.removeChild(S):m.removeChild(S)):Ea.removeChild(S.stateNode));break;case 18:Ea!==null&&(Rl?(m=Ea,S=S.stateNode,m.nodeType===8?Fv(m.parentNode,S):m.nodeType===1&&Fv(m,S),jl(m)):Fv(Ea,S.stateNode));break;case 4:I=Ea,G=Rl,Ea=S.stateNode.containerInfo,Rl=!0,Yd(m,b,S),Ea=I,Rl=G;break;case 0:case 11:case 14:case 15:if(!$a&&(I=S.updateQueue,I!==null&&(I=I.lastEffect,I!==null))){G=I=I.next;do{var Y=G,se=Y.destroy;Y=Y.tag,se!==void 0&&((Y&2)!==0||(Y&4)!==0)&&N_(S,b,se),G=G.next}while(G!==I)}Yd(m,b,S);break;case 1:if(!$a&&(hm(S,b),I=S.stateNode,typeof I.componentWillUnmount=="function"))try{I.props=S.memoizedProps,I.state=S.memoizedState,I.componentWillUnmount()}catch(ye){wi(S,b,ye)}Yd(m,b,S);break;case 21:Yd(m,b,S);break;case 22:S.mode&1?($a=(I=$a)||S.memoizedState!==null,Yd(m,b,S),$a=I):Yd(m,b,S);break;default:Yd(m,b,S)}}function dR(m){var b=m.updateQueue;if(b!==null){m.updateQueue=null;var S=m.stateNode;S===null&&(S=m.stateNode=new nte),b.forEach(function(I){var G=fte.bind(null,m,I);S.has(I)||(S.add(I),I.then(G,G))})}}function Il(m,b){var S=b.deletions;if(S!==null)for(var I=0;I<S.length;I++){var G=S[I];try{var Y=m,se=b,ye=se;e:for(;ye!==null;){switch(ye.tag){case 5:Ea=ye.stateNode,Rl=!1;break e;case 3:Ea=ye.stateNode.containerInfo,Rl=!0;break e;case 4:Ea=ye.stateNode.containerInfo,Rl=!0;break e}ye=ye.return}if(Ea===null)throw Error(n(160));uR(Y,se,G),Ea=null,Rl=!1;var Pe=G.alternate;Pe!==null&&(Pe.return=null),G.return=null}catch(Ke){wi(G,b,Ke)}}if(b.subtreeFlags&12854)for(b=b.child;b!==null;)fR(b,m),b=b.sibling}function fR(m,b){var S=m.alternate,I=m.flags;switch(m.tag){case 0:case 11:case 14:case 15:if(Il(b,m),Ac(m),I&4){try{Hv(3,m,m.return),nb(3,m)}catch(Ht){wi(m,m.return,Ht)}try{Hv(5,m,m.return)}catch(Ht){wi(m,m.return,Ht)}}break;case 1:Il(b,m),Ac(m),I&512&&S!==null&&hm(S,S.return);break;case 5:if(Il(b,m),Ac(m),I&512&&S!==null&&hm(S,S.return),m.flags&32){var G=m.stateNode;try{mt(G,"")}catch(Ht){wi(m,m.return,Ht)}}if(I&4&&(G=m.stateNode,G!=null)){var Y=m.memoizedProps,se=S!==null?S.memoizedProps:Y,ye=m.type,Pe=m.updateQueue;if(m.updateQueue=null,Pe!==null)try{ye==="input"&&Y.type==="radio"&&Y.name!=null&&Ue(G,Y),zt(ye,se);var Ke=zt(ye,Y);for(se=0;se<Pe.length;se+=2){var ft=Pe[se],gt=Pe[se+1];ft==="style"?fn(G,gt):ft==="dangerouslySetInnerHTML"?ht(G,gt):ft==="children"?mt(G,gt):j(G,ft,gt,Ke)}switch(ye){case"input":ut(G,Y);break;case"textarea":St(G,Y);break;case"select":var ct=G._wrapperState.wasMultiple;G._wrapperState.wasMultiple=!!Y.multiple;var Ot=Y.value;Ot!=null?We(G,!!Y.multiple,Ot,!1):ct!==!!Y.multiple&&(Y.defaultValue!=null?We(G,!!Y.multiple,Y.defaultValue,!0):We(G,!!Y.multiple,Y.multiple?[]:"",!1))}G[$d]=Y}catch(Ht){wi(m,m.return,Ht)}}break;case 6:if(Il(b,m),Ac(m),I&4){if(m.stateNode===null)throw Error(n(162));G=m.stateNode,Y=m.memoizedProps;try{G.nodeValue=Y}catch(Ht){wi(m,m.return,Ht)}}break;case 3:if(Il(b,m),Ac(m),I&4&&S!==null&&S.memoizedState.isDehydrated)try{jl(b.containerInfo)}catch(Ht){wi(m,m.return,Ht)}break;case 4:Il(b,m),Ac(m);break;case 13:Il(b,m),Ac(m),G=m.child,G.flags&8192&&(Y=G.memoizedState!==null,G.stateNode.isHidden=Y,!Y||G.alternate!==null&&G.alternate.memoizedState!==null||(E_=Er())),I&4&&dR(m);break;case 22:if(ft=S!==null&&S.memoizedState!==null,m.mode&1?($a=(Ke=$a)||ft,Il(b,m),$a=Ke):Il(b,m),Ac(m),I&8192){if(Ke=m.memoizedState!==null,(m.stateNode.isHidden=Ke)&&!ft&&(m.mode&1)!==0)for(Mt=m,ft=m.child;ft!==null;){for(gt=Mt=ft;Mt!==null;){switch(ct=Mt,Ot=ct.child,ct.tag){case 0:case 11:case 14:case 15:Hv(4,ct,ct.return);break;case 1:hm(ct,ct.return);var Ut=ct.stateNode;if(typeof Ut.componentWillUnmount=="function"){I=ct,S=ct.return;try{b=I,Ut.props=b.memoizedProps,Ut.state=b.memoizedState,Ut.componentWillUnmount()}catch(Ht){wi(I,S,Ht)}}break;case 5:hm(ct,ct.return);break;case 22:if(ct.memoizedState!==null){mR(gt);continue}}Ot!==null?(Ot.return=ct,Mt=Ot):mR(gt)}ft=ft.sibling}e:for(ft=null,gt=m;;){if(gt.tag===5){if(ft===null){ft=gt;try{G=gt.stateNode,Ke?(Y=G.style,typeof Y.setProperty=="function"?Y.setProperty("display","none","important"):Y.display="none"):(ye=gt.stateNode,Pe=gt.memoizedProps.style,se=Pe!=null&&Pe.hasOwnProperty("display")?Pe.display:null,ye.style.display=jn("display",se))}catch(Ht){wi(m,m.return,Ht)}}}else if(gt.tag===6){if(ft===null)try{gt.stateNode.nodeValue=Ke?"":gt.memoizedProps}catch(Ht){wi(m,m.return,Ht)}}else if((gt.tag!==22&>.tag!==23||gt.memoizedState===null||gt===m)&>.child!==null){gt.child.return=gt,gt=gt.child;continue}if(gt===m)break e;for(;gt.sibling===null;){if(gt.return===null||gt.return===m)break e;ft===gt&&(ft=null),gt=gt.return}ft===gt&&(ft=null),gt.sibling.return=gt.return,gt=gt.sibling}}break;case 19:Il(b,m),Ac(m),I&4&&dR(m);break;case 21:break;default:Il(b,m),Ac(m)}}function Ac(m){var b=m.flags;if(b&2){try{e:{for(var S=m.return;S!==null;){if(lR(S)){var I=S;break e}S=S.return}throw Error(n(160))}switch(I.tag){case 5:var G=I.stateNode;I.flags&32&&(mt(G,""),I.flags&=-33);var Y=cR(m);k_(m,Y,G);break;case 3:case 4:var se=I.stateNode.containerInfo,ye=cR(m);A_(m,ye,se);break;default:throw Error(n(161))}}catch(Pe){wi(m,m.return,Pe)}m.flags&=-3}b&4096&&(m.flags&=-4097)}function ite(m,b,S){Mt=m,hR(m)}function hR(m,b,S){for(var I=(m.mode&1)!==0;Mt!==null;){var G=Mt,Y=G.child;if(G.tag===22&&I){var se=G.memoizedState!==null||tb;if(!se){var ye=G.alternate,Pe=ye!==null&&ye.memoizedState!==null||$a;ye=tb;var Ke=$a;if(tb=se,($a=Pe)&&!Ke)for(Mt=G;Mt!==null;)se=Mt,Pe=se.child,se.tag===22&&se.memoizedState!==null?gR(G):Pe!==null?(Pe.return=se,Mt=Pe):gR(G);for(;Y!==null;)Mt=Y,hR(Y),Y=Y.sibling;Mt=G,tb=ye,$a=Ke}pR(m)}else(G.subtreeFlags&8772)!==0&&Y!==null?(Y.return=G,Mt=Y):pR(m)}}function pR(m){for(;Mt!==null;){var b=Mt;if((b.flags&8772)!==0){var S=b.alternate;try{if((b.flags&8772)!==0)switch(b.tag){case 0:case 11:case 15:$a||nb(5,b);break;case 1:var I=b.stateNode;if(b.flags&4&&!$a)if(S===null)I.componentDidMount();else{var G=b.elementType===b.type?S.memoizedProps:Ol(b.type,S.memoizedProps);I.componentDidUpdate(G,S.memoizedState,I.__reactInternalSnapshotBeforeUpdate)}var Y=b.updateQueue;Y!==null&&$s(b,Y,I);break;case 3:var se=b.updateQueue;if(se!==null){if(S=null,b.child!==null)switch(b.child.tag){case 5:S=b.child.stateNode;break;case 1:S=b.child.stateNode}$s(b,se,S)}break;case 5:var ye=b.stateNode;if(S===null&&b.flags&4){S=ye;var Pe=b.memoizedProps;switch(b.type){case"button":case"input":case"select":case"textarea":Pe.autoFocus&&S.focus();break;case"img":Pe.src&&(S.src=Pe.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(b.memoizedState===null){var Ke=b.alternate;if(Ke!==null){var ft=Ke.memoizedState;if(ft!==null){var gt=ft.dehydrated;gt!==null&&jl(gt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}$a||b.flags&512&&S_(b)}catch(ct){wi(b,b.return,ct)}}if(b===m){Mt=null;break}if(S=b.sibling,S!==null){S.return=b.return,Mt=S;break}Mt=b.return}}function mR(m){for(;Mt!==null;){var b=Mt;if(b===m){Mt=null;break}var S=b.sibling;if(S!==null){S.return=b.return,Mt=S;break}Mt=b.return}}function gR(m){for(;Mt!==null;){var b=Mt;try{switch(b.tag){case 0:case 11:case 15:var S=b.return;try{nb(4,b)}catch(Pe){wi(b,S,Pe)}break;case 1:var I=b.stateNode;if(typeof I.componentDidMount=="function"){var G=b.return;try{I.componentDidMount()}catch(Pe){wi(b,G,Pe)}}var Y=b.return;try{S_(b)}catch(Pe){wi(b,Y,Pe)}break;case 5:var se=b.return;try{S_(b)}catch(Pe){wi(b,se,Pe)}}}catch(Pe){wi(b,b.return,Pe)}if(b===m){Mt=null;break}var ye=b.sibling;if(ye!==null){ye.return=b.return,Mt=ye;break}Mt=b.return}}var ate=Math.ceil,rb=_.ReactCurrentDispatcher,P_=_.ReactCurrentOwner,Jo=_.ReactCurrentBatchConfig,nr=0,ga=null,Ui=null,Ta=0,jo=0,pm=vo(0),ea=0,Kv=null,yh=0,ib=0,C_=0,Yv=null,Gs=null,E_=0,mm=1/0,Lu=null,ab=!1,T_=null,Xd=null,sb=!1,Qd=null,ob=0,Xv=0,O_=null,lb=-1,cb=0;function ws(){return(nr&6)!==0?Er():lb!==-1?lb:lb=Er()}function Zd(m){return(m.mode&1)===0?1:(nr&2)!==0&&Ta!==0?Ta&-Ta:si.transition!==null?(cb===0&&(cb=Fi()),cb):(m=Ln,m!==0||(m=window.event,m=m===void 0?16:hc(m.type)),m)}function Ll(m,b,S,I){if(50<Xv)throw Xv=0,O_=null,Error(n(185));lu(m,S,I),((nr&2)===0||m!==ga)&&(m===ga&&((nr&2)===0&&(ib|=S),ea===4&&Jd(m,Ta)),Vs(m,I),S===1&&nr===0&&(b.mode&1)===0&&(mm=Er()+500,ph&&Q()))}function Vs(m,b){var S=m.callbackNode;Ad(m,b);var I=dc(m,m===ga?Ta:0);if(I===0)S!==null&&au(S),m.callbackNode=null,m.callbackPriority=0;else if(b=I&-I,m.callbackPriority!==b){if(S!=null&&au(S),b===1)m.tag===0?W(yR.bind(null,m)):L(yR.bind(null,m)),o_(function(){(nr&6)===0&&Q()}),S=null;else{switch(Jf(I)){case 1:S=_d;break;case 4:S=fs;break;case 16:S=uc;break;case 536870912:S=Nd;break;default:S=uc}S=AR(S,vR.bind(null,m))}m.callbackPriority=b,m.callbackNode=S}}function vR(m,b){if(lb=-1,cb=0,(nr&6)!==0)throw Error(n(327));var S=m.callbackNode;if(gm()&&m.callbackNode!==S)return null;var I=dc(m,m===ga?Ta:0);if(I===0)return null;if((I&30)!==0||(I&m.expiredLanes)!==0||b)b=ub(m,I);else{b=I;var G=nr;nr|=2;var Y=bR();(ga!==m||Ta!==b)&&(Lu=null,mm=Er()+500,bh(m,b));do try{lte();break}catch(ye){xR(m,ye)}while(!0);er(),rb.current=Y,nr=G,Ui!==null?b=0:(ga=null,Ta=0,b=ea)}if(b!==0){if(b===2&&(G=oo(m),G!==0&&(I=G,b=R_(m,G))),b===1)throw S=Kv,bh(m,0),Jd(m,I),Vs(m,Er()),S;if(b===6)Jd(m,I);else{if(G=m.current.alternate,(I&30)===0&&!ste(G)&&(b=ub(m,I),b===2&&(Y=oo(m),Y!==0&&(I=Y,b=R_(m,Y))),b===1))throw S=Kv,bh(m,0),Jd(m,I),Vs(m,Er()),S;switch(m.finishedWork=G,m.finishedLanes=I,b){case 0:case 1:throw Error(n(345));case 2:wh(m,Gs,Lu);break;case 3:if(Jd(m,I),(I&130023424)===I&&(b=E_+500-Er(),10<b)){if(dc(m,0)!==0)break;if(G=m.suspendedLanes,(G&I)!==I){ws(),m.pingedLanes|=m.suspendedLanes&G;break}m.timeoutHandle=Dv(wh.bind(null,m,Gs,Lu),b);break}wh(m,Gs,Lu);break;case 4:if(Jd(m,I),(I&4194240)===I)break;for(b=m.eventTimes,G=-1;0<I;){var se=31-pi(I);Y=1<<se,se=b[se],se>G&&(G=se),I&=~Y}if(I=G,I=Er()-I,I=(120>I?120:480>I?480:1080>I?1080:1920>I?1920:3e3>I?3e3:4320>I?4320:1960*ate(I/1960))-I,10<I){m.timeoutHandle=Dv(wh.bind(null,m,Gs,Lu),I);break}wh(m,Gs,Lu);break;case 5:wh(m,Gs,Lu);break;default:throw Error(n(329))}}}return Vs(m,Er()),m.callbackNode===S?vR.bind(null,m):null}function R_(m,b){var S=Yv;return m.current.memoizedState.isDehydrated&&(bh(m,b).flags|=256),m=ub(m,b),m!==2&&(b=Gs,Gs=S,b!==null&&I_(b)),m}function I_(m){Gs===null?Gs=m:Gs.push.apply(Gs,m)}function ste(m){for(var b=m;;){if(b.flags&16384){var S=b.updateQueue;if(S!==null&&(S=S.stores,S!==null))for(var I=0;I<S.length;I++){var G=S[I],Y=G.getSnapshot;G=G.value;try{if(!Bi(Y(),G))return!1}catch{return!1}}}if(S=b.child,b.subtreeFlags&16384&&S!==null)S.return=b,b=S;else{if(b===m)break;for(;b.sibling===null;){if(b.return===null||b.return===m)return!0;b=b.return}b.sibling.return=b.return,b=b.sibling}}return!0}function Jd(m,b){for(b&=~C_,b&=~ib,m.suspendedLanes|=b,m.pingedLanes&=~b,m=m.expirationTimes;0<b;){var S=31-pi(b),I=1<<S;m[S]=-1,b&=~I}}function yR(m){if((nr&6)!==0)throw Error(n(327));gm();var b=dc(m,0);if((b&1)===0)return Vs(m,Er()),null;var S=ub(m,b);if(m.tag!==0&&S===2){var I=oo(m);I!==0&&(b=I,S=R_(m,I))}if(S===1)throw S=Kv,bh(m,0),Jd(m,b),Vs(m,Er()),S;if(S===6)throw Error(n(345));return m.finishedWork=m.current.alternate,m.finishedLanes=b,wh(m,Gs,Lu),Vs(m,Er()),null}function L_(m,b){var S=nr;nr|=1;try{return m(b)}finally{nr=S,nr===0&&(mm=Er()+500,ph&&Q())}}function xh(m){Qd!==null&&Qd.tag===0&&(nr&6)===0&&gm();var b=nr;nr|=1;var S=Jo.transition,I=Ln;try{if(Jo.transition=null,Ln=1,m)return m()}finally{Ln=I,Jo.transition=S,nr=b,(nr&6)===0&&Q()}}function M_(){jo=pm.current,lr(pm)}function bh(m,b){m.finishedWork=null,m.finishedLanes=0;var S=m.timeoutHandle;if(S!==-1&&(m.timeoutHandle=-1,$0(S)),Ui!==null)for(S=Ui.return;S!==null;){var I=S;switch(Ge(I),I.tag){case 1:I=I.type.childContextTypes,I!=null&&nm();break;case 3:Xo(),lr(Fa),lr(Zi),Uv();break;case 5:zv(I);break;case 4:Xo();break;case 13:lr(Or);break;case 19:lr(Or);break;case 10:Mr(I.type._context);break;case 22:case 23:M_()}S=S.return}if(ga=m,Ui=m=ef(m.current,null),Ta=jo=b,ea=0,Kv=null,C_=ib=yh=0,Gs=Yv=null,wr!==null){for(b=0;b<wr.length;b++)if(S=wr[b],I=S.interleaved,I!==null){S.interleaved=null;var G=I.next,Y=S.pending;if(Y!==null){var se=Y.next;Y.next=G,I.next=se}S.pending=I}wr=null}return m}function xR(m,b){do{var S=Ui;try{if(er(),rm.current=Q0,Wd){for(var I=Dr.memoizedState;I!==null;){var G=I.queue;G!==null&&(G.pending=null),I=I.next}Wd=!1}if(Qo=0,ui=bi=Dr=null,El=!1,Hd=0,P_.current=null,S===null||S.return===null){ea=1,Kv=b,Ui=null;break}e:{var Y=m,se=S.return,ye=S,Pe=b;if(b=Ta,ye.flags|=32768,Pe!==null&&typeof Pe=="object"&&typeof Pe.then=="function"){var Ke=Pe,ft=ye,gt=ft.tag;if((ft.mode&1)===0&&(gt===0||gt===11||gt===15)){var ct=ft.alternate;ct?(ft.updateQueue=ct.updateQueue,ft.memoizedState=ct.memoizedState,ft.lanes=ct.lanes):(ft.updateQueue=null,ft.memoizedState=null)}var Ot=GO(se);if(Ot!==null){Ot.flags&=-257,VO(Ot,se,ye,Y,b),Ot.mode&1&&UO(Y,Ke,b),b=Ot,Pe=Ke;var Ut=b.updateQueue;if(Ut===null){var Ht=new Set;Ht.add(Pe),b.updateQueue=Ht}else Ut.add(Pe);break e}else{if((b&1)===0){UO(Y,Ke,b),D_();break e}Pe=Error(n(426))}}else if(rt&&ye.mode&1){var Ei=GO(se);if(Ei!==null){(Ei.flags&65536)===0&&(Ei.flags|=256),VO(Ei,se,ye,Y,b),_t(fm(Pe,ye));break e}}Y=Pe=fm(Pe,ye),ea!==4&&(ea=2),Yv===null?Yv=[Y]:Yv.push(Y),Y=se;do{switch(Y.tag){case 3:Y.flags|=65536,b&=-b,Y.lanes|=b;var $e=zO(Y,Pe,b);_r(Y,$e);break e;case 1:ye=Pe;var Re=Y.type,Ve=Y.stateNode;if((Y.flags&128)===0&&(typeof Re.getDerivedStateFromError=="function"||Ve!==null&&typeof Ve.componentDidCatch=="function"&&(Xd===null||!Xd.has(Ve)))){Y.flags|=65536,b&=-b,Y.lanes|=b;var bt=$O(Y,ye,b);_r(Y,bt);break e}}Y=Y.return}while(Y!==null)}jR(S)}catch(Yt){b=Yt,Ui===S&&S!==null&&(Ui=S=S.return);continue}break}while(!0)}function bR(){var m=rb.current;return rb.current=Q0,m===null?Q0:m}function D_(){(ea===0||ea===3||ea===2)&&(ea=4),ga===null||(yh&268435455)===0&&(ib&268435455)===0||Jd(ga,Ta)}function ub(m,b){var S=nr;nr|=2;var I=bR();(ga!==m||Ta!==b)&&(Lu=null,bh(m,b));do try{ote();break}catch(G){xR(m,G)}while(!0);if(er(),nr=S,rb.current=I,Ui!==null)throw Error(n(261));return ga=null,Ta=0,ea}function ote(){for(;Ui!==null;)wR(Ui)}function lte(){for(;Ui!==null&&!jd();)wR(Ui)}function wR(m){var b=SR(m.alternate,m,jo);m.memoizedProps=m.pendingProps,b===null?jR(m):Ui=b,P_.current=null}function jR(m){var b=m;do{var S=b.alternate;if(m=b.return,(b.flags&32768)===0){if(S=ete(S,b,jo),S!==null){Ui=S;return}}else{if(S=tte(S,b),S!==null){S.flags&=32767,Ui=S;return}if(m!==null)m.flags|=32768,m.subtreeFlags=0,m.deletions=null;else{ea=6,Ui=null;return}}if(b=b.sibling,b!==null){Ui=b;return}Ui=b=m}while(b!==null);ea===0&&(ea=5)}function wh(m,b,S){var I=Ln,G=Jo.transition;try{Jo.transition=null,Ln=1,cte(m,b,S,I)}finally{Jo.transition=G,Ln=I}return null}function cte(m,b,S,I){do gm();while(Qd!==null);if((nr&6)!==0)throw Error(n(327));S=m.finishedWork;var G=m.finishedLanes;if(S===null)return null;if(m.finishedWork=null,m.finishedLanes=0,S===m.current)throw Error(n(177));m.callbackNode=null,m.callbackPriority=0;var Y=S.lanes|S.childLanes;if(_v(m,Y),m===ga&&(Ui=ga=null,Ta=0),(S.subtreeFlags&2064)===0&&(S.flags&2064)===0||sb||(sb=!0,AR(uc,function(){return gm(),null})),Y=(S.flags&15990)!==0,(S.subtreeFlags&15990)!==0||Y){Y=Jo.transition,Jo.transition=null;var se=Ln;Ln=1;var ye=nr;nr|=4,P_.current=null,rte(m,S),fR(S,m),ki(Cu),Cd=!!fh,Cu=fh=null,m.current=S,ite(S),wv(),nr=ye,Ln=se,Jo.transition=Y}else m.current=S;if(sb&&(sb=!1,Qd=m,ob=G),Y=m.pendingLanes,Y===0&&(Xd=null),Up(S.stateNode),Vs(m,Er()),b!==null)for(I=m.onRecoverableError,S=0;S<b.length;S++)G=b[S],I(G.value,{componentStack:G.stack,digest:G.digest});if(ab)throw ab=!1,m=T_,T_=null,m;return(ob&1)!==0&&m.tag!==0&&gm(),Y=m.pendingLanes,(Y&1)!==0?m===O_?Xv++:(Xv=0,O_=m):Xv=0,Q(),null}function gm(){if(Qd!==null){var m=Jf(ob),b=Jo.transition,S=Ln;
vendor: 5,342 bytes, line 40
40try{if(Jo.transition=null,Ln=16>m?16:m,Qd===null)var I=!1;else{if(m=Qd,Qd=null,ob=0,(nr&6)!==0)throw Error(n(331));var G=nr;for(nr|=4,Mt=m.current;Mt!==null;){var Y=Mt,se=Y.child;if((Mt.flags&16)!==0){var ye=Y.deletions;if(ye!==null){for(var Pe=0;Pe<ye.length;Pe++){var Ke=ye[Pe];for(Mt=Ke;Mt!==null;){var ft=Mt;switch(ft.tag){case 0:case 11:case 15:Hv(8,ft,Y)}var gt=ft.child;if(gt!==null)gt.return=ft,Mt=gt;else for(;Mt!==null;){ft=Mt;var ct=ft.sibling,Ot=ft.return;if(oR(ft),ft===Ke){Mt=null;break}if(ct!==null){ct.return=Ot,Mt=ct;break}Mt=Ot}}}var Ut=Y.alternate;if(Ut!==null){var Ht=Ut.child;if(Ht!==null){Ut.child=null;do{var Ei=Ht.sibling;Ht.sibling=null,Ht=Ei}while(Ht!==null)}}Mt=Y}}if((Y.subtreeFlags&2064)!==0&&se!==null)se.return=Y,Mt=se;else e:for(;Mt!==null;){if(Y=Mt,(Y.flags&2048)!==0)switch(Y.tag){case 0:case 11:case 15:Hv(9,Y,Y.return)}var $e=Y.sibling;if($e!==null){$e.return=Y.return,Mt=$e;break e}Mt=Y.return}}var Re=m.current;for(Mt=Re;Mt!==null;){se=Mt;var Ve=se.child;if((se.subtreeFlags&2064)!==0&&Ve!==null)Ve.return=se,Mt=Ve;else e:for(se=Re;Mt!==null;){if(ye=Mt,(ye.flags&2048)!==0)try{switch(ye.tag){case 0:case 11:case 15:nb(9,ye)}}catch(Yt){wi(ye,ye.return,Yt)}if(ye===se){Mt=null;break e}var bt=ye.sibling;if(bt!==null){bt.return=ye.return,Mt=bt;break e}Mt=ye.return}}if(nr=G,Q(),hs&&typeof hs.onPostCommitFiberRoot=="function")try{hs.onPostCommitFiberRoot(su,m)}catch{}I=!0}return I}finally{Ln=S,Jo.transition=b}}return!1}function _R(m,b,S){b=fm(S,b),b=zO(m,b,1),m=li(m,b,1),b=ws(),m!==null&&(lu(m,1,b),Vs(m,b))}function wi(m,b,S){if(m.tag===3)_R(m,m,S);else for(;b!==null;){if(b.tag===3){_R(b,m,S);break}else if(b.tag===1){var I=b.stateNode;if(typeof b.type.getDerivedStateFromError=="function"||typeof I.componentDidCatch=="function"&&(Xd===null||!Xd.has(I))){m=fm(S,m),m=$O(b,m,1),b=li(b,m,1),m=ws(),b!==null&&(lu(b,1,m),Vs(b,m));break}}b=b.return}}function ute(m,b,S){var I=m.pingCache;I!==null&&I.delete(b),b=ws(),m.pingedLanes|=m.suspendedLanes&S,ga===m&&(Ta&S)===S&&(ea===4||ea===3&&(Ta&130023424)===Ta&&500>Er()-E_?bh(m,0):C_|=S),Vs(m,b)}function NR(m,b){b===0&&((m.mode&1)===0?b=1:(b=ps,ps<<=1,(ps&130023424)===0&&(ps=4194304)));var S=ws();m=jr(m,b),m!==null&&(lu(m,b,S),Vs(m,S))}function dte(m){var b=m.memoizedState,S=0;b!==null&&(S=b.retryLane),NR(m,S)}function fte(m,b){var S=0;switch(m.tag){case 13:var I=m.stateNode,G=m.memoizedState;G!==null&&(S=G.retryLane);break;case 19:I=m.stateNode;break;default:throw Error(n(314))}I!==null&&I.delete(b),NR(m,S)}var SR;SR=function(m,b,S){if(m!==null)if(m.memoizedProps!==b.pendingProps||Fa.current)Us=!0;else{if((m.lanes&S)===0&&(b.flags&128)===0)return Us=!1,Jee(m,b,S);Us=(m.flags&131072)!==0}else Us=!1,rt&&(b.flags&1048576)!==0&&Fe(b,de,b.index);switch(b.lanes=0,b.tag){case 2:var I=b.type;eb(m,b),m=b.pendingProps;var G=Gd(b,Zi.current);Jr(b,S),G=mh(null,b,I,m,G,S);var Y=Zo();return b.flags|=1,typeof G=="object"&&G!==null&&typeof G.render=="function"&&G.$$typeof===void 0?(b.tag=1,b.memoizedState=null,b.updateQueue=null,Ba(I)?(Y=!0,Ou(b)):Y=!1,b.memoizedState=G.state!==null&&G.state!==void 0?G.state:null,Ji(b),G.updater=Z0,b.stateNode=G,G._reactInternals=b,p_(b,I,m,S),b=y_(null,b,I,!0,Y,S)):(b.tag=0,rt&&Y&&Je(b),bs(null,b,G,S),b=b.child),b;case 16:I=b.elementType;e:{switch(eb(m,b),m=b.pendingProps,G=I._init,I=G(I._payload),b.type=I,G=b.tag=pte(I),m=Ol(I,m),G){case 0:b=v_(null,b,I,m,S);break e;case 1:b=QO(null,b,I,m,S);break e;case 11:b=WO(null,b,I,m,S);break e;case 14:b=HO(null,b,I,Ol(I.type,m),S);break e}throw Error(n(306,I,""))}return b;case 0:return I=b.type,G=b.pendingProps,G=b.elementType===I?G:Ol(I,G),v_(m,b,I,G,S);case 1:return I=b.type,G=b.pendingProps,G=b.elementType===I?G:Ol(I,G),QO(m,b,I,G,S);case 3:e:{if(ZO(b),m===null)throw Error(n(387));I=b.pendingProps,Y=b.memoizedState,G=Y.element,qa(m,b),ma(b,I,null,S);var se=b.memoizedState;if(I=se.element,Y.isDehydrated)if(Y={element:I,isDehydrated:!1,cache:se.cache,pendingSuspenseBoundaries:se.pendingSuspenseBoundaries,transitions:se.transitions},b.updateQueue.baseState=Y,b.memoizedState=Y,b.flags&256){G=fm(Error(n(423)),b),b=JO(m,b,I,S,G);break e}else if(I!==G){G=fm(Error(n(424)),b),b=JO(m,b,I,S,G);break e}else for(Ze=Ca(b.stateNode.containerInfo.firstChild),Xe=b,rt=!0,it=null,S=Hr(b,null,I,S),b.child=S;S;)S.flags=S.flags&-3|4096,S=S.sibling;else{if(It(),I===G){b=Iu(m,b,S);break e}bs(m,b,I,S)}b=b.child}return b;case 5:return W0(b),m===null&&Bt(b),I=b.type,G=b.pendingProps,Y=m!==null?m.memoizedProps:null,se=G.children,Mv(I,G)?se=null:Y!==null&&Mv(I,Y)&&(b.flags|=32),XO(m,b),bs(m,b,se,S),b.child;case 6:return m===null&&Bt(b),null;case 13:return eR(m,b,S);case 4:return Vd(b,b.stateNode.containerInfo),I=b.pendingProps,m===null?b.child=yi(b,null,I,S):bs(m,b,I,S),b.child;case 11:return I=b.type,G=b.pendingProps,G=b.elementType===I?G:Ol(I,G),WO(m,b,I,G,S);case 7:return bs(m,b,b.pendingProps,S),b.child;case 8:return bs(m,b,b.pendingProps.children,S),b.child;case 12:return bs(m,b,b.pendingProps.children,S),b.child;case 10:e:{if(I=b.type._context,G=b.pendingProps,Y=b.memoizedProps,se=G.value,dr(Pi,I._currentValue),I._currentValue=se,Y!==null)if(Bi(Y.value,se)){if(Y.children===G.children&&!Fa.current){b=Iu(m,b,S);break e}}else for(Y=b.child,Y!==null&&(Y.return=b);Y!==null;){var ye=Y.dependencies;if(ye!==null){se=Y.child;for(var Pe=ye.firstContext;Pe!==null;
vendor: 8,897 bytes, line 40
40){if(Pe.context===I){if(Y.tag===1){Pe=oi(-1,S&-S),Pe.tag=2;var Ke=Y.updateQueue;if(Ke!==null){Ke=Ke.shared;var ft=Ke.pending;ft===null?Pe.next=Pe:(Pe.next=ft.next,ft.next=Pe),Ke.pending=Pe}}Y.lanes|=S,Pe=Y.alternate,Pe!==null&&(Pe.lanes|=S),tr(Y.return,S,b),ye.lanes|=S;break}Pe=Pe.next}}else if(Y.tag===10)se=Y.type===b.type?null:Y.child;else if(Y.tag===18){if(se=Y.return,se===null)throw Error(n(341));se.lanes|=S,ye=se.alternate,ye!==null&&(ye.lanes|=S),tr(se,S,b),se=Y.sibling}else se=Y.child;if(se!==null)se.return=Y;else for(se=Y;se!==null;){if(se===b){se=null;break}if(Y=se.sibling,Y!==null){Y.return=se.return,se=Y;break}se=se.return}Y=se}bs(m,b,G.children,S),b=b.child}return b;case 9:return G=b.type,I=b.pendingProps.children,Jr(b,S),G=ei(G),I=I(G),b.flags|=1,bs(m,b,I,S),b.child;case 14:return I=b.type,G=Ol(I,b.pendingProps),G=Ol(I.type,G),HO(m,b,I,G,S);case 15:return KO(m,b,b.type,b.pendingProps,S);case 17:return I=b.type,G=b.pendingProps,G=b.elementType===I?G:Ol(I,G),eb(m,b),b.tag=1,Ba(I)?(m=!0,Ou(b)):m=!1,Jr(b,S),BO(b,I,G),p_(b,I,G,S),y_(null,b,I,!0,m,S);case 19:return nR(m,b,S);case 22:return YO(m,b,S)}throw Error(n(156,b.tag))};function AR(m,b){return iu(m,b)}function hte(m,b,S,I){this.tag=m,this.key=S,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=b,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=I,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function el(m,b,S,I){return new hte(m,b,S,I)}function F_(m){return m=m.prototype,!(!m||!m.isReactComponent)}function pte(m){if(typeof m=="function")return F_(m)?1:0;if(m!=null){if(m=m.$$typeof,m===R)return 11;if(m===V)return 14}return 2}function ef(m,b){var S=m.alternate;return S===null?(S=el(m.tag,b,m.key,m.mode),S.elementType=m.elementType,S.type=m.type,S.stateNode=m.stateNode,S.alternate=m,m.alternate=S):(S.pendingProps=b,S.type=m.type,S.flags=0,S.subtreeFlags=0,S.deletions=null),S.flags=m.flags&14680064,S.childLanes=m.childLanes,S.lanes=m.lanes,S.child=m.child,S.memoizedProps=m.memoizedProps,S.memoizedState=m.memoizedState,S.updateQueue=m.updateQueue,b=m.dependencies,S.dependencies=b===null?null:{lanes:b.lanes,firstContext:b.firstContext},S.sibling=m.sibling,S.index=m.index,S.ref=m.ref,S}function db(m,b,S,I,G,Y){var se=2;if(I=m,typeof m=="function")F_(m)&&(se=1);else if(typeof m=="string")se=5;else e:switch(m){case E:return jh(S.children,G,Y,b);case k:se=8,G|=8;break;case T:return m=el(12,S,b,G|2),m.elementType=T,m.lanes=Y,m;case q:return m=el(13,S,b,G),m.elementType=q,m.lanes=Y,m;case M:return m=el(19,S,b,G),m.elementType=M,m.lanes=Y,m;case Z:return fb(S,G,Y,b);default:if(typeof m=="object"&&m!==null)switch(m.$$typeof){case D:se=10;break e;case P:se=9;break e;case R:se=11;break e;case V:se=14;break e;case H:se=16,I=null;break e}throw Error(n(130,m==null?m:typeof m,""))}return b=el(se,S,b,G),b.elementType=m,b.type=I,b.lanes=Y,b}function jh(m,b,S,I){return m=el(7,m,I,b),m.lanes=S,m}function fb(m,b,S,I){return m=el(22,m,I,b),m.elementType=Z,m.lanes=S,m.stateNode={isHidden:!1},m}function B_(m,b,S){return m=el(6,m,null,b),m.lanes=S,m}function q_(m,b,S){return b=el(4,m.children!==null?m.children:[],m.key,b),b.lanes=S,b.stateNode={containerInfo:m.containerInfo,pendingChildren:null,implementation:m.implementation},b}function mte(m,b,S,I,G){this.tag=b,this.containerInfo=m,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=kd(0),this.expirationTimes=kd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kd(0),this.identifierPrefix=I,this.onRecoverableError=G,this.mutableSourceEagerHydrationData=null}function z_(m,b,S,I,G,Y,se,ye,Pe){return m=new mte(m,b,S,ye,Pe),b===1?(b=1,Y===!0&&(b|=8)):b=0,Y=el(3,null,null,b),m.current=Y,Y.stateNode=m,Y.memoizedState={element:I,isDehydrated:S,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ji(Y),m}function gte(m,b,S){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:A,key:I==null?null:""+I,children:m,containerInfo:b,implementation:S}}function kR(m){if(!m)return _c;m=m._reactInternals;e:{if(Xi(m)!==m||m.tag!==1)throw Error(n(170));var b=m;do{switch(b.tag){case 3:b=b.stateNode.context;break e;case 1:if(Ba(b.type)){b=b.stateNode.__reactInternalMemoizedMergedChildContext;break e}}b=b.return}while(b!==null);throw Error(n(171))}if(m.tag===1){var S=m.type;if(Ba(S))return qv(m,S,b)}return b}function PR(m,b,S,I,G,Y,se,ye,Pe){return m=z_(S,I,!0,m,G,Y,se,ye,Pe),m.context=kR(null),S=m.current,I=ws(),G=Zd(S),Y=oi(I,G),Y.callback=b??null,li(S,Y,G),m.current.lanes=G,lu(m,G,I),Vs(m,I),m}function hb(m,b,S,I){var G=b.current,Y=ws(),se=Zd(G);return S=kR(S),b.context===null?b.context=S:b.pendingContext=S,b=oi(Y,se),b.payload={element:m},I=I===void 0?null:I,I!==null&&(b.callback=I),m=li(G,b,se),m!==null&&(Ll(m,G,se,Y),pa(m,G,se)),se}function pb(m){if(m=m.current,!m.child)return null;switch(m.child.tag){case 5:return m.child.stateNode;default:return m.child.stateNode}}function CR(m,b){if(m=m.memoizedState,m!==null&&m.dehydrated!==null){var S=m.retryLane;m.retryLane=S!==0&&S<b?S:b}}function $_(m,b){CR(m,b),(m=m.alternate)&&CR(m,b)}function vte(){return null}var ER=typeof reportError=="function"?reportError:function(m){console.error(m)};function U_(m){this._internalRoot=m}mb.prototype.render=U_.prototype.render=function(m){var b=this._internalRoot;if(b===null)throw Error(n(409));hb(m,b,null,null)},mb.prototype.unmount=U_.prototype.unmount=function(){var m=this._internalRoot;if(m!==null){this._internalRoot=null;var b=m.containerInfo;xh(function(){hb(null,m,null,null)}),b[fa]=null}};function mb(m){this._internalRoot=m}mb.prototype.unstable_scheduleHydration=function(m){if(m){var b=Gp();m={blockedOn:null,target:m,priority:b};for(var S=0;S<zo.length&&b!==0&&b<zo[S].priority;S++);zo.splice(S,0,m),S===0&&$o(m)}};function G_(m){return!(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)}function gb(m){return!(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11&&(m.nodeType!==8||m.nodeValue!==" react-mount-point-unstable "))}function TR(){}function yte(m,b,S,I,G){if(G){if(typeof I=="function"){var Y=I;I=function(){var Ke=pb(se);Y.call(Ke)}}var se=PR(b,I,m,0,null,!1,!1,"",TR);return m._reactRootContainer=se,m[fa]=se.current,ku(m.nodeType===8?m.parentNode:m),xh(),se}for(;G=m.lastChild;)m.removeChild(G);if(typeof I=="function"){var ye=I;I=function(){var Ke=pb(Pe);ye.call(Ke)}}var Pe=z_(m,0,!1,null,null,!1,!1,"",TR);return m._reactRootContainer=Pe,m[fa]=Pe.current,ku(m.nodeType===8?m.parentNode:m),xh(function(){hb(b,Pe,S,I)}),Pe}function vb(m,b,S,I,G){var Y=S._reactRootContainer;if(Y){var se=Y;if(typeof G=="function"){var ye=G;G=function(){var Pe=pb(se);ye.call(Pe)}}hb(b,se,m,G)}else se=yte(S,b,m,G,I);return pb(se)}cu=function(m){switch(m.tag){case 3:var b=m.stateNode;if(b.current.memoizedState.isDehydrated){var S=Bo(b.pendingLanes);S!==0&&(Zf(b,S|1),Vs(b,Er()),(nr&6)===0&&(mm=Er()+500,Q()))}break;case 13:xh(function(){var I=jr(m,1);if(I!==null){var G=ws();Ll(I,m,1,G)}}),$_(m,1)}},fc=function(m){if(m.tag===13){var b=jr(m,134217728);if(b!==null){var S=ws();Ll(b,m,134217728,S)}$_(m,134217728)}},Pd=function(m){if(m.tag===13){var b=Zd(m),S=jr(m,b);if(S!==null){var I=ws();Ll(S,m,b,I)}$_(m,b)}},Gp=function(){return Ln},Vp=function(m,b){var S=Ln;try{return Ln=m,b()}finally{Ln=S}},mn=function(m,b,S){switch(b){case"input":if(ut(m,S),b=S.name,S.type==="radio"&&b!=null){for(S=m;S.parentNode;)S=S.parentNode;for(S=S.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]'),b=0;b<S.length;b++){var I=S[b];if(I!==m&&I.form===m.form){var G=hh(I);if(!G)throw Error(n(90));ve(I),ut(I,G)}}}break;case"textarea":St(m,S);break;case"select":b=S.value,b!=null&&We(m,!!S.multiple,b,!1)}},Yi=L_,Do=xh;var xte={usingClientEntryPoint:!1,Events:[Ud,Eu,hh,Jn,oc,L_]},Qv={findFiberByHostInstance:jc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},bte={bundleType:Qv.bundleType,version:Qv.version,rendererPackageName:Qv.rendererPackageName,rendererConfig:Qv.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(m){return m=so(m),m===null?null:m.stateNode},findFiberByHostInstance:Qv.findFiberByHostInstance||vte,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yb=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yb.isDisabled&&yb.supportsFiber)try{su=yb.inject(bte),hs=yb}catch{}}return Ws.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xte,Ws.createPortal=function(m,b){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!G_(b))throw Error(n(200));return gte(m,b,null,S)},Ws.createRoot=function(m,b){if(!G_(m))throw Error(n(299));var S=!1,I="",G=ER;return b!=null&&(b.unstable_strictMode===!0&&(S=!0),b.identifierPrefix!==void 0&&(I=b.identifierPrefix),b.onRecoverableError!==void 0&&(G=b.onRecoverableError)),b=z_(m,1,!1,null,null,S,!1,I,G),m[fa]=b.current,ku(m.nodeType===8?m.parentNode:m),new U_(b)},Ws.findDOMNode=function(m){if(m==null)return null;if(m.nodeType===1)return m;var b=m._reactInternals;if(b===void 0)throw typeof m.render=="function"?Error(n(188)):(m=Object.keys(m).join(","),Error(n(268,m)));return m=so(b),m=m===null?null:m.stateNode,m},Ws.flushSync=function(m){return xh(m)},Ws.hydrate=function(m,b,S){if(!gb(b))throw Error(n(200));return vb(null,m,b,!0,S)},Ws.hydrateRoot=function(m,b,S){if(!G_(m))throw Error(n(405));var I=S!=null&&S.hydratedSources||null,G=!1,Y="",se=ER;if(S!=null&&(S.unstable_strictMode===!0&&(G=!0),S.identifierPrefix!==void 0&&(Y=S.identifierPrefix),S.onRecoverableError!==void 0&&(se=S.onRecoverableError)),b=PR(b,null,m,1,S??null,G,!1,Y,se),m[fa]=b.current,ku(m),I)for(m=0;m<I.length;m++)S=I[m],G=S._getVersion,G=G(S._source),b.mutableSourceEagerHydrationData==null?b.mutableSourceEagerHydrationData=[S,G]:b.mutableSourceEagerHydrationData.push(S,G);return new mb(b)},Ws.render=function(m,b,S){if(!gb(b))throw Error(n(200));return vb(null,m,b,!1,S)},Ws.unmountComponentAtNode=function(m){if(!gb(m))throw Error(n(40));return m._reactRootContainer?(xh(function(){vb(null,null,m,!1,function(){m._reactRootContainer=null,m[fa]=null})}),!0):!1},Ws.unstable_batchedUpdates=L_,Ws.unstable_renderSubtreeIntoContainer=function(m,b,S,I){if(!gb(S))throw Error(n(200));if(m==null||m._reactInternals===void 0)throw Error(n(38));return vb(m,b,S,!1,I)},Ws.version="18.3.1-next-f1338f8080-20240426",Ws}var qR;function j4(){if(qR)return K_.exports;qR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),K_.exports=Ete(),K_.exports}var zR;function Tte(){if(zR)return wb;zR=1;var e=j4();return wb.createRoot=e.createRoot,wb.hydrateRoot=e.hydrateRoot,wb}var Ote=Tte();const Rte=Zn(Ote),Ite=20,Lte=1e6,Hu={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Q_=0;function Mte(){return Q_=(Q_+1)%Number.MAX_VALUE,Q_.toString()}const Z_=new Map,$R=e=>{if(Z_.has(e))return;const t=setTimeout(()=>{Z_.delete(e),Dy({type:Hu.REMOVE_TOAST,toastId:e})},Lte);Z_.set(e,t)},Dte=(e,t)=>{switch(t.type){case Hu.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,Ite)};case Hu.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case Hu.DISMISS_TOAST:{const{toastId:n}=t;return n?$R(n):e.toasts.forEach(r=>{$R(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case Hu.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},p1=[];let m1={toasts:[]};function Dy(e){m1=Dte(m1,e),p1.forEach(t=>{t(m1)})}function Fte({...e}){const t=Mte(),n=i=>Dy({type:Hu.UPDATE_TOAST,toast:{...i,id:t}}),r=()=>Dy({type:Hu.DISMISS_TOAST,toastId:t});return Dy({type:Hu.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function Bte(){const[e,t]=O.useState(m1);return O.useEffect(()=>(p1.push(t),()=>{const n=p1.indexOf(t);n>-1&&p1.splice(n,1)}),[e]),{...e,toast:Fte,dismiss:n=>Dy({type:Hu.DISMISS_TOAST,toastId:n})}}function C9(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=C9(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Rn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=C9(e))&&(r&&(r+=" "),r+=t);return r}const UR=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,GR=Rn,a0=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return GR(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(u=>{const d=n==null?void 0:n[u],f=s==null?void 0:s[u];if(d===null)return null;const p=UR(d)||UR(f);return i[u][p]}),l=n&&Object.entries(n).reduce((u,d)=>{let[f,p]=d;return p===void 0||(u[f]=p),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:p,...h}=d;return Object.entries(h).every(x=>{let[v,g]=x;return Array.isArray(g)?g.includes({...s,...l}[v]):{...s,...l}[v]===g})?[...u,f,p]:u},[]);return GR(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.475.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 qte=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),E9=(...e)=>
vendor: 5,602 bytes, lines 45-110
45e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.475.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 zte={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.475.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 $te=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...l},c)=>O.createElement("svg",{ref:c,...zte,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:E9("lucide",i),...l},[...o.map(([u,d])=>O.createElement(u,d)),...Array.isArray(s)?s:[s]]));/** 56 * @license lucide-react v0.475.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 lt=(e,t)=>{const n=O.forwardRef(({className:r,...i},s)=>O.createElement($te,{ref:s,iconNode:t,className:E9(`lucide-${qte(e)}`,r),...i}));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.475.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 Ute=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],ns=lt("Activity",Ute);/** 66 * @license lucide-react v0.475.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 Gte=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],j2=lt("Archive",Gte);/** 71 * @license lucide-react v0.475.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 Vte=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],gl=lt("ArrowLeft",Vte);/** 76 * @license lucide-react v0.475.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 Wte=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],rs=lt("ArrowRight",Wte);/** 81 * @license lucide-react v0.475.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 Hte=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Np=lt("ArrowUpRight",Hte);/** 86 * @license lucide-react v0.475.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 Kte=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],_2=lt("Award",Kte);/** 91 * @license lucide-react v0.475.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const Yte=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],as=lt("BookOpen",Yte);/** 96 * @license lucide-react v0.475.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 Xte=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]],Qte=lt("BookText",Xte);/** 101 * @license lucide-react v0.475.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 Zte=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],Io=lt("Brain",Zte);/** 106 * @license lucide-react v0.475.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 Jte=[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}
110],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]],ene=lt("Bug",Jte);/** 111 * @license lucide-react v0.475.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 tne=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],nne=lt("Calendar",tne);/** 116 * @license lucide-react v0.475.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 rne=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],ja=lt("ChartColumn",rne);/** 121 * @license lucide-react v0.475.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const ine=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Oi=lt("Check",ine);/** 126 * @license lucide-react v0.475.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const ane=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],N2=lt("ChevronDown",ane);/** 131 * @license lucide-react v0.475.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const sne=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],one=lt("ChevronRight",sne);/** 136 * @license lucide-react v0.475.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const lne=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],cne=lt("ChevronUp",lne);/** 141 * @license lucide-react v0.475.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const une=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Kl=lt("CircleAlert",une);/** 146 * @license lucide-react v0.475.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const dne=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],fi=lt("CircleCheckBig",dne);/** 151 * @license lucide-react v0.475.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const fne=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],hne=lt("CircleCheck",fne);/** 156 * @license lucide-react v0.475.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const pne=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],mne=lt("CircleHelp",pne);/** 161 * @license lucide-react v0.475.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const gne=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]],VR=lt("CirclePlay",gne);/** 166 * @license lucide-react v0.475.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const vne=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],yne=lt("CircleX",vne);/** 171 * @license lucide-react v0.475.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const xne=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],T9=lt("Circle",xne);/** 176 * @license lucide-react v0.475.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree.
180 */const bne=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]],wne=lt("ClipboardCheck",bne);/** 181 * @license lucide-react v0.475.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const jne=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],_ne=lt("ClipboardList",jne);/** 186 * @license lucide-react v0.475.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const Nne=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],ks=lt("Clock",Nne);/** 191 * @license lucide-react v0.475.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const Sne=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ad=lt("Copy",Sne);/** 196 * @license lucide-react v0.475.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const Ane=[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}
200],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]],O9=lt("Cpu",Ane);/** 201 * @license lucide-react v0.475.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const kne=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],R9=lt("CreditCard",kne);/** 206 * @license lucide-react v0.475.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const Pne=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],Wc=lt("Crown",Pne);/** 211 * @license lucide-react v0.475.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const Cne=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Lo=lt("DollarSign",Cne);/** 216 * @license lucide-react v0.475.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const Ene=[["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"}]],Yg=lt("Download",Ene);/** 221 * @license lucide-react v0.475.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const Tne=[["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"}]],nx=lt("ExternalLink",Tne);/** 226 * @license lucide-react v0.475.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const One=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],S2=lt("Eye",One);/** 231 * @license lucide-react v0.475.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const Rne=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Ine=lt("Facebook",Rne);/** 236 * @license lucide-react v0.475.0 - ISC 237 * 238 * This source code is licensed under the ISC license. 239 * See the LICENSE file in the root directory of this source tree. 240 */const Lne=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]],Mne=lt("FileCheck",Lne);/** 241 * @license lucide-react v0.475.0 - ISC 242 * 243 * This source code is licensed under the ISC license. 244 * See the LICENSE file in the root directory of this source tree. 245 */const Dne=[["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:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],Fne=lt("FileDown",Dne);/** 246 * @license lucide-react v0.475.0 - ISC 247 * 248 * This source code is licensed under the ISC license. 249 * See the LICENSE file in the root directory of this source tree. 250 */const Bne=[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]],qne=lt("FileSearch",Bne);/** 251 * @license lucide-react v0.475.0 - ISC 252 * 253 * This source code is licensed under the ISC license. 254 * See the LICENSE file in the root directory of this source tree. 255 */const zne=[["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"}]],Xn=lt("FileText",zne);/** 256 * @license lucide-react v0.475.0 - ISC 257 * 258 * This source code is licensed under the ISC license. 259 * See the LICENSE file in the root directory of this source tree. 260 */const $ne=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 13v-1h6v1",key:"1bb014"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M11 18h2",key:"12mj7e"}]],Une=lt("FileType",$ne);/** 261 * @license lucide-react v0.475.0 - ISC 262 * 263 * This source code is licensed under the ISC license. 264 * See the LICENSE file in the root directory of this source tree. 265 */const Gne=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],I9=lt("Filter",Gne);/** 266 * @license lucide-react v0.475.0 - ISC 267 * 268 * This source code is licensed under the ISC license. 269 * See the LICENSE file in the root directory of this source tree. 270 */const Vne=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],s0=lt("FolderOpen",Vne);/** 271 * @license lucide-react v0.475.0 - ISC 272 * 273 * This source code is licensed under the ISC license. 274 * See the LICENSE file in the root directory of this source tree. 275 */const Wne=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Hne=lt("Gauge",Wne);/** 276 * @license lucide-react v0.475.0 - ISC 277 * 278 * This source code is licensed under the ISC license. 279 * See the LICENSE file in the root directory of this source tree. 280 */const Kne=[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]],vg=lt("Gift",Kne);/** 281 * @license lucide-react v0.475.0 - ISC 282 * 283 * This source code is licensed under the ISC license. 284 * See the LICENSE file in the root directory of this source tree. 285 */const Yne=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Sp=lt("Globe",Yne);/** 286 * @license lucide-react v0.475.0 - ISC 287 * 288 * This source code is licensed under the ISC license. 289 * See the LICENSE file in the root directory of this source tree. 290 */const Xne=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Xg=lt("GraduationCap",Xne);/** 291 * @license lucide-react v0.475.0 - ISC 292 * 293 * This source code is licensed under the ISC license. 294 * See the LICENSE file in the root directory of this source tree. 295 */const Qne=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Zne=lt("GripVertical",Qne);/** 296 * @license lucide-react v0.475.0 - ISC 297 * 298 * This source code is licensed under the ISC license. 299 * See the LICENSE file in the root directory of this source tree. 300 */const Jne=[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]],z1=lt("Handshake",Jne);/** 301 * @license lucide-react v0.475.0 - ISC 302 * 303 * This source code is licensed under the ISC license. 304 * See the LICENSE file in the root directory of this source tree. 305 */const ere=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],tre=lt("Image",ere);/** 306 * @license lucide-react v0.475.0 - ISC 307 * 308 * This source code is licensed under the ISC license. 309 * See the LICENSE file in the root directory of this source tree. 310 */const nre=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],L9=lt("Info",nre);
310/** 311 * @license lucide-react v0.475.0 - ISC 312 * 313 * This source code is licensed under the ISC license. 314 * See the LICENSE file in the root directory of this source tree. 315 */const rre=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],ire=lt("Languages",rre);/** 316 * @license lucide-react v0.475.0 - ISC 317 * 318 * This source code is licensed under the ISC license. 319 * See the LICENSE file in the root directory of this source tree. 320 */const are=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],sre=lt("LayoutDashboard",are);/** 321 * @license lucide-react v0.475.0 - ISC 322 * 323 * This source code is licensed under the ISC license. 324 * See the LICENSE file in the root directory of this source tree. 325 */const ore=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],lre=lt("Leaf",ore);/** 326 * @license lucide-react v0.475.0 - ISC 327 * 328 * This source code is licensed under the ISC license. 329 * See the LICENSE file in the root directory of this source tree. 330 */const cre=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],ure=lt("LifeBuoy",cre);/** 331 * @license lucide-react v0.475.0 - ISC 332 * 333 * This source code is licensed under the ISC license. 334 * See the LICENSE file in the root directory of this source tree. 335 */const dre=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],$1=lt("Lightbulb",dre);/** 336 * @license lucide-react v0.475.0 - ISC 337 * 338 * This source code is licensed under the ISC license. 339 * See the LICENSE file in the root directory of this source tree. 340 */const fre=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],sd=lt("Link2",fre);/** 341 * @license lucide-react v0.475.0 - ISC 342 * 343 * This source code is licensed under the ISC license. 344 * See the LICENSE file in the root directory of this source tree. 345 */const hre=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],pre=lt("Linkedin",hre);/** 346 * @license lucide-react v0.475.0 - ISC 347 * 348 * This source code is licensed under the ISC license. 349 * See the LICENSE file in the root directory of this source tree. 350 */const mre=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Mf=lt("LoaderCircle",mre);/** 351 * @license lucide-react v0.475.0 - ISC 352 * 353 * This source code is licensed under the ISC license. 354 * See the LICENSE file in the root directory of this source tree. 355 */const gre=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],vre=lt("LockOpen",gre);/** 356 * @license lucide-react v0.475.0 - ISC 357 * 358 * This source code is licensed under the ISC license. 359 * See the LICENSE file in the root directory of this source tree. 360 */const yre=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],A2=lt("Lock",yre);/** 361 * @license lucide-react v0.475.0 - ISC 362 * 363 * This source code is licensed under the ISC license. 364 * See the LICENSE file in the root directory of this source tree. 365 */const xre=[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",ke
365y:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]],bre=lt("LogIn",xre);/** 366 * @license lucide-react v0.475.0 - ISC 367 * 368 * This source code is licensed under the ISC license. 369 * See the LICENSE file in the root directory of this source tree. 370 */const wre=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],WR=lt("LogOut",wre);/** 371 * @license lucide-react v0.475.0 - ISC 372 * 373 * This source code is licensed under the ISC license. 374 * See the LICENSE file in the root directory of this source tree. 375 */const jre=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],M9=lt("Mail",jre);/** 376 * @license lucide-react v0.475.0 - ISC 377 * 378 * This source code is licensed under the ISC license. 379 * See the LICENSE file in the root directory of this source tree. 380 */const _re=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],yg=lt("Megaphone",_re);/** 381 * @license lucide-react v0.475.0 - ISC 382 * 383 * This source code is licensed under the ISC license. 384 * See the LICENSE file in the root directory of this source tree. 385 */const Nre=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],Sre=lt("Menu",Nre);/** 386 * @license lucide-react v0.475.0 - ISC 387 * 388 * This source code is licensed under the ISC license. 389 * See the LICENSE file in the root directory of this source tree. 390 */const Are=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],o0=lt("MessageSquare",Are);/** 391 * @license lucide-react v0.475.0 - ISC 392 * 393 * This source code is licensed under the ISC license. 394 * See the LICENSE file in the root directory of this source tree. 395 */const kre=[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]],D9=lt("MousePointerClick",kre);/** 396 * @license lucide-react v0.475.0 - ISC 397 * 398 * This source code is licensed under the ISC license. 399 * See the LICENSE file in the root directory of this source tree. 400 */const Pre=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],Cre=lt("Network",Pre);/** 401 * @license lucide-react v0.475.0 - ISC 402 * 403 * This source code is licensed under the ISC license. 404 * See the LICENSE file in the root directory of this source tree. 405 */const Ere=[["path",{d:"M13.234 20.252 21 12.3",key:"1cbrk9"}],["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486",key:"1pkts6"}]],U1=lt("Paperclip",Ere);/** 406 * @license lucide-react v0.475.0 - ISC 407 * 408 * This source code is licensed under the ISC license. 409 * See the LICENSE file in the root directory of this source tree. 410 */const Tre=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],F9=lt("Pen",Tre);/** 411 * @license lucide-react v0.475.0 - ISC 412 * 413 * This source code is licensed under the ISC license. 414 * See the LICENSE file in the root directory of this source tree. 415 */const Ore=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],B9=lt("Pencil",Ore);/** 416 * @license lucide-react v0.475.0 - ISC 417 * 418 * This source code is licensed under the ISC license. 419 * See the LICENSE file in the root directory of this source tree. 420 */const Rre=[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]],Ire=lt("Percent",Rre);/** 421 * @license lucide-react v0.475.0 - ISC 422 * 423 * This source code is licensed under the ISC license. 424 * See the LICENSE file in the root directory of this source tree. 425 */const Lre=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],sa=lt("Plus",Lre);
425/** 426 * @license lucide-react v0.475.0 - ISC 427 * 428 * This source code is licensed under the ISC license. 429 * See the LICENSE file in the root directory of this source tree. 430 */const Mre=[["path",{d:"M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z",key:"1mz881"}],["polyline",{points:"8 10 12 14 16 10",key:"w4mbv5"}]],Dre=lt("Pocket",Mre);/** 431 * @license lucide-react v0.475.0 - ISC 432 * 433 * This source code is licensed under the ISC license. 434 * See the LICENSE file in the root directory of this source tree. 435 */const Fre=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],Bre=lt("QrCode",Fre);/** 436 * @license lucide-react v0.475.0 - ISC 437 * 438 * This source code is licensed under the ISC license. 439 * See the LICENSE file in the root directory of this source tree. 440 */const qre=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],zre=lt("RefreshCw",qre);/** 441 * @license lucide-react v0.475.0 - ISC 442 * 443 * This source code is licensed under the ISC license. 444 * See the LICENSE file in the root directory of this source tree. 445 */const $re=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],_P=lt("Save",$re);/** 446 * @license lucide-react v0.475.0 - ISC 447 * 448 * This source code is licensed under the ISC license. 449 * See the LICENSE file in the root directory of this source tree. 450 */const Ure=[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],_4=lt("Scale",Ure);/** 451 * @license lucide-react v0.475.0 - ISC 452 * 453 * This source code is licensed under the ISC license. 454 * See the LICENSE file in the root directory of this source tree. 455 */const Gre=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],eo=lt("Search",Gre);/** 456 * @license lucide-react v0.475.0 - ISC 457 * 458 * This source code is licensed under the ISC license. 459 * See the LICENSE file in the root directory of this source tree. 460 */const Vre=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],l0=lt("Send",Vre);/** 461 * @license lucide-react v0.475.0 - ISC 462 * 463 * This source code is licensed under the ISC license. 464 * See the LICENSE file in the root directory of this source tree. 465 */const Wre=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Hre=lt("Settings",Wre);/** 466 * @license lucide-react v0.475.0 - ISC 467 * 468 * This source code is licensed under the ISC license. 469 * See the LICENSE file in the root directory of this source tree. 470 */const Kre=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],N4=lt("Share2",Kre);
470/** 471 * @license lucide-react v0.475.0 - ISC 472 * 473 * This source code is licensed under the ISC license. 474 * See the LICENSE file in the root directory of this source tree. 475 */const Yre=[["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"}]],Xre=lt("ShieldCheck",Yre);/** 476 * @license lucide-react v0.475.0 - ISC 477 * 478 * This source code is licensed under the ISC license. 479 * See the LICENSE file in the root directory of this source tree. 480 */const Qre=[["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"}]],ls=lt("Shield",Qre);/** 481 * @license lucide-react v0.475.0 - ISC 482 * 483 * This source code is licensed under the ISC license. 484 * See the LICENSE file in the root directory of this source tree. 485 */const Zre=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],Jre=lt("ShoppingCart",Zre);/** 486 * @license lucide-react v0.475.0 - ISC 487 * 488 * This source code is licensed under the ISC license. 489 * See the LICENSE file in the root directory of this source tree. 490 */const eie=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Xr=lt("Sparkles",eie);/** 491 * @license lucide-react v0.475.0 - ISC 492 * 493 * This source code is licensed under the ISC license. 494 * See the LICENSE file in the root directory of this source tree. 495 */const tie=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],md=lt("SquarePen",tie);/** 496 * @license lucide-react v0.475.0 - ISC 497 * 498 * This source code is licensed under the ISC license. 499 * See the LICENSE file in the root directory of this source tree. 500 */const nie=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],NP=lt("Star",nie);/** 501 * @license lucide-react v0.475.0 - ISC 502 * 503 * This source code is licensed under the ISC license. 504 * See the LICENSE file in the root directory of this source tree. 505 */const rie=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],Qg=lt("Tag",rie);/** 506 * @license lucide-react v0.475.0 - ISC 507 * 508 * This source code is licensed under the ISC license. 509 * See the LICENSE file in the root directory of this source tree. 510 */const iie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],q9=lt("Target",iie);/** 511 * @license lucide-react v0.475.0 - ISC 512 * 513 * This source code is licensed under the ISC license. 514 * See the LICENSE file in the root directory of this source tree. 515 */const aie=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Ps=lt("Trash2",aie);/** 516 * @license lucide-react v0.475.0 - ISC 517 * 518 * This source code is licensed under the ISC license. 519 * See the LICENSE file in the root directory of this source tree. 520 */const sie=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],Yl=lt("TrendingUp",sie);/** 521 * @license lucide-react v0.475.0 - ISC 522 * 523 * This source code is licensed under the ISC license. 524 * See the LICENSE file in the root directory of this source tree. 525 */const oie=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ap=lt("TriangleAlert",oie);/** 526 * @license lucide-react v0.475.0 - ISC 527 * 528 * This source code is licensed under the ISC license. 529 * See the LICENSE file in the root directory of this source tree. 530 */const lie=[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}
530],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]],cie=lt("Trophy",lie);/** 531 * @license lucide-react v0.475.0 - ISC 532 * 533 * This source code is licensed under the ISC license. 534 * See the LICENSE file in the root directory of this source tree. 535 */const uie=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],die=lt("Twitter",uie);/** 536 * @license lucide-react v0.475.0 - ISC 537 * 538 * This source code is licensed under the ISC license. 539 * See the LICENSE file in the root directory of this source tree. 540 */const fie=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],hie=lt("Upload",fie);/** 541 * @license lucide-react v0.475.0 - ISC 542 * 543 * This source code is licensed under the ISC license. 544 * See the LICENSE file in the root directory of this source tree. 545 */const pie=[["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"}]],mie=lt("UserCheck",pie);/** 546 * @license lucide-react v0.475.0 - ISC 547 * 548 * This source code is licensed under the ISC license. 549 * See the LICENSE file in the root directory of this source tree. 550 */const gie=[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],vie=lt("UserPlus",gie);/** 551 * @license lucide-react v0.475.0 - ISC 552 * 553 * This source code is licensed under the ISC license. 554 * See the LICENSE file in the root directory of this source tree. 555 */const yie=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],z9=lt("User",yie);/** 556 * @license lucide-react v0.475.0 - ISC 557 * 558 * This source code is licensed under the ISC license. 559 * See the LICENSE file in the root directory of this source tree. 560 */const xie=[["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"}]],Mi=lt("Users",xie);/** 561 * @license lucide-react v0.475.0 - ISC 562 * 563 * This source code is licensed under the ISC license. 564 * See the LICENSE file in the root directory of this source tree. 565 */const bie=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],Qu=lt("Video",bie);/** 566 * @license lucide-react v0.475.0 - ISC 567 * 568 * This source code is licensed under the ISC license. 569 * See the LICENSE file in the root directory of this source tree. 570 */const wie=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],g1=lt("Wallet",wie);/** 571 * @license lucide-react v0.475.0 - ISC 572 * 573 * This source code is licensed under the ISC license. 574 * See the LICENSE file in the root directory of this source tree. 575 */const jie=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],k2=lt("Workflow",jie);/** 576 * @license lucide-react v0.475.0 - ISC 577 * 578 * This source code is licensed under the ISC license. 579 * See the LICENSE file in the root directory of this source tree. 580 */const _ie=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],Fy=lt("Wrench",_ie);/** 581 * @license lucide-react v0.475.0 - ISC 582 * 583 * This source code is licensed under the ISC license. 584 * See the LICENSE file in the root directory of this source tree. 585 */const Nie=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 2,571 bytes, lines 585-595
585],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ss=lt("X",Nie);/** 586 * @license lucide-react v0.475.0 - ISC 587 * 588 * This source code is licensed under the ISC license. 589 * See the LICENSE file in the root directory of this source tree. 590 */const Sie=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],Aie=lt("Youtube",Sie);/** 591 * @license lucide-react v0.475.0 - ISC 592 * 593 * This source code is licensed under the ISC license. 594 * See the LICENSE file in the root directory of this source tree. 595 */const kie=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Zu=lt("Zap",kie),Pie=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Cie=(e,t)=>({classGroupId:e,validator:t}),$9=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),G1="-",HR=[],Eie="arbitrary..",Tie=e=>{const t=Rie(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return Oie(o);const l=o.split(G1),c=l[0]===""&&l.length>1?1:0;return U9(l,c,t)},getConflictingClassGroupIds:(o,l)=>{if(l){const c=r[o],u=n[o];return c?u?Pie(u,c):c:u||HR}return n[o]||HR}}},U9=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],s=n.nextPart.get(i);if(s){const u=U9(e,t+1,s);if(u)return u}const o=n.validators;if(o===null)return;const l=t===0?e.join(G1):e.slice(t).join(G1),c=o.length;for(let u=0;u<c;u++){const d=o[u];if(d.validator(l))return d.classGroupId}},Oie=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Eie+r:void 0})(),Rie=e=>{const{theme:t,classGroups:n}=e;return Iie(n,t)},Iie=(e,t)=>{const n=$9();for(const r in e){const i=e[r];S4(i,n,r,t)}return n},S4=(e,t,n,r)=>{const i=e.length;for(let s=0;s<i;s++){const o=e[s];Lie(o,t,n,r)}},Lie=(e,t,n,r)=>{if(typeof e=="string"){Mie(e,t,n);return}if(typeof e=="function"){Die(e,t,n,r);return}Fie(e,t,n,r)},Mie=(e,t,n)=>{const r=e===""?t:G9(t,e);r.classGroupId=n},Die=(e,t,n,r)=>{if(Bie(e)){S4(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Cie(n,e))},Fie=(e,t,n,r)=>{const i=Object.entries(e),s=i.length;for(let o=0;o<s;o++){const[l,c]=i[o];S4(c,G9(t,l),n,r)}},G9=(e,t)=>
vendor: 3,435 bytes, line 595
595{let n=e;const r=t.split(G1),i=r.length;for(let s=0;s<i;s++){const o=r[s];let l=n.nextPart.get(o);l||(l=$9(),n.nextPart.set(o,l)),n=l}return n},Bie=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,qie=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(s,o)=>{n[s]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let o=n[s];if(o!==void 0)return o;if((o=r[s])!==void 0)return i(s,o),o},set(s,o){s in n?n[s]=o:i(s,o)}}},SP="!",KR=":",zie=[],YR=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),$ie=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let o=0,l=0,c=0,u;const d=i.length;for(let v=0;v<d;v++){const g=i[v];if(o===0&&l===0){if(g===KR){s.push(i.slice(c,v)),c=v+1;continue}if(g==="/"){u=v;continue}}g==="["?o++:g==="]"?o--:g==="("?l++:g===")"&&l--}const f=s.length===0?i:i.slice(c);let p=f,h=!1;f.endsWith(SP)?(p=f.slice(0,-1),h=!0):f.startsWith(SP)&&(p=f.slice(1),h=!0);const x=u&&u>c?u-c:void 0;return YR(s,h,p,x)};if(t){const i=t+KR,s=r;r=o=>o.startsWith(i)?s(o.slice(i.length)):YR(zie,!1,o,void 0,!0)}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},Uie=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let s=0;s<n.length;s++){const o=n[s],l=o[0]==="[",c=t.has(o);l||c?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},Gie=e=>({cache:qie(e.cacheSize),parseClassName:$ie(e),sortModifiers:Uie(e),...Tie(e)}),Vie=/\s+/,Wie=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,o=[],l=e.trim().split(Vie);let c="";for(let u=l.length-1;u>=0;u-=1){const d=l[u],{isExternal:f,modifiers:p,hasImportantModifier:h,baseClassName:x,maybePostfixModifierPosition:v}=n(d);if(f){c=d+(c.length>0?" "+c:c);continue}let g=!!v,y=r(g?x.substring(0,v):x);if(!y){if(!g){c=d+(c.length>0?" "+c:c);continue}if(y=r(x),!y){c=d+(c.length>0?" "+c:c);continue}g=!1}const w=p.length===0?"":p.length===1?p[0]:s(p).join(":"),j=h?w+SP:w,_=j+y;if(o.indexOf(_)>-1)continue;o.push(_);const N=i(y,g);for(let A=0;A<N.length;++A){const E=N[A];o.push(j+E)}c=d+(c.length>0?" "+c:c)}return c},Hie=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=V9(n))&&(i&&(i+=" "),i+=r);return i},V9=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=V9(e[r]))&&(n&&(n+=" "),n+=t);return n},Kie=(e,...t)=>{let n,r,i,s;const o=c=>{const u=t.reduce((d,f)=>f(d),e());return n=Gie(u),r=n.cache.get,i=n.cache.set,s=l,l(c)},l=c=>{const u=r(c);if(u)return u;const d=Wie(c,n);return i(c,d),d};return s=o,(...c)=>s(Hie(...c))},Yie=[],ta=e=>{const t=n=>n[e]||Yie;return t.isThemeGetter=!0,t},W9=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,H9=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xie=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Qie=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zie=/\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$/,Jie=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,eae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tae=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,nf=e=>Xie.test(e),Fn=e=>!!e&&!Number.isNaN(Number(e)),rf=e=>!!e&&Number.isInteger(Number(e)),J_=e=>e.endsWith("%")&&Fn(e.slice(0,-1)),Mu=e=>
vendor: 4,654 bytes, line 595
595Qie.test(e),K9=()=>!0,nae=e=>Zie.test(e)&&!Jie.test(e),A4=()=>!1,rae=e=>eae.test(e),iae=e=>tae.test(e),aae=e=>!Gt(e)&&!Wt(e),sae=e=>$f(e,Q9,A4),Gt=e=>W9.test(e),_h=e=>$f(e,Z9,nae),XR=e=>$f(e,pae,Fn),oae=e=>$f(e,eU,K9),lae=e=>$f(e,J9,A4),QR=e=>$f(e,Y9,A4),cae=e=>$f(e,X9,iae),jb=e=>$f(e,tU,rae),Wt=e=>H9.test(e),Jv=e=>kp(e,Z9),uae=e=>kp(e,J9),ZR=e=>kp(e,Y9),dae=e=>kp(e,Q9),fae=e=>kp(e,X9),_b=e=>kp(e,tU,!0),hae=e=>kp(e,eU,!0),$f=(e,t,n)=>{const r=W9.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},kp=(e,t,n=!1)=>{const r=H9.exec(e);return r?r[1]?t(r[1]):n:!1},Y9=e=>e==="position"||e==="percentage",X9=e=>e==="image"||e==="url",Q9=e=>e==="length"||e==="size"||e==="bg-size",Z9=e=>e==="length",pae=e=>e==="number",J9=e=>e==="family-name",eU=e=>e==="number"||e==="weight",tU=e=>e==="shadow",mae=()=>{const e=ta("color"),t=ta("font"),n=ta("text"),r=ta("font-weight"),i=ta("tracking"),s=ta("leading"),o=ta("breakpoint"),l=ta("container"),c=ta("spacing"),u=ta("radius"),d=ta("shadow"),f=ta("inset-shadow"),p=ta("text-shadow"),h=ta("drop-shadow"),x=ta("blur"),v=ta("perspective"),g=ta("aspect"),y=ta("ease"),w=ta("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[..._(),Wt,Gt],A=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],k=()=>[Wt,Gt,c],T=()=>[nf,"full","auto",...k()],D=()=>[rf,"none","subgrid",Wt,Gt],P=()=>["auto",{span:["full",rf,Wt,Gt]},rf,Wt,Gt],R=()=>[rf,"auto",Wt,Gt],q=()=>["auto","min","max","fr",Wt,Gt],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...k()],Z=()=>[nf,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],J=()=>[nf,"screen","full","dvw","lvw","svw","min","max","fit",...k()],K=()=>[nf,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],F=()=>[e,Wt,Gt],$=()=>[..._(),ZR,QR,{position:[Wt,Gt]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",dae,sae,{size:[Wt,Gt]}],ee=()=>[J_,Jv,_h],te=()=>["","none","full",u,Wt,Gt],X=()=>["",Fn,Jv,_h],ne=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>[Fn,J_,ZR,QR],he=()=>["","none",x,Wt,Gt],be=()=>["none",Fn,Wt,Gt],ve=()=>["none",Fn,Wt,Gt],ze=()=>[Fn,Wt,Gt],He=()=>[nf,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Mu],breakpoint:[Mu],color:[K9],container:[Mu],"drop-shadow":[Mu],ease:["in","out","in-out"],font:[aae],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Mu],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Mu],shadow:[Mu],spacing:["px",Fn],text:[Mu],"text-shadow":[Mu],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",nf,Gt,Wt,g]}],container:["container"],columns:[{columns:[Fn,Gt,Wt,l]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"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"],sr:["sr-only","not-sr-only"],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:N()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}
vendor: 4,749 bytes, line 595
595],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[rf,"auto",Wt,Gt]}],basis:[{basis:[nf,"full","auto",l,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Fn,nf,"auto","initial","none",Gt]}],grow:[{grow:["",Fn,Wt,Gt]}],shrink:[{shrink:["",Fn,Wt,Gt]}],order:[{order:[rf,"first","last","none",Wt,Gt]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:P()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:P()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...K()]}],"min-block-size":[{"min-block":["auto",...K()]}],"max-block-size":[{"max-block":["none",...K()]}],w:[{w:[l,"screen",...Z()]}],"min-w":[{"min-w":[l,"screen","none",...Z()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",n,Jv,_h]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,hae,oae]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",J_,Gt]}],"font-family":[{font:[uae,lae,t]}],"font-features":[{"font-features":[Gt]}],"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:[i,Wt,Gt]}],"line-clamp":[{"line-clamp":[Fn,"none",Wt,XR]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",Wt,Gt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Wt,Gt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[Fn,"from-font","auto",Wt,_h]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Fn,"auto",Wt,Gt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Wt,Gt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Wt,Gt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:B()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},rf,Wt,Gt],radial:["",Wt,Gt],conic:[rf,Wt,Gt]},fae,cae]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ee()}
vendor: 6,664 bytes, line 595
595],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ne(),"hidden","none"]}],"divide-style":[{divide:[...ne(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Fn,Wt,Gt]}],"outline-w":[{outline:["",Fn,Jv,_h]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",d,_b,jb]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",f,_b,jb]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Fn,_h]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",p,_b,jb]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Fn,Wt,Gt]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Fn]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[Wt,Gt]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[Fn]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Wt,Gt]}],filter:[{filter:["","none",Wt,Gt]}],blur:[{blur:he()}],brightness:[{brightness:[Fn,Wt,Gt]}],contrast:[{contrast:[Fn,Wt,Gt]}],"drop-shadow":[{"drop-shadow":["","none",h,_b,jb]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",Fn,Wt,Gt]}],"hue-rotate":[{"hue-rotate":[Fn,Wt,Gt]}],invert:[{invert:["",Fn,Wt,Gt]}],saturate:[{saturate:[Fn,Wt,Gt]}],sepia:[{sepia:["",Fn,Wt,Gt]}],"backdrop-filter":[{"backdrop-filter":["","none",Wt,Gt]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[Fn,Wt,Gt]}],"backdrop-contrast":[{"backdrop-contrast":[Fn,Wt,Gt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Fn,Wt,Gt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Fn,Wt,Gt]}],"backdrop-invert":[{"backdrop-invert":["",Fn,Wt,Gt]}],"backdrop-opacity":[{"backdrop-opacity":[Fn,Wt,Gt]}],"backdrop-saturate":[{"backdrop-saturate":[Fn,Wt,Gt]}],"backdrop-sepia":[{"backdrop-sepia":["",Fn,Wt,Gt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Wt,Gt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Fn,"initial",Wt,Gt]}],ease:[{ease:["linear","initial",y,Wt,Gt]}],delay:[{delay:[Fn,Wt,Gt]}],animate:[{animate:["none",w,Wt,Gt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,Wt,Gt]}],"perspective-origin":[{"perspective-origin":N()}
vendor: 7,686 bytes, line 595
595],rotate:[{rotate:be()}],"rotate-x":[{"rotate-x":be()}],"rotate-y":[{"rotate-y":be()}],"rotate-z":[{"rotate-z":be()}],scale:[{scale:ve()}],"scale-x":[{"scale-x":ve()}],"scale-y":[{"scale-y":ve()}],"scale-z":[{"scale-z":ve()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[Wt,Gt,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:He()}],"translate-x":[{"translate-x":He()}],"translate-y":[{"translate-y":He()}],"translate-z":[{"translate-z":He()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Wt,Gt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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"]}],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",Wt,Gt]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[Fn,Jv,_h,XR]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},gae=Kie(mae);function ln(...e){return gae(Rn(e))}const nU=O.forwardRef(({...e},t)=>a.jsx("div",{ref:t,className:"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}));nU.displayName="ToastProvider";const rU=O.forwardRef(({...e},t)=>a.jsx("div",{ref:t,className:"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}));rU.displayName="ToastViewport";const vae=a0("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"}}),iU=O.forwardRef(({className:e,variant:t,...n},r)=>a.jsx("div",{ref:r,className:ln(vae({variant:t}),e),...n}));iU.displayName="Toast";const yae=O.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:ln("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));yae.displayName="ToastAction";const aU=O.forwardRef(({className:e,...t},n)=>a.jsx("button",{ref:n,className:ln("absolute right-2 top-2 rounded-md p-1 text-foreground
595/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:a.jsx(ss,{className:"h-4 w-4"})}));aU.displayName="ToastClose";const sU=O.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:ln("text-sm font-semibold",e),...t}));sU.displayName="ToastTitle";const oU=O.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:ln("text-sm opacity-90",e),...t}));oU.displayName="ToastDescription";function xae(){const{toasts:e}=Bte();return a.jsxs(nU,{children:[e.map(function({id:t,title:n,description:r,action:i,...s}){return a.jsxs(iU,{...s,children:[a.jsxs("div",{className:"grid gap-1",children:[n&&a.jsx(sU,{children:n}),r&&a.jsx(oU,{children:r})]}),i,a.jsx(aU,{})]},t)}),a.jsx(rU,{})]})}var Zg=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(){}},bae={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},mf,w4,v9,wae=(v9=class{constructor(){Jt(this,mf,bae);Jt(this,w4,!1)}setTimeoutProvider(e){kt(this,mf,e)}setTimeout(e,t){return _e(this,mf).setTimeout(e,t)}clearTimeout(e){_e(this,mf).clearTimeout(e)}setInterval(e,t){return _e(this,mf).setInterval(e,t)}clearInterval(e){_e(this,mf).clearInterval(e)}},mf=new WeakMap,w4=new WeakMap,v9),Fh=new wae;function jae(e){setTimeout(e,0)}var sp=typeof window>"u"||"Deno"in globalThis;function _s(){}function _ae(e,t){return typeof e=="function"?e(t):e}function AP(e){return typeof e=="number"&&e>=0&&e!==1/0}function lU(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pf(e,t){return typeof e=="function"?e(t):e}function ll(e,t){return typeof e=="function"?e(t):e}function JR(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==k4(o,t.options))return!1}else if(!rx(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||s&&!s(t))}function eI(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(op(t.options.mutationKey)!==op(s))return!1}else if(!rx(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function k4(e,t){return((t==null?void 0:t.queryKeyHashFn)||op)(e)}function op(e){return JSON.stringify(e,(t,n)=>kP(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function rx(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>rx(e[n],t[n])):!1}var Nae=Object.prototype.hasOwnProperty;function cU(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=tI(e)&&tI(t);if(!r&&!(kP(e)&&kP(t)))return t;const s=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),l=o.length,c=r?new Array(l):{};let u=0;for(let d=0;d<l;d++){const f=r?d:o[d],p=e[f],h=t[f];if(p===h){c[f]=p,(r?d<s:Nae.call(e,f))&&u++;continue}if(p===null||h===null||typeof p!="object"||typeof h!="object"){c[f]=h;continue}const x=cU(p,h,n+1);c[f]=x,x===p&&u++}return s===l&&u===s?e:c}function V1(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function tI(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function kP(e){if(!nI(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!nI(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function nI(e){return Object.prototype.toString.call(e)==="[object Object]"}function Sae(e){return new Promise(t=>{Fh.setTimeout(t,e)})}function PP(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?cU(e,t):t}function Aae(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function kae(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var P4=Symbol();function uU(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===P4?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function C4(e,t){return typeof e=="function"?e(...t):!!e}function Pae(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var Wh,gf,ag,y9,Cae=(y9=class extends Zg{constructor(){super();Jt(this,Wh);Jt(this,gf);Jt(this,ag);kt(this,ag,t=>{if(!sp&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_e(this,gf)||this.setEventListener(_e(this,ag))}onUnsubscribe(){var t;this.hasListeners()||((t=_e(this,gf))==null||t.call(this),kt(this,gf,void 0))}setEventListener(t){var n;kt(this,ag,t),(n=_e(this,gf))==null||n.call(this),kt(this,gf,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){_e(this,Wh)!==t&&(kt(this,Wh,t),this.onFocus())}onFocus(){const t=this.isFocused();
595this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof _e(this,Wh)=="boolean"?_e(this,Wh):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Wh=new WeakMap,gf=new WeakMap,ag=new WeakMap,y9),E4=new Cae;function CP(){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}var Eae=jae;function Tae(){let e=[],t=0,n=l=>{l()},r=l=>{l()},i=Eae;const s=l=>{t?e.push(l):i(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&i(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{s(()=>{l(...c)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var ia=Tae(),sg,vf,og,x9,Oae=(x9=class extends Zg{constructor(){super();Jt(this,sg,!0);Jt(this,vf);Jt(this,og);kt(this,og,t=>{if(!sp&&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,vf)||this.setEventListener(_e(this,og))}onUnsubscribe(){var t;this.hasListeners()||((t=_e(this,vf))==null||t.call(this),kt(this,vf,void 0))}setEventListener(t){var n;kt(this,og,t),(n=_e(this,vf))==null||n.call(this),kt(this,vf,t(this.setOnline.bind(this)))}setOnline(t){_e(this,sg)!==t&&(kt(this,sg,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return _e(this,sg)}},sg=new WeakMap,vf=new WeakMap,og=new WeakMap,x9),W1=new Oae;function Rae(e){return Math.min(1e3*2**e,3e4)}function dU(e){return(e??"online")==="online"?W1.isOnline():!0}var EP=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function fU(e){let t=!1,n=0,r;const i=CP(),s=()=>i.status!=="pending",o=v=>{var g;if(!s()){const y=new EP(v);p(y),(g=e.onCancel)==null||g.call(e,y)}},l=()=>{t=!0},c=()=>{t=!1},u=()=>E4.isFocused()&&(e.networkMode==="always"||W1.isOnline())&&e.canRun(),d=()=>dU(e.networkMode)&&e.canRun(),f=v=>{s()||(r==null||r(),i.resolve(v))},p=v=>{s()||(r==null||r(),i.reject(v))},h=()=>new Promise(v=>{var g;r=y=>{(s()||u())&&v(y)},(g=e.onPause)==null||g.call(e)}).then(()=>{var v;r=void 0,s()||(v=e.onContinue)==null||v.call(e)}),x=()=>{if(s())return;let v;const g=n===0?e.initialPromise:void 0;try{v=g??e.fn()}catch(y){v=Promise.reject(y)}Promise.resolve(v).then(f).catch(y=>{var A;if(s())return;const w=e.retry??(sp?0:3),j=e.retryDelay??Rae,_=typeof j=="function"?j(n,y):j,N=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,y);if(t||!N){p(y);return}n++,(A=e.onFail)==null||A.call(e,n,y),Sae(_).then(()=>u()?void 0:h()).then(()=>{t?p(y):x()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?x():h().then(x),i)}}var Hh,b9,hU=(b9=class{constructor(){Jt(this,Hh)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),AP(this.gcTime)&&kt(this,Hh,Fh.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(sp?1/0:300*1e3))}clearGcTimeout(){_e(this,Hh)&&(Fh.clearTimeout(_e(this,Hh)),kt(this,Hh,void 0))}},Hh=new WeakMap,b9),Kh,lg,ol,Yh,ya,e0,Xh,$l,qu,w9,Iae=(w9=class extends hU{constructor(t){super();Jt(this,$l);Jt(this,Kh);Jt(this,lg);Jt(this,ol);Jt(this,Yh);Jt(this,ya);Jt(this,e0);Jt(this,Xh);kt(this,Xh,!1),kt(this,e0,t.defaultOptions),this.setOptions(t.options),this.observers=[],kt(this,Yh,t.client),kt(this,ol,_e(this,Yh).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,kt(this,Kh,iI(this.options)),this.state=t.state??_e(this,Kh),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=_e(this,ya))==null?void 0:t.promise}setOptions(t){if(this.options={..._e(this,e0),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=iI(this.options);
vendor: 5,115 bytes, line 595
595n.data!==void 0&&(this.setState(rI(n.data,n.dataUpdatedAt)),kt(this,Kh,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_e(this,ol).remove(this)}setData(t,n){const r=PP(this.state.data,t,this.options);return Mn(this,$l,qu).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Mn(this,$l,qu).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=_e(this,ya))==null?void 0:r.promise;return(i=_e(this,ya))==null||i.cancel(t),n?n.then(_s).catch(_s):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_e(this,Kh))}isActive(){return this.observers.some(t=>ll(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===P4||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Pf(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:!lU(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=_e(this,ya))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=_e(this,ya))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),_e(this,ol).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,ya)&&(_e(this,Xh)?_e(this,ya).cancel({revert:!0}):_e(this,ya).cancelRetry()),this.scheduleGc()),_e(this,ol).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Mn(this,$l,qu).call(this,{type:"invalidate"})}async fetch(t,n){var c,u,d,f,p,h,x,v,g,y,w,j;if(this.state.fetchStatus!=="idle"&&((c=_e(this,ya))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_e(this,ya))return _e(this,ya).continueRetry(),_e(this,ya).promise}if(t&&this.setOptions(t),!this.options.queryFn){const _=this.observers.find(N=>N.options.queryFn);_&&this.setOptions(_.options)}const r=new AbortController,i=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(kt(this,Xh,!0),r.signal)})},s=()=>{const _=uU(this.options,n),A=(()=>{const E={client:_e(this,Yh),queryKey:this.queryKey,meta:this.meta};return i(E),E})();return kt(this,Xh,!1),this.options.persister?this.options.persister(_,A,this):_(A)},l=(()=>{const _={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:_e(this,Yh),state:this.state,fetchFn:s};return i(_),_})();(u=this.options.behavior)==null||u.onFetch(l,this),kt(this,lg,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&Mn(this,$l,qu).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta}),kt(this,ya,fU({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:_=>{_ instanceof EP&&_.revert&&this.setState({..._e(this,lg),fetchStatus:"idle"}),r.abort()},onFail:(_,N)=>{Mn(this,$l,qu).call(this,{type:"failed",failureCount:_,error:N})},onPause:()=>{Mn(this,$l,qu).call(this,{type:"pause"})},onContinue:()=>{Mn(this,$l,qu).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const _=await _e(this,ya).start();if(_===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(_),(h=(p=_e(this,ol).config).onSuccess)==null||h.call(p,_,this),(v=(x=_e(this,ol).config).onSettled)==null||v.call(x,_,this.state.error,this),_}catch(_){if(_ instanceof EP){if(_.silent)return _e(this,ya).promise;if(_.revert){if(this.state.data===void 0)throw _;return this.state.data}}throw Mn(this,$l,qu).call(this,{type:"error",error:_}),(y=(g=_e(this,ol).config).onError)==null||y.call(g,_,this),(j=(w=_e(this,ol).config).onSettled)==null||j.call(w,this.state.data,_,this),_}finally{this.scheduleGc()}}},Kh=new WeakMap,lg=new WeakMap,ol=new WeakMap,Yh=new WeakMap,ya=new WeakMap,e0=new WeakMap,Xh=new WeakMap,$l=new WeakSet,qu=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,...pU(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...rI(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return kt(this,lg,t.manual?i:void 0),i;case"error":const s=t.error;
vendor: 4,277 bytes, line 595
595return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ia.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),_e(this,ol).notify({query:this,type:"updated",action:t})})},w9);function pU(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dU(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function rI(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function iI(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 Ks,Kn,t0,js,Qh,cg,Uu,yf,n0,ug,dg,Zh,Jh,xf,fg,gr,Ny,TP,OP,RP,IP,LP,MP,DP,mU,j9,Lae=(j9=class extends Zg{constructor(t,n){super();Jt(this,gr);Jt(this,Ks);Jt(this,Kn);Jt(this,t0);Jt(this,js);Jt(this,Qh);Jt(this,cg);Jt(this,Uu);Jt(this,yf);Jt(this,n0);Jt(this,ug);Jt(this,dg);Jt(this,Zh);Jt(this,Jh);Jt(this,xf);Jt(this,fg,new Set);this.options=n,kt(this,Ks,t),kt(this,yf,null),kt(this,Uu,CP()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_e(this,Kn).addObserver(this),aI(_e(this,Kn),this.options)?Mn(this,gr,Ny).call(this):this.updateResult(),Mn(this,gr,IP).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return FP(_e(this,Kn),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return FP(_e(this,Kn),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Mn(this,gr,LP).call(this),Mn(this,gr,MP).call(this),_e(this,Kn).removeObserver(this)}setOptions(t){const n=this.options,r=_e(this,Kn);if(this.options=_e(this,Ks).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ll(this.options.enabled,_e(this,Kn))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Mn(this,gr,DP).call(this),_e(this,Kn).setOptions(this.options),n._defaulted&&!V1(this.options,n)&&_e(this,Ks).getQueryCache().notify({type:"observerOptionsUpdated",query:_e(this,Kn),observer:this});const i=this.hasListeners();i&&sI(_e(this,Kn),r,this.options,n)&&Mn(this,gr,Ny).call(this),this.updateResult(),i&&(_e(this,Kn)!==r||ll(this.options.enabled,_e(this,Kn))!==ll(n.enabled,_e(this,Kn))||Pf(this.options.staleTime,_e(this,Kn))!==Pf(n.staleTime,_e(this,Kn)))&&Mn(this,gr,TP).call(this);const s=Mn(this,gr,OP).call(this);i&&(_e(this,Kn)!==r||ll(this.options.enabled,_e(this,Kn))!==ll(n.enabled,_e(this,Kn))||s!==_e(this,xf))&&Mn(this,gr,RP).call(this,s)}getOptimisticResult(t){const n=_e(this,Ks).getQueryCache().build(_e(this,Ks),t),r=this.createResult(n,t);return Dae(this,r)&&(kt(this,js,r),kt(this,cg,this.options),kt(this,Qh,_e(this,Kn).state)),r}getCurrentResult(){return _e(this,js)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&_e(this,Uu).status==="pending"&&_e(this,Uu).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){_e(this,fg).add(t)}getCurrentQuery(){return _e(this,Kn)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=_e(this,Ks).defaultQueryOptions(t),r=_e(this,Ks).getQueryCache().build(_e(this,Ks),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Mn(this,gr,Ny).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),_e(this,js)))}createResult(t,n){var T;const r=_e(this,Kn),i=this.options,s=_e(this,js),o=_e(this,Qh),l=_e(this,cg),u=t!==r?t.state:_e(this,t0),{state:d}=t;let f={...d},p=!1,h;
vendor: 4,227 bytes, line 595
595if(n._optimisticResults){const D=this.hasListeners(),P=!D&&aI(t,n),R=D&&sI(t,r,n,i);(P||R)&&(f={...f,...pU(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:x,errorUpdatedAt:v,status:g}=f;h=f.data;let y=!1;if(n.placeholderData!==void 0&&h===void 0&&g==="pending"){let D;s!=null&&s.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(D=s.data,y=!0):D=typeof n.placeholderData=="function"?n.placeholderData((T=_e(this,dg))==null?void 0:T.state.data,_e(this,dg)):n.placeholderData,D!==void 0&&(g="success",h=PP(s==null?void 0:s.data,D,n),p=!0)}if(n.select&&h!==void 0&&!y)if(s&&h===(o==null?void 0:o.data)&&n.select===_e(this,n0))h=_e(this,ug);else try{kt(this,n0,n.select),h=n.select(h),h=PP(s==null?void 0:s.data,h,n),kt(this,ug,h),kt(this,yf,null)}catch(D){kt(this,yf,D)}_e(this,yf)&&(x=_e(this,yf),h=_e(this,ug),v=Date.now(),g="error");const w=f.fetchStatus==="fetching",j=g==="pending",_=g==="error",N=j&&w,A=h!==void 0,k={status:g,fetchStatus:f.fetchStatus,isPending:j,isSuccess:g==="success",isError:_,isInitialLoading:N,isLoading:N,data:h,dataUpdatedAt:f.dataUpdatedAt,error:x,errorUpdatedAt:v,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:w,isRefetching:w&&!j,isLoadingError:_&&!A,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:_&&A,isStale:T4(t,n),refetch:this.refetch,promise:_e(this,Uu),isEnabled:ll(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const D=k.data!==void 0,P=k.status==="error"&&!D,R=V=>{P?V.reject(k.error):D&&V.resolve(k.data)},q=()=>{const V=kt(this,Uu,k.promise=CP());R(V)},M=_e(this,Uu);switch(M.status){case"pending":t.queryHash===r.queryHash&&R(M);break;case"fulfilled":(P||k.data!==M.value)&&q();break;case"rejected":(!P||k.error!==M.reason)&&q();break}}return k}updateResult(){const t=_e(this,js),n=this.createResult(_e(this,Kn),this.options);if(kt(this,Qh,_e(this,Kn).state),kt(this,cg,this.options),_e(this,Qh).data!==void 0&&kt(this,dg,_e(this,Kn)),V1(n,t))return;kt(this,js,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!_e(this,fg).size)return!0;const o=new Set(s??_e(this,fg));return this.options.throwOnError&&o.add("error"),Object.keys(_e(this,js)).some(l=>{const c=l;return _e(this,js)[c]!==t[c]&&o.has(c)})};Mn(this,gr,mU).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Mn(this,gr,IP).call(this)}},Ks=new WeakMap,Kn=new WeakMap,t0=new WeakMap,js=new WeakMap,Qh=new WeakMap,cg=new WeakMap,Uu=new WeakMap,yf=new WeakMap,n0=new WeakMap,ug=new WeakMap,dg=new WeakMap,Zh=new WeakMap,Jh=new WeakMap,xf=new WeakMap,fg=new WeakMap,gr=new WeakSet,Ny=function(t){Mn(this,gr,DP).call(this);let n=_e(this,Kn).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(_s)),n},TP=function(){Mn(this,gr,LP).call(this);const t=Pf(this.options.staleTime,_e(this,Kn));if(sp||_e(this,js).isStale||!AP(t))return;const r=lU(_e(this,js).dataUpdatedAt,t)+1;kt(this,Zh,Fh.setTimeout(()=>{_e(this,js).isStale||this.updateResult()},r))},OP=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_e(this,Kn)):this.options.refetchInterval)??!1},RP=function(t){Mn(this,gr,MP).call(this),kt(this,xf,t),!(sp||ll(this.options.enabled,_e(this,Kn))===!1||!AP(_e(this,xf))||_e(this,xf)===0)&&kt(this,Jh,Fh.setInterval(()=>{(this.options.refetchIntervalInBackground||E4.isFocused())&&Mn(this,gr,Ny).call(this)},_e(this,xf)))},IP=function(){Mn(this,gr,TP).call(this),Mn(this,gr,RP).call(this,Mn(this,gr,OP).call(this))},LP=function(){_e(this,Zh)&&(Fh.clearTimeout(_e(this,Zh)),kt(this,Zh,void 0))},MP=function(){_e(this,Jh)&&(Fh.clearInterval(_e(this,Jh)),kt(this,Jh,void 0))},DP=function(){const t=_e(this,Ks).getQueryCache().build(_e(this,Ks),this.options);if(t===_e(this,Kn))return;const n=_e(this,Kn);kt(this,Kn,t),kt(this,t0,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},mU=function(t){ia.batch(()=>
vendor: 3,926 bytes, line 595
595{t.listeners&&this.listeners.forEach(n=>{n(_e(this,js))}),_e(this,Ks).getQueryCache().notify({query:_e(this,Kn),type:"observerResultsUpdated"})})},j9);function Mae(e,t){return ll(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function aI(e,t){return Mae(e,t)||e.state.data!==void 0&&FP(e,t,t.refetchOnMount)}function FP(e,t,n){if(ll(t.enabled,e)!==!1&&Pf(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&T4(e,t)}return!1}function sI(e,t,n,r){return(e!==t||ll(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&T4(e,n)}function T4(e,t){return ll(t.enabled,e)!==!1&&e.isStaleByTime(Pf(t.staleTime,e))}function Dae(e,t){return!V1(e.getCurrentResult(),t)}function oI(e){return{onFetch:(t,n)=>{var d,f,p,h,x;const r=t.options,i=(p=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let v=!1;const g=j=>{Pae(j,()=>t.signal,()=>v=!0)},y=uU(t.options,t.fetchOptions),w=async(j,_,N)=>{if(v)return Promise.reject();if(_==null&&j.pages.length)return Promise.resolve(j);const E=(()=>{const P={client:t.client,queryKey:t.queryKey,pageParam:_,direction:N?"backward":"forward",meta:t.options.meta};return g(P),P})(),k=await y(E),{maxPages:T}=t.options,D=N?kae:Aae;return{pages:D(j.pages,k,T),pageParams:D(j.pageParams,_,T)}};if(i&&s.length){const j=i==="backward",_=j?Fae:lI,N={pages:s,pageParams:o},A=_(r,N);l=await w(N,A,j)}else{const j=e??s.length;do{const _=c===0?o[0]??r.initialPageParam:lI(r,l);if(c>0&&_==null)break;l=await w(l,_),c++}while(c<j)}return l};t.options.persister?t.fetchFn=()=>{var v,g;return(g=(v=t.options).persister)==null?void 0:g.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function lI(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 Fae(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 r0,Ec,Ka,ep,Tc,cf,_9,Bae=(_9=class extends hU{constructor(t){super();Jt(this,Tc);Jt(this,r0);Jt(this,Ec);Jt(this,Ka);Jt(this,ep);kt(this,r0,t.client),this.mutationId=t.mutationId,kt(this,Ka,t.mutationCache),kt(this,Ec,[]),this.state=t.state||gU(),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,Ec).includes(t)||(_e(this,Ec).push(t),this.clearGcTimeout(),_e(this,Ka).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){kt(this,Ec,_e(this,Ec).filter(n=>n!==t)),this.scheduleGc(),_e(this,Ka).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_e(this,Ec).length||(this.state.status==="pending"?this.scheduleGc():_e(this,Ka).remove(this))}continue(){var t;return((t=_e(this,ep))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,c,u,d,f,p,h,x,v,g,y,w,j,_,N,A,E;const n=()=>{Mn(this,Tc,cf).call(this,{type:"continue"})},r={client:_e(this,r0),meta:this.options.meta,mutationKey:this.options.mutationKey};kt(this,ep,fU({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(k,T)=>{Mn(this,Tc,cf).call(this,{type:"failed",failureCount:k,error:T})},onPause:()=>{Mn(this,Tc,cf).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_e(this,Ka).canRun(this)}));const i=this.state.status==="pending",s=!_e(this,ep).canStart();try{if(i)n();else{Mn(this,Tc,cf).call(this,{type:"pending",variables:t,isPaused:s}),_e(this,Ka).config.onMutate&&await _e(this,Ka).config.onMutate(t,this,r);
595const T=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t,r));T!==this.state.context&&Mn(this,Tc,cf).call(this,{type:"pending",context:T,variables:t,isPaused:s})}const k=await _e(this,ep).start();return await((u=(c=_e(this,Ka).config).onSuccess)==null?void 0:u.call(c,k,t,this.state.context,this,r)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,k,t,this.state.context,r)),await((h=(p=_e(this,Ka).config).onSettled)==null?void 0:h.call(p,k,null,this.state.variables,this.state.context,this,r)),await((v=(x=this.options).onSettled)==null?void 0:v.call(x,k,null,t,this.state.context,r)),Mn(this,Tc,cf).call(this,{type:"success",data:k}),k}catch(k){try{await((y=(g=_e(this,Ka).config).onError)==null?void 0:y.call(g,k,t,this.state.context,this,r))}catch(T){Promise.reject(T)}try{await((j=(w=this.options).onError)==null?void 0:j.call(w,k,t,this.state.context,r))}catch(T){Promise.reject(T)}try{await((N=(_=_e(this,Ka).config).onSettled)==null?void 0:N.call(_,void 0,k,this.state.variables,this.state.context,this,r))}catch(T){Promise.reject(T)}try{await((E=(A=this.options).onSettled)==null?void 0:E.call(A,void 0,k,t,this.state.context,r))}catch(T){Promise.reject(T)}throw Mn(this,Tc,cf).call(this,{type:"error",error:k}),k}finally{_e(this,Ka).runNext(this)}}},r0=new WeakMap,Ec=new WeakMap,Ka=new WeakMap,ep=new WeakMap,Tc=new WeakSet,cf=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),ia.batch(()=>
595{_e(this,Ec).forEach(r=>{r.onMutationUpdate(t)}),_e(this,Ka).notify({mutation:this,type:"updated",action:t})})},_9);function gU(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gu,Ul,i0,N9,qae=(N9=class extends Zg{constructor(t={}){super();Jt(this,Gu);Jt(this,Ul);Jt(this,i0);this.config=t,kt(this,Gu,new Set),kt(this,Ul,new Map),kt(this,i0,0)}build(t,n,r){const i=new Bae({client:t,mutationCache:this,mutationId:++xb(this,i0)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){_e(this,Gu).add(t);const n=Nb(t);if(typeof n=="string"){const r=_e(this,Ul).get(n);r?r.push(t):_e(this,Ul).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(_e(this,Gu).delete(t)){const n=Nb(t);if(typeof n=="string"){const r=_e(this,Ul).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,Ul).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Nb(t);if(typeof n=="string"){const r=_e(this,Ul).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=Nb(t);if(typeof n=="string"){const i=(r=_e(this,Ul).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(){ia.batch(()=>{_e(this,Gu).forEach(t=>{this.notify({type:"removed",mutation:t})}),_e(this,Gu).clear(),_e(this,Ul).clear()})}getAll(){return Array.from(_e(this,Gu))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>eI(n,r))}findAll(t={}){return this.getAll().filter(n=>eI(t,n))}notify(t){ia.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ia.batch(()=>Promise.all(t.map(n=>n.continue().catch(_s))))}},Gu=new WeakMap,Ul=new WeakMap,i0=new WeakMap,N9);function Nb(e){var t;return(t=e.options.scope)==null?void 0:t.id}
vendor: 4,970 bytes, line 595
595var Vu,bf,Ys,Wu,id,v1,BP,S9,zae=(S9=class extends Zg{constructor(n,r){super();Jt(this,id);Jt(this,Vu);Jt(this,bf);Jt(this,Ys);Jt(this,Wu);kt(this,Vu,n),this.setOptions(r),this.bindMethods(),Mn(this,id,v1).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=_e(this,Vu).defaultMutationOptions(n),V1(this.options,r)||_e(this,Vu).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_e(this,Ys),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&op(r.mutationKey)!==op(this.options.mutationKey)?this.reset():((i=_e(this,Ys))==null?void 0:i.state.status)==="pending"&&_e(this,Ys).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=_e(this,Ys))==null||n.removeObserver(this)}onMutationUpdate(n){Mn(this,id,v1).call(this),Mn(this,id,BP).call(this,n)}getCurrentResult(){return _e(this,bf)}reset(){var n;(n=_e(this,Ys))==null||n.removeObserver(this),kt(this,Ys,void 0),Mn(this,id,v1).call(this),Mn(this,id,BP).call(this)}mutate(n,r){var i;return kt(this,Wu,r),(i=_e(this,Ys))==null||i.removeObserver(this),kt(this,Ys,_e(this,Vu).getMutationCache().build(_e(this,Vu),this.options)),_e(this,Ys).addObserver(this),_e(this,Ys).execute(n)}},Vu=new WeakMap,bf=new WeakMap,Ys=new WeakMap,Wu=new WeakMap,id=new WeakSet,v1=function(){var r;const n=((r=_e(this,Ys))==null?void 0:r.state)??gU();kt(this,bf,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},BP=function(n){ia.batch(()=>{var r,i,s,o,l,c,u,d;if(_e(this,Wu)&&this.hasListeners()){const f=_e(this,bf).variables,p=_e(this,bf).context,h={client:_e(this,Vu),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(i=(r=_e(this,Wu)).onSuccess)==null||i.call(r,n.data,f,p,h)}catch(x){Promise.reject(x)}try{(o=(s=_e(this,Wu)).onSettled)==null||o.call(s,n.data,null,f,p,h)}catch(x){Promise.reject(x)}}else if((n==null?void 0:n.type)==="error"){try{(c=(l=_e(this,Wu)).onError)==null||c.call(l,n.error,f,p,h)}catch(x){Promise.reject(x)}try{(d=(u=_e(this,Wu)).onSettled)==null||d.call(u,void 0,n.error,f,p,h)}catch(x){Promise.reject(x)}}}this.listeners.forEach(f=>{f(_e(this,bf))})})},S9),Oc,A9,$ae=(A9=class extends Zg{constructor(t={}){super();Jt(this,Oc);this.config=t,kt(this,Oc,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??k4(i,n);let o=this.get(s);return o||(o=new Iae({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){_e(this,Oc).has(t.queryHash)||(_e(this,Oc).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=_e(this,Oc).get(t.queryHash);n&&(t.destroy(),n===t&&_e(this,Oc).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ia.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _e(this,Oc).get(t)}getAll(){return[..._e(this,Oc).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>JR(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>JR(t,r)):n}notify(t){ia.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ia.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ia.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Oc=new WeakMap,A9),ji,wf,jf,hg,pg,_f,mg,gg,k9,Uae=(k9=class{constructor(e={}){Jt(this,ji);Jt(this,wf);Jt(this,jf);Jt(this,hg);Jt(this,pg);Jt(this,_f);Jt(this,mg);Jt(this,gg);kt(this,ji,e.queryCache||new $ae),kt(this,wf,e.mutationCache||new qae),kt(this,jf,e.defaultOptions||{}),kt(this,hg,new Map),kt(this,pg,new Map),kt(this,_f,0)}mount(){xb(this,_f)._++,_e(this,_f)===1&&(kt(this,mg,E4.subscribe(async e=>{e&&(await this.resumePausedMutations(),_e(this,ji).onFocus())})),kt(this,gg,W1.subscribe(async e=>{e&&(await this.resumePausedMutations(),_e(this,ji).onOnline())})))}unmount(){var e,t;xb(this,_f)._--,_e(this,_f)===0&&((e=_e(this,mg))==null||e.call(this),kt(this,mg,void 0),(t=_e(this,gg))==null||t.call(this),kt(this,gg,void 0))}isFetching(e){return _e(this,ji).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _e(this,wf).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_e(this,ji).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=_e(this,ji).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Pf(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return _e(this,ji).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,ji).get(r.queryHash),s=i==null?void 0:i.state.data,o=_ae(t,s);if(o!==void 0)return _e(this,ji).build(this,r).setData(o,{...n,manual:!0})}
595setQueriesData(e,t,n){return ia.batch(()=>_e(this,ji).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,ji).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=_e(this,ji);ia.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=_e(this,ji);return ia.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ia.batch(()=>_e(this,ji).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(_s).catch(_s)}invalidateQueries(e,t={}){return ia.batch(()=>(_e(this,ji).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=ia.batch(()=>_e(this,ji).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(_s)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(_s)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=_e(this,ji).build(this,t);return n.isStaleByTime(Pf(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_s).catch(_s)}fetchInfiniteQuery(e){return e.behavior=oI(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_s).catch(_s)}ensureInfiniteQueryData(e){return e.behavior=oI(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return W1.isOnline()?_e(this,wf).resumePausedMutations():Promise.resolve()}getQueryCache(){return _e(this,ji)}getMutationCache(){return _e(this,wf)}getDefaultOptions(){return _e(this,jf)}setDefaultOptions(e){kt(this,jf,e)}setQueryDefaults(e,t){_e(this,hg).set(op(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._e(this,hg).values()],n={};return t.forEach(r=>{rx(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){_e(this,pg).set(op(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._e(this,pg).values()],n={};return t.forEach(r=>{rx(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={..._e(this,jf).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=k4(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===P4&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._e(this,jf).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_e(this,ji).clear(),_e(this,wf).clear()}},ji=new WeakMap,wf=new WeakMap,jf=new WeakMap,hg=new WeakMap,pg=new WeakMap,_f=new WeakMap,mg=new WeakMap,gg=new WeakMap,k9),vU=O.createContext(void 0),Ur=e=>{const t=O.useContext(vU);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Gae=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(vU.Provider,{value:e,children:t})),yU=O.createContext(!1),Vae=()=>O.useContext(yU);yU.Provider;function Wae(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Hae=O.createContext(Wae()),Kae=()=>O.useContext(Hae),Yae=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?C4(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Xae=e=>{O.useEffect(()=>{e.clearReset()},[e])},Qae=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||C4(n,[e.error,r])),Zae=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Jae=(e,t)=>e.isLoading&&e.isFetching&&!t,ese=(e,t)=>
595(e==null?void 0:e.suspense)&&t.isPending,cI=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function tse(e,t,n){var p,h,x,v;const r=Vae(),i=Kae(),s=Ur(),o=s.defaultQueryOptions(e);(h=(p=s.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||h.call(p,o);const l=s.getQueryCache().get(o.queryHash);o._optimisticResults=r?"isRestoring":"optimistic",Zae(o),Yae(o,i,l),Xae(i);const c=!s.getQueryCache().get(o.queryHash),[u]=O.useState(()=>new t(s,o)),d=u.getOptimisticResult(o),f=!r&&e.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(g=>{const y=f?u.subscribe(ia.batchCalls(g)):_s;return u.updateResult(),y},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),O.useEffect(()=>{u.setOptions(o)},[o,u]),ese(o,d))throw cI(o,u,i);if(Qae({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:l,suspense:o.suspense}))throw d.error;if((v=(x=s.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||v.call(x,o,d),o.experimental_prefetchInRender&&!sp&&Jae(d,r)){const g=c?cI(o,u,i):l==null?void 0:l.promise;g==null||g.catch(_s).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?d:u.trackResult(d)}function Qt(e,t){return tse(e,Lae)}function Nn(e,t){const n=Ur(),[r]=O.useState(()=>new zae(n,e));O.useEffect(()=>{r.setOptions(e)},[r,e]);const i=O.useSyncExternalStore(O.useCallback(o=>r.subscribe(ia.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=O.useCallback((o,l)=>{r.mutate(o,l).catch(_s)},[r]);if(i.error&&C4(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}const nse=new Uae({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var c0=j4();const rse=Zn(c0);/** 596 * @remix-run/router v1.23.2 597 * 598 * Copyright (c) Remix Software Inc. 599 * 600 * This source code is licensed under the MIT license found in the 601 * LICENSE.md file in the root directory of this source tree. 602 * 603 * @license MIT 604 */function ix(){return ix=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},ix.apply(this,arguments)}var Nf;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Nf||(Nf={}));const uI="popstate";function ise(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:l}=r.location;return qP("",{pathname:s,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:H1(i)}return sse(t,n,null,e)}function Hi(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function O4(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ase(){return Math.random().toString(36).substr(2,8)}function dI(e,t){return{usr:e.state,key:e.key,idx:t}}function qP(e,t,n,r){return n===void 0&&(n=null),ix({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Jg(t):t,{state:n,key:t&&t.key||r||ase()})}function H1(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 Jg(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 sse(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,l=Nf.Pop,c=null,u=d();u==null&&(u=0,o.replaceState(ix({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function f(){l=Nf.Pop;let g=d(),y=g==null?null:g-u;u=g,c&&c({action:l,location:v.location,delta:y})}function p(g,y){l=Nf.Push;let w=qP(v.location,g,y);u=d()+1;let j=dI(w,u),_=v.createHref(w);try{o.pushState(j,"",_)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;i.location.assign(_)}s&&c&&c({action:l,location:v.location,delta:1})}function h(g,y){l=Nf.Replace;let w=qP(v.location,g,y);u=d();let j=dI(w,u),_=v.createHref(w);o.replaceState(j,"",_),s&&c&&c({action:l,location:v.location,delta:0})}function x(g){let y=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof g=="string"?g:H1(g);return w=w.replace(/ $/,"%20"),Hi(y,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,y)}let v={get action(){return l},get location(){return e(i,o)},listen(g){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(uI,f),c=g,()=>{i.removeEventListener(uI,f),c=null}},createHref(g){return t(i,g)},createURL:x,encodeLocation(g){let y=x(g);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(g){return o.go(g)}};return v}var fI;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fI||(fI={}));function ose(e,t,n){return n===void 0&&(n="/"),lse(e,t,n)}function lse(e,t,n,r){let i=typeof t=="string"?Jg(t):t,s=R4(i.pathname||"/",n);if(s==null)return null;let o=xU(e);cse(o);let l=null;for(let c=0;l==null&&c<o.length;++c){let u=wse(s);l=yse(o[c],u)}return l}function xU(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,l)=>{let c={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};c.relativePath.startsWith("/")&&(Hi(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not val
604id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Cf([r,c.relativePath]),d=n.concat(c);s.children&&s.children.length>0&&(Hi(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),xU(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:gse(u,s.index),routesMeta:d})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,o);else for(let c of bU(s.path))i(s,o,c)}),t}function bU(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=bU(r.join("/")),l=[];return l.push(...o.map(c=>c===""?s:[s,c].join("/"))),i&&l.push(...o),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function cse(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:vse(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const use=/^:[\w-]+$/,dse=3,fse=2,hse=1,pse=10,mse=-2,hI=e=>e==="*";function gse(e,t){let n=e.split("/"),r=n.length;return n.some(hI)&&(r+=mse),t&&(r+=fse),n.filter(i=>!hI(i)).reduce((i,s)=>i+(use.test(s)?dse:s===""?hse:pse),r)}function vse(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 yse(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",f=xse({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),p=c.route;if(!f)return null;
vendor: 5,158 bytes, lines 604-613
604Object.assign(i,f.params),o.push({params:i,pathname:Cf([s,f.pathname]),pathnameBase:Ase(Cf([s,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(s=Cf([s,f.pathnameBase]))}return o}function xse(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=bse(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:p,isOptional:h}=d;if(p==="*"){let v=l[f]||"";o=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const x=l[f];return h&&!x?u[p]=void 0:u[p]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function bse(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),O4(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,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function wse(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return O4(!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 R4(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 jse=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_se=e=>jse.test(e);function Nse(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Jg(e):e,s;if(n)if(_se(n))s=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),O4(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?s=pI(n.substring(1),"/"):s=pI(n,t)}else s=t;return{pathname:s,search:kse(r),hash:Pse(i)}}function pI(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function eN(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Sse(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wU(e,t){let n=Sse(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function jU(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Jg(e):(i=ix({},e),Hi(!i.pathname||!i.pathname.includes("?"),eN("?","pathname","search",i)),Hi(!i.pathname||!i.pathname.includes("#"),eN("#","pathname","hash",i)),Hi(!i.search||!i.search.includes("#"),eN("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,l;if(o==null)l=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}l=f>=0?t[f]:"/"}let c=Nse(i,l),u=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Cf=e=>e.join("/").replace(/\/\/+/g,"/"),Ase=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kse=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Pse=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Cse(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const _U=["post","put","patch","delete"];new Set(_U);const Ese=["get",..._U];new Set(Ese);/** 605 * React Router v6.30.3 606 * 607 * Copyright (c) Remix Software Inc. 608 * 609 * This source code is licensed under the MIT license found in the 610 * LICENSE.md file in the root directory of this source tree. 611 * 612 * @license MIT 613 */function ax(){return ax=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},ax.apply(this,arguments)}const I4=O.createContext(null),Tse=O.createContext(null),Pp=O.createContext(null),P2=O.createContext(null),gd=O.createContext({outlet:null,matches:[],isDataRoute:!1}),NU=O.createContext(null);function Ose(e,t){let{relative:n}=t===void 0?{}:t;u0()||Hi(!1);let{basename:r,navigator:i}=O.useContext(Pp),{hash:s,pathname:o,search:l}=AU(e,{relative:n}),c=o;return r!=="/"&&(c=o==="/"?r:Cf([r,o])),i.createHref({pathname:c,search:l,hash:s})}function u0(){return O.useContext(P2)!=null}function vd(){return u0()||Hi(!1),O.useContext(P2).location}function SU(e){O.useContext(Pp).static||O.useLayoutEffect(e)}function Uf(){let{isDataRoute:e}=O.useContext(gd);return e?Hse():Rse()}function Rse(){u0()||Hi(!1);
vendor: 4,784 bytes, line 613
613let e=O.useContext(I4),{basename:t,future:n,navigator:r}=O.useContext(Pp),{matches:i}=O.useContext(gd),{pathname:s}=vd(),o=JSON.stringify(wU(i,n.v7_relativeSplatPath)),l=O.useRef(!1);return SU(()=>{l.current=!0}),O.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=jU(u,JSON.parse(o),s,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Cf([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,s,e])}const Ise=O.createContext(null);function Lse(e){let t=O.useContext(gd).outlet;return t&&O.createElement(Ise.Provider,{value:e},t)}function C2(){let{matches:e}=O.useContext(gd),t=e[e.length-1];return t?t.params:{}}function AU(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=O.useContext(Pp),{matches:i}=O.useContext(gd),{pathname:s}=vd(),o=JSON.stringify(wU(i,r.v7_relativeSplatPath));return O.useMemo(()=>jU(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function Mse(e,t){return Dse(e,t)}function Dse(e,t,n,r){u0()||Hi(!1);let{navigator:i}=O.useContext(Pp),{matches:s}=O.useContext(gd),o=s[s.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let u=vd(),d;if(t){var f;let g=typeof t=="string"?Jg(t):t;c==="/"||(f=g.pathname)!=null&&f.startsWith(c)||Hi(!1),d=g}else d=u;let p=d.pathname||"/",h=p;if(c!=="/"){let g=c.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(g.length).join("/")}let x=ose(e,{pathname:h}),v=$se(x&&x.map(g=>Object.assign({},g,{params:Object.assign({},l,g.params),pathname:Cf([c,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?c:Cf([c,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),s,n,r);return t&&v?O.createElement(P2.Provider,{value:{location:ax({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Nf.Pop}},v):v}function Fse(){let e=Wse(),t=Cse(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 O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:i},n):null,null)}const Bse=O.createElement(Fse,null);class qse extends O.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?O.createElement(gd.Provider,{value:this.props.routeContext},O.createElement(NU.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zse(e){let{routeContext:t,match:n,children:r}=e,i=O.useContext(I4);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(gd.Provider,{value:t},r)}function $se(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,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=o.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||Hi(!1),o=o.slice(0,Math.min(o.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:p,errors:h}=n,x=f.route.loader&&p[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||x){c=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,f,p)=>{let h,x=!1,v=null,g=null;n&&(h=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||Bse,c&&(u<0&&p===0?(Kse("route-fallback"),x=!0,g=null):u===p&&(x=!0,g=f.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,p+1)),w=()=>{let j;return h?j=v:x?j=g:f.route.Component?j=O.createElement(f.route.Component,null):f.route.element?j=f.route.element:j=d,O.createElement(zse,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:j})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?O.createElement(qse,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:w(),routeC
613ontext:{outlet:null,matches:y,isDataRoute:!0}}):w()},null)}var kU=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(kU||{}),PU=(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})(PU||{});function Use(e){let t=O.useContext(I4);return t||Hi(!1),t}function Gse(e){let t=O.useContext(Tse);return t||Hi(!1),t}function Vse(e){let t=O.useContext(gd);return t||Hi(!1),t}function CU(e){let t=Vse(),n=t.matches[t.matches.length-1];return n.route.id||Hi(!1),n.route.id}function Wse(){var e;let t=O.useContext(NU),n=Gse(),r=CU();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Hse(){let{router:e}=Use(kU.UseNavigateStable),t=CU(PU.UseNavigateStable),n=O.useRef(!1);return SU(()=>{n.current=!0}),O.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ax({fromRouteId:t},s)))},[e,t])}const mI={};function Kse(e,t,n){mI[e]||(mI[e]=!0)}function Yse(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Xse(e){return Lse(e.context)}function yn(e){Hi(!1)}function Qse(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Nf.Pop,navigator:s,static:o=!1,future:l}=e;u0()&&Hi(!1);let c=t.replace(/^\/*/,"/"),u=O.useMemo(()=>({basename:c,navigator:s,static:o,future:ax({v7_relativeSplatPath:!1},l)}),[c,l,s,o]);typeof r=="string"&&(r=Jg(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:x="default"}=r,v=O.useMemo(()=>{let g=R4(d,c);return g==null?null:{location:{pathname:g,search:f,hash:p,state:h,key:x},navigationType:i}},[c,d,f,p,h,x,i]);return v==null?null:O.createElement(Pp.Provider,{value:u},O.createElement(P2.Provider,{children:n,value:v}))}function Zse(e){let{children:t,location:n}=e;return Mse(zP(t),n)}new Promise(()=>{});function zP(e,t){t===void 0&&(t=[]);let n=[];return O.Children.forEach(e,(r,i)=>{if(!O.isValidElement(r))return;let s=[...t,i];if(r.type===O.Fragment){n.push.apply(n,zP(r.props.children,s));return}r.type!==yn&&Hi(!1),!r.props.index||!r.props.children||Hi(!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=zP(r.props.children,s)),n.push(o)}),n}/** 614 * React Router DOM v6.30.3 615 * 616 * Copyright (c) Remix Software Inc. 617 * 618 * This source code is licensed under the MIT license found in the 619 * LICENSE.md file in the root directory of this source tree. 620 * 621 * @license MIT 622 */function $P(){return $P=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},$P.apply(this,arguments)}function Jse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function eoe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function toe(e,t){return e.button===0&&(!t||t==="_self")&&!eoe(e)}const noe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],roe="6";try{window.__reactRouterVersion=roe}catch{}const ioe="startTransition",gI=w2[ioe];function aoe(e){let{basename:t,children:n,future:r,window:i}=e,s=O.useRef();
622s.current==null&&(s.current=ise({window:i,v5Compat:!0}));let o=s.current,[l,c]=O.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=O.useCallback(f=>{u&&gI?gI(()=>c(f)):c(f)},[c,u]);return O.useLayoutEffect(()=>o.listen(d),[o,d]),O.useEffect(()=>Yse(r),[r]),O.createElement(Qse,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const soe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ooe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dt=O.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:l,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,p=Jse(t,noe),{basename:h}=O.useContext(Pp),x,v=!1;if(typeof u=="string"&&ooe.test(u)&&(x=u,soe))try{let j=new URL(window.location.href),_=u.startsWith("//")?new URL(j.protocol+u):new URL(u),N=R4(_.pathname,h);_.origin===j.origin&&N!=null?u=N+_.search+_.hash:v=!0}catch{}let g=Ose(u,{relative:i}),y=loe(u,{replace:o,state:l,target:c,preventScrollReset:d,relative:i,viewTransition:f});function w(j){r&&r(j),j.defaultPrevented||y(j)}return O.createElement("a",$P({},p,{href:x||g,onClick:v||s?r:w,ref:n,target:c}))});var vI;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(vI||(vI={}));var yI;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(yI||(yI={}));function loe(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:l}=t===void 0?{}:t,c=Uf(),u=vd(),d=AU(e,{relative:o});return O.useCallback(f=>{if(toe(f,n)){f.preventDefault();let p=r!==void 0?r:H1(u)===H1(d);c(e,{replace:p,state:i,preventScrollReset:s,relative:o,viewTransition:l})}},[u,c,d,r,i,n,e,s,o,l])}function xI(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function yd(...e){return t=>{let n=!1;const r=e.map(i=>{const s=xI(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():xI(e[i],null)}}}}function Qn(...e){return O.useCallback(yd(...e),e)}var coe=Symbol.for("react.lazy"),K1=w2[" use ".trim().toString()];function uoe(e){return typeof e=="object"&&e!==null&&"then"in e}function EU(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===coe&&"_payload"in e&&uoe(e._payload)}function L4(e){const t=foe(e),n=O.forwardRef((r,i)=>{let{children:s,...o}=r;EU(s)&&typeof K1=="function"&&(s=K1(s._payload));const l=O.Children.toArray(s),c=l.find(poe);if(c){const u=c.props.children,d=l.map(f=>f===c?O.Children.count(u)>1?O.Children.only(null):O.isValidElement(u)?u.props.children:null:f);return a.jsx(t,{...o,ref:i,children:O.isValidElement(u)?O.cloneElement(u,void 0,d):null})}return a.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}var doe=L4("Slot");function foe(e){const t=O.forwardRef((n,r)=>{let{children:i,...s}=n;if(EU(i)&&typeof K1=="function"&&(i=K1(i._payload)),O.isValidElement(i)){const o=goe(i),l=moe(s,i.props);return i.type!==O.Fragment&&(l.ref=r?yd(r,o):o),O.cloneElement(i,l)}return O.Children.count(i)>1?O.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hoe=Symbol("radix.slottable");function poe(e){return O.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hoe}function moe(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]=(...l)=>{const c=s(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function goe(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)}const voe=a0("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),xe=O.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},s)=>{const o=r?doe:"button";return a.jsx(o,{className:ln(voe({variant:t,size:n,className:e})),ref:s,...i})});xe.displayName="Button";function yoe(){return a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background px-4",children:a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"w-16 h-16 rounded-2xl bg-primary/10 flex items-center justify-center mx-auto mb-6",children:a.jsx(ls,{className:"w-8 h-8 text-primary"})}),a.jsx("h1",{className:"font-heading text-4xl font-bold mb-2",children:"404"}),a.jsx("p",{className:"text-muted-foreground mb-6",children:"This page doesn't exist in our governance framework."}),a.jsx(xe,{asChild:!0,className:"gap-2",children:a.jsxs(Dt,{to:"/",children:[a.jsx(gl,{className:"w-4 h-4"})," Back to Home"]})})]})})}function TU(e,t){return function(){return e.apply(t,arguments)}}const{toString:xoe}=Object.prototype,{getPrototypeOf:xg}=Object,{iterator:d0,toStringTag:OU}=Symbol,Y1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sx=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Y1(n,t))return!0;n=xg(n)}return!1},boe=(e,t)=>e!=null&&sx(e,t)?e[t]:void 0,M4=(e=>t=>{const n=xoe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Jl=e=>(e=e.toLowerCase(),t=>M4(t)===e),E2=e=>t=>typeof t===e,{isArray:lp}=Array,bg=E2("undefined");function ev(e){return e!==null&&!bg(e)&&e.constructor!==null&&!bg(e.constructor)&&Zs(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const RU=Jl("ArrayBuffer");function woe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&RU(e.buffer),t}const joe=E2("string"),Zs=E2("function"),IU=E2("number"),tv=e=>e!==null&&typeof e=="object",_oe=e=>e===!0||e===!1,y1=e=>{if(!tv(e))return!1;const t=xg(e);return(t===null||t===Object.prototype||xg(t)===null)&&!sx(e,OU)&&!sx(e,d0)},Noe=e=>{if(!tv(e)||ev(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Soe=Jl("Date"),Aoe=Jl("File"),koe=e=>!!(e&&typeof e.uri<"u"),Poe=e=>e&&typeof e.getParts<"u",Coe=Jl("Blob"),Eoe=Jl("FileList"),Toe=e=>tv(e)&&Zs(e.pipe);function Ooe(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const bI=Ooe(),wI=typeof bI.FormData<"u"?bI.FormData:void 0,Roe=e=>{if(!e)return!1;if(wI&&e instanceof wI)return!0;const t=xg(e);
vendor: 9,221 bytes, lines 622-624
622if(!t||t===Object.prototype||!Zs(e.append))return!1;const n=M4(e);return n==="formdata"||n==="object"&&Zs(e.toString)&&e.toString()==="[object FormData]"},Ioe=Jl("URLSearchParams"),[Loe,Moe,Doe,Foe]=["ReadableStream","Request","Response","Headers"].map(Jl),Boe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function f0(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),lp(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(ev(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let l;for(r=0;r<o;r++)l=s[r],t.call(null,e[l],l,e)}}function LU(e,t){if(ev(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Bh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,MU=e=>!bg(e)&&e!==Bh;function UP(...e){const{caseless:t,skipUndefined:n}=MU(this)&&this||{},r={},i=(s,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const l=t&&typeof o=="string"&&LU(r,o)||o,c=Y1(r,l)?r[l]:void 0;y1(c)&&y1(s)?r[l]=UP(c,s):y1(s)?r[l]=UP({},s):lp(s)?r[l]=s.slice():(!n||!bg(s))&&(r[l]=s)};for(let s=0,o=e.length;s<o;s++){const l=e[s];if(!l||ev(l)||(f0(l,i),typeof l!="object"||lp(l)))continue;const c=Object.getOwnPropertySymbols(l);for(let u=0;u<c.length;u++){const d=c[u];Qoe.call(l,d)&&i(l[d],d)}}return r}const qoe=(e,t,n,{allOwnKeys:r}={})=>(f0(t,(i,s)=>{n&&Zs(i)?Object.defineProperty(e,s,{__proto__:null,value:TU(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),zoe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$oe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Uoe=(e,t,n,r)=>{let i,s,o;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&xg(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Goe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Voe=e=>{if(!e)return null;if(lp(e))return e;let t=e.length;if(!IU(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Woe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xg(Uint8Array)),Hoe=(e,t)=>{const r=(e&&e[d0]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},Koe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Yoe=Jl("HTMLFormElement"),Xoe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),{propertyIsEnumerable:Qoe}=Object.prototype,Zoe=Jl("RegExp"),DU=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};f0(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},Joe=e=>{DU(e,(t,n)=>{if(Zs(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Zs(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ele=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return lp(e)?r(e):r(String(e).split(t)),n},tle=()=>{},nle=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function rle(e){return!!(e&&Zs(e.append)&&e[OU]==="FormData"&&e[d0])}const ile=e=>{const t=new WeakSet,n=r=>{if(tv(r)){if(t.has(r))return;if(ev(r))return r;if(!("toJSON"in r)){t.add(r);const i=lp(r)?[]:{};return f0(r,(s,o)=>{const l=n(s);!bg(l)&&(i[o]=l)}),t.delete(r),i}}return r};return n(e)},ale=Jl("AsyncFunction"),sle=e=>e&&(tv(e)||Zs(e))&&Zs(e.then)&&Zs(e.catch),FU=((e,t)=>e?setImmediate:t?((n,r)=>(Bh.addEventListener("message",({source:i,data:s})=>{i===Bh&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Bh.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Zs(Bh.postMessage)),ole=typeof queueMicrotask<"u"?queueMicrotask.bind(Bh):typeof process<"u"&&process.nextTick||FU,BU=e=>e!=null&&Zs(e[d0]),lle=e=>e!=null&&sx(e,d0)&&BU(e),Ie={isArray:lp,isArrayBuffer:RU,isBuffer:ev,isFormData:Roe,isArrayBufferView:woe,isString:joe,isNumber:IU,isBoolean:_oe,isObject:tv,isPlainObject:y1,isEmptyObject:Noe,isReadableStream:Loe,isRequest:Moe,isResponse:Doe,isHeaders:Foe,isUndefined:bg,isDate:Soe,isFile:Aoe,isReactNativeBlob:koe,isReactNative:Poe,isBlob:Coe,isRegExp:Zoe,isFunction:Zs,isStream:Toe,isURLSearchParams:Ioe,isTypedArray:Woe,isFileList:Eoe,forEach:f0,merge:UP,extend:qoe,trim:Boe,stripBOM:zoe,inherits:$oe,toFlatObject:Uoe,kindOf:M4,kindOfTest:Jl,endsWith:Goe,toArray:Voe,forEachEntry:Hoe,matchAll:Koe,isHTMLForm:Yoe,hasOwnProperty:Y1,hasOwnProp:Y1,hasOwnInPrototypeChain:sx,getSafeProp:boe,reduceDescriptors:DU,freezeMethods:Joe,toObjectSet:ele,toCamelCase:Xoe,noop:tle,toFiniteNumber:nle,findKey:LU,global:Bh,isContextDefined:MU,isSpecCompliantForm:rle,toJSONObject:ile,isAsyncFn:ale,isThenable:sle,setImmediate:FU,asap:ole,isIterable:BU,isSafeIterable:lle},cle=Ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ule=e=>{const t={};let n,r,i;return e&&e.split(` 623`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&cle[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function dle(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const fle=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),hle=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function D4(e,t){return Ie.isArray(e)?e.map(n=>D4(n,t)):dle(String(e).replace(t,""))}const ple=e=>D4(e,fle),mle=e=>D4(e,hle);function qU(e){const t=Object.create(null);return Ie.forEach(e.toJSON(),(n,r)=>{t[r]=mle(n)}),t}const jI=Symbol("internals");function ey(e){return e&&String(e).trim().toLowerCase()}function x1(e){return e===!1||e==null?e:Ie.isArray(e)?e.map(x1):ple(String(e))}function gle(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const vle=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tN(e,t,n,r,i){if(Ie.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Ie.isString(t)){if(Ie.isString(r))return t.indexOf(r)!==-1;if(Ie.isRegExp(r))return r.test(t)}}function yle(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function xle(e,t){const n=Ie.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}let is=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(l,c,u){const d=ey(c);if(!d)return;const f=Ie.findKey(i,d);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||c]=x1(l))}const o=(l,c)=>Ie.forEach(l,(u,d)=>s(u,d,c));if(Ie.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(Ie.isString(t)&&(t=t.trim())&&!vle(t))o(ule(t),n);else if(Ie.isObject(t)&&Ie.isSafeIterable(t)){let l=Object.create(null),c,u;for(const d of t){if(!Ie.isArray(d))throw new TypeError("Object iterator must return a key-value pair");u=d[0],Ie.hasOwnProp(l,u)?(c=l[u],l[u]=Ie.isArray(c)?[...c,d[1]]:[c,d[1]]):l[u]=d[1]}o(l,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=ey(t),t){const r=Ie.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return gle(i);if(Ie.isFunction(n))return n.call(this,i,r);if(Ie.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ey(t),t){const r=Ie.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||tN(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=ey(o),o){const l=Ie.findKey(r,o);l&&(!n||tN(r,r[l],l,n))&&(delete r[l],i=!0)}}return Ie.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||tN(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return Ie.forEach(this,(i,s)=>{const o=Ie.findKey(r,s);if(o){n[o]=x1(i),delete n[s];return}const l=t?yle(s):String(s).trim();l!==s&&delete n[s],n[l]=x1(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ie.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Ie.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 624`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);
vendor: 5,130 bytes, line 624
624return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[jI]=this[jI]={accessors:{}}).accessors,i=this.prototype;function s(o){const l=ey(o);r[l]||(xle(i,o),r[l]=!0)}return Ie.isArray(t)?t.forEach(s):s(t),this}};is.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ie.reduceDescriptors(is.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ie.freezeMethods(is);const ble="[REDACTED ****]";function wle(e){if(Ie.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Ie.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function jle(e,t){const n=new Set(t.map(s=>String(s).toLowerCase())),r=[],i=s=>{if(s===null||typeof s!="object"||Ie.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof is&&(s=s.toJSON()),r.push(s);let o;if(Ie.isArray(s))o=[],s.forEach((l,c)=>{const u=i(l);Ie.isUndefined(u)||(o[c]=u)});else{if(!Ie.isPlainObject(s)&&wle(s))return r.pop(),s;o=Object.create(null);for(const[l,c]of Object.entries(s)){const u=n.has(l.toLowerCase())?ble:i(c);Ie.isUndefined(u)||(o[l]=u)}}return r.pop(),o};return i(e)}let At=class zU extends Error{static from(t,n,r,i,s,o){const l=new zU(t.message,n||t.code,r,i,s);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),o&&Object.assign(l,o),l}constructor(t,n,r,i,s){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,n=t&&Ie.hasOwnProp(t,"redact")?t.redact:void 0,r=Ie.isArray(n)&&n.length>0?jle(t,n):Ie.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};At.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";At.ERR_BAD_OPTION="ERR_BAD_OPTION";At.ECONNABORTED="ECONNABORTED";At.ETIMEDOUT="ETIMEDOUT";At.ECONNREFUSED="ECONNREFUSED";At.ERR_NETWORK="ERR_NETWORK";At.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";At.ERR_DEPRECATED="ERR_DEPRECATED";At.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";At.ERR_BAD_REQUEST="ERR_BAD_REQUEST";At.ERR_CANCELED="ERR_CANCELED";At.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";At.ERR_INVALID_URL="ERR_INVALID_URL";At.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const _le=null,$U=100;function GP(e){return Ie.isPlainObject(e)||Ie.isArray(e)}function UU(e){return Ie.endsWith(e,"[]")?e.slice(0,-2):e}function nN(e,t,n){return e?e.concat(t).map(function(i,s){return i=UU(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function Nle(e){return Ie.isArray(e)&&!e.some(GP)}const Sle=Ie.toFlatObject(Ie,{},null,function(t){return/^is[A-Z]/.test(t)});function T2(e,t,n){if(!Ie.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,j){return!Ie.isUndefined(j[w])});const r=n.metaTokens,i=n.visitor||x,s=n.dots,o=n.indexes,l=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?$U:n.maxDepth,u=l&&Ie.isSpecCompliantForm(t),d=[];if(!Ie.isFunction(i))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(Ie.isDate(y))return y.toISOString();if(Ie.isBoolean(y))return y.toString();if(!u&&Ie.isBlob(y))throw new At("Blob is not supported. Use a Buffer instead.");if(Ie.isArrayBuffer(y)||Ie.isTypedArray(y)){if(u&&typeof l=="function")return new l([y]);if(typeof Buffer<"u")return Buffer.from(y);throw new At("Blob is not supported. Use a Buffer instead.",At.ERR_NOT_SUPPORT)}return y}function p(y){if(y>c)throw new At("Object is too deeply nested ("+y+" levels). Max depth: "+c,At.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(y,w){if(c===1/0)return JSON.stringify(y);const j=[];return JSON.stringify(y,function(N,A){if(!Ie.isObject(A))return A;for(;j.length&&j[j.length-1]!==this;)j.pop();return j.push(A),p(w+j.length-1),A})}function x(y,w,j){let _=y;if(Ie.isReactNative(t)&&Ie.isReactNativeBlob(y))return t.append(nN(j,w,s),f(y)),!1;if(y&&!j&&typeof y=="object"){if(Ie.endsWith(w,"{}"))w=r?w:w.slice(0,-2),y=h(y,1);else if(Ie.isArray(y)&&Nle(y)||(Ie.isFileList(y)||Ie.endsWith(w,"[]"))&&(_=Ie.toArray(y)))return w=UU(w),_.forEach(function(A,E){!(Ie.isUndefined(A)||A===null)&&t.append(o===!0?nN([w],E,s):o===null?w:w+"[]",f(A))}),!1}return GP(y)?!0:(t.append(nN(j,w,s),f(y)),!1)}const v=Object.assign(Sle,{defaultVisitor:x,convertValue:f,isVisitable:GP});function g(y,w,j=0){if(!Ie.isUndefined(y)){if(p(j),d.indexOf(y)!==-1)throw new Error("Circular reference detected in "+w.join("."));d.push(y),Ie.forEach(y,function(N,A){(!(Ie.isUndefined(N)||N===null)&&i.call(t,N,Ie.isString(A)?A.trim():A,w,v))===!0&&g(N,w?w.concat(A):[A],j+1)}),d.pop()}}if(!Ie.isObject(e))throw new TypeError("data must be an object");return g(e),t}
vendor: 4,004 bytes, line 624
624function _I(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function F4(e,t){this._pairs=[],e&&T2(e,this,t)}const GU=F4.prototype;GU.append=function(t,n){this._pairs.push([t,n])};GU.toString=function(t){const n=t?r=>t.call(this,r,_I):_I;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Ale(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function VU(e,t,n){if(!t)return e;e=e||"";const r=Ie.isFunction(n)?{serialize:n}:n,i=Ie.getSafeProp(r,"encode")||Ale,s=Ie.getSafeProp(r,"serialize");let o;if(s?o=s(t,r):o=Ie.isURLSearchParams(t)?t.toString():new F4(t,r).toString(i),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class NI{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ie.forEach(this.handlers,function(r){r!==null&&t(r)})}}const B4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},kle=typeof URLSearchParams<"u"?URLSearchParams:F4,Ple=typeof FormData<"u"?FormData:null,Cle=typeof Blob<"u"?Blob:null,Ele={isBrowser:!0,classes:{URLSearchParams:kle,FormData:Ple,Blob:Cle},protocols:["http","https","file","blob","url","data"]},q4=typeof window<"u"&&typeof document<"u",VP=typeof navigator=="object"&&navigator||void 0,Tle=q4&&(!VP||["ReactNative","NativeScript","NS"].indexOf(VP.product)<0),Ole=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Rle=q4&&window.location.href||"http://localhost",Ile=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:q4,hasStandardBrowserEnv:Tle,hasStandardBrowserWebWorkerEnv:Ole,navigator:VP,origin:Rle},Symbol.toStringTag,{value:"Module"})),La={...Ile,...Ele};function Lle(e,t){return T2(e,new La.classes.URLSearchParams,{visitor:function(n,r,i,s){return La.isNode&&Ie.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}const SI=$U;function WU(e){if(e>SI)throw new At("FormData field is too deeply nested ("+e+" levels). Max depth: "+SI,At.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Mle(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)WU(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function Dle(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function HU(e){function t(n,r,i,s){WU(s);let o=n[s++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),c=s>=n.length;return o=!o&&Ie.isArray(i)?i.length:o,c?(Ie.hasOwnProp(i,o)?i[o]=Ie.isArray(i[o])?i[o].concat(r):[i[o],r]:i[o]=r,!l):((!Ie.hasOwnProp(i,o)||!Ie.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&Ie.isArray(i[o])&&(i[o]=Dle(i[o])),!l)}if(Ie.isFormData(e)&&Ie.isFunction(e.entries)){const n={};return Ie.forEachEntry(e,(r,i)=>{t(Mle(r),i,n,0)}),n}return null}const vm=(e,t)=>e!=null&&Ie.hasOwnProp(e,t)?e[t]:void 0;function Fle(e,t,n){if(Ie.isString(e))try{return(t||JSON.parse)(e),Ie.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const h0={transitional:B4,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=Ie.isObject(t);if(s&&Ie.isHTMLForm(t)&&(t=new FormData(t)),Ie.isFormData(t))return i?JSON.stringify(HU(t)):t;if(Ie.isArrayBuffer(t)||Ie.isBuffer(t)||Ie.isStream(t)||Ie.isFile(t)||Ie.isBlob(t)||Ie.isReadableStream(t))return t;if(Ie.isArrayBufferView(t))return t.buffer;if(Ie.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;
vendor: 22,559 bytes, lines 624-630
624if(s){const c=vm(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Lle(t,c).toString();if((l=Ie.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=vm(this,"env"),d=u&&u.FormData;return T2(l?{"files[]":t}:t,d&&new d,c)}}return s||i?(n.setContentType("application/json",!1),Fle(t)):t}],transformResponse:[function(t){const n=vm(this,"transitional")||h0.transitional,r=n&&n.forcedJSONParsing,i=vm(this,"responseType"),s=i==="json";if(Ie.isResponse(t)||Ie.isReadableStream(t))return t;if(t&&Ie.isString(t)&&(r&&!i||s)){const l=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,vm(this,"parseReviver"))}catch(c){if(l)throw c.name==="SyntaxError"?At.from(c,At.ERR_BAD_RESPONSE,this,null,vm(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:La.classes.FormData,Blob:La.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ie.forEach(["delete","get","head","post","put","patch","query"],e=>{h0.headers[e]={}});function rN(e,t){const n=this||h0,r=t||n,i=is.from(r.headers);let s=r.data;return Ie.forEach(e,function(l){s=l.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function KU(e){return!!(e&&e.__CANCEL__)}let p0=class extends At{constructor(t,n,r){super(t??"canceled",At.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function YU(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new At("Request failed with status code "+n.status,n.status>=400&&n.status<500?At.ERR_BAD_REQUEST:At.ERR_BAD_RESPONSE,n.config,n.request,n))}function Ble(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function qle(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=r[s];o||(o=u),n[i]=c,r[i]=u;let f=s,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const h=d&&u-d;return h?Math.round(p*1e3/h):void 0}}function zle(e,t){let n=0,r=1e3/t,i,s;const o=(u,d=Date.now())=>{n=d,i=null,s&&(clearTimeout(s),s=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?o(u,d):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},r-f)))},()=>i&&o(i)]}const X1=(e,t,n=3)=>{let r=0;const i=qle(50,250);return zle(s=>{if(!s||typeof s.loaded!="number")return;const o=s.loaded,l=s.lengthComputable?s.total:void 0,c=l!=null?Math.min(o,l):o,u=Math.max(0,c-r),d=i(u);r=Math.max(r,c);const f={loaded:c,total:l,progress:l?c/l:void 0,bytes:u,rate:d||void 0,estimated:d&&l?(l-c)/d:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},AI=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},kI=e=>(...t)=>Ie.asap(()=>e(...t)),$le=La.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,La.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(La.origin),La.navigator&&/(msie|trident)/i.test(La.navigator.userAgent)):()=>!0,Ule=La.hasStandardBrowserEnv?{write(e,t,n,r,i,s,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];Ie.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),Ie.isString(r)&&l.push(`path=${r}`),Ie.isString(i)&&l.push(`domain=${i}`),s===!0&&l.push("secure"),Ie.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Gle(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vle(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const Wle=/^https?:(?!\/\/)/i,Hle=/[\t\n\r]/g;function Kle(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Yle(e){return Kle(e).replace(Hle,"")}function PI(e,t){if(typeof e=="string"&&Wle.test(Yle(e)))throw new At('Invalid URL: missing "//" after protocol',At.ERR_INVALID_URL,t)}function XU(e,t,n,r){PI(t,r);let i=!Gle(t);return e&&(i||n===!1)?(PI(e,r),Vle(e,t)):t}const CI=e=>e instanceof is?{...e}:e;function cp(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(d,f,p,h){return Ie.isPlainObject(d)&&Ie.isPlainObject(f)?Ie.merge.call({caseless:h},d,f):Ie.isPlainObject(f)?Ie.merge({},f):Ie.isArray(f)?f.slice():f}function i(d,f,p,h){if(Ie.isUndefined(f)){if(!Ie.isUndefined(d))return r(void 0,d,p,h)}else return r(d,f,p,h)}function s(d,f){if(!Ie.isUndefined(f))return r(void 0,f)}function o(d,f){if(Ie.isUndefined(f)){if(!Ie.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function l(d){const f=Ie.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Ie.isUndefined(f))if(Ie.isPlainObject(f)){if(Ie.hasOwnProp(f,d))return f[d]}else return;const p=Ie.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Ie.isPlainObject(p)&&Ie.hasOwnProp(p,d))return p[d]}function c(d,f,p){if(Ie.hasOwnProp(t,p))return r(d,f);if(Ie.hasOwnProp(e,p))return r(void 0,d)}const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(d,f,p)=>i(CI(d),CI(f),p,!0)};return Ie.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const p=Ie.hasOwnProp(u,f)?u[f]:i,h=Ie.hasOwnProp(e,f)?e[f]:void 0,x=Ie.hasOwnProp(t,f)?t[f]:void 0,v=p(h,x,f);Ie.isUndefined(v)&&p!==c||(n[f]=v)}),Ie.hasOwnProp(t,"validateStatus")&&Ie.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(Ie.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const Xle=["content-type","content-length"];function Qle(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,i])=>{Xle.includes(r.toLowerCase())&&e.set(r,i)})}const Zle=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function QU(e){const t=cp({},e),n=p=>Ie.hasOwnProp(t,p)?t[p]:void 0,r=n("data");let i=n("withXSRFToken");const s=n("xsrfHeaderName"),o=n("xsrfCookieName");let l=n("headers");const c=n("auth"),u=n("baseURL"),d=n("allowAbsoluteUrls"),f=n("url");if(t.headers=l=is.from(l),t.url=VU(XU(u,f,d,t),n("params"),n("paramsSerializer")),c){const p=Ie.getSafeProp(c,"username")||"",h=Ie.getSafeProp(c,"password")||"";try{l.set("Authorization","Basic "+btoa(p+":"+(h?Zle(h):"")))}catch(x){throw At.from(x,At.ERR_BAD_OPTION_VALUE,e)}}if(Ie.isFormData(r)&&(La.hasStandardBrowserEnv||La.hasStandardBrowserWebWorkerEnv||Ie.isReactNative(r)?l.setContentType(void 0):Ie.isFunction(r.getHeaders)&&Qle(l,r.getHeaders(),n("formDataHeaderPolicy"))),La.hasStandardBrowserEnv&&(Ie.isFunction(i)&&(i=i(t)),i===!0||i==null&&$le(t.url))){const h=s&&o&&Ule.read(o);h&&l.set(s,h)}return t}const Jle=typeof XMLHttpRequest<"u",ece=Jle&&function(e){return new Promise(function(n,r){const i=QU(e);let s=i.data;const o=is.from(i.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=i,d,f,p,h,x;function v(){h&&h(),x&&x(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function y(){if(!g)return;const j=is.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),N={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:j,config:e,request:g};YU(function(E){n(E),v()},function(E){r(E),v()},N),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.startsWith("file:"))||setTimeout(y)},g.onabort=function(){g&&(r(new At("Request aborted",At.ECONNABORTED,e,g)),v(),g=null)},g.onerror=function(_){const N=_&&_.message?_.message:"Network Error",A=new At(N,At.ERR_NETWORK,e,g);A.event=_||null,r(A),v(),g=null},g.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const N=i.transitional||B4;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new At(_,N.clarifyTimeoutError?At.ETIMEDOUT:At.ECONNABORTED,e,g)),v(),g=null},s===void 0&&o.setContentType(null),"setRequestHeader"in g&&Ie.forEach(qU(o),function(_,N){g.setRequestHeader(N,_)}),Ie.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),l&&l!=="json"&&(g.responseType=i.responseType),u&&([p,x]=X1(u,!0),g.addEventListener("progress",p)),c&&g.upload&&([f,h]=X1(c),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(d=j=>{g&&(r(!j||j.type?new p0(null,e,g):j),g.abort(),v(),g=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const w=Ble(i.url);if(w&&!La.protocols.includes(w)){r(new At("Unsupported protocol "+w+":",At.ERR_BAD_REQUEST,e)),v();return}g.send(s||null)})},tce=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(c){if(!r){r=!0,o();const u=c instanceof Error?c:this.reason;n.abort(u instanceof At?u:new p0(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new At(`timeout of ${t}ms exceeded`,At.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i,{once:!0}));const{signal:l}=n;return l.unsubscribe=()=>Ie.asap(o),l},nce=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},rce=async function*(e,t){for await(const n of ice(e))yield*nce(n,t)},ice=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},EI=(e,t,n,r)=>{const i=rce(e,t);let s=0,o,l=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){l(),c.close();return}let f=d.byteLength;if(n){let p=s+=f;n(p)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},Q1=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,ace=(e,t,n)=>t+2<n&&Q1(e.charCodeAt(t+1))&&Q1(e.charCodeAt(t+2));function sce(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let o=r.length;const l=r.length;for(let h=0;h<l;h++)if(r.charCodeAt(h)===37&&h+2<l){const x=r.charCodeAt(h+1),v=r.charCodeAt(h+2);Q1(x)&&Q1(v)&&(o-=2,h+=2)}let c=0,u=l-1;const d=h=>h>=2&&r.charCodeAt(h-2)===37&&r.charCodeAt(h-1)===51&&(r.charCodeAt(h)===68||r.charCodeAt(h)===100);u>=0&&(r.charCodeAt(u)===61?(c++,u--):d(u)&&(c++,u-=3)),c===1&&u>=0&&(r.charCodeAt(u)===61||d(u))&&c++;const p=Math.floor(o/4)*3-(c||0);return p>0?p:0}let s=0;for(let o=0,l=r.length;o<l;o++){const c=r.charCodeAt(o);if(c===37&&ace(r,o,l))s+=1,o+=2;else if(c<128)s+=1;else if(c<2048)s+=2;else if(c>=55296&&c<=56319&&o+1<l){const u=r.charCodeAt(o+1);u>=56320&&u<=57343?(s+=4,o++):s+=3}else s+=3}return s}const z4="1.18.1",TI=64*1024,{isFunction:Sb}=Ie,oce=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),OI=e=>{if(!Ie.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},RI=(e,...t)=>{try{return!!e(...t)}catch{return!1}},lce=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},cce=e=>{const t=Ie.global!==void 0&&Ie.global!==null?Ie.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Ie.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:s,Response:o}=e,l=i?Sb(i):typeof fetch=="function",c=Sb(s),u=Sb(o);if(!l)return!1;const d=l&&Sb(n),f=l&&(typeof r=="function"?(y=>w=>y.encode(w))(new r):async y=>new Uint8Array(await new s(y).arrayBuffer())),p=c&&d&&RI(()=>{let y=!1;const w=new s(La.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),j=w.headers.has("Content-Type");return w.body!=null&&w.body.cancel(),y&&!j}),h=u&&d&&RI(()=>Ie.isReadableStream(new o("").body)),x={stream:h&&(y=>y.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!x[y]&&(x[y]=(w,j)=>{let _=w&&w[y];if(_)return _.call(w);throw new At(`Response type '${y}' is not supported`,At.ERR_NOT_SUPPORT,j)})});const v=async y=>{if(y==null)return 0;if(Ie.isBlob(y))return y.size;if(Ie.isSpecCompliantForm(y))return(await new s(La.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(Ie.isArrayBufferView(y)||Ie.isArrayBuffer(y))return y.byteLength;if(Ie.isURLSearchParams(y)&&(y=y+""),Ie.isString(y))return(await f(y)).byteLength},g=async(y,w)=>{const j=Ie.toFiniteNumber(y.getContentLength());return j??v(w)};return async y=>{let{url:w,method:j,data:_,signal:N,cancelToken:A,timeout:E,onDownloadProgress:k,onUploadProgress:T,responseType:D,headers:P,withCredentials:R="same-origin",fetchOptions:q,maxContentLength:M,maxBodyLength:V}=QU(y);const H=Ie.isNumber(M)&&M>-1,Z=Ie.isNumber(V)&&V>-1,J=X=>Ie.hasOwnProp(y,X)?y[X]:void 0;let K=i||fetch;D=D?(D+"").toLowerCase():"text";let F=tce([N,A&&A.toAbortSignal()],E),$=null;const B=F&&F.unsubscribe&&(()=>{F.unsubscribe()});let z,ee=null;const te=()=>new At("Request body larger than maxBodyLength limit",At.ERR_BAD_REQUEST,y,$);try{let X;const ne=J("auth");if(ne){const Ue=Ie.getSafeProp(ne,"username")||"",ut=Ie.getSafeProp(ne,"password")||"";X={username:Ue,password:ut}}if(lce(w)){const Ue=new URL(w,La.origin);if(!X&&(Ue.username||Ue.password)){const ut=OI(Ue.username),Ee=OI(Ue.password);X={username:ut,password:Ee}}(Ue.username||Ue.password)&&(Ue.username="",Ue.password="",w=Ue.href)}if(X&&(P.delete("authorization"),P.set("Authorization","Basic "+btoa(oce((X.username||"")+":"+(X.password||""))))),H&&typeof w=="string"&&w.startsWith("data:")&&sce(w)>M)throw new At("maxContentLength size of "+M+" exceeded",At.ERR_BAD_RESPONSE,y,$);if(Z&&j!=="get"&&j!=="head"){const Ue=await v(_);if(typeof Ue=="number"&&isFinite(Ue)&&(z=Ue,Ue>V))throw te()}const le=Z&&(Ie.isReadableStream(_)||Ie.isStream(_)),re=(Ue,ut,Ee)=>EI(Ue,TI,we=>{if(Z&&we>V)throw ee=te();ut&&ut(we)},Ee);if(p&&j!=="get"&&j!=="head"&&(T||le)){if(z=z??await g(P,_),z!==0||le){let Ue=new s(w,{method:"POST",body:_,duplex:"half"}),ut;if(Ie.isFormData(_)&&(ut=Ue.headers.get("content-type"))&&P.setContentType(ut),Ue.body){const[Ee,we]=T&&AI(z,X1(kI(T)))||[];_=re(Ue.body,Ee,we)}}}else if(le&&!c&&d&&j!=="get"&&j!=="head")_=re(_);else if(le&&c&&!p&&j!=="get"&&j!=="head")throw new At("Stream request bodies are not supported by the current fetch implementation",At.ERR_NOT_SUPPORT,y,$);Ie.isString(R)||(R=R?"include":"omit");const he=c&&"credentials"in s.prototype;if(Ie.isFormData(_)){const Ue=P.getContentType();Ue&&/^multipart\/form-data/i.test(Ue)&&!/boundary=/i.test(Ue)&&P.delete("content-type")}P.set("User-Agent","axios/"+z4,!1);const be={...q,signal:F,method:j.toUpperCase(),headers:qU(P.normalize()),body:_,duplex:"half",credentials:he?R:void 0};$=c&&new s(w,be);let ve=await(c?K($,q):K(w,be));const ze=is.from(ve.headers);if(H){const Ue=Ie.toFiniteNumber(ze.getContentLength());if(Ue!=null&&Ue>M)throw new At("maxContentLength size of "+M+" exceeded",At.ERR_BAD_RESPONSE,y,$)}const He=h&&(D==="stream"||D==="response");if(h&&ve.body&&(k||H||He&&B)){const Ue={};["status","statusText","headers"].forEach(Be=>{Ue[Be]=ve[Be]});const ut=Ie.toFiniteNumber(ze.getContentLength()),[Ee,we]=k&&AI(ut,X1(kI(k),!0))||[];let Ye=0;const We=Be=>{if(H&&(Ye=Be,Ye>M))throw new At("maxContentLength size of "+M+" exceeded",At.ERR_BAD_RESPONSE,y,$);Ee&&Ee(Be)};ve=new o(EI(ve.body,TI,We,()=>{we&&we(),B&&B()}),Ue)}D=D||"text";let ue=await x[Ie.findKey(x,D)||"text"](ve,y);if(H&&!h&&!He){let Ue;if(ue!=null&&(typeof ue.byteLength=="number"?Ue=ue.byteLength:typeof ue.size=="number"?Ue=ue.size:typeof ue=="string"&&(Ue=typeof r=="function"?new r().encode(ue).byteLength:ue.length)),typeof Ue=="number"&&Ue>M)throw new At("maxContentLength size of "+M+" exceeded",At.ERR_BAD_RESPONSE,y,$)}return!He&&B&&B(),await new Promise((Ue,ut)=>{YU(Ue,ut,{data:ue,headers:is.from(ve.headers),status:ve.status,statusText:ve.statusText,config:y,request:$})})}catch(X){if(B&&B(),F&&F.aborted&&F.reason instanceof At){const ne=F.reason;throw ne.config=y,$&&(ne.request=$),X!==ne&&Object.defineProperty(ne,"cause",{__proto__:null,value:X,writable:!0,enumerable:!1,configurable:!0}),ne}if(ee)throw $&&!ee.request&&(ee.request=$),ee;if(X instanceof At)throw $&&!X.request&&(X.request=$),X;if(X&&X.name==="TypeError"&&/Load failed|fetch/i.test(X.message)){const ne=new At("Network Error",At.ERR_NETWORK,y,$,X&&X.response);throw Object.defineProperty(ne,"cause",{__proto__:null,value:X.cause||X,writable:!0,enumerable:!1,configurable:!0}),ne}throw At.from(X,X&&X.code,y,$,X&&X.response)}}},uce=new Map,ZU=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let o=s.length,l=o,c,u,d=uce;for(;l--;)c=s[l],u=d.get(c),u===void 0&&d.set(c,u=l?new Map:cce(t)),d=u;return u};ZU();const $4={http:_le,xhr:ece,fetch:{get:ZU}};Ie.forEach($4,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const II=e=>`- ${e}`,dce=e=>Ie.isFunction(e)||e===null||e===!1;function fce(e,t){e=Ie.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let o=0;o<n;o++){r=e[o];let l;if(i=r,!dce(r)&&(i=$4[(l=String(r)).toLowerCase()],i===void 0))throw new At(`Unknown adapter '${l}'`);if(i&&(Ie.isFunction(i)||(i=i.get(t))))break;s[l||"#"+o]=i}if(!i){const o=Object.entries(s).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?o.length>1?`since : 625`+o.map(II).join(` 626`):" "+II(o[0]):"as no adapter specified";throw new At("There is no suitable adapter to dispatch the request "+l,At.ERR_NOT_SUPPORT)}return i}const JU={getAdapter:fce,adapters:$4};function iN(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new p0(null,e)}function LI(e){return iN(e),e.headers=is.from(e.headers),e.data=rN.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),JU.getAdapter(e.adapter||h0.adapter,e)(e).then(function(r){iN(e),e.response=r;try{r.data=rN.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=is.from(r.headers),r},function(r){if(!KU(r)&&(iN(e),r&&r.response)){e.response=r.response;try{r.response.data=rN.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=is.from(r.response.headers)}return Promise.reject(r)})}const O2={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{O2[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const MI={};O2.transitional=function(t,n,r){function i(s,o){return"[Axios v"+z4+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,l)=>{if(t===!1)throw new At(i(o," has been removed"+(n?" in "+n:"")),At.ERR_DEPRECATED);return n&&!MI[o]&&(MI[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,l):!0}};O2.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function hce(e,t,n){if(typeof e!="object"||e===null)throw new At("options must be an object",At.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(o){const l=e[s],c=l===void 0||o(l,s,e);if(c!==!0)throw new At("option "+s+" must be "+c,At.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new At("Unknown option "+s,At.ERR_BAD_OPTION)}}const b1={assertOptions:hce,validators:O2},Ua=b1.validators;let tp=class{constructor(t){this.defaults=t||{},this.interceptors={request:new NI,response:new NI}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=(()=>{if(!i.stack)return"";const o=i.stack.indexOf(` 627`);return o===-1?"":i.stack.slice(o+1)})();try{if(!r.stack)r.stack=s;else if(s){const o=s.indexOf(` 628`),l=o===-1?-1:s.indexOf(` 629`,o+1),c=l===-1?"":s.slice(l+1);String(r.stack).endsWith(c)||(r.stack+=` 630`+s)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=cp(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&b1.assertOptions(r,{silentJSONParsing:Ua.transitional(Ua.boolean),forcedJSONParsing:Ua.transitional(Ua.boolean),clarifyTimeoutError:Ua.transitional(Ua.boolean),legacyInterceptorReqResOrdering:Ua.transitional(Ua.boolean),advertiseZstdAcceptEncoding:Ua.transitional(Ua.boolean),validateStatusUndefinedResolves:Ua.transitional(Ua.boolean)},!1),i!=null&&(Ie.isFunction(i)?n.paramsSerializer={serialize:i}:b1.assertOptions(i,{encode:Ua.function,serialize:Ua.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),b1.assertOptions(n,{baseUrl:Ua.spelling("baseURL"),withXsrfToken:Ua.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&Ie.merge(s.common,s[n.method]);s&&Ie.forEach(["delete","get","head","post","put","patch","query","common"],x=>{delete s[x]}),n.headers=is.concat(o,s);const l=[];let c=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;c=c&&v.synchronous;const g=n.transitional||B4;g&&g.legacyInterceptorReqResOrdering?l.unshift(v.fulfilled,v.rejected):l.push(v.fulfilled,v.rejected)});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let d,f=0,p;if(!c){const x=[LI.bind(this),void 0];
vendor: 2,159 bytes, line 630
630for(x.unshift(...l),x.push(...u),p=x.length,d=Promise.resolve(n);f<p;)d=d.then(x[f++],x[f++]);return d}p=l.length;let h=n;for(;f<p;){const x=l[f++],v=l[f++];try{h=x(h)}catch(g){v.call(this,g);break}}try{d=LI.call(this,h)}catch(x){return Promise.reject(x)}for(f=0,p=u.length;f<p;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=cp(this.defaults,t);const n=XU(t.baseURL,t.url,t.allowAbsoluteUrls,t);return VU(n,t.params,t.paramsSerializer)}};Ie.forEach(["delete","get","head","options"],function(t){tp.prototype[t]=function(n,r){return this.request(cp(r||{},{method:t,url:n,data:r&&Ie.hasOwnProp(r,"data")?r.data:void 0}))}});Ie.forEach(["post","put","patch","query"],function(t){function n(r){return function(s,o,l){return this.request(cp(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}tp.prototype[t]=n(),t!=="query"&&(tp.prototype[t+"Form"]=n(!0))});let pce=class eG{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(l=>{r.subscribe(l),s=l}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,l){r.reason||(r.reason=new p0(s,o,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new eG(function(i){t=i}),cancel:t}}};function mce(e){return function(n){return e.apply(null,n)}}function gce(e){return Ie.isObject(e)&&e.isAxiosError===!0}const WP={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
630alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(WP).forEach(([e,t])=>{WP[t]=e});function tG(e){const t=new tp(e),n=TU(tp.prototype.request,t);return Ie.extend(n,tp.prototype,t,{allOwnKeys:!0}),Ie.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return tG(cp(e,i))},n}const Di=tG(h0);Di.Axios=tp;Di.CanceledError=p0;Di.CancelToken=pce;Di.isCancel=KU;Di.VERSION=z4;Di.toFormData=T2;Di.AxiosError=At;Di.Cancel=Di.CanceledError;Di.all=function(t){return Promise.all(t)};Di.spread=mce;Di.isAxiosError=gce;Di.mergeConfig=cp;Di.AxiosHeaders=is;Di.formToJSON=e=>HU(Ie.isHTMLForm(e)?new FormData(e):e);Di.getAdapter=JU.getAdapter;Di.HttpStatusCode=WP;Di.default=Di;const{Axios:p$e,AxiosError:m$e,CanceledError:g$e,isCancel:v$e,CancelToken:y$e,VERSION:x$e,all:b$e,Cancel:w$e,isAxiosError:j$e,spread:_$e,toFormData:N$e,AxiosHeaders:S$e,HttpStatusCode:A$e,formToJSON:k$e,getAdapter:P$e,mergeConfig:C$e,create:E$e}=Di,nG=typeof window>"u",DI=!nG&&window.self!==window.top,vce=!nG&&typeof document>"u",rG=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),Oa=[];for(let e=0;e<256;++e)Oa.push((e+256).toString(16).slice(1));function yce(e,t=0){return(Oa[e[t+0]]+Oa[e[t+1]]+Oa[e[t+2]]+Oa[e[t+3]]+"-"+Oa[e[t+4]]+Oa[e[t+5]]+"-"+Oa[e[t+6]]+Oa[e[t+7]]+"-"+Oa[e[t+8]]+Oa[e[t+9]]+"-"+Oa[e[t+10]]+Oa[e[t+11]]+Oa[e[t+12]]+Oa[e[t+13]]+Oa[e[t+14]]+Oa[e[t+15]]).toLowerCase()}let aN;const xce=new Uint8Array(16);function bce(){if(!aN){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");aN=crypto.getRandomValues.bind(crypto)}return aN(xce)}const wce=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),FI={randomUUID:wce};function jce(e,t,n){var i;e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??bce();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,yce(r)}function _ce(e,t,n){return FI.randomUUID&&!e?FI.randomUUID():jce(e)}const ty=typeof window<"u"?window:{base44SharedInstances:{}};function Nce(e,t){return ty.base44SharedInstances||(ty.base44SharedInstances={}),ty.base44SharedInstances[e]||(ty.base44SharedInstances[e]={instance:t()}),ty.base44SharedInstances[e].instance}const Sce="__user_heartbeat_event__",Ace="__initialization_event__",kce="__session_duration_event__",BI="analytics-enable",qI="base44_analytics_session_id",Pce={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},Cce="analytics",mr=Nce(Cce,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...Pce,...Dce()}})),Ece=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:r,enabled:i})=>{var s;const{maxQueueSize:o,throttleTime:l,batchSize:c}=mr.config;if(!i||!(!((s=mr.config)===null||s===void 0)&&s.enabled)||vce)return{track:()=>{},cleanup:()=>{}};let u;const d=`${t}/api/apps/${n}/analytics/track/batch`,f=async _=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:_}})},p=_=>{try{const N=JSON.stringify({events:_}),A=new Blob([N],{type:"application/json"});return typeof navigator>"u"||N.length>6e4||!navigator.sendBeacon(d,A)}catch{return!1}},h=async(_,N={})=>
630{if(_.length===0)return;const A=await Mce(r),E=_.map(Lce(A));try{(!N.isBeacon||!p(E))&&await f(E)}catch{}},x=()=>{$I(h,{throttleTime:l,batchSize:c})},v=_=>{if(mr.requestsQueue.length>=o)return;const N=Ice();mr.requestsQueue.push({..._,...N}),x()},g=()=>{$I(h,{throttleTime:l,batchSize:c}),u=UI(v),Oce()},y=()=>{zI(),u==null||u(),Rce(v);const _=mr.requestsQueue.splice(0);h(_,{isBeacon:!0})},w=()=>{typeof window>"u"||(document.visibilityState==="hidden"?y():document.visibilityState==="visible"&&g())},j=()=>{zI(),u==null||u(),typeof window<"u"&&window.removeEventListener("visibilitychange",w)};return x(),u=UI(v),Tce(v),typeof window<"u"&&window.addEventListener("visibilitychange",w),{track:v,cleanup:j}};function zI(){mr.isProcessing=!1}async function $I(e,t){if(mr.isProcessing)return;mr.isProcessing=!0;const{throttleTime:n=1e3,batchSize:r=30}=t??{};for(;mr.isProcessing&&mr.requestsQueue.length>0;){const i=mr.requestsQueue.splice(0,r);i.length&&await e(i),await new Promise(s=>setTimeout(s,n))}mr.isProcessing=!1}function UI(e){var t;if(typeof window>"u"||mr.isHeartBeatProcessing||((t=mr.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};mr.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:Sce})},mr.config.heartBeatInterval);return()=>{clearInterval(n),mr.isHeartBeatProcessing=!1}}function Tce(e){typeof window>"u"||mr.wasInitializationTracked||(mr.wasInitializationTracked=!0,e({eventName:Ace,properties:{referrer:document==null?void 0:document.referrer}}))}function Oce(){typeof window>"u"||mr.sessionStartTime!==null||(mr.sessionStartTime=new Date().toISOString())}function Rce(e){if(typeof window>"u"||mr.sessionStartTime===null)return;const t=new Date().getTime()-new Date(mr.sessionStartTime).getTime();mr.sessionStartTime=null,e({eventName:kce,properties:{sessionDuration:t}})}function Ice(){var e,t;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(t=(e=window.location)===null||e===void 0?void 0:e.pathname)!==null&&t!==void 0?t:null}}function Lce(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let Sy=null;function GI(){mr.sessionContext=null,Sy=null}async function Mce(e){if(!mr.sessionContext){if(!e.hasToken())return{user_id:null,session_id:Z1()};if(!Sy){const r=Z1();Sy=e.me().then(i=>({user_id:i.id,session_id:r})).catch(()=>({user_id:null,session_id:r}))}const t=Sy,n=await t;return Sy===t&&(mr.sessionContext=n),n}return mr.sessionContext}function Dce(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(BI);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(BI);const r=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",r),{enabled:t==="true"}}function VI(){var e;return(e=mr.fallbackSessionId)!==null&&e!==void 0?e:mr.fallbackSessionId=rG()}function Z1(){if(typeof window>"u")return VI();try{const e=localStorage.getItem(qI);if(!e){const t=rG();return localStorage.setItem(qI,t),t}return e}catch{return VI()}}class Fce extends Error{constructor(t,n,r,i,s){super(t),this.name="Base44Error",this.status=n,this.code=r,this.data=i,this.originalError=s}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Om({baseURL:e,headers:t={},token:n,interceptResponses:r=!0,onError:i}){const s=Di.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(s.defaults.headers.common.Authorization=`Bearer ${n}`),s.interceptors.request.use(o=>{typeof window<"u"&&(window.location&&o.headers.set("X-Origin-URL",window.location.href),o.headers.get("Authorization")||o.headers.set("X-Base44-Anonymous-Id",Z1()));const l=_ce();if(o.requestId=l,DI)try{window.parent.postMessage({type:"api-request-start",requestId:l,data:{url:e+o.url,method:o.method,body:o.data instanceof FormData?"[FormData object]":o.data}},"*")}catch{}return o}),r&&s.interceptors.response.use(o=>{var l;const c=(l=o.config)===null||l===void 0?void 0:l.requestId;try{DI&&c&&window.parent.postMessage({type:"api-request-end",requestId:c,data:{statusCode:o.status,response:o.data}},"*")}catch{}return o.data},o=>{var l,c,u,d,f,p,h,x,v,g,y,w;const j=(l=o.response)===null||l===void 0?void 0:l.data,_=((c=j==null?void 0:j.error)===null||c===void 0?void 0:c.message)||(j==null?void 0:j.message)||(j==null?void 0:j.detail)||o.message,N=new Fce(_,(u=o.response)===null||u===void 0?void 0:u.status,(g=(p=(f=(d=j==null?void 0:j.error)===null||d===void 0?void 0:d.code)!==null&&f!==void 0?f:j==null?void 0:j.code)!==null&&p!==void 0?p:(v=(x=(h=o.response)===null||h===void 0?void 0:h.headers)===null||x===void 0?void 0:x.get)===null||v===void 0?void 0:v.call(x,"x-base44-connector-error"))!==null&&g!==void 0?g:(w=(y=o.response)===null||y===void 0?void 0:y.headers)===null||w===void 0?void 0:w["x-base44-connector-error"],j,o);return i==null||i(N),Promise.reject(N)}),s}function WI(e){const{axios:t,appId:n,getSocket:r}=e;return new Proxy({}
630,{get(i,s){if(!(typeof s!="string"||s==="then"||s.startsWith("_")))return zce(t,n,s,r)}})}function Bce(e){var t;try{const n=JSON.parse(e);return{type:n.type,data:n.data,id:n.id||((t=n.data)===null||t===void 0?void 0:t.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}const qce=100;function HI(e){return typeof e=="object"&&e!==null}function zce(e,t,n,r){const i=`/apps/${t}/entities/${n}`,s=c=>Array.isArray(c)?c.join(","):c,o=(c,u,d,f,p)=>{const h={};return p&&(h.q=JSON.stringify(p)),c&&(h.sort=c),u&&(h.limit=u),d&&(h.skip=d),f&&(h.fields=s(f)),e.get(i,{params:h})},l=(c,u)=>{const d={};return u&&(d.q=JSON.stringify(u)),d.limit=c.limit||qce,c.cursor&&(d.cursor=c.cursor),"distinct"in c?d.distinct=c.distinct:(c.sort&&(d.sort=c.sort),c.fields&&(d.fields=s(c.fields))),e.get(`${i}/v2/list`,{params:d})};return{async list(...c){const[u,d,f,p]=c;return HI(u)?l(u):o(u,d,f,p)},async filter(c,...u){const[d,f,p,h]=u;return HI(d)?l(d,c):o(d,f,p,h,c)},async get(c){return e.get(`${i}/${c}`)},async create(c){return e.post(i,c)},async update(c,u){return e.put(`${i}/${c}`,u)},async delete(c){return e.delete(`${i}/${c}`)},async deleteMany(c){return e.delete(i,{data:c})},async bulkCreate(c){return e.post(`${i}/bulk`,c)},async updateMany(c,u){return e.patch(`${i}/update-many`,{query:c,data:u})},async count(c){const u={};return c&&(u.q=JSON.stringify(c)),(await e.get(`${i}/count`,{params:u})).count},async aggregate(c){return e.post(`${i}/aggregate`,c)},async upsert(c,u){return e.post(`${i}/upsert`,{records:c,key:u.key})},async bulkUpdate(c){return e.put(`${i}/bulk`,c)},async importEntities(c){const u=new FormData;return u.append("file",c,c.name),e.post(`${i}/import`,u,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(c){const u=`entities:${t}:${n}`;return r().subscribeToRoom(u,{update_model:p=>{var h;const x=Bce(p.data);if(x){x.type!=="delete"&&(!((h=x.data)===null||h===void 0)&&h._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${x.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${x.id}")\` to fetch the full record.`);try{c(x)}catch(v){console.error("[Base44 SDK] Subscription callback error:",v)}}}})}}}function $ce(e,t){return{async call(n,r,i){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(r!=null&&r.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:s,queryParams:o,...l}=i??{},c={...l,...s&&{path_params:s},...o&&{query_params:o}};return await e.post(`/apps/${t}/integrations/custom/${n}/${r}`,c)}}}function KI(e,t){const n=$ce(e,t);return new Proxy({},{get(r,i){if(!(typeof i!="string"||i==="then"||i.startsWith("_")))return i==="custom"?n:new Proxy({},{get(s,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return async l=>{if(typeof l=="string")throw new Error(`Integration ${o} must receive an object with named parameters, received: ${l}`);let c,u;return l instanceof FormData||l&&Object.values(l).some(d=>d instanceof File)?(c=new FormData,Object.keys(l).forEach(d=>{l[d]instanceof File?c.append(d,l[d],l[d].name):typeof l[d]=="object"&&l[d]!==null?c.append(d,JSON.stringify(l[d])):c.append(d,l[d])}),u="multipart/form-data"):(c=l,u="application/json"),i==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${o}`,c||l,{headers:{"Content-Type":u}}):e.post(`/apps/${t}/integration-endpoints/installable/${i}/integration-endpoints/${o}`,c||l,{headers:{"Content-Type":u}})}}})}})}function Uce(){return typeof window>"u"?!1:window!==window.parent}function Gce(e,t,n){const s=Math.round(window.screenX+(window.outerWidth-500)/2),o=Math.round(window.screenY+(window.outerHeight-600)/2),l=window.open(e,"base44_auth",`width=500,height=600,left=${s},top=${o},resizable=yes,scrollbars=yes`);if(!l)return;const c=()=>{window.removeEventListener("message",u),clearInterval(d),l.closed||l.close()},u=f=>{var p;if(f.origin!==n||f.source!==l||!(!((p=f.data)===null||p===void 0)&&p.access_token))return;c();const h=new URL(t),{access_token:x,is_new_user:v}=f.data;h.searchParams.set("access_token",x),v!=null&&h.searchParams.set("is_new_user",String(v)),window.location.href=h.toString()},d=setInterval(()=>{l.closed&&c()},500);window.addEventListener("message",u)}function Vce(e,t,n,r){let i=null;const s=()=>{i=null};let o=!!r.token;return{hasToken(){return o},async me(){const l=i??e.get(`/apps/${n}/entities/User/me`).finally(()=>{i===l&&(i=null)});return i=l,l},async updateMe(l){return e.put(`/apps/${n}/entities/User/me`,l)},redirectToLogin(l){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const c=l?new URL(l,window.location.origin).toString():window.location.href,u=`${r.appBaseUrl}/login?from_url=${encodeURIComponent(c)}`;window.location.href=u},loginWithProvider(l,c="/"){const u=new URL(c,window.location.origin).toString(),d=`app_id=${n}&from_url=${encodeURIComponent(u)}`;let f;l==="sso"?f=`/apps/${n}/auth/sso/login`:f=`/apps/auth${l==="google"?"":`/${l}`}/login`;const p=`${r.appBaseUrl}/api${f}?${d}`;if(Uce()){const h=`${p}&popup_origin=${encodeURIComponent(window.location.origin)}`;return Gce(h,u,window.location.origin)}window.location.href=p},logout(l){if(delete e.defaults.headers.common.Authorization,s(),GI(),o=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(d){console.error("Failed to remove token from localStorage:",d)}const c=l||window.location.href,u=`${r.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(c)}`;window.location.href=u}},setToken(l,c=!0){if(l&&(s(),GI(),o=!0,e.defaults.headers.common.Authorization=`Bearer ${l}`,t.defaults.headers.common.Authorization=`Bearer ${l}`,c&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",l),window.localStorage.setItem("token",l)}catch(u){console.error("Failed to save token to localStorage:",u)}},async loginViaEmailPassword(l,c,u){var d;try{const f=await e.post(`/apps/${n}/auth/login`,{email:l,password:c,...u&&{turnstile_token:u}}),{access_token:p,user:h}=f;return p&&this.setToken(p),{access_token:p,user:h}}catch(f){throw((d=f.response)===null||d===void 0?void 0:d.status)===401&&await this.logout(),f}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(l,c){return e.post(`/apps/${n}/users/invite-user`,{user_email:l,role:c})},register(l){return e.post(`/apps/${n}/auth/register`,l)},verifyOtp({email:l,otpCode:c}){return e.post(`/apps/${n}/auth/verify-otp`,{email:l,otp_code:c})},resendOtp(l){return e.post(`/apps/${n}/auth/resend-otp`,{email:l})},resetPasswordRequest(l){return e.post(`/apps/${n}/auth/reset-password-request`,{email:l})},resetPassword({resetToken:l,newPassword:c}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:l,new_password:c})},changePassword({userId:l,currentPassword:c,newPassword:u}){return e.post(`/apps/${n}/auth/change-password`,{user_id:l,current_password:c,new_password:u})}}}function Wce(e,t){return{async getAccessToken(n){const r=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(r)},async getIdToken(n){const r=`/apps/${t}/auth/sso/idtoken/${n}`;return e.get(r)}}}const Hce=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
630function Kce(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`)).access_token},async getConnection(n){var r;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const s=await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:s.access_token,connectionConfig:(r=s.connection_config)!==null&&r!==void 0?r:null}},async getWorkspaceConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const s=await e.get(`/apps/${t}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:s.access_token,connectionConfig:(r=s.connection_config)!==null&&r!==void 0?r:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const s=await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:s.access_token,connectionConfig:(r=s.connection_config)!==null&&r!==void 0?r:null}},async callApi(n,r){return iG(n,"Integration type"),Yce(e,`/apps/${t}/connectors/${encodeURIComponent(n)}/call`,r)}}}function iG(e,t){if(!e||typeof e!="string")throw new Error(`${t} is required and must be a string`)}async function Yce(e,t,n){var r,i,s,o,l,c,u,d,f;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");iG(n.path,"Request path");const p=(r=n.method)!==null&&r!==void 0?r:"GET";if(!Hce.has(p))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const x=await e.post(t,{method:p,...n.host==null?{}:{host:n.host},path:n.path,query:(i=n.query)!==null&&i!==void 0?i:{},headers:(s=n.headers)!==null&&s!==void 0?s:{},body:(o=n.body)!==null&&o!==void 0?o:null});return{success:x.success,phase:x.phase,status:(l=x.status_code)!==null&&l!==void 0?l:null,data:x.data,dataBase64:(c=x.data_base64)!==null&&c!==void 0?c:null,contentType:(u=x.content_type)!==null&&u!==void 0?u:null,headers:(d=x.headers)!==null&&d!==void 0?d:{},creditsCharged:(f=x.credits_charged)!==null&&f!==void 0?f:0}}function Xce(e,t){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function Sf(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:r=!0,removeFromUrl:i=!0}=e;let s=null;if(typeof window<"u"&&window.location)try{const o=new URLSearchParams(window.location.search);if(s=o.get(n),s){if(r&&Qce(s,{storageKey:t}),i){o.delete(n);const l=`${window.location.pathname}${o.toString()?`?${o.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,l)}return s}}catch(o){console.error("Error retrieving token from URL:",o)}if(typeof window<"u"&&window.localStorage)try{return s=window.localStorage.getItem(t),s}catch(o){console.error("Error retrieving token from local storage:",o)}return null}function Qce(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(r){return console.error("Error saving token to local storage:",r),!1}}function Zce({axios:e,serviceRoleAxios:t,appId:n,serverUrl:r,functionsVersion:i,platformHeaders:s}){const o=new Headers(s),l=c=>{const u=c.defaults.headers.common.Authorization;return typeof u=="string"&&u.startsWith("Bearer ")?u:null};return async function(u,d={}){Jce(u);const{fetch:f=fetch,...p}=d,h=new Headers(d.headers),x=(v,g)=>{g&&!h.has(v)&&h.set(v,g)};return x("Authorization",l(e)),x("Base44-Service-Authorization",l(t)),x("Base44-App-Id",n),x("Base44-Api-Url",r),x("Base44-Functions-Version",i),x("Base44-State",o.get("Base44-State")),x("X-Data-Env",o.get("X-Data-Env")),f(u,{...p,headers:h})}}
630function Jce(e){if(typeof e!="string"||e==="")throw new Error("fetchWithAuth() requires a path, such as '/api/orders'.");const t=e.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(!t.startsWith("/")||t.startsWith("//")||t.startsWith("/\\"))throw new Error(`fetchWithAuth() only sends requests to your app's own origin, so your app's credentials never reach a third party. "${e}" is not a path on it â pass a relative path such as '/api/orders'. Use base44.functions.fetch() to call a Base44 backend function, or plain fetch() for another origin.`)}function YI(e,t,n){const r=(s,o)=>s?`${String(s).replace(/\/$/,"")}${o}`:o,i=s=>{const o=new Headers;if(n!=null&&n.getAuthHeaders){const l=n.getAuthHeaders();Object.entries(l).forEach(([c,u])=>{u!=null&&o.set(c,String(u))})}return s&&new Headers(s).forEach((l,c)=>{o.set(c,l)}),o};return{async invoke(s,o){if(typeof o=="string")throw new Error(`Function ${s} must receive an object with named parameters, received: ${o}`);let l,c;return o instanceof FormData||o&&Object.values(o).some(u=>u instanceof File)?(l=new FormData,Object.keys(o).forEach(u=>{o[u]instanceof File?l.append(u,o[u],o[u].name):typeof o[u]=="object"&&o[u]!==null?l.append(u,JSON.stringify(o[u])):l.append(u,o[u])}),c="multipart/form-data"):(l=o,c="application/json"),e.post(`/apps/${t}/functions/${s}`,l||o,{headers:{"Content-Type":c}})},async fetch(s,o={}){const c=`/functions${s.startsWith("/")?s:`/${s}`}`,u=i(o.headers),d={...o,headers:u};return await fetch(r(n==null?void 0:n.baseURL,c),d)}}}function XI({axios:e,getSocket:t,appId:n,serverUrl:r,token:i}){const s=`/apps/${n}/agents`,o={},l=()=>e.get(`${s}/conversations`),c=v=>e.get(`${s}/conversations/${v}`);return{getConversations:l,getConversation:c,listConversations:v=>e.get(`${s}/conversations`,{params:v}),createConversation:v=>e.post(`${s}/conversations`,v),addMessage:async(v,g)=>e.post(`${s}/conversations/v2/${v.id}/messages`,g),subscribeToConversation:(v,g)=>{const y=`/agent-conversations/${v}`,w=t(),j=c(v).then(_=>(o[v]=_,_));return w.subscribeToRoom(y,{connect:()=>{},update_model:async({data:_})=>{const N=JSON.parse(_);if(N._message){await j;const A=N._message,E=o[v];if(E){const k=E.messages||[],T=k.findIndex(P=>P.id===A.id),D=T!==-1?k.map((P,R)=>R===T?A:P):[...k,A];o[v]={...E,messages:D},g==null||g(o[v])}}}})},getWhatsAppConnectURL:v=>{const g=`${r}/api/apps/${n}/agents/${encodeURIComponent(v)}/whatsapp`,y=i??Sf();return y?`${g}?token=${y}`:g},getTelegramConnectURL:v=>{const g=`${r}/api/apps/${n}/agents/${encodeURIComponent(v)}/telegram`,y=i??Sf();return y?`${g}?token=${y}`:g}}}const QI={openai:"openai",typesafe:"typesafe"};function ZI({serverUrl:e,token:t,appId:n}){return{connection:({provider:i="openai"}={})=>{var s;if(!Object.prototype.hasOwnProperty.call(QI,i))throw new Error(`Unsupported AI Gateway provider: ${i}`);const o=QI[i];return{baseURL:`${e}/api/apps/${n}/ai/${o}/v1`,token:(s=t??Sf())!==null&&s!==void 0?s:""}}}}function JI(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(r){await e.post(`${n}/log-user-in-app/${r}`)},async fetchLogs(r={}){return await e.get(n,{params:r})},async getStats(r={}){return await e.get(`${n}/stats`,{params:r})}}}function eue(e,t){return{async getPublicSettings(){return e.get(`/apps/public/prod/public-settings/by-id/${t}`)}}}function tue(e,t){return{async inviteUser(n,r){if(r!=="user"&&r!=="admin")throw new Error(`Invalid role: "${r}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:r})}}}const Hc=Object.create(null);Hc.open="0";Hc.close="1";Hc.ping="2";Hc.pong="3";Hc.message="4";Hc.upgrade="5";Hc.noop="6";const w1=Object.create(null);Object.keys(Hc).forEach(e=>{w1[Hc[e]]=e});const HP={type:"error",data:"parser error"},aG=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",sG=typeof ArrayBuffer=="function",oG=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,U4=({type:e,data:t},n,r)=>aG&&t instanceof Blob?n?r(t):eL(t,r):sG&&(t instanceof ArrayBuffer||oG(t))?n?r(t):eL(new Blob([t]),r):r(Hc[e]+(t||"")),eL=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function tL(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let sN;function nue(e,t){if(aG&&e.data instanceof Blob)return e.data.arrayBuffer().then(tL).then(t);if(sG&&(e.data instanceof ArrayBuffer||oG(e.data)))return t(tL(e.data));U4(e,!1,n=>{sN||(sN=new TextEncoder),t(sN.encode(n))})}const nL="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
630+/",Ay=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<nL.length;e++)Ay[nL.charCodeAt(e)]=e;const rue=e=>{let t=e.length*.75,n=e.length,r,i=0,s,o,l,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),d=new Uint8Array(u);for(r=0;r<n;r+=4)s=Ay[e.charCodeAt(r)],o=Ay[e.charCodeAt(r+1)],l=Ay[e.charCodeAt(r+2)],c=Ay[e.charCodeAt(r+3)],d[i++]=s<<2|o>>4,d[i++]=(o&15)<<4|l>>2,d[i++]=(l&3)<<6|c&63;return u},iue=typeof ArrayBuffer=="function",G4=(e,t)=>{if(typeof e!="string")return{type:"message",data:lG(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:aue(e.substring(1),t)}:w1[n]?e.length>1?{type:w1[n],data:e.substring(1)}:{type:w1[n]}:HP},aue=(e,t)=>{if(iue){const n=rue(e);return lG(n,t)}else return{base64:!0,data:e}},lG=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},cG="�",sue=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((s,o)=>{U4(s,!1,l=>{r[o]=l,++i===n&&t(r.join(cG))})})},oue=(e,t)=>{const n=e.split(cG),r=[];for(let i=0;i<n.length;i++){const s=G4(n[i],t);if(r.push(s),s.type==="error")break}return r};function lue(){return new TransformStream({transform(e,t){nue(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const s=new DataView(i.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{i=new Uint8Array(9);const s=new DataView(i.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let oN;function Ab(e){return e.reduce((t,n)=>t+n.length,0)}function kb(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function cue(e,t){oN||(oN=new TextDecoder);const n=[];let r=0,i=-1,s=!1;return new TransformStream({transform(o,l){for(n.push(o);;){if(r===0){if(Ab(n)<1)break;const c=kb(n,1);s=(c[0]&128)===128,i=c[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Ab(n)<2)break;const c=kb(n,2);i=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(Ab(n)<8)break;const c=kb(n,8),u=new DataView(c.buffer,c.byteOffset,c.length),d=u.getUint32(0);if(d>Math.pow(2,21)-1){l.enqueue(HP);break}i=d*Math.pow(2,32)+u.getUint32(4),r=3}else{if(Ab(n)<i)break;const c=kb(n,i);l.enqueue(G4(s?c:oN.decode(c),t)),r=0}if(i===0||i>e){l.enqueue(HP);break}}}})}const uG=4;function Wi(e){if(e)return uue(e)}function uue(e){for(var t in Wi.prototype)e[t]=Wi.prototype[t];return e}Wi.prototype.on=Wi.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Wi.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Wi.prototype.off=Wi.prototype.removeListener=Wi.prototype.removeAllListeners=Wi.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};Wi.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};Wi.prototype.emitReserved=Wi.prototype.emit;Wi.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Wi.prototype.hasListeners=function(e){return!!this.listeners(e).length};const R2=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),cl=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),due="arraybuffer";function dG(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const fue=cl.setTimeout,hue=cl.clearTimeout;function I2(e,t){t.useNativeTimers?(e.setTimeoutFn=fue.bind(cl),e.clearTimeoutFn=hue.bind(cl)):(e.setTimeoutFn=cl.setTimeout.bind(cl),e.clearTimeoutFn=cl.clearTimeout.bind(cl))}const pue=1.33;function mue(e){return typeof e=="string"?gue(e):Math.ceil((e.byteLength||e.size)*pue)}function gue(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function fG(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function vue(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function yue(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let s=n[r].split("=");
vendor: 5,940 bytes, line 630
630t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}class xue extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class V4 extends Wi{constructor(t){super(),this.writable=!1,I2(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new xue(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=G4(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=vue(t);return n.length?"?"+n:""}}class bue extends V4{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};oue(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,sue(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=fG()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let hG=!1;try{hG=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const wue=hG;function jue(){}class _ue extends bue{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,s)=>{this.onError("xhr post error",i,s)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Bc extends Wi{constructor(t,n,r){super(),this.createRequest=t,I2(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=dG(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=Bc.requestsCount++,Bc.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=jue,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Bc.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Bc.requestsCount=0;Bc.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",rL);else if(typeof addEventListener=="function"){const e="onpagehide"in cl?"pagehide":"unload";addEventListener(e,rL,!1)}}function rL(){for(let e in Bc.requests)Bc.requests.hasOwnProperty(e)&&Bc.requests[e].abort()}const Nue=(function(){const e=pG({xdomain:!1});return e&&e.responseType!==null})();class Sue extends _ue{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=Nue&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Bc(pG,this.uri(),t)}}function pG(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||wue))return new XMLHttpRequest}catch{}if(!t)try{return new cl[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const mG=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Aue extends V4{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=mG?{}
vendor: 16,366 bytes, line 630
630:dG(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;U4(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}i&&R2(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=fG()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const lN=cl.WebSocket||cl.MozWebSocket;class kue extends Aue{createSocket(t,n,r){return mG?new lN(t,n,r):n?new lN(t,n):new lN(t)}doWrite(t,n){this.ws.send(n)}}class Pue extends V4{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=cue(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=lue();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const s=()=>{r.read().then(({done:l,value:c})=>{l||(this.onPacket(c),s())}).catch(l=>{})};s();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&R2(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const Cue={websocket:kue,webtransport:Pue,polling:Sue},Eue=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Tue=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function KP(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=Eue.exec(e||""),s={},o=14;for(;o--;)s[Tue[o]]=i[o]||"";return n!=-1&&r!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=Oue(s,s.path),s.queryKey=Rue(s,s.query),s}function Oue(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Rue(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(n[i]=s)}),n}const YP=typeof addEventListener=="function"&&typeof removeEventListener=="function",j1=[];YP&&addEventListener("offline",()=>{j1.forEach(e=>e())},!1);class Ef extends Wi{constructor(t,n){if(super(),this.binaryType=due,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=KP(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=KP(n.host).host);I2(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=yue(this.opts.query)),YP&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},j1.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=uG,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Ef.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Ef.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=mue(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,R2(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const s={type:t,data:n,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(Ef.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),YP&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=j1.indexOf(this._offlineEventListener);r!==-1&&j1.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Ef.protocol=uG;class Iue extends Ef{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Ef.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!r)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Ef.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function s(){r||(r=!0,d(),n.close(),n=null)}const o=f=>{const p=new Error("probe error: "+f);p.transport=n.name,s(),this.emitReserved("upgradeError",p)};function l(){o("transport closed")}function c(){o("socket closed")}function u(f){n&&f.name!==n.name&&s()}const d=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",l),this.off("close",c),this.off("upgrading",u)};n.once("open",i),n.once("error",o),n.once("close",l),this.once("close",c),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let Lue=class extends Iue{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>Cue[i]).filter(i=>!!i)),super(t,r)}};function Mue(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=KP(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+t,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}const Due=typeof ArrayBuffer=="function",Fue=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,gG=Object.prototype.toString,Bue=typeof Blob=="function"||typeof Blob<"u"&&gG.call(Blob)==="[object BlobConstructor]",que=typeof File=="function"||typeof File<"u"&&gG.call(File)==="[object FileConstructor]";function W4(e){return Due&&(e instanceof ArrayBuffer||Fue(e))||Bue&&e instanceof Blob||que&&e instanceof File}function _1(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(_1(e[n]))return!0;return!1}if(W4(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return _1(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&_1(e[n]))return!0;return!1}function zue(e){const t=[],n=e.data,r=e;return r.data=XP(n,t),r.attachments=t.length,{packet:r,buffers:t}}function XP(e,t){if(!e)return e;if(W4(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=XP(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=XP(e[r],t));return n}return e}function $ue(e,t){return e.data=QP(e.data,t),delete e.attachments,e}function QP(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=QP(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=QP(e[n],t));return e}const Uue=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Yn;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Yn||(Yn={}));class Gue{constructor(t){this.replacer=t}encode(t){return(t.type===Yn.EVENT||t.type===Yn.ACK)&&_1(t)?this.encodeAsBinary({type:t.type===Yn.EVENT?Yn.BINARY_EVENT:Yn.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Yn.BINARY_EVENT||t.type===Yn.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=zue(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class H4 extends Wi{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Yn.BINARY_EVENT;r||n.type===Yn.BINARY_ACK?(n.type=r?Yn.EVENT:Yn.ACK,this.reconstructor=new Vue(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(W4(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Yn[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Yn.BINARY_EVENT||r.type===Yn.BINARY_ACK){const s=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const o=t.substring(s,n);if(o!=Number(o)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(o)}if(t.charAt(n+1)==="/"){const s=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(s,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const s=n+1;for(;++n;){const o=t.charAt(n);if(o==null||Number(o)!=o){--n;break}if(n===t.length)break}r.id=Number(t.substring(s,n+1))}
vendor: 4,508 bytes, line 630
630if(t.charAt(++n)){const s=this.tryParse(t.substr(n));if(H4.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Yn.CONNECT:return iL(n);case Yn.DISCONNECT:return n===void 0;case Yn.CONNECT_ERROR:return typeof n=="string"||iL(n);case Yn.EVENT:case Yn.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Uue.indexOf(n[0])===-1);case Yn.ACK:case Yn.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Vue{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=$ue(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function iL(e){return Object.prototype.toString.call(e)==="[object Object]"}const Wue=Object.freeze(Object.defineProperty({__proto__:null,Decoder:H4,Encoder:Gue,get PacketType(){return Yn}},Symbol.toStringTag,{value:"Module"}));function Gl(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Hue=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class vG extends Wi{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Gl(t,"open",this.onopen.bind(this)),Gl(t,"packet",this.onpacket.bind(this)),Gl(t,"error",this.onerror.bind(this)),Gl(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,s;if(Hue.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const o={type:Yn.EVENT,data:n};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const d=this.ids++,f=n.pop();this._registerAckCallback(d,f),o.id=d}const l=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!l||(c?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);n.call(this,new Error("operation has timed out"))},i),o=(...l)=>{this.io.clearTimeoutFn(s),n.apply(this,l)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...n){return new Promise((r,i)=>{const s=(o,l)=>o?i(o):r(l);s.withError=!0,n.push(s),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...s)=>(this._queue[0],i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Yn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}
vendor: 7,089 bytes, line 630
630_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Yn.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Yn.EVENT:case Yn.BINARY_EVENT:this.onevent(t);break;case Yn.ACK:case Yn.BINARY_ACK:this.onack(t);break;case Yn.DISCONNECT:this.ondisconnect();break;case Yn.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:Yn.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Yn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function nv(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}nv.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};nv.prototype.reset=function(){this.attempts=0};nv.prototype.setMin=function(e){this.ms=e};nv.prototype.setMax=function(e){this.max=e};nv.prototype.setJitter=function(e){this.jitter=e};class ZP extends Wi{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,I2(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new nv({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||Wue;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Lue(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Gl(n,"open",function(){r.onopen(),t&&t()}),s=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},o=Gl(n,"error",s);if(this._timeout!==!1){const l=this._timeout,c=this.setTimeoutFn(()=>{i(),s(new Error("timeout")),n.close()},l);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Gl(t,"ping",this.onping.bind(this)),Gl(t,"data",this.ondata.bind(this)),Gl(t,"error",this.onerror.bind(this)),Gl(t,"close",this.onclose.bind(this)),Gl(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){R2(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new vG(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}
630cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ny={};function N1(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Mue(e,t.path||"/socket.io"),r=n.source,i=n.id,s=n.path,o=ny[i]&&s in ny[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let c;return l?c=new ZP(r,t):(ny[i]||(ny[i]=new ZP(r,t)),c=ny[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(N1,{Manager:ZP,Socket:vG,io:N1,connect:N1});const Kue=250;function aL(e,t){var n;const r=(n=e.token)!==null&&n!==void 0?n:Sf(),i={app_id:e.appId};r?i.token=r:i.anonymous_id=Z1();const s=N1(e.serverUrl,{path:e.mountPath,transports:e.transports,query:i});return s.on("connect",async()=>{var o;return console.log("connect",s.id),(o=t.connect)===null||o===void 0?void 0:o.call(t)}),s.on("update_model",async o=>{var l;return(l=t.update_model)===null||l===void 0?void 0:l.call(t,o)}),s.on("error",async o=>{var l;return(l=t.error)===null||l===void 0?void 0:l.call(t,o)}),s.on("connect_error",async o=>{var l;return console.error("connect_error",o),(l=t.error)===null||l===void 0?void 0:l.call(t,o)}),s}function Yue({config:e}){let t={...e};const n={},r={},i={connect:async()=>{const y=[];Object.keys(n).forEach(w=>{const j=p(w);j.length!==0&&(u(w),j.forEach(({connect:_})=>{const N=async()=>_==null?void 0:_();y.push(N())}))}),await Promise.all(y)},update_model:async y=>{const j=p(y.room).map(_=>{var N;return(N=_.update_model)===null||N===void 0?void 0:N.call(_,y)});await Promise.all(j)},error:async y=>{console.error("error",y);const w=Object.values(n).flat().map(j=>{var _;return(_=j.error)===null||_===void 0?void 0:_.call(j,y)});await Promise.all(w)}};let s=aL(e,i);function o(){l()}function l(){x(),s&&s.disconnect()}function c(y){o(),t={...t,...y},s=aL(t,i)}function u(y){s.emit("join",y)}
630function d(y){s.emit("leave",y)}async function f(y,w){var j;const _=JSON.stringify(w);return(j=i.update_model)===null||j===void 0?void 0:j.call(i,{room:y,data:_})}function p(y){var w;return(w=n[y])!==null&&w!==void 0?w:[]}function h(y){const w=r[y];w&&(clearTimeout(w),delete r[y])}function x(){Object.keys(r).forEach(y=>{var w,j;clearTimeout(r[y]),delete r[y],((j=(w=n[y])===null||w===void 0?void 0:w.length)!==null&&j!==void 0?j:0)===0&&delete n[y]})}function v(y){h(y),r[y]=setTimeout(()=>{var w,j;delete r[y],!(((j=(w=n[y])===null||w===void 0?void 0:w.length)!==null&&j!==void 0?j:0)>0)&&(d(y),delete n[y])},Kue)}return{socket:s,subscribeToRoom:(y,w)=>{n[y]?h(y):(u(y),n[y]=[]),n[y].push(w);let j=!1;return()=>{var _,N;j||(j=!0,n[y]=(N=(_=n[y])===null||_===void 0?void 0:_.filter(A=>A!==w))!==null&&N!==void 0?N:[],n[y].length===0&&v(y))}},updateConfig:c,updateModel:f,disconnect:l}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(` 631 PartySocket requires a global 'EventTarget' class to be available! 632 You can polyfill this global by adding this to your code before any partysocket imports: 633 634 \`\`\` 635 import 'partysocket/event-target-polyfill'; 636 \`\`\` 637 Please file an issue at https://github.com/partykit/partykit if you're still having trouble. 638`);var yG=class extends Event{constructor(t,n){super("error",n);en(this,"message");en(this,"error");this.message=t.message,this.error=t}},xG=class extends Event{constructor(t=1e3,n="",r){super("close",r);en(this,"code");en(this,"reason");en(this,"wasClean",!0);this.code=t,this.reason=n}},cN={Event,ErrorEvent:yG,CloseEvent:xG};function Xue(e,t){if(!e)throw new Error(t)}function Que(e){return new e.constructor(e.type,e)}function Zue(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new xG(e.code||1999,e.reason||"unknown reason",e):"error"in e?new yG(e.error,e):new Event(e.type,e)}var P9,Jue=typeof process<"u"&&typeof((P9=process.versions)==null?void 0:P9.node)<"u"&&typeof document>"u",Pb=Jue?Zue:Que,Nh={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},sL=!1,ede=class Ch extends EventTarget{constructor(n,r,i={}){super();en(this,"_ws");en(this,"_retryCount",-1);en(this,"_uptimeTimeout");en(this,"_connectTimeout");en(this,"_shouldReconnect",!0);en(this,"_connectLock",!1);en(this,"_binaryType","blob");en(this,"_closeCalled",!1);en(this,"_messageQueue",[]);en(this,"_url");en(this,"_protocols");en(this,"_options");en(this,"onclose",null);en(this,"onerror",null);en(this,"onmessage",null);en(this,"onopen",null);en(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:r=Nh.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),r),Xue(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(i=>{var s;return(s=this._ws)==null?void 0:s.send(i)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(Pb(n))});en(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(Pb(n))});en(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(Pb(n)),this._connect()});en(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(Pb(n))});this._url=n,this._protocols=r,this._options=i,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return Ch.CONNECTING}get OPEN(){return Ch.OPEN}get CLOSING(){return Ch.CLOSING}get CLOSED(){return Ch.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((r,i)=>(typeof i=="string"?r+=i.length:i instanceof Blob?r+=i.size:r+=i.byteLength,r),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?Ch.CLOSED:Ch.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,r){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,r)}reconnect(n,r){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,r),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:r=Nh.maxEnqueuedMessages}=this._options;this._messageQueue.length<r&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=Nh.reconnectionDelayGrowFactor,minReconnectionDelay:r=Nh.minReconnectionDelay,maxReconnectionDelay:i=Nh.maxReconnectionDelay}=this._options;let s=0;return this._retryCount>0&&(s=r*Math.pow(n,this._retryCount-1),s>i&&(s=i)),this._debug("next delay",s),s}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const r=n();if(!r)return Promise.resolve(null);if(typeof r=="string"||Array.isArray(r))return Promise.resolve(r);if(r.then)return r}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const r=n();if(typeof r=="string")return Promise.resolve(r);if(r.then)return r}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
638const{maxRetries:n=Nh.maxRetries,connectionTimeout:r=Nh.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([i,s])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!sL&&(console.error(`â¼ï¸ No WebSocket implementation available. You should define options.WebSocket. 639 640For example, if you're using node.js, run \`npm install ws\`, and then in your code: 641 642import PartySocket from 'partysocket'; 643import WS from 'ws'; 644 645const partysocket = new PartySocket({ 646 host: "127.0.0.1:1999", 647 room: "test-room", 648 WebSocket: WS 649}); 650 651`),sL=!0);const o=this._options.WebSocket||WebSocket;this._debug("connect",{url:i,protocols:s}),this._ws=s?new o(i,s):new o(i),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),r)}).catch(i=>{this._connectLock=!1,this._handleError(new cN.ErrorEvent(Error(i.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new cN.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,r){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,r),this._handleClose(new cN.CloseEvent(n,r,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*! 652 * Reconnecting WebSocket 653 * by Pedro Ladaria <[email protected]> 654 * https://github.com/pladaria/reconnecting-websocket 655 * License MIT 656 */const tde=1e3,nde=3e3,rde=new Set([405,409,422,503]),ide=new Set([400,403,404]);function ade(e){const t=e&&typeof e=="object"?e.status:void 0;return typeof t=="number"?t:void 0}function sde(e){return e instanceof Error?e:new Error(String(e))}class ode{constructor(t,n,r,i,s){var o;this.onClose=s,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(o=i==null?void 0:i.id)!==null&&o!==void 0?o:crypto.randomUUID();let l=r.transport==="proxy";const c=async()=>{var p;if(this.closed)throw new Error("Actor connection is closed");if(!l)try{const{websocket_url:h,token:x}=await r.mintConnectionToken(t,n,this.id),v=h.includes("?")?"&":"?";return`${h}${v}token=${encodeURIComponent(x)}`}catch(h){const x=ade(h);if(!(r.transport!=="direct"&&x!==void 0&&rde.has(x))){x!==void 0&&ide.has(x)&&this.close();try{(p=r.onMintError)===null||p===void 0||p.call(r,sde(h))}catch{}throw h}l=!0}return cde(r.host,t,n,this.id,r.appId,r.getAuthToken(),r.functionsVersion)},u=new ede(c);this.ws=u;let d=Date.now();const f=()=>{d=Date.now()};u.addEventListener("open",f),u.addEventListener("message",p=>{f();let h;try{h=JSON.parse(p.data)}catch{return}if((h&&typeof h=="object"?h.type:void 0)!=="__pong")for(const v of this.listeners)v(h)}),this.heartbeat=setInterval(()=>{if(Date.now()-d>nde){f(),u.readyState===u.OPEN&&u.reconnect();return}try{u.send(JSON.stringify({type:"__ping"}))}catch{}},tde)}subscribe(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}send(t){this.closed||this.ws.send(JSON.stringify(t))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function lde(e,t,n,r){let i=null;return{connect(s){if(i)return i;const o=new ode(e,t,n,s,()=>{r.delete(o),i===o&&(i=null)});return i=o,r.add(o),o}}}function cde(e,t,n,r,i,s,o){let l=e.replace(/^(http|https|ws|wss):\/\//,"");l.endsWith("/")&&(l=l.slice(0,-1));const c=l.startsWith("localhost:")||l.startsWith("127.0.0.1:")||l.startsWith("192.168.")||l.startsWith("10.")||l.startsWith("172.")&&l.split(".")[1]>="16"&&l.split(".")[1]<="31"||l.startsWith("[::ffff:7f00:1]:"),u=new URLSearchParams([["_pk",r],["app_id",i],["handler",t]]);return s&&u.append("token",s),o&&u.append("fv",o),`${c?"ws":"wss"}://${l}/parties/${t}/${n}?${u}`}function ude(e,t){return e&&!e.startsWith("/")?e:t??e}function dde(e){const t=new Set;return{module:new Proxy({}
656,{get(r,i){if(!(typeof i!="string"||i==="then"))return s=>lde(i,s,e,t)}}),closeAll:()=>{for(const r of[...t])r.close()}}}function fde(e){var t,n,r,i;const{serverUrl:s="https://base44.app",appId:o,analytics:l,token:c,serviceToken:u,requiresAuth:d=!1,appBaseUrl:f,options:p,functionsVersion:h,headers:x}=e,v=typeof f=="string"?f:"",g={serverUrl:s,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:o,token:c};let y=null;const w=()=>(y||(y=Yue({config:g})),y),j={...x,"X-App-Id":String(o)},_=h?{...j,"Base44-Functions-Version":h}:j,N=Om({baseURL:`${s}/api`,headers:j,token:c,onError:p==null?void 0:p.onError}),A=Om({baseURL:`${s}/api`,headers:_,token:c,interceptResponses:!1,onError:p==null?void 0:p.onError}),E={...j,...c?{"on-behalf-of":`Bearer ${c}`}:{}},k=Om({baseURL:`${s}/api`,headers:E,token:u,onError:p==null?void 0:p.onError}),T=Om({baseURL:`${s}/api`,headers:_,token:u,interceptResponses:!1}),D=Om({baseURL:`${s}/api`,headers:j}),P=Vce(N,A,o,{appBaseUrl:v,token:c});if(typeof window<"u"){const H=c||Sf();H&&P.setToken(H)}const R=dde({appId:o,host:ude(s,typeof window<"u"?(t=window.location)===null||t===void 0?void 0:t.origin:void 0),functionsVersion:h,getAuthToken:()=>c||Sf(),mintConnectionToken:async(H,Z,J)=>{const K=c||Sf();return await D.post(`/apps/${o}/actors/${encodeURIComponent(H)}/connection-token`,{room:Z,connection_id:J},{headers:{...K?{Authorization:`Bearer ${K}`}:{},...h?{"Base44-Functions-Version":h}:{}}})},transport:p==null?void 0:p.actorsTransport,onMintError:p==null?void 0:p.onError}),q={entities:WI({axios:N,appId:o,getSocket:w}),integrations:KI(N,o),connectors:Xce(N,o),auth:P,functions:YI(A,o,{getAuthHeaders:()=>{const H={},Z=c||Sf();return Z&&(H.Authorization=`Bearer ${Z}`),H},baseURL:(n=A.defaults)===null||n===void 0?void 0:n.baseURL}),agents:XI({axios:N,getSocket:w,appId:o,serverUrl:s,token:c}),aiGateway:ZI({serverUrl:s,token:c,appId:o}),appLogs:JI(N,o),app:eue(N,o),users:tue(N,o),analytics:Ece({axiosClient:N,serverUrl:s,appId:o,userAuthModule:P,enabled:(r=l==null?void 0:l.enabled)!==null&&r!==void 0?r:!0}),actors:R.module,cleanup:()=>{q.analytics.cleanup(),R.closeAll(),y&&y.disconnect()}},M={entities:WI({axios:k,appId:o,getSocket:w}),integrations:KI(k,o),sso:Wce(k,o),connectors:Kce(k,o),functions:YI(T,o,{getAuthHeaders:()=>{const H={};return u&&(H.Authorization=`Bearer ${u}`),H},baseURL:(i=T.defaults)===null||i===void 0?void 0:i.baseURL}),agents:XI({axios:k,getSocket:w,appId:o,serverUrl:s,token:c}),aiGateway:ZI({serverUrl:s,token:u,appId:o}),appLogs:JI(k,o),cleanup:()=>{y&&y.disconnect()}};return d&&typeof window<"u"&&setTimeout(async()=>{try{await q.auth.isAuthenticated()||q.auth.redirectToLogin(window.location.href)}catch(H){console.error("Authentication check failed:",H),q.auth.redirectToLogin(window.location.href)}},0),{...q,fetchWithAuth:Zce({axios:N,serviceRoleAxios:k,appId:String(o),serverUrl:s,functionsVersion:h,platformHeaders:x}),setToken(H){q.auth.setToken(H),y&&y.updateConfig({token:H}),g.token=H},getConfig(){return{serverUrl:s,appId:o,requiresAuth:d}},get asServiceRole(){if(!u)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return M}}}const bG=typeof window>"u",hde=bG?{localStorage:new Map}:window,By=hde.localStorage,pde=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),ym=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(bG)return t;const r=`base44_${pde(e)}`,i=new URLSearchParams(window.location.search),s=i.get(e);if(n){i.delete(e);const l=`${window.location.pathname}${i.toString()?`?${i.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,l)}if(s)return By.setItem(r,s),s;if(t)return By.setItem(r,t),t;const o=By.getItem(r);return o||null},mde=()=>(ym("clear_access_token")==="true"&&(By.removeItem("base44_access_token"),By.removeItem("token")),{appId:ym("app_id",{defaultValue:"6a03f8b88f6f721dccc673fe"}),token:ym("access_token",{removeFromUrl:!0}),fromUrl:ym("from_url",{defaultValue:window.location.href}),functionsVersion:ym("functions_version",{defaultValue:"prod"}),appBaseUrl:ym("app_base_url",{defaultValue:void 0})}),ky={...mde()},{appId:gde,token:vde,functionsVersion:yde,appBaseUrl:xde}=ky,Ne=fde({appId:gde,token:vde,functionsVersion:yde,serverUrl:"",requiresAuth:!1,appBaseUrl:xde}),bde=Object.freeze(Object.defineProperty({__proto__:null,base44:Ne},Symbol.toStringTag,{value:"Module"})),wG=O.createContext(),wde=({children:e})=>{const[t,n]=O.useState(null),[r,i]=O.useState(!1),[s,o]=O.useState(!0),[l,c]=O.useState(!0),[u,d]=O.useState(null),[f,p]=O.useState(!1),[h,x]=O.useState(null);O.useEffect(()=>
656{v()},[]);const v=async()=>{var j,_;try{c(!0),d(null);const N=Om({baseURL:"/api/apps/public",headers:{"X-App-Id":ky.appId},token:ky.token,interceptResponses:!0});try{const A=await N.get(`/prod/public-settings/by-id/${ky.appId}`);x(A),ky.token?await g():(o(!1),i(!1),p(!0)),c(!1)}catch(A){if(console.error("App state check failed:",A),A.status===403&&((_=(j=A.data)==null?void 0:j.extra_data)!=null&&_.reason)){const E=A.data.extra_data.reason;d(E==="auth_required"?{type:"auth_required",message:"Authentication required"}:E==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:E,message:A.message})}else d({type:"unknown",message:A.message||"Failed to load app"});c(!1),o(!1)}}catch(N){console.error("Unexpected error:",N),d({type:"unknown",message:N.message||"An unexpected error occurred"}),c(!1),o(!1)}},g=async()=>{try{o(!0);const j=await Ne.auth.me();n(j),i(!0),o(!1),p(!0)}catch(j){console.error("User auth check failed:",j),o(!1),i(!1),p(!0),(j.status===401||j.status===403)&&d({type:"auth_required",message:"Authentication required"})}},y=(j=!0)=>{n(null),i(!1),j?Ne.auth.logout(window.location.href):Ne.auth.logout()},w=()=>{Ne.auth.redirectToLogin(window.location.href)};return a.jsx(wG.Provider,{value:{user:t,isAuthenticated:r,isLoadingAuth:s,isLoadingPublicSettings:l,authError:u,appPublicSettings:h,authChecked:f,logout:y,navigateToLogin:w,checkUserAuth:g,checkAppState:v},children:e})},jG=()=>{const e=O.useContext(wG);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},jde=()=>a.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:a.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:a.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),a.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),a.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),a.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[a.jsx("p",{children:"If you believe this is an error, you can:"}),a.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[a.jsx("li",{children:"Verify you are logged in with the correct account"}),a.jsx("li",{children:"Contact the app administrator for access"}),a.jsx("li",{children:"Try logging out and back in again"})]})]})]})})});function _de({className:e="w-5 h-5"}){return a.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:a.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})}function Nde({className:e="w-5 h-5"}){return a.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:a.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})})}function Sde({className:e="w-5 h-5"}
656){return a.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:a.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})}function oL({className:e="w-5 h-5"}){return a.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:a.jsx("path",{d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"})})}function Ade({className:e="w-5 h-5"}){return a.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:a.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z"})})}const kde={facebook:_de,linkedin:Nde,youtube:Sde,twitter:oL,x:oL,instagram:Ade};function J1({icon:e,className:t}){const n=kde[e==null?void 0:e.toLowerCase()]||null;return n?a.jsx(n,{className:t}):null}const Pde={facebook:"hover:text-[#1877F2] hover:bg-[#1877F2]/10",linkedin:"hover:text-[#0A66C2] hover:bg-[#0A66C2]/10",youtube:"hover:text-[#FF0000] hover:bg-[#FF0000]/10",twitter:"hover:text-foreground hover:bg-muted",x:"hover:text-foreground hover:bg-muted",instagram:"hover:text-[#E4405F] hover:bg-[#E4405F]/10"};function Cde(){const e=vd(),[t,n]=O.useState(!1),r=e.pathname==="/";O.useEffect(()=>{if(!r)return;const o=()=>n(window.scrollY>300);return window.addEventListener("scroll",o,{passive:!0}),()=>window.removeEventListener("scroll",o)},[r]);const{data:i=[]}=Qt({queryKey:["social-links"],queryFn:()=>Ne.entities.SocialMedia.list("display_order",20),staleTime:300*1e3}),s=i.filter(o=>o.is_enabled&&o.show_in_floating_bar).sort((o,l)=>(o.display_order||0)-(l.display_order||0));return!r||!s.length?null:a.jsx("div",{className:`fixed left-4 top-1/2 -translate-y-1/2 z-40 flex flex-col gap-2 transition-all duration-500 ${t?"opacity-100 translate-x-0":"opacity-0 -translate-x-8 pointer-events-none"}`,children:a.jsx("div",{className:"flex flex-col gap-1.5 bg-card/80 backdrop-blur-sm border border-border/60 rounded-2xl p-2 shadow-lg",children:s.map(o=>{var c;const l=Pde[(c=o.icon)==null?void 0:c.toLowerCase()]||"hover:text-primary hover:bg-primary/10";return a.jsx("a",{href:o.url,target:"_blank",rel:"noopener noreferrer","aria-label":o.label||`Follow Governancepedia on ${o.platform}`,title:o.label||`Follow Governancepedia on ${o.platform}`,className:`w-9 h-9 flex items-center justify-center rounded-xl text-muted-foreground transition-all duration-200 ${l} hover:scale-110`,children:a.jsx(J1,{icon:o.icon,className:"w-4 h-4"})},o.id)})})})}function Ede(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Tde=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ode=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Rde={};function lL(e,t){return(Rde.jsx?Ode:Tde).test(e)}const Ide=/[ \t\n\f\r]/g;function Lde(e){return typeof e=="object"?e.type==="text"?cL(e.value):!1:cL(e)}function cL(e){return e.replace(Ide,"")===""}class m0{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}m0.prototype.normal={};m0.prototype.property={};m0.prototype.space=void 0;function _G(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new m0(n,r,t)}function JP(e){return e.toLowerCase()}class to{constructor(t,n){this.attribute=n,this.property=t}}to.prototype.attribute="";to.prototype.booleanish=!1;to.prototype.boolean=!1;to.prototype.commaOrSpaceSeparated=!1;to.prototype.commaSeparated=!1;to.prototype.defined=!1;to.prototype.mustUseProperty=!1;to.prototype.number=!1;to.prototype.overloadedBoolean=!1;to.prototype.property="";to.prototype.spaceSeparated=!1;to.prototype.space=void 0;let Mde=0;const On=Cp(),Gi=Cp(),eC=Cp(),xt=Cp(),Fr=Cp(),Wm=Cp(),No=Cp();function Cp(){return 2**++Mde}const tC=Object.freeze(Object.defineProperty({__proto__:null,boolean:On,booleanish:Gi,commaOrSpaceSeparated:No,commaSeparated:Wm,
vendor: 4,372 bytes, line 656
656number:xt,overloadedBoolean:eC,spaceSeparated:Fr},Symbol.toStringTag,{value:"Module"})),uN=Object.keys(tC);class K4 extends to{constructor(t,n,r,i){let s=-1;if(super(t,n),uL(this,"space",i),typeof r=="number")for(;++s<uN.length;){const o=uN[s];uL(this,uN[s],(r&tC[o])===tC[o])}}}K4.prototype.defined=!0;function uL(e,t,n){n&&(e[t]=n)}function rv(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new K4(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[JP(r)]=r,n[JP(s.attribute)]=r}return new m0(t,n,e.space)}const NG=rv({properties:{ariaActiveDescendant:null,ariaAtomic:Gi,ariaAutoComplete:null,ariaBusy:Gi,ariaChecked:Gi,ariaColCount:xt,ariaColIndex:xt,ariaColSpan:xt,ariaControls:Fr,ariaCurrent:null,ariaDescribedBy:Fr,ariaDetails:null,ariaDisabled:Gi,ariaDropEffect:Fr,ariaErrorMessage:null,ariaExpanded:Gi,ariaFlowTo:Fr,ariaGrabbed:Gi,ariaHasPopup:null,ariaHidden:Gi,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Fr,ariaLevel:xt,ariaLive:null,ariaModal:Gi,ariaMultiLine:Gi,ariaMultiSelectable:Gi,ariaOrientation:null,ariaOwns:Fr,ariaPlaceholder:null,ariaPosInSet:xt,ariaPressed:Gi,ariaReadOnly:Gi,ariaRelevant:null,ariaRequired:Gi,ariaRoleDescription:Fr,ariaRowCount:xt,ariaRowIndex:xt,ariaRowSpan:xt,ariaSelected:Gi,ariaSetSize:xt,ariaSort:null,ariaValueMax:xt,ariaValueMin:xt,ariaValueNow:xt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function SG(e,t){return t in e?e[t]:t}function AG(e,t){return SG(e,t.toLowerCase())}const Dde=rv({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wm,acceptCharset:Fr,accessKey:Fr,action:null,allow:null,allowFullScreen:On,allowPaymentRequest:On,allowUserMedia:On,alt:null,as:null,async:On,autoCapitalize:null,autoComplete:Fr,autoFocus:On,autoPlay:On,blocking:Fr,capture:null,charSet:null,checked:On,cite:null,className:Fr,cols:xt,colSpan:null,content:null,contentEditable:Gi,controls:On,controlsList:Fr,coords:xt|Wm,crossOrigin:null,data:null,dateTime:null,decoding:null,default:On,defer:On,dir:null,dirName:null,disabled:On,download:eC,draggable:Gi,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:On,formTarget:null,headers:Fr,height:xt,hidden:eC,high:xt,href:null,hrefLang:null,htmlFor:Fr,httpEquiv:Fr,id:null,imageSizes:null,imageSrcSet:null,inert:On,inputMode:null,integrity:null,is:null,isMap:On,itemId:null,itemProp:Fr,itemRef:Fr,itemScope:On,itemType:Fr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:On,low:xt,manifest:null,max:null,maxLength:xt,media:null,method:null,min:null,minLength:xt,multiple:On,muted:On,name:null,nonce:null,noModule:On,noValidate:On,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:On,optimum:
656xt,pattern:null,ping:Fr,placeholder:null,playsInline:On,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:On,referrerPolicy:null,rel:Fr,required:On,reversed:On,rows:xt,rowSpan:xt,sandbox:Fr,scope:null,scoped:On,seamless:On,selected:On,shadowRootClonable:On,shadowRootDelegatesFocus:On,shadowRootMode:null,shape:null,size:xt,sizes:null,slot:null,span:xt,spellCheck:Gi,src:null,srcDoc:null,srcLang:null,srcSet:null,start:xt,step:null,style:null,tabIndex:xt,target:null,title:null,translate:null,type:null,typeMustMatch:On,useMap:null,value:Gi,width:xt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Fr,axis:null,background:null,bgColor:null,border:xt,borderColor:null,bottomMargin:xt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:On,declare:On,event:null,face:null,frame:null,frameBorder:null,hSpace:xt,leftMargin:xt,link:null,longDesc:null,lowSrc:null,marginHeight:xt,marginWidth:xt,noResize:On,noHref:On,noShade:On,noWrap:On,object:null,profile:null,prompt:null,rev:null,rightMargin:xt,rules:null,scheme:null,scrolling:Gi,standby:null,summary:null,text:null,topMargin:xt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:xt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:On,disableRemotePlayback:On,prefix:null,property:null,results:xt,security:null,unselectable:null},space:"html",transform:AG}),Fde=rv({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
656-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:No,accentHeight:xt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:xt,amplitude:xt,arabicForm:null,ascent:xt,attributeName:null,attributeType:null,azimuth:xt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:xt,by:null,calcMode:null,capHeight:xt,className:Fr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:xt,diffuseConstant:xt,direction:null,display:null,dur:null,divisor:xt,dominantBaseline:null,download:On,dx:null,dy:null,edgeMode:null,editable:null,elevation:xt,enableBackground:null,end:null,event:null,exponent:xt,externalResourcesRequired:null,fill:null,fillOpacity:xt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Wm,g2:Wm,glyphName:Wm,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:xt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:xt,horizOriginX:xt,horizOriginY:xt,id:null,ideographic:xt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:
656xt,k:xt,k1:xt,k2:xt,k3:xt,k4:xt,kernelMatrix:No,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:xt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:xt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:xt,overlineThickness:xt,paintOrder:null,panose1:null,path:null,pathLength:xt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Fr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:xt,pointsAtY:xt,pointsAtZ:xt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:No,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:No,rev:No,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:No,requiredFeatures:No,requiredFonts:No,requiredFormats:No,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:xt,specularExponent:xt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:xt,strikethroughThickness:xt,string:null,stroke:null,strokeDashArray:No,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:xt,strokeOpacity:xt,strokeWidth:null,style:null,surfaceScale:xt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:No,tabIndex:xt,tableValues:null,target:null,targetX:xt,targetY:xt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:No,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:xt,underlineThickness:xt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:xt,values:null,vAlphabetic:xt,vMathematical:xt,vectorEffect:null,vHanging:xt,vIdeographic:xt,version:null,vertAdvY:xt,vertOriginX:xt,vertOriginY:xt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:xt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:SG}),kG=rv({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 4,105 bytes, lines 656-657
656,space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),PG=rv({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:AG}),CG=rv({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Bde={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},qde=/[A-Z]/g,dL=/-[a-z]/g,zde=/^data[-\w.:]+$/i;function $de(e,t){const n=JP(t);let r=t,i=to;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&zde.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(dL,Gde);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!dL.test(s)){let o=s.replace(qde,Ude);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=K4}return new i(r,t)}function Ude(e){return"-"+e.toLowerCase()}function Gde(e){return e.charAt(1).toUpperCase()}const Vde=_G([NG,Dde,kG,PG,CG],"html"),Y4=_G([NG,Fde,kG,PG,CG],"svg");function Wde(e){return e.join(" ").trim()}var xm={},dN,fL;function Hde(){if(fL)return dN;fL=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,c=` 657`,u="/",d="*",f="",p="comment",h="declaration";function x(g,y){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];y=y||{};var w=1,j=1;function _(M){var V=M.match(t);V&&(w+=V.length);var H=M.lastIndexOf(c);j=~H?M.length-H:j+M.length}function N(){var M={line:w,column:j};return function(V){return V.position=new A(M),T(),V}}function A(M){this.start=M,this.end={line:w,column:j},this.source=y.source}A.prototype.content=g;function E(M){var V=new Error(y.source+":"+w+":"+j+": "+M);if(V.reason=M,V.filename=y.source,V.line=w,V.column=j,V.source=g,!y.silent)throw V}function k(M){var V=M.exec(g);if(V){var H=V[0];return _(H),g=g.slice(H.length),V}}function T(){k(n)}function D(M){var V;for(M=M||[];V=P();)V!==!1&&M.push(V);return M}function P(){var M=N();if(!(u!=g.charAt(0)||d!=g.charAt(1))){for(var V=2;f!=g.charAt(V)&&(d!=g.charAt(V)||u!=g.charAt(V+1));)++V;if(V+=2,f===g.charAt(V-1))return E("End of comment missing");var H=g.slice(2,V-2);return j+=2,_(H),g=g.slice(V),j+=2,M({type:p,comment:H})}}function R(){var M=N(),V=k(r);if(V){if(P(),!k(i))return E("property missing ':'");var H=k(s),Z=M({type:h,property:v(V[0].replace(e,f)),value:H?v(H[0].replace(e,f)):f});return k(o),Z}}function q(){var M=[];D(M);for(var V;V=R();)V!==!1&&(M.push(V),D(M));return M}return T(),q()}function v(g){return g?g.replace(l,f):f}return dN=x,dN}var hL;function Kde(){if(hL)return xm;hL=1;var e=xm&&xm.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(xm,"__esModule",{value:!0}),xm.default=n;const t=e(Hde());function n(r,i){let s=null;if(!r||typeof r!="string")return s;const o=(0,t.default)(r),l=typeof i=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:d}=c;l?i(u,d,c):d&&(s=s||{},s[u]=d)}),s}return xm}var ry={},pL;function Yde(){if(pL)return ry;pL=1,Object.defineProperty(ry,"__esModule",{value:!0}),ry.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(u){return!u||n.test(u)||e.test(u)},o=function(u,d){return d.toUpperCase()},l=function(u,d){return"".concat(d,"-")},c=function(u,d){return d===void 0&&(d={}),s(u)?u:(u=u.toLowerCase(),d.reactCompat?u=u.replace(i,l):u=u.replace(r,l),u.replace(t,o))};return ry.camelCase=c,ry}var iy,mL;function Xde(){if(mL)return iy;mL=1;var e=iy&&iy.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Kde()),n=Yde();function r(i,s){var o={};
vendor: 2,744 bytes, line 657
657return!i||typeof i!="string"||(0,t.default)(i,function(l,c){l&&c&&(o[(0,n.camelCase)(l,s)]=c)}),o}return r.default=r,iy=r,iy}var Qde=Xde();const Zde=Zn(Qde),EG=TG("end"),X4=TG("start");function TG(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Jde(e){const t=X4(e),n=EG(e);if(t&&n)return{start:t,end:n}}function qy(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?gL(e.position):"start"in e||"end"in e?gL(e):"line"in e||"column"in e?nC(e):""}function nC(e){return vL(e&&e.line)+":"+vL(e&&e.column)}function gL(e){return nC(e&&e.start)+"-"+nC(e&&e.end)}function vL(e){return e&&typeof e=="number"?e:1}class cs extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(o=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?s.ruleId=r:(s.source=r.slice(0,c),s.ruleId=r.slice(c+1))}if(!s.place&&s.ancestors&&s.ancestors){const c=s.ancestors[s.ancestors.length-1];c&&(s.place=c.position)}const l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=qy(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}cs.prototype.file="";cs.prototype.name="";cs.prototype.reason="";cs.prototype.message="";cs.prototype.stack="";cs.prototype.column=void 0;cs.prototype.line=void 0;cs.prototype.ancestors=void 0;cs.prototype.cause=void 0;cs.prototype.fatal=void 0;cs.prototype.place=void 0;cs.prototype.ruleId=void 0;cs.prototype.source=void 0;const Q4={}.hasOwnProperty,efe=new Map,tfe=/[A-Z]/g,nfe=new Set(["table","tbody","thead","tfoot","tr"]),rfe=new Set(["td","th"]),OG="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ife(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ffe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,347 bytes, line 657
657if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=dfe(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Y4:Vde,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=RG(i,e,void 0);return s&&typeof s!="string"?s:i.create(e,i.Fragment,{children:s||void 0},void 0)}function RG(e,t,n){if(t.type==="element")return afe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return sfe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return lfe(e,t,n);if(t.type==="mdxjsEsm")return ofe(e,t);if(t.type==="root")return cfe(e,t,n);if(t.type==="text")return ufe(e,t)}function afe(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Y4,e.schema=i),e.ancestors.push(t);const s=LG(e,t.tagName,!1),o=hfe(e,t);let l=J4(e,t);return nfe.has(t.tagName)&&(l=l.filter(function(c){return typeof c=="string"?!Lde(c):!0})),IG(e,o,s,t),Z4(o,l),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function sfe(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ox(e,t.position)}function ofe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ox(e,t.position)}function lfe(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Y4,e.schema=i),e.ancestors.push(t);const s=t.name===null?e.Fragment:LG(e,t.name,!0),o=pfe(e,t),l=J4(e,t);return IG(e,o,s,t),Z4(o,l),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function cfe(e,t,n){const r={};return Z4(r,J4(e,t)),e.create(t,e.Fragment,r,n)}function ufe(e,t){return t.value}function IG(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Z4(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function dfe(e,t,n){return r;function r(i,s,o,l){const u=Array.isArray(o.children)?n:t;return l?u(s,o,l):u(s,o)}}function ffe(e,t){return n;function n(r,i,s,o){const l=Array.isArray(s.children),c=X4(r);return t(i,s,o,l,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function hfe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Q4.call(t.properties,i)){const s=mfe(e,i,t.properties[i]);if(s){const[o,l]=s;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&rfe.has(t.tagName)?r=l:n[o]=l}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function pfe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const o=s.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else ox(e,t.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,s=e.evaluater.evaluateExpression(l.expression)}else ox(e,t.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function J4(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:efe;for(;++r<t.children.length;){const s=t.children[r];let o;if(e.passKeys){const c=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(c){const u=i.get(c)||0;o=c+"-"+u,i.set(c,u+1)}}const l=RG(e,s,o);l!==void 0&&n.push(l)}return n}function mfe(e,t,n){const r=$de(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Ede(n):Wde(n)),r.property==="style"){let i=typeof n=="object"?n:gfe(e,String(n));return e.stylePropertyNameCase==="css"&&(i=vfe(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Bde[r.property]||r.property:r.attribute,n]}}function gfe(e,t){try{return Zde(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new cs("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=OG+"#cannot-parse-style-attribute",i}}function LG(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let s=-1,o;for(;++s<i.length;){const l=lL(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(s&&l.type==="Literal"),optional:!1}:l}r=o}else r=lL(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Q4.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);ox(e)}function ox(e,t){const n=new cs("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=OG+"#cannot-handle-mdx-estrees-without-createevaluater",n}function vfe(e){const t={};let n;for(n in e)Q4.call(e,n)&&(t[yfe(n)]=e[n]);return t}function yfe(e){let t=e.replace(tfe,xfe);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function xfe(e){return"-"+e.toLowerCase()}const fN={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},bfe={};function wfe(e,t){const n=bfe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return MG(e,r,i)}function MG(e,t,n){if(jfe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return yL(e.children,t,n)}return Array.isArray(e)?yL(e,t,n):""}function yL(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=MG(e[i],t,n);return r.join("")}function jfe(e){return!!(e&&typeof e=="object")}const xL=document.createElement("i");function eT(e){const t="&"+e+";";xL.innerHTML=t;const n=xL.textContent;
vendor: 10,925 bytes, line 657
657return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Kc(e,t,n,r){const i=e.length;let s=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function ul(e,t){return e.length>0?(Kc(e,e.length,0,t),e):t}const bL={}.hasOwnProperty;function _fe(e){const t={};let n=-1;for(;++n<e.length;)Nfe(t,e[n]);return t}function Nfe(e,t){let n;for(n in t){const i=(bL.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;if(s)for(o in s){bL.call(i,o)||(i[o]=[]);const l=s[o];Sfe(i[o],Array.isArray(l)?l:l?[l]:[])}}}function Sfe(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Kc(e,0,0,r)}function DG(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Hm(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Rc=Gf(/[A-Za-z]/),Co=Gf(/[\dA-Za-z]/),Afe=Gf(/[#-'*+\--9=?A-Z^-~]/);function rC(e){return e!==null&&(e<32||e===127)}const iC=Gf(/\d/),kfe=Gf(/[\dA-Fa-f]/),Pfe=Gf(/[!-/:-@[-`{-~]/);function bn(e){return e!==null&&e<-2}function Js(e){return e!==null&&(e<0||e===32)}function cr(e){return e===-2||e===-1||e===32}const Cfe=Gf(new RegExp("\\p{P}|\\p{S}","u")),Efe=Gf(/\s/);function Gf(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function iv(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let o="";if(s===37&&Co(e.charCodeAt(n+1))&&Co(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const l=e.charCodeAt(n+1);s<56320&&l>56319&&l<57344?(o=String.fromCharCode(s,l),i=1):o="�"}else o=String.fromCharCode(s);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function zr(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(c){return cr(c)?(e.enter(n),l(c)):t(c)}function l(c){return cr(c)&&s++<i?(e.consume(c),l):(e.exit(n),t(c))}}const Tfe={tokenize:Ofe};function Ofe(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),zr(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),s(l)}function s(l){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return bn(l)?(e.consume(l),e.exit("chunkText"),s):(e.consume(l),o)}}const Rfe={tokenize:Ife},wL={tokenize:Lfe};function Ife(e){const t=this,n=[];let r=0,i,s,o;return l;function l(j){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,c,u)(j)}return u(j)}function c(j){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&w();const _=t.events.length;let N=_,A;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){A=t.events[N][1].end;break}y(r);let E=_;for(;E<t.events.length;)t.events[E][1].end={...A},E++;return Kc(t.events,N+1,0,t.events.slice(_)),t.events.length=E,u(j)}return l(j)}function u(j){if(r===n.length){if(!i)return p(j);if(i.currentConstruct&&i.currentConstruct.concrete)return x(j);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(wL,d,f)(j)}function d(j){return i&&w(),y(r),p(j)}function f(j){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,x(j)}function p(j){return t.containerState={},e.attempt(wL,h,x)(j)}function h(j){return r++,n.push([t.currentConstruct,t.containerState]),p(j)}function x(j){if(j===null){i&&w(),y(0),e.consume(j);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),v(j)}function v(j){if(j===null){g(e.exit("chunkFlow"),!0),y(0),e.consume(j);return}return bn(j)?(e.consume(j),g(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(j),v)}function g(j,_){const N=t.sliceStream(j);if(_&&N.push(null),j.previous=s,s&&(s.next=j),s=j,i.defineSkip(j.start),i.write(N),t.parser.lazy[j.start.line]){let A=i.events.length;for(;A--;)if(i.events[A][1].start.offset<o&&(!i.events[A][1].end||i.events[A][1].end.offset>o))return;const E=t.events.length;let k=E,T,D;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(T){D=t.events[k][1].end;break}T=!0}for(y(r),A=E;A<t.events.length;)t.events[A][1].end={...D},A++;Kc(t.events,k+1,0,t.events.slice(E)),t.events.length=A}}function y(j){let _=n.length;for(;_-- >j;){const N=n[_];t.containerState=N[1],N[0].exit.call(t,e)}n.length=j}function w(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Lfe(e,t,n){return zr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function jL(e){if(e===null||Js(e)||Efe(e))return 1;if(Cfe(e))return 2}function tT(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const aC={name:"attention",resolveAll:Mfe,tokenize:Dfe};function Mfe(e,t){let n=-1,r,i,s,o,l,c,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[n][1].start};_L(f,-c),_L(p,c),o={type:c>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},l={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},s={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[r][1].end={...o.start},e[n][1].start={...l.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ul(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ul(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",s,t]]),u=ul(u,tT(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ul(u,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=ul(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Kc(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Dfe(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=jL(r);let s;return o;function o(c){return s=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===s)return e.consume(c),l;const u=e.exit("attentionSequence"),d=jL(c),f=!d||d===2&&i||n.includes(c),p=!i||i===2&&d||n.includes(r);return u._open=!!(s===42?f:f&&(i||!p)),u._close=!!(s===42?p:p&&(d||!f)),t(c)}}function _L(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ffe={name:"autolink",tokenize:Bfe};function Bfe(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(h){return Rc(h)?(e.consume(h),o):h===64?n(h):u(h)}function o(h){return h===43||h===45||h===46||Co(h)?(r=1,l(h)):u(h)}function l(h){return h===58?(e.consume(h),r=0,c):(h===43||h===45||h===46||Co(h))&&r++<32?(e.consume(h),l):(r=0,u(h))}function c(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||rC(h)?n(h):(e.consume(h),c)}function u(h){return h===64?(e.consume(h),d):Afe(h)?(e.consume(h),u):n(h)}function d(h){return Co(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,d):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||Co(h))&&r++<63){const x=h===45?p:f;return e.consume(h),x}return n(h)}}const L2={partial:!0,tokenize:qfe};function qfe(e,t,n){return r;function r(s){return cr(s)?zr(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||bn(s)?t(s):n(s)}}const FG={continuation:{tokenize:$fe},exit:Ufe,name:"blockQuote",tokenize:zfe};function zfe(e,t,n){const r=this;return i;function i(o){if(o===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return n(o)}function s(o){return cr(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function $fe(e,t,n){const r=this;return i;function i(o){return cr(o)?zr(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(FG,t,n)(o)}}function Ufe(e){e.exit("blockQuote")}const BG={name:"characterEscape",tokenize:Gfe};function Gfe(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return Pfe(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const qG={name:"characterReference",tokenize:Vfe};function Vfe(e,t,n){const r=this;let i=0,s,o;return l;function l(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),s=31,o=Co,d(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=kfe,d):(e.enter("characterReferenceValue"),s=7,o=iC,d(f))}function d(f){if(f===59&&i){const p=e.exit("characterReferenceValue");return o===Co&&!eT(r.sliceSerialize(p))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<s?(e.consume(f),d):n(f)}}const NL={partial:!0,tokenize:Hfe},SL={concrete:!0,name:"codeFenced",tokenize:Wfe};function Wfe(e,t,n){const r=this,i={partial:!0,tokenize:N};let s=0,o=0,l;return c;function c(A){return u(A)}function u(A){const E=r.events[r.events.length-1];return s=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,l=A,e.enter("co
657deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(A)}function d(A){return A===l?(o++,e.consume(A),d):o<3?n(A):(e.exit("codeFencedFenceSequence"),cr(A)?zr(e,f,"whitespace")(A):f(A))}function f(A){return A===null||bn(A)?(e.exit("codeFencedFence"),r.interrupt?t(A):e.check(NL,v,_)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(A))}function p(A){return A===null||bn(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(A)):cr(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),zr(e,h,"whitespace")(A)):A===96&&A===l?n(A):(e.consume(A),p)}function h(A){return A===null||bn(A)?f(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(A))}function x(A){return A===null||bn(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(A)):A===96&&A===l?n(A):(e.consume(A),x)}function v(A){return e.attempt(i,_,g)(A)}function g(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),y}function y(A){return s>0&&cr(A)?zr(e,w,"linePrefix",s+1)(A):w(A)}function w(A){return A===null||bn(A)?e.check(NL,v,_)(A):(e.enter("codeFlowValue"),j(A))}function j(A){return A===null||bn(A)?(e.exit("codeFlowValue"),w(A)):(e.consume(A),j)}function _(A){return e.exit("codeFenced"),t(A)}function N(A,E,k){let T=0;return D;function D(V){return A.enter("lineEnding"),A.consume(V),A.exit("lineEnding"),P}function P(V){return A.enter("codeFencedFence"),cr(V)?zr(A,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):R(V)}function R(V){return V===l?(A.enter("codeFencedFenceSequence"),q(V)):k(V)}function q(V){return V===l?(T++,A.consume(V),q):T>=o?(A.exit("codeFencedFenceSequence"),cr(V)?zr(A,M,"whitespace")(V):M(V)):k(V)}function M(V){return V===null||bn(V)?(A.exit("codeFencedFence"),E(V)):k(V)}}}function Hfe(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const hN={name:"codeIndented",tokenize:Yfe},Kfe={partial:!0,tokenize:Xfe};function Yfe(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),zr(e,s,"linePrefix",5)(u)}function s(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?c(u):bn(u)?e.attempt(Kfe,o,c)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||bn(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),l)}function c(u){return e.exit("codeIndented"),t(u)}}function Xfe(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):bn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):zr(e,s,"linePrefix",5)(o)}function s(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):bn(o)?i(o):n(o)}}const Qfe={name:"codeText",previous:Jfe,resolve:Zfe,tokenize:ehe};function Zfe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Jfe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ehe(e,t,n){let r=0,i,s;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),l(f)}function l(f){return f===96?(e.consume(f),r++,l):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(s=e.enter("codeTextSequence"),i=0,d(f)):bn(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||bn(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),u)}function d(f){return f===96?(e.consume(f),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(s.type="codeTextData",u(f))}}class the{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ay(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ay(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ay(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ay(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ay(this.left,n.reverse())}}}function ay(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function zG(e){const t={};let n=-1,r,i,s,o,l,c,u;const d=new the(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,s=0,s<c.length&&c[s][1].type==="lineEndingBlank"&&(s+=2),s<c.length&&c[s][1].type==="content"))for(;++s<c.length&&c[s][1].type!=="content";)c[s][1].type==="chunkText"&&(c[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,nhe(d,n)),n=t[n],u=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(o=d.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},l=d.slice(i,n),l.unshift(r),d.splice(i,n-i+1,l))}}return Kc(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function nhe(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,c=[],u={};let d,f,p=-1,h=n,x=0,v=0;const g=[v];for(;h;){for(;e.get(++i)[1]!==h;);s.push(i),h._tokenizer||(d=r.sliceStream(h),h.next||d.push(null),f&&o.defineSki
vendor: 18,639 bytes, line 657
657p(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++p<l.length;)l[p][0]==="exit"&&l[p-1][0]==="enter"&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(v=p+1,g.push(v),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){const y=l.slice(g[p],g[p+1]),w=s.pop();c.push([w,w+y.length-1]),e.splice(w,2,y)}for(c.reverse(),p=-1;++p<c.length;)u[x+c[p][0]]=x+c[p][1],x+=c[p][1]-c[p][0]-1;return u}const rhe={resolve:ahe,tokenize:she},ihe={partial:!0,tokenize:ohe};function ahe(e){return zG(e),e}function she(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?s(l):bn(l)?e.check(ihe,o,s)(l):(e.consume(l),i)}function s(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function o(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function ohe(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),zr(e,s,"linePrefix")}function s(o){if(o===null||bn(o))return n(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function $G(e,t,n,r,i,s,o,l,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return f;function f(y){return y===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(y),e.exit(s),p):y===null||y===32||y===41||rC(y)?n(y):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),v(y))}function p(y){return y===62?(e.enter(s),e.consume(y),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(l),p(y)):y===null||y===60||bn(y)?n(y):(e.consume(y),y===92?x:h)}function x(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function v(y){return!d&&(y===null||y===41||Js(y))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(y)):d<u&&y===40?(e.consume(y),d++,v):y===41?(e.consume(y),d--,v):y===null||y===32||y===40||rC(y)?n(y):(e.consume(y),y===92?g:v)}function g(y){return y===40||y===41||y===92?(e.consume(y),v):v(y)}}function UG(e,t,n,r,i,s){const o=this;let l=0,c;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(s),d}function d(h){return l>999||h===null||h===91||h===93&&!c||h===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(s),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):bn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||bn(h)||l++>999?(e.exit("chunkString"),d(h)):(e.consume(h),c||(c=!cr(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),l++,f):f(h)}}function GG(e,t,n,r,i,s){let o;return l;function l(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,c):n(p)}function c(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(s),u(p))}function u(p){return p===o?(e.exit(s),c(o)):p===null?n(p):bn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),zr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===o||p===null||bn(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:d)}function f(p){return p===o||p===92?(e.consume(p),d):d(p)}}function zy(e,t){let n;return r;function r(i){return bn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):cr(i)?zr(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const lhe={name:"definition",tokenize:uhe},che={partial:!0,tokenize:dhe};function uhe(e,t,n){const r=this;let i;return s;function s(h){return e.enter("definition"),o(h)}function o(h){return UG.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function l(h){return i=Hm(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),c):n(h)}function c(h){return Js(h)?zy(e,u)(h):u(h)}function u(h){return $G(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function d(h){return e.attempt(che,f,f)(h)}function f(h){return cr(h)?zr(e,p,"whitespace")(h):p(h)}function p(h){return h===null||bn(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function dhe(e,t,n){return r;function r(l){return Js(l)?zy(e,i)(l):n(l)}function i(l){return GG(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return cr(l)?zr(e,o,"whitespace")(l):o(l)}function o(l){return l===null||bn(l)?t(l):n(l)}}const fhe={name:"hardBreakEscape",tokenize:hhe};function hhe(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return bn(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const phe={name:"headingAtx",resolve:mhe,tokenize:ghe};function mhe(e,t){let n=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Kc(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function ghe(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),s(d)}function s(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||Js(d)?(e.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||bn(d)?(e.exit("atxHeading"),t(d)):cr(d)?zr(e,l,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),l(d))}function u(d){return d===null||d===35||Js(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),u)}}const vhe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],AL=["pre","script","style","textarea"],yhe={concrete:!0,name:"htmlFlow",resolveTo:whe,tokenize:jhe},xhe={partial:!0,tokenize:Nhe},bhe={partial:!0,tokenize:_he};function whe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function jhe(e,t,n){const r=this;let i,s,o,l,c;return u;function u(z){return d(z)}function d(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),f}function f(z){return z===33?(e.consume(z),p):z===47?(e.consume(z),s=!0,v):z===63?(e.consume(z),i=3,r.interrupt?t:F):Rc(z)?(e.consume(z),o=String.fromCharCode(z),g):n(z)}function p(z){return z===45?(e.consume(z),i=2,h):z===91?(e.consume(z),i=5,l=0,x):Rc(z)?(e.consume(z),i=4,r.interrupt?t:F):n(z)}function h(z){return z===45?(e.consume(z),r.interrupt?t:F):n(z)}function x(z){const ee="CDATA[";return z===ee.charCodeAt(l++)?(e.consume(z),l===ee.length?r.interrupt?t:R:x):n(z)}function v(z){return Rc(z)?(e.consume(z),o=String.fromCharCode(z),g):n(z)}function g(z){if(z===null||z===47||z===62||Js(z)){const ee=z===47,te=o.toLowerCase();return!ee&&!s&&AL.includes(te)?(i=1,r.interrupt?t(z):R(z)):vhe.includes(o.toLowerCase())?(i=6,ee?(e.consume(z),y):r.interrupt?t(z):R(z)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(z):s?w(z):j(z))}return z===45||Co(z)?(e.consume(z),o+=String.fromCharCode(z),g):n(z)}function y(z){return z===62?(e.consume(z),r.interrupt?t:R):n(z)}function w(z){return cr(z)?(e.consume(z),w):D(z)}function j(z){return z===47?(e.consume(z),D):z===58||z===95||Rc(z)?(e.consume(z),_):cr(z)?(e.consume(z),j):D(z)}function _(z){return z===45||z===46||z===58||z===95||Co(z)?(e.consume(z),_):N(z)}function N(z){return z===61?(e.consume(z),A):cr(z)?(e.consume(z),N):j(z)}function A(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),c=z,E):cr(z)?(e.consume(z),A):k(z)}function E(z){return z===c?(e.consume(z),c=null,T):z===null||bn(z)?n(z):(e.consume(z),E)}function k(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||Js(z)?N(z):(e.consume(z),k)}function T(z){return z===47||z===62||cr(z)?j(z):n(z)}function D(z){return z===62?(e.consume(z),P):n(z)}function P(z){return z===null||bn(z)?R(z):cr(z)?(e.consume(z),P):n(z)}function R(z){return z===45&&i===2?(e.consume(z),H):z===60&&i===1?(e.consume(z),Z):z===62&&i===4?(e.consume(z),$):z===63&&i===3?(e.consume(z),F):z===93&&i===5?(e.consume(z),K):bn(z)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(xhe,B,q)(z)):z===null||bn(z)?(e.exit("htmlFlowData"),q(z)):(e.consume(z),R)}function q(z){return e.check(bhe,M,B)(z)}function M(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),V}function V(z){return z===null||bn(z)?q(z):(e.enter("htmlFlowData"),R(z))}function H(z){return z===45?(e.consume(z),F):R(z)}function Z(z){return z===47?(e.consume(z),o="",J):R(z)}function J(z){if(z===62){const ee=o.toLowerCase();return AL.includes(ee)?(e.consume(z),$):R(z)}return Rc(z)&&o.length<8?(e.consume(z),o+=String.fromCharCode(z),J):R(z)}function K(z){return z===93?(e.consume(z),F):R(z)}function F(z){return z===62?(e.consume(z),$):z===45&&i===2?(e.consume(z),F):R(z)}function $(z){return z===null||bn(z)?(e.exit("htmlFlowData"),B(z)):(e.consume(z),$)}function B(z){return e.exit("htmlFlow"),t(z)}}function _he(e,t,n){const r=this;return i;function i(o){return bn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function Nhe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(L2,t,n)}}const She={name:"htmlText",tokenize:Ahe};function Ahe(e,t,n){const r=this;let i,s,o;return l;function l(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),c}function c(F){return F===33?(e.consume(F),u):F===47?(e.consume(F),N):F===63?(e.consume(F),j):Rc(F)?(e.consume(F),k):n(F)}function u(F){return F===45?(e.consume(F),d):F===91?(e.consume(F),s=0,x):Rc(F)?(e.consume(F),w):n(F)}function d(F){return F===45?(e.consume(F),h):n(F)}function f(F){return F===null?n(F):F===45?(e.consume(F),p):bn(F)?(o=f,Z(F)):(e.consume(F),f)}function p(F){return F===45?(e.consume(F),h):f(F)}function h(F){return F===62?H(F):F===45?p(F):f(F)}function x(F){const $="CDATA[";return F===$.charCodeAt(s++)?(e.consume(F),s===$.length?v:x):n(F)}function v(F){return F===null?n(F):F===93?(e.consume(F),g):bn(F)?(o=v,Z(F)):(e.consume(F),v)}function g(F){return F===93?(e.consume(F),y):v(F)}function y(F){return F===62?H(F):F===93?(e.consume(F),y):v(F)}function w(F){return F===null||F===62?H(F):bn(F)?(o=w,Z(F)):(e.consume(F),w)}function j(F){return F===null?n(F):F===63?(e.consume(F),_):bn(F)?(o=j,Z(F)):(e.consume(F),j)}function _(F){return F===62?H(F):j(F)}function N(F){return Rc(F)?(e.consume(F),A):n(F)}function A(F){return F===45||Co(F)?(e.consume(F),A):E(F)}function E(F){return bn(F)?(o=E,Z(F)):cr(F)?(e.consume(F),E):H(F)}function k(F){return F===45||Co(F)?(e.consume(F),k):F===47||F===62||Js(F)?T(F):n(F)}function T(F){return F===47?(e.consume(F),H):F===58||F===95||Rc(F)?(e.consume(F),D):bn(F)?(o=T,Z(F)):cr(F)?(e.consume(F),T):H(F)}function D(F){return F===45||F===46||F===58||F===95||Co(F)?(e.consume(F),D):P(F)}function P(F){return F===61?(e.consume(F),R):bn(F)?(o=P,Z(F)):cr(F)?(e.consume(F),P):T(F)}function R(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),i=F,q):bn(F)?(o=R,Z(F)):cr(F)?(e.consume(F),R):(e.consume(F),M)}function q(F){return F===i?(e.consume(F),i=void 0,V):F===null?n(F):bn(F)?(o=q,Z(F)):(e.consume(F),q)}function M(F){return F===null||F===34||F===39||F===60||F===61||F===96?n(F):F===47||F===62||Js(F)?T(F):(e.consume(F),M)}function V(F){return F===47||F===62||Js(F)?T(F):n(F)}function H(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),t):n(F)}function Z(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),J}function J(F){return cr(F)?zr(e,K,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):K(F)}function K(F){return e.enter("htmlTextData"),o(F)}}const nT={name:"labelEnd",resolveAll:Ehe,resolveTo:The,tokenize:Ohe},khe={tokenize:Rhe},Phe={tokenize:Ihe},Che={tokenize:Lhe};function Ehe(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Kc(e,0,e.length,n),e}function The(e,t){let n=e.length,r=0,i,s,o,l;for(;n--;)if(i=e[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const c={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[s][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",c,t],["enter",u,t]],l=ul(l,e.slice(s+1,s+r+3)),l=ul(l,[["enter",d,t]]),l=ul(l,tT(t.parser.constructs.insideSpan.null,e.slice(s+r+4,o-3),t)),l=ul(l,[["exit",d,t],e[o-2],e[o-1],["exit",u,t]]),l=ul(l,e.slice(o+1)),l=ul(l,[["exit",c,t]]),Kc(e,s,e.length,l),e}function Ohe(e,t,n){const r=this;let i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return l;function l(p){return s?s._inactive?f(p):(o=r.parser.defined.includes(Hm(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),c):n(p)}function c(p){return p===40?e.attempt(khe,d,o?d:f)(p):p===91?e.attempt(Phe,d,o?u:f)(p):o?d(p):f(p)}function u(p){return e.attempt(Che,d,f)(p)}function d(p){return t(p)}function f(p){return s._balanced=!0,n(p)}}function Rhe(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return Js(f)?zy(e,s)(f):s(f)}function s(f){return f===41?d(f):$G(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Js(f)?zy(e,c)(f):d(f)}function l(f){return n(f)}function c(f){return f===34||f===39||f===40?GG(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function u(f){return Js(f)?zy(e,d)(f):d(f)}function d(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Ihe(e,t,n){const r=this;return i;function i(l){return UG.call(r,e,s,o,"reference","referenceMarker","referenceString")(l)}function s(l){return r.parser.defined.includes(Hm(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function o(l){return n(l)}}function Lhe(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const Mhe={name:"labelStartImage",resolveAll:nT.resolveAll,tokenize:Dhe};function Dhe(e,t,n){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),s}function s(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Fhe={name:"labelStartLink",resolveAll:nT.resolveAll,tokenize:Bhe};function Bhe(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const pN={name:"lineEnding",tokenize:qhe};function qhe(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),zr(e,t,"linePrefix")}}const S1={name:"thematicBreak",tokenize:zhe};function zhe(e,t,n){let r=0,i;return s;function s(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,l(u)}function l(u){return u===i?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||bn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function c(u){return u===i?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),cr(u)?zr(e,l,"whitespace")(u):l(u))}}const Hs={continuation:{tokenize:Vhe},exit:Hhe,name:"list",tokenize:Ghe},$he={partial:!0,tokenize:Khe},Uhe={partial:!0,tokenize:Whe};function Ghe(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(h){const x=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:iC(h)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(S1,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(h)}return n(h)}function c(h){return iC(h)&&++o<10?(e.consume(h),c):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(L2,r.interrupt?n:d,e.attempt($he,p,f))}
vendor: 4,746 bytes, line 657
657function d(h){return r.containerState.initialBlankLine=!0,s++,p(h)}function f(h){return cr(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Vhe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(L2,i,s);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,zr(e,t,"listItemIndent",r.containerState.size+1)(l)}function s(l){return r.containerState.furtherBlankLines||!cr(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Uhe,t,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,zr(e,e.attempt(Hs,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Whe(e,t,n){const r=this;return zr(e,i,"listItemIndent",r.containerState.size+1);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(s):n(s)}}function Hhe(e){e.exit(this.containerState.type)}function Khe(e,t,n){const r=this;return zr(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const o=r.events[r.events.length-1];return!cr(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const kL={name:"setextUnderline",resolveTo:Yhe,tokenize:Xhe};function Yhe(e,t){let n=e.length,r,i,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",o,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function Xhe(e,t,n){const r=this;let i;return s;function s(u){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===i?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),cr(u)?zr(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||bn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Qhe={tokenize:Zhe};function Zhe(e){const t=this,n=e.attempt(L2,r,e.attempt(this.parser.constructs.flowInitial,i,zr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(rhe,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Jhe={resolveAll:WG()},epe=VG("string"),tpe=VG("text");function VG(e){return{resolveAll:WG(e==="text"?npe:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,o,l);return o;function o(d){return u(d)?s(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return u(d)?(n.exit("data"),s(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const f=i[d];let p=-1;if(f)for(;++p<f.length;){const h=f[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function WG(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function npe(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let s=i.length,o=-1,l=0,c;for(;s--;){const u=i[s];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(u===-2)c=!0,l++;else if(u!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const u={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:r.start._bufferIndex+o,_index:r.start._index+s,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}
vendor: 5,095 bytes, lines 657-659
657const rpe={42:Hs,43:Hs,45:Hs,48:Hs,49:Hs,50:Hs,51:Hs,52:Hs,53:Hs,54:Hs,55:Hs,56:Hs,57:Hs,62:FG},ipe={91:lhe},ape={[-2]:hN,[-1]:hN,32:hN},spe={35:phe,42:S1,45:[kL,S1],60:yhe,61:kL,95:S1,96:SL,126:SL},ope={38:qG,92:BG},lpe={[-5]:pN,[-4]:pN,[-3]:pN,33:Mhe,38:qG,42:aC,60:[Ffe,She],91:Fhe,92:[fhe,BG],93:nT,95:aC,96:Qfe},cpe={null:[aC,Jhe]},upe={null:[42,95]},dpe={null:[]},fpe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:upe,contentInitial:ipe,disable:dpe,document:rpe,flow:spe,flowInitial:ape,insideSpan:cpe,string:ope,text:lpe},Symbol.toStringTag,{value:"Module"}));function hpe(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let o=[],l=[];const c={attempt:E(N),check:E(A),consume:w,enter:j,exit:_,interrupt:E(A,{interrupt:!0})},u={code:null,containerState:{},defineSkip:v,events:[],now:x,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:f};let d=t.tokenize.call(u,c);return t.resolveAll&&s.push(t),u;function f(P){return o=ul(o,P),g(),o[o.length-1]!==null?[]:(k(t,0),u.events=tT(s,u.events,u),u.events)}function p(P,R){return mpe(h(P),R)}function h(P){return ppe(o,P)}function x(){const{_bufferIndex:P,_index:R,line:q,column:M,offset:V}=r;return{_bufferIndex:P,_index:R,line:q,column:M,offset:V}}function v(P){i[P.line]=P.column,D()}function g(){let P;for(;r._index<o.length;){const R=o[r._index];if(typeof R=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<R.length;)y(R.charCodeAt(r._bufferIndex));else y(R)}}function y(P){d=d(P)}function w(P){bn(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,D()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=P}function j(P,R){const q=R||{};return q.type=P,q.start=x(),u.events.push(["enter",q,u]),l.push(q),q}function _(P){const R=l.pop();return R.end=x(),u.events.push(["exit",R,u]),R}function N(P,R){k(P,R.from)}function A(P,R){R.restore()}function E(P,R){return q;function q(M,V,H){let Z,J,K,F;return Array.isArray(M)?B(M):"tokenize"in M?B([M]):$(M);function $(X){return ne;function ne(le){const re=le!==null&&X[le],he=le!==null&&X.null,be=[...Array.isArray(re)?re:re?[re]:[],...Array.isArray(he)?he:he?[he]:[]];return B(be)(le)}}function B(X){return Z=X,J=0,X.length===0?H:z(X[J])}function z(X){return ne;function ne(le){return F=T(),K=X,X.partial||(u.currentConstruct=X),X.name&&u.parser.constructs.disable.null.includes(X.name)?te():X.tokenize.call(R?Object.assign(Object.create(u),R):u,c,ee,te)(le)}}function ee(X){return P(K,F),V}function te(X){return F.restore(),++J<Z.length?z(Z[J]):H}}}function k(P,R){P.resolveAll&&!s.includes(P)&&s.push(P),P.resolve&&Kc(u.events,R,u.events.length-R,P.resolve(u.events.slice(R),u)),P.resolveTo&&(u.events=P.resolveTo(u.events,u))}function T(){const P=x(),R=u.previous,q=u.currentConstruct,M=u.events.length,V=Array.from(l);return{from:M,restore:H};function H(){r=P,u.previous=R,u.currentConstruct=q,u.events.length=M,l=V,D()}}function D(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ppe(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,s)];else{if(o=e.slice(n,i),r>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}s>0&&o.push(e[i].slice(0,s))}return o}function mpe(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const s=e[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=` 658`;break}case-3:{o=`\r 659`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}function gpe(e){const r={constructs:_fe([fpe,...(e||{}).extensions||[]]),content:i(Tfe),defined:[],document:i(Rfe),flow:i(Qhe),lazy:{},string:i(epe),text:i(tpe)};return r;function i(s){return o;function o(l){return hpe(r,s,l)}}}function vpe(e){for(;!zG(e););return e}const PL=/[\0\t\n\r]/g;function ype(){let e=1,t="",n=!0,r;return i;function i(s,o,l){const c=[];let u,d,f,p,h;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),f=0,t="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(PL.lastIndex=f,u=PL.exec(s),p=u&&u.index!==void 0?u.index:s.length,h=s.charCodeAt(p),!u){t=s.slice(f);break}if(h===10&&f===p&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),f<p&&(c.push(s.slice(f,p)),e+=p-f),h){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}f=p+1}return l&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const xpe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bpe(e){return e.replace(xpe,wpe)}function wpe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return DG(n.slice(s?2:1),s?16:10)}return eT(n)||e}const HG={}.hasOwnProperty;function jpe(e,t,n){return typeof t!="string"&&(n=t,t=void 0),_pe(n)(vpe(gpe(n).document().write(ype()(e,t,!0))
vendor: 10,387 bytes, line 659
659))}function _pe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(we),autolinkProtocol:T,autolinkEmail:T,atxHeading:s(ue),blockQuote:s(he),characterEscape:T,characterReference:T,codeFenced:s(be),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(be,o),codeText:s(ve,o),codeTextData:T,data:T,codeFlowValue:T,definition:s(ze),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(He),hardBreakEscape:s(Ue),hardBreakTrailing:s(Ue),htmlFlow:s(ut,o),htmlFlowData:T,htmlText:s(ut,o),htmlTextData:T,image:s(Ee),label:o,link:s(we),listItem:s(We),listItemValue:p,listOrdered:s(Ye,f),listUnordered:s(Ye),paragraph:s(Be),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(ue),strong:s(dt),thematicBreak:s(Nt)},exit:{atxHeading:c(),atxHeadingSequence:N,autolink:c(),autolinkEmail:re,autolinkProtocol:le,blockQuote:c(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:X,characterReference:ne,codeFenced:c(g),codeFencedFence:v,codeFencedFenceInfo:h,codeFencedFenceMeta:x,codeFlowValue:D,codeIndented:c(y),codeText:c(V),codeTextData:D,data:D,definition:c(),definitionDestinationString:_,definitionLabelString:w,definitionTitleString:j,emphasis:c(),hardBreakEscape:c(R),hardBreakTrailing:c(R),htmlFlow:c(q),htmlFlowData:D,htmlText:c(M),htmlTextData:D,image:c(Z),label:K,labelText:J,lineEnding:P,link:c(H),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ee,resourceDestinationString:F,resourceTitleString:$,resource:B,setextHeading:c(k),setextHeadingLineSequence:E,setextHeadingText:A,strong:c(),thematicBreak:c()}};KG(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(De){let et={type:"root",children:[]};const ot={stack:[et],tokenStack:[],config:t,enter:l,exit:u,buffer:o,resume:d,data:n},ht=[];let mt=-1;for(;++mt<De.length;)if(De[mt][1].type==="listOrdered"||De[mt][1].type==="listUnordered")if(De[mt][0]==="enter")ht.push(mt);else{const jt=ht.pop();mt=i(De,jt,mt)}for(mt=-1;++mt<De.length;){const jt=t[De[mt][0]];HG.call(jt,De[mt][1].type)&&jt[De[mt][1].type].call(Object.assign({sliceSerialize:De[mt][2].sliceSerialize},ot),De[mt][1])}if(ot.tokenStack.length>0){const jt=ot.tokenStack[ot.tokenStack.length-1];(jt[1]||CL).call(ot,void 0,jt[0])}for(et.position={start:af(De.length>0?De[0][1].start:{line:1,column:1,offset:0}),end:af(De.length>0?De[De.length-2][1].end:{line:1,column:1,offset:0})},mt=-1;++mt<t.transforms.length;)et=t.transforms[mt](et)||et;return et}function i(De,et,ot){let ht=et-1,mt=-1,jt=!1,ar,jn,fn,pn;for(;++ht<=ot;){const Tn=De[ht];switch(Tn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Tn[0]==="enter"?mt++:mt--,pn=void 0;break}case"lineEndingBlank":{Tn[0]==="enter"&&(ar&&!pn&&!mt&&!fn&&(fn=ht),pn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:pn=void 0}if(!mt&&Tn[0]==="enter"&&Tn[1].type==="listItemPrefix"||mt===-1&&Tn[0]==="exit"&&(Tn[1].type==="listUnordered"||Tn[1].type==="listOrdered")){if(ar){let zt=ht;for(jn=void 0;zt--;){const In=De[zt];if(In[1].type==="lineEnding"||In[1].type==="lineEndingBlank"){if(In[0]==="exit")continue;jn&&(De[jn][1].type="lineEndingBlank",jt=!0),In[1].type="lineEnding",jn=zt}else if(!(In[1].type==="linePrefix"||In[1].type==="blockQuotePrefix"||In[1].type==="blockQuotePrefixWhitespace"||In[1].type==="blockQuoteMarker"||In[1].type==="listItemIndent"))break}fn&&(!jn||fn<jn)&&(ar._spread=!0),ar.end=Object.assign({},jn?De[jn][1].start:Tn[1].end),De.splice(jn||ht,0,["exit",ar,Tn[2]]),ht++,ot++}if(Tn[1].type==="listItemPrefix"){const zt={type:"listItem",_spread:!1,start:Object.assign({},Tn[1].start),end:void 0};ar=zt,De.splice(ht,0,["enter",zt,Tn[2]]),ht++,ot++,fn=void 0,pn=!0}}}return De[et][1]._spread=jt,ot}function s(De,et){return ot;function ot(ht){l.call(this,De(ht),ht),et&&et.call(this,ht)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(De,et,ot){this.stack[this.stack.length-1].children.push(De),this.stack.push(De),this.tokenStack.push([et,ot||void 0]),De.position={start:af(et.start),end:void 0}}function c(De){return et;function et(ot){De&&De.call(this,ot),u.call(this,ot)}}function u(De,et){const ot=this.stack.pop(),ht=this.tokenStack.pop();if(ht)ht[0].type!==De.type&&(et?et.call(this,De,ht[0]):(ht[1]||CL).call(this,De,ht[0]));else throw new Error("Cannot close `"+De.type+"` ("+qy({start:De.start,end:De.end})+"): itâs not open");ot.position.end=af(De.end)}function d(){return wfe(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(De){if(this.data.expectingFirstListItemValue){const et=this.stack[this.stack.length-2];et.start=Number.parseInt(this.sliceSerialize(De),10),this.data.expectingFirstListItemValue=void 0}}function h(){const De=this.resume(),et=this.stack[this.stack.length-1];et.lang=De}function x(){const De=this.resume(),et=this.stack[this.stack.length-1];et.meta=De}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const De=this.resume(),et=this.stack[this.stack.length-1];et.value=De.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const De=this.resume(),et=this.stack[this.stack.length-1];et.value=De.replace(/(\r?\n|\r)$/g,"")}function w(De){const et=this.resume(),ot=this.stack[this.stack.length-1];ot.label=et,ot.identifier=Hm(this.sliceSerialize(De)).toLowerCase()}function j(){const De=this.resume(),et=this.stack[this.stack.length-1];et.title=De}function _(){const De=this.resume(),et=this.stack[this.stack.length-1];et.url=De}function N(De){const et=this.stack[this.stack.length-1];if(!et.depth){const ot=this.sliceSerialize(De).length;et.depth=ot}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function E(De){const et=this.stack[this.stack.length-1];et.depth=this.sliceSerialize(De).codePointAt(0)===61?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function T(De){const ot=this.stack[this.stack.length-1].children;let ht=ot[ot.length-1];(!ht||ht.type!=="text")&&(ht=St(),ht.position={start:af(De.start),end:void 0},ot.push(ht)),this.stack.push(ht)}function D(De){const et=this.stack.pop();et.value+=this.sliceSerialize(De),et.position.end=af(De.end)}function P(De){const et=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ot=et.children[et.children.length-1];ot.position.end=af(De.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(et.type)&&(T.call(this,De),D.call(this,De))}function R(){this.data.atHardBreak=!0}function q(){const De=this.resume(),et=this.stack[this.stack.length-1];et.value=De}function M(){const De=this.resume(),et=this.stack[this.stack.length-1];et.value=De}function V(){const De=this.resume(),et=this.stack[this.stack.length-1];et.value=De}function H(){const De=this.stack[this.stack.length-1];if(this.data.inReference){const et=this.data.referenceType||"shortcut";De.type+="Reference",De.referenceType=et,delete De.url,delete De.title}else delete De.identifier,delete De.label;this.data.referenceType=void 0}function Z(){const De=this.stack[this.stack.length-1];if(this.data.inReference){const et=this.data.referenceType||"shortcut";De.type+="Reference",De.referenceType=et,delete De.url,delete De.title}else delete De.identifier,delete De.label;this.data.referenceType=void 0}function J(De){const et=this.sliceSerialize(De),ot=this.stack[this.stack.length-2];ot.label=bpe(et),ot.identifier=Hm(et).toLowerCase()}function K(){const De=this.stack[this.stack.length-1],et=this.resume(),ot=this.stack[this.stack.length-1];if(this.data.inReference=!0,ot.type==="link"){const ht=De.children;ot.children=ht}else ot.alt=et}function F(){const De=this.resume(),et=this.stack[this.stack.length-1];et.url=De}function $(){const De=this.resume(),et=this.stack[this.stack.length-1];et.title=De}function B(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function ee(De){const et=this.resume(),ot=this.stack[this.stack.length-1];ot.label=et,ot.identifier=Hm(this.sliceSerialize(De)).toLowerCase(),this.data.referenceType="full"}function te(De){this.data.characterReferenceType=De.type}function X(De){const et=this.sliceSerialize(De),ot=this.data.characterReferenceType;let ht;ot?(ht=DG(et,ot==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ht=eT(et);const mt=this.stack[this.stack.length-1];mt.value+=ht}function ne(De){const et=this.stack.pop();et.position.end=af(De.end)}function le(De){D.call(this,De);const et=this.stack[this.stack.length-1];et.url=this.sliceSerialize(De)}function re(De){D.call(this,De);const et=this.stack[this.stack.length-1];et.url="mailto:"+this.sliceSerialize(De)}function he(){return{type:"blockquote",children:[]}}function be(){return{type:"code",lang:null,meta:null,value:""}}function ve(){return{type:"inlineCode",value:""}}function ze(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function He(){return{type:"emphasis",children:[]}}function ue(){return{type:"heading",depth:0,children:[]}}function Ue(){return{type:"break"}}function ut(){return{type:"html",value:""}}function Ee(){return{type:"image",title:null,url:"",alt:null}}function we(){return{type:"link",title:null,url:"",children:[]}}function Ye(De){return{type:"list",ordered:De.type==="listOrdered",start:null,spread:De._spread,children:[]}}function We(De){return{type:"listItem",spread:De._spread,checked:null,children:[]}}function Be(){return{type:"paragraph",children:[]}}function dt(){return{type:"strong",children:[]}}function St(){return{type:"text",value:""}}function Nt(){return{type:"thematicBreak"}}}function af(e){return{line:e.line,column:e.column,offset:e.offset}}function KG(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?KG(e,r):Npe(e,r)}}function Npe(e,t){let n;for(n in t)if(HG.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function CL(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+qy({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+qy({start:t.start,end:t.end}
vendor: 9,136 bytes, lines 659-663
659)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+qy({start:t.start,end:t.end})+") is still open")}function Spe(e){const t=this;t.parser=n;function n(r){return jpe(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ape(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function kpe(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 660`}]}function Ppe(e,t){const n=t.value?t.value+` 661`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function Cpe(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Epe(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Tpe(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=iv(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let o,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=s+1,l+=1,e.footnoteCounts.set(r,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)}function Ope(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Rpe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function YG(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Ipe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return YG(e,t);const i={src:iv(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)}function Lpe(e,t){const n={src:iv(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Mpe(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Dpe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return YG(e,t);const i={href:iv(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function Fpe(e,t){const n={href:iv(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Bpe(e,t,n){const r=e.all(t),i=n?qpe(n):XG(t),s={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const d=r[l];(i||l!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:` 662`}),d.type==="element"&&d.tagName==="p"&&!i?o.push(...d.children):o.push(d)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:` 663`});const u={type:"element",tagName:"li",properties:s,children:o};return e.patch(t,u),e.applyData(t,u)}function qpe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=XG(n[r])}return t}function XG(e){const t=e.spread;return t??e.children.length>1}function zpe(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function $pe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Upe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Gpe(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Vpe(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=X4(t.children[1]),c=EG(t.children[t.children.length-1]);l&&c&&(o.position={start:l,end:c}),i.push(o)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function Wpe(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:t.children.length;let c=-1;const u=[];for(;++c<l;){const f=t.children[c],p={},h=o?o[c]:void 0;h&&(p.align=h);let x={type:"element",tagName:s,properties:p,children:[]};f&&(x.children=e.all(f),e.patch(f,x),x=e.applyData(f,x)),u.push(x)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function Hpe(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const EL=9,TL=32;function Kpe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(OL(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(OL(t.slice(i),i>0,!1)),s.join("")}function OL(e,t,n){let r=0,i=e.length;if(t){let s=e.codePointAt(r);for(;s===EL||s===TL;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(i-1);for(;s===EL||s===TL;)i--,s=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Ype(e,t){const n={type:"text",value:Kpe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Xpe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Qpe={blockquote:Ape,break:kpe,code:Ppe,delete:Cpe,emphasis:Epe,footnoteReference:Tpe,heading:Ope,html:Rpe,imageReference:Ipe,image:Lpe,inlineCode:Mpe,linkReference:Dpe,link:Fpe,listItem:Bpe,list:zpe,paragraph:$pe,root:Upe,strong:Gpe,table:Vpe,tableCell:Hpe,tableRow:Wpe,text:Ype,thematicBreak:Xpe,toml:Cb,yaml:Cb,definition:Cb,footnoteDefinition:Cb};function Cb(){}const QG=-1,M2=0,$y=1,ew=2,rT=3,iT=4,aT=5,sT=6,ZG=7,JG=8,RL=typeof self=="object"?self:globalThis,Zpe=(e,t)=>{const n=(i,s)=>(e.set(s,i),i),r=i=>{if(e.has(i))return e.get(i);const[s,o]=t[i];switch(s){case M2:case QG:return n(o,i);case $y:{const l=n([],i);for(const c of o)l.push(r(c));return l}case ew:{const l=n({},i);for(const[c,u]of o)l[r(c)]=r(u);return l}case rT:return n(new Date(o),i);case iT:{const{source:l,flags:c}=o;return n(new RegExp(l,c),i)}case aT:{const l=n(new Map,i);for(const[c,u]of o)l.set(r(c),r(u));return l}case sT:{const l=n(new Set,i);for(const c of o)l.add(r(c));return l}case ZG:{const{name:l,message:c}=o;return n(new RL[l](c),i)}case JG:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:l}=new Uint8Array(o);return n(new DataView(l),o)}}return n(new RL[s](o),i)};return r},IL=e=>Zpe(new Map,e)(0),bm="",{toString:Jpe}={},{keys:eme}=Object,sy=e=>{const t=typeof e;if(t!=="object"||!e)return[M2,t];const n=Jpe.call(e).slice(8,-1);switch(n){case"Array":return[$y,bm];case"Object":return[ew,bm];case"Date":return[rT,bm];case"RegExp":return[iT,bm];case"Map":return[aT,bm];case"Set":return[sT,bm];case"DataView":return[$y,n]}return n.includes("Array")?[$y,n]:n.includes("Error")?[ZG,n]:[ew,n]},Eb=([e,t])=>e===M2&&(t==="function"||t==="symbol"),tme=(e,t,n,r)=>{const i=(o,l)=>{const c=r.push(o)-1;return n.set(l,c),c},s=o=>
vendor: 5,483 bytes, lines 663-665
663{if(n.has(o))return n.get(o);let[l,c]=sy(o);switch(l){case M2:{let d=o;switch(c){case"bigint":l=JG,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return i([QG],o)}return i([l,d],o)}case $y:{if(c){let p=o;return c==="DataView"?p=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(p=new Uint8Array(o)),i([c,[...p]],o)}const d=[],f=i([l,d],o);for(const p of o)d.push(s(p));return f}case ew:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(t&&"toJSON"in o)return s(o.toJSON());const d=[],f=i([l,d],o);for(const p of eme(o))(e||!Eb(sy(o[p])))&&d.push([s(p),s(o[p])]);return f}case rT:return i([l,o.toISOString()],o);case iT:{const{source:d,flags:f}=o;return i([l,{source:d,flags:f}],o)}case aT:{const d=[],f=i([l,d],o);for(const[p,h]of o)(e||!(Eb(sy(p))||Eb(sy(h))))&&d.push([s(p),s(h)]);return f}case sT:{const d=[],f=i([l,d],o);for(const p of o)(e||!Eb(sy(p)))&&d.push(s(p));return f}}const{message:u}=o;return i([l,{name:c,message:u}],o)};return s},LL=(e,{json:t,lossy:n}={})=>{const r=[];return tme(!(t||n),!!t,new Map,r)(e),r},tw=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?IL(LL(e,t)):structuredClone(e):(e,t)=>IL(LL(e,t));function nme(e,t){const n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function rme(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function ime(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||nme,r=e.options.footnoteBackLabel||rme,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const d=e.all(u),f=String(u.identifier).toUpperCase(),p=iv(f.toLowerCase());let h=0;const x=[],v=e.footnoteCounts.get(f);for(;v!==void 0&&++h<=v;){x.length>0&&x.push({type:"text",value:" "});let w=typeof n=="string"?n:n(c,h);typeof w=="string"&&(w={type:"text",value:w}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,h),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const g=d[d.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const w=g.children[g.children.length-1];w&&w.type==="text"?w.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...x)}else d.push(...x);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(u,y),l.push(y)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...tw(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` 664`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` 665`}]}}const eV=(function(e){if(e==null)return lme;if(typeof e=="function")return D2(e);if(typeof e=="object")return Array.isArray(e)?ame(e):sme(e);if(typeof e=="string")return ome(e);throw new Error("Expected function, string, or object as test")});function ame(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=eV(e[n]);return D2(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function sme(e){const t=e;return D2(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function ome(e){return D2(t);function t(n){return n&&n.type===e}}function D2(e){return t;function t(n,r,i){return!!(cme(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function lme(){return!0}function cme(e){return e!==null&&typeof e=="object"&&"type"in e}const tV=[],ume=!0,ML=!1,dme="skip";function fme(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=eV(i),o=r?-1:1;l(e,void 0,[])();function l(c,u,d){const f=c&&typeof c=="object"?c:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(c.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=tV,x,v,g;if((!t||s(c,u,d[d.length-1]||void 0))&&(h=hme(n(c,d)),h[0]===ML))return h;if("children"in c&&c.children){const y=c;if(y.children&&h[0]!==dme)for(v=(r?y.children.length:-1)+o,g=d.concat(y);v>-1&&v<y.children.length;){const w=y.children[v];if(x=l(w,v,g)(),x[0]===ML)return x;v=typeof x[1]=="number"?x[1]:v+o}}return h}}}function hme(e){return Array.isArray(e)?e:typeof e=="number"?[ume,e]:e==null?tV:[e]}function nV(e,t,n,r){let i,s,o;typeof t=="function"&&typeof n!="function"?(s=void 0,o=t,i=n):(s=t,o=n,i=r),fme(e,s,l,i);function l(c,u){const d=u[u.length-1],f=d?d.children.indexOf(c):void 0;return o(c,f,d)}}const sC={}.hasOwnProperty,pme={};function mme(e,t){const n=t||pme,r=new Map,i=new Map,s=new Map,o={...Qpe,...n.handlers},l={all:u,applyData:vme,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:o,one:c,options:n,patch:gme,wrap:xme};return nV(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?r:i,p=String(d.identifier).toUpperCase();f.has(p)||f.set(p,d)}}),l;function c(d,f){const p=d.type,h=l.handlers[p];if(sC.call(l.handlers,p)&&h)return h(l,d,f);
vendor: 12,596 bytes, lines 665-669
665if(l.options.passThrough&&l.options.passThrough.includes(p)){if("children"in d){const{children:v,...g}=d,y=tw(g);return y.children=l.all(d),y}return tw(d)}return(l.options.unknownHandler||yme)(l,d,f)}function u(d){const f=[];if("children"in d){const p=d.children;let h=-1;for(;++h<p.length;){const x=l.one(p[h],d);if(x){if(h&&p[h-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=DL(x.value)),!Array.isArray(x)&&x.type==="element")){const v=x.children[0];v&&v.type==="text"&&(v.value=DL(v.value))}Array.isArray(x)?f.push(...x):f.push(x)}}}return f}}function gme(e,t){e.position&&(t.position=Jde(e))}function vme(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&s&&Object.assign(n.properties,tw(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function yme(e,t){const n=t.data||{},r="value"in t&&!(sC.call(n,"hProperties")||sC.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xme(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 666`});++r<e.length;)r&&n.push({type:"text",value:` 667`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 668`}),n}function DL(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function FL(e,t){const n=mme(e,t),r=n.one(e,void 0),i=ime(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:` 669`},i),s}function bme(e,t){return e&&"run"in e?async function(n,r){const i=FL(n,{file:r,...t});await e.run(i,r)}:function(n,r){return FL(n,{file:r,...e||t})}}function BL(e){if(e)throw e}var mN,qL;function wme(){if(qL)return mN;qL=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},s=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!f)return!1;var p;for(p in u);return typeof p>"u"||e.call(u,p)},o=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},l=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(r)return r(u,d).value}else return;return u[d]};return mN=function c(){var u,d,f,p,h,x,v=arguments[0],g=1,y=arguments.length,w=!1;for(typeof v=="boolean"&&(w=v,v=arguments[1]||{},g=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});g<y;++g)if(u=arguments[g],u!=null)for(d in u)f=l(v,d),p=l(u,d),v!==p&&(w&&p&&(s(p)||(h=i(p)))?(h?(h=!1,x=f&&i(f)?f:[]):x=f&&s(f)?f:{},o(v,{name:d,newValue:c(w,x,p)})):typeof p<"u"&&o(v,{name:d,newValue:p}));return v},mN}var jme=wme();const gN=Zn(jme);function oC(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)}function _me(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...i);function l(c,...u){const d=e[++s];let f=-1;if(c){o(c);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,d?Nme(d,l)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Nme(e,t){let n;return r;function r(...o){const l=e.length>o.length;let c;l&&o.push(i);try{c=e.apply(this,o)}catch(u){const d=u;if(l&&n)throw d;return i(d)}l||(c&&c.then&&typeof c.then=="function"?c.then(s,i):c instanceof Error?i(c):s(c))}function i(o,...l){n||(n=!0,t(o,...l))}function s(o){i(null,o)}}const Cc={basename:Sme,dirname:Ame,extname:kme,join:Pme,sep:"/"};function Sme(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');g0(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Ame(e){if(g0(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function kme(e){g0(e);let t=e.length,n=-1,r=0,i=-1,s=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Pme(...e){let t=-1,n;for(;++t<e.length;)g0(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Cme(n)}function Cme(e){g0(e);const t=e.codePointAt(0)===47;let n=Eme(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Eme(e,t){let n="",r=0,i=-1,s=0,o=-1,l,c;for(;++o<=e.length;){if(o<e.length)l=e.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,s=0}else l===46&&s>-1?s++:s=-1}return n}function g0(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Tme={cwd:Ome};function Ome(){return"/"}function lC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Rme(e){if(typeof e=="string")e=new URL(e);else if(!lC(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Ime(e)}function Ime(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const vN=["history","path","basename","stem","extname","dirname"];class rV{constructor(t){let n;t?lC(t)?n={path:t}:typeof t=="string"||Lme(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Tme.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<vN.length;){const s=vN[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)vN.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Cc.basename(this.path):void 0}set basename(t){xN(t,"basename"),yN(t,"basename"),this.path=Cc.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Cc.dirname(this.path):void 0}set dirname(t){zL(this.basename,"dirname"),this.path=Cc.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Cc.extname(this.path):void 0}set extname(t){if(yN(t,"extname"),zL(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Cc.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){lC(t)&&(t=Rme(t)),xN(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Cc.basename(this.path,this.extname):void 0}set stem(t){xN(t,"stem"),yN(t,"stem"),this.path=Cc.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new cs(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function yN(e,t){if(e&&e.includes(Cc.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Cc.sep+"`")}function xN(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function zL(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Lme(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Mme=(function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),Dme={}.hasOwnProperty;class oT extends Mme{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=_me()}copy(){const t=new oT;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(gN(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(jN("data",this.frozen),this.namespace[t]=n,this):Dme.call(this.namespace,t)&&this.namespace[t]||void 0:t?(jN("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Tb(t),r=this.parser||this.Parser;return bN("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),bN("process",this.parser||this.Parser),wN("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,o){const l=Tb(t),c=r.parse(l);r.run(c,l,function(d,f,p){if(d||!f||!p)return u(d);const h=f,x=r.stringify(h,p);qme(x)?p.value=x:p.result=x,u(d,p)});function u(d,f){d||!f?o(d):s?s(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),bN("processSync",this.parser||this.Parser),wN("processSync",this.compiler||this.Compiler),this.process(t,i),UL("processSync","process",n),r;function i(s,o){n=!0,BL(s),r=o}}run(t,n,r){$L(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,l){const c=Tb(n);i.run(t,c,u);function u(d,f,p){const h=f||t;d?l(d):o?o(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),UL("runSync","run",r),i;function s(o,l){BL(o),i=l,r=!0}}stringify(t,n){this.freeze();const r=Tb(n),i=this.compiler||this.Compiler;return wN("stringify",i),$L(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(jN("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...f]=u;c(d,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(u.plugins),u.settings&&(i.settings=gN(!0,i.settings,u.settings))}function l(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const f=u[d];s(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,d){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===u){p=f;break}if(p===-1)r.push([u,...d]);else if(d.length>0){let[h,...x]=d;
669const v=r[p][1];oC(v)&&oC(h)&&(h=gN(!0,v,h)),r[p]=[u,h,...x]}}}}const Fme=new oT().freeze();function bN(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function wN(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function jN(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function $L(e){if(!oC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function UL(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Tb(e){return Bme(e)?e:new rV(e)}function Bme(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function qme(e){return typeof e=="string"||zme(e)}function zme(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $me="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",GL=[],VL={allowDangerousHtml:!0},Ume=/^(https?|ircs?|mailto|xmpp)$/i,Gme=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ep(e){const t=Vme(e),n=Wme(e);return Hme(t.runSync(t.parse(n),n),e)}function Vme(e){const t=e.rehypePlugins||GL,n=e.remarkPlugins||GL,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...VL}:VL;return Fme().use(Spe).use(n).use(bme,r).use(t)}function Wme(e){const t=e.children||"",n=new rV;return typeof t=="string"&&(n.value=t),n}function Hme(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,s=t.disallowedElements,o=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||Kme;for(const d of Gme)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+$me+d.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),nV(e,u),ife(e,{Fragment:a.Fragment,components:i,ignoreInvalidStyle:!0,jsx:a.jsx,jsxs:a.jsxs,passKeys:!0,passNode:!0});function u(d,f,p){if(d.type==="raw"&&p&&typeof f=="number")return o?p.children.splice(f,1):p.children[f]={type:"text",value:d.value},f;if(d.type==="element"){let h;for(h in fN)if(Object.hasOwn(fN,h)&&Object.hasOwn(d.properties,h)){const x=d.properties[h],v=fN[h];(v===null||v.includes(d.tagName))&&(d.properties[h]=c(String(x||""),h,d))}}if(d.type==="element"){let h=n?!n.includes(d.tagName):s?s.includes(d.tagName):!1;if(!h&&r&&typeof f=="number"&&(h=!r(d,f,p)),h&&p&&typeof f=="number")return l&&d.children?p.children.splice(f,1,...d.children):p.children.splice(f,1),f}}}function Kme(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Ume.test(e.slice(0,t))?e:""}const Yme="modulepreload",Xme=function(e){return"/"+e},WL={},A1=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let o=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=o(n.map(u=>{if(u=Xme(u),u in WL)return;WL[u]=!0;const d=u.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const p=document.createElement("link");if(p.rel=d?"stylesheet":Yme,d||(p.as="script"),p.crossOrigin="",p.href=u,c&&p.setAttribute("nonce",c),document.head.appendChild(p),d)return new Promise((h,x)=>{p.addEventListener("load",h),p.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&s(l.reason);return t().catch(s)})},iV={en:{code:"en",name:"English",flag:"ð¬ð§",nativeName:"English"},fr:{code:"fr",name:"French",flag:"ð«ð·",nativeName:"Français"},de:{code:"de",name:"German",flag:"ð©ðª",nativeName:"Deutsch"},es:{code:"es",name:"Spanish",flag:"ðªð¸",nativeName:"Español"},sk:{code:"sk",name:"Slovak",flag:"ð¸ð°",nativeName:"SlovenÄina"}},Ob={en:"English",fr:"French (Français)",de:"German (Deutsch)",es:"Spanish (Español)",sk:"Slovak (SlovenÄina)"},Qme={nav:{aiTools:{en:"AI Tools",fr:"Outils IA",de:"KI-Tools",es:"Herramientas IA"},microTools:{en:"Micro Tools",fr:"Micro-Outils",de:"Mikro-Tools",es:"Micro-Herramientas"},intelligence:{en:"Intelligence",fr:"Intelligence",de:"Intelligenz",es:"Inteligencia"},dashboard:{en:"Dashboard",fr:"Tableau de bord",de:"Dashboard",es:"Panel"},pricing:{en:"Pricing",fr:"Tarifs",de:"Preise",es:"Precios"},partners:{en:"Partners",fr:"Partenaires",de:"Partner",es:"Socios"},creators:{en:"Creators",fr:"Créateurs",de:"Ersteller",es:"Creadores"},glossary:{en:"Glossary",fr:"Glossaire",de:"Glossar",es:"Glosario"},admin:{en:"Admin",fr:"Admin",de:"Admin",es:"Admin"},signOut:{en:"Sign Out",fr:"Se déconnecter",de:"Abmelden",es:"Cerrar sesión"},getStarted:{en:"Get Started",fr:"Commencer",de:"Loslegen",es:"Empezar"},healthCheck:{en:"Health Check",fr:"Bilan de Santé",de:"Gesundheitscheck",es:"Chequeo de Salud"},policyGenerator:{en:"Policy Generator",fr:"Générateur de Politiques",de:"Richtlinien-Generator",es:"Generador de PolÃticas"},riskAnalyzer:{en:"Risk Analyzer",fr:"Analyseur de Risques",de:"Risiko-Analyse",es:"Analizador de Riesgos"},decisionEngine:{en:"Decision Engine",fr:"Moteur de Décision",de
669:"Entscheidungs-Engine",es:"Motor de Decisiones"},healthCheckDesc:{en:"Assess governance maturity",fr:"Ãvaluer la maturité de la gouvernance",de:"Governance-Reife bewerten",es:"Evaluar la madurez de gobernanza"},policyGenDesc:{en:"Generate governance documents",fr:"Générer des documents de gouvernance",de:"Governance-Dokumente erstellen",es:"Generar documentos de gobernanza"},riskAnalyzerDesc:{en:"Identify operational risks",fr:"Identifier les risques opérationnels",de:"Operationelle Risiken erkennen",es:"Identificar riesgos operativos"},decisionEngineDesc:{en:"AI governance advisory",fr:"Conseil IA en gouvernance",de:"KI-Governance-Beratung",es:"AsesorÃa IA en gobernanza"}},sage:{subtitle:{en:"Your AI governance guide",fr:"Votre guide IA en gouvernance",de:"Ihr KI-Governance-Leitfaden",es:"Su guÃa IA de gobernanza"},greeting:{en:"Hi! I'm Sage",fr:"Salut ! Je suis Sage",de:"Hallo! Ich bin Sage",es:"¡Hola! Soy Sage"},intro:{en:"I'm here to help you navigate Governancepedia and answer any questions about governance, risk, and compliance.",fr:"Je suis là pour vous aider à naviguer sur Governancepedia et à répondre à toutes vos questions sur la gouvernance, les risques et la conformité.",de:"Ich bin hier, um Ihnen bei der Navigation auf Governancepedia zu helfen und alle Fragen zu Governance, Risiko und Compliance zu beantworten.",es:"Estoy aquà para ayudarte a navegar Governancepedia y responder cualquier pregunta sobre gobernanza, riesgos y cumplimiento."},askPlaceholder:{en:"Ask Sage anything...",fr:"Demandez à Sage...",de:"Sage etwas fragen...",es:"Pregunta a Sage..."},tooltip:{en:"Ask Sage",fr:"Demander à Sage",de:"Sage fragen",es:"Preguntar a Sage"},newConversation:{en:"New conversation",fr:"Nouvelle conversation",de:"Neue Konversation",es:"Nueva conversación"},close:{en:"Close",fr:"Fermer",de:"SchlieÃen",es:"Cerrar"},qWhatCanIDo:{en:"What can I do here?",fr:"Que puis-je faire ici ?",de:"Was kann ich hier tun?",es:"¿Qué puedo hacer aquÃ?"},qHowToStart:{en:"How do I get started?",fr:"Comment commencer ?",de:"Wie fange ich an?",es:"¿Cómo empiezo?"},qWhyImportant:{en:"Why is governance important?",fr:"Pourquoi la gouvernance est-elle importante ?",de:"Warum ist Governance wichtig?",es:"¿Por qué es importante la gobernanza?"},qHowHelps:{en:"How does this platform help me?",fr:"Comment cette plateforme m'aide-t-elle ?",de:"Wie hilft mir diese Plattform?",es:"¿Cómo me ayuda esta plataforma?"},error:{en:"Sorry, I encountered an error. Please try again in a moment.",fr:"Désolé, j'ai rencontré une erreur. Veuillez réessayer dans un instant.",de:"Entschuldigung, ein Fehler ist aufgetreten. Bitte versuchen Sie es gleich erneut.",es:"Lo siento, encontré un error. Por favor, inténtalo de nuevo en un momento."}},hero:{badge:{en:"AI-Powered Governance Intelligence",fr:"Intelligence de Gouvernance par IA",de:"KI-gestützte Governance-Intelligenz",es:"Inteligencia de Gobernanza con IA"},title1:{en:"The Intelligence Engine for",fr:"Le Moteur d'Intelligence pour la",de:"Die Intelligenz-Engine für",es:"El Motor de Inteligencia para"},title2:{en:"Governance",fr:"Gouvernance",de:"Governance",es:"Gobernanza"},title3:{en:"& Oversight",fr:"& Surveillance",de:"& Aufsicht",es:"y Supervisión"},description:{en:"Identify governance gaps, evaluate risks, generate policies, and improve operational oversight â all powered by advanced AI analysis and advisory.",fr:"Identifiez les lacunes de gouvernance, évaluez les risques, générez des politiques et améliorez la surveillance opérationnelle â le tout propulsé par une analyse et un conseil IA avancés.",de:"Identifizieren Sie Governance-Lücken, bewerten Sie Risiken, erstellen Sie Richtlinien und verbessern Sie die operative Aufsicht â alles unterstützt durch fortschrittliche KI-Analyse und Beratung.",es:"Identifique brechas de gobernanza, evalúe riesgos, genere polÃticas y mejore la supervisión operativa â todo impulsado por análisis y asesoramiento avanzado con IA."},startHealthCheck:{en:"Start Health Check",fr:"Démarrer le Bilan",de:"Gesundheitscheck starten",es:"Iniciar Chequeo de Salud"},tryPremium:{en:"Try Premium Free for 30 Days",fr:"Essayer Premium Gratuitement pendant 30 jours",de:"Premium 30 Tage kostenlos testen",es:"Prueba Premium Gratis por 30 DÃas"},trustedBy:{en:"Trusted by",fr:"Approuvé par",de:"Vertraut von",es:"Confiado por"},governanceProfessionals:{en:"governance professionals",fr:"professionnels de la gouvernance",de:"Governance-Experten",es:"profesionales de gobernanza"},governanceMaturity:{en:"Governance Maturity",fr:"Maturité de Gouvernance",de:"Governance-Reife",es:"Madurez de Gobernanza"}
669,controls:{en:"Controls",fr:"Contrôles",de:"Kontrollen",es:"Controles"},oversight:{en:"Oversight",fr:"Surveillance",de:"Aufsicht",es:"Supervisión"},compliance:{en:"Compliance",fr:"Conformité",de:"Compliance",es:"Cumplimiento"},aiInsight:{en:"AI Insight:",fr:"Information IA :",de:"KI-Einblick:",es:"Información IA:"},aiInsightText:{en:"Vendor oversight framework needs strengthening. 3 critical gaps detected.",fr:"Le cadre de surveillance des fournisseurs doit être renforcé. 3 lacunes critiques détectées.",de:"Framework für Lieferantenaufsicht muss gestärkt werden. 3 kritische Lücken erkannt.",es:"El marco de supervisión de proveedores necesita reforzarse. 3 brechas crÃticas detectadas."},governanceScore:{en:"Governance Score",fr:"Score de Gouvernance",de:"Governance-Score",es:"Puntuación de Gobernanza"},riskLevel:{en:"Risk Level",fr:"Niveau de Risque",de:"Risikoniveau",es:"Nivel de Riesgo"},aiAnalysis:{en:"AI Analysis",fr:"Analyse IA",de:"KI-Analyse",es:"Análisis IA"},moderate:{en:"Moderate",fr:"Modéré",de:"Moderat",es:"Moderado"},complete:{en:"Complete",fr:"Terminé",de:"Abgeschlossen",es:"Completo"}},features:{sectionTitle:{en:"AI-Powered Governance Tools",fr:"Outils de Gouvernance par IA",de:"KI-gestützte Governance-Tools",es:"Herramientas de Gobernanza con IA"},sectionDesc:{en:"A comprehensive suite of intelligent tools designed to transform how organizations approach governance and oversight.",fr:"Une suite complète d'outils intelligents conçus pour transformer la façon dont les organisations abordent la gouvernance et la surveillance.",de:"Eine umfassende Suite intelligenter Tools, die transformieren, wie Organisationen Governance und Aufsicht angehen.",es:"Una suite integral de herramientas inteligentes diseñadas para transformar cómo las organizaciones abordan la gobernanza y la supervisión."},launchTool:{en:"Launch tool",fr:"Lancer l'outil",de:"Tool starten",es:"Iniciar herramienta"},f1Title:{en:"AI Governance Health Check",fr:"Bilan de Gouvernance IA",de:"KI-Governance-Check",es:"Chequeo de Gobernanza IA"},f1Desc:{en:"Comprehensive governance maturity assessment with AI-generated insights, gap analysis, and actionable recommendations.",fr:"Ãvaluation complète de la maturité de gouvernance avec insights générés par IA, analyse des lacunes et recommandations actionnables.",de:"Umfassende Bewertung der Governance-Reife mit KI-generierten Erkenntnissen, Lückenanalyse und umsetzbaren Empfehlungen.",es:"Evaluación integral de madurez de gobernanza con insights generados por IA, análisis de brechas y recomendaciones accionables."},f2Title:{en:"Policy & Documents Generator",fr:"Générateur de Politiques & Documents",de:"Richtlinien- & Dokument-Generator",es:"Generador de PolÃticas y Documentos"},f2Desc:{en:"Generate professional governance policies, frameworks, charters, and operational procedures with AI precision.",fr:"Générez des politiques de gouvernance professionnelles, des cadres, des chartes et des procédures opérationnelles avec une précision IA.",de:"Erstellen Sie professionelle Governance-Richtlinien, Frameworks, Charta und operative Verfahren mit KI-Präzision.",es:"Genere polÃticas de gobernanza profesionales, marcos, cartas y procedimientos operativos con precisión IA."},f3Title:{en:"Risk & Oversight Analyzer",fr:"Analyseur de Risques & Surveillance",de:"Risiko- & Aufsichts-Analyse",es:"Analizador de Riesgos y Supervisión"},f3Desc:{en:"Identify governance risks, operational blind spots, vendor dependencies, and oversight weaknesses.",fr:"Identifiez les risques de gouvernance, les angles morts opérationnels, les dépendances fournisseurs et les faiblesses de surveillance.",de:"Identifizieren Sie Governance-Risiken, operative blinde Flecken, Lieferantenabhängigkeiten und Aufsichtsschwächen.",es:"Identifique riesgos de gobernanza, puntos ciegos operativos, dependencias de proveedores y debilidades de supervisión."},f4Title:{en:"AI Decision Engine",fr:"Moteur de Décision IA",de:"KI-Entscheidungs-Engine",es:"Motor de Decisión IA"},f4Desc:{en:"Ask complex governance questions and receive AI-powered analysis with governance impact assessments.",fr:"Posez des questions complexes de gouvernance et recevez une analyse IA avec des évaluations d'impact de gouvernance.",de:"Stellen Sie komplexe Governance-Fragen und erhalten Sie KI-gestützte Analysen mit Governance-Auswirkungsbeurteilungen.",es:"Haga preguntas complejas de gobernanza y reciba análisis con IA y evaluaciones de impacto de gobernanza."},f5Title:{en:"Governance Micro Tools",fr:"Micro-Outils de Gouvernance",de:"Governance Mikro-Tools",es:"Micro-Herramientas de Gobernanza"},f5Desc:{en:"Dozens of specialized AI tools for risk scoring, compliance checks, vendor analysis, and more.",fr:"Des dizaines d'outils IA spécialisés pour la notation des risques, les vérifications de conformité, l'analyse des fournisseurs, et plus.",de:"Dutzende spezialisierter KI-Tools für Risikobewertung, C
669ompliance-Checks, Lieferantenanalyse und mehr.",es:"Docenas de herramientas IA especializadas para puntuación de riesgos, verificaciones de cumplimiento, análisis de proveedores y más."},f6Title:{en:"Intelligence Engine",fr:"Moteur d'Intelligence",de:"Intelligenz-Engine",es:"Motor de Inteligencia"},f6Desc:{en:"AI-generated governance trends, oversight insights, and operational intelligence reports.",fr:"Tendances de gouvernance générées par IA, insights de surveillance et rapports d'intelligence opérationnelle.",de:"KI-generierte Governance-Trends, Aufsichtserkenntnisse und operative Intelligence-Berichte.",es:"Tendencias de gobernanza generadas por IA, insights de supervisión e informes de inteligencia operativa."}},trial:{badge:{en:"30-Day Free Trial",fr:"Essai Gratuit de 30 jours",de:"30 Tage kostenlos testen",es:"Prueba Gratis de 30 DÃas"},title:{en:"Try Premium free for 30 days",fr:"Essayez Premium gratuitement pendant 30 jours",de:"Premium 30 Tage kostenlos testen",es:"Prueba Premium gratis por 30 dÃas"},description:{en:"Get full access to every governance intelligence tool â unlimited assessments, AI reports, policy generators, and exports. No credit card required to start.",fr:"Obtenez un accès complet à tous les outils d'intelligence de gouvernance â évaluations illimitées, rapports IA, générateurs de politiques et exportations. Aucune carte de crédit requise pour commencer.",de:"Erhalten Sie vollen Zugriff auf alle Governance-Intelligence-Tools â unbegrenzte Bewertungen, KI-Berichte, Richtlinien-Generatoren und Exporte. Keine Kreditkarte erforderlich.",es:"Obtenga acceso completo a todas las herramientas de inteligencia de gobernanza â evaluaciones ilimitadas, informes IA, generadores de polÃticas y exportaciones. No se requiere tarjeta de crédito."},startFreeTrial:{en:"Start Free Trial",fr:"Commencer l'essai gratuit",de:"Kostenlos starten",es:"Iniciar Prueba Gratis"},viewPlans:{en:"View Plans",fr:"Voir les offres",de:"Pläne ansehen",es:"Ver Planes"},activating:{en:"Activating...",fr:"Activation...",de:"Wird aktiviert...",es:"Activando..."},alreadyPremium:{en:"You already have Premium access!",fr:"Vous avez déjà accès à Premium !",de:"Sie haben bereits Premium-Zugriff!",es:"¡Ya tiene acceso Premium!"},trialActivated:{en:"Your 30-day Premium trial is now active!",fr:"Votre essai Premium de 30 jours est maintenant actif !",de:"Ihre 30-tägige Premium-Testphase ist jetzt aktiv!",es:"¡Su prueba Premium de 30 dÃas está activa!"},trialFailed:{en:"Could not start your trial. Please try again.",fr:"Impossible de démarrer votre essai. Veuillez réessayer.",de:"Testphase konnte nicht gestartet werden. Bitte erneut versuchen.",es:"No se pudo iniciar su prueba. Inténtelo de nuevo."},benefit1:{en:"Unlimited AI credits",fr:"Crédits IA illimités",de:"Unbegrenzte KI-Credits",es:"Créditos IA ilimitados"},benefit2:{en:"All governance assessments",fr:"Toutes les évaluations de gouvernance",de:"Alle Governance-Bewertungen",es:"Todas las evaluaciones de gobernanza"},benefit3:{en:"PDF & Word exports",fr:"Exportations PDF et Word",de:"PDF- & Word-Exporte",es:"Exportaciones PDF y Word"},benefit4:{en:"Maturity benchmarking",fr:"Analyse comparative de maturité",de:"Reife-Benchmarking",es:"Benchmarking de madurez"},benefit5:{en:"Advanced risk dashboards",fr:"Tableaux de bord de risques avancés",de:"Erweiterte Risiko-Dashboards",es:"Paneles de riesgo avanzados"},benefit6:{en:"Priority AI processing",fr:"Traitement IA prioritaire",de:"Priorisierte KI-Verarbeitung",es:"Procesamiento IA prioritario"}},community:{joinCommunity:{en:"Join the Community",fr:"Rejoindre la Communauté",de:"Der Community beitreten",es:"Ãnete a la Comunidad"},title:{en:"Join the Governancepedia Community",fr:"Rejoignez la Communauté Governancepedia",de:"Treten Sie der Governancepedia-Community bei",es:"Ãnete a la Comunidad de Governancepedia"},description:{en:"Follow us on social media for governance insights, compliance education, oversight best practices, and the latest platform updates.",fr:"Suivez-nous sur les réseaux sociaux pour des insights de gouvernance, une éducation sur la conformité, les meilleures pratiques de surveillance et les dernières mises à jour de la plateforme.",de:"Folgen Sie uns in den sozialen Medien für Governance-Einblicke, Compliance-Schulungen, Aufsichts-Best Practices und die neuesten Plattform-Updates.",es:"SÃganos en redes sociales para insights de gobernanza, educación sobre cumplimiento, mejores prácticas de supervisión y las últimas actualizaciones de la plataforma."},followUs:{en:"Follow us on",fr:"Suivez-nous sur",de:"Folgen Sie uns auf",es:"SÃganos en"},b1Label:{en:"Governance Insights",fr:"Insights de Gouvernance",de:"Governance-Einblicke",es:"Insights de Gobernanza"},b1Desc:{en:"Expert analysis on corporate governance trends",fr:"Analyses d'experts sur les tendances de gouvernance d'entreprise",de:"Expertenanalisen zu Corporate-Governance-Trends",es:"Análisis de expertos sobre tendencias de gobernanza corporativa"}
669,b2Label:{en:"Risk & Compliance Education",fr:"Ãducation Risque & Conformité",de:"Risiko- & Compliance-Schulung",es:"Educación de Riesgo y Cumplimiento"},b2Desc:{en:"Deep-dives into regulatory frameworks",fr:"Plongées dans les cadres réglementaires",de:"Vertiefungen in regulatorische Rahmenwerke",es:"Análisis profundos de marcos regulatorios"},b3Label:{en:"AI Tool Updates",fr:"Mises à jour des outils IA",de:"KI-Tool-Updates",es:"Actualizaciones de Herramientas IA"},b3Desc:{en:"Be first to know about new platform features",fr:"Soyez les premiers informés des nouvelles fonctionnalités",de:"Seien Sie der Erste, der von neuen Funktionen erfährt",es:"Sea el primero en conocer las nuevas funciones"},b4Label:{en:"Platform Announcements",fr:"Annonces de la Plateforme",de:"Plattform-Ankündigungen",es:"Anuncios de la Plataforma"},b4Desc:{en:"Articles, reports, and community news",fr:"Articles, rapports et actualités de la communauté",de:"Artikel, Berichte und Community-News",es:"ArtÃculos, informes y noticias de la comunidad"},b5Label:{en:"YouTube Videos & Shorts",fr:"Vidéos YouTube et Shorts",de:"YouTube-Videos & Shorts",es:"Videos y Shorts de YouTube"},b5Desc:{en:"Practical governance tutorials and insights",fr:"Tutoriels et insights pratiques de gouvernance",de:"Praktische Governance-Tutorials und Einblicke",es:"Tutoriales e insights prácticos de gobernanza"},b6Label:{en:"Professional Community",fr:"Communauté Professionnelle",de:"Professionelle Community",es:"Comunidad Profesional"},b6Desc:{en:"Connect with governance and compliance leaders",fr:"Connectez-vous avec les leaders de gouvernance et de conformité",de:"Vernetzen Sie sich mit Governance- und Compliance-Führungskräften",es:"Conéctese con lÃderes de gobernanza y cumplimiento"}},testimonials:{eyebrow:{en:"REAL STORIES",sk:"SKUTOCNà PRÃBEHY",fr:"TÃMOIGNAGES RÃELS",de:"ECHTE GESCHICHTEN",es:"HISTORIAS REALES"},heading:{en:"Trusted by organizations on both sides.",sk:"Dôvera organizácià na oboch stranách.",fr:"Approuvé par les organisations des deux côtés.",de:"Vertraut von Organisationen auf beiden Seiten.",es:"Confianza de organizaciones de ambos lados."},body1:{en:"As a Requestor, MPG transformed how we oversee our vendor ecosystem. What used to take weeks of spreadsheet work now takes minutes â and every request, response, and piece of evidence is fully traceable.",sk:"Ako Žiadateľ, MPG transformoval spôsob, akým dohliadame na náš ekosystém dodávateľov. To, Äo kedysi trvalo týždne práce s tabuľkami, dnes trvá minúty â a každá žiadosÅ¥, odpoveÄ a dôkaz je plne dohľadateľný.",fr:"En tant que Demandeur, MPG a transformé notre façon de superviser notre écosystème de fournisseurs. Ce qui prenait des semaines de travail sur tableur prend maintenant des minutes â et chaque demande, réponse et élément de preuve est entièrement traçable.",de:"Als Anforderer hat MPG transformiert, wie wir unser Lieferanten-Ãkosystem überwachen. Was früher Wochen an Tabellenkalkulationsarbeit dauerte, dauert jetzt Minuten â und jede Anfrage, Antwort und jedes Beweisstück ist vollständig nachverfolgbar.",es:"Como Solicitante, MPG transformó cómo supervisamos nuestro ecosistema de proveedores. Lo que antes tomaba semanas de trabajo en hojas de cálculo ahora toma minutos â y cada solicitud, respuesta y evidencia es completamente rastreable."},body2:{en:"The MPG Portal gives us full visibility across all governance obligations. We define what must be governed, assign it, and track it to completion â all in one auditable place.",sk:"Portál MPG nám poskytuje úplný prehľad o vÅ¡etkých povinnostiach riadenia. Definujeme, Äo sa má riadiÅ¥, priradÃme to a sledujeme až do dokonÄenia â vÅ¡etko na jednom overiteľnom mieste.",fr:"Le Portail MPG nous offre une visibilité complète sur toutes les obligations de gouvernance. Nous définissons ce qui doit être gouverné, l'attribuons et le suivons jusqu'à son achèvement â le tout dans un seul endroit auditable.",de:"Das MPG-Portal gibt uns volle Transparenz über alle Governance-Verpflichtungen. Wir definieren, was geregelt werden muss, weisen es zu und verfolgen es bis zum Abschluss â alles an einem prüfbaren Ort.",es:"El Portal MPG nos da visibilidad completa sobre todas las obligaciones de gobernanza. Definimos qué debe gobernarse, lo asignamos y lo seguimos hasta su finalización â todo en un lugar auditable."},body3:{en:"When our clients send oversight requests, My MPG Workspace lets our team triage, assign, and respond on time. The workload view means nothing falls through the cracks.",sk:"KeÄ naÅ¡i klienti posielajú žiadosti o dohľad, Môj MPG Workspace umožÅuje nášmu tÃmu triážovaÅ¥, priraÄovaÅ¥ a vÄas reagovaÅ¥. Zobrazenie pracovnej záťaže znamená, že niÄ neprepadne.",fr:"Lorsque nos clients envoient des demandes de supervision, Mon Espace MPG permet à notre équipe de trier, d'attribuer et de répondre à temps. La vue de charge de travail signifie que rien ne passe entre les mailles du filet.",de:"Wenn unsere Kunden Aufsichts-Anfragen senden, ermöglicht Mein MPG-Arbeitsbereich unserem Team, zu sichten, zuzuordnen und rechtzeitig zu antworten. Die Arbeitslast-Ansicht bedeutet, dass nichts übersehen wird.",es:"Cuando nuestros clientes envÃan solicitudes de supervisión, Mi Espacio MPG permite a nuestro equipo clasificar, asignar y responder a tiempo. La vista de carga de trabajo significa que nada se pasa por alto."},name1:{en:"Sarah Mitchell",sk:"Sarah Mitchell",fr:"Sarah Mitchell",de:"Sarah Mitchell",es:"Sarah Mitchell"},role1:{en:"Compliance Director, FinTech Ventures",sk:"Riaditeľ súladu, FinTech Ventures",fr:"Directrice de C
669onformité, FinTech Ventures",de:"Compliance-Direktorin, FinTech Ventures",es:"Directora de Cumplimiento, FinTech Ventures"},name2:{en:"James Park",sk:"James Park",fr:"James Park",de:"James Park",es:"James Park"},role2:{en:"Head of Risk, Northstar Insurance",sk:"Vedúci rizÃk, Northstar Insurance",fr:"Responsable des Risques, Northstar Insurance",de:"Leiter Risikomanagement, Northstar Insurance",es:"Jefe de Riesgos, Northstar Insurance"},name3:{en:"Priya Nair",sk:"Priya Nair",fr:"Priya Nair",de:"Priya Nair",es:"Priya Nair"},role3:{en:"Operations Lead, Apex Vendor Group",sk:"Vedúci operáciÃ, Apex Vendor Group",fr:"Responsable des Opérations, Apex Vendor Group",de:"Leiterin der Betriebsabwicklung, Apex Vendor Group",es:"LÃder de Operaciones, Apex Vendor Group"}},cta:{badge:{en:"30-Day Free Trial Available",fr:"Essai Gratuit de 30 jours disponible",de:"30 Tage kostenlos verfügbar",es:"Prueba Gratis de 30 DÃas Disponible"},title:{en:"Transform Your Governance with AI Intelligence",fr:"Transformez Votre Gouvernance avec l'Intelligence IA",de:"Transformieren Sie Ihre Governance mit KI-Intelligenz",es:"Transforme Su Gobernanza con Inteligencia IA"},description:{en:"Run your first governance assessment in under 5 minutes. Try Premium free for 30 days â no credit card required.",fr:"Réalisez votre première évaluation de gouvernance en moins de 5 minutes. Essayez Premium gratuitement pendant 30 jours â aucune carte de crédit requise.",de:"Führen Sie Ihre erste Governance-Bewertung in unter 5 Minuten durch. Premium 30 Tage kostenlos testen â keine Kreditkarte erforderlich.",es:"Realice su primera evaluación de gobernanza en menos de 5 minutos. Pruebe Premium gratis por 30 dÃas â no se requiere tarjeta de crédito."},startFreeAssessment:{en:"Start Free Assessment",fr:"Commencer l'Ãvaluation Gratuite",de:"Kostenlose Bewertung starten",es:"Iniciar Evaluación Gratis"},exploreAllTools:{en:"Explore All Tools",fr:"Explorer Tous les Outils",de:"Alle Tools erkunden",es:"Explorar Todas las Herramientas"}},mpg:{label:{en:"Operational Platform",fr:"Plateforme Opérationnelle",de:"Operations-Plattform",es:"Plataforma Operativa"},title:{en:"Ready to Operationalize Your Governance?",fr:"Prêt à Rendre Votre Gouvernance Opérationnelle ?",de:"Bereit, Ihre Governance zu operationalisieren?",es:"¿Listo para Operacionalizar Su Gobernanza?"},description:{en:"Governancepedia identifies insights â My Premium Governance (MPG) helps you execute. Launch governance workflows, manage oversight operations, store documents, and track governance activities in one unified platform.",fr:"Governancepedia identifie les insights â My Premium Governance (MPG) vous aide à exécuter. Lancez des workflows de gouvernance, gérez les opérations de surveillance, stockez des documents et suivez les activités de gouvernance dans une plateforme unifiée.",de:"Governancepedia identifiziert Erkenntnisse â My Premium Governance (MPG) hilft bei der Umsetzung. Starten Sie Governance-Workflows, verwalten Sie Aufsichtsoperationen, speichern Sie Dokumente und verfolgen Sie Governance-Aktivitäten auf einer einheitlichen Plattform.",es:"Governancepedia identifica insights â My Premium Governance (MPG) le ayuda a ejecutar. Lance flujos de gobernanza, gestione operaciones de supervisión, almacene documentos y siga actividades de gobernanza en una plataforma unificada."},launchMPG:{en:"Launch MPG",fr:"Lancer MPG",de:"MPG starten",es:"Iniciar MPG"},workspace:{en:"MPG Workspace",fr:"Espace MPG",de:"MPG-Arbeitsbereich",es:"Espacio MPG"},f1:{en:"Governance Workflows",fr:"Workflows de Gouvernance",de:"Governance-Workflows",es:"Flujos de Gobernanza"},f2:{en:"Document Management",fr:"Gestion de Documents",de:"Dokumentenverwaltung",es:"Gestión de Documentos"},f3:{en:"Oversight Collaboration",fr:"Collaboration de Surveillance",de:"Aufsichtszusammenarbeit",es:"Colaboración de Supervisión"},f4:{en:"Risk Dashboards",fr:"Tableaux de Bord de Risques",de:"Risiko-Dashboards",es:"Paneles de Riesgo"},item1:{en:"Vendor Oversight Review",fr:"Revue de Surveillance des Fournisseurs",de:"Lieferantenaufsichts-Review",es:"Revisión de Supervisión de Proveedores"},item2:{en:"Q2 Board Governance Report",fr:"Rapport de Gouvernance du Conseil Q2",de:"Q2 Board-Governance-Bericht",es:"Informe de Gobernanza del Consejo Q2"}
669,item3:{en:"Cybersecurity Control Audit",fr:"Audit des Contrôles Cybersécurité",de:"Cybersecurity-Kontroll-Audit",es:"AuditorÃa de Controles de Ciberseguridad"},item4:{en:"ESG Framework Update",fr:"Mise à jour du Cadre ESG",de:"ESG-Framework-Update",es:"Actualización del Marco ESG"},inProgress:{en:"In Progress",fr:"En cours",de:"In Bearbeitung",es:"En progreso"},completed:{en:"Completed",fr:"Terminé",de:"Abgeschlossen",es:"Completado"},pending:{en:"Pending",fr:"En attente",de:"Ausstehend",es:"Pendiente"}},footer:{description:{en:"The AI Intelligence Engine for Governance & Oversight. Empowering organizations with actionable governance intelligence.",fr:"Le Moteur d'Intelligence IA pour la Gouvernance et la Surveillance. Doter les organisations d'une intelligence de gouvernance actionnable.",de:"Die KI-Intelligenz-Engine für Governance & Aufsicht. Organisationen mit umsetzbaren Governance-Intelligenz stärken.",es:"El Motor de Inteligencia IA para Gobernanza y Supervisión. Empoderando a las organizaciones con inteligencia de gobernanza accionable."},platform:{en:"Platform",fr:"Plateforme",de:"Plattform",es:"Plataforma"},ecosystem:{en:"Ecosystem",fr:"Ãcosystème",de:"Ãkosystem",es:"Ecosistema"},encyclopedia:{en:"Encyclopedia",fr:"Encyclopédie",de:"Enzyklopädie",es:"Enciclopedia"},glossary:{en:"Glossary",fr:"Glossaire",de:"Glossar",es:"Glosario"},contentCreators:{en:"Content Creators",fr:"Créateurs de Contenu",de:"Content-Ersteller",es:"Creadores de Contenido"},copyright:{en:"MP Nerds LLC. All rights reserved. Governancepedia is a platform owned and operated by MP Nerds LLC.",fr:"MP Nerds LLC. Tous droits réservés. Governancepedia est une plateforme détenue et exploitée par MP Nerds LLC.",de:"MP Nerds LLC. Alle Rechte vorbehalten. Governancepedia ist eine Plattform von MP Nerds LLC.",es:"MP Nerds LLC. Todos los derechos reservados. Governancepedia es una plataforma de MP Nerds LLC."},partOf:{en:"Part of the My Premium Governance ecosystem",fr:"Partie de l'écosystème My Premium Governance",de:"Teil des My Premium Governance-Ãkosystems",es:"Parte del ecosistema My Premium Governance"}},healthCheck:{badge:{en:"AI Health Check",fr:"Bilan IA",de:"KI-Gesundheitscheck",es:"Chequeo IA"},title:{en:"Governance Health Assessment",fr:"Ãvaluation de Santé de Gouvernance",de:"Governance-Gesundheitsbewertung",es:"Evaluación de Salud de Gobernanza"},subtitle:{en:"Answer a few questions to receive your AI-generated governance maturity report",fr:"Répondez à quelques questions pour recevoir votre rapport de maturité de gouvernance généré par IA",de:"Beantworten Sie einige Fragen, um Ihren KI-generierten Governance-Reifebericht zu erhalten",es:"Responda algunas preguntas para recibir su informe de madurez de gobernanza generado por IA"},step:{en:"Step",fr:"Ãtape",de:"Schritt",es:"Paso"},of:{en:"of",fr:"sur",de:"von",es:"de"},back:{en:"Back",fr:"Retour",de:"Zurück",es:"Atrás"},next:{en:"Next",fr:"Suivant",de:"Weiter",es:"Siguiente"},generateReport:{en:"Generate Report",fr:"Générer le Rapport",de:"Bericht erstellen",es:"Generar Informe"},assessmentComplete:{en:"Assessment Complete",fr:"Ãvaluation Terminée",de:"Bewertung abgeschlossen",es:"Evaluación Completada"},reportTitle:{en:"Governance Health Report",fr:"Rapport de Santé de Gouvernance",de:"Governance-Gesundheitsbericht",es:"Informe de Salud de Gobernanza"},operationalize:{en:"Operationalize These Findings",fr:"Rendre Ces Résultats Opérationnels",de:"Diese Ergebnisse operationalisieren",es:"Operacionalizar Estos Hallazgos"},operationalizeDesc:{en:"Launch governance workflows & track improvements in MPG",fr:"Lancez des workflows de gouvernance et suivez les améliorations dans MPG",de:"Starten Sie Governance-Workflows und verfolgen Sie Verbesserungen in MPG",es:"Lance flujos de gobernanza y siga mejoras en MPG"},openMPG:{en:"Open MPG",fr:"Ouvrir MPG",de:"MPG öffnen",es:"Abrir MPG"},newAssessment:{en:"Start New Assessment",fr:"Nouvelle Ãvaluation",de:"Neue Bewertung starten",es:"Nueva Evaluación"}
669,loading:{en:"AI is performing your governance health assessment...",fr:"L'IA effectue votre évaluation de santé de gouvernance...",de:"Die KI führt Ihre Governance-Gesundheitsbewertung durch...",es:"La IA está realizando su evaluación de salud de gobernanza..."},success:{en:"Health assessment completed!",fr:"Ãvaluation de santé terminée !",de:"Governance-Bewertung abgeschlossen!",es:"¡Evaluación de salud completada!"},error:{en:"Failed to generate assessment. Please try again.",fr:"Ãchec de la génération de l'évaluation. Veuillez réessayer.",de:"Bewertung konnte nicht erstellt werden. Bitte erneut versuchen.",es:"No se pudo generar la evaluación. Inténtelo de nuevo."},stepCompany:{en:"Company Profile",fr:"Profil d'Entreprise",de:"Unternehmensprofil",es:"Perfil de Empresa"},stepGovernance:{en:"Governance Structure",fr:"Structure de Gouvernance",de:"Governance-Struktur",es:"Estructura de Gobernanza"},stepRisk:{en:"Risk & Oversight",fr:"Risque & Surveillance",de:"Risiko & Aufsicht",es:"Riesgo y Supervisión"},stepOperations:{en:"Operational Controls",fr:"Contrôles Opérationnels",de:"Operationelle Kontrollen",es:"Controles Operativos"},orgName:{en:"Organization Name",fr:"Nom de l'Organisation",de:"Name der Organisation",es:"Nombre de la Organización"},orgNamePlaceholder:{en:"Your organization name",fr:"Nom de votre organisation",de:"Name Ihrer Organisation",es:"Nombre de su organización"},industry:{en:"Industry",fr:"Secteur",de:"Branche",es:"Sector"},companySize:{en:"Company Size",fr:"Taille de l'Entreprise",de:"UnternehmensgröÃe",es:"Tamaño de la Empresa"},regulatoryEnv:{en:"Regulatory Environment",fr:"Environnement Réglementaire",de:"Regulatorisches Umfeld",es:"Entorno Regulatorio"},finServices:{en:"Financial Services",fr:"Services Financiers",de:"Finanzdienstleistungen",es:"Servicios Financieros"},healthcare:{en:"Healthcare",fr:"Santé",de:"Gesundheitswesen",es:"Salud"},technology:{en:"Technology",fr:"Technologie",de:"Technologie",es:"TecnologÃa"},manufacturing:{en:"Manufacturing",fr:"Manufacturier",de:"Produktion",es:"Manufactura"},retail:{en:"Retail",fr:"Commerce de détail",de:"Einzelhandel",es:"Comercio"},energy:{en:"Energy",fr:"Ãnergie",de:"Energie",es:"EnergÃa"},government:{en:"Government",fr:"Gouvernement",de:"Regierung",es:"Gobierno"},education:{en:"Education",fr:"Ãducation",de:"Bildung",es:"Educación"},nonProfit:{en:"Non-Profit",fr:"à but non lucratif",de:"Gemeinnützig",es:"Sin fines de lucro"},other:{en:"Other",fr:"Autre",de:"Sonstige",es:"Otro"},startup:{en:"Startup (1-50)",fr:"Startup (1-50)",de:"Startup (1-50)",es:"Startup (1-50)"},small:{en:"Small (51-200)",fr:"Petite (51-200)",de:"Klein (51-200)",es:"Pequeña (51-200)"},medium:{en:"Medium (201-1000)",fr:"Moyenne (201-1000)",de:"Mittel (201-1000)",es:"Mediana (201-1000)"},large:{en:"Large (1001-5000)",fr:"Grande (1001-5000)",de:"Groà (1001-5000)",es:"Grande (1001-5000)"},enterprise:{en:"Enterprise (5000+)",fr:"Entreprise (5000+)",de:"Unternehmen (5000+)",es:"Empresa (5000+)"},highlyReg:{en:"Highly Regulated",fr:"Hautement Réglementé",de:"Stark reguliert",es:"Altamente Regulado"},modReg:{en:"Moderately Regulated",fr:"Modérément Réglementé",de:"Moderat reguliert",es:"Moderadamente Regulado"},lightlyReg:{en:"Lightly Regulated",fr:"Légèrement Réglementé",de:"Leicht reguliert",es:"Ligeramente Regulado"},unsure:{en:"Unsure",fr:"Incertain",de:"Unsicher",es:"Inseguro"},q1:{en:"Does your organization have an active board or governance committee?",fr:"Votre organisation a-t-elle un conseil d'administration ou un comité de gouvernance actif ?",de:"Hat Ihre Organisation ein aktives Board oder einen Governance-Ausschuss?",es:"¿Su organización tiene un consejo o comité de gobernanza activo?"},q2:{en:"Do you follow a formal governance framework?",fr:"Suivez-vous un cadre de gouvernance formel ?",de:"Folgen Sie einem formalen Governance-Framework?",es:"¿Sigue un marco de gobernanza formal?"},q3:{en:"How are governance policies managed?",fr:"Comment les politiques de gouvernance sont-elles gérées ?",de:"Wie werden Governance-Richtlinien verwaltet?",es:"¿Cómo se gestionan las polÃticas de gobernanza?"},q4:{en:"How mature is your risk management process?",fr:"Quel est le niveau de maturité de votre processus de gestion des risques ?",de:"Wie reif ist Ihr Risikomanagement-Prozess?",es:"¿Cuán maduro es su proceso de gestión de riesgos?"},q5:{en:"How do you manage vendor/third-party oversight?",fr:"Comment gérez-vous la surveillance des fournisseurs/tiers ?",de:"Wie verwalten Sie die Lieferanten-/Drittaufsicht?",es:"¿Cómo gestiona la supervisión de proveedores/terceros?"},q6:{en:"Do you have clear escalation procedures?",fr:"Avez-vous des procédures d'escalade claires ?",de:"Haben Sie klare Eskalationsverfahren?",es:"¿Tiene procedimientos de escalado claros?"},q7:{en:"How is cybersecurity governance managed?",fr:"Comment la gouvernance de la cybersécurité est-elle gérée ?",de:"Wie wird die Cybersecurity-Governance verwaltet?",es:"¿Cómo se gestiona la gobernanza de ciberseguridad?"}
669,q8:{en:"How effective are internal controls?",fr:"Quelle est l'efficacité des contrôles internes ?",de:"Wie effektiv sind die internen Kontrollen?",es:"¿Cuán efectivos son los controles internos?"},q9:{en:"How is compliance managed?",fr:"Comment la conformité est-elle gérée ?",de:"Wie wird Compliance verwaltet?",es:"¿Cómo se gestiona el cumplimiento?"},q10:{en:"Do you have an incident response plan?",fr:"Avez-vous un plan de réponse aux incidents ?",de:"Haben Sie einen Incident-Response-Plan?",es:"¿Tiene un plan de respuesta a incidentes?"},yesVeryActive:{en:"Yes, very active",fr:"Oui, très actif",de:"Ja, sehr aktiv",es:"SÃ, muy activo"},yesLimited:{en:"Yes, but limited",fr:"Oui, mais limité",de:"Ja, aber begrenzt",es:"SÃ, pero limitado"},noFormalBoard:{en:"No formal board",fr:"Pas de conseil formel",de:"Kein formelles Board",es:"Sin consejo formal"},notApplicable:{en:"Not applicable",fr:"Non applicable",de:"Nicht zutreffend",es:"No aplicable"},yesFully:{en:"Yes, fully implemented",fr:"Oui, entièrement mis en Åuvre",de:"Ja, vollständig implementiert",es:"SÃ, completamente implementado"},partialImpl:{en:"Partially implemented",fr:"Partiellement mis en Åuvre",de:"Teilweise implementiert",es:"Parcialmente implementado"},planningImpl:{en:"Planning to implement",fr:"Planification en cours",de:"Implementierung geplant",es:"Planificando implementar"},noFramework:{en:"No framework",fr:"Aucun cadre",de:"Kein Framework",es:"Sin marco"},centralAuto:{en:"Centralized & automated",fr:"Centralisé et automatisé",de:"Zentralisiert & automatisiert",es:"Centralizado y automatizado"},centralManual:{en:"Centralized & manual",fr:"Centralisé et manuel",de:"Zentralisiert & manuell",es:"Centralizado y manual"},decentralized:{en:"Decentralized",fr:"Décentralisé",de:"Dezentral",es:"Descentralizado"},noFormalProcess:{en:"No formal process",fr:"Aucun processus formel",de:"Kein formaler Prozess",es:"Sin proceso formal"},advancedInteg:{en:"Advanced & integrated",fr:"Avancé et intégré",de:"Fortgeschritten & integriert",es:"Avanzado e integrado"},established:{en:"Established",fr:"Ãtabli",de:"Etabliert",es:"Establecido"},developing:{en:"Developing",fr:"En développement",de:"In Entwicklung",es:"En desarrollo"},adHocNone:{en:"Ad hoc or none",fr:"Ad hoc ou aucun",de:"Ad hoc oder keiner",es:"Ad hoc o ninguno"},formalProgram:{en:"Formal program",fr:"Programme formel",de:"Formales Programm",es:"Programa formal"},periodicReviews:{en:"Periodic reviews",fr:"Revues périodiques",de:"Periodische Reviews",es:"Revisiones periódicas"},minimalOversight:{en:"Minimal oversight",fr:"Surveillance minimale",de:"Minimale Aufsicht",es:"Supervisión mÃnima"},wellDefined:{en:"Well-defined & tested",fr:"Bien défini et testé",de:"Gut definiert & getestet",es:"Bien definido y probado"},definedUntested:{en:"Defined but untested",fr:"Défini mais non testé",de:"Definiert aber ungetestet",es:"Definido pero no probado"},informal:{en:"Informal",fr:"Informel",de:"Informell",es:"Informal"},none:{en:"None",fr:"Aucun",de:"Keine",es:"Ninguno"},dedicatedTeam:{en:"Dedicated team & framework",fr:"Ãquipe dédiée et cadre",de:"Dediziertes Team & Framework",es:"Equipo dedicado y marco"},partOfIT:{en:"Part of IT",fr:"Partie de l'IT",de:"Teil der IT",es:"Parte de TI"},outsourced:{en:"Outsourced",fr:"Externalisé",de:"Ausgelagert",es:"Externalizado"},noFormalProgram:{en:"No formal program",fr:"Aucun programme formel",de:"Kein formales Programm",es:"Sin programa formal"},regularlyTested:{en:"Regularly tested & improved",fr:"Régulièrement testé et amélioré",de:"RegelmäÃig getestet & verbessert",es:"Probado y mejorado regularmente"},estRarelyTested:{en:"Established but rarely tested",fr:"Ãtabli mais rarement testé",de:"Etabliert aber selten getestet",es:"Establecido pero rara vez probado"},basicControls:{en:"Basic controls",fr:"Contrôles de base",de:"Grundlegende Kontrollen",es:"Controles básicos"},minimalOrNone:{en:"Minimal or none",fr:"Minimal ou aucun",de:"Minimal oder keine",es:"MÃnimo o ninguno"},proactiveAuto:{en:"Proactive & automated",fr:"Proactif et automatisé",de:"Proaktiv & automatisiert",es:"Proactivo y automatizado"},reactiveStructured:{en:"Reactive but structured",fr:"Réactif mais structuré",de:"Reaktiv aber strukturiert",es:"Reactivo pero estructurado"},adHoc:{en:"Ad hoc",fr:"Ad hoc",de:"Ad hoc",es:"Ad hoc"},testedUpdated:{en:"Tested & updated regularly",fr:"Testé et mis à jour régulièrement",de:"RegelmäÃig getestet & aktualisiert",es:"Probado y actualizado regularmente"},docUntested:{en:"Documented but untested",fr:"Documenté mais non testé",de:"Dokumentiert aber ungetestet",es:"Documentado pero no probado"},informalPlan:{en:"Informal plan",fr:"Plan informel",de:"Informeller Plan",es:"Plan informal"},noPlan:{en:"No plan",fr:"Aucun plan",de:"Kein Plan",es:"Sin plan"}},policyGen:{badge:{en:"AI Document Generator",fr:"Générateur de Documents IA",de:"KI-Dokument-Generator",es:"Generador de Documentos IA"},title:{en:"Policy & Document Generator",fr:"Générateur de Politiques & Documents",de:"Richtlinien- & Dokument-Generator",es:"Generador de PolÃticas y Documentos"},subtitle:{en:"Generate professional governance documents, policies, and frameworks with AI",fr:"Générez des documents de gouvernance professionnels, des politiques et des cadres avec l'IA",de:"Erstellen Sie professionelle Governance-Dokumente, Richtlinien und Frameworks mit KI",es:"Genere documentos de gobernanza profesionales, polÃticas y marcos con IA"},config:{en:"Document Configuration",fr:"Configuration du Document",de:"Dokument-Konfiguration",es:"Configuración del Documento"},docType:{en:"Document Type *",fr:"Type de Document *",de:"Dokumenttyp *",es:"Tipo de Documento *"},selectType:{en:"Select type",fr:"Sélectionner le type",de:"Typ wählen",es:"Seleccionar tipo"},domain:{en:"Governance Domain *",fr:"Domaine de Gouvernance *",de
669:"Governance-Bereich *",es:"Dominio de Gobernanza *"},selectDomain:{en:"Select domain",fr:"Sélectionner le domaine",de:"Bereich wählen",es:"Seleccionar dominio"},orgNameOpt:{en:"Organization Name",fr:"Nom de l'Organisation",de:"Name der Organisation",es:"Nombre de la Organización"},orgNamePlaceholder:{en:"Your organization name (optional)",fr:"Nom de votre organisation (facultatif)",de:"Name Ihrer Organisation (optional)",es:"Nombre de su organización (opcional)"},industryReq:{en:"Industry *",fr:"Secteur *",de:"Branche *",es:"Sector *"},selectIndustry:{en:"Select industry",fr:"Sélectionner le secteur",de:"Branche wählen",es:"Seleccionar sector"},orgSize:{en:"Organization Size",fr:"Taille de l'Organisation",de:"OrganisationsgröÃe",es:"Tamaño de la Organización"},selectSize:{en:"Select size",fr:"Sélectionner la taille",de:"GröÃe wählen",es:"Seleccionar tamaño"},additionalReq:{en:"Additional Requirements",fr:"Exigences Supplémentaires",de:"Zusätzliche Anforderungen",es:"Requisitos Adicionales"},additionalPlaceholder:{en:"Any specific requirements, standards, or context...",fr:"Toute exigence, norme ou contexte spécifique...",de:"Spezifische Anforderungen, Standards oder Kontext...",es:"Cualquier requisito, estándar o contexto especÃfico..."},generate:{en:"Generate Document",fr:"Générer le Document",de:"Dokument erstellen",es:"Generar Documento"},generated:{en:"Document Generated",fr:"Document Généré",de:"Dokument erstellt",es:"Documento Generado"},copy:{en:"Copy",fr:"Copier",de:"Kopieren",es:"Copiar"},copied:{en:"Copied to clipboard",fr:"Copié dans le presse-papiers",de:"In die Zwischenablage kopiert",es:"Copiado al portapapeles"},storeMPG:{en:"Store & Manage in MPG",fr:"Stocker & Gérer dans MPG",de:"In MPG speichern & verwalten",es:"Almacenar y Gestionar en MPG"},storeMPGDesc:{en:"Save this document in DocxChange for collaboration & version control",fr:"Enregistrez ce document dans DocxChange pour la collaboration et le contrôle de version",de:"Speichern Sie dieses Dokument in DocxChange für Zusammenarbeit & Versionskontrolle",es:"Guarde este documento en DocxChange para colaboración y control de versiones"},generateAnother:{en:"Generate Another Document",fr:"Générer un Autre Document",de:"Ein weiteres Dokument erstellen",es:"Generar Otro Documento"},loading:{en:"AI is drafting your governance document...",fr:"L'IA rédige votre document de gouvernance...",de:"Die KI erstellt Ihr Governance-Dokument...",es:"La IA está redactando su documento de gobernanza..."},success:{en:"Document generated successfully!",fr:"Document généré avec succès !",de:"Dokument erfolgreich erstellt!",es:"¡Documento generado con éxito!"},error:{en:"Failed to generate document. Please try again.",fr:"Ãchec de la génération du document. Veuillez réessayer.",de:"Dokument konnte nicht erstellt werden. Bitte erneut versuchen.",es:"No se pudo generar el documento. Inténtelo de nuevo."},dtPolicy:{en:"Governance Policy",fr:"Politique de Gouvernance",de:"Governance-Richtlinie",es:"PolÃtica de Gobernanza"},dtFramework:{en:"Governance Framework",fr:"Cadre de Gouvernance",de:"Governance-Framework",es:"Marco de Gobernanza"},dtCharter:{en:"Committee Charter",fr:"Charte de Comité",de:"Ausschuss-Charta",es:"Carta del Comité"},dtProcedure:{en:"Operational Procedure",fr:"Procédure Opérationnelle",de:"Operatives Verfahren",es:"Procedimiento Operativo"},dtPlan:{en:"Resilience / Response Plan",fr:"Plan de Résilience / Réponse",de:"Resilienz- / Antwort-Plan",es:"Plan de Resiliencia / Respuesta"},dtTemplate:{en:"Assessment Template",fr:"Modèle d'Ãvaluation",de:"Bewertungsvorlage",es:"Plantilla de Evaluación"},sizeStartup:{en:"Startup",fr:"Startup",de:"Startup",es:"Startup"},sizeSmall:{en:"Small",fr:"Petite",de:"Klein",es:"Pequeña"},sizeMedium:{en:"Medium",fr:"Moyenne",de:"Mittel",es:"Mediana"},sizeLarge:{en:"Large",fr:"Grande",de:"GroÃ",es:"Grande"},sizeEnterprise:{en:"Enterprise",fr:"Entreprise",de:"Unternehmen",es:"Empresa"}},riskAnalyzer:{badge:{en:"AI Risk Analyzer",fr:"Analyseur de Risques IA",de:"KI-Risiko-Analyse",es:"Analizador de Riesgos IA"},title:{en:"Risk & Oversight Analyzer",fr:"Analyseur de Risques & Surveillance",de:"Risiko- & Aufsichts-Analyse",es:"Analizador de Riesgos y Supervisión"},subtitle:{en:"Describe your operations and let AI identify governance risks and blind spots",fr:"Décrivez vos opérations et laissez l'IA identifier les risques de gouvernance et les angles morts",de:"Beschreiben Sie Ihre Operationen und lassen Sie die KI Governance-Risiken und blinde Flecken erkennen",es:"Describa sus operaciones y deje que la IA identifique riesgos de gobernanza y puntos ciegos"},details:{en:"Operational Details",fr:"Détails Opérationnels",de:"Operationelle Details",es:"Detalles Operativos"},orgName:{en:"Organization Name",fr:"Nom de l'Organisation",de:"Name der Organisation",es:"Nombre de la Organización"},orgPlaceholder:{en:"Your organization",fr:"Votre organisation",de:"Ihre Organisation",es:"Su organización"}
669,industryReq:{en:"Industry *",fr:"Secteur *",de:"Branche *",es:"Sector *"},selectIndustry:{en:"Select industry",fr:"Sélectionner le secteur",de:"Branche wählen",es:"Seleccionar sector"},opsDetails:{en:"Operational Details *",fr:"Détails Opérationnels *",de:"Operationelle Details *",es:"Detalles Operativos *"},opsPlaceholder:{en:"Describe your key operations, workflows, and activities...",fr:"Décrivez vos opérations clés, vos flux de travail et vos activités...",de:"Beschreiben Sie Ihre wichtigsten Operationen, Workflows und Aktivitäten...",es:"Describa sus operaciones clave, flujos de trabajo y actividades..."},vendorStructure:{en:"Vendor & Third-Party Structure",fr:"Structure Fournisseurs & Tiers",de:"Lieferanten- & Drittanbieter-Struktur",es:"Estructura de Proveedores y Terceros"},vendorPlaceholder:{en:"Describe vendor relationships, outsourcing arrangements...",fr:"Décrivez les relations fournisseurs, les arrangements d'externalisation...",de:"Beschreiben Sie Lieferantenbeziehungen, Outsourcing-Vereinbarungen...",es:"Describa las relaciones con proveedores, acuerdos de externalización..."},staffing:{en:"Governance Staffing & Roles",fr:"Effectifs de Gouvernance & Rôles",de:"Governance-Personal & Rollen",es:"Personal de Gobernanza y Roles"},staffingPlaceholder:{en:"Describe governance team structure, roles, responsibilities...",fr:"Décrivez la structure de l'équipe de gouvernance, les rôles, les responsabilités...",de:"Beschreiben Sie die Governance-Teamstruktur, Rollen, Verantwortlichkeiten...",es:"Describa la estructura del equipo de gobernanza, roles, responsabilidades..."},controls:{en:"Current Controls Environment",fr:"Environnement de Contrôles Actuel",de:"Aktuelles Kontrollumfeld",es:"Entorno de Controles Actual"},controlsPlaceholder:{en:"Describe existing controls, monitoring, escalation processes...",fr:"Décrivez les contrôles existants, la surveillance, les processus d'escalade...",de:"Beschreiben Sie bestehende Kontrollen, Monitoring, Eskalationsprozesse...",es:"Describa los controles existentes, monitoreo, procesos de escalado..."},analyze:{en:"Analyze Risks",fr:"Analyser les Risques",de:"Risiken analysieren",es:"Analizar Riesgos"},analysisComplete:{en:"Analysis Complete",fr:"Analyse Terminée",de:"Analyse abgeschlossen",es:"Análisis Completado"},reportTitle:{en:"Risk & Oversight Report",fr:"Rapport de Risques & Surveillance",de:"Risiko- & Aufsichts-Bericht",es:"Informe de Riesgos y Supervisión"},trackMPG:{en:"Track & Mitigate Risks in MPG",fr:"Suivre et Atténuer les Risques dans MPG",de:"Risiken in MPG verfolgen & mindern",es:"Seguir y Mitigar Riesgos en MPG"},trackMPGDesc:{en:"Create risk workflows and monitor governance improvements",fr:"Créez des workflows de risques et surveillez les améliorations de gouvernance",de:"Erstellen Sie Risiko-Workflows und überwachen Sie Governance-Verbesserungen",es:"Cree flujos de riesgo y monitoree las mejoras de gobernanza"},newAnalysis:{en:"New Analysis",fr:"Nouvelle Analyse",de:"Neue Analyse",es:"Nuevo Análisis"},loading:{en:"AI is analyzing governance risks...",fr:"L'IA analyse les risques de gouvernance...",de:"Die KI analysiert Governance-Risiken...",es:"La IA está analizando riesgos de gobernanza..."},success:{en:"Risk analysis completed!",fr:"Analyse des risques terminée !",de:"Risikoanalyse abgeschlossen!",es:"¡Análisis de riesgos completado!"},error:{en:"Failed to analyze risks. Please try again.",fr:"Ãchec de l'analyse des risques. Veuillez réessayer.",de:"Risikoanalyse fehlgeschlagen. Bitte erneut versuchen.",es:"No se pudieron analizar los riesgos. Inténtelo de nuevo."}},decisionEngine:{badge:{en:"AI Decision Engine",fr:"Moteur de Décision IA",de:"KI-Entscheidungs-Engine",es:"Motor de Decisión IA"},title:{en:"Governance Decision Engine",fr:"Moteur de Décision de Gouvernance",de:"Governance-Entscheidungs-Engine",es:"Motor de Decisión de Gobernanza"},subtitle:{en:"Ask any governance question and receive AI-powered analysis and recommendations",fr:"Posez toute question de gouvernance et recevez une analyse et des recommandations par IA",de:"Stellen Sie jede Governance-Frage und erhalten Sie KI-gestützte Analysen und Empfehlungen",es:"Haga cualquier pregunta de gobernanza y reciba análisis y recomendaciones con IA"},placeholder:{en:"Ask your governance question... e.g., 'Should we outsource our compliance operations?'",fr:"Posez votre question de gouvernance... ex. : 'Devr
669ions-nous externaliser nos opérations de conformité ?'",de:"Stellen Sie Ihre Governance-Frage... z.B. 'Sollten wir unsere Compliance-Operationen auslagern?'",es:"Haga su pregunta de gobernanza... ej.: '¿DeberÃamos externalizar nuestras operaciones de cumplimiento?'"},analyze:{en:"Analyze Decision",fr:"Analyser la Décision",de:"Entscheidung analysieren",es:"Analizar Decisión"},tryQuestions:{en:"Try these questions:",fr:"Essayez ces questions :",de:"Probieren Sie diese Fragen:",es:"Pruebe estas preguntas:"},analysisComplete:{en:"Analysis Complete",fr:"Analyse Terminée",de:"Analyse abgeschlossen",es:"Análisis Completado"},reportTitle:{en:"Governance Decision Analysis",fr:"Analyse de Décision de Gouvernance",de:"Governance-Entscheidungsanalyse",es:"Análisis de Decisión de Gobernanza"},createWorkflow:{en:"Create a Governance Workflow",fr:"Créer un Workflow de Gouvernance",de:"Governance-Workflow erstellen",es:"Crear un Flujo de Gobernanza"},createWorkflowDesc:{en:"Turn these action items into tracked workflows in MPG",fr:"Transformez ces actions en workflows suivis dans MPG",de:"Wandeln Sie diese Action-Items in verfolgte Workflows in MPG um",es:"Convierta estos elementos de acción en flujos seguidos en MPG"},launchMPG:{en:"Launch in MPG",fr:"Lancer dans MPG",de:"In MPG starten",es:"Iniciar en MPG"},askAnother:{en:"Ask Another Question",fr:"Poser une Autre Question",de:"Weitere Frage stellen",es:"Hacer Otra Pregunta"},loading:{en:"AI is analyzing governance implications...",fr:"L'IA analyse les implications de gouvernance...",de:"Die KI analysiert Governance-Auswirkungen...",es:"La IA está analizando las implicaciones de gobernanza..."},success:{en:"Decision analysis completed and saved to dashboard!",fr:"Analyse de décision terminée et enregistrée dans le tableau de bord !",de:"Entscheidungsanalyse abgeschlossen und im Dashboard gespeichert!",es:"¡Análisis de decisión completado y guardado en el panel!"},error:{en:"Failed to analyze decision. Please try again.",fr:"Ãchec de l'analyse de la décision. Veuillez réessayer.",de:"Entscheidungsanalyse fehlgeschlagen. Bitte erneut versuchen.",es:"No se pudo analizar la decisión. Inténtelo de nuevo."},sq1:{en:"Should we outsource our IT governance operations?",fr:"Devrions-nous externaliser nos opérations de gouvernance IT ?",de:"Sollten wir unsere IT-Governance-Operationen auslagern?",es:"¿DeberÃamos externalizar nuestras operaciones de gobernanza de TI?"},sq2:{en:"Do we need a dedicated compliance team?",fr:"Avons-nous besoin d'une équipe de conformité dédiée ?",de:"Brauchen wir ein dediziertes Compliance-Team?",es:"¿Necesitamos un equipo de cumplimiento dedicado?"},sq3:{en:"Should we centralize governance across all subsidiaries?",fr:"Devrions-nous centraliser la gouvernance across toutes les filiales ?",de:"Sollten wir die Governance über alle Tochtergesellschaften zentralisieren?",es:"¿DeberÃamos centralizar la gobernanza en todas las filiales?"},sq4:{en:"Are we too dependent on third-party vendors for critical operations?",fr:"Sommes-nous trop dépendants des fournisseurs tiers pour les opérations critiques ?",de:"Sind wir zu abhängig von Drittanbietern für kritische Operationen?",es:"¿Somos demasiado dependientes de proveedores externos para operaciones crÃticas?"},sq5:{en:"What governance structure fits a fast-growing fintech startup?",fr:"Quelle structure de gouvernance convient à une startup fintech en croissance rapide ?",de:"Welche Governance-Struktur passt zu einem schnell wachsenden Fintech-Startup?",es:"¿Qué estructura de gobernanza conviene a una startup fintech de rápido crecimiento?"},sq6:{en:"How risky is our current operational setup without formal oversight?",fr:"Quel est le risque de notre configuration opérationnelle actuelle sans surveillance formelle ?",de:"Wie riskant ist unser aktuelles operatives Setup ohne formelle Aufsicht?",es:"¿Cuán arriesgada es nuestra configuración operativa actual sin supervisión formal?"}},microTools:{badge:{en:"AI Micro Tools",fr:"Micro-Outils IA",de:"KI-Mikro-Tools",es:"Micro-Herramientas IA"},title:{en:"Governance Micro Tools",fr:"Micro-Outils de Gouvernance",de:"Governance Mikro-Tools",es:"Micro-Herramientas de Gobernanza"},subtitle:{en:"Specialized AI-powered tools for every governance domain. Quick, actionable, and intelligent insights.",fr:"Outils IA spécialisés pour chaque domaine de gouvernance. Rapides, actionnables et intelligents.",de:"Spezialisierte KI-Tools für jeden Governance-Bereich. Schnell, umsetzbar und intelligent.",es:"Herramientas IA especializadas para cada dominio de gobernanza. Rápidas, accionables e inteligentes."},searchPlaceholder:{en:"Search tools...",fr:"Rechercher des outils...",de:"Tools suchen...",es:"Buscar herramientas..."},credit:{en:"1 credit",fr:"1 crédit",de:"1 Credit",es:"1 crédito"},runAnalysis:{en:"Run Analysis â 1 credit",fr:"Lancer l'Analyse â
6691 crédit",de:"Analyse starten â 1 Credit",es:"Ejecutar Análisis â 1 crédito"},runAnother:{en:"Run Another Tool",fr:"Lancer un Autre Outil",de:"Ein anderes Tool starten",es:"Ejecutar Otra Herramienta"},dailyLimit:{en:"Daily Limit Reached",fr:"Limite Quotidienne Atteinte",de:"Tageslimit erreicht",es:"LÃmite Diario Alcanzado"},upgradeDesc:{en:"Upgrade for unlimited tool access",fr:"Passez à Premium pour un accès illimité aux outils",de:"Upgrade für unbegrenzten Tool-Zugriff",es:"Actualice para acceso ilimitado a herramientas"},upgradeNow:{en:"Upgrade Now",fr:"Mettre à niveau",de:"Jetzt upgraden",es:"Actualizar Ahora"},inputPlaceholder:{en:"Describe your organization, operations, or specific area to analyze...",fr:"Décrivez votre organisation, vos opérations ou un domaine spécifique à analyser...",de:"Beschreiben Sie Ihre Organisation, Operationen oder einen spezifischen Bereich zur Analyse...",es:"Describa su organización, operaciones o un área especÃfica para analizar..."},toolRunning:{en:"Running",fr:"Exécution de",de:"Ausführung von",es:"Ejecutando"},success:{en:"completed and saved to dashboard!",fr:"terminé et enregistré dans le tableau de bord !",de:"abgeschlossen und im Dashboard gespeichert!",es:"¡completado y guardado en el panel!"},error:{en:"Failed to run analysis. Please try again.",fr:"Ãchec de l'analyse. Veuillez réessayer.",de:"Analyse fehlgeschlagen. Bitte erneut versuchen.",es:"No se pudo ejecutar el análisis. Inténtelo de nuevo."},catAll:{en:"All Tools",fr:"Tous les Outils",de:"Alle Tools",es:"Todas las Herramientas"},catRisk:{en:"Risk",fr:"Risque",de:"Risiko",es:"Riesgo"},catCompliance:{en:"Compliance",fr:"Conformité",de:"Compliance",es:"Cumplimiento"},catOversight:{en:"Oversight",fr:"Surveillance",de:"Aufsicht",es:"Supervisión"},catVendor:{en:"Vendor",fr:"Fournisseur",de:"Lieferant",es:"Proveedor"},catBoard:{en:"Board",fr:"Conseil",de:"Board",es:"Consejo"},catCyber:{en:"Cyber",fr:"Cyber",de:"Cyber",es:"Ciber"},catESG:{en:"ESG",fr:"ESG",de:"ESG",es:"ESG"},catPolicy:{en:"Policy",fr:"Politique",de:"Richtlinie",es:"PolÃtica"},catAIGov:{en:"AI Gov",fr:"Gouv. IA",de:"KI-Gov",es:"Gob. IA"},t1Name:{en:"Governance Maturity Calculator",fr:"Calculateur de Maturité de Gouvernance",de:"Governance-Reife-Rechner",es:"Calculadora de Madurez de Gobernanza"},t1Desc:{en:"Calculate your governance maturity level across multiple dimensions",fr:"Calculez votre niveau de maturité de gouvernance across plusieurs dimensions",de:"Berechnen Sie Ihr Governance-Reifeniveau über mehrere Dimensionen",es:"Calcule su nivel de madurez de gobernanza en múltiples dimensiones"},t2Name:{en:"Risk Scoring Tool",fr:"Outil de Notation des Risques",de:"Risikobewertungs-Tool",es:"Herramienta de Puntuación de Riesgos"},t2Desc:{en:"Score and prioritize organizational risks with AI analysis",fr:"Notez et priorisez les risques organisationnels avec l'analyse IA",de:"Bewerten und priorisieren Sie organisationale Risiken mit KI-Analyse",es:"Puntúe y priorice riesgos organizacionales con análisis IA"},t3Name:{en:"Vendor Dependency Analyzer",fr:"Analyseur de Dépendance Fournisseurs",de:"Lieferantenabhängigkeits-Analyse",es:"Analizador de Dependencia de Proveedores"},t3Desc:{en:"Analyze vendor concentration risks and dependency levels",fr:"Analysez les risques de concentration fournisseurs et les niveaux de dépendance",de:"Analysieren Sie Lieferantenkonzentrationsrisiken und Abhängigkeitsgrade",es:"Analice riesgos de concentración de proveedores y niveles de dependencia"},t4Name:{en:"Policy Gap Detector",fr:"Détecteur de Lacunes de Politiques",de:"Richtlinien-Lücken-Detektor",es:"Detector de Brechas de PolÃticas"},t4Desc:{en:"Identify missing policies and governance documentation gaps",fr:"Identifiez les politiques manquantes et les lacunes de documentation de gouvernance",de:"Identifizieren Sie fehlende Richtlinien und Governance-Dokumentationslücken",es:"Identifique polÃticas faltantes y brechas de documentación de gobernanza"},t5Name:{en:"Board Effectiveness Analyzer",fr:"Analyseur d'Efficacité du Conseil",de:"Board-Effektivitäts-Analyse",es:"Analizador de Eficacia del Consejo"},t5Desc:{en:"Evaluate board governance effectiveness and oversight quality",fr:"Ãvaluez l'efficacité de la gouvernance du conseil et la qualité de surveillance",de:"Bewerten Sie die Governance-Wirksamkeit des Boards und die Aufsichtsqualität",es:"Evalúe la eficacia de gobernanza del consejo y la calidad de supervisión"},t6Name:{en:"Compliance Complexity Estimator",fr:"Estimateur de C
669omplexité de Conformité",de:"Compliance-Komplexitäts-Schätzer",es:"Estimador de Complejidad de Cumplimiento"},t6Desc:{en:"Estimate compliance requirements complexity for your organization",fr:"Estimez la complexité des exigences de conformité pour votre organisation",de:"Schätzen Sie die Komplexität der Compliance-Anforderungen für Ihre Organisation",es:"Estime la complejidad de los requisitos de cumplimiento para su organización"},t7Name:{en:"Cybersecurity Governance Checker",fr:"Vérificateur de Gouvernance Cybersécurité",de:"Cybersecurity-Governance-Check",es:"Verificador de Gobernanza de Ciberseguridad"},t7Desc:{en:"Check cybersecurity governance maturity and control effectiveness",fr:"Vérifiez la maturité de la gouvernance cybersécurité et l'efficacité des contrôles",de:"Ãberprüfen Sie die Cybersecurity-Governance-Reife und die Kontrolleffektivität",es:"Verifique la madurez de gobernanza de ciberseguridad y la eficacia de los controles"},t8Name:{en:"ESG Oversight Scanner",fr:"Scanner de Surveillance ESG",de:"ESG-Aufsichts-Scanner",es:"Escáner de Supervisión ESG"},t8Desc:{en:"Scan ESG governance readiness and sustainability oversight",fr:"Scannez la préparation à la gouvernance ESG et la surveillance de la durabilité",de:"Scannen Sie ESG-Governance-Bereitschaft und Nachhaltigkeitsaufsicht",es:"Escanee la preparación de gobernanza ESG y la supervisión de sostenibilidad"},t9Name:{en:"AI Governance Readiness",fr:"Préparation à la Gouvernance IA",de:"KI-Governance-Bereitschaft",es:"Preparación de Gobernanza IA"},t9Desc:{en:"Assess readiness for AI governance and responsible AI oversight",fr:"Ãvaluez la préparation à la gouvernance IA et la surveillance responsable de l'IA",de:"Bewerten Sie die Bereitschaft für KI-Governance und verantwortungsvolle KI-Aufsicht",es:"Evalúe la preparación para la gobernanza IA y la supervisión responsable de IA"},t10Name:{en:"Operational Resilience Scanner",fr:"Scanner de Résilience Opérationnelle",de:"Operative Resilienz-Scanner",es:"Escáner de Resiliencia Operativa"},t10Desc:{en:"Evaluate operational resilience and business continuity governance",fr:"Ãvaluez la résilience opérationnelle et la gouvernance de la continuité d'activité",de:"Bewerten Sie die operative Resilienz und die Business-Continuity-Governance",es:"Evalúe la resiliencia operativa y la gobernanza de continuidad de negocio"},t11Name:{en:"Governance KPI Generator",fr:"Générateur de KPI de Gouvernance",de:"Governance-KPI-Generator",es:"Generador de KPI de Gobernanza"},t11Desc:{en:"Generate relevant governance KPIs and metrics for your organization",fr:"Générez des KPI et métriques de gouvernance pertinents pour votre organisation",de:"Generieren Sie relevante Governance-KPIs und Metriken für Ihre Organisation",es:"Genere KPI y métricas de gobernanza relevantes para su organización"},t12Name:{en:"Governance Checklist Generator",fr:"Générateur de Checklist de Gouvernance",de:"Governance-Checklisten-Generator",es:"Generador de Checklist de Gobernanza"},t12Desc:{en:"Create customized governance checklists for audits and reviews",fr:"Créez des checklists de gouvernance personnalisées pour les audits et les revues",de:"Erstellen Sie maÃgeschneiderte Governance-Checklisten für Audits und Reviews",es:"Cree checklists de gobernanza personalizados para auditorÃas y revisiones"}},intelligence:{badge:{en:"AI Intelligence Engine",fr:"Moteur d'Intelligence IA",de:"KI-Intelligenz-Engine",es:"Motor de Inteligencia IA"},title:{en:"Governance Intelligence",fr:"Intelligence de Gouvernance",de:"Governance-Intelligenz",es:"Inteligencia de Gobernanza"},subtitle:{en:"AI-generated governance insights, trend reports, and operational intelligence â updated with real-time data.",fr:"Insights de gouvernance générés par IA, rapports de tendances et intelligence opérationnelle â mis à jour avec des données en temps réel.",de:"KI-generierte Governance-Einblicke, Trendberichte und operative Intelligenz â aktualisiert mit Echtzeitdaten.",es:"Insights de gobernanza generados por IA, informes de tendencias e inteligencia operativa â actualizados con datos en tiempo real."}
669,credits:{en:"2 credits",fr:"2 crédits",de:"2 Credits",es:"2 créditos"},aiGenerated:{en:"AI Generated",fr:"Généré par IA",de:"KI-generiert",es:"Generado por IA"},reportTitle:{en:"Intelligence Report",fr:"Rapport d'Intelligence",de:"Intelligenz-Bericht",es:"Informe de Inteligencia"},selectTopic:{en:"Select a topic above to generate an AI intelligence report",fr:"Sélectionnez un sujet ci-dessus pour générer un rapport d'intelligence IA",de:"Wählen Sie oben ein Thema, um einen KI-Intelligenzbericht zu erstellen",es:"Seleccione un tema arriba para generar un informe de inteligencia IA"},eachReport:{en:"Each report uses 2 AI credits",fr:"Chaque rapport utilise 2 crédits IA",de:"Jeder Bericht verwendet 2 KI-Credits",es:"Cada informe usa 2 créditos IA"},success:{en:"Intelligence report generated and saved!",fr:"Rapport d'intelligence généré et enregistré !",de:"Intelligenz-Bericht erstellt und gespeichert!",es:"¡Informe de inteligencia generado y guardado!"},error:{en:"Failed to generate report. Please try again.",fr:"Ãchec de la génération du rapport. Veuillez réessayer.",de:"Bericht konnte nicht erstellt werden. Bitte erneut versuchen.",es:"No se pudo generar el informe. Inténtelo de nuevo."},generating:{en:"Generating",fr:"Génération du rapport d'intelligence",de:"Erstelle",es:"Generando"},intelligenceReport:{en:"intelligence report...",fr:"en cours...",de:"Intelligenz-Bericht...",es:"informe de inteligencia..."},topicTrends:{en:"Governance Trends",fr:"Tendances de Gouvernance",de:"Governance-Trends",es:"Tendencias de Gobernanza"},topicRisks:{en:"Emerging Risks",fr:"Risques Ãmergents",de:"Aufkommende Risiken",es:"Riesgos Emergentes"},topicRegulatory:{en:"Regulatory Updates",fr:"Mises à jour Réglementaires",de:"Regulatorische Updates",es:"Actualizaciones Regulatorias"},topicCyber:{en:"Cyber Governance",fr:"Gouvernance Cyber",de:"Cyber-Governance",es:"Gobernanza Cibernética"},topicESG:{en:"ESG & Sustainability",fr:"ESG & Durabilité",de:"ESG & Nachhaltigkeit",es:"ESG y Sostenibilidad"},topicAI:{en:"AI Governance",fr:"Gouvernance IA",de:"KI-Governance",es:"Gobernanza IA"}},pricing:{badge:{en:"Governance Intelligence Plans",fr:"Plans d'Intelligence de Gouvernance",de:"Governance-Intelligenz-Pläne",es:"Planes de Inteligencia de Gobernanza"},title:{en:"Invest in governance intelligence that pays dividends",fr:"Investissez dans l'intelligence de gouvernance qui rapporte des dividendes",de:"Investieren Sie in Governance-Intelligenz, die sich auszahlt",es:"Invierta en inteligencia de gobernanza que genera dividendos"},subtitle:{en:"From free exploration to enterprise-grade governance intelligence. Scale as your governance needs grow.",fr:"De l'exploration gratuite à l'intelligence de gouvernance de niveau entreprise. Ãvoluez à mesure que vos besoins de gouvernance augmentent.",de:"Von kostenloser Erkundung bis Enterprise-Governance-Intelligenz. Skalieren Sie nach Bedarf.",es:"De exploración gratuita a inteligencia de gobernanza de nivel empresarial. Escale a medida que crecen sus necesidades."},approxConversion:{en:"Approximate conversions â you are charged in USD at checkout.",fr:"Conversions approximatives â vous êtes facturé en USD au paiement.",de:"Ungefähre Umrechnungen â Sie werden beim Checkout in USD abgerechnet.",es:"Conversiones aproximadas â se le cobra en USD al finalizar la compra."},freeName:{en:"Free",fr:"Gratuit",de:"Kostenlos",es:"Gratis"},freeDesc:{en:"Start exploring governance intelligence with limited access.",fr:"Commencez à explorer l'intelligence de gouvernance avec un accès limité.",de:"Erkunden Sie Governance-Intelligenz mit eingeschränktem Zugriff.",es:"Comience a explorar la inteligencia de gobernanza con acceso limitado."},freeCta:{en:"Get Started Free",fr:"Commencer Gratuitement",de:"Kostenlos starten",es:"Empezar Gratis"},premiumName:{en:"Premium",fr:"Premium",de:"Premium",es:"Premium"},premiumDesc:{en:"Full governance intelligence for growing organisations.",fr:"Intelligence de gouvernance complète pour les organisations en croissance.",de:"Vollständige Governance-Intelligenz für wachsende Organisationen.",es:"Inteligencia de gobernanza completa para organizaciones en crecimiento."},premiumBadge:{en:"Most Popular",fr:"Le Plus Populaire",de:"Beliebteste",es:"Más Popular"},premiumCta:{en:"Start Free Trial",fr:"Commencer l'Essai Gratuit",de:"Kostenlose Testphase starten",es:"Iniciar Prueba Gratis"},enterpriseName:{en:"Enterprise",fr:"Entreprise",de:"Unternehmen",es:"Empresa"},enterpriseDesc:{en:"Enterprise-grade governance for complex organisations.",fr:"Gouvernance de niveau entreprise pour les organisations complexes.",de:"Enterprise-Governance für komplexe Organisationen.",es:"Gobernanza de nivel empresarial para organizaciones complejas."},enterpriseCta:{en:"Start Enterprise",fr:"Démarrer Enterprise",de:"Enterprise starten",es:"Iniciar Empresa"},trialBadge:{en:"30-Day Free Trial",fr:"Essai Gratuit de 30 jours",de:"30 Tage kostenlos",es:"Prueba Gratis de 30 DÃas"},forever:{en:"forever",fr:"pour toujours",de:"für immer",es:"para siempre"},perMonth:{en:"per month",fr:"par mois",de:"pro Monat",es:"por mes"},activating:{en:"Activating...",fr:"Activation...",de:"Wird aktiviert...",es:"Activando..."},freeF1:{en:"20 AI credits / month",fr:"20 crédits IA / mois",de:"20 KI-Credits / Monat",es:"20 créditos IA / mes"},freeF2:{en:"3 governance assessments / day",fr:"3 évaluations de gouvernance / jour",de:"3 Governance-Bewertungen / Tag",es:"3 evaluaciones de gobernanza / dÃa"},freeF3:{en:"5 intelligence reports / month",fr:"5 rapports d'intelligence / mois",de:"5 Intelligenz-Berichte / Monat",es:"5 informes de inteligencia / mes"},freeF4:{en:"10 micro tools / day",fr:"10 micro-outils / jour",de:"10 Mikro-Tools / Tag",es:"10 micro-herramientas / dÃa"},freeF5:{en:"Dashboard access",fr:"Accès au tableau de bord",de:"Dashboard-Zugriff",es:"Acceso al panel"},freeF6:{en:"Basic policy generation",fr:"Génération de politiques de base",de:"Grundlegende Richtlinienerstellung",es:"Generación básica de polÃticas"},freeL1:{en:"Export governance documents",fr:"Exporter les documents de gouvernance",de:"Governance-Dokumente exportieren",es:"Exportar documentos de gobernanza"},freeL2:{en:"Advanced benchmarking",fr:"Analyse comparative avancée",de:"Erweitertes Benchmarking",es:"Benchmarking avanzado"},freeL3:{en:"Unlimited assessments",fr:"Ãvaluations illimitées",de:"Unbegrenzte Bewertungen",es:"Evaluaciones ilimitadas"},freeL4:{en:"Governance maturity reports",fr:"Rapports de maturité de gouvernance",de:"Governance-Reifeberichte",es:"Informes de madurez de gobernanza"},freeL5:{en:"Priority AI processing",fr:"Traitement IA prioritaire",de:"Priorisierte KI-Verarbeitung",es:"Procesamiento IA prioritario"},premF1:{en:"Unlimited AI credits",fr:"Crédits IA illimités",de:"Unbegrenzte KI-Credits",es:"
669Créditos IA ilimitados"},premF2:{en:"Unlimited assessments",fr:"Ãvaluations illimitées",de:"Unbegrenzte Bewertungen",es:"Evaluaciones ilimitadas"},premF3:{en:"All intelligence reports",fr:"Tous les rapports d'intelligence",de:"Alle Intelligenz-Berichte",es:"Todos los informes de inteligencia"},premF4:{en:"All micro tools",fr:"Tous les micro-outils",de:"Alle Mikro-Tools",es:"Todas las micro-herramientas"},premF5:{en:"Export to PDF & Word",fr:"Exportation PDF et Word",de:"PDF- & Word-Export",es:"Exportación a PDF y Word"},premF6:{en:"Governance maturity benchmarking",fr:"Analyse comparative de maturité de gouvernance",de:"Governance-Reife-Benchmarking",es:"Benchmarking de madurez de gobernanza"},premF7:{en:"Advanced risk dashboards",fr:"Tableaux de bord de risques avancés",de:"Erweiterte Risiko-Dashboards",es:"Paneles de riesgo avanzados"},premF8:{en:"Downloadable frameworks",fr:"Cadres téléchargeables",de:"Herunterladbare Frameworks",es:"Marcos descargables"},premF9:{en:"Priority AI processing",fr:"Traitement IA prioritaire",de:"Priorisierte KI-Verarbeitung",es:"Procesamiento IA prioritario"},entF1:{en:"Everything in Premium",fr:"Tout dans Premium",de:"Alles aus Premium",es:"Todo lo de Premium"},entF2:{en:"Custom governance frameworks",fr:"Cadres de gouvernance personnalisés",de:"MaÃgeschneiderte Governance-Frameworks",es:"Marcos de gobernanza personalizados"},entF3:{en:"Dedicated governance advisor",fr:"Conseiller en gouvernance dédié",de:"Dedizierter Governance-Berater",es:"Asesor de gobernanza dedicado"},entF4:{en:"White-label reports",fr:"Rapports en marque blanche",de:"White-Label-Berichte",es:"Informes de marca blanca"},entF5:{en:"SSO & advanced security",fr:"SSO et sécurité avancée",de:"SSO & erweiterte Sicherheit",es:"SSO y seguridad avanzada"},entF6:{en:"SLA & support",fr:"SLA et support",de:"SLA & Support",es:"SLA y soporte"},creditPacksTitle:{en:"Pay-Per-Use Credit Packs",fr:"Packs de Crédits à l'Usage",de:"Prepaid-Credit-Packs",es:"Paquetes de Créditos Pago por Uso"},creditPacksDesc:{en:"Need extra governance intelligence capacity? Top up with credit packs â no subscription required.",fr:"Besoin de capacité d'intelligence de gouvernance supplémentaire ? Rechargez avec des packs de crédits â aucun abonnement requis.",de:"Zusätzliche Governance-Intelligenz-Kapazität nodig? Laden Sie mit Credit-Packs auf â kein Abo erforderlich.",es:"¿Necesita capacidad adicional de inteligencia de gobernanza? Recargue con paquetes de créditos â sin suscripción."},popular:{en:"Popular",fr:"Populaire",de:"Beliebt",es:"Popular"},aiCredits:{en:"AI Credits",fr:"Crédits IA",de:"KI-Credits",es:"Créditos IA"},buyCredits:{en:"Buy Credits",fr:"Acheter des Crédits",de:"Credits kaufen",es:"Comprar Créditos"},starterPack:{en:"Starter Pack",fr:"Pack de Démarrage",de:"Starter-Pack",es:"Pack de Inicio"},starterDesc:{en:"For light governance tasks",fr:"Pour les tâches de gouvernance légères",de:"Für leichte Governance-Aufgaben",es:"Para tareas ligeras de gobernanza"},growthPack:{en:"Growth Pack",fr:"Pack Croissance",de:"Wachstums-Pack",es:"Pack de Crecimiento"},growthDesc:{en:"For active governance teams",fr:"Pour les équipes de gouvernance actives",de:"Für aktive Governance-Teams",es:"Para equipos de gobernanza activos"},powerPack:{en:"Power Pack",fr:"Pack Power",de:"Power-Pack",es:"Pack Power"},powerDesc:{en:"For intensive governance programmes",fr:"Pour les programmes de gouvernance intensifs",de:"Für intensive Governance-Programme",es:"Para programas intensivos de gobernanza"},enterprisePack:{en:"Enterprise Pack",fr:"Pack Enterprise",de:"Enterprise-Pack",es:"Pack Empresa"},enterprisePackDesc:{en:"For large organisations",fr:"Pour les grandes organisations",de:"Für groÃe Organisationen",es:"Para grandes organizaciones"},reportsTitle:{en:"One-Time Governance Reports",fr:"Rapports de Gouvernance Uniques",de:"Einmalige Governance-Berichte",es:"Informes de Gobernanza Ãnicos"},reportsDesc:{en:"Purchase individual high-value governance reports without a subscription.",fr:"Achetez des rapports de gouvernance à forte valeur ajoutée sans abonnement.",de:"Kaufen Sie einzelne hochwertige Governance-Berichte ohne Abo.",es:"Compre informes de gobernanza de alto valor sin suscripción."}
669,purchase:{en:"Purchase",fr:"Acheter",de:"Kaufen",es:"Comprar"},r1Name:{en:"Governance Maturity Assessment",fr:"Ãvaluation de Maturité de Gouvernance",de:"Governance-Reife-Bewertung",es:"Evaluación de Madurez de Gobernanza"},r1Desc:{en:"Full maturity report with benchmarks and roadmap",fr:"Rapport de maturité complet avec benchmarks et feuille de route",de:"Vollständiger Reifebericht mit Benchmarks und Roadmap",es:"Informe de madurez completo con benchmarks y hoja de ruta"},r2Name:{en:"Operational Risk Review",fr:"Revue des Risques Opérationnels",de:"Operative Risiko-Ãberprüfung",es:"Revisión de Riesgos Operativos"},r2Desc:{en:"Comprehensive risk analysis with mitigation plan",fr:"Analyse des risques complète avec plan d'atténuation",de:"Umfassende Risikoanalyse mit Minderungsplan",es:"Análisis de riesgos completo con plan de mitigación"},r3Name:{en:"Policy Framework Generator",fr:"Générateur de Cadre de Politiques",de:"Richtlinien-Framework-Generator",es:"Generador de Marco de PolÃticas"},r3Desc:{en:"Full policy suite for your governance domain",fr:"Suite complète de politiques pour votre domaine de gouvernance",de:"Vollständige Richtlinien-Suite für Ihren Governance-Bereich",es:"Suite completa de polÃticas para su dominio de gobernanza"},r4Name:{en:"AI Governance Readiness Report",fr:"Rapport de Préparation à la Gouvernance IA",de:"KI-Governance-Bereitschaftsbericht",es:"Informe de Preparación de Gobernanza IA"},r4Desc:{en:"Complete AI governance and ethics assessment",fr:"Ãvaluation complète de la gouvernance et l'éthique IA",de:"Vollständige KI-Governance- und Ethik-Bewertung",es:"Evaluación completa de gobernanza y ética IA"},r5Name:{en:"Regulatory Compliance Audit",fr:"Audit de Conformité Réglementaire",de:"Regulatorische Compliance-Audit",es:"AuditorÃa de Cumplimiento Regulatorio"},r5Desc:{en:"Gap analysis against current regulatory requirements",fr:"Analyse des écarts par rapport aux exigences réglementaires actuelles",de:"Lückenanalyse gegen aktuelle regulatorische Anforderungen",es:"Análisis de brechas contra requisitos regulatorios actuales"},r6Name:{en:"Executive Governance Pack",fr:"Pack de Gouvernance Exécutif",de:"Executive-Governance-Pack",es:"Pack de Gobernanza Ejecutiva"},r6Desc:{en:"Board-ready governance intelligence bundle",fr:"Ensemble d'intelligence de gouvernance prêt pour le conseil",de:"Board-fertiges Governance-Intelligenz-Paket",es:"Paquete de inteligencia de gobernanza listo para la junta"},ctaTitle:{en:"Ready to level up your governance?",fr:"Prêt à améliorer votre gouvernance ?",de:"Bereit, Ihre Governance auf das nächste Level zu heben?",es:"¿Listo para mejorar su gobernanza?"},ctaDesc:{en:"Start with our free tools and upgrade whenever you need more intelligence capacity, advanced reports, or enterprise-grade support.",fr:"Commencez avec nos outils gratuits et passez à un niveau supérieur lorsque vous avez besoin de plus de capacité, de rapports avancés ou de support de niveau entreprise.",de:"Starten Sie mit unseren kostenlosen Tools und upgraden Sie, wenn Sie mehr Kapazität, erweiterte Berichte oder Enterprise-Support benötigen.",es:"Comience con nuestras herramientas gratuitas y actualice cuando necesite más capacidad, informes avanzados o soporte de nivel empresarial."},startFree:{en:"Start Free",fr:"Commencer Gratuitement",de:"Kostenlos starten",es:"Empezar Gratis"},exploreTools:{en:"Explore Tools",fr:"Explorer les Outils",de:"Tools erkunden",es:"Explorar Herramientas"}},dashboard:{title:{en:"Your Governance Hub",fr:"Votre Centre de Gouvernance",de:"Ihr Governance-Hub",es:"Su Centro de Gobernanza"},subtitle:{en:"Track, manage, and share your governance activities",fr:"Suivez, gérez et partagez vos activités de gouvernance",de:"Verfolgen, verwalten und teilen Sie Ihre Governance-Aktivitäten",es:"Rastree, gestione y comparta sus actividades de gobernanza"},newAssessment:{en:"New Assessment",fr:"Nouvelle Ãvaluation",de:"Neue Bewertung",es:"Nueva Evaluación"},visitorFree:{en:"Visitor â Free Trial",fr:"Visiteur â Essai Gratuit",de:"Besucher â Kostenlose Testphase",es:"Visitante â Prueba Gratis"},freeTier:{en:"Free Tier",fr:"Niveau Gratuit",de:"Kostenlose Stufe",es:"Nivel Gratis"},creditsRemaining:{en:"AI credits remaining",fr:"crédits IA restants",de:"KI-Credits verbleibend",es:"créditos IA restantes"},assessmentsLeft:{en:"assessments left today",fr:"évaluations restantes aujourd'hui",de:"Bewertungen übrig heute",es:"evaluaciones restantes hoy"},upgradeToPremium:{en:"Upgrade to Premium",fr:"Passer à Premium",de:"Auf Premium upgraden",es:"Actualizar a Premium"},totalAssessments:{en:"Total Assessments",fr:"Ãvaluations Totales",de:"Gesamte Bewertungen",es:"Evaluaciones Totales"},documentsGenerated:{en:"Documents Generated",fr:"Documents Générés",de:"Erstellte Dokumente",es:"Documentos Generados"},averageScore:{en:"Average Score",fr:"Score Moyen",de:"Durchschnittspunktzahl",es:"Puntuación Media"},plan:{en:"Plan",fr:"Plan",de:"Plan",es:"Plan"}
669,credits:{en:"Credits",fr:"Crédits",de:"Credits",es:"Créditos"},premium:{en:"Premium",fr:"Premium",de:"Premium",es:"Premium"},free:{en:"Free",fr:"Gratuit",de:"Kostenlos",es:"Gratis"},quickActions:{en:"Quick Actions",fr:"Actions Rapides",de:"Schnellaktionen",es:"Acciones Rápidas"},recentActivity:{en:"Recent Activity",fr:"Activité Récente",de:"Letzte Aktivität",es:"Actividad Reciente"},tabAll:{en:"All",fr:"Tous",de:"Alle",es:"Todos"},tabAITools:{en:"AI Tools",fr:"Outils IA",de:"KI-Tools",es:"Herramientas IA"},tabMicroTools:{en:"Micro Tools",fr:"Micro-Outils",de:"Mikro-Tools",es:"Micro-Herramientas"},tabIntelligence:{en:"Intelligence",fr:"Intelligence",de:"Intelligenz",es:"Inteligencia"},noActivities:{en:"No activities yet",fr:"Aucune activité pour l'instant",de:"Noch keine Aktivitäten",es:"Aún no hay actividades"},getStarted:{en:"Get started",fr:"Commencer",de:"Loslegen",es:"Empezar"},qaHealthCheck:{en:"Health Check",fr:"Bilan de Santé",de:"Gesundheitscheck",es:"Chequeo de Salud"},qaPolicy:{en:"Generate Policy",fr:"Générer une Politique",de:"Richtlinie erstellen",es:"Generar PolÃtica"},qaRisks:{en:"Analyze Risks",fr:"Analyser les Risques",de:"Risiken analysieren",es:"Analizar Riesgos"},qaDecision:{en:"Decision Engine",fr:"Moteur de Décision",de:"Entscheidungs-Engine",es:"Motor de Decisiones"},qaMicroTools:{en:"Micro Tools",fr:"Micro-Outils",de:"Mikro-Tools",es:"Micro-Herramientas"},qaIntelligence:{en:"Intelligence",fr:"Intelligence",de:"Intelligenz",es:"Inteligencia"}},partner:{badge:{en:"Partner Growth Hub",fr:"Centre de Croissance des Partenaires",de:"Partner-Wachstums-Hub",es:"Centro de Crecimiento de Socios"},creatorsWelcomeTitle:{en:"Content Creators Welcome!",fr:"Créateurs de Contenu Bienvenue !",de:"Content-Ersteller Willkommen!",es:"¡Creadores de Contenido Bienvenidos!"},creatorsWelcomeDesc:{en:"Are you a content creator? Join our Partner Program to access campaign assignments, AI-generated content packs, creator resources, and earn commissions on referrals â all through a single application.",fr:"Vous êtes créateur de contenu ? Rejoignez notre Programme de Partenaires pour accéder aux missions, aux packs de contenu IA, aux ressources créateurs, et gagner des commissions â via une seule candidature.",de:"Sind Sie Content-Ersteller? Treten Sie unserem Partnerprogramm bei, um auf Kampagnen-Aufträge, KI-Content-Pakete, Ersteller-Ressourcen zuzugreifen und Provisionen zu verdienen â alles über eine Bewerbung.",es:"¿Eres creador de contenido? Ãnete a nuestro Programa de Socios para acceder a campañas, paquetes de contenido IA, recursos para creadores y ganar comisiones â con una sola solicitud."},heroTitle:{en:"Platform Growth Partners Wanted",fr:"Partenaires de Croissance de Plateforme Recherchés",de:"Plattform-Wachstumspartner gesucht",es:"Socios de Crecimiento de Plataforma Buscados"},heroSub1:{en:"Build a Market. Share the Success.",fr:"Construisez un Marché. Partagez le Succès.",de:"Einen Markt aufbauen. Den Erfolg teilen.",es:"Construya un Mercado. Comparta el Ãxito."},heroSub2:{en:"Commission + Recurring Income",fr:"Commission + Revenus Récurrents",de:"Provision + Wiederkehrende Einkünfte",es:"Comisión + Ingresos Recurrentes"},applyPartner:{en:"Apply to Become a Partner",fr:"Postuler pour Devenir Partenaire",de:"Als Partner bewerben",es:"Postular para Ser Socio"},partnerLogin:{en:"Partner Login",fr:"Connexion Partenaire",de:"Partner-Login",es:"Inicio de Sesión de Socio"},opportunityTitle:{en:"The Opportunity",fr:"L'Opportunité",de:"Die Gelegenheit",es:"La Oportunidad"},whatPartnersDo:{en:"What Partners Do",fr:"Ce que Font les Partenaires",de:"Was Partner tun",es:"Lo que Hacen los Socios"},wpd1:{en:"Introduce the platform to relevant customers",fr:"Présenter la plateforme aux clients pertinents",de:"Die Plattform relevanten Kunden vorstellen",es:"Presentar la plataforma a clientes relevantes"},wpd2:{en:"Generate and qualify commercial opportunities",fr:"Générer et qualifier des opportunités commerciales",de:"Kommerzielle Möglichkeiten generieren und qualifizieren",es:"Generar y calificar oportunidades comerciales"},wpd3:{en:"Support demonstrations and sales conversations",fr:"Soutenir les démonstrations et les conversations de vente",de:"Demonstrationen und Verkaufsgespräche unterstützen",es:"Apoyar demostraciones y conversaciones de venta"},wpd4:{en:"Develop partnerships and new markets",fr:"Développer des partenariats et de nouveaux marchés",de:"Partnerschaften und neue Märkte entwickeln",es:"Desarrollar alianzas y nuevos mercados"},whoWeServe:{en:"Who We Serve",fr:"Qui Nous Servons",de:"Wen Wir Bedie
669nen",es:"A Quién Servimos"},whoWeServeDesc:{en:"Governancepedia serves governance, risk, and compliance professionals across industries â from startups to enterprises. Partners connect these professionals with the tools, training, and intelligence they need.",fr:"Governancepedia sert les professionnels de la gouvernance, des risques et de la conformité dans tous les secteurs â des startups aux grandes entreprises. Les partenaires connectent ces professionnels aux outils, formations et intelligence dont ils ont besoin.",de:"Governancepedia bedient Governance-, Risiko- und Compliance-Experten in allen Branchen â von Startups bis zu Unternehmen. Partner verbinden diese Experten mit den Tools, Schulungen und der Intelligenz, die sie benötigen.",es:"Governancepedia sirve a profesionales de gobernanza, riesgos y cumplimiento en todas las industrias â desde startups hasta empresas. Los socios conectan a estos profesionales con las herramientas, formación e inteligencia que necesitan."},earningModel:{en:"Earning Model",fr:"Modèle de Revenus",de:"Erlösmodell",es:"Modelo de Ingresos"},firstYear:{en:"First-Year Commission",fr:"Commission de Première Année",de:"Provision im ersten Jahr",es:"Comisión del Primer Año"},firstYearDesc:{en:"of eligible first-year net platform revenue",fr:"du chiffre d'affaires net éligible de la première année",de:"des berechtigten Netto-Plattformumsatzes des ersten Jahres",es:"de los ingresos netos elegibles del primer año"},recurring:{en:"Recurring Commission",fr:"Commission Récurrente",de:"Wiederkehrende Provision",es:"Comisión Recurrente"},recurringDesc:{en:"on eligible renewals for active partners",fr:"sur les renouvellements éligibles pour les partenaires actifs",de:"auf berechtigte Erneuerungen für aktive Partner",es:"en renovaciones elegibles para socios activos"},accelerator:{en:"Performance Accelerator",fr:"Accélérateur de Performance",de:"Leistungsbeschleuniger",es:"Acelerador de Rendimiento"},acceleratorDesc:{en:"after agreed quarterly target",fr:"après objectif trimestriel convenu",de:"nach vereinbartem Quartalsziel",es:"tras objetivo trimestral acordado"},exampleNote:{en:"Example only â not guaranteed earnings. A partner who generates $10,000 in eligible first-year revenue earns $3,000 in commission. If $5,000 of that renews the following year, the partner earns $750 in recurring commission. Actual earnings depend entirely on your activity and qualifying sales.",fr:"Exemple seulement â gains non garantis. Un partenaire qui génère 10 000 $ de revenus éligibles la première année gagne 3 000 $ de commission. Si 5 000 $ sont renouvelés l'année suivante, le partenaire gagne 750 $ de commission récurrente. Les gains réels dépendent entièrement de votre activité et des ventes éligibles.",de:"Nur ein Beispiel â keine garantierten Einnahmen. Ein Partner, der 10.000 $ berechtigten Umsatz im ersten Jahr generiert, verdient 3.000 $ Provision. Wenn 5.000 $ davon im Folgejahr erneuert werden, erhält der Partner 750 $ wiederkehrende Provision. Tatsächliche Einnahmen hängen vollständig von Ihrer Aktivität und qualifizierenden Verkäufen ab.",es:"Solo un ejemplo â ganancias no garantizadas. Un socio que genera $10,000 en ingresos elegibles el primer año gana $3,000 en comisión. Si $5,000 se renuevan al año siguiente, el socio gana $750 en comisión recurrente. Las ganancias reales dependen completamente de su actividad y ventas calificadas."},whatYouReceive:{en:"What You Receive",fr:"Ce que Vous Recevez",de:"Was Sie Erhalten",es:"Lo que Recibe"},wr1Title:{en:"Product Training",fr:"Formation Produit",de:"Produktschulung",es:"Formación de Producto"},wr1Desc:{en:"Comprehensive training on platform products and demonstrations",fr:"Formation complète sur les produits et démonstrations de la plateforme",de:"Umfassende Schulung zu Plattform-Produkten und Demonstrationen",es:"Formación completa sobre productos y demostraciones de la plataforma"},wr2Title:{en:"Unique Referral Link",fr:"Lien de Parrainage Unique",de:"Eigener Empfehlungslink",es:"Enlace de Referencia Ãnico"},wr2Desc:{en:"Your permanent link â every qualifying sale is credited to you",fr:"Votre lien permanent â chaque vente éligible vous est créditée",de:"Ihr dauerhafter Link â jeder qualifizierende Verkauf wird Ihnen gutgeschrieben",es:"Su enlace permanente â cada venta calificada se le acredita"},wr3Title:{en:"Promotional Codes",fr:"Codes Promotionnels",de:"Promo-Codes",es:"Códigos Promocionales"},wr3Desc:{en:"Optional promo codes for campaigns and special offers",fr:"Codes promo optionnels pour les campagnes et offres spéciales",de:"Optionale Promo-Codes für Kampagnen und Sonderangebote",es:"Códigos promocionales opcionales para campañas y ofertas especiales"},wr4Title:{en:"Transparent Tracking",fr:"Suivi Transparent",de:"Transparente Verfolgung",es:"Seguimiento Transparente"},wr4Desc:{en:"Full visibility of approved sales and commission calculations",fr:"Visibilité complète des ventes approuvées et des calculs de commission",de
669:"Volle Transparenz über genehmigte Verkäufe und Provisionsberechnungen",es:"Visibilidad completa de ventas aprobadas y cálculos de comisión"},wr5Title:{en:"Management Support",fr:"Support de Gestion",de:"Management-Support",es:"Soporte de Gestión"},wr5Desc:{en:"Dedicated support for important opportunities and demos",fr:"Support dédié pour les opportunités et démos importantes",de:"Engagierter Support für wichtige Möglichkeiten und Demos",es:"Soporte dedicado para oportunidades y demos importantes"},wr6Title:{en:"Flexible Activity",fr:"Activité Flexible",de:"Flexible Aktivität",es:"Actividad Flexible"},wr6Desc:{en:"Independent business-development on your schedule",fr:"Développement commercial indépendant à votre rythme",de:"Unabhängige Geschäftsentwicklung nach Ihrem Zeitplan",es:"Desarrollo comercial independiente a su ritmo"},referralPromise:{en:"Your link. Your sales. Your commission.",fr:"Votre lien. Vos ventes. Votre commission.",de:"Ihr Link. Ihre Verkäufe. Ihre Provision.",es:"Su enlace. Sus ventas. Su comisión."},referralPromiseDesc:{en:"Every qualifying sale generated through your unique referral link will be credited to your partner account for commission purposes.",fr:"Chaque vente éligible générée via votre lien de parrainage unique sera créditée à votre compte partenaire à des fins de commission.",de:"Jeder qualifizierende Verkauf über Ihren einzigartigen Empfehlungslink wird Ihrem Partnerkonto für Provisionszwecke gutgeschrieben.",es:"Cada venta calificada generada a través de su enlace de referencia único se acreditará a su cuenta de socio para fines de comisión."},referralPriority:{en:"Attribution follows a clear priority sequence: approved manual leads first, then existing customer assignments, then your valid referral link, then promotional codes, then administrator resolution. Standard exceptions apply for refunds, fraud, duplicate accounts, and existing registered opportunities.",fr:"L'attribution suit une séquence de priorité claire : d'abord les leads manuels approuvés, puis les affectations de clients existants, puis votre lien de parrainage valide, puis les codes promotionnels, puis la résolution par l'administrateur. Des exceptions standard s'appliquent pour les remboursements, la fraude, les comptes en double et les opportunités enregistrées existantes.",de:"Die Attribution folgt einer klaren Prioritätsreihenfolge: zuerst genehmigte manuelle Leads, dann bestehende Kundenzuweisungen, dann Ihr gültiger Empfehlungslink, dann Promo-Codes, dann Administrator-Lösung. Standardausnahmen gelten für Rückerstattungen, Betrug, doppelte Konten und bestehende registrierte Möglichkeiten.",es:"La atribución sigue una secuencia de prioridad clara: primero los leads manuales aprobados, luego las asignaciones de clientes existentes, luego su enlace de referencia válido, luego los códigos promocionales, luego la resolución del administrador. Se aplican excepciones estándar para reembolsos, fraude, cuentas duplicadas y oportunidades registradas existentes."},growthPathway:{en:"Growth Pathway",fr:"Voie de Croissance",de:"Wachstumspfad",es:"Ruta de Crecimiento"},level:{en:"LEVEL",fr:"NIVEAU",de:"STUFE",es:"NIVEL"},gp1Title:{en:"Growth Partner",fr:"Partenaire de Croissance",de:"Wachstumspartner",es:"Socio de Crecimiento"},gp1Desc:{en:"Start here â build your pipeline and generate qualifying sales.",fr:"Commencez ici â construisez votre pipeline et générez des ventes éligibles.",de:"Hier starten â Pipeline aufbauen und qualifizierende Verkäufe generieren.",es:"Comience aquà â construya su pipeline y genere ventas calificadas."},gp2Title:{en:"Senior Growth Partner",fr:"Partenaire de Croissance Senior",de:"Senior-Wachstumspartner",es:"Socio de Crecimiento Senior"},gp2Desc:{en:"Consistent performance â enhanced commission rates and priority support.",fr:"Performance constante â taux de commission améliorés et support prioritaire.",de:"Konsistente Leistung â verbesserte Provisionsraten und Priority-Support.",es:"Rendimiento constante â tasas de comisión mejoradas y soporte prioritario."},gp3Title:{en:"Platform Sales Director",fr:"Directeur des Ventes de Plateforme",de:"Plattform-Verkaufsleiter",es:"Director de Ventas de Plataforma"},gp3Desc:{en:"Strategic accounts â lead enterprise opportunities and receive higher rates.",fr:"Comptes stratég
669iques â dirigez les opportunités enterprise et recevez des taux plus élevés.",de:"Strategische Konten â leiten Sie Enterprise-Möglichkeiten und erhalten Sie höhere Raten.",es:"Cuentas estratégicas â lidere oportunidades empresariales y reciba tasas más altas."},gp4Title:{en:"Platform Operating Partner",fr:"Partenaire Opérateur de Plateforme",de:"Plattform-Betriebspartner",es:"Socio Operador de Plataforma"},gp4Desc:{en:"Top tier â participate in platform growth and strategic initiatives.",fr:"Niveau supérieur â participez à la croissance de la plateforme et aux initiatives stratégiques.",de:"Top-Ebene â partizipieren Sie am Plattformwachstum und strategischen Initiativen.",es:"Nivel superior â participe en el crecimiento de la plataforma y iniciativas estratégicas."},faqTitle:{en:"Frequently Asked Questions",fr:"Questions Fréquentes",de:"Häufig Gestellte Fragen",es:"Preguntas Frecuentes"},faq1q:{en:"Is this a salaried position?",fr:"Est-ce un poste salarié ?",de:"Ist dies eine Festanstellung?",es:"¿Es este un puesto asalariado?"},faq1a:{en:"No. This is a commission-only independent commercial opportunity. There is no salary or guaranteed earnings. Your income depends entirely on qualifying sales generated through your referral link.",fr:"Non. Il s'agit d'une opportunité commerciale indépendante à commission uniquement. Il n'y a pas de salaire ni de gains garantis. Vos revenus dépendent entièrement des ventes éligibles générées via votre lien de parrainage.",de:"Nein. Dies ist eine unabhängige kommerzielle Gelegenheit rein auf Provisionsbasis. Es gibt kein Gehalt oder garantierte Einnahmen. Ihr Einkommen hängt vollständig von qualifizierenden Verkäufen über Ihren Empfehlungslink ab.",es:"No. Esta es una oportunidad comercial independiente solo con comisión. No hay salario ni ganancias garantizadas. Sus ingresos dependen completamente de las ventas calificadas generadas a través de su enlace de referencia."},faq2q:{en:"How are customers attributed to me?",fr:"Comment les clients me sont-ils attribués ?",de:"Wie werden mir Kunden zugeordnet?",es:"¿Cómo se me atribuyen los clientes?"},faq2a:{en:"When someone clicks your unique referral link and creates an account or completes a qualifying purchase within the attribution window (default 90 days), they are attributed to your partner account for commission purposes.",fr:"Lorsqu'une personne clique sur votre lien de parrainage unique et crée un compte ou effectue un achat éligible dans la fenêtre d'attribution (90 jours par défaut), elle est attribuée à votre compte partenaire à des fins de commission.",de:"Wenn jemand auf Ihren einzigartigen Empfehlungslink klickt und innerhalb des Attribution-Fensters (Standard 90 Tage) ein Konto erstellt oder einen qualifizierenden Kauf tätigt, wird er Ihrem Partnerkonto für Provisionszwecke zugeordnet.",es:"Cuando alguien hace clic en su enlace de referencia único y crea una cuenta o completa una compra calificada dentro de la ventana de atribución (90 dÃas por defecto), se le atribuye a su cuenta de socio para fines de comisión."},faq3q:{en:"Do I earn commission on renewals?",fr:"Gagnez-je une commission sur les renouvellements ?",de:"Verdiene ich Provision auf Erneuerungen?",es:"¿Gano comisión por renovaciones?"},faq3a:{en:"Yes. Eligible renewals and upgrades are credited to you when your active commission plan permits recurring commission, for as long as your partner agreement remains active.",fr:"Oui. Les renouvellements et mises à niveau éligibles vous sont crédités lorsque votre plan de commission actif permet une commission récurrente, aussi longtemps que votre accord de partenariat reste actif.",de:"Ja. Berechtigte Erneuerungen und Upgrades werden Ihnen gutgeschrieben, wenn Ihr aktiver Provisionsplan wiederkehrende Provision erlaubt, solange Ihre Partnervereinbarung aktiv bleibt.",es:"SÃ. Las renovaciones y mejoras elegibles se le acreditan cuando su plan de comisión activo permite comisión recurrente, mientras su acuerdo de socio permanezca activo."},faq4q:{en:"What happens if a customer refunds?",fr:"Que se passe-t-il si un client se fait rembourser ?",de:"Was passiert bei einer Kundenrückerstattung?",es:"¿Qué pasa si un cliente solicita un reembolso?"},faq4a:{en:"Commissions on refunded transactions are reversed. Partial refunds result in proportional commission adjustments. All adjustments are transparently recorded in your commission ledger.",fr:"Les commissions sur les transactions remboursées sont inversées. Les remboursements partiels entraînent des ajustements de commission proportionnels. Tous les ajustements sont enregistrés de manière transparente dans votre registre de commission.",de:"Provisionen auf erstattete Transaktionen werden storniert. Teilerstattungen führen zu proportionalen Provisionsanpassungen. Alle Anpassungen werden transparent in Ihrem Provisionsbuch protokolliert.",es:"Las comisiones por transacciones reembolsadas se revierten. Los reembolsos parciales resultan en ajustes de comisión proporcionales. Todos los ajustes se registran transparentemente en su libro de comisiones."},faq5q:{en:"Can I register leads manually?",fr:"Puis-je enregistrer des leads manuellement ?",de:"Kann ich Leads manuell erfassen?",es:"¿Puedo registrar leads manualmente?"},faq5a:{en:"Yes. If you have an important opportunity that may not purchase through a link, you can register the lead. Once approved by the platform team, it is protected for 120 days and transactions are credited to you.",fr:"Oui. Si vous avez une opportunité importante qui pourrait ne pas acheter via un lien, vous pouvez enregistrer le lead. Une fois approuvé par l'équipe de la plateforme, il est protégé pendant 120 jours et les transactions vous sont créditées.",de:"Ja. Wenn Sie eine wichtige Möglichkeit haben, die möglicherweise nicht über einen Link kauft, können Sie den Lead erfassen. Nach Genehmigung durch das Plattform-Team ist er 120 Tage geschützt und Transaktionen werden Ihnen gutgeschrieben.",es:"SÃ. Si tiene una oportunidad importante que podrÃa no comprar a través de un enlace, puede registrar el lead. Una vez aprobado por el equipo de la plataforma, está protegido por 120 dÃas y las transacciones se le acreditan."},faq6q:{en:"What support do I receive?",fr:"Quel support recevais-je ?",de:"Welchen Support erhalte ich?",es:"¿Qué soporte recibo?"},faq6a:{en:"You get product training, demonstration materials, a unique referral link, approved marketing resources, transparent tracking, and management support for important opportunities.",fr:"Vous recevez une formation produit, du matériel de démonstration, un lien de parrainage unique, des ressources marketing approuvées, un suivi transparent et un support de gestion pour les opportunités importantes.",de:"Sie erhalten Produktschulung, Demonstrationsmaterialien, einen einzigartigen Empfehlungslink, genehmigte Marketing-Ressourcen, transparente Verfolgung und Management-Support für wichtige Möglichkeiten.",es:"Recibe formación de producto, materiales de demostración, un enlace de referencia único, recursos de marketing aprobados, seguimiento transparente y soporte de gestión para oportunidades importantes."},readyCta:{en:"Ready to Build Your Market?",fr:"Prêt à Construire Votre Marché ?",de:"Bereit, Ihren Markt aufzubauen?",es:"¿Listo para Construir Su Mercado?"},readyCtaDesc:{en:"Apply online today or contact us with any questions.",fr:"Postulez en ligne aujourd'hui ou contactez-nous pour toute question.",de:"Bewerben Sie sich noch heute online oder kontaktieren Sie uns bei Fragen.",es:"Postule en lÃnea hoy o contáctenos con cualquier pregunta."},applyOnline:{en:"Apply Online",fr:"Postuler en Ligne",de:"Online bewerben",es:"Postular en LÃnea"},contactUs:{en:"Contact Us",fr:"Nous Contacter",de:"Kontakt aufnehmen",es:"
669Contáctenos"},legalDisclosure:{en:"Legal Disclosure: This is an independent, commission-only commercial opportunity. There is no salary or guaranteed earnings. Final rights are governed by the executed partner agreement. Governancepedia owns and manages the customer relationship; the partner receives contractual attribution and commission rights.",fr:"Mention Légale : Il s'agit d'une opportunité commerciale indépendante à commission uniquement. Il n'y a pas de salaire ni de gains garantis. Les droits finaux sont régis par l'accord de partenariat exécuté. Governancepedia possède et gère la relation client ; le partenaire reçoit des droits d'attribution et de commission contractuels.",de:"Rechtlicher Hinweis: Dies ist eine unabhängige, rein provisionsbasierte kommerzielle Gelegenheit. Es gibt kein Gehalt oder garantierte Einnahmen. Endgültige Rechte werden durch die ausgeführte Partnervereinbarung geregelt. Governancepedia besitzt und verwaltet die Kundenbeziehung; der Partner erhält vertragliche Attributions- und Provisionsrechte.",es:"Aviso Legal: Esta es una oportunidad comercial independiente solo con comisión. No hay salario ni ganancias garantizadas. Los derechos finales se rigen por el acuerdo de socio ejecutado. Governancepedia posee y gestiona la relación con el cliente; el socio recibe derechos de atribución y comisión contractuales."}},creator:{badge:{en:"Governancepedia Content Creator Program",fr:"Programme de Créateur de Contenu Governancepedia",de:"Governancepedia Content-Ersteller-Programm",es:"Programa de Creador de Contenido de Governancepedia"},heroTitle:{en:"Become a Content Creator for",fr:"Devenez Créateur de Contenu pour",de:"Werden Sie Content-Ersteller für",es:"Conviértase en Creador de Contenido para"},heroSub1:{en:"Love what we do? Interested in creating videos, social posts, tutorials, explainers or educational content?",fr:"Aimez ce que nous faisons ? Intéressé par la création de vidéos, posts sociaux, tutoriels, explications ou contenu éducatif ?",de:"Mögen Sie, was wir tun? Interesse an Videos, Social Posts, Tutorials, Erklärungen oder Bildungscontent?",es:"¿Le gusta lo que hacemos? ¿Interesado en crear videos, publicaciones sociales, tutoriales, explicaciones o contenido educativo?"},heroSub2:{en:"Join the Governancepedia Content Creator Program and gain access to ideas, scripts, campaigns, brand resources and fresh creator materials designed to help you create consistently.",fr:"Rejoignez le Programme de Créateur de Contenu Governancepedia et accédez à des idées, scripts, campagnes, ressources de marque et du matériel de créateur frais conçu pour vous aider à créer régulièrement.",de:"Treten Sie dem Governancepedia Content-Ersteller-Programm bei und erhalten Sie Zugang zu Ideen, Skripten, Kampagnen, Marken-Ressourcen und frischen Ersteller-Materialien, die Ihnen helfen, konsistent zu erstellen.",es:"Ãnase al Programa de Creador de Contenido de Governancepedia y obtenga acceso a ideas, guiones, campañas, recursos de marca y materiales frescos para creadores diseñados para ayudarle a crear consistentemente."},heroLookingFor:{en:"You don't need to already be a major influencer. We're interested in:",fr:"Vous n'avez pas besoin d'être déjà un influenceur majeur. Nous sommes intéressés par :",de:"Sie müssen kein groÃer Influencer sein. Wir suchen:",es:"No necesita ser ya un gran influencer. Estamos interesados en:"},traitCreativity:{en:"Creativity",fr:"Créativité",de:"Kreativität",es:"Creatividad"},traitCommunication:{en:"Communication",fr:"Communication",de:"Kommunikation",es:"Comunicación"},traitPersonality:{en:"Personality",fr:"Personnalité",de:"Persönlichkeit",es:"Personalidad"},traitCuriosity:{en:"Curiosity",fr:"Curiosité",de:"Neugier",es:"Curiosidad"},traitReliability:{en:"Reliability",fr:"Fiabilité",de:"Zuverlässigkeit",es:"Confiabilidad"},traitConsistency:{en:"Consistency",fr:"Cohérence",de:"Konsistenz",es:"Consistencia"},traitPotential:{en:"Potential",fr:"Potentiel",de:"Potenzial",es:"Potencial"},applyCta:{en:"Apply to Become a Content Creator",fr:"Postuler pour Devenir Créateur de C
669ontenu",de:"Als Content-Ersteller bewerben",es:"Postular para Ser Creador de Contenido"},learnHow:{en:"Learn How It Works",fr:"En Savoir Plus",de:"So funktioniert's",es:"Saber Cómo Funciona"},whatReceiveTitle:{en:"What Content Creators Receive",fr:"Ce que les Créateurs de Contenu Reçoivent",de:"Was Content-Ersteller Erhalten",es:"Lo que Reciben los Creadores de Contenido"},whatReceiveDesc:{en:"Everything you need to create compelling content about governance, risk, and compliance.",fr:"Tout ce dont vous avez besoin pour créer du contenu convaincant sur la gouvernance, les risques et la conformité.",de:"Alles, was Sie brauchen, um überzeugenden Content über Governance, Risiko und Compliance zu erstellen.",es:"Todo lo que necesita para crear contenido convincente sobre gobernanza, riesgos y cumplimiento."},b1Title:{en:"Content Ideas",fr:"Idées de Contenu",de:"Content-Ideen",es:"Ideas de Contenido"},b1Desc:{en:"Fresh topics and concepts to help you know what to make.",fr:"Sujets et concepts frais pour vous aider à savoir quoi créer.",de:"Frische Themen und Konzepte, die Ihnen helfen zu wissen, was Sie erstellen sollen.",es:"Temas y conceptos frescos para ayudarle a saber qué crear."},b2Title:{en:"Ready-to-Use Scripts",fr:"Scripts Prêts à l'Emploi",de:"Fertige Skripte",es:"Guiones Listos para Usar"},b2Desc:{en:"Short-form and long-form scripts designed around Governancepedia.",fr:"Scripts courts et longs conçus autour de Governancepedia.",de:"Kurz- und Langform-Skripte rund um Governancepedia.",es:"Guiones cortos y largos diseñados en torno a Governancepedia."},b3Title:{en:"Weekly AI Content Packs",fr:"Packs de Contenu IA Hebdomadaires",de:"Wöchentliche KI-Content-Packs",es:"Paquetes de Contenido IA Semanales"},b3Desc:{en:"Fresh AI-created resources delivered every week.",fr:"Ressources fraîches créées par IA livrées chaque semaine.",de:"Frische KI-erstellte Ressourcen jede Woche.",es:"Recursos frescos creados por IA entregados cada semana."},b4Title:{en:"Brand Assets",fr:"Ressources de Marque",de:"Marken-Assets",es:"Recursos de Marca"},b4Desc:{en:"Approved logos, images, screenshots and marketing materials.",fr:"Logos, images, captures d'écran et matériel marketing approuvés.",de:"Genehmigte Logos, Bilder, Screenshots und Marketingmaterialien.",es:"Logos, imágenes, capturas de pantalla y materiales de marketing aprobados."},b5Title:{en:"Campaigns",fr:"Campagnes",de:"Kampagnen",es:"Campañas"},b5Desc:{en:"Opportunities to participate in promotions and launches.",fr:"Opportunités de participer à des promotions et des lancements.",de:"Möglichkeiten, an Promotions und Launches teilzunehmen.",es:"Oportunidades de participar en promociones y lanzamientos."},b6Title:{en:"Creator Guidance",fr:"Guidance pour Créateurs",de:"Ersteller-Leitfaden",es:"GuÃa para Creadores"},b6Desc:{en:"Tips, tutorials and best practices to level up your content.",fr:"Conseils, tutoriels et meilleures pratiques pour améliorer votre contenu.",de:"Tipps, Tutorials und Best Practices für besseren Content.",es:"Consejos, tutoriales y mejores prácticas para mejorar su contenido."},b7Title:{en:"Partner Resources",fr:"Ressources Partenaire",de:"Partner-Ressourcen",es:"Recursos de Socio"},b7Desc:{en:"Access to the existing Partner Program tools and marketing resources.",fr:"Accès aux outils et ressources marketing du Programme Partenaire existant.",de:"Zugang zu den bestehenden Partner-Programm-Tools und Marketing-Ressourcen.",es:"Acceso a las herramientas y recursos de marketing del Programa de Socios existente."},b8Title:{en:"Commission Opportunities",fr:"Opportunités de Commission",de:"Provisionsmöglichkeiten",es:"Oportunidades de Comisión"},b8Desc:{en:"Use existing Partner referral links and commission tools.",fr:"Utilisez les liens de parrainage et outils de commission Partenaire existants.",de:"Nutzen Sie bestehende Partner-Empfehlungslinks und Provisions-Tools.",es:"Use los enlaces de referencia y herramientas de comisión de Socio existentes."},howItWorks:{en:"How It Works",fr:"Comment ça Marche",de:"So funktioniert's",es:"Cómo Funciona"},howItWorksDesc:{en:"From application to creation in six simple steps.",fr:"De la candidature à la création en six étapes simples.",de:"Von der Bewerbung bis zum Content in sechs einfachen Schritten.",es:"De la postulación a la creación en seis pasos simples."},step1:{en:"Apply",fr:"Postuler",de:"Bewerben",es:"Postular"},step1Desc:{en:"Submit a Content Creator application.",fr:"Soumettez une candidature de Créateur de C
669ontenu.",de:"Reichen Sie eine Content-Ersteller-Bewerbung ein.",es:"EnvÃe una postulación de Creador de Contenido."},step2:{en:"We Review Your Application",fr:"Nous Examinons Votre Candidature",de:"Wir Prüfen Ihre Bewerbung",es:"Revisamos Su Postulación"},step2Desc:{en:"Admin reviews your experience, interests and potential fit.",fr:"L'admin examine votre expérience, vos intérêts et votre adéquation potentielle.",de:"Der Admin prüft Ihre Erfahrung, Interessen und potenzielle Passung.",es:"El administrador revisa su experiencia, intereses y ajuste potencial."},step3:{en:"Get Approved",fr:"Ãtre Approuvé",de:"Genehmigt Werden",es:"Ser Aprobado"},step3Desc:{en:"If approved, you gain or retain access to the Partner Program.",fr:"Si approuvé, vous obtenez ou conservez l'accès au Programme Partenaire.",de:"Bei Genehmigung erhalten oder behalten Sie Zugang zum Partner-Programm.",es:"Si es aprobado, obtiene o conserva el acceso al Programa de Socios."},step4:{en:"Creator Access Unlocks",fr:"L'Accès Créateur se Débloque",de:"Ersteller-Zugang wird Freigeschaltet",es:"Se Desbloquea el Acceso de Creador"},step4Desc:{en:"A dedicated Content Creator area becomes available inside your Partner Program.",fr:"Un espace dédié aux Créateurs de Contenu devient disponible dans votre Programme Partenaire.",de:"Ein eigener Content-Ersteller-Bereich wird in Ihrem Partner-Programm verfügbar.",es:"Un área dedicada de Creador de Contenido está disponible en su Programa de Socios."},step5:{en:"Access Fresh Resources",fr:"Accéder aux Ressources Fraîches",de:"Frische Ressourcen Nutzen",es:"Acceder a Recursos Frescos"},step5Desc:{en:"Receive new ideas, scripts, campaigns and AI-generated creator resources every week.",fr:"Recevez de nouvelles idées, scripts, campagnes et ressources créateur générées par IA chaque semaine.",de:"Erhalten Sie jede Woche neue Ideen, Skripte, Kampagnen und KI-generierte Ersteller-Ressourcen.",es:"Reciba nuevas ideas, guiones, campañas y recursos para creadores generados por IA cada semana."},step6:{en:"Create & Grow",fr:"Créer & Grandir",de:"Erstellen & Wachsen",es:"Crear y Crecer"},step6Desc:{en:"Use the resources to create content, participate in campaigns and promote Governancepedia.",fr:"Utilisez les ressources pour créer du contenu, participer à des campagnes et promouvoir Governancepedia.",de:"Nutzen Sie die Ressourcen, um Content zu erstellen, an Kampagnen teilzunehmen und Governancepedia zu bewerben.",es:"Use los recursos para crear contenido, participar en campañas y promocionar Governancepedia."},existingPartnerTitle:{en:"Already a Governancepedia Partner?",fr:"Déjà Partenaire Governancepedia ?",de:"Schon Governancepedia-Partner?",es:"¿Ya es Socio de Governancepedia?"},existingPartnerDesc:{en:"You can apply to become a Content Creator directly from inside your Partner Dashboard. No need to fill out the public form â your profile info will be pre-populated.",fr:"Vous pouvez postuler pour devenir Créateur de Contenu directement depuis votre Tableau de Bord Partenaire. Pas besoin de remplir le formulaire public â vos informations de profil seront pré-remplies.",de:"Sie können sich direkt aus Ihrem Partner-Dashboard als Content-Ersteller bewerben. Kein öffentliches Formular nötig â Ihre Profilinfos werden vorausgefüllt.",es:"Puede postular para ser Creador de Contenido directamente desde su Panel de Socio. No necesita completar el formulario público â su información de perfil se rellenará automáticamente."},goToPartner:{en:"Go to Partner Dashboard",fr:"Aller au Tableau de Bord Partenaire",de:"Zum Partner-Dashboard",es:"Ir al Panel de Socio"},faqTitle:{en:"Frequently Asked Questions",fr:"Questions Fréquentes",de:"Häufig Gestellte Fragen",es:"Preguntas Frecuentes"},cfaq1q:{en:"Do I need to already be an influencer?",fr:"Dois-je déjà être un influenceur ?",de:"Muss ich bereits ein Influencer sein?",es:"¿Necesito ser ya un influencer?"},cfaq1a:{en:"No. Applicants can be new or experienced. We value creativity, communication, and consistency over follower counts.",fr:"Non. Les candidats peuvent être nouveaux ou expérimentés. Nous valorisons la créativité, la communication et la cohérence plutôt que le nombre d'abonnés.",de:"Nein. Bewerber können neu oder erfahren sein. Wir schätzen Kreativität, Kommunikation und Konsistenz mehr als Follower
669-Zahlen.",es:"No. Los solicitantes pueden ser nuevos o experimentados. Valoramos la creatividad, la comunicación y la consistencia sobre el número de seguidores."},cfaq2q:{en:"Do I need to already be a Partner?",fr:"Dois-je déjà être Partenaire ?",de:"Muss ich bereits Partner sein?",es:"¿Necesito ser ya Socio?"},cfaq2a:{en:"No. If approved, Partner Program access will be provided to you.",fr:"Non. Si approuvé, l'accès au Programme Partenaire vous sera fourni.",de:"Nein. Bei Genehmigung wird Ihnen der Zugang zum Partner-Programm gewährt.",es:"No. Si es aprobado, se le proporcionará acceso al Programa de Socios."},cfaq3q:{en:"I'm already a Partner. Can I apply?",fr:"Je suis déjà Partenaire. Puis-je postuler ?",de:"Ich bin bereits Partner. Kann ich mich bewerben?",es:"Ya soy Socio. ¿Puedo postular?"},cfaq3a:{en:"Yes. Existing Partners can apply directly from inside the Partner Program.",fr:"Oui. Les Partenaires existants peuvent postuler directement depuis le Programme Partenaire.",de:"Ja. Bestehende Partner können sich direkt aus dem Partner-Programm bewerben.",es:"SÃ. Los Socios existentes pueden postular directamente desde el Programa de Socios."},cfaq4q:{en:"Does being a Partner automatically make me a Content Creator?",fr:"Ãtre Partenaire fait-il automatiquement de moi un Créateur de Contenu ?",de:"Macht mich ein Partner-Status automatisch zum Content-Ersteller?",es:"¿Ser Socio me convierte automáticamente en Creador de Contenido?"},cfaq4a:{en:"No. Content Creator access requires a separate application and approval.",fr:"Non. L'accès Créateur de Contenu nécessite une candidature et une approbation séparées.",de:"Nein. Der Content-Ersteller-Zugang erfordert eine separate Bewerbung und Genehmigung.",es:"No. El acceso de Creador de Contenido requiere una postulación y aprobación separadas."},cfaq5q:{en:"What happens if I'm approved?",fr:"Que se passe-t-il si je suis approuvé ?",de:"Was passiert, wenn ich genehmigt werde?",es:"¿Qué pasa si soy aprobado?"},cfaq5a:{en:"You gain access to the Creator Resource Center inside your Partner Program, with weekly fresh resources.",fr:"Vous obtenez l'accès au Centre de Ressources Créateur dans votre Programme Partenaire, avec des ressources fraîches hebdomadaires.",de:"Sie erhalten Zugang zum Ersteller-Ressourcen-Center in Ihrem Partner-Programm mit wöchentlichen frischen Ressourcen.",es:"Obtiene acceso al Centro de Recursos para Creadores en su Programa de Socios, con recursos frescos semanales."},cfaq6q:{en:"What resources will I receive?",fr:"Quelles ressources recevrai-je ?",de:"Welche Ressourcen erhalte ich?",es:"¿Qué recursos recibiré?"},cfaq6a:{en:"Ideas, scripts, brand assets, campaigns, guidance, training and fresh weekly AI-created creator resources.",fr:"Idées, scripts, ressources de marque, campagnes, guidance, formation et ressources créateur fraîches créées par IA chaque semaine.",de:"Ideen, Skripte, Marken-Assets, Kampagnen, Leitfaden, Schulung und frische wöchentliche KI-erstellte Ersteller-Ressourcen.",es:"Ideas, guiones, recursos de marca, campañas, guÃa, formación y recursos frescos para creadores creadados por IA cada semana."},finalCtaTitle:{en:"Ready to Create with Governancepedia?",fr:"Prêt à Créer avec Governancepedia ?",de:"Bereit, mit Governancepedia zu erstellen?",es:"¿Listo para Crear con Governancepedia?"},bringVoice:{en:"Bring your voice.",fr:"Apportez votre voix.",de:"Bringen Sie Ihre Stimme.",es:"Aporte su voz."},bringPersonality:{en:"Bring your personality.",fr:"Apportez votre personnalité.",de:"Bringen Sie Ihre Persönlichkeit.",es:"Aporte su personalidad."},bringCreativity:{en:"Bring your creativity.",fr:"Apportez votre créativité.",de:"Bringen Sie Ihre Kreativität.",es:"Aporte su
669creatividad."},weProvide:{en:"We'll provide the resources.",fr:"Nous fournissons les ressources.",de:"Wir stellen die Ressourcen.",es:"Nosotros proporcionamos los recursos."}},partnerApply:{title:{en:"Partner Application",fr:"Candidature Partenaire",de:"Partner-Bewerbung",es:"Solicitud de Socio"},subtitle:{en:"Join the Governancepedia Partner Growth Hub.",fr:"Rejoignez le Hub de Croissance Partenaire Governancepedia.",de:"Treten Sie dem Governancepedia Partner-Wachstums-Hub bei.",es:"Ãnase al Hub de Crecimiento de Socios de Governancepedia."},step1:{en:"Personal Info",fr:"Infos Personnelles",de:"Persönliche Daten",es:"Info Personal"},step2:{en:"Professional Background",fr:"Parcours Professionnel",de:"Beruflicher Hintergrund",es:"Antecedentes Profesionales"},step3:{en:"Growth Plan",fr:"Plan de Croissance",de:"Wachstumsplan",es:"Plan de Crecimiento"},step4:{en:"Declarations",fr:"Déclarations",de:"Erklärungen",es:"Declaraciones"},step5:{en:"Review",fr:"Vérification",de:"Ãberprüfung",es:"Revisión"},fullName:{en:"Full Legal Name *",fr:"Nom Légal Complet *",de:"Vollständiger Rechtlicher Name *",es:"Nombre Legal Completo *"},displayName:{en:"Preferred Display Name",fr:"Nom d'Affichage Préféré",de:"Bevorzugter Anzeigename",es:"Nombre para Mostrar"},email:{en:"Email *",fr:"E-mail *",de:"E-Mail *",es:"Correo *"},phone:{en:"Phone",fr:"Téléphone",de:"Telefon",es:"Teléfono"},country:{en:"Country *",fr:"Pays *",de:"Land *",es:"PaÃs *"},region:{en:"Region",fr:"Région",de:"Region",es:"Región"},applicantType:{en:"Applicant Type",fr:"Type de Candidat",de:"Bewerbertyp",es:"Tipo de Solicitante"},individual:{en:"Individual",fr:"Individuel",de:"Einzelperson",es:"Individual"},company:{en:"Company",fr:"Entreprise",de:"Unternehmen",es:"Empresa"},companyName:{en:"Company Name",fr:"Nom de l'Entreprise",de:"Unternehmensname",es:"Nombre de la Empresa"},companyReg:{en:"Company Registration",fr:"Enregistrement de l'Entreprise",de:"Unternehmensregistrierung",es:"Registro de la Empresa"},website:{en:"Website",fr:"Site Web",de:"Website",es:"Sitio Web"},socialProfiles:{en:"Professional Social Profiles",fr:"Profils Sociaux Professionnels",de:"Berufliche Social-Media-Profile",es:"Perfiles Sociales Profesionales"},background:{en:"Professional Background *",fr:"Parcours Professionnel *",de:"Beruflicher Hintergrund *",es:"Antecedentes Profesionales *"},backgroundPh:{en:"Describe your professional experience, current role, and relevant expertise...",fr:"Décrivez votre expérience professionnelle, votre rôle actuel et votre expertise pertinente...",de:"Beschreiben Sie Ihre berufliche Erfahrung, aktuelle Rolle und relevante Expertise...",es:"Describa su experiencia profesional, rol actual y experiencia relevante..."},industries:{en:"Relevant Industries",fr:"Industries Pertinentes",de:"Relevante Branchen",es:"Industrias Relevantes"},products:{en:"Preferred Products",fr:"Produits Préférés",de:"Bevorzugte Produkte",es:"Productos Preferidos"},audience:{en:"Existing Audience or Network",fr:"Audience ou Réseau Existant",de:"Bestehendes Publikum oder Netzwerk",es:"Audiencia o Red Existente"},audiencePh:{en:"Describe your existing audience, community, or professional network...",fr:"Décrivez votre audience, communauté ou réseau professionnel existant...",de:"Beschreiben Sie Ihr bestehendes Publikum, Ihre Community oder Ihr berufliches Netzwerk...",es:"Describa su audiencia, comunidad o red profesional existente..."},growthApproach:{en:"Proposed 90-Day Growth Approach *",fr:"Approche de Croissance sur 90 Jours *",de:"Vorgeschlagener 90-Tage-Wachstumsansatz *",es:"Enfoque de Crecimiento a 90 DÃas *"},growthApproachPh:{en:"How do you plan to introduce the platform and generate qualifying opportunities in your first 90 days?",fr:"Comment comptez-vous présenter la plateforme et générer des opportunités qualifiantes pendant vos 90 premiers jours ?",de:"Wie planen Sie, die Plattform einzuführen und qualifizierende Opportunities in Ihren ersten 90 Tagen zu generieren?",es:"¿Cómo planea presentar la plataforma y generar oportunidades calificadas en sus primeros 90 dÃas?"},languages:{en:"Languages",fr:"Langues",de:"Sprachen",es:"Idiomas"},availability:{en:"Estimated Monthly Availability",fr:"Disponibilité Mensuelle Estimée",de:"Geschätzte Monatliche Verfügbarkeit",es:"Disponibilidad Mensual Estimada"},occasional:{en:"Occasional (a few hours/week)",fr:"Occasionnel (quelques heures/semaine)",de:"Gelegentlich (wenige Stunden/Woche)",es:"Ocasional (pocas horas/semana)"},partTime:{en:"Part-time (10-20 hours/week)",fr:"Temps partiel (10-20 heures/semaine)",de:"Teilzeit (10-20 Stunden/Woche)",es:"Tiempo parcial (10-20 horas/semana)"},fullTime:{en:"Full-time (30+ hours/week)",fr:"Temps plein (30+ heures/semaine)",de:"Vollzeit (30+ Stunden/Woche)",es:"Tiempo completo (30+ horas/semana)"},coiDecl:{en:"Conflict of Interest Declaration",fr:"Déclaration de Conflit d'Intérêts",de:"Interessenkonflikt-Erklärung",es:"Declaración de Conflicto de Intereses"},coiDesc:{en:"I declare that I have no existing conflicts of interest that would prevent me from serving as a Growth Partner, and I agree to disclose any that may arise.",fr:"Je déclare n'avoir aucun conflit d'intérêts existant qui m'empêcherait de servir en tant que Partenaire de Croissance, et j'accepte de divulguer tout conflit qui pourrait survenir.",de:"Ich erkläre, dass keine bestehenden Interessenkonflikte vorliegen, die mich als Growth Partner hindern würden, und ich verpflichte mich, entstehende offenzulegen.",es:"Declaro que no tengo conflictos de interés existentes que me impidan actuar como Socio de Crecimiento, y acepto divulgar cualquiera que pueda surgir."},privacyDecl:{en:"Privacy Notice Accepted *",fr:"Avis de Confidentialité Accepté *",de:"Datenschutzhinweis Akzeptiert *",es:"Aviso de Privacidad Aceptado *"},privacyDesc:{en:"I have read and accept the privacy notice describing how my application data will be processed and stored.",fr:"J'ai lu et j'accepte l'avis de confidentialité décrivant comment mes données de candidature seront traitées et stockées.",de:"Ich habe den Datenschutzhinweis gelesen und akzeptiere, wie meine Bewerbungsdaten verarbeitet und gespeichert werden.",es:"He leÃdo y acepto el aviso de privacidad que describe cómo se procesarán y almacenarán mis datos de solicitud."},consentDecl:{en:"Consent to Communications",fr:"Consentement aux Communications",de:"Zustimmung zu Kommunikation",es:"Consentimiento a Comunicaciones"},consentDesc:{en:"I consent to receive communications about my application and the partner program.",fr:"Je consens à recevoir des communications concernant ma candidature et le programme partenaire.",de:"Ich stimme zu, Kommunikation über meine Bewerbung und das Partner-Programm zu erhalten.",es:"Doy mi consentimiento para recibir comunicaciones sobre mi solicitud y el programa de socios."},reviewTitle:{en:"Review Your Application",fr:"Vérifiez Votre Candidature",de:"Ãberprüfen Sie Ihre Bewerbung",es:"Revise Su Solicitud"},reviewDesc:{en:"Please review your information before submitting.",fr:"Veuillez vérifier vos informations avant de soumettre.",de:"Bitte überprüfen Sie Ihre Informationen vor dem Absenden.",es:"Por favor revise su información antes de enviar."},reviewName:{en:"Name:",fr:"Nom :",de:"Name:",es:"Nombre:"},reviewEmail:{en:"Email:",fr:"E-mail :",de:"E-Mail:",es:"Correo:"},reviewPhone:{en:"Phone:",fr:"Téléphone :",de:"Telefon:",es:"Teléfono:"},reviewCountry:{en:"Country:",fr:"Pays :",de:"Land:",es:"PaÃs:"},reviewType:{en:"Type:",fr:"Type :",de:"Typ:",es:"Tipo:"},reviewCompany:{en:"Company:",fr:"Entreprise :",de:"Unternehmen:",es:"Empresa:"},reviewIndustries:{en:"Industries:",fr:"Industries :",de:"Branchen:",es:"Industrias:"},reviewProducts:{en:"Products:",fr:"Produits :",de:"Produkte:",es:"Productos:"},reviewLanguages:{en:"Languages:",fr:"Langues :",de:"Sprachen:",es:"Idiomas:"},reviewAvailability:{en:"Availability:",fr:"Disponibilité :",de:"Verfügbarkeit:",es:"Disponibilidad:"},reviewAck:{en:"By submitting, you acknowledge this is a commission-only independent commercial opportunity with no salary or guaranteed earnings. Final rights are governed by the executed partner agreement.",fr:"En soumettant, vous reconnaissez qu'il s'agit d'une opportunité commerciale indépendante à commission uniquement, sans salaire ni gains garantis. Les droits finaux sont régis par l'accord partenaire exécuté.",de:"Mit dem Absenden bestätigen Sie, dass es sich um eine rein provisionsbasierte unabhängige kommerzielle Opportunity handelt, ohne Gehalt oder garantierte Einnahmen. Die endgültigen Rechte werden durch den ausgeführten Partnervertrag geregelt.",es:"Al enviar, reconoce que esta es una oportunidad comercial independiente solo por comisión, sin salario ni ganancias garantizadas. Los derechos finales se rigen por el acuerdo de socio firmado."},back:{en:"Back",fr:"Retour",de:"Zurück",es:"Atrás"},saveDraft:{en:"Save Draft",fr:"Enregistrer le Brouillon",de:"Entwurf Speichern",es:"Guardar Borrador"},next:{en:"Next",fr:"Suivant",de:"Weiter",es:"Siguiente"},submit:{en:"Submit Application",fr:"Soumettre la Candidature",de:"Bewerbung Absenden",es:"Enviar Solicitud"},submitting:{en:"Submitting...",fr:"Envoi...",de:"Wird gesendet...",es:"Enviando..."},draftSaved:{en:"Draft saved. You can return to complete your application.",fr:"Brouillon enregistré. Vous pouvez revenir pour compléter votre candidature.",de:"Entwurf gespeichert. Sie können zurückkehren, um Ihre Bewerbung zu vervollständigen.",es:"Borrador guardado. Puede regresar para completar su solicitud."},draftFailed:{en:"Failed to save draft",fr:"Ãchec de l'enregistrement du brouillon",de:"Entwurf konnte nicht gespeichert werden",es:"Error al guardar el borrador"},submitSuccess:{en:"Application submitted! Check your email to verify your address.",fr:"Candidature soumise
669! Vérifiez votre e-mail pour confirmer votre adresse.",de:"Bewerbung eingereicht! Prüfen Sie Ihre E-Mail zur Adressbestätigung.",es:"¡Solicitud enviada! Revise su correo para verificar su dirección."},submitFailed:{en:"Failed to submit application",fr:"Ãchec de l'envoi de la candidature",de:"Bewerbung konnte nicht gesendet werden",es:"Error al enviar la solicitud"},acceptRequired:{en:"Please accept the required declarations",fr:"Veuillez accepter les déclarations requises",de:"Bitte akzeptieren Sie die erforderlichen Erklärungen",es:"Por favor acepte las declaraciones requeridas"}},creatorApply:{title:{en:"Content Creator Application",fr:"Candidature Créateur de Contenu",de:"Content-Ersteller-Bewerbung",es:"Solicitud de Creador de Contenido"},subtitle:{en:"Tell us about yourself and your content creation interests.",fr:"Parlez-nous de vous et de vos intérêts en création de contenu.",de:"Erzählen Sie uns über sich und Ihre Content-Erstellungs-Interessen.",es:"Cuéntenos sobre usted y sus intereses en la creación de contenido."},existingPartnerBadge:{en:"We detected you're an existing Partner â your profile has been pre-populated.",fr:"Nous avons détecté que vous êtes déjà Partenaire â votre profil a été pré-rempli.",de:"Wir haben erkannt, dass Sie bereits Partner sind â Ihr Profil wurde vorausgefüllt.",es:"Detectamos que ya es Socio â su perfil se ha rellenado automáticamente."},personalInfo:{en:"Personal Information",fr:"Informations Personnelles",de:"Persönliche Informationen",es:"Información Personal"},firstName:{en:"First Name *",fr:"Prénom *",de:"Vorname *",es:"Nombre *"},lastName:{en:"Last Name *",fr:"Nom de Famille *",de:"Nachname *",es:"Apellido *"},country:{en:"Country",fr:"Pays",de:"Land",es:"PaÃs"},region:{en:"Region",fr:"Région",de:"Region",es:"Región"},timezone:{en:"Timezone",fr:"Fuseau Horaire",de:"Zeitzone",es:"Zona Horaria"},languagesLabel:{en:"Languages (comma-separated)",fr:"Langues (séparées par des virgules)",de:"Sprachen (durch Komma getrennt)",es:"Idiomas (separados por comas)"},languagesPh:{en:"English, German, French",fr:"Anglais, Allemand, Français",de:"Englisch, Deutsch, Französisch",es:"Inglés, Alemán, Francés"},creatorExp:{en:"Creator Experience",fr:"Expérience Créateur",de:"Ersteller-Erfahrung",es:"Experiencia como Creador"},creatorExpDesc:{en:"Where are you in your content creator journey?",fr:"Où en êtes-vous dans votre parcours de créateur de contenu ?",de:"Wo stehen Sie in Ihrer Content-Ersteller-Reise?",es:"¿En qué punto está en su viaje como creador de contenido?"},expExperienced:{en:"Experienced Content Creator",fr:"Créateur de Contenu Expérimenté",de:"Erfahrener Content-Ersteller",es:"Creador de Contenido Experimentado"},expRegularly:{en:"Creating regularly",fr:"Crée régulièrement",de:"Erstelle regelmäÃig",es:"Creo regularmente"},expOccasionally:{en:"Creating occasionally",fr:"Crée occasionnellement",de:"Erstelle gelegentlich",es:"Creo ocasionalmente"},expJustStarting:{en:"Just starting",fr:"Débute",de:"Fange gerade an",es:"Recién empezando"},expNotStarted:{en:"Haven't started yet",fr:"Pas encore commencé",de:"Noch nicht begonnen",es:"Aún no he empezado"},socialProfiles:{en:"Social Profiles",fr:"Profils Sociaux",de:"Social-Media-Profile",es:"Perfiles Sociales"},socialProfilesDesc:{en:"Add your social media accounts and approximate follower counts.",fr:"Ajoutez vos comptes de réseaux sociaux et nombre d'abonnés approximatif.",de:"Fügen Sie Ihre Social-Media-Konten und ungefähre Follower-Zahlen hinzu.",es:"Añada sus cuentas de redes sociales y número aproximado de seguidores."},platform:{en:"Platform",fr:"Plateforme",de:"Plattform",es:"Plataforma"},username:{en:"Username",fr:"Nom d'Utilisateur",de:"Benutzername",es:"Nombre de Usuario"},url:{en:"URL",fr:"URL",de:"URL",es:"URL"},followers:{en:"Followers",fr:"Abonnés",de:"Follower",es:"Seguidores"},addSocial:{en:"Add Social Profile",fr:"Ajouter un Profil Social",de:"Social-Profil Hinzufügen",es:"Añadir Perfil Social"}
669,contentInterests:{en:"Content Interests",fr:"Intérêts de Contenu",de:"Content-Interessen",es:"Intereses de Contenido"},contentInterestsDesc:{en:"What topics would you like to create content about?",fr:"De quels sujets aimeriez-vous créer du contenu ?",de:"Ãber welche Themen möchten Sie Content erstellen?",es:"¿Sobre qué temas le gustarÃa crear contenido?"},contentFormats:{en:"Content Formats",fr:"Formats de Contenu",de:"Content-Formate",es:"Formatos de Contenido"},contentFormatsDesc:{en:"What would you like to create?",fr:"Que voudriez-vous créer ?",de:"Was möchten Sie erstellen?",es:"¿Qué le gustarÃa crear?"},appQuestions:{en:"Application Questions",fr:"Questions de Candidature",de:"Bewerbungsfragen",es:"Preguntas de Solicitud"},whyCreate:{en:"Why do you want to become a Content Creator for Governancepedia?",fr:"Pourquoi voulez-vous devenir Créateur de Contenu pour Governancepedia ?",de:"Warum möchten Sie Content-Ersteller für Governancepedia werden?",es:"¿Por qué quiere ser Creador de Contenido para Governancepedia?"},contentTypePref:{en:"What type of content would you enjoy creating?",fr:"Quel type de contenu aimeriez-vous créer ?",de:"Welche Art von Content würden Sie gerne erstellen?",es:"¿Qué tipo de contenido disfrutarÃa crear?"},subjectsInterest:{en:"What subjects interest you most?",fr:"Quels sujets vous intéressent le plus ?",de:"Welche Themen interessieren Sie am meisten?",es:"¿Qué temas le interesan más?"},creationFreq:{en:"How often could you realistically create content?",fr:"à quelle fréquence pourriez-vous créer du contenu de manière réaliste ?",de:"Wie oft könnten Sie realistisch Content erstellen?",es:"¿Con qué frecuencia podrÃa crear contenido de forma realista?"},freqSeveralWeek:{en:"Several times per week",fr:"Plusieurs fois par semaine",de:"Mehrmals pro Woche",es:"Varias veces por semana"},freqWeekly:{en:"Weekly",fr:"Hebdomadaire",de:"Wöchentlich",es:"Semanal"},freqSeveralMonth:{en:"Several times per month",fr:"Plusieurs fois par mois",de:"Mehrmals pro Monat",es:"Varias veces por mes"},freqMonthly:{en:"Monthly",fr:"Mensuel",de:"Monatlich",es:"Mensual"},freqCampaign:{en:"Campaign-based",fr:"Basé sur les campagnes",de:"Kampagnen-basiert",es:"Basado en campañas"},cameraComfort:{en:"Are you comfortable appearing on camera?",fr:"Ãtes-vous à l'aise d'apparaître à la caméra ?",de:"Fühlen Sie sich w
669ohl vor der Kamera?",es:"¿Se siente cómodo apareciendo en cámara?"},cameraYes:{en:"Yes",fr:"Oui",de:"Ja",es:"SÃ"},cameraSometimes:{en:"Sometimes",fr:"Parfois",de:"Manchmal",es:"A veces"},cameraVoiceover:{en:"Prefer voiceover",fr:"Préfère la voix off",de:"Bevorzugt Voiceover",es:"Prefiero voz en off"},cameraNo:{en:"No",fr:"Non",de:"Nein",es:"No"},campaignInterest:{en:"Would you be interested in participating in promotional campaigns?",fr:"Seriez-vous intéressé par la participation à des campagnes promotionnelles ?",de:"Hätten Sie Interesse an der Teilnahme an Werbekampagnen?",es:"¿EstarÃa interesado en participar en campañas promocionales?"},commissionInterest:{en:"Would you be interested in commission-based opportunities through the Partner Program?",fr:"Seriez-vous intéressé par des opportunités basées sur la commission via le Programme Partenaire ?",de:"Hätten Sie Interesse an provisionsbasierten Opportunities über das Partner-Programm?",es:"¿EstarÃa interesado en oportunidades basadas en comisiones a través del Programa de Socios?"},yesMaybe:{en:"Maybe",fr:"Peut-être",de:"Vielleicht",es:"Tal vez"},introVideo:{en:"Introduction Video",fr:"Vidéo de Présentation",de:"Vorstellungs-Video",es:"Video de Presentación"},introVideoDesc:{en:"Show us who you are! Share a 30â90 second video. You can provide a public URL (YouTube, Loom, etc.). No professional production quality needed.",fr:"Montrez-nous qui vous êtes ! Partagez une vidéo de 30 à 90 secondes. Vous pouvez fournir une URL publique (YouTube, Loom, etc.). Aucune qualité de production professionnelle requise.",de:"Zeigen Sie uns, wer Sie sind! Teilen Sie ein 30â90 Sekunden Video. Sie können eine öffentliche URL angeben (YouTube, Loom, etc.). Keine professionelle Produktionsqualität nötig.",es:"¡Muéstreanos quién es! Comparta un video de 30â90 segundos. Puede proporcionar una URL pública (YouTube, Loom, etc.). No se requiere calidad de producción profesional."},videoUrl:{en:"Public Video URL",fr:"URL Vidéo Publique",de:"Ãffentliche Video-URL",es:"URL Pública del Video"},videoUrlPh:{en:"https://youtube.com/watch?v=... or https://loom.com/share/...",fr:"https://youtube.com/watch?v=... ou https://loom.com/share/...",de:"https://youtube.com/watch?v=... oder https://loom.com/share/...",es:"https://youtube.com/watch?v=... o https://loom.com/share/..."},videoDesc:{en:"Tell us: who you are, why you want to create content, what interests you, what kind of content you enjoy, and why you'd like to work with Governancepedia.",fr:"Dites-nous : qui vous êtes, pourquoi vous voulez créer du contenu, ce qui vous intéresse, quel type de contenu vous aimez, et pourquoi vous aimeriez travailler avec Governancepedia.",de:"Sagen Sie uns: wer Sie sind, warum Sie Content erstellen möchten, was Sie interessiert, welche Art von Content Sie mögen, und warum Sie mit Governancepedia arbeiten möchten.",es:"Cuéntenos: quién es, por qué quiere crear contenido, qué le interesa, qué tipo de contenido disfruta, y por qué le gustarÃa trabajar con Governancepedia."},cancel:{en:"Cancel",fr:"Annuler",de:"Abbrechen",es:"Cancelar"},submit:{en:"Submit Application",fr:"Soumettre la Candidature",de:"Bewerbung Absenden",es:"Enviar Solicitud"},submitting:{en:"Submitting...",fr:"Envoi...",de:"Wird gesendet...",es:"Enviando..."},back:{en:"Back",fr:"Retour",de:"Zurück",es:"Atrás"},alreadyApproved:{en:"You're Already an Approved Content Creator!",fr:"Vous Ãtes Déjà un Créateur de Contenu Approuvé !",de:"Sie Sind Bereits ein Genehmigter Content-Ersteller!",es:"¡Ya es un Creador de Contenido Aprobado!"},alreadyApprovedDesc:{en:"Your Creator Resource Center is available inside your Partner Dashboard.",fr:"Votre Centre de Ressources Créateur est disponible dans votre Tableau de Bord Partenaire.",de:"Ihr Ersteller-Ressourcen-Center ist in Ihrem Partner-Dashboard verfügbar.",es:"Su Centro de Recursos para Creadores está disponible en su Panel de Socio."},goToCreator:{en:"Go to Creator Resource Center",fr:"Aller au Centre de Ressources Créateur",de:"Zum Ersteller-Ressourcen-Center",es:"Ir al Centro de Recursos para Creadores"},underReview:{en:"Your Content Creator Application is Under Review",fr:"Votre Candidature de Créateur de C
669ontenu est en Cours d'Examen",de:"Ihre Content-Ersteller-Bewerbung wird Geprüft",es:"Su Solicitud de Creador de Contenido está en Revisión"},status:{en:"Status:",fr:"Statut :",de:"Status:",es:"Estado:"},submittedOn:{en:"Submitted on",fr:"Soumise le",de:"Eingereicht am",es:"Enviada el"},reviewNotify:{en:"We'll notify you once a decision is made.",fr:"Nous vous notifierons dès qu'une décision sera prise.",de:"Wir benachrichtigen Sie, sobald eine Entscheidung getroffen wurde.",es:"Le notificaremos una vez que se tome una decisión."},backToLanding:{en:"Back to Landing Page",fr:"Retour à la Page d'Accueil",de:"Zurück zur Landing-Page",es:"Volver a la Página de Inicio"},errNameEmail:{en:"Please fill in your name and email.",fr:"Veuillez remplir votre nom et votre e-mail.",de:"Bitte füllen Sie Ihren Namen und Ihre E-Mail aus.",es:"Por favor complete su nombre y correo."},errExperience:{en:"Please select your content creator experience level.",fr:"Veuillez sélectionner votre niveau d'expérience de créateur de contenu.",de:"Bitte wählen Sie Ihr Content-Ersteller-Erfahrungsniveau.",es:"Por favor seleccione su nivel de experiencia como creador de contenido."},submitSuccess:{en:"Your Content Creator application has been submitted! We'll review it and get back to you.",fr:"Votre candidature de Créateur de Contenu a été soumise ! Nous l'examinerons et reviendrons vers vous.",de:"Ihre Content-Ersteller-Bewerbung wurde eingereicht! Wir werden sie prüfen und uns melden.",es:"¡Su solicitud de Creador de Contenido ha sido enviada! La revisaremos y nos pondremos en contacto."},submitFailed:{en:"Could not submit your application. Please try again.",fr:"Impossible de soumettre votre candidature. Veuillez réessayer.",de:"Bewerbung konnte nicht gesendet werden. Bitte erneut versuchen.",es:"No se pudo enviar su solicitud. Por favor, inténtelo de nuevo."}},partnerDashboard:{loginRequired:{en:"Partner Login Required",fr:"Connexion Partenaire Requise",de:"Partner-Anmeldung Erforderlich",es:"Inicio de Sesión de Socio Requerido"},loginRequiredDesc:{en:"Log in to access your Partner Growth Hub dashboard.",fr:"Connectez-vous pour accéder à votre tableau de bord du Hub de Croissance Partenaire.",de:"Melden Sie sich an, um auf Ihr Partner-Wachstums-Hub-Dashboard zuzugreifen.",es:"Inicie sesión para acceder a su panel del Hub de Crecimiento de Socios."},logIn:{en:"Log In",fr:"Se Connecter",de:"Anmelden",es:"Iniciar Sesión"},noAccount:{en:"No Partner Account Found",fr:"Aucun Compte Partenaire Trouvé",de:"Kein Partner-Konto Gefunden",es:"No se Encontró Cuenta de Socio"},noAccountDesc:{en:"You haven't applied to become a partner yet.",fr:"Vous n'avez pas encore postulé pour devenir partenaire.",de:"Sie haben sich noch nicht als Partner beworben.",es:"Aún no ha solicitado ser socio."},applyNow:{en:"Apply Now",fr:"Postuler Maintenant",de:"Jetzt Bewerben",es:"Solicitar Ahora"},underReview:{en:"Application Under Review",fr:"Candidature en Cours d'Examen",de:"Bewerbung in Prüfung",es:"Solicitud en Revisión"},appStatus:{en:"Your application status:",fr:"Statut de votre candidature :",de:"Ihr Bewerbungsstatus:",es:"Estado de su solicitud:"},reviewNotify:{en:"We'll notify you once your application has been reviewed.",fr:"Nous vous notifierons dès que votre candidature aura été examinée.",de:"Wir benachrichtigen Sie, sobald Ihre Bewerbung geprüft wurde.",es:"Le notificaremos una vez que su solicitud haya sido revisada."},title:{en:"Partner Growth Hub",fr:"Hub de Croissance Partenaire",de:"Partner-Wachstums-Hub",es:"Hub de Crecimiento de Socios"},welcome:{en:"Welcome back,",fr:"Bon retour,",de:"Willkommen zurück,",es:"Bienvenido de nuevo,"},creatorApproved:{en:"You're an approved Content Creator!",fr:"Vous êtes un Créateur de Contenu approuvé !",de:"Sie sind ein genehmigter Content-Ersteller!",es:"¡Es un Creador de Contenido aprobado!"},creatorApprovedDesc:{en:"Your Creator Resource Center is available in the Creator Center tab below.",fr:"Votre Centre de Ressources Créateur est disponible dans l'onglet Centre Créateur ci-dessous.",de:"Ihr Ersteller-Ressourcen-Center ist im Ersteller-Center-Tab unten verfügbar.",es:"Su Centro de Recursos para Creadores está disponible en la pestaña Centro de Creadores a continuación."},creatorUnderReview:{en:"Your Content Creator Application is Under Review",fr:"Votre Candidature de Créateur de C
669ontenu est en Cours d'Examen",de:"Ihre Content-Ersteller-Bewerbung wird Geprüft",es:"Su Solicitud de Creador de Contenido está en Revisión"},creatorReviewStatus:{en:"Status:",fr:"Statut :",de:"Status:",es:"Estado:"},creatorReviewNotify:{en:"We'll notify you once a decision is made.",fr:"Nous vous notifierons dès qu'une décision sera prise.",de:"Wir benachrichtigen Sie, sobald eine Entscheidung getroffen wurde.",es:"Le notificaremos una vez que se tome una decisión."},wantCreator:{en:"Want to Become a Content Creator?",fr:"Vous Voulez Devenir Créateur de Contenu ?",de:"Möchten Sie Content-Ersteller Werden?",es:"¿Quiere Ser Creador de Contenido?"},wantCreatorDesc:{en:"Create content for Governancepedia and gain access to additional creator resources, scripts, campaigns, ideas and opportunities.",fr:"Créez du contenu pour Governancepedia et accédez à des ressources créateur supplémentaires, scripts, campagnes, idées et opportunités.",de:"Erstellen Sie Content für Governancepedia und erhalten Sie Zugang zu zusätzlichen Ersteller-Ressourcen, Skripten, Kampagnen, Ideen und Opportunities.",es:"Cree contenido para Governancepedia y acceda a recursos adicionales para creadores, guiones, campañas, ideas y oportunidades."},applyCreator:{en:"Apply for Creator Access",fr:"Postuler pour l'Accès Créateur",de:"Für Ersteller-Zugang Bewerben",es:"Solicitar Acceso de Creador"},tabOverview:{en:"Overview",fr:"Aperçu",de:"Ãbersicht",es:"Resumen"},tabCreatorCenter:{en:"Creator Center",fr:"Centre Créateur",de:"Ersteller-Center",es:"Centro de Creadores"},tabCampaigns:{en:"Campaigns",fr:"Campagnes",de:"Kampagnen",es:"Campañas"},tabLeads:{en:"Leads",fr:"Prospects",de:"Leads",es:"Prospectos"},tabCustomers:{en:"Customers",fr:"Clients",de:"Kunden",es:"Clientes"},tabCommissions:{en:"Commissions",fr:"Commissions",de:"Provisionen",es:"Comisiones"},tabMarketing:{en:"Marketing",fr:"Marketing",de:"Marketing",es:"Marketing"},tabTraining:{en:"Training",fr:"Formation",de:"Schulung",es:"Formación"},tabSupport:{en:"Support",fr:"Support",de:"Support",es:"Soporte"},tabProfile:{en:"Profile",fr:"Profil",de:"Profil",es:"Perfil"}},billing:{loadingMsg:{en:"Loading billing information...",fr:"Chargement des informations de facturation...",de:"Abrechnungsinformationen werden geladen...",es:"Cargando información de facturación..."},loadFailed:{en:"Failed to load billing information",fr:"Ãchec du chargement des informations de facturation",de:"Abrechnungsinformationen konnten nicht geladen werden",es:"Error al cargar la información de facturación"},title:{en:"Billing & Invoices",fr:"Facturation & Factures",de:"Abrechnung & Rechnungen",es:"Facturación y Facturas"},subtitle:{en:"Manage your subscription and payment history",fr:"Gérez votre abonnement et l'historique des paiements",de:"Verwalten Sie Ihr Abonnement und die Zahlungshistorie",es:"Administre su suscripción e historial de pagos"},trialActive:{en:"Premium Trial Active",fr:"Essai Premium Actif",de:"Premium-Testphase Aktiv",es:"Prueba Premium Activa"},trialDesc:{en:"You're enjoying full Premium access during your 30-day trial",fr:"Vous profitez d'un accès Premium complet pendant votre essai de 30 jours",de:"Sie genieÃen vollen Premium-Zugang während Ihrer 30-tägigen Testphase",es:"Disfruta de acceso Premium completo durante su prueba de 30 dÃas"},trialEnds:{en:"Trial ends on",fr:"L'essai se termine le",de:"Testphase endet am",es:"La prueba termina el"},trialHint:{en:"Add a payment method before your trial ends to keep your Premium access. No charge until the trial period is over.",fr:"Ajoutez un moyen de paiement avant la fin de votre essai pour conserver votre accès Premium. Aucun frais jusqu'à la fin de la période d'essai.",de:"Fügen Sie eine Zahlungsmethode vor Ablauf der Testphase hinzu, um Ihren Premium-Zugang zu behalten. Keine Abbuchung bis zum Ende der Testphase.",es:"Añada un método de pago antes de que termine su prueba para mantener su acceso Premium. Sin cargo hasta que termine el perÃodo de prueba."},accountTitle:{en:"Billing Account",fr:"Compte de Facturation",de:"Abrechnungskonto",es:"Cuenta de Facturación"},accountEmail:{en:"Account Email",fr:"E-mail du Compte",de:"Konto-E-Mail",es:"Correo de la Cuenta"},needCredits:{en:"Need more credits?",fr:"Besoin de plus de crédits ?",de:"Mehr Credits benötigt?",es:"¿Necesita más créditos?"},credits50:{en:"50 credits ($9)",fr:"50 crédits (9 $)",de:"50 Credits (9 $)",es:"50 créditos (9 $)"},credits200:{en:"200 credits ($29)",fr:"200 crédits (29 $)",de:"200 Credits (29 $)",es:"200 créditos (29 $)"},reportsTitle:{en:"One-Time Governance Reports",fr:"Rapports de Gouvernance Uniques",de:"Einmalige Governance-Berichte",es:"Informes de Gobernanza Ãnicos"},reportsDesc:{en:"Purchase individual reports without subscription",fr:"Achetez des rapports individuels sans abonnement",de:"Einzelberichte ohne Abonnement kaufen",es:"
669Compre informes individuales sin suscripción"},reportMaturity:{en:"Maturity Assessment",fr:"Ãvaluation de Maturité",de:"Reifebewertung",es:"Evaluación de Madurez"},reportRisk:{en:"Risk Review",fr:"Revue des Risques",de:"Risiko-Ãberprüfung",es:"Revisión de Riesgos"},reportPolicy:{en:"Policy Framework",fr:"Cadre Politique",de:"Richtlinien-Framework",es:"Marco de PolÃticas"},reportAIGov:{en:"AI Governance",fr:"Gouvernance IA",de:"KI-Governance",es:"Gobernanza IA"},reportCompliance:{en:"Compliance Audit",fr:"Audit de Conformité",de:"Compliance-Audit",es:"AuditorÃa de Cumplimiento"},reportExec:{en:"Executive Pack",fr:"Pack Exécutif",de:"Executive-Paket",es:"Paquete Ejecutivo"},purchase:{en:"Purchase",fr:"Acheter",de:"Kaufen",es:"Comprar"},paymentHistory:{en:"Payment History",fr:"Historique des Paiements",de:"Zahlungshistorie",es:"Historial de Pagos"},transactions:{en:"transactions",fr:"transactions",de:"Transaktionen",es:"transacciones"},noPayments:{en:"No payments yet.",fr:"Aucun paiement pour l'instant.",de:"Noch keine Zahlungen.",es:"Aún no hay pagos."},subscription:{en:"Subscription",fr:"Abonnement",de:"Abonnement",es:"Suscripción"},creditPackHistory:{en:"Credit Pack Purchases",fr:"Achats de Packs de Crédits",de:"Credit-Pack-Käufe",es:"Compras de Paquetes de Créditos"},creditPacksCount:{en:"credit packs purchased",fr:"packs de crédits achetés",de:"Credit-Packs gekauft",es:"paquetes de créditos comprados"},noCreditPacks:{en:"No credit packs purchased yet.",fr:"Aucun pack de crédits acheté pour l'instant.",de:"Noch keine Credit-Packs gekauft.",es:"Aún no se han comprado paquetes de créditos."},credits:{en:"Credits",fr:"Crédits",de:"Credits",es:"Créditos"},reportHistory:{en:"One-Time Report Purchases",fr:"Achats de Rapports Uniques",de:"Einmalige Bericht-Käufe",es:"Compras de Informes Ãnicos"},reportsCount:{en:"reports purchased",fr:"rapports achetés",de:"Berichte gekauft",es:"informes comprados"},noReports:{en:"No one-time reports purchased yet.",fr:"Aucun rapport unique acheté pour l'instant.",de:"Noch keine einmaligen Berichte gekauft.",es:"Aún no se han comprado informes únicos."},aiCredits:{en:"AI Credits",fr:"Crédits IA",de:"KI-Credits",es:"Créditos IA"}},orgSettings:{loadingMsg:{en:"Loading organization settings...",fr:"Chargement des paramètres de l'organisation...",de:"Organisationseinstellungen werden geladen...",es:"Cargando configuración de la organización..."},title:{en:"Organization Settings",fr:"Paramètres de l'Organisation",de:"Organisationseinstellungen",es:"Configuración de la Organización"},subtitle:{en:"Manage your organization and team members",fr:"Gérez votre organisation et les membres de l'équipe",de:"Verwalten Sie Ihre Organisation und Teammitglieder",es:"Administre su organización y miembros del equipo"},noOrgs:{en:"No organizations found. Create one to get started.",fr:"Aucune organisation trouvée. Créez-en une pour commencer.",de:"Keine Organisationen gefunden. Erstellen Sie eine, um zu beginnen.",es:"No se encontraron organizaciones. Cree una para empezar."},selectOrg:{en:"Select Organization",fr:"Sélectionner une Organisation",de:"Organisation Auswählen",es:"Seleccionar Organización"},subPlan:{en:"Subscription Plan",fr:"Plan d'Abonnement",de:"Abonnement-Plan",es:"Plan de Suscripción"},aiCredits:{en:"AI Credits",fr:"Crédits IA",de:"KI-Credits",es:"Créditos IA"},creditsUsed:{en:"used this month",fr:"utilisés ce mois",de:"diesen Monat genutzt",es:"usados este mes"},teamMembers:{en:"Team Members",fr:"Membres de l'Ãquipe",de:"Teammitglieder",es:"Miembros del Equipo"},membersCount:{en:"members",fr:"membres",de:"Mitglieder",es:"miembros"},max:{en:"max",fr:"max",de:"max",es:"máx"},invitePlaceholder:{en:"Enter email to invite",fr:"Entrez l'e-mail à inviter",de:"E-Mail zum Einladen eingeben",es:"Introduzca el correo a invitar"},invite:{en:"Invite",fr:"Inviter",de:"Einladen",es:"Invitar"}},policyViewer:{notFound:{en:"Policy Not Found",fr:"Politique Introuvable",de:"Richtlinie nicht gefunden",es:"PolÃtica no encontrada"},notFoundDesc:{en:"This policy page does not exist or has not been published.",fr:"Cette page de politique n'existe pas ou n'a pas été publiée.",de:"Diese Richtlinienseite existiert nicht oder wurde nicht veröffentlicht.",es:"Esta página de polÃtica no existe o no ha sido publicada."},goHome:{en:"Go Home",fr:"Accueil",de:"Zur Startseite",es:"Ir al Inicio"},backHome:{en:"Back to Home",fr:"Retour à l'Accueil",de:"Zurück zur Startseite",es:"Volver al Inicio"},version:{en:"Version",fr:"Version",de:"Version",es:"Versión"},lastUpdated:{en:"Last updated",fr:"Dernière mise à jour",de:"Zuletzt aktualisiert",es:"Ãltima actualización"}},referral:{redirecting:{en:"Redirecting...",fr:"Redirection...",de:"Weiterleitung...",es:"Redirigiendo..."}},admin:{dashboard:{en:"Admin Dashboard",fr:"Tableau de Bord Admin",de:"Admin-Dashboard",es:"Panel de Administración"},dashboardSubtitle:{en:"Platform overview and management",fr:"Vue d'ensemble et gestion de la plateforme",de:"Plattform-Ãbersicht und Verwaltung",es:"Vista general y gestión de la plataforma"},totalUsers:{en:"Total Users",fr:"Utilisateurs Totaux",de:"Gesamtnutzer",es:"Usuarios Totales"},activeSubscriptions:{en:"Active Subscriptions",fr:"Abonnements Actifs",de:"Aktive Abonnements",es:"Suscripciones Activas"},monthlyRevenue:{en:"Monthly Revenue",fr:"Revenu Mensuel",de:"Monatsumsatz",es:"Ingresos Mensuales"},openIssues:{en:"Open Issues",fr:"Problèmes Ouverts",de:"Offene Probleme",es:"Problemas Abiertos"},recentSignups:{en:"Recent Signups",fr:"Inscriptions Récentes",de:"Neue Anmeldungen",es:"Registros Recientes"},quickActions:{en:"Quick Actions",fr:"Actions Rapides",de:"Schnellaktionen",es:"Acciones Rápidas"},manageUsers:{en:"Manage Users",fr:"Gérer les Utilisateurs",de:"Nutzer Verwalten",es:"Gestionar Usuarios"},viewAnalytics:{en:"View Analytics",fr:"Voir les Analyses",de:"Analysen Anzeigen",es:"Ver AnalÃticas"},manageBilling:{en:"Manage Billing",fr:"Gérer la Facturation",de:"Abrechnung Verwalten",es:"Gestionar Facturación"},systemHealth:{en:"System Health",fr:"Santé du Système",de:"Systemzustand",es:"Salud del Sistema"},loadingMsg:{en:"Loading admin dashboard...",fr:"Chargement du tableau de bord admin...",de:"Admin-Dashboard wird geladen...",es:"Cargando panel de administración..."},accessDenied:{en:"Access Denied",fr:"Accès Refusé",de:"Zugriff Verweigert",es:"Acceso Denegado"},accessDeniedDesc:{en:"You do not have permission to view this page.",fr:"Vous n'avez pas la permission de voir cette page.",de:"Sie haben keine Berechtigung, diese Seite anzuzeigen.",es:"No tiene permiso para ver esta página."},commandCenter:{en:"Admin Command Center",fr:"Centre de Commande Admin",de:"Admin-Kommandozentrale",es:"Centro de Comando Admin"},activeSessions:{en:"Active Sessions",fr:"Sessions Actives",de:"Aktive Sitzungen",es:"Sesiones Activas"},openTickets:{en:"Open Tickets",fr:"Tickets Ouverts",de:"Offene Tickets",es:"Tickets Abiertos"}
669,revenueMTD:{en:"Revenue (MTD)",fr:"Revenu (MTD)",de:"Umsatz (MTD)",es:"Ingresos (MTD)"},management:{en:"Management",fr:"Gestion",de:"Verwaltung",es:"Gestión"},manageAdminUsers:{en:"Manage Admin Users",fr:"Gérer les Utilisateurs Admin",de:"Admin-Nutzer Verwalten",es:"Gestionar Usuarios Admin"},supportTickets:{en:"Support Tickets",fr:"Tickets de Support",de:"Support-Tickets",es:"Tickets de Soporte"},issueTracker:{en:"Issue Tracker",fr:"Suivi des Problèmes",de:"Problemverfolgung",es:"Seguimiento de Problemas"},legalPolicyMgmt:{en:"Legal & Policy Management",fr:"Gestion Juridique & Politiques",de:"Recht & Richtlinien-Verwaltung",es:"Gestión Legal y de PolÃticas"},socialMediaMgmt:{en:"Social Media Management",fr:"Gestion des Réseaux Sociaux",de:"Social-Media-Verwaltung",es:"Gestión de Redes Sociales"},promoAmbassadorCenter:{en:"Promotional & Ambassador Center",fr:"Centre de Promotion & Ambassadeurs",de:"Promo- & Botschafter-Center",es:"Centro de Promociones y Embajadores"},partnerGrowthHub:{en:"Partner Growth Hub",fr:"Hub de Croissance Partenaire",de:"Partner-Wachstums-Hub",es:"Hub de Crecimiento de Socios"},partnerLeadReview:{en:"Partner Lead Review",fr:"Revue des Prospects Partenaire",de:"Partner-Lead-Prüfung",es:"Revisión de Prospectos de Socios"},marketingResourcesBtn:{en:"Marketing Resources",fr:"Ressources Marketing",de:"Marketing-Ressourcen",es:"Recursos de Marketing"},payoutMgmt:{en:"Payout Management",fr:"Gestion des Paiements",de:"Auszahlungsverwaltung",es:"Gestión de Pagos"},trainingModules:{en:"Training Modules",fr:"Modules de Formation",de:"Schulungsmodule",es:"Módulos de Formación"},partnerSupportBtn:{en:"Partner Support",fr:"Support Partenaire",de:"Partner-Support",es:"Soporte de Socios"},partnerAnnouncements:{en:"Partner Announcements",fr:"Annonces Partenaire",de:"Partner-Ankündigungen",es:"Anuncios de Socios"},partnerAnalyticsBtn:{en:"Partner Analytics",fr:"Analyses Partenaire",de:"Partner-Analysen",es:"AnalÃticas de Socios"},contentCreatorMgmt:{en:"Content Creator Management",fr:"Gestion des Créateurs de Contenu",de:"Content-Ersteller-Verwaltung",es:"Gestión de Creadores de Contenido"},userAdmin:{en:"User Administration",fr:"Administration des Utilisateurs",de:"Nutzerverwaltung",es:"Administración de Usuarios"},userAdminSubtitle:{en:"Manage users, roles, and access",fr:"Gérer les utilisateurs, rôles et accès",de:"Nutzer, Rollen und Zugriff verwalten",es:"Gestionar usuarios, roles y acceso"},inviteNewUser:{en:"Invite New User",fr:"Inviter un Nouvel Utilisateur",de:"Neuen Nutzer Einladen",es:"Invitar Nuevo Usuario"},inviteDesc:{en:"Send an invitation to join the platform",fr:"Envoyer une invitation à rejoindre la plateforme",de:"Einladung zum Beitritt zur Plattform senden",es:"Enviar una invitación para unirse a la plataforma"},sendInvite:{en:"Send Invite",fr:"Envoyer l'Invitation",de:"Einladung Senden",es:"Enviar Invitación"},superAdmin:{en:"Super Admin",fr:"Super Admin",de:"Super Admin",es:"Super Admin"},superAdmins:{en:"Super Admins",fr:"Super Admins",de:"Super Admins",es:"Super Admins"},admins:{en:"Admins",fr:"Admins",de:"Admins",es:"Admins"},platformUsers:{en:"Platform Users",fr:"Utilisateurs de la Plateforme",de:"Plattform-Nutzer",es:"Usuarios de la Plataforma"},platformUsersDesc:{en:"View and manage user accounts",fr:"Voir et gérer les comptes utilisateurs",de:"Nutzerkonten anzeigen und verwalten",es:"Ver y gestionar cuentas de usuario"},noUsers:{en:"No users yet.",fr:"Aucun utilisateur pour l'instant.",de:"Noch keine Nutzer.",es:"Aún no hay usuarios."},changeRole:{en:"Change role",fr:"Changer le rôle",de:"Rolle ändern",es:"Cambiar rol"},changeUserRole:{en:"Change User Role",fr:"Changer le Rôle de l'Utilisateur",de:"Nutzerrolle Ãndern",es:"Cambiar Rol de Usuario"},updateRole:{en:"Update Role",fr:"Mettre à Jour le Rôle",de:"Rolle Aktualisieren",es:"Actualizar Rol"},addCredits:{en:"Add credits",fr:"Ajouter des crédits",de:"Credits hinzufügen",es:"Añadir créditos"},addAICredits:{en:"Add AI Credits",fr:"Ajouter des Crédits IA",de:"KI-Credits Hinzufügen",es:"Añadir Créditos IA"}
669,creditsAmountPlaceholder:{en:"Amount (e.g., 1000)",fr:"Montant (ex., 1000)",de:"Menge (z.B. 1000)",es:"Cantidad (ej., 1000)"},upgradeMembership:{en:"Upgrade membership",fr:"Mettre à niveau l'abonnement",de:"Mitgliedschaft aktualisieren",es:"Actualizar membresÃa"},upgradeMembershipTitle:{en:"Upgrade Membership",fr:"Mettre à Niveau l'Abonnement",de:"Mitgliedschaft Aktualisieren",es:"Actualizar MembresÃa"},upgrade:{en:"Upgrade",fr:"Améliorer",de:"Aktualisieren",es:"Actualizar"},unsuspend:{en:"Unsuspend",fr:"Réactiver",de:"Entsperren",es:"Reactivar"},suspend:{en:"Suspend",fr:"Suspendre",de:"Sperren",es:"Suspender"},deleteUser:{en:"Delete user",fr:"Supprimer l'utilisateur",de:"Nutzer löschen",es:"Eliminar usuario"},confirmDeleteUser:{en:"Permanently delete",fr:"Supprimer définitivement",de:"Dauerhaft löschen",es:"Eliminar permanentemente"},deleted:{en:"Deleted",fr:"Supprimé",de:"Gelöscht",es:"Eliminado"},free:{en:"Free",fr:"Gratuit",de:"Kostenlos",es:"Gratis"},professional:{en:"Professional",fr:"Professionnel",de:"Professional",es:"Profesional"},enterprise:{en:"Enterprise",fr:"Entreprise",de:"Enterprise",es:"Empresa"},loadingUsers:{en:"Loading users...",fr:"Chargement des utilisateurs...",de:"Nutzer werden geladen...",es:"Cargando usuarios..."},noTickets:{en:"No support tickets.",fr:"Aucun ticket de support.",de:"Keine Support-Tickets.",es:"Sin tickets de soporte."},from:{en:"From:",fr:"De :",de:"Von:",es:"De:"},descriptionLabel:{en:"Description:",fr:"Description :",de:"Beschreibung:",es:"Descripción:"},close:{en:"Close",fr:"Fermer",de:"SchlieÃen",es:"Cerrar"},resolved:{en:"resolved",fr:"résolu",de:"gelöst",es:"resuelto"},loadingTickets:{en:"Loading...",fr:"Chargement...",de:"Laden...",es:"Cargando..."},platformAnalytics:{en:"Platform Analytics",fr:"Analyses de la Plateforme",de:"Plattform-Analysen",es:"AnalÃticas de la Plataforma"},totalUsersLatest:{en:"Total Users (Latest)",fr:"Utilisateurs Totaux (Dernier)",de:"Gesamtnutzer (Aktuell)",es:"Usuarios Totales (Ãltimo)"},totalRevenue:{en:"Total Revenue",fr:"Revenu Total",de:"Gesamtumsatz",es:"Ingresos Totales"},ticketsResolved:{en:"Tickets Resolved",fr:"Tickets Résolus",de:"Gelöste Tickets",es:"Tickets Resueltos"},sevenDayTrend:{en:"7-Day Trend",fr:"Tendance sur 7 Jours",de:"7-Tage-Trend",es:"Tendencia de 7 DÃas"},usersLegend:{en:"Users",fr:"Utilisateurs",de:"Nutzer",es:"Usuarios"},revenueLegend:{en:"Revenue",fr:"Revenu",de:"Umsatz",es:"Ingresos"},ticketsLegend:{en:"Tickets",fr:"Tickets",de:"Tickets",es:"Tickets"},billingRevenue:{en:"Billing & Revenue",fr:"Facturation & Revenu",de:"Abrechnung & Umsatz",es:"Facturación e Ingresos"},loadingBilling:{en:"Loading billing data...",fr:"Chargement des données de facturation...",de:"Abrechnungsdaten werden geladen...",es:"Cargando datos de facturación..."},totalInvoiced:{en:"Total Invoiced",fr:"Total Facturé",de:"Gesamt Abgerechnet",es:"Total Facturado"},paidInvoices:{en:"Paid Invoices",fr:"Factures Payées",de:"Bezahlte Rechnungen",es:"Facturas Pagadas"},ofTotal:{en:"of",fr:"sur",de:"von",es:"de"},total:{en:"total",fr:"total",de:"gesamt",es:"total"},overdue:{en:"Overdue",fr:"En Retard",de:"Ãberfällig",es:"Vencido"},paymentStatusDist:{en:"Payment Status Distribution",fr:"Répartition des Statuts de Paiement",de:"Zahlungsstatus-Verteilung",es:"Distribución de Estado de Pago"},revenueByPlan:{en:"Revenue by Plan",fr:"Revenu par Plan",de:"Umsatz nach Plan",es:"Ingresos por Plan"},recentPayments:{en:"Recent Payments",fr:"Paiements Récents",de:"Letzte Zahlungen",es:"Pagos Recientes"},plan:{en:"Plan",fr:"Plan",de:"Plan",es:"Plan"},completed:{en:"Completed",fr:"Terminé",de:"Abgeschlossen",es:"Completado"},failed:{en:"Failed",fr:"Ãchoué",de:"Fehlgeschlagen",es:"Fallido"},adMgmt:{en:"Advertisement Management",fr:"Gestion des Publicités",de:"Werbeverwaltung",es:"Gestión de Anuncios"},loadingAds:{en:"Loading advertisements...",fr:"Chargement des publicités...",de:"Werbeanzeigen werden geladen...",es:"Cargando anuncios..."},newAd:{en:"New Ad",fr:"Nouvelle Pub",de:"Neue Anzeige",es:"Nuevo Anuncio"},editAd:{en:"Edit Ad",fr:"Modifier la Pub",de:"Anzeige Bearbeiten",es:"Editar Anuncio"},createNewAd:{en:"Create New Ad",fr:"Créer une Nouvelle Pub",de:"Neue Anzeige Erstellen",es:"
669Crear Nuevo Anuncio"},adTitle:{en:"Ad Title",fr:"Titre de la Pub",de:"Anzeigentitel",es:"TÃtulo del Anuncio"},imageUrl:{en:"Image URL",fr:"URL de l'Image",de:"Bild-URL",es:"URL de la Imagen"},clickUrl:{en:"Click URL",fr:"URL de Clic",de:"Klick-URL",es:"URL de Clic"},sidebar:{en:"Sidebar",fr:"Barre Latérale",de:"Seitenleiste",es:"Barra Lateral"},banner:{en:"Banner",fr:"Bannière",de:"Banner",es:"Banner"},footer:{en:"Footer",fr:"Pied de Page",de:"FuÃzeile",es:"Pie de Página"},modal:{en:"Modal",fr:"Modal",de:"Modal",es:"Modal"},inline:{en:"Inline",fr:"En Ligne",de:"Inline",es:"En LÃnea"},draft:{en:"Draft",fr:"Brouillon",de:"Entwurf",es:"Borrador"},paused:{en:"Paused",fr:"En Pause",de:"Pausiert",es:"Pausado"},expired:{en:"Expired",fr:"Expiré",de:"Abgelaufen",es:"Expirado"},createAd:{en:"Create Ad",fr:"Créer la Pub",de:"Anzeige Erstellen",es:"Crear Anuncio"},updateAd:{en:"Update Ad",fr:"Mettre à Jour la Pub",de:"Anzeige Aktualisieren",es:"Actualizar Anuncio"},activeAds:{en:"Active Advertisements",fr:"Publicités Actives",de:"Aktive Werbeanzeigen",es:"Anuncios Activos"},noAds:{en:"No advertisements yet.",fr:"Aucune publicité pour l'instant.",de:"Noch keine Werbeanzeigen.",es:"Aún no hay anuncios."},views:{en:"views",fr:"vues",de:"Aufrufe",es:"vistas"},clicks:{en:"clicks",fr:"clics",de:"Klicks",es:"clics"},confirmDeleteAd:{en:"Delete this ad?",fr:"Supprimer cette pub ?",de:"Diese Anzeige löschen?",es:"¿Eliminar este anuncio?"},socialMediaMgmtTitle:{en:"Social Media Management",fr:"Gestion des Réseaux Sociaux",de:"Social-Media-Verwaltung",es:"Gestión de Redes Sociales"},socialMediaMgmtDesc:{en:"Manage Governancepedia's social media presence",fr:"Gérer la présence sur les réseaux sociaux de Governancepedia",de:"Verwalten Sie die Social-Media-Präsenz von Governancepedia",es:"Gestionar la presencia en redes sociales de Governancepedia"},addPlatform:{en:"Add Platform",fr:"Ajouter une Plateforme",de:"Plattform Hinzufügen",es:"Añadir Plataforma"},noSocialLinks:{en:"No social media links yet. Add your first one.",fr:"Aucun lien de réseau social pour l'instant. Ajoutez le premier.",de:"Noch keine Social-Media-Links. Fügen Sie den ersten hinzu.",es:"Aún no hay enlaces de redes sociales. Añada el primero."},disabled:{en:"Disabled",fr:"Désactivé",de:"Deaktiviert",es:"Desactivado"},landing:{en:"Landing",fr:"Accueil",de:"Landing",es:"Inicio"},floating:{en:"Floating",fr:"Flottant",de:"Schwebend",es:"Flotante"},editSocialMedia:{en:"Edit Social Media",fr:"Modifier le Réseau Social",de:"Social Media Bearbeiten",es:"Editar Red Social"},addSocialMedia:{en:"Add Social Media",fr:"Ajouter un Réseau Social",de:"Social Media Hinzufügen",es:"Añadir Red Social"},platformName:{en:"Platform Name *",fr:"Nom de la Plateforme *",de:"Plattformname *",es:"Nombre de Plataforma *"},icon:{en:"Icon",fr:"Icône",de:"Icon",es:"Icono"},url:{en:"URL *",fr:"URL *",de:"URL *",es:"URL *"},accessibilityLabel:{en:"Accessibility Label / Tooltip",fr:"Ãtiquette d'Accessibilité / Info-bulle",de:"Barrierefreiheits-Label / Tooltip",es:"Etiqueta de Accesibilidad / Tooltip"},displayOrder:{en:"Display Order",fr:"Ordre d'Affichage",de:"Anzeigereihenfolge",es:"Orden de Visualización"},brandColor:{en:"Brand Color (optional)",fr:"Couleur de Marque (optionnel)",de:"Markenfarbe (optional)",es:"Color de Marca (opcional)"},visibility:{en:"Visibility",fr:"Visibilité",de:"Sichtbarkeit",es:"Visibilidad"},enabledEverywhere:{en:"Enabled (visible everywhere)",fr:"Activé (visible partout)",de:"Aktiviert (überall sichtbar)",es:"Activado (visible en todas partes)"},showOnLanding:{en:"Show on Landing Page",fr:"Afficher sur la Page d'Accueil",de:"Auf Landing-Page Anzeigen",es:"Mostrar en Página de Inicio"},showInFooter:{en:"Show in Footer",fr:"Afficher dans le Pied de Page",de:"In FuÃzeile Anzeigen",es:"Mostrar en Pie de Página"},showInFloatingBar:{en:"Show in Floating Bar",fr:"Afficher dans la Barre Flottante",de:"In Schwebender Leiste Anzeigen",es:"Mostrar en Barra Flotante"},saveChanges:{en:"Save Changes",fr:"Enregistrer les Modifications",de:"Ãnderungen Speichern",es:"Guardar Cambios"},socialAdded:{en:"Social media link added",fr:"Lien de réseau social ajouté",de:"Social-Media-Link hinzugefügt",es:"Enlace de red social añadido"},platformUrlRequired:{en:"Platform and URL are required",fr:"La plateforme et l'URL sont requises",de:"Plattform und URL sind erforderlich",es:"Plataforma y URL son obligatorios"},platformIssueTracker:{en:"Platform Issue Tracker",fr:"Suivi des Problèmes de la Plateforme",de:"Plattform-Problemverfolgung",es:"Seguimiento de Problemas de la Plataforma"},issueTrackerDesc:{en:"Manage bugs, features, and support requests across the entire platform",fr:"Gérer les bugs, fonctionnalités et demandes de support sur toute la plateforme",de:"Verwalten Sie Bugs, Features und Support-Anfragen auf der gesamten Plattform",es:"Gestionar bugs, funciones y solicitudes de soporte en toda la plataforma"},totalIssues:{en:"Total Issues",fr:"Problèmes Totaux",de:"Probleme Gesamt",es:"Problemas Totales"},created:{en:"Created",fr:"Créé",de:"Erstellt",es:"Creado"},inProgress:{en:"In Progress",fr:"En Cours",de:"In Bearbeitung",es:"En Progreso"},parked:{en:"Parked",fr:"En Attente",de:"Parkiert",es:"Aparcado"},criticalIssues:{en:"Critical Issues",fr:"Problèmes Critiques",de:"Kritische Probleme",es:"Problemas CrÃticos"},issueTypes:{en:"Issue Types",fr:"Types de Problèmes",de:"Problem-Typen",es:"Tipos de Problemas"},overallProgress:{en:"Overall Progress",fr:"Progrès Général",de:"Gesamtfortschritt",es:"Progreso General"}
669,completionRate:{en:"Completion Rate",fr:"Taux d'Achèvement",de:"Abschlussrate",es:"Tasa de Finalización"},searchIssues:{en:"Search issues...",fr:"Rechercher des problèmes...",de:"Probleme suchen...",es:"Buscar problemas..."},allTypes:{en:"All Types",fr:"Tous les Types",de:"Alle Typen",es:"Todos los Tipos"},allStatus:{en:"All Status",fr:"Tous les Statuts",de:"Alle Status",es:"Todos los Estados"},allPriorities:{en:"All Priorities",fr:"Toutes les Priorités",de:"Alle Prioritäten",es:"Todas las Prioridades"},bugs:{en:"Bugs",fr:"Bugs",de:"Bugs",es:"Bugs"},features:{en:"Features",fr:"Fonctionnalités",de:"Features",es:"Funciones"},newIssue:{en:"New Issue",fr:"Nouveau Problème",de:"Neues Problem",es:"Nuevo Problema"},noIssues:{en:"No issues",fr:"Aucun problème",de:"Keine Probleme",es:"Sin problemas"},editIssue:{en:"Edit Issue",fr:"Modifier le Problème",de:"Problem Bearbeiten",es:"Editar Problema"},createNewIssue:{en:"Create New Issue",fr:"Créer un Nouveau Problème",de:"Neues Problem Erstellen",es:"Crear Nuevo Problema"},editIssueDesc:{en:"Update the issue details",fr:"Mettre à jour les détails du problème",de:"Problemdetails aktualisieren",es:"Actualizar los detalles del problema"},createIssueDesc:{en:"Add a new issue to track",fr:"Ajouter un nouveau problème à suivre",de:"Neues Problem zum Verfolgen hinzufügen",es:"Añadir un nuevo problema para rastrear"},issueTitle:{en:"Issue title",fr:"Titre du problème",de:"Problemtitel",es:"TÃtulo del problema"},issueDescription:{en:"Issue description",fr:"Description du problème",de:"Problembeschreibung",es:"Descripción del problema"},type:{en:"Type",fr:"Type",de:"Typ",es:"Tipo"},bug:{en:"Bug",fr:"Bug",de:"Bug",es:"Bug"},feature:{en:"Feature",fr:"Fonctionnalité",de:"Feature",es:"Función"},support:{en:"Support",fr:"Support",de:"Support",es:"Soporte"},low:{en:"Low",fr:"Bas",de:"Niedrig",es:"Bajo"},medium:{en:"Medium",fr:"Moyen",de:"Mittel",es:"Medio"},high:{en:"High",fr:"Ãlevé",de:"Hoch",es:"Alto"},critical:{en:"Critical",fr:"Critique",de:"Kritisch",es:"CrÃtico"},attachments:{en:"Attachments",fr:"Pièces Jointes",de:"Anhänge",es:"Adjuntos"},deleteIssue:{en:"Delete Issue?",fr:"Supprimer le Problème ?",de:"Problem Löschen?",es:"¿Eliminar Problema?"},deleteIssueDesc:{en:"This action cannot be undone.",fr:"Cette action ne peut pas être annulée.",de:"Diese Aktion kann nicht rückgängig gemacht werden.",es:"Esta acción no se puede deshacer."},issueCreated:{en:"Issue created",fr:"Problème créé",de:"Problem erstellt",es:"Problema creado"},issueUpdated:{en:"Issue updated",fr:"Problème mis à jour",de:"Problem aktualisiert",es:"Problema actualizado"},issueDeleted:{en:"Issue deleted",fr:"Problème supprimé",de:"Problem gelöscht",es:"Problema eliminado"},issueTitleRequired:{en:"Issue title is required",fr:"Le titre du problème est requis",de:"Problemtitel ist erforderlich",es:"El tÃtulo del problema es obligatorio"},view:{en:"View",fr:"Voir",de:"Anzeigen",es:"Ver"},closedStatus:{en:"Closed",fr:"Fermé",de:"Geschlossen",es:"Cerrado"},title:{en:"Title",fr:"Titre",de:"Titel",es:"TÃtulo"},description:{en:"Description",fr:"Description",de:"Beschreibung",es:"Descripción"},users:{en:"User Management",fr:"Gestion des Utilisateurs",de:"Nutzerverwaltung",es:"Gestión de Usuarios"},usersSubtitle:{en:"Manage user accounts and roles",fr:"Gérer les comptes et rôles des utilisateurs",de:"Konten und Rollen verwalten",es:"Gestionar cuentas y roles de usuarios"},email:{en:"Email",fr:"E-mail",de:"E-Mail",es:"Correo"},role:{en:"Role",fr:"Rôle",de:"Rolle",es:"Rol"},status:{en:"Status",fr:"Statut",de:"Status",es:"Estado"},actions:{en:"Actions",fr:"Actions",de:"Aktionen",es:"Acciones"},active:{en:"Active",fr:"Actif",de:"Aktiv",es:"Activo"},suspended:{en:"Suspended",fr:"Suspendu",de:"Gesperrt",es:"Suspendido"},invite:{en:"Invite User",fr:"Inviter un Utilisateur",de:"Nutzer Einladen",es:"Invitar Usuario"},support:{en:"Support Tickets",fr:"Tickets de Support",de:"Support-Tickets",es:"Tickets de Soporte"},supportSubtitle:{en:"Manage customer support requests",fr:"Gérer les demandes de support client",de:"Kundensupport-Anfragen verwalten",es:"Gestionar solicitudes de soporte"},subject:{en:"Subject",fr:"Sujet",de:"Betreff",es:"Asunto"},priority:{en:"Priority",fr:"Priorité",de:"Priorität",es:"Prioridad"},open:{en:"Open",fr:"Ouvert",de:"Offen",es:"Abierto"},closed:{en:"Closed",fr:"Fermé",de:"Geschlossen",es:"Cerrado"},analytics:{en:"Analytics",fr:"Analyses",de:"Analysen",es:"AnalÃticas"},analyticsSubtitle:{en:"Platform usage and performance metrics",fr:"Métriques d'utilisation et de performance de la plateforme",de:"Plattform-Nutzungs- und Leistungsmetriken",es:"Métricas de uso y rendimiento de la plataforma"},billing:{en:"Admin Billing",fr:"Facturation Admin",de:"Admin-Abrechnung",es:"Facturación Admin"},billingSubtitle:{en:"Manage payments and invoices",fr:"Gérer les paiements et factures",de:"Zahlungen und Rechnungen verwalten",es:"Gestionar pagos y facturas"},advertisements:{en:"Advertisements",fr:"Publicités",de:"Werbeanzeigen",es:"Anuncios"},adsSubtitle:{en:"Manage ad placements and campaigns",fr:"Gérer les emplacements et campagnes publicitaires",de:"Werbeplätze und Kampagnen verwalten",es:"Gestionar ubicaciones y campañas de anuncios"},issues:{en:"Issue Tracker",fr:"Suivi des Problèmes",de:"Problemverfolgung",es:"Seguimiento de Problemas"},issuesSubtitle:{en:"Track and resolve platform issues",fr:"Suivre et résoudre les problèmes de la plateforme",de:"Plattform-Probleme verfolgen und lösen",es:"Rastrear y resolver problemas de la plataforma"},policyManager:{en:"Policy Manager",fr:"Gestionnaire de Politiques",de:"Richtlinien-Manager",es:"Gestor de PolÃticas"},policyManagerSubtitle:{en:"Manage legal and policy pages",fr:"Gérer les pages juridiques et de politique",de:"Rechtliche und Richtlinienseiten verwalten",es:"Gestionar páginas legales y de polÃticas"},socialMedia:{en:"Social Media",fr:"Réseaux Sociaux",de:"Soziale Medien",es:"Redes Sociales"},socialMediaSubtitle:{en:"Manage social media links and settings",fr:"Gérer les liens et paramètres des réseaux sociaux",de:"Social-Media-Links und Einstellungen verwalten",es:"Gestionar enlaces y configuraciones de redes sociales"},promoCenter:{en:"Promotion Center",fr:"Centre de Promotion",de:"Promotion-Center",es:"Centro de Promociones"},promoCenterSubtitle:{en:"Manage promotional codes and ambassadors",fr:"Gérer les codes promotionnels et les ambassadeurs",de:"Promo-Codes und Botschafter verwalten",es:"Gestionar códigos promocionales y embajadores"},partnerMgmt:{en:"Partner Management",fr:"Gestion des Partenaires",de:"Partner-Verwaltung",es:"Gestión de Socios"},partnerMgmtSubtitle:{en:"Review and manage partner applications",fr:"Examiner et gérer les candidatures de partenaires",de:"Partner-Bewerbungen prüfen und verwalten",es:"Revisar y gestionar solicitudes de socios"},partnerLeads:{en:"Partner Leads",fr:"Prospects Partenaires",de:"Partner-Leads",es:"Prospectos de Socios"},partnerLeadsSubtitle:{en:"Review lead registrations from partners",fr:"Examiner les enregistrements de prospects des partenaires",de:"Lead-Registrierungen von Partnern prüfen",es:"Revisar registros de prospectos de socios"},marketingResources:{en:"Marketing Resources",fr:"Ressources Marketing",de:"Marketing-Ressourcen",es:"Recursos de Marketing"},marketingResourcesSubtitle:{en:"Manage marketing materials and assets",fr:"Gérer les matériels et ressources marketing",de:"Marketingmaterialien und Assets verwalten",es:"Gestionar materiales y recursos de marketing"},payouts:{en:"Payouts",fr:"Paiements",de:"Auszahlungen",es:"Pagos"},payoutsSubtitle:{en:"Manage partner commission payouts",fr:"Gérer les paiements de commissions des partenaires",de:"Partner-Provisionsauszahlungen verwalten",es:"Gestionar pagos de comisiones de socios"},training:{en:"Training Modules",fr:"Modules de Formation",de:"Schulungsmodule",es:"Módulos de Formación"},trainingSubtitle:{en:"Manage partner training content",fr:"Gérer le contenu de formation des partenaires",de:"Partner-Schulungsinhalte verwalten",es:"Gestionar contenido de formación de socios"}
669,partnerSupport:{en:"Partner Support",fr:"Support Partenaire",de:"Partner-Support",es:"Soporte de Socios"},partnerSupportSubtitle:{en:"Manage partner support cases",fr:"Gérer les dossiers de support partenaire",de:"Partner-Supportfälle verwalten",es:"Gestionar casos de soporte de socios"},announcements:{en:"Announcements",fr:"Annonces",de:"Ankündigungen",es:"Anuncios"},announcementsSubtitle:{en:"Manage partner announcements",fr:"Gérer les annonces des partenaires",de:"Partner-Ankündigungen verwalten",es:"Gestionar anuncios de socios"},partnerAnalytics:{en:"Partner Analytics",fr:"Analyses Partenaire",de:"Partner-Analysen",es:"AnalÃticas de Socios"},partnerAnalyticsSubtitle:{en:"Partner performance and metrics",fr:"Performance et métriques des partenaires",de:"Partner-Leistung und Metriken",es:"Rendimiento y métricas de socios"},contentCreators:{en:"Content Creators",fr:"Créateurs de Contenu",de:"Content-Ersteller",es:"Creadores de Contenido"},contentCreatorsSubtitle:{en:"Review and manage content creator applications",fr:"Examiner et gérer les candidatures de créateurs de contenu",de:"Content-Ersteller-Bewerbungen prüfen und verwalten",es:"Revisar y gestionar solicitudes de creadores de contenido"},save:{en:"Save",fr:"Enregistrer",de:"Speichern",es:"Guardar"},cancel:{en:"Cancel",fr:"Annuler",de:"Abbrechen",es:"Cancelar"},edit:{en:"Edit",fr:"Modifier",de:"Bearbeiten",es:"Editar"},delete:{en:"Delete",fr:"Supprimer",de:"Löschen",es:"Eliminar"},create:{en:"Create",fr:"Créer",de:"Erstellen",es:"Crear"},update:{en:"Update",fr:"Mettre à jour",de:"Aktualisieren",es:"Actualizar"},approve:{en:"Approve",fr:"Approuver",de:"Genehmigen",es:"Aprobar"},decline:{en:"Decline",fr:"Refuser",de:"Ablehnen",es:"Rechazar"},pending:{en:"Pending",fr:"En attente",de:"Ausstehend",es:"Pendiente"},approved:{en:"Approved",fr:"Approuvé",de:"Genehmigt",es:"Aprobado"},declined:{en:"Declined",fr:"Refusé",de:"Abgelehnt",es:"Rechazado"},search:{en:"Search...",fr:"Rechercher...",de:"Suchen...",es:"Buscar..."},noData:{en:"No data available",fr:"Aucune donnée disponible",de:"Keine Daten verfügbar",es:"Sin datos disponibles"},backToAdmin:{en:"Back to Admin",fr:"Retour Admin",de:"Zurück zum Admin",es:"Volver a Admin"},policyMgmtDesc:{en:"Manage platform policies, terms, and legal documents",fr:"Gérer les politiques, conditions et documents juridiques de la plateforme",de:"Plattform-Richtlinien, Nutzungsbedingungen und Rechtsdokumente verwalten",es:"Gestionar polÃticas, términos y documentos legales de la plataforma"},newPolicy:{en:"New Policy",fr:"Nouvelle Politique",de:"Neue Richtlinie",es:"Nueva PolÃtica"},requiresAcceptance:{en:"Requires Acceptance",fr:"Acceptation Requise",de:"Zustimmung Erforderlich",es:"Requiere Aceptación"},policyOrder:{en:"Order:",fr:"Ordre :",de:"Reihenfolge:",es:"Orden:"},policyFooterLabel:{en:"Footer",fr:"Pied de Page",de:"FuÃzeile",es:"Pie de Página"},policyHeaderLabel:{en:"Header",fr:"En-tête",de:"Kopfzeile",es:"Encabezado"},publish:{en:"Publish",fr:"Publier",de:"Veröffentlichen",es:"Publicar"},restore:{en:"Restore",fr:"Restaurer",de:"Wiederherstellen",es:"Restaurar"},noPolicies:{en:'No policies yet. Click "New Policy" to create one.',fr:`Aucune politique pour l'instant. Cliquez sur "Nouvelle Politique" pour en créer une.`,de:'Noch keine Richtlinien. Klicken Sie auf "Neue Richtlinie", um eine zu erstellen.',es:'Aún no hay polÃticas. Haga clic en "Nueva PolÃtica" para crear una.'},editPolicy:{en:"Edit Policy",fr:"Modifier la Politique",de:"Richtlinie Bearbeiten",es:"Editar PolÃtica"},policySlug:{en:"Slug (URL)",fr:"Slug (URL)",de:"Slug (URL)",es:"Slug (URL)"},policyTabLabel:{en:"Tab Label",fr:"Ãtiquette d'Onglet",de:"Tab-Label",es:"Etiqueta de Pestaña"},policyVersion:{en:"Version",fr:"Version",de:"Version",es:"Versión"},policyCategory:{en:"Category",fr:"Catégorie",de:"Kategorie",es:"CategorÃa"},catLegal:{en:"Legal",fr:"Juridique",de:"Recht",es:"Legal"},catPrivacy:{en:"Privacy",fr:"Confidentialité",de:"Datenschutz",es:"Privacidad"},catCommunity:{en:"Community",fr:"Communauté",de:"Community",es:"
669Comunidad"},catIP:{en:"Intellectual Property",fr:"Propriété Intellectuelle",de:"Geistiges Eigentum",es:"Propiedad Intelectual"},catOther:{en:"Other",fr:"Autre",de:"Sonstige",es:"Otro"},policyContent:{en:"Content",fr:"Contenu",de:"Inhalt",es:"Contenido"},acceptanceMessage:{en:"Acceptance Message",fr:"Message d'Acceptation",de:"Zustimmungstext",es:"Mensaje de Aceptación"},savePolicy:{en:"Save Policy",fr:"Enregistrer la Politique",de:"Richtlinie Speichern",es:"Guardar PolÃtica"},saving:{en:"Saving...",fr:"Enregistrement...",de:"Speichern...",es:"Guardando..."},policyUpdated:{en:"Policy updated",fr:"Politique mise à jour",de:"Richtlinie aktualisiert",es:"PolÃtica actualizada"},policyCreated:{en:"Policy created",fr:"Politique créée",de:"Richtlinie erstellt",es:"PolÃtica creada"},policyDeleted:{en:"Policy deleted",fr:"Politique supprimée",de:"Richtlinie gelöscht",es:"PolÃtica eliminada"},confirmDeletePolicy:{en:"Delete this policy?",fr:"Supprimer cette politique ?",de:"Diese Richtlinie löschen?",es:"¿Eliminar esta polÃtica?"},announcementsDesc:{en:"Post announcements visible to partners in their dashboard.",fr:"Publier des annonces visibles par les partenaires dans leur tableau de bord.",de:"Ankündigungen veröffentlichen, die für Partner in ihrem Dashboard sichtbar sind.",es:"Publicar anuncios visibles para los socios en su panel."},newAnnouncement:{en:"New Announcement",fr:"Nouvelle Annonce",de:"Neue Ankündigung",es:"Nuevo Anuncio"},urgent:{en:"Urgent",fr:"Urgent",de:"Dringend",es:"Urgente"},noAnnouncements:{en:"No announcements yet. Create your first one.",fr:"Aucune annonce pour l'instant. Créez la première.",de:"Noch keine Ankündigungen. Erstellen Sie die erste.",es:"Aún no hay anuncios. Cree el primero."},archived:{en:"Archived",fr:"Archivé",de:"Archiviert",es:"Archivado"},expiresLabel:{en:"Expires:",fr:"Expire le :",de:"Läuft ab:",es:"Expira:"},editAnnouncement:{en:"Edit Announcement",fr:"Modifier l'Annonce",de:"Ankündigung Bearbeiten",es:"Editar Anuncio"},message:{en:"Message",fr:"Message",de:"Nachricht",es:"Mensaje"},audience:{en:"Audience",fr:"Audience",de:"Zielgruppe",es:"Audiencia"},allPartners:{en:"All Partners",fr:"Tous les Partenaires",de:"Alle Partner",es:"Todos los Socios"},growthPartners:{en:"Growth Partners",fr:"Partenaires de Croissance",de:"Wachstumspartner",es:"Socios de Crecimiento"},seniorGrowthPartners:{en:"Senior Growth Partners",fr:"Partenaires Senior",de:"Senior-Wachstumspartner",es:"Socios Senior"},platformSalesDirectors:{en:"Platform Sales Directors",fr:"Directeurs de Vente",de:"Plattform-Verkaufsleiter",es:"Directores de Ventas"},platformOperatingPartners:{en:"Platform Operating Partners",fr:"Partenaires Opérationnels",de:"Plattform-Betriebspartner",es:"Socios Operativos"},infoPriority:{en:"Info",fr:"Info",de:"Info",es:"Info"},important:{en:"Important",fr:"Important",de:"Wichtig",es:"Importante"},expiryDate:{en:"Expiry Date (optional)",fr:"Date d'Expiration (optionnel)",de:"Ablaufdatum (optional)",es:"Fecha de Expiración (opcional)"},publishBtn:{en:"Publish",fr:"Publier",de:"Veröffentlichen",es:"Publicar"},saved:{en:"Saved",fr:"Enregistré",de:"Gespeichert",es:"Guardado"},trainingMgmtTitle:{en:"Training Management",fr:"Gestion de la Formation",de:"Schulungsverwaltung",es:"Gestión de Formación"},trainingMgmtDesc:{en:"Create and manage training modules for partner onboarding.",fr:"Créer et gérer les modules de formation pour l'intégration des partenaires.",de:"Schulungsmodule für Partner-Onboarding erstellen und verwalten.",es:"Crear y gestionar módulos de formación para la incorporación de socios."},addModule:{en:"Add Module",fr:"Ajouter un Module",de:"Modul Hinzufügen",es:"Añadir Módulo"},totalModules:{en:"Total Modules",fr:"Modules Totaux",de:"Module Gesamt",es:"Módulos Totales"},requiredLabel:{en:"Required",fr:"Requis",de:"Erforderlich",es:"Requerido"},moduleColumn:{en:"Module",fr:"Module",de:"Modul",es:"Módulo"},categoryColumn:{en:"Category",fr:"Catégorie",de:"Kategorie",es:"CategorÃa"},typeColumn:{en:"Type",fr:"Type",de:"Typ",es:"Tipo"},durationColumn:{en:"Duration",fr:"Durée",de:"Dauer",es:"Duración"},noTrainingModules:{en:"No training modules yet. Create your first module.",fr:"Aucun module de formation pour l'instant. Créez le premier.",de:"Noch keine Schulungsmodule. Erstellen Sie das erste.",es:"Aún no hay módulos de formación. Cree el primero."}
669,minLabel:{en:"min",fr:"min",de:"Min.",es:"min"},yesLabel:{en:"Yes",fr:"Oui",de:"Ja",es:"SÃ"},noLabel:{en:"No",fr:"Non",de:"Nein",es:"No"},editModule:{en:"Edit Module",fr:"Modifier le Module",de:"Modul Bearbeiten",es:"Editar Módulo"},addTrainingModule:{en:"Add Training Module",fr:"Ajouter un Module de Formation",de:"Schulungsmodul Hinzufügen",es:"Añadir Módulo de Formación"},contentType:{en:"Content Type",fr:"Type de Contenu",de:"Inhaltstyp",es:"Tipo de Contenido"},contentUrl:{en:"Content URL",fr:"URL du Contenu",de:"Inhalt-URL",es:"URL del Contenido"},durationMinutes:{en:"Duration (minutes)",fr:"Durée (minutes)",de:"Dauer (Minuten)",es:"Duración (minutos)"},passingScore:{en:"Passing Score (%)",fr:"Score de Réussite (%)",de:"Bestehensgrenze (%)",es:"Puntuación de Aprobación (%)"},requiredForOnboarding:{en:"Required for onboarding completion",fr:"Requis pour l'achèvement de l'intégration",de:"Für Onboarding-Abschluss erforderlich",es:"Requerido para completar la incorporación"},catOnboarding:{en:"Onboarding",fr:"Intégration",de:"Onboarding",es:"Incorporación"},catPlatformOverview:{en:"Platform Overview",fr:"Vue d'Ensemble de la Plateforme",de:"Plattform-Ãbersicht",es:"Vista General de la Plataforma"},catProductTraining:{en:"Product Training",fr:"Formation Produit",de:"Produktschulung",es:"Formación de Producto"},catSalesSkills:{en:"Sales Skills",fr:"Compétences de Vente",de:"Vertriebsfähigkeiten",es:"Habilidades de Venta"},catComplianceRules:{en:"Compliance Rules",fr:"Règles de Conformité",de:"Compliance-Regeln",es:"Reglas de Cumplimiento"},catMarketingGuidelines:{en:"Marketing Guidelines",fr:"Directives Marketing",de:"Marketing-Richtlinien",es:"Directrices de Marketing"},payoutsDesc:{en:"Review approved commissions and process partner payouts.",fr:"Vérifier les commissions approuvées et traiter les paiements des partenaires.",de:"Genehmigte Provisionen prüfen und Partner-Auszahlungen verarbeiten.",es:"Revisar comisiones aprobadas y procesar pagos de socios."},approvedAwaiting:{en:"Approved (Awaiting Payout)",fr:"Approuvé (En Attente de Paiement)",de:"Genehmigt (Ausstehend)",es:"Aprobado (Pendiente de Pago)"},paidYTD:{en:"Paid (YTD)",fr:"Payé (YTD)",de:"Bezahlt (YTD)",es:"Pagado (YTD)"},approvedEntries:{en:"Approved Entries",fr:"Entrées Approuvées",de:"Genehmigte Einträge",es:"Entradas Aprobadas"},partnersAboveMin:{en:"Partners Above Min Payout",fr:"Partenaires Au-Dessus du Min.",de:"Partner über Mindestauszahlung",es:"Socios sobre Pago MÃn."},commissionsSelected:{en:"commissions selected",fr:"commissions sélectionnées",de:"Provisionen ausgewählt",es:"comisiones seleccionadas"},totalPayoutLabel:{en:"Total payout:",fr:"Paiement total :",de:"Gesamtauszahlung:",es:"Pago total:"},clear:{en:"Clear",fr:"Effacer",de:"Leeren",es:"Limpiar"},processPayout:{en:"Process Payout",fr:"Traiter le Paiement",de:"Auszahlung Verarbeiten",es:"Procesar Pago"},approvedByPartner:{en:"Approved Commissions by Partner",fr:"Commissions Approuvées par Partenaire",de:"Genehmigte Provisionen nach Partner",es:"Comisiones Aprobadas por Socio"},noApprovedCommissions:{en:"No approved commissions awaiting payout.",fr:"Aucune commission approuvée en attente de paiement.",de:"Keine genehmigten Provisionen ausstehend.",es:"Sin comisiones aprobadas pendientes de pago."},unknownPartner:{en:"Unknown Partner",fr:"Partenaire Inconnu",de:"Unbekannter Partner",es:"Socio Desconocido"},entriesLabel:{en:"entries",fr:"entrées",de:"Einträge",es:"entradas"},aboveMinPayout:{en:"Above min payout",fr:"Au-dessus du min.",de:"Ãber Mindestauszahlung",es:"Sobre pago mÃn."},belowMinPayout:{en:"Below min payout ($50)",fr:"Sous le min. ($50)",de:"Unter Mindestauszahlung ($50)",es:"Bajo pago mÃn. ($50)"},statement:{en:"Statement",fr:"Relevé",de:"Abrechnung",es:"Estado"},dateCol:{en:"Date",fr:"Date",de:"Datum",es:"Fecha"},typeCol:{en:"Type",fr:"Type",de:"Typ",es:"Tipo"},productCol:{en:"Product",fr:"Produit",de:"Produkt",es:"Producto"},customerCol:{en:"Customer",fr:"Client",de:"Kunde",es:"Cliente"},netRevCol:{en:"Net Rev",fr:"Rev. Net",de:"Netto-Ums.",es:"Rev. Neta"},rateCol:{en:"Rate",fr:"Taux",de:"Satz",es:"Tasa"}
669,commissionCol:{en:"Commission",fr:"Commission",de:"Provision",es:"Comisión"},payPeriodCol:{en:"Pay Period",fr:"Période de Paiement",de:"Zahlungsperiode",es:"PerÃodo de Pago"},confirmPayout:{en:"Confirm Payout",fr:"Confirmer le Paiement",de:"Auszahlung Bestätigen",es:"Confirmar Pago"},commissionsLabel:{en:"Commissions:",fr:"Commissions :",de:"Provisionen:",es:"Comisiones:"},totalAmountLabel:{en:"Total Amount:",fr:"Montant Total :",de:"Gesamtbetrag:",es:"Monto Total:"},currencyLabel:{en:"Currency:",fr:"Devise :",de:"Währung:",es:"Moneda:"},payoutConfirmDesc:{en:"This will mark all selected commissions as paid and generate payment references. An audit log entry will be created automatically.",fr:"Cela marquera toutes les commissions sélectionnées comme payées et générera des références de paiement. Une entrée de journal d'audit sera créée automatiquement.",de:"Dies markiert alle ausgewählten Provisionen als bezahlt und generiert Zahlungsreferenzen. Ein Audit-Log-Eintrag wird automatisch erstellt.",es:"Esto marcará todas las comisiones seleccionadas como pagadas y generará referencias de pago. Se creará una entrada de registro de auditorÃa automáticamente."},confirmPayoutBtn:{en:"Confirm Payout",fr:"Confirmer",de:"Bestätigen",es:"Confirmar"},commissionsMarkedPaid:{en:"commissions marked as paid",fr:"commissions marquées comme payées",de:"Provisionen als bezahlt markiert",es:"comisiones marcadas como pagadas"},payoutStatementExported:{en:"Payout statement exported",fr:"Relevé de paiement exporté",de:"Auszahlungsabrechnung exportiert",es:"Estado de pago exportado"}
669,partnerSupportDesc:{en:"Manage and respond to partner support requests.",fr:"Gérer et répondre aux demandes de support des partenaires.",de:"Partner-Support-Anfragen verwalten und beantworten.",es:"Gestionar y responder solicitudes de soporte de socios."},waitingPartner:{en:"Waiting Partner",fr:"En Attente Partenaire",de:"Wartet auf Partner",es:"Esperando Socio"},totalCases:{en:"Total Cases",fr:"Cas Totaux",de:"Fälle Gesamt",es:"Casos Totales"},searchCases:{en:"Search cases...",fr:"Rechercher des cas...",de:"Fälle suchen...",es:"Buscar casos..."},caseCol:{en:"Case",fr:"Cas",de:"Fall",es:"Caso"},partnerCol:{en:"Partner",fr:"Partenaire",de:"Partner",es:"Socio"},noSupportCases:{en:"No support cases found.",fr:"Aucun cas de support trouvé.",de:"Keine Support-Fälle gefunden.",es:"Sin casos de soporte."},supportTeam:{en:"Support Team",fr:"Ãquipe de Support",de:"Support-Team",es:"Equipo de Soporte"},replyToPartner:{en:"Reply to Partner",fr:"Répondre au Partenaire",de:"Partner Antworten",es:"Responder al Socio"},typeResponse:{en:"Type your response...",fr:"Tapez votre réponse...",de:"Antwort eingeben...",es:"Escriba su respuesta..."},internalNotesLabel:{en:"Internal Notes (hidden from partner)",fr:"Notes Internes (cachées du partenaire)",de:"Interne Notizen (für Partner unsichtbar)",es:"Notas Internas (ocultas para el socio)"},internalNotesPlaceholder:{en:"Internal notes...",fr:"Notes internes...",de:"Interne Notizen...",es:"Notas internas..."},sendReply:{en:"Send Reply",fr:"Envoyer la Réponse",de:"Antwort Senden",es:"Enviar Respuesta"},replySent:{en:"Reply sent to partner",fr:"Réponse envoyée au partenaire",de:"Antwort an Partner gesendet",es:"Respuesta enviada al socio"},productQuestion:{en:"Product Question",fr:"Question Produit",de:"Produktfrage",es:"Pregunta de Producto"},demoRequest:{en:"Demonstration Request",fr:"Demande de Démonstration",de:"Demo-Anfrage",es:"Solicitud de Demostración"},proposalSupport:{en:"Proposal Support",fr:"Support de Proposition",de:"Angebotsunterstützung",es:"Soporte de Propuesta"},pricingApproval:{en:"Pricing Approval",fr:"Approbation de Prix",de:"Preisgenehmigung",es:"Aprobación de Precios"},leadAttribution:{en:"Lead Attribution",fr:"Attribution de Prospect",de:"Lead-Zuordnung",es:"Atribución de Prospecto"},commissionQuery:{en:"Commission Query",fr:"Requête de Commission",de:"Provisionsanfrage",es:"Consulta de Comisión"},paymentQuery:{en:"Payment Query",fr:"Requête de Paiement",de:"Zahlungsanfrage",es:"Consulta de Pago"},marketingResourceRequest:{en:"Marketing Resource Request",fr:"Demande de Ressource Marketing",de:"Marketing-Ressourcen-Anfrage",es:"Solicitud de Recurso de Marketing"},technicalIssue:{en:"Technical Issue",fr:"Problème Technique",de:"Technisches Problem",es:"Problema Técnico"},otherRequest:{en:"Other",fr:"Autre",de:"Sonstige",es:"Otro"},statusUpdatedTo:{en:"Status updated to",fr:"Statut mis à jour à ",de:"Status aktualisiert auf",es:"Estado actualizado a"},partnerAnalyticsDesc:{en:"Performance overview across all partners and programs.",fr:"Vue d'ensemble des performances de tous les partenaires et programmes.",de:"Leistungsübersicht über alle Partner und Programme.",es:"Vista general del rendimiento de todos los socios y programas."},activePartners:{en:"Active Partners",fr:"Partenaires Actifs",de:"Aktive Partner",es:"Socios Activos"},totalClicks:{en:"Total Clicks",fr:"Clics Totaux",de:"Klicks Gesamt",es:"Clics Totales"},grossRevenue:{en:"Gross Revenue",fr:"Revenu Brut",de:"Bruttoumsatz",es:"Ingresos Brutos"},totalCommission:{en:"Total Commission",fr:"Commission Totale",de:"Gesamtprovision",es:"Comisión Total"},topPartnersByRevenue:{en:"Top Partners by Revenue",fr:"Meilleurs Partenaires par Revenu",de:"Top Partner nac
669h Umsatz",es:"Mejores Socios por Ingresos"},partnerTypeDist:{en:"Partner Type Distribution",fr:"Répartition des Types de Partenaire",de:"Partner-Typ-Verteilung",es:"Distribución de Tipo de Socio"},commissionStatusBreakdown:{en:"Commission Status Breakdown",fr:"Répartition des Statuts de Commission",de:"Provisionsstatus-Verteilung",es:"Distribución de Estado de Comisión"},leadStatusBreakdown:{en:"Lead Status Breakdown",fr:"Répartition des Statuts de Prospect",de:"Lead-Status-Verteilung",es:"Distribución de Estado de Prospecto"},partnerLeaderboard:{en:"Partner Leaderboard",fr:"Classement des Partenaires",de:"Partner-Bestenliste",es:"Ranking de Socios"},clicksCol:{en:"Clicks",fr:"Clics",de:"Klicks",es:"Clics"},customersCol:{en:"Customers",fr:"Clients",de:"Kunden",es:"Clientes"},revenueCol:{en:"Revenue",fr:"Revenu",de:"Umsatz",es:"Ingresos"},noDataYet:{en:"No data yet.",fr:"Pas encore de données.",de:"Noch keine Daten.",es:"Sin datos aún."},noPartnersYet:{en:"No partners yet.",fr:"Aucun partenaire pour l'instant.",de:"Noch keine Partner.",es:"Aún no hay socios."},growthPartner:{en:"Growth Partner",fr:"Partenaire de Croissance",de:"Wachstumspartner",es:"Socio de Crecimiento"},seniorGrowthPartner:{en:"Senior Growth Partner",fr:"Partenaire Senior",de:"Senior-Wachstumspartner",es:"Socio Senior"},platformSalesDirector:{en:"Platform Sales Director",fr:"Directeur de Vente",de:"Plattform-Verkaufsleiter",es:"Director de Ventas"},platformOperatingPartner:{en:"Platform Operating Partner",fr:"Partenaire Opérationnel",de:"Plattform-Betriebspartner",es:"Socio Operativo"},partnerMgmtDesc:{en:"Review applications, manage partners, and oversee the Partner Growth Hub.",fr:"Examiner les candidatures, gérer les partenaires et superviser le Hub de Croissance Partenaire.",de:"Bewerbungen prüfen, Partner verwalten und den Partner-Wachstums-Hub überwachen.",es:"Revisar solicitudes, gestionar socios y supervisar el Hub de Crecimiento de Socios."},applicationUpdated:{en:"Application updated",fr:"Candidature mise à jour",de:"Bewerbung aktualisiert",es:"Solicitud actualizada"},partnerApprovedCode:{en:"Partner approved! Code:",fr:"Partenaire approuvé ! Code :",de:"Partner genehmigt! Code:",es:"¡Socio aprobado! Código:"},applicationDeclined:{en:"Application declined",fr:"Candidature refusée",de:"Bewerbung abgelehnt",es:"Solicitud rechazada"},pendingReviewStat:{en:"Pending Review",fr:"En Attente de Révision",de:"Prüfung Ausstehend",es:"Pendiente de Revisión"},approvedCommissionStat:{en:"Approved Commission",fr:"Commission Approuvée",de:"Genehmigte Provision",es:"Comisión Aprobada"},pendingCommissionStat:{en:"Pending Commission",fr:"Commission en Attente",de:"Ausstehende Provision",es:"Comisión Pendiente"},searchByNameEmail:{en:"Search by name, email, or code...",fr:"Rechercher par nom, e-mail ou code...",de:"Nach Name, E-Mail oder Code suchen...",es:"Buscar por nombre, correo o código..."},allStatuses:{en:"All Statuses",fr:"Tous les Statuts",de:"Alle Status",es:"Todos los Estados"},submitted:{en:"Submitted",fr:"Soumise",de:"Eingereicht",es:"Enviada"},underReview:{en:"Under Review",fr:"En Révision",de:"In Prüfung",es:"En Revisión"},nameCol:{en:"Name",fr:"Nom",de:"Name",es:"Nombre"},emailCol:{en:"Email",fr:"E-mail",de:"E-Mail",es:"Correo"},countryCol:{en:"Country",fr:"Pays",de:"Land",es:"PaÃs"},codeCol:{en:"Code",fr:"Code",de:"Code",es:"Código"},appliedCol:{en:"Applied",fr:"Candidat",de:"Beworben",es:"Solicitado"},noApplications:{en:"No applications found.",fr:"Aucune candidature trouvée.",de:"Keine Bewerbungen gefunden.",es:"Sin solicitudes encontradas."},reviewBtn:{en:"Review",fr:"Réviser",de:"Prüfen",es:"Revisar"},applicationReview:{en:"Application Review",fr:"Révision de Candidature",de:"Bewerbungsprüfung",es:"Revisión de Solicitud"},appliedLabel:{en:"Applied",fr:"Candidat",de:"Beworben",es:"Solicitado"},phoneLabel:{en:"Phone:",fr:"Téléphone :",de:"Telefon:",es:"Teléfono:"},companyLabel:{en:"Company:",fr:"Entreprise :",de:"Unternehmen:",es:"Empresa:"},websiteLabel:{en:"Website:",fr:"Site Web :",de:"Website:",es:"Sitio Web:"}
669,professionalBackground:{en:"Professional Background",fr:"Parcours Professionnel",de:"Beruflicher Hintergrund",es:"Experiencia Profesional"},growthApproach:{en:"Proposed 90-Day Growth Approach",fr:"Approche de Croissance sur 90 Jours",de:"Vorgeschlagener 90-Tage-Wachstumsansatz",es:"Enfoque de Crecimiento a 90 DÃas"},industries:{en:"Industries",fr:"Industries",de:"Branchen",es:"Industrias"},partnerCodeLabel:{en:"Partner Code:",fr:"Code Partenaire :",de:"Partner-Code:",es:"Código de Socio:"},commissionPlanLabel:{en:"Commission Plan:",fr:"Plan de Commission :",de:"Provisionsplan:",es:"Plan de Comisión:"},partnerSinceLabel:{en:"Partner Since:",fr:"Partenaire Depuis :",de:"Partner Seit:",es:"Socio Desde:"},internalReviewNotes:{en:"Internal Review Notes",fr:"Notes de Révision Internes",de:"Interne Prüfungsnnotizen",es:"Notas de Revisión Internas"},notesVisibleAdmins:{en:"Notes visible to admins only...",fr:"Notes visibles par les admins uniquement...",de:"Notizen nur für Admins sichtbar...",es:"Notas visibles solo para administradores..."},requestMoreInfo:{en:"Request More Info",fr:"Demander Plus d'Infos",de:"Mehr Infos Anfordern",es:"Solicitar Más Info"},approvePartner:{en:"Approve Partner",fr:"Approuver le Partenaire",de:"Partner Genehmigen",es:"Aprobar Socio"},alreadyApproved:{en:"Already Approved",fr:"Déjà Approuvé",de:"Bereits Genehmigt",es:"Ya Aprobado"},approvePartnerTitle:{en:"Approve Partner",fr:"Approuver le Partenaire",de:"Partner Genehmigen",es:"Aprobar Socio"},approvingWill:{en:"Approving",fr:"Approuver",de:"Genehmigen von",es:"Aprobar a"},approvingWillSuffix:{en:"will:",fr:"va :",de:"wird:",es:"va a:"},setApproved:{en:"Set status to Approved",fr:"Définir le statut sur Approuvé",de:"Status auf Genehmigt setzen",es:"Establecer estado como Aprobado"},generateCode:{en:"Generate a unique partner code",fr:"Générer un code partenaire unique",de:"Einzigartigen Partner-Code generieren",es:"Generar un código de socio único"},createReferralLink:{en:"Create primary referral link",fr:"Créer un lien de parrainage principal",de:"Primären Empfehlungslink erstellen",es:"Crear enlace de referencia principal"},assignCommissionPlan:{en:"Assign commission plan:",fr:"Attribuer le plan de commission :",de:"Provisionsplan zuweisen:",es:"Asignar plan de comisión:"},recordAudit:{en:"Record action in audit log",fr:"Enregistrer l'action dans le journal d'audit",de:"Aktion im Audit-Log protokollieren",es:"Registrar acción en el log de auditorÃa"},confirmApproval:{en:"Confirm Approval",fr:"Confirmer l'Approbation",de:"Genehmigung Bestätigen",es:"Confirmar Aprobación"},declineApplicationTitle:{en:"Decline Application",fr:"Refuser la Candidature",de:"Bewerbung Ablehnen",es:"Rechazar Solicitud"},reasonForDecline:{en:"Reason for Decline *",fr:"Motif de Refus *",de:"Ablehnungsgrund *",es:"Motivo de Rechazo *"},declineReasonPlaceholder:{en:"Provide a reason for declining this application...",fr:"Indiquez un motif pour le refus de cette candidature...",de:"Geben Sie einen Grund für die Ablehnung an...",es:"Proporcione un motivo para rechazar esta solicitud..."},confirmDecline:{en:"Confirm Decline",fr:"Confirmer le Refus",de:"Ablehnung Bestätigen",es:"Confirmar Rechazo"},partnerLeadsDesc:{en:"Review and approve lead registrations submitted by partners.",fr:"Examiner et approuver les enregistrements de prospects soumis par les partenaires.",de:"Lead-Registrierungen von Partnern prüfen und genehmigen.",es:"Revisar y aprobar registros de prospectos enviados por socios."},approvedProtected:{en:"Approved (Protected)",fr:"Approuvé (Protégé)",de:"Genehmigt (Geschützt)",es:"Aprobado (Protegido)"},flaggedDuplicates:{en:"Flagged Duplicates",fr:"Doublons Signalés",de:"Markierte Duplikate",es:"Duplicados Marcados"},searchLeads:{en:"Search leads...",fr:"Rechercher des prospects...",de:"Leads suchen...",es:"Buscar prospectos..."},moreInfoRequested:{en:"More Info Requested",fr:"Plus d'Infos Demandées",de:"Mehr Infos Angefordert",es:"Más Info Solicitada"},contactCol:{en:"Contact",fr:"Contact",de:"Kontakt",es:"Contacto"}
669,productInterestCol:{en:"Product Interest",fr:"Intérêt Produit",de:"Produktinteresse",es:"Interés de Producto"},estValueCol:{en:"Est. Value",fr:"Val. Est.",de:"Geschätzter Wert",es:"Val. Est."},timeframeCol:{en:"Timeframe",fr:"Délai",de:"Zeitraum",es:"Plazo"},protectionCol:{en:"Protection",fr:"Protection",de:"Schutz",es:"Protección"},noLeads:{en:"No leads found.",fr:"Aucun prospect trouvé.",de:"Keine Leads gefunden.",es:"Sin prospectos encontrados."},duplicateFlag:{en:"Duplicate Flag",fr:"Doublon",de:"Duplikat",es:"Duplicado"},selfReferral:{en:"Self-Referral",fr:"Auto-Parrainage",de:"Eigenempfehlung",es:"Auto-Referencia"},duplicateEmail:{en:"Duplicate Email",fr:"E-mail en Double",de:"Doppelte E-Mail",es:"Correo Duplicado"},leadReview:{en:"Lead Review",fr:"Révision de Prospect",de:"Lead-Prüfung",es:"Revisión de Prospecto"},estValueLabel:{en:"Est. Value:",fr:"Val. Est. :",de:"Geschätzter Wert:",es:"Val. Est.:"},supportingNotes:{en:"Supporting Notes",fr:"Notes Justificatives",de:"Begründungsnotizen",es:"Notas de Apoyo"},duplicateFlagLabel:{en:"Duplicate Flag:",fr:"Doublon :",de:"Duplikat:",es:"Duplicado:"},duplicateDefaultReason:{en:"This opportunity may already be registered.",fr:"Cette opportunité est peut-être déjà enregistrée.",de:"Diese Gelegenheit ist möglicherweise bereits registriert.",es:"Esta oportunidad ya puede estar registrada."},fraudWarnings:{en:"Fraud Detection Warnings",fr:"Avertissements de Détection de Fraude",de:"Betrugserkennung-Warnungen",es:"Advertencias de Detección de Fraude"},adminNotes:{en:"Admin Notes",fr:"Notes Admin",de:"Admin-Notizen",es:"Notas de Admin"},approveProtect:{en:"Approve & Protect",fr:"Approuver & Protéger",de:"Genehmigen & Schützen",es:"Aprobar y Proteger"},rejectReasonLabel:{en:"Reject Reason (required to reject)",fr:"Motif de Rejet
669(requis pour rejeter)",de:"Ablehnungsgrund (zum Ablehnen erforderlich)",es:"Motivo de Rechazo (requerido para rechazar)"},rejectReasonPlaceholder:{en:"Reason for rejection...",fr:"Motif du rejet...",de:"Grund für Ablehnung...",es:"Motivo de rechazo..."},leadApprovedProtected:{en:"Lead approved â protected until",fr:"Prospect approuvé â protégé jusqu'au",de:"Lead genehmigt â geschützt bis",es:"Prospecto aprobado â protegido hasta"},leadRejected:{en:"Lead rejected",fr:"Prospect rejeté",de:"Lead abgelehnt",es:"Prospecto rechazado"},moreInfoRequestedToast:{en:"More information requested from partner",fr:"Plus d'informations demandées au partenaire",de:"Weitere Informationen vom Partner angefordert",es:"Más información solicitada al socio"},marketingResourcesDesc:{en:"Publish and manage approved marketing materials for partners.",fr:"Publier et gérer les matériels marketing approuvés pour les partenaires.",de:"Genehmigte Marketingmaterialien für Partner veröffentlichen und verwalten.",es:"Publicar y gestionar materiales de marketing aprobados para socios."},addResource:{en:"Add Resource",fr:"Ajouter une Ressource",de:"Ressource Hinzufügen",es:"Añadir Recurso"},searchResources:{en:"Search resources...",fr:"Rechercher des ressources...",de:"Ressourcen suchen...",es:"Buscar recursos..."},titleCol:{en:"Title",fr:"Titre",de:"Titel",es:"TÃtulo"},versionCol:{en:"Version",fr:"Version",de:"Version",es:"Versión"},downloadsCol:{en:"Downloads",fr:"Téléchargements",de:"Downloads",es:"Descargas"},noResources:{en:"No resources found.",fr:"Aucune ressource trouvée.",de:"Keine Ressourcen gefunden.",es:"Sin recursos encontrados."},editResource:{en:"Edit Resource",fr:"Modifier la Ressource",de:"Ressource Bearbeiten",es:"Editar Recurso"},addMarketingResource:{en:"Add Marketing Resource",fr:"Ajouter une Ressource Marketing",de:"Marketing-Ressource Hinzufügen",es:"Añadir Recurso de Marketing"},fileUrl:{en:"File URL",fr:"URL du Fichier",de:"Datei-URL",es:"URL del Archivo"},externalLink:{en:"External Link",fr:"Lien Externe",de:"Externer Link",es:"Enlace Externo"},publicationDate:{en:"Publication Date",fr:"Date de Publication",de:"Veröffentlichungsd
669atum",es:"Fecha de Publicación"},expiryDateLabel:{en:"Expiry Date",fr:"Date d'Expiration",de:"Ablaufdatum",es:"Fecha de Expiración"},approvedUse:{en:"Approved Use",fr:"Usage Approuvé",de:"Genehmigte Verwendung",es:"Uso Aprobado"},approvedUsePlaceholder:{en:"e.g. Share with prospects only",fr:"ex. Partager avec les prospects uniquement",de:"z.B. Nur mit Interessenten teilen",es:"ej. Compartir solo con prospectos"},catPlatformOverview:{en:"Platform Overview",fr:"Vue d'Ensemble",de:"Plattform-Ãbersicht",es:"Vista General"},catProductFactSheets:{en:"Product Fact Sheets",fr:"Fiches Produit",de:"Produktfaktenblätter",es:"Fichas de Producto"},catPricing:{en:"Pricing",fr:"Tarifs",de:"Preise",es:"Precios"},catDemoVideos:{en:"Demonstration Videos",fr:"Vidéos de Démonstration",de:"Demo-Videos",es:"Videos de Demostración"},catPresentations:{en:"Presentations",fr:"Présentations",de:"Präsentationen",es:"Presentaciones"},catSocialGraphics:{en:"Social Media Graphics",fr:"Graphiques Réseaux Sociaux",de:"Social-Media-Grafiken",es:"Gráficos de Redes Sociales"},catEmailTemplates:{en:"Email Templates",fr:"Modèles d'E-mail",de:"E-Mail-Vorlagen",es:"Plantillas de Correo"},catLinkedInMessages:{en:"LinkedIn Messages",fr:"Messages LinkedIn",de:"LinkedIn-Nachrichten",es:"Mensajes de LinkedIn"},catApprovedAds:{en:"Approved Advertisements",fr:"Publicités Approuvées",de:"Genehmigte Werbeanzeigen",es:"Anuncios Aprobados"},catLogosBrand:{en:"Logos and Brand Assets",fr:"Logos et Ressources de Marque",de:"Logos und Marken-Assets",es:"Logos y Activos de Marca"},catFAQs:{en:"FAQs",fr:"FAQ",de:"FAQs",es:"Preguntas Frecuentes"},catCaseStudies:{en:"Case Studies",fr:"Ãtudes de Cas",de:"Fallstudien",es:"Casos de Estudio"},catSalesScripts:{en:"Sales Scripts",fr:"Scripts de Vente",de:"Vertriebsskripte",es:"Guiones de Venta"},catObjectionHandling:{en:"Objection Handling",fr:"Traitement des Objections",de:"Einwandbehandlung",es:"Manejo de Objeciones"},catLegalCompliance:{en:"Legal and Compliance",fr:"Juridique et Conformité",de:"Recht und Compliance",es:"Legal y Cumplimiento"},catCampaignIdeas:{en:"Campaign Ideas",fr:"Idées de Campagne",de:"Kampagnenideen",es:"Ideas de Campaña"},promoCenterDesc:{en:"Manage promo codes, ambassadors, partners, and track all promotional activity.",fr:"Gérer les codes promo, ambassadeurs, partenaires et suivre toute l'activité promotionnelle.",de:"Promo-Codes, Botschafter, Partner verwalten und alle Promo-Aktivitäten verfolgen.",es:"Gestionar códigos promo, embajadores, socios y rastrear toda la actividad promocional."},dashboardTab:{en:"Dashboard",fr:"Tableau de Bord",de:"Dashboard",es:"Panel"},promoCodesTab:{en:"Promo Codes",fr:"Codes Promo",de:"Promo-Codes",es:"Códigos Promo"},ambassadorsTab:{en:"Ambassadors & Partners",fr:"Ambassadeurs & Partenaires",de:"Botschafter & Partner",es:"Embajadores y Socios"},auditLedgerTab:{en:"Audit Ledger",fr:"Journal d'Audit",de:"Audit-Protokoll",es:"Libro de AuditorÃa"},contentCreatorsDesc:{en:"Review applications, manage creators, and control weekly content.",fr:"Examiner les candidatures, gérer les créateurs et contrôler le contenu hebdomadaire.",de:"Bewerbungen prüfen, Ersteller verwalten und wöchentliche Inhalte steuern.",es:"Revisar solicitudes, gestionar creadores y controlar el contenido semanal."},approvedCreators:{en:"Approved Creators",fr:"Créateurs Approuvés",de:"Genehmigte Ersteller",es:"Creadores Aprobados"},publishedPacks:{en:"Published Packs",fr:"Packs Publiés",de:"Veröffentlichte Packs",es:"Packs Publicados"},packsInReview:{en:"Packs in Review",fr:"Packs en Révision",de:"Packs in Prüfung",es:"Packs en Revisión"},applicationsTab:{en:"Applications",fr:"Candidatures",de:"Bewerbungen",es:"Solicitudes"},creatorsTab:{en:"Content Creators",fr:"Créateurs de Contenu",de:"Content-Ersteller",es:"Creadores de Contenido"},weeklyPacksTab:{en:"Weekly Packs",fr:"Packs Hebdomadaires",de:"Wöchentliche Packs",es:"Packs Semanales"},creatorApplications:{en:"Creator Applications",fr:"Candidatures de Créateurs",de:"Ersteller-Bewerbungen",es:"Solicitudes de Creadores"},searchByNameEmailCountry:{en:"Search by name, email, country...",fr:"Rechercher par nom, e-mail, pays...",de:"Nach Name, E-Mail, Land suchen...",es:"Buscar por nombre, correo, paÃs..."},shortlisted:{en:"Shortlisted",fr:"Présélectionnés",de:"Engere Auswahl",es:"Preseleccionados"},waitlisted:{en:"Waitlisted",fr:"Liste d'Attente",de:"Warteliste",es:"Lista de Espera"},existingPartner:{en:"Existing Partner",fr:"Partenaire Existant",de:"Bestehender Partner",es:"Socio Existente"},approvedContentCreators:{en:"Approved Content Creators",fr:"Créateurs de Contenu Approuvés",de:"Genehmigte Content-Ersteller",es:"Creadores de Contenido Aprobados"},noApprovedCreators:{en:"No approved creators yet.",fr:"Aucun créateur approuvé pour l'instant.",de:"Noch keine genehmigten Ersteller.",es:"Aún no hay creadores aprobados."},weeklyCreatorPacks:{en:"Weekly Creator Packs",fr:"Packs Créateurs Hebdomadaires",de:"Wöchentliche Ersteller-Packs",es:"Packs Semanales de Creadores"},generatingWeeklyPack:{en:"Generating weekly pack... This may take a moment.",fr:"Génération du pack hebdomadaire... Cela peut prendre un moment.",de:"Wöchentliches Pack wird generiert... Einen Moment bitte.",es:"Generando pack semanal... Esto puede tomar un momento."},weeklyPackGenerated:{en:"Weekly pack generated! Review and publish it.",fr:"Pack hebdomadaire généré ! Révisez et publiez-le.",de:"Wöchentliches Pack generiert! Prüfen und veröffentlichen Sie es.",es:"¡Pack semanal generado! RevÃselo y publÃquelo."},generationFailed:{en:"Generation failed:",fr:"Ãchec de la génération :",de:"Generierung fehlgeschlagen:",es:"Generación fallida:"},generateNow:{en:"Generate Now",fr:"Générer Maintenant",de:"Jetzt Generieren",es:"Generar Ahora"},noWeeklyPacks:{en:'No weekly packs yet. Click "Generate Now" to create one.',fr:`Aucun pack hebdomadaire pour l'instant. Cliquez sur "Générer Maintenant" pour en créer un.`,de:'Noch keine wöchentlichen Packs. Klicken Sie auf "Jetzt Generieren", um eines zu erstellen.',es:'Aún no hay packs semanales. Haga clic en "Generar Ahora" para crear uno.'},weekOf:{en:"Week of",fr:"Semaine du",de:"Woche vom",es:"Semana del"},aiGenerated:{en:"AI Generated",fr:"Généré par IA",de:"KI-generiert",es:"Generado por IA"},weeklyPackPublished:{en:"Weekly pack published! Creators will be notified.",fr:"Pack hebdomadaire publié ! Les créateurs seront notifiés.",de:"Wöchentliches Pack veröffentlicht! Ersteller werden benachrichtigt.",es:"¡Pack semanal publicado! Los creadores serán notificados."},publishFailed:{en:"Publish failed:",fr:"Ãchec de la publication :",de:"Veröffentlichung fehlgeschlagen:",es:"Publicación fallida:"},reviewColon:{en:"Review:",fr:"Révision :",de:"Prüfung:",es:"Revisión:"},experienceLabel:{en:"Experience",fr:"Expérience",de:"Erfahrung",es:"Experiencia"},languagesLabel:{en:"Languages",fr:"Langues",de:"Sprachen",es:"Idiomas"},existingPartnerQ:{en:"Existing Partner?",fr:"Partenaire Existant ?",de:"Bestehender Partner?",es:"¿Socio Existente?"},submittedLabel:{en:"Submitted",fr:"Soumise",de:"Eingereicht",es:"Enviada"},socialAccounts:{en:"Social Accounts",fr:"Comptes Sociaux",de:"Social-Media-Konten",es:"
669Cuentas Sociales"},contentInterests:{en:"Content Interests",fr:"Intérêts de Contenu",de:"Inhaltsinteressen",es:"Intereses de Contenido"},preferredFormats:{en:"Preferred Formats",fr:"Formats Préférés",de:"Bevorzugte Formate",es:"Formatos Preferidos"},whyBecomeCreator:{en:"Why become a Content Creator?",fr:"Pourquoi devenir Créateur de Contenu ?",de:"Warum Content-Ersteller werden?",es:"¿Por qué ser Creador de Contenido?"},contentTypePref:{en:"Content type preference",fr:"Préférence de type de contenu",de:"Inhaltstyp-Präferenz",es:"Preferencia de tipo de contenido"},subjectsInterest:{en:"Subjects of interest",fr:"Sujets d'intérêt",de:"Interessengebiete",es:"Temas de interés"},frequencyLabel:{en:"Frequency:",fr:"Fréquence :",de:"Häufigkeit:",es:"Frecuencia:"},cameraLabel:{en:"Camera:",fr:"Caméra :",de:"Kamera:",es:"Cámara:"},campaignsLabel:{en:"Campaigns:",fr:"Campagnes :",de:"Kampagnen:",es:"Campañas:"},introductionVideo:{en:"Introduction Video",fr:"Vidéo de Présentation",de:"Vorstellungsvideo",es:"Video de Presentación"},internalScoring:{en:"Internal Creator Scoring (0-10)",fr:"Ãvaluation Interne du Créateur (0-10)",de:"Interne Ersteller-Bewertung (0-10)",es:"Puntuación Interna del Creador (0-10)"},overallLabel:{en:"Overall:",fr:"Global :",de:"Gesamt:",es:"General:"},decisionNotesLabel:{en:"Decision Notes",fr:"Notes de Décision",de:"Entscheidungsnotizen",es:"Notas de Decisión"},decisionNotesPlaceholder:{en:"Notes on the decision...",fr:"Notes sur la décision...",de:"Notizen zur Entscheidung...",es:"Notas sobre la decisión..."},markUnderReview:{en:"Mark Under Review",fr:"Marquer en Révision",de:"Als In Prüfung Markieren",es:"Marcar en Revisión"},waitlist:{en:"Waitlist",fr:"Liste d'Attente",de:"Warteliste",es:"Lista de Espera"},approveAsCreator:{en:"Approve as Creator",fr:"Approuver comme Créateur",de:"Als Ersteller Genehmigen",es:"Aprobar como Creador"},creatorApproved:{en:"Content Creator approved! Creator Resource Center unlocked.",fr:"Créateur de Contenu approuvé ! Centre de Ressources Créateur déverrouillé.",de:"Content-Ersteller genehmigt! Ersteller-Ressourcencenter freigeschaltet.",es:"¡Creador de Contenido aprobado! Centro de Recursos de Creador desbloqueado."},approvalFailed:{en:"Approval failed:",fr:"Ãchec de l'approbation :",de:"Genehmigung fehlgeschlagen:",es:"Aprobación fallida:"},applicationToast:{en:"Application",fr:"Candidature",de:"Bewerbung",es:"Solicitud"}},seo:{homeTitle:{en:"Governancepedia â The Intelligence Engine for Governance & Oversight",fr:"Governancepedia â Le Moteur d'Intelligence pour la Gouvernance & Surveillance",de:"Governancepedia â Die Intelligenz-Engine für Governance & Aufsicht",es:"Governancepedia â El Motor de Inteligencia para Gobernanza y Supervisión"},homeDesc:{en:"AI-powered governance intelligence: assess governance maturity, analyze risks, generate policies, and improve operational oversight with advanced AI analysis.",fr:"Intelligence de gouvernance par IA : évaluez la maturité de gouvernance, analysez les risques, générez des politiques et améliorez la surveillance opérationnelle.",de:"KI-gestützte Governance-Intelligenz: Bewerten Sie Governance-Reife, analysieren Sie Risiken, erstellen Sie Richtlinien und verbessern Sie die operative Aufsicht.",es:"Inteligencia de gobernanza con IA: evalúe la madurez de gobernanza, analice riesgos, genere polÃticas y mejore la supervisión operativa."},healthCheckTitle:{en:"Governance Health Check â AI Governance Maturity Assessment",fr:"Bilan de Gouvernance â Ãvaluation IA de la Maturité de Gouvernance",de:"Governance-Gesundheitscheck â KI-Governance-Reifebewertung",es:"Chequeo de Gobernanza â Evaluación IA de Madurez de Gobernanza"},healthCheckDesc:{en:"Assess your organization's governance maturity with AI. Identify gaps in board oversight, internal controls, risk governance, and policy management.",fr:"Ãvaluez la maturité de gouvernance de votre organisation avec l'IA. Identifiez les lacunes en surveillance du conseil, contrôles internes et gestion des risques.",de:"Bewerten Sie die Governance-Reife Ihrer Organisation mit KI. Identifizieren Sie Lücken bei Aufsicht, internen Kontrollen und Risikomanagement.",es:"Evalúe la madurez de gobernanza de su organización con IA. Identifique brechas en supervisión, controles internos y gestión de riesgos."},policyGenTitle:{en:"AI Policy Generator â Create Governance Policies & Procedures",fr:"Générateur de Politiques IA â Créer des Politiques de Gouvernance",de:"KI-Richtlinien-Generator â Governance-Richtlinien erstellen",es:"Generador de PolÃticas IA â Crear PolÃticas de Gobernanza"},policyGenDesc:{en:"Generate governance policies, codes of conduct, risk frameworks, and compliance procedures with AI. Customize for your organization and industry.",fr:"Générez des politiques de gouvernance, codes de conduite, cadres de risques et procédures de conformité avec l'IA.",de:"Erstellen Sie Governance-Richtlinien, Verhaltenskodizes, Risiko-Frameworks und Compliance-Verfahren mit KI.",es:"Genere polÃticas de gobernanza, códigos de conducta, marcos de riesgo y procedimientos de cumplimiento con IA."},riskAnalyzerTitle:{en:"Governance Risk Analyzer â AI Risk & Oversight Assessment",fr:"Analyseur de Risques de Gouvernance â Ãvaluation IA des Risques",de:"Governance-Risiko-Analysator â KI-Risiko- & Aufsichtsbewertung",es:"Analizador de Riesgos de Gobernanza â Evaluación IA de Riesgos"},riskAnalyzerDesc:{en:"Identify governance risks, oversight gaps, and operational weaknesses with AI-powered analysis. Get actionable recommendations to strengthen controls.",fr:"Identifiez les risques de gouvernance, les lacunes de surveillance et les faiblesses opérationnelles avec l'analyse IA.",de:"Identifizieren Sie Governance-Risiken, Aufsichtslücken und operative Schwächen mit KI-gestützter Analyse.",es:"Identifique riesgos de gobernanza, brechas de supervisión y debilida
669des operativas con análisis IA."},decisionEngineTitle:{en:"Governance Decision Engine â AI Advisory for Board Decisions",fr:"Moteur de Décision de Gouvernance â Conseil IA pour Décisions",de:"Governance-Entscheidungs-Engine â KI-Beratung für Vorstandsentscheidungen",es:"Motor de Decisiones de Gobernanza â AsesorÃa IA para Decisiones"},decisionEngineDesc:{en:"Get AI-powered advisory for governance decisions. Analyze scenarios, evaluate trade-offs, and receive recommendations for board-level decisions.",fr:"Obtenez des conseils IA pour les décisions de gouvernance. Analysez les scénarios et recevez des recommandations.",de:"Erhalten Sie KI-gestützte Beratung für Governance-Entscheidungen. Analysieren Sie Szenarien und erhalten Sie Empfehlungen.",es:"Obtenga asesorÃa IA para decisiones de gobernanza. Analice escenarios y reciba recomendaciones."},microToolsTitle:{en:"Governance Micro Tools â Focused AI Tools for Specific Tasks",fr:"Micro-Outils de Gouvernance â Outils IA Ciblés pour Tâches Spécifiques",de:"Governance-Mikro-Tools â Fokussierte KI-Tools für Spezifische Aufgaben",es:"Micro-Herramientas de Gobernanza â Herramientas IA EspecÃficas"},microToolsDesc:{en:"Focused AI tools for specific governance tasks: control testing, policy review, risk scoring, compliance checks, and more.",fr:"Outils IA ciblés pour des tâches de gouvernance spécifiques : tests de contrôle, revue de politiques, scoring de risques.",de:"Fokussierte KI-Tools für spezifische Governance-Aufgaben: Kontrolletests, Richtlinienprüfung, Risiko-Scoring.",es:"Herramientas IA especÃficas para tareas de gobernanza: pruebas de control, revisión de polÃticas, scoring de riesgos."},intelligenceTitle:{en:"Governance Intelligence Engine â AI-Powered Knowledge & Insights",fr:"Moteur d'Intelligence de Gouvernance â Connaissances et Insights IA",de:"Governance-Intelligenz-Engine â KI-gestütztes Wissen & Erkenntnisse",es:"Motor de Inteligencia de Gobernanza â Conocimiento e Insights con IA"},intelligenceDesc:{en:"Access AI-powered governance intelligence: industry benchmarks, regulatory updates, best practices, and tailored insights for your organization.",fr:"Accédez à l'intelligence de gouvernance par IA : benchmarks sectoriels, mises à jour réglementaires et bonnes pratiques.",de:"Zugang zu KI-gestützter Governance-Intelligenz: Branchen-Benchmarks, regulatorische Updates und Best Practices.",es:"Acceda a inteligencia de gobernanza con IA: benchmarks sectoriales, actualizaciones regulatorias y mejores prácticas."},pricingTitle:{en:"Pricing â Governancepedia Plans & Credits",fr:"Tarifs â Plans et Crédits Governancepedia",de:"Preise â Governancepedia Pläne & Credits",es:"Precios â Planes y Créditos de Governancepedia"},pricingDesc:{en:"Choose the right Governancepedia plan for your organization. Free trial, premium credits, and enterprise options available.",fr:"Choisissez le plan Governancepedia adapté à votre organisation. Essai gratuit, crédits premium et options entreprise.",de:"Wählen Sie den richtigen Governancepedia-Plan für Ihre Organisation. Kostenlose Testversion, Premium-Credits und Enterprise-Optionen.",es:"Elija el plan correcto de Governancepedia para su organización. Prueba gratuita, créditos premium y opciones enterprise."},partnersTitle:{en:"Partner Program â Earn with Governancepedia",fr:"Programme Partenaire â Gagnez avec Governancepedia",de:"Partner-Programm â Verdienen mit Governancepedia",es:"Programa de Socios â Gane con Governancepedia"},partnersDesc:{en:"Join the Governancepedia Partner Program. Earn commissions on referrals, access marketing resources, and grow your governance consulting business.",fr:"Rejoignez le Programme Partenaire Governancepedia. Gagnez des commissions sur les référencements et accédez aux ressources marketing.",de:"Treten Sie dem Governancepedia Partner-Programm bei. Verdienen Sie Provisionen und nutzen Sie Marketing-Ressourcen.",es:"Ãnase al Programa de Socios de Governancepedia. Gane comisiones por referencias y acceda a recursos de marketing."}
669,creatorsTitle:{en:"Content Creator Program â Create Governance Content with AI",fr:"Programme Créateur de Contenu â Créez du Contenu de Gouvernance avec l'IA",de:"Content-Ersteller-Programm â Erstellen Sie Governance-Inhalte mit KI",es:"Programa de Creadores de Contenido â Cree Contenido de Gobernanza con IA"},creatorsDesc:{en:"Join the Governancepedia Content Creator Program. Get AI-generated weekly content packs, scripts, and resources to create governance content.",fr:"Rejoignez le Programme Créateur de Contenu Governancepedia. Recevez des packs de contenu hebdomadaires générés par IA.",de:"Treten Sie dem Governancepedia Content-Ersteller-Programm bei. Erhalten Sie KI-generierte wöchentliche Content-Packs.",es:"Ãnase al Programa de Creadores de Contenido de Governancepedia. Reciba packs de contenido semanal generados por IA."},encyclopediaTitle:{en:"Governance Encyclopedia â AI-Powered Governance Knowledge Hub",fr:"Encyclopédie de Gouvernance â Hub de Connaissances par IA",de:"Governance-Enzyklopädie â KI-gestütztes Wissens-Hub",es:"Enciclopedia de Gobernanza â Hub de Conocimiento con IA"},encyclopediaDesc:{en:"Explore governance concepts, frameworks, and best practices. What is board governance, how does risk management work, and why it matters â explained by AI.",fr:"Explorez les concepts, cadres et bonnes pratiques de gouvernance. Qu'est-ce que la gouvernance du conseil, comment fonctionne la gestion des risques.",de:"Entdecken Sie Governance-Konzepte, Frameworks und Best Practices. Was ist Board-Governance, wie funktioniert Risikomanagement.",es:"Explore conceptos, marcos y mejores prácticas de gobernanza. Qué es la gobernanza del consejo, cómo funciona la gestión de riesgos."},glossaryTitle:{en:"Governance Glossary â Dictionary of Governance, Risk & Compliance Terms",fr:"Glossaire de Gouvernance â Dictionnaire des Termes de Gouvernance, Risque et Conformité",de:"Governance-Glossar â Wörterbuch für Governance-, Risiko- und Compliance-Begriffe",es:"Glosario de Gobernanza â Diccionario de Términos de Gobernanza, Riesgo y Cumplimiento"},glossaryDesc:{en:"A comprehensive dictionary of governance, risk, compliance, and oversight terminology. From board of directors to internal controls, risk appetite to three lines of defense â all defined.",fr:"Un dictionnaire complet des termes de gouvernance, risque, conformité et surveillance. Du conseil d'administration aux contrôles internes.",de:"Ein umfassendes Wörterbuch der Governance-, Risiko-, Compliance- und Aufsichtsterminologie. Vom Vorstand bis zu internen Kontrollen.",es:"Un diccionario completo de terminologÃa de gobernanza, riesgo, cumplimiento y supervisión. Del consejo de administración a los controles internos."},policyTitle:{en:"Governance Policies & Procedures â Governancepedia",fr:"Politiques et Procédures de Gouvernance â Governancepedia",de:"Governance-Richtlinien & Verfahren â Governancepedia",es:"PolÃticas y Procedimientos de Gobernanza â Governancepedia"},policyDesc:{en:"Read Governancepedia's governance policies, terms, privacy, and compliance documentation.",fr:"Lisez les politiques de gouvernance, conditions, confidentialité et documentation de conformité de Governancepedia.",de:"Lesen Sie Governancepedias Governance-Richtlinien, Bedingungen, Datenschutz- und Compliance-Dokumentation.",es:"Lea las polÃticas de gobernanza, términos, privacidad y documentación de cumplimiento de Governancepedia."},adminTitle:{en:"Admin Dashboard â Governancepedia",fr:"Tableau de Bord Admin â Governancepedia",de:"Admin-Dashboard â Governancepedia",es:"Panel de Administración â Governancepedia"},applyTitle:{en:"Application â Governancepedia",fr:"Candidature â Governancepedia",de:"Bewerbung â Governancepedia",es:"Solicitud â Governancepedia"},defaultTitle:{en:"Governancepedia â Governance Intelligence & Oversight",fr:"Governancepedia â Intelligence de Gouvernance & Surveillance",de:"Governancepedia â Governance-Intelligenz & Aufsicht",es:"Governancepedia â Inteligencia de Gobernanza y Supervisión"},defaultDesc:{en:"Governancepedia is the AI-powered intelligence engine for governance and oversight.",fr:"Governancepedia est le moteur d'intelligence par IA pour la gouvernance et la surveillance.",de:"Governancepedia ist die KI-gestützte Intelligenz-Engine für Governance und Aufsicht.",es:"Governancepedia es el motor de inteligencia con IA para gobernanza y supervisión."}},encyclopedia:{badge:{en:"Governance Encyclopedia",fr:"Encyclopédie de Gouvernance",de:"Governance-EnzyklopÃ
669¤die",es:"Enciclopedia de Gobernanza"},heroTitle:{en:"Governance Knowledge, Explained",fr:"La Connaissance en Gouvernance, Expliquée",de:"Governance-Wissen, Erklärt",es:"Conocimiento de Gobernanza, Explicado"},heroSubtitle:{en:"Explore governance concepts, frameworks, and best practices â from board oversight to risk management, compliance, and beyond.",fr:"Explorez les concepts, cadres et bonnes pratiques de gouvernance â de la surveillance du conseil à la gestion des risques.",de:"Entdecken Sie Governance-Konzepte, Frameworks und Best Practices â von der Aufsicht bis zum Risikomanagement.",es:"Explore conceptos, marcos y mejores prácticas de gobernanza â de la supervisión del consejo a la gestión de riesgos."},searchPlaceholder:{en:"Search articles...",fr:"Rechercher des articles...",de:"Artikel suchen...",es:"Buscar artÃculos..."},filterBy:{en:"Filter",fr:"Filtrer",de:"Filtern",es:"Filtrar"},allCategories:{en:"All Categories",fr:"Toutes les Catégories",de:"Alle Kategorien",es:"Todas las CategorÃas"},allTypes:{en:"All Types",fr:"Tous les Types",de:"Alle Typen",es:"Todos los Tipos"},allStatuses:{en:"All Statuses",fr:"Tous les Statuts",de:"Alle Status",es:"Todos los Estados"},articles:{en:"articles",fr:"articles",de:"Artikel",es:"artÃculos"},featured:{en:"Featured",fr:"à la Une",de:"Empfohlen",es:"Destacados"},allArticles:{en:"All Articles",fr:"Tous les Articles",de:"Alle Artikel",es:"Todos los ArtÃculos"},results:{en:"Search Results",fr:"Résultats de Recherche",de:"Suchergebnisse",es:"Resultados de Búsqueda"},noArticles:{en:"No articles found",fr:"Aucun article trouvé",de:"Keine Artikel gefunden",es:"No se encontraron artÃculos"},noArticlesDesc:{en:"Try adjusting your filters or search query.",fr:"Essayez d'ajuster vos filtres ou votre recherche.",de:"Passen Sie Ihre Filter oder Suchanfrage an.",es:"Intente ajustar sus filtros o búsqueda."},notFound:{en:"Article Not Found",fr:"Article Introuvable",de:"Artikel Nicht Gefunden",es:"ArtÃculo No Encontrado"},notFoundDesc:{en:"The article you are looking for does not exist or has been removed.",fr:"L'article que vous recherchez n'existe pas ou a été supprimé.",de:"Der gesuchte Artikel existiert nicht oder wurde entfernt.",es:"El artÃculo que busca no existe o ha sido eliminado."},backToHub:{en:"Back to Encyclopedia",fr:"Retour à l'Encyclopédie",de:"Zurück zur Enzyklopädie",es:"Volver a la Enciclopedia"},minRead:{en:"min read",fr:"min de lecture",de:"Min. Lesezeit",es:"min de lectura"},reviewedBy:{en:"Reviewed by",fr:"Révisé par",de:"Geprüft von",es:"Revisado por"},references:{en:"References",fr:"Références",de:"Referenzen",es:"Referencias"},relatedArticles:{en:"Related Articles",fr:"Articles Connexes",de:"Verwandte Artikel",es:"ArtÃculos Relacionados"},categories:{board_governance:{en:"Board Governance",fr:"Gouvernance du Conseil",de:"Vorstands-Governance",es:"Gobernanza del Consejo"},internal_controls:{en:"Internal Controls",fr:"Contrôles Internes",de:"Interne Kontrollen",es:"Controles Internos"},risk_management:{en:"Risk Management",fr:"Gestion des Risques",de:"Risikomanagement",es:"Gestión de Riesgos"},compliance:{en:"Compliance",fr:"Conformité",de:"Compliance",es:"Cumplimiento"},audit:{en:"Audit",fr:"Audit",de:"Audit",es:"AuditorÃa"},ethics:{en:"Ethics",fr:"Ãthique",de:"Ethik",es:"Ãtica"},esg:{en:"ESG",fr:"ESG",de:"ESG",es:"ESG"},cybersecurity_governance:{en:"Cybersecurity Governance",fr:"Gouvernance Cybersécurité",de:"Cybersecurity-Governance",es:"Gobernanza de Ciberseguridad"},data_privacy:{en:"Data Privacy",fr:"Confidentialité des Données",de:"Datenschutz",es:"Privacidad de Datos"},operational_resilience:{en:"Operational Resilience",fr:"Résilience Opérationnelle",de:"Operationale Resilienz",es:"Resiliencia Operacional"},third_party_risk:{en:"Third-Party Risk",fr:"Risque Tiers",de:"Drittrisiko",es:"Riesgo de Terceros"},regulatory:{en:"Regulatory",fr:"Réglementaire",de:"Regulatorisch",es:"Regulatorio"},other:{en:"Other",fr:"Autre",de:"Sonstiges",es:"Otro"}},contentTypes:{what_is:{en:"What Is",fr:"Qu'est-ce que",de:"Was ist",es:"Qué es"},how_does:{en:"How Does It Work",fr:"Comment ça Marche",de:"Wie es Funktioniert",es:"Cómo Funciona"},why_important:{en:"Why It Matters",fr:"Pourquoi c'est Important",de:"Warum es Wichtig ist",es:"Por qué Importa"},difference_between:{en:"Difference Between",fr:"Différence Entre",de:"Unterschied Zwischen",es:"Diferencia Entre"},best_practices:{en:"Best Practices",fr:"Meilleures Pratiques",de:"Best Practices",es:"Mejores Prácticas"},framework:{en:"Framework",fr:"Cadre",de:"Framework",es:"Marco"},guide:{en:"Guide",fr:"Guide",de:"Leitfaden",es:"GuÃa"},definition:{en:"Definition",fr:"Définition",de:"Definition",es:"Definición"}},difficulty:{beginner:{en:"Beginner",fr:"Débutant",de:"Anfänger",es:"Principiante"},intermediate:{en:"Intermediate",fr:"Intermédiaire",de:"Fortgeschritten",es:"Intermedio"},advanced:{en:"Advanced",fr:"Avancé",de:"Fortgeschritten",es:"Avanzado"}},status:{draft:{en:"Draft",fr:"Brouillon",de:"Entwurf",es:"Borrador"}
669,review:{en:"In Review",fr:"En Révision",de:"In Prüfung",es:"En Revisión"},published:{en:"Published",fr:"Publié",de:"Veröffentlicht",es:"Publicado"},archived:{en:"Archived",fr:"Archivé",de:"Archiviert",es:"Archivado"}},adminTitle:{en:"Encyclopedia Management",fr:"Gestion de l'Encyclopédie",de:"Enzyklopädie-Verwaltung",es:"Gestión de Enciclopedia"},adminSubtitle:{en:"Create and manage governance encyclopedia articles",fr:"Créer et gérer les articles de l'encyclopédie",de:"Erstellen und verwalten Sie Governance-Enzyklopädie-Artikel",es:"Crear y gestionar artÃculos de la enciclopedia"},newArticle:{en:"New Article",fr:"Nouvel Article",de:"Neuer Artikel",es:"Nuevo ArtÃculo"},editArticle:{en:"Edit Article",fr:"Modifier l'Article",de:"Artikel Bearbeiten",es:"Editar ArtÃculo"},confirmDelete:{en:"Are you sure you want to delete this article?",fr:"Ãtes-vous sûr de vouloir supprimer cet article ?",de:"Möchten Sie diesen Artikel wirklich löschen?",es:"¿Está seguro de que desea eliminar este artÃculo?"},tableTitle:{en:"Title",fr:"Titre",de:"Titel",es:"TÃtulo"},tableCategory:{en:"Category",fr:"Catégorie",de:"Kategorie",es:"CategorÃa"},tableStatus:{en:"Status",fr:"Statut",de:"Status",es:"Estado"},tableTranslations:{en:"Translations",fr:"Traductions",de:"Ãbersetzungen",es:"Traducciones"},tableActions:{en:"Actions",fr:"Actions",de:"Aktionen",es:"Acciones"},tabContent:{en:"Content",fr:"Contenu",de:"Inhalt",es:"Contenido"},tabSeo:{en:"SEO",fr:"SEO",de:"SEO",es:"SEO"},tabTranslations:{en:"Translations",fr:"Traductions",de:"Ãbersetzungen",es:"Traducciones"},fieldTitle:{en:"Title",fr:"Titre",de:"Titel",es:"TÃtulo"},fieldSlug:{en:"URL Slug",fr:"Slug URL",de:"URL-Slug",es:"Slug URL"},fieldSubtitle:{en:"Subtitle",fr:"Sous-titre",de:"Untertitel",es:"SubtÃtulo"},fieldSummary:{en:"Summary",fr:"Résumé",de:"Zusammenfassung",es:"Resumen"},fieldContent:{en:"Content (Markdown)",fr:"Contenu (Markdown)",de:"Inhalt (Markdown)",es:"Contenido (Markdown)"},fieldCategory:{en:"Category",fr:"Catégorie",de:"Kategorie",es:"CategorÃa"},fieldContentType:{en:"Content Type",fr:"Type de Contenu",de:"Inhaltstyp",es:"Tipo de Contenido"},fieldStatus:{en:"Status",fr:"Statut",de:"Status",es:"Estado"},fieldDifficulty:{en:"Difficulty",fr:"Difficulté",de:"Schwierigkeit",es:"Dificultad"},fieldReadingTime:{en:"Reading Time (min)",fr:"Temps de Lecture (min)",de:"Lesezeit (Min)",es:"Tiempo de Lectura (min)"},fieldTags:{en:"Tags (comma-separated)",fr:"Ãtiquettes (séparées par virgules)",de:"Tags (kommagetrennt)",es:"Etiquetas (separadas por comas)"},fieldAuthor:{en:"Author",fr:"Auteur",de:"Autor",es:"Autor"},fieldReviewedBy:{en:"Reviewed By",fr:"Révisé Par",de:"Geprüft Von",es:"Revisado Por"},fieldImageUrl:{en:"Featured Image URL",fr:"URL de l'Image",de:"Bild-URL",es:"URL de Imagen"},fieldSeoTitle:{en:"SEO Title",fr:"Titre SEO",de:"SEO-Titel",es:"TÃtulo SEO"},fieldSeoDescription:{en:"SEO Description",fr:"Description SEO",de:"SEO-Beschreibung",es:"Descripción SEO"},fieldRelatedArticles:{en:"Related Article Slugs (comma-separated)",fr:"Slugs d'Articles Connexes (séparés par virgules)",de:"Verwandte Artikel-Slugs (kommagetrennt)",es:"Slugs de ArtÃculos Relacionados (separados por comas)"},fieldReferences:{en:"References (one per line)",fr:"Références (une par ligne)",de:"Referenzen (eine pro Zeile)",es:"Referencias (una por lÃnea)"},markdownHint:{en:"Supports Markdown formatting",fr:"Prend en charge le formatage Markdown",de:"Unterstützt Markdown-Formatierung",es:"Soporta formato Markdown"},cancel:{en:"Cancel",fr:"Annuler",de:"Abbrechen",es:"Cancelar"},save:{en:"Save",fr:"Enregistrer",de:"Speichern",es:"Guardar"},saving:{en:"Saving...",fr:"Enregistrement...",de:"Speichern...",es:"Guardando..."}},glossary:{badge:{en:"Governance Glossary",fr:"Glossaire de Gouvernance",de:"Governance-Glossar",es:"Glosario de Gobernanza"},heroTitle:{en:"Governance Terminology, Defined",fr:"Terminologie de Gouvernance, Définie",de:"Governance-Terminologie, Definiert",es:"TerminologÃa de Gobernanza, Definida"},heroSubtitle:{en:"A comprehensive dictionary of governance, risk, compliance, and oversight terms â from board responsibilities to internal
669controls and beyond.",fr:"Un dictionnaire complet des termes de gouvernance, risque, conformité et surveillance â des responsabilités du conseil aux contrôles internes.",de:"Ein umfassendes Wörterbuch der Governance-, Risiko-, Compliance- und Aufsichtsbegriffe â von Vorstandspflichten bis zu internen Kontrollen.",es:"Un diccionario completo de términos de gobernanza, riesgo, cumplimiento y supervisión â de responsabilidades del consejo a controles internos."},searchPlaceholder:{en:"Search terms...",fr:"Rechercher des termes...",de:"Begriffe suchen...",es:"Buscar términos..."},allCategories:{en:"All Categories",fr:"Toutes les Catégories",de:"Alle Kategorien",es:"Todas las CategorÃas"},allTerms:{en:"All Terms",fr:"Tous les Termes",de:"Alle Begriffe",es:"Todos los Términos"},terms:{en:"terms",fr:"termes",de:"Begriffe",es:"términos"},noTerms:{en:"No terms found",fr:"Aucun terme trouvé",de:"Keine Begriffe gefunden",es:"No se encontraron términos"},noTermsDesc:{en:"Try adjusting your search or filters.",fr:"Essayez d'ajuster votre recherche ou vos filtres.",de:"Passen Sie Ihre Suche oder Filter an.",es:"Intente ajustar su búsqueda o filtros."},notFound:{en:"Term Not Found",fr:"Terme Introuvable",de:"Begriff Nicht Gefunden",es:"Término No Encontrado"},notFoundDesc:{en:"The term you are looking for does not exist or has been removed.",fr:"Le terme que vous recherchez n'existe pas ou a été supprimé.",de:"Der gesuchte Begriff existiert nicht oder wurde entfernt.",es:"El término que busca no existe o ha sido eliminado."},backToGlossary:{en:"Back to Glossary",fr:"Retour au Glossaire",de:"Zurück zum Glossar",es:"Volver al Glosario"},definition:{en:"Definition",fr:"Définition",de:"Definition",es:"Definición"},detailedExplanation:{en:"Detailed Explanation",fr:"Explication Détaillée",de:"Detaillierte Erklärung",es:"Explicación Detallada"},synonyms:{en:"Synonyms",fr:"Synonymes",de:"Synonyme",es:"Sinónimos"},relatedTerms:{en:"Related Terms",fr:"Termes Connexes",de:"Verwandte Begriffe",es:"Términos Relacionados"},relatedArticles:{en:"Related Articles",fr:"Articles Connexes",de:"Verwandte Artikel",es:"ArtÃculos Relacionados"},difficulty:{beginner:{en:"Beginner",fr:"Débutant",de:"Anfänger",es:"Principiante"},intermediate:{en:"Intermediate",fr:"Intermédiaire",de:"Fortgeschritten",es:"Intermedio"},advanced:{en:"Advanced",fr:"Avancé",de:"Fortgeschritten",es:"Avanzado"}},status:{draft:{en:"Draft",fr:"Brouillon",de:"Entwurf",es:"Borrador"},published:{en:"Published",fr:"Publié",de:"Veröffentlicht",es:"Publicado"},archived:{en:"Archived",fr:"Archivé",de:"Archiviert",es:"Archivado"}},adminTitle:{en:"Glossary Management",fr:"Gestion du Glossaire",de:"Glossar-Verwaltung",es:"Gestión del Glosario"},adminSubtitle:{en:"Create and manage governance terminology definitions",fr:"Créer et gérer les définitions de terminologie",de:"Erstellen und verwalten Sie Governance-Terminologie",es:"Crear y gestionar definiciones de terminologÃa"},newTerm:{en:"New Term",fr:"Nouveau Terme",de:"Neuer Begriff",es:"Nuevo Término"},editTerm:{en:"Edit Term",fr:"Modifier le Terme",de:"Begriff Bearbeiten",es:"Editar Término"},confirmDelete:{en:"Are you sure you want to delete this term?",fr:"Ãtes-vous sûr de vouloir supprimer ce terme ?",de:"Möchten Sie diesen Begriff wirklich löschen?",es:"¿Está seguro de que desea eliminar este término?"},fieldTerm:{en:"Term",fr:"Terme",de:"Begriff",es:"Término"},fieldSlug:{en:"URL Slug",fr:"Slug URL",de:"URL-Slug",es:"Slug URL"},fieldDefinition:{en:"Definition",fr:"Définition",de:"Definition",es:"Definición"},fieldDetailedExplanation:{en:"Detailed Explanation (Markdown)",fr:"Explication Détaillée (Markdown)",de:"Detaillierte Erklärung (Markdown)",es:"Explicación Detallada (Markdown)"},fieldCategory:{en:"Category",fr:"Catégorie",de:"Kategorie",es:"CategorÃa"},fieldStatus:{en:"Status",fr:"Statut",de:"Status",es:"Estado"},fieldDifficulty:{en:"Difficulty",fr:"Difficulté",de:"Schwierigkeit",es:"Dificultad"},fieldSynonyms:{en:"Synonyms (comma-separated)",fr:"Synonymes (séparés par virgules)",de:"Synonyme (kommagetrennt)",es:"Sinónimos (separados por comas)"},fieldRelatedTerms:{en:"Related Term Slugs (comma-separated)",fr:"Slugs de Termes Connexes (séparés par virgules)",de:"Verwandte Begriff-Slugs (kommagetrennt)",es:"Slugs de Términos Relacionados (separados por comas)"},fieldRelatedArticles:{en:"Related Article Slugs (comma-separated)",fr:"Slugs d'Articles Connexes (séparés par virgules)",de:"Verwandte Artikel-Slugs (kommagetrennt)",es:"Slugs de ArtÃculos Relacionados (separados por comas)"},fieldSeoTitle:{en:"SEO Title",fr:"Titre SEO",de:"SEO-Titel",es:"TÃtulo SEO"},fieldSeoDescription:{en:"SEO Description",fr:"Description SEO",de:"SEO-Beschreibung",es:"Descripción SEO"},tabContent:{en:"Content",fr:"Contenu",de:"Inhalt",es:"Contenido"},tabSeo:{en:"SEO",fr:"SEO",de:"SEO",es:"SEO"},tabTranslations:{en:"Translations",fr:"Traductions",de:"Ãbersetzungen",es:"Traducciones"},tableTerm:{en:"Term",fr:"Terme",de:"Begriff",es:"Término"},tableCategory:{en:"Category",fr:"Catégorie",de:"Kategorie",es:"CategorÃa"},tableStatus:{en:"Status",fr:"Statut",de:"Status",es:"Estado"},tableTranslations:{en:"Translations",fr:"Traductions",de:"Ãbersetzungen",es:"Traducciones"},tableActions:{en:"Actions",fr:"Actions",de:"Aktionen",es:"Acciones"},cancel:{en:"Cancel",fr:"Annuler",de:"Abbrechen",es:"Cancelar"},save:{en:"Save",fr:"Enregistrer",de:"Speichern",es:"Guardar"},saving:{en:"Saving...",fr:"Enregistrement...",de:"Speichern...",es:"Guardando..."}},translationCenter:{adminTitle:{en:"Translation Management Center",fr:"Centre de Gestion des Traductions",de:"Ãbersetzungs-Verwaltungszentrum",es:"Centro de Gestión de Traducciones"},adminSubtitle:{en:"Track and manage translation progress across all content types",fr:"Suivre et gérer la progression des traductions pour tous les types de contenu",de:"Verfolgen und verwalten Sie den Ãbersetzungsfortschritt für alle Inhaltstypen",es:"Seguir y gestionar el progreso de traducción para todos los tipos de contenido"},overview:{en:"Overview",fr:"Aperçu",de:"Ãbersicht",es:"Resumen"},encyclopedia:{en:"Encyclopedia",fr:"Encyclopédie",de:"EnzyklopÃ
669¤die",es:"Enciclopedia"},glossary:{en:"Glossary",fr:"Glossaire",de:"Glossar",es:"Glosario"},totalItems:{en:"Total Items",fr:"Total d'Ãléments",de:"Gesamte Elemente",es:"Elementos Totales"},translatedDE:{en:"German (DE)",fr:"Allemand (DE)",de:"Deutsch (DE)",es:"Alemán (DE)"},translatedFR:{en:"French (FR)",fr:"Français (FR)",de:"Französisch (FR)",es:"Francés (FR)"},translatedES:{en:"Spanish (ES)",fr:"Espagnol (ES)",de:"Spanisch (ES)",es:"Español (ES)"},completionRate:{en:"Completion Rate",fr:"Taux de Complétion",de:"Abschlussrate",es:"Tasa de Completitud"},needsTranslation:{en:"Needs Translation",fr:"Traduction Requise",de:"Ãbersetzung Erforderlich",es:"Traducción Requerida"},inProgress:{en:"In Progress",fr:"En Cours",de:"In Bearbeitung",es:"En Progreso"},completed:{en:"Completed",fr:"Terminé",de:"Abgeschlossen",es:"Completado"},status:{draft:{en:"Draft",fr:"Brouillon",de:"Entwurf",es:"Borrador"},review:{en:"In Review",fr:"En Révision",de:"In Prüfung",es:"En Revisión"},approved:{en:"Approved",fr:"Approuvé",de:"Genehmigt",es:"Aprobado"}},markAsDraft:{en:"Mark as Draft",fr:"Marquer comme Brouillon",de:"Als Entwurf Markieren",es:"Marcar como Borrador"},markAsReview:{en:"Send to Review",fr:"Envoyer en Révision",de:"Zur Prüfung Senden",es:"Enviar a Revisión"},markAsApproved:{en:"Approve",fr:"Approuver",de:"Genehmigen",es:"Aprobar"},filterByContent:{en:"Filter by Content Type",fr:"Filtrer par Type de Contenu",de:"Nach Inhaltstyp Filtern",es:"Filtrar por Tipo de Contenido"},filterByLanguage:{en:"Filter by Language",fr:"Filtrer par Langue",de:"Nach Sprache Filtern",es:"Filtrar por Idioma"},filterByStatus:{en:"Filter by Status",fr:"Filtrer par Statut",de:"Nach Status Filtern",es:"Filtrar por Estado"},allContentTypes:{en:"All Content Types",fr:"Tous les Types",de:"Alle Typen",es:"Todos los Tipos"},allLanguages:{en:"All Languages",fr:"Toutes les Langues",de:"Alle Sprachen",es:"Todos los Idiomas"},allStatuses:{en:"All Statuses",fr:"Tous les Statuts",de:"Alle Status",es:"Todos los Estados"},translationStatus:{en:"Translation Status",fr:"Statut de Traduction",de:"Ãbersetzungsstatus",es:"Estado de Traducción"},missing:{en:"Missing",fr:"Manquant",de:"Fehlend",es:"Faltante"},partial:{en:"Partial",fr:"Partiel",de:"Teilweise",es:"Parcial"},complete:{en:"Complete",fr:"Complet",de:"Vollständig",es:"Completo"},autoGenerate:{en:"Auto-Generate",fr:"Générer Automatiquement",de:"Automatisch Generieren",es:"Generar Automáticamente"},autoGenerateDesc:{en:"Use AI to generate missing translations for this item",fr:"Utiliser l'IA pour générer les traductions manquantes",de:"KI verwenden um fehlende Ãbersetzungen zu generieren",es:"Usar IA para generar traducciones faltantes"},generating:{en:"Generating...",fr:"Génération...",de:"Generieren...",es:"Generando..."}},common:{language:{en:"Language",fr:"Langue",de:"Sprache",es:"Idioma"},loading:{en:"Loading...",fr:"Chargement...",de:"Laden...",es:"Cargando..."}}},aV=O.createContext(null),cC="gp_language";function Zme(){var e;try{const n=new URLSearchParams(window.location.search).get("lang");if(n&&["en","de","fr","es","sk"].includes(n))return n}catch{}try{const t=localStorage.getItem(cC);if(t)return t}catch{}try{const t=(e=navigator.language)==null?void 0:e.slice(0,2).toLowerCase();if(["de","fr","es","sk"].includes(t))return t}catch{}return"en"}function Jme({children:e}){const[t,n]=O.useState(Zme),r=O.useCallback(l=>{n(l);try{localStorage.setItem(cC,l)}catch{}try{const c=new URL(window.location.href);c.searchParams.set("lang",l),window.history.replaceState({},"",c.toString())}catch{}document.documentElement.lang=l},[]);O.useEffect(()=>{try{localStorage.setItem(cC,t)}catch{}document.documentElement.lang=t;try{const l=new URL(window.location.href);l.searchParams.get("lang")||(l.searchParams.set("lang",t),window.history.replaceState({},"",l.toString()))}catch{}},[t]),O.useEffect(()=>{let l=!0;return A1(()=>Promise.resolve().then(()=>bde),void 0).then(async({base44:c})=>{try{if(!await c.auth.isAuthenticated())return;const d=await c.auth.me();l&&d&&d.preferred_language!==t&&await c.auth.updateMe({preferred_language:t})}catch{}}),()=>{l=!1}},[t]);const i=O.useCallback(l=>{const c=l.split(".");let u=Qme;for(const d of c)if(u&&typeof u=="object"&&d in u)u=u[d];else return l;return u&&typeof u=="object"&&t in u?u[t]:u&&typeof u=="object"&&"en"in u?u.en:l},[t]),s=Ob[t]||Ob.en,o=O.useCallback(()=>` 670 671IMPORTANT: Respond entirely in ${Ob[t]||Ob.en}. All content, analysis, headings, and text must be in that language.`,[t]);return a.jsx(aV.Provider,{value:{lang:t,setLang:r,t:i,aiLanguage:s,aiLanguageInstruction:o,languages:iV},children:e})}function Zt(){const e=O.useContext(aV);return e||{lang:"en",setLang:()=>{},t:t=>t,aiLanguage:"English",aiLanguageInstruction:()=>"",languages:iV}}const oy="https://media.base44.com/images/public/6a03f8b88f6f721dccc673fe/63523e1d9_generated_image.png",ege=`You are Sage, the AI guide and assistant for Governancepedia â an AI-powered intelligence and advisory platform for governance, risk oversight, and operational compliance. 672 673Your role is to help users understand and navigate the platform, answer their questions about governance and compliance, and guide them to the right tools and resources. 674 675## About Governancepedia 676Governancepedia is a comprehensive platform that helps organizations, boards, risk professionals, compliance officers, and decision-makers improve their governance practices, manage risks, ensure compliance, and make better-informed decisions through AI-powered tools and knowledge resources. 677 678## Platform Features 679 680### AI Tools (found under "AI Tools" in the navigation menu): 6811. **Health Check** â Assess your organization's governance health with a comprehensive AI-powered checkup. Get scores, identify gaps, and receive actionable recommendations. (Path: /health-check) 6822. **Policy Generator** â Generate governance policies, compliance documents, and internal procedures using AI. Save time on policy creation and ensure completeness. (Path: /
682policy-generator) 6833. **Risk Analyzer** â Analyze and evaluate risks across your organization. Identify, prioritize, and develop mitigation strategies for key risks. (Path: /risk-analyzer) 6844. **Decision Engine** â Get AI-powered decision support for complex governance and business decisions. Weigh options, assess impacts, and make informed choices. (Path: /decision-engine) 685 686### Knowledge Resources: 6875. **Micro Tools** â A collection of small, focused utility tools for specific governance and compliance tasks. (Path: /micro-tools) 6886. **Intelligence** â An intelligence hub providing insights, reports, and analysis on governance trends and best practices. (Path: /intelligence) 6897. **Encyclopedia** â A knowledge hub with in-depth articles on governance, risk management, compliance, audit, ethics, ESG, cybersecurity governance, data privacy, and more. Browse by category or search for specific topics. (Path: /encyclopedia) 6908. **Glossary** â A searchable, multilingual terminology database defining governance, risk, and compliance terms. Available in English, German, French, and Spanish. (Path: /glossary) 691 692### User Area: 6939. **Dashboard** â Your personal dashboard showing your reports, activity, and saved items. (Path: /dashboard) 69410. **Pricing** â View subscription plans and pricing options. Choose between different membership tiers. (Path: /pricing) 695 696### Programs: 69711. **Partner Program** â A growth partner program where you can earn commissions by referring customers to Governancepedia. Partners get marketing resources, training, commission tracking, and lead management tools. (Path: /partners) 69812. **Content Creator Program** â A program for content creators to produce governance-related content, participate in campaigns, and earn through commissions. (Path: /content-creators) 699 700## Getting Started Guide 701- **New users** should start with the **Health Check** to assess their current governance posture and get a baseline. 702- Use the **Policy Generator** to create or update organizational policies. 703- Explore the **Encyclopedia** and **Glossary** to learn about governance topics and terminology. 704- Use the **Risk Analyzer** to identify and prioritize risks. 705- Visit the **Dashboard** to view your reports and activity. 706- Check **Pricing** to upgrade for more features and credits. 707 708## Why Governance Matters 709Good governance is essential for organizational success, stakeholder trust, regulatory compliance, and effective risk management. It helps organizations operate transparently, ethically, and efficiently. Strong governance practices lead to better decision-making, reduced risks, improved performance, and increased confidence from investors, regulators, and stakeholders. 710 711## Response Guidelines 712- Be friendly, helpful, and concise. 713- Always respond in the same language the user is writing in. 714- When a user asks about a specific feature, explain what it does, why it's useful, and how to access it (include the navigation path). 715- When a user asks "what can I do here", give an overview of the main features organized by category. 716- When a user asks "how to start" or "how to get started", guide them through the recommended first steps. 717- When a user asks "why is this important", explain the value of governance and the specific feature. 718- When a user asks "how does this platform help me", tailor the answer to their likely role (board member, risk officer, compliance manager, etc.). 719- Use markdown formatting for readability (headers, bold text, bullet points, numbered lists). 720- Keep responses focused and scannable â not overly long. 721- If you don't know something specific, be honest and suggest where to find more information (e.g., the Encyclopedia or Glossary). 722- Do not make up features that don't exist on the platform.`,tge=["sage.qWhatCanIDo","sage.qHowToStart","sage.qWhyImportant","sage.qHowHelps"],nge={h1:({node:e,...t})=>a.jsx("h1",{className:"text-base font-bold mt-3 mb-2 first:mt-0",...t}),h2:({node:e,...t})=>a.jsx("h2",{className:"text-sm font-bold mt-3 mb-1.5 first:mt-0",...t}),h3:({node:e,...t})=>a.jsx("h3",{className:"text-sm font-semibold mt-2 mb-1 first:mt-0",...t}),p:({node:e,...t})=>a.jsx("p",{className:"text-sm leading-relaxed mb-2 last:mb-0",...t}),ul:({node:e,...t})=>a.jsx("ul",{className:"list-disc list-inside text-sm space-y-1 mb-2 last:mb-0 pl-1",...t}),ol:({node:e,...t})=>a.jsx("ol",{className:"list-decimal list-inside text-sm space-y-1 mb-2 last:mb-0 pl-1",...t}),li:({node:e,...t})=>a.jsx("li",{className:"text-sm leading-relaxed",...t}),strong:({node:e,...t})=>a.jsx("strong",{className:"font-semibold text-foreground",...t}),a:({node:e,...t})=>a.jsx("a",{className:"text-primary underline hover:opacity-80",target:"_blank",rel:"noopener noreferrer",...t}),pre:({node:e,...t})=>a.jsx("pre",{className:"p-2.5 rounded-lg bg-muted/70 text-xs font-mono overflow-x-auto my-2 text-foreground",...t}
722),code:({node:e,className:t,children:n,...r})=>t?a.jsx("code",{className:t,...r,children:n}):a.jsx("code",{className:"px-1 py-0.5 rounded bg-muted/70 text-xs font-mono text-foreground",...r,children:n}),blockquote:({node:e,...t})=>a.jsx("blockquote",{className:"border-l-2 border-primary pl-3 italic text-muted-foreground my-2",...t}),hr:()=>a.jsx("hr",{className:"my-3 border-border"})};function rge(){return a.jsxs("div",{className:"flex items-center gap-1 px-3 py-2.5",children:[a.jsx("span",{className:"w-2 h-2 rounded-full bg-muted-foreground/50 animate-bounce",style:{animationDelay:"0ms"}}),a.jsx("span",{className:"w-2 h-2 rounded-full bg-muted-foreground/50 animate-bounce",style:{animationDelay:"150ms"}}),a.jsx("span",{className:"w-2 h-2 rounded-full bg-muted-foreground/50 animate-bounce",style:{animationDelay:"300ms"}})]})}function ige({message:e,avatar:t}){const n=e.role==="user";return a.jsxs("div",{className:`flex items-start gap-2.5 ${n?"flex-row-reverse":""}`,children:[!n&&a.jsx("div",{className:"w-8 h-8 rounded-full overflow-hidden flex-shrink-0 mt-0.5",children:a.jsx("img",{src:t,alt:"Sage",className:"w-full h-full object-cover"})}),a.jsx("div",{className:`max-w-[85%] ${n?"flex flex-col items-end":""}`,children:n?a.jsx("div",{className:"bg-primary text-primary-foreground rounded-2xl rounded-tr-sm px-3.5 py-2.5 text-sm leading-relaxed whitespace-pre-wrap",children:e.content}):a.jsx("div",{className:"bg-card border border-border rounded-2xl rounded-tl-sm px-3.5 py-2.5 text-foreground",children:a.jsx(Ep,{components:nge,children:e.content||""})})})]})}function age(){const[e,t]=O.useState(!1),[n,r]=O.useState([]),[i,s]=O.useState(""),[o,l]=O.useState(!1),c=O.useRef(null),u=O.useRef(null),{t:d,aiLanguageInstruction:f}=Zt(),p=tge.map(g=>d(g));O.useEffect(()=>{try{const g=localStorage.getItem("sage_messages");g&&r(JSON.parse(g))}catch{}},[]),O.useEffect(()=>{try{localStorage.setItem("sage_messages",JSON.stringify(n))}catch{}},[n]),O.useEffect(()=>{var g;(g=c.current)==null||g.scrollIntoView({behavior:"smooth"})},[n,o]),O.useEffect(()=>{e&&setTimeout(()=>{var g;return(g=u.current)==null?void 0:g.focus()},200)},[e]);const h=async g=>{const y=(g||i).trim();if(!y||o)return;s("");const w={role:"user",content:y},j=[...n,w];r(j),l(!0);try{const _=j.map(E=>`${E.role==="user"?"User":"Sage"}: ${E.content}`).join(` 723 724`),N=`${ege} 725 726${f()} 727 728Conversation so far: 729${_} 730 731Respond to the user's latest message. Use markdown formatting for readability.`,A=await Ne.integrations.Core.InvokeLLM({prompt:N});r(E=>[...E,{role:"assistant",content:typeof A=="string"?A:String(A)}])}catch(_){console.error("Sage error:",_),r(N=>[...N,{role:"assistant",content:d("sage.error")}])}finally{l(!1)}},x=()=>{r([]),localStorage.removeItem("sage_messages")},v=n.length>0;return a.jsxs(a.Fragment,{children:[!e&&a.jsx("button",{onClick:()=>t(!0),className:"fixed bottom-6 right-6 z-50 group",title:d("sage.tooltip"),"aria-label":d("sage.tooltip"),children:a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"absolute inset-0 bg-primary/20 rounded-full animate-ping"}),a.jsx("div",{className:"relative w-14 h-14 rounded-full bg-gradient-to-br from-primary to-blue-600 shadow-xl flex items-center justify-center overflow-hidden ring-2 ring-card transition-transform group-hover:scale-105",children:a.jsx("img",{src:oy,alt:"Sage",className:"w-full h-full object-cover"})}),a.jsx("span",{className:"absolute -bottom-0.5 -right-0.5 w-4 h-4 bg-green-500 rounded-full ring-2 ring-card"})]})}),e&&a.jsxs("div",{className:"fixed bottom-6 right-6 z-50 w-[calc(100vw-3rem)] sm:w-[400px] h-[560px] max-h-[calc(100vh-2rem)] bg-card rounded-2xl shadow-2xl border border-border flex flex-col overflow-hidden animate-in fade-in slide-in-from-bottom-2 duration-200",children:[a.jsxs("div",{className:"flex items-center gap-3 p-3.5 bg-gradient-to-r from-primary to-blue-600 text-white flex-shrink-0",children:[a.jsx("div",{className:"relative w-10 h-10 rounded-full overflow-hidden ring-2 ring-white/30 flex-shrink-0",children:a.jsx("img",{src:oy,alt:"Sage",className:"w-full h-full object-cover"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("h3",{className:"font-heading font-bold text-base leading-tight",children:"Sage"}),a.jsx("p",{className:"text-xs text-white/80 leading-tight",children:d("sage.subtitle")})]}),v&&a.jsx("button",{onClick:x,className:"p-1.5 hover:bg-white/15 rounded-lg transition-colors flex-shrink-0",title:d("sage.newConversation"),children:a.jsx(zre,{className:"w-4 h-4"})}),a.jsx("button",{onClick:()=>t(!1),className:"p-1.5 hover:bg-white/15 rounded-lg transition-colors flex-shrink-0",title:d("sage.close"),children:a.jsx(ss,{className:"w-5 h-5"})})]}),a.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4 bg-background/50",children:[v?a.jsxs(a.Fragment,{children:[n.map((g,y)=>a.jsx(ige,{message:g,avatar:oy},y)),o&&a.jsxs("div",{className:"flex items-start gap-2.5",children:[a.jsx("div",{className:"w-8 h-8 rounded-full overflow-hidden flex-shrink-0 mt-0.5",children:a.jsx("img",{src:oy,alt:"Sage",className:"w-full h-full object-cover"})}),a.jsx("div",{className:"bg-card border border-border rounded-2xl rounded-tl-sm",children:a.jsx(rge,{})})]})]}):a.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-2",children:[a.jsx("div",{className:"w-16 h-16 rounded-full overflow-hidden mb-3 ring-2 ring-primary/20",children:a.jsx("img",{src:oy,alt:"Sage",className:"w-full h-full object-cover"})}),a.jsx("p",{className:"text-sm font-semibold mb-1",children:d("sage.greeting")}),a.jsx("p",{className:"text-xs text-muted-foreground mb-4 max-w-[280px] leading-relaxed",children:d("sage.intro")}),a.jsx("div",{className:"w-full space-y-2",children:p.map((g,y)=>a.jsx("button",{onClick:()=>h(g),className:"w-full text-left px-3 py-2.5 rounded-xl border border-border bg-card hover:bg-accent hover:border-primary/30 transition-all text-sm text-foreground
731/80 hover:text-foreground",children:g},y))})]}),a.jsx("div",{ref:c})]}),a.jsx("div",{className:"p-3 border-t border-border bg-card flex-shrink-0",children:a.jsxs("div",{className:"flex items-end gap-2",children:[a.jsx("textarea",{ref:u,value:i,onChange:g=>s(g.target.value),onKeyDown:g=>{g.key==="Enter"&&!g.shiftKey&&(g.preventDefault(),h())},placeholder:d("sage.askPlaceholder"),rows:1,className:"flex-1 resize-none rounded-xl border border-border bg-background px-3 py-2.5 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring max-h-24 min-h-[40px]"}),a.jsx("button",{onClick:()=>h(),disabled:!i.trim()||o,className:"w-10 h-10 rounded-xl bg-primary text-primary-foreground flex items-center justify-center disabled:opacity-40 disabled:cursor-not-allowed hover:bg-primary/90 transition-colors flex-shrink-0",children:a.jsx(l0,{className:"w-4 h-4"})})]})})]})]})}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 sge(e,t){const n=O.createContext(t),r=s=>{const{children:o,...l}=s,c=O.useMemo(()=>l,Object.values(l));return a.jsx(n.Provider,{value:c,children:o})};r.displayName=e+"Provider";function i(s){const o=O.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 xl(e,t=[]){let n=[];function r(s,o){const l=O.createContext(o),c=n.length;n=[...n,o];const u=f=>{var y;const{scope:p,children:h,...x}=f,v=((y=p==null?void 0:p[e])==null?void 0:y[c])||l,g=O.useMemo(()=>x,Object.values(x));return a.jsx(v.Provider,{value:g,children:h})};u.displayName=s+"Provider";function d(f,p){var v;const h=((v=p==null?void 0:p[e])==null?void 0:v[c])||l,x=O.useContext(h);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const i=()=>{const s=n.map(o=>O.createContext(o));return function(l){const c=(l==null?void 0:l[e])||s;return O.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return i.scopeName=e,[r,oge(i,...t)]}function oge(...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((l,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...l,...f}},{});return O.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var os=globalThis!=null&&globalThis.document?O.useLayoutEffect:()=>{},lge=w2[" useId ".trim().toString()]||(()=>{}),cge=0;function qc(e){const[t,n]=O.useState(lge());return os(()=>{n(r=>r??String(cge++))},[e]),t?`radix-${t}`:""}var uge=w2[" useInsertionEffect ".trim().toString()]||os;function od({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,o]=dge({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:i;{const d=O.useRef(e!==void 0);O.useEffect(()=>{const f=d.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"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=l},[l,r])}const u=O.useCallback(d=>{var f;if(l){const p=fge(d)?d(e):d;p!==e&&((f=o.current)==null||f.call(o,p))}else s(d)},[l,e,s,o]);return[c,u]}function dge({defaultProp:e,onChange:t}){const[n,r]=O.useState(e),i=O.useRef(n),s=O.useRef(t);return uge(()=>{s.current=t},[t]),O.useEffect(()=>{var o;i.current!==n&&((o=s.current)==null||o.call(s,n),i.current=n)},[n,i]),[n,r,s]}function fge(e){return typeof e=="function"}function hge(e){const t=pge(e),n=O.forwardRef((r,i)=>{const{children:s,...o}=r,l=O.Children.toArray(s),c=l.find(gge);if(c){const u=c.props.children,d=l.map(f=>f===c?O.Children.count(u)>1?O.Children.only(null):O.isValidElement(u)?u.props.children:null:f);return a.jsx(t,{...o,ref:i,children:O.isValidElement(u)?O.cloneElement(u,void 0,d):null})}return a.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function pge(e){const t=O.forwardRef((n,r)=>{const{children:i,...s}=n;
vendor: 12,729 bytes, line 731
731if(O.isValidElement(i)){const o=yge(i),l=vge(s,i.props);return i.type!==O.Fragment&&(l.ref=r?yd(r,o):o),O.cloneElement(i,l)}return O.Children.count(i)>1?O.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var mge=Symbol("radix.slottable");function gge(e){return O.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===mge}function vge(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]=(...l)=>{const c=s(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function yge(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 xge=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wn=xge.reduce((e,t)=>{const n=hge(`Primitive.${t}`),r=O.forwardRef((i,s)=>{const{asChild:o,...l}=i,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function sV(e,t){e&&c0.flushSync(()=>e.dispatchEvent(t))}function Yc(e){const t=O.useRef(e);return O.useEffect(()=>{t.current=e}),O.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function bge(e,t=globalThis==null?void 0:globalThis.document){const n=Yc(e);O.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 wge="DismissableLayer",uC="dismissableLayer.update",jge="dismissableLayer.pointerDownOutside",_ge="dismissableLayer.focusOutside",HL,oV=O.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),F2=O.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:l,...c}=e,u=O.useContext(oV),[d,f]=O.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=O.useState({}),x=Qn(t,E=>f(E)),v=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(g),w=d?v.indexOf(d):-1,j=u.layersWithOutsidePointerEventsDisabled.size>0,_=w>=y,N=Age(E=>{const k=E.target,T=[...u.branches].some(D=>D.contains(k));!_||T||(i==null||i(E),o==null||o(E),E.defaultPrevented||l==null||l())},p),A=kge(E=>{const k=E.target;[...u.branches].some(D=>D.contains(k))||(s==null||s(E),o==null||o(E),E.defaultPrevented||l==null||l())},p);return bge(E=>{w===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},p),O.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(HL=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),KL(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=HL)}},[d,p,n,u]),O.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),KL())},[d,u]),O.useEffect(()=>{const E=()=>h({});return document.addEventListener(uC,E),()=>document.removeEventListener(uC,E)},[]),a.jsx(wn.div,{...c,ref:x,style:{pointerEvents:j?_?"auto":"none":void 0,...e.style},onFocusCapture:qt(e.onFocusCapture,A.onFocusCapture),onBlurCapture:qt(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:qt(e.onPointerDownCapture,N.onPointerDownCapture)})});F2.displayName=wge;var Nge="DismissableLayerBranch",Sge=O.forwardRef((e,t)=>{const n=O.useContext(oV),r=O.useRef(null),i=Qn(t,r);return O.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),a.jsx(wn.div,{...e,ref:i})});Sge.displayName=Nge;function Age(e,t=globalThis==null?void 0:globalThis.document){const n=Yc(e),r=O.useRef(!1),i=O.useRef(()=>{});return O.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let c=function(){lV(jge,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}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 kge(e,t=globalThis==null?void 0:globalThis.document){const n=Yc(e),r=O.useRef(!1);return O.useEffect(()=>{const i=s=>{s.target&&!r.current&&lV(_ge,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 KL(){const e=new CustomEvent(uC);document.dispatchEvent(e)}function lV(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?sV(i,s):i.dispatchEvent(s)}var _N="focusScope.autoFocusOnMount",NN="focusScope.autoFocusOnUnmount",YL={bubbles:!1,cancelable:!0},Pge="FocusScope",B2=O.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=e,[l,c]=O.useState(null),u=Yc(i),d=Yc(s),f=O.useRef(null),p=Qn(t,v=>c(v)),h=O.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;O.useEffect(()=>{if(r){let v=function(j){if(h.paused||!l)return;const _=j.target;l.contains(_)?f.current=_:uf(f.current,{select:!0})},g=function(j){if(h.paused||!l)return;const _=j.relatedTarget;_!==null&&(l.contains(_)||uf(f.current,{select:!0}))},y=function(j){if(document.activeElement===document.body)for(const N of j)N.removedNodes.length>0&&uf(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",g);const w=new MutationObserver(y);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",g),w.disconnect()}}},[r,l,h.paused]),O.useEffect(()=>{if(l){QL.add(h);const v=document.activeElement;if(!l.contains(v)){const y=new CustomEvent(_N,YL);l.addEventListener(_N,u),l.dispatchEvent(y),y.defaultPrevented||(Cge(Ige(cV(l)),{select:!0}),document.activeElement===v&&uf(l))}return()=>{l.removeEventListener(_N,u),setTimeout(()=>{const y=new CustomEvent(NN,YL);l.addEventListener(NN,d),l.dispatchEvent(y),y.defaultPrevented||uf(v??document.body,{select:!0}),l.removeEventListener(NN,d),QL.remove(h)},0)}}},[l,u,d,h]);const x=O.useCallback(v=>{if(!n&&!r||h.paused)return;const g=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(g&&y){const w=v.currentTarget,[j,_]=Ege(w);j&&_?!v.shiftKey&&y===_?(v.preventDefault(),n&&uf(j,{select:!0})):v.shiftKey&&y===j&&(v.preventDefault(),n&&uf(_,{select:!0})):y===w&&v.preventDefault()}},[n,r,h.paused]);return a.jsx(wn.div,{tabIndex:-1,...o,ref:p,onKeyDown:x})});B2.displayName=Pge;function Cge(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(uf(r,{select:t}),document.activeElement!==n)return}function Ege(e){const t=cV(e),n=XL(t,e),r=XL(t.reverse(),e);return[n,r]}function cV(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 XL(e,t){for(const n of e)if(!Tge(n,{upTo:t}))return n}function Tge(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 Oge(e){return e instanceof HTMLInputElement&&"select"in e}function uf(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Oge(e)&&t&&e.select()}}var QL=Rge();function Rge(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ZL(e,t),e.unshift(t)},remove(t){var n;e=ZL(e,t),(n=e[0])==null||n.resume()}}}function ZL(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ige(e){return e.filter(t=>t.tagName!=="A")}var Lge="Portal",q2=O.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[i,s]=O.useState(!1);os(()=>s(!0),[]);const o=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?rse.createPortal(a.jsx(wn.div,{...r,ref:t}),o):null});q2.displayName=Lge;function Mge(e,t){return O.useReducer((n,r)=>t[n][r]??n,e)}var ec=e=>{const{present:t,children:n}=e,r=Dge(t),i=typeof n=="function"?n({present:r.isPresent}):O.Children.only(n),s=Qn(r.ref,Fge(i));return typeof n=="function"||r.isPresent?O.cloneElement(i,{ref:s}):null};ec.displayName="Presence";function Dge(e){const[t,n]=O.useState(),r=O.useRef(null),i=O.useRef(e),s=O.useRef("none"),o=e?"mounted":"unmounted",[l,c]=Mge(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return O.useEffect(()=>{const u=Rb(r.current);s.current=l==="mounted"?u:"none"},[l]),os(()=>{const u=r.current,d=i.current;if(d!==e){const p=s.current,h=Rb(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&p!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),os(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=h=>{const v=Rb(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&v&&(c("ANIMATION_END"),!i.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},p=h=>{h.target===t&&(s.current=Rb(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:O.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Rb(e){return(e==null?void 0:e.animationName)||"none"}function Fge(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 SN=0;function lT(){O.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??JL()),document.body.insertAdjacentElement("beforeend",e[1]??JL()),SN++,()=>{SN===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),SN--}},[])}function JL(){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 Ic=function(){return Ic=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},Ic.apply(this,arguments)};function uV(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 Bge(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 k1="right-scroll-bar-position",P1="width-before-scroll-bar",qge="with-scroll-bars-hidden",zge="--removed-body-scroll-bar-size";function AN(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $ge(e,t){var n=O.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 Uge=typeof window<"u"?O.useLayoutEffect:O.useEffect,eM=new WeakMap;function Gge(e,t){var n=$ge(null,function(r){return e.forEach(function(i){return AN(i,r)})});return Uge(function(){var r=eM.get(n);if(r){var i=new Set(r),s=new Set(e),o=n.current;
vendor: 4,224 bytes, lines 731-746
731i.forEach(function(l){s.has(l)||AN(l,null)}),s.forEach(function(l){i.has(l)||AN(l,o)})}eM.set(n,e)},[e]),n}function Vge(e){return e}function Wge(e,t){t===void 0&&(t=Vge);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(l){return l!==o})}},assignSyncMedium:function(s){for(r=!0;n.length;){var o=n;n=[],o.forEach(s)}n={push:function(l){return s(l)},filter:function(){return n}}},assignMedium:function(s){r=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(s),o=n}var c=function(){var d=o;o=[],d.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),n}}}};return i}function Hge(e){e===void 0&&(e={});var t=Wge(null);return t.options=Ic({async:!0,ssr:!1},e),t}var dV=function(e){var t=e.sideCar,n=uV(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 O.createElement(r,Ic({},n))};dV.isSideCarExport=!0;function Kge(e,t){return e.useMedium(t),dV}var fV=Hge(),kN=function(){},z2=O.forwardRef(function(e,t){var n=O.useRef(null),r=O.useState({onScrollCapture:kN,onWheelCapture:kN,onTouchMoveCapture:kN}),i=r[0],s=r[1],o=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,x=e.noIsolation,v=e.inert,g=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,j=e.gapMode,_=uV(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=p,A=Gge([n,t]),E=Ic(Ic({},_),i);return O.createElement(O.Fragment,null,d&&O.createElement(N,{sideCar:fV,removeScrollBar:u,shards:f,noRelative:h,noIsolation:x,inert:v,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:j}),o?O.cloneElement(O.Children.only(l),Ic(Ic({},E),{ref:A})):O.createElement(w,Ic({},E,{className:c,ref:A}),l))});z2.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};z2.classNames={fullWidth:P1,zeroRight:k1};var Yge=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Xge(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Yge();return t&&e.setAttribute("nonce",t),e}function Qge(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Zge(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Jge=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Xge())&&(Qge(t,n),Zge(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eve=function(){var e=Jge();return function(t,n){O.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},hV=function(){var e=eve(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},tve={left:0,top:0,right:0,gap:0},PN=function(e){return parseInt(e||"",10)||0},nve=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[PN(n),PN(r),PN(i)]},rve=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tve;var t=nve(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])}},ive=hV(),Km="data-scroll-locked",ave=function(e,t,n,r){var i=e.left,s=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),` 732 .`.concat(qge,` { 733 overflow: hidden `).concat(r,`; 734 padding-right: `).concat(l,"px ").concat(r,`; 735 } 736 body[`).concat(Km,`] { 737 overflow: hidden `).concat(r,`; 738 overscroll-behavior: contain; 739 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 740 padding-left: `.concat(i,`px; 741 padding-top: `).concat(s,`px; 742 padding-right: `).concat(o,`px; 743 margin-left:0; 744 margin-top:0; 745 margin-right: `).concat(l,"px ").concat(r,`; 746 `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";
746")].filter(Boolean).join(""),` 747 } 748 749 .`).concat(k1,` { 750 right: `).concat(l,"px ").concat(r,`; 751 } 752 753 .`).concat(P1,` { 754 margin-right: `).concat(l,"px ").concat(r,`; 755 } 756 757 .`).concat(k1," .").concat(k1,` { 758 right: 0 `).concat(r,`; 759 } 760 761 .`).concat(P1," .").concat(P1,` { 762 margin-right: 0 `).concat(r,`; 763 } 764 765 body[`).concat(Km,`] { 766 `).concat(zge,": ").concat(l,`px; 767 } 768`)},tM=function(){var e=parseInt(document.body.getAttribute(Km)||"0",10);return isFinite(e)?e:0},sve=function(){O.useEffect(function(){return document.body.setAttribute(Km,(tM()+1).toString()),function(){var e=tM()-1;e<=0?document.body.removeAttribute(Km):document.body.setAttribute(Km,e.toString())}},[])},ove=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;sve();var s=O.useMemo(function(){return rve(i)},[i]);return O.createElement(ive,{styles:ave(s,!t,i,n?"":"!important")})},dC=!1;if(typeof window<"u")try{var Ib=Object.defineProperty({},"passive",{get:function(){return dC=!0,!0}});window.addEventListener("test",Ib,Ib),window.removeEventListener("test",Ib,Ib)}catch{dC=!1}var wm=dC?{passive:!1}:!1,lve=function(e){return e.tagName==="TEXTAREA"},pV=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!lve(e)&&n[t]==="visible")},cve=function(e){return pV(e,"overflowY")},uve=function(e){return pV(e,"overflowX")},nM=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=mV(e,r);if(i){var s=gV(e,r),o=s[1],l=s[2];if(o>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},dve=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},fve=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},mV=function(e,t){return e==="v"?cve(t):uve(t)},gV=function(e,t){return e==="v"?dve(t):fve(t)},hve=function(e,t){return e==="h"&&t==="rtl"?-1:1},pve=function(e,t,n,r,i){var s=hve(e,window.getComputedStyle(t).direction),o=s*r,l=n.target,c=t.contains(l),u=!1,d=o>0,f=0,p=0;do{if(!l)break;var h=gV(e,l),x=h[0],v=h[1],g=h[2],y=v-g-s*x;(x||y)&&mV(e,l)&&(f+=y,p+=x);var w=l.parentNode;l=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(u=!0),u},Lb=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rM=function(e){return[e.deltaX,e.deltaY]},iM=function(e){return e&&"current"in e?e.current:e},mve=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gve=function(e){return` 769 .block-interactivity-`.concat(e,` {pointer-events: none;} 770 .allow-interactivity-`).concat(e,` {pointer-events: all;} 771`)},vve=0,jm=[];function yve(e){var t=O.useRef([]),n=O.useRef([0,0]),r=O.useRef(),i=O.useState(vve++)[0],s=O.useState(hV)[0],o=O.useRef(e);O.useEffect(function(){o.current=e},[e]),O.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=Bge([e.lockRef.current],(e.shards||[]).map(iM),!0).filter(Boolean);return v.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=O.useCallback(function(v,g){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!o.current.allowPinchZoom;var y=Lb(v),w=n.current,j="deltaX"in v?v.deltaX:w[0]-y[0],_="deltaY"in v?v.deltaY:w[1]-y[1],N,A=v.target,E=Math.abs(j)>Math.abs(_)?"h":"v";if("touches"in v&&E==="h"&&A.type==="range")return!1;var k=window.getSelection(),T=k&&k.anchorNode,D=T?T===A||T.contains(A):!1;if(D)return!1;var P=nM(E,A);if(!P)return!0;if(P?N=E:(N=E==="v"?"h":"v",P=nM(E,A)),!P)return!1;if(!r.current&&"changedTouches"in v&&(j||_)&&(r.current=N),!N)return!0;var R=r.current||N;return pve(R,g,v,R==="h"?j:_)},[]),c=O.useCallback(function(v){var g=v;if(!(!jm.length||jm[jm.length-1]!==s)){var y="deltaY"in g?rM(g):Lb(g),w=t.current.filter(function(N){return N.name===g.type&&(N.target===g.target||g.target===N.shadowParent)&&mve(N.delta,y)})[0];if(w&&w.should){g.cancelable&&g.preventDefault();return}
vendor: 9,484 bytes, lines 771-775
771if(!w){var j=(o.current.shards||[]).map(iM).filter(Boolean).filter(function(N){return N.contains(g.target)}),_=j.length>0?l(g,j[0]):!o.current.noIsolation;_&&g.cancelable&&g.preventDefault()}}},[]),u=O.useCallback(function(v,g,y,w){var j={name:v,delta:g,target:y,should:w,shadowParent:xve(y)};t.current.push(j),setTimeout(function(){t.current=t.current.filter(function(_){return _!==j})},1)},[]),d=O.useCallback(function(v){n.current=Lb(v),r.current=void 0},[]),f=O.useCallback(function(v){u(v.type,rM(v),v.target,l(v,e.lockRef.current))},[]),p=O.useCallback(function(v){u(v.type,Lb(v),v.target,l(v,e.lockRef.current))},[]);O.useEffect(function(){return jm.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,wm),document.addEventListener("touchmove",c,wm),document.addEventListener("touchstart",d,wm),function(){jm=jm.filter(function(v){return v!==s}),document.removeEventListener("wheel",c,wm),document.removeEventListener("touchmove",c,wm),document.removeEventListener("touchstart",d,wm)}},[]);var h=e.removeScrollBar,x=e.inert;return O.createElement(O.Fragment,null,x?O.createElement(s,{styles:gve(i)}):null,h?O.createElement(ove,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function xve(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bve=Kge(fV,yve);var $2=O.forwardRef(function(e,t){return O.createElement(z2,Ic({},e,{ref:t,sideCar:bve}))});$2.classNames=z2.classNames;var wve=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_m=new WeakMap,Mb=new WeakMap,Db={},CN=0,vV=function(e){return e&&(e.host||vV(e.parentNode))},jve=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=vV(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})},_ve=function(e,t,n,r){var i=jve(t,Array.isArray(e)?e:[e]);Db[n]||(Db[n]=new WeakMap);var s=Db[n],o=[],l=new Set,c=new Set(i),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};i.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(p){if(l.has(p))d(p);else try{var h=p.getAttribute(r),x=h!==null&&h!=="false",v=(_m.get(p)||0)+1,g=(s.get(p)||0)+1;_m.set(p,v),s.set(p,g),o.push(p),v===1&&x&&Mb.set(p,!0),g===1&&p.setAttribute(n,"true"),x||p.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return d(t),l.clear(),CN++,function(){o.forEach(function(f){var p=_m.get(f)-1,h=s.get(f)-1;_m.set(f,p),s.set(f,h),p||(Mb.has(f)||f.removeAttribute(r),Mb.delete(f)),h||f.removeAttribute(n)}),CN--,CN||(_m=new WeakMap,_m=new WeakMap,Mb=new WeakMap,Db={})}},cT=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=wve(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),_ve(r,i,n,"aria-hidden")):function(){return null}};function Nve(e){const t=Sve(e),n=O.forwardRef((r,i)=>{const{children:s,...o}=r,l=O.Children.toArray(s),c=l.find(kve);if(c){const u=c.props.children,d=l.map(f=>f===c?O.Children.count(u)>1?O.Children.only(null):O.isValidElement(u)?u.props.children:null:f);return a.jsx(t,{...o,ref:i,children:O.isValidElement(u)?O.cloneElement(u,void 0,d):null})}return a.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function Sve(e){const t=O.forwardRef((n,r)=>{const{children:i,...s}=n;if(O.isValidElement(i)){const o=Cve(i),l=Pve(s,i.props);return i.type!==O.Fragment&&(l.ref=r?yd(r,o):o),O.cloneElement(i,l)}return O.Children.count(i)>1?O.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ave=Symbol("radix.slottable");function kve(e){return O.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ave}function Pve(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]=(...l)=>{const c=s(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function Cve(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 U2="Dialog",[yV]=xl(U2),[Eve,tc]=yV(U2),xV=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:o=!0}=e,l=O.useRef(null),c=O.useRef(null),[u,d]=od({prop:r,defaultProp:i??!1,onChange:s,caller:U2});return a.jsx(Eve,{scope:t,triggerRef:l,contentRef:c,contentId:qc(),titleId:qc(),descriptionId:qc(),open:u,onOpenChange:d,onOpenToggle:O.useCallback(()=>d(f=>!f),[d]),modal:o,children:n})};xV.displayName=U2;var bV="DialogTrigger",wV=O.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=tc(bV,n),s=Qn(t,i.triggerRef);return a.jsx(wn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":fT(i.open),...r,ref:s,onClick:qt(e.onClick,i.onOpenToggle)})});wV.displayName=bV;var uT="DialogPortal",[Tve,jV]=yV(uT,{forceMount:void 0}),_V=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,s=tc(uT,t);return a.jsx(Tve,{scope:t,forceMount:n,children:O.Children.map(r,o=>a.jsx(ec,{present:n||s.open,children:a.jsx(q2,{asChild:!0,container:i,children:o})}))})};_V.displayName=uT;var nw="DialogOverlay",NV=O.forwardRef((e,t)=>{const n=jV(nw,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=tc(nw,e.__scopeDialog);return s.modal?a.jsx(ec,{present:r||s.open,children:a.jsx(Rve,{...i,ref:t})}):null});NV.displayName=nw;var Ove=Nve("DialogOverlay.RemoveScroll"),Rve=O.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=tc(nw,n);return a.jsx($2,{as:Ove,allowPinchZoom:!0,shards:[i.contentRef],children:a.jsx(wn.div,{"data-state":fT(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),up="DialogContent",SV=O.forwardRef((e,t)=>{const n=jV(up,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=tc(up,e.__scopeDialog);return a.jsx(ec,{present:r||s.open,children:s.modal?a.jsx(Ive,{...i,ref:t}):a.jsx(Lve,{...i,ref:t})})});SV.displayName=up;var Ive=O.forwardRef((e,t)=>{const n=tc(up,e.__scopeDialog),r=O.useRef(null),i=Qn(t,n.contentRef,r);return O.useEffect(()=>{const s=r.current;if(s)return cT(s)},[]),a.jsx(AV,{...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,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&s.preventDefault()}),onFocusOutside:qt(e.onFocusOutside,s=>s.preventDefault())})}),Lve=O.forwardRef((e,t)=>{const n=tc(up,e.__scopeDialog),r=O.useRef(!1),i=O.useRef(!1);return a.jsx(AV,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,s),s.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),AV=O.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=e,l=tc(up,n),c=O.useRef(null),u=Qn(t,c);return lT(),a.jsxs(a.Fragment,{children:[a.jsx(B2,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:a.jsx(F2,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":fT(l.open),...o,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(Mve,{titleId:l.titleId}),a.jsx(Fve,{contentRef:c,descriptionId:l.descriptionId})]})]})}),dT="DialogTitle",kV=O.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=tc(dT,n);return a.jsx(wn.h2,{id:i.titleId,...r,ref:t})});kV.displayName=dT;var PV="DialogDescription",CV=O.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=tc(PV,n);return a.jsx(wn.p,{id:i.descriptionId,...r,ref:t})});CV.displayName=PV;var EV="DialogClose",TV=O.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=tc(EV,n);return a.jsx(wn.button,{type:"button",...r,ref:t,onClick:qt(e.onClick,()=>i.onOpenChange(!1))})});TV.displayName=EV;function fT(e){return e?"open":"closed"}var OV="DialogTitleWarning",[O$e,RV]=sge(OV,{contentName:up,titleName:dT,docsSlug:"dialog"}),Mve=({titleId:e})=>{const t=RV(OV),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 772 773If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 774 775For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return O.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Dve="DialogDescriptionWarning",Fve=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${RV(Dve).contentName}}.`;return O.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}
775,IV=xV,LV=wV,MV=_V,G2=NV,V2=SV,W2=kV,H2=CV,DV=TV;const Bve=IV,qve=LV,zve=MV,FV=O.forwardRef(({className:e,...t},n)=>a.jsx(G2,{className:ln("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,ref:n}));FV.displayName=G2.displayName;const $ve=a0("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),BV=O.forwardRef(({side:e="right",className:t,children:n,...r},i)=>a.jsxs(zve,{children:[a.jsx(FV,{}),a.jsxs(V2,{ref:i,className:ln($ve({side:e}),t),...r,children:[a.jsxs(DV,{className:"absolute right-4 top-4 roun
775ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[a.jsx(ss,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));BV.displayName=V2.displayName;const Uve=O.forwardRef(({className:e,...t},n)=>a.jsx(W2,{ref:n,className:ln("text-lg font-semibold text-foreground",e),...t}));Uve.displayName=W2.displayName;const Gve=O.forwardRef(({className:e,...t},n)=>a.jsx(H2,{ref:n,className:ln("text-sm text-muted-foreground",e),...t}));Gve.displayName=H2.displayName;function aM(e){const t=Vve(e),n=O.forwardRef((r,i)=>{const{children:s,...o}=r,l=O.Children.toArray(s),c=l.find(Hve);if(c){const u=c.props.children,d=l.map(f=>f===c?O.Children.count(u)>1?O.Children.only(null):O.isValidElement(u)?u.props.children:null:f);return a.jsx(t,{...o,ref:i,children:O.isValidElement(u)?O.cloneElement(u,void 0,d):null})}return a.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function Vve(e){const t=O.forwardRef((n,r)=>{const{children:i,...s}=n;if(O.isValidElement(i)){const o=Yve(i),l=Kve(s,i.props);return i.type!==O.Fragment&&(l.ref=r?yd(r,o):o),O.cloneElement(i,l)}return O.Children.count(i)>1?O.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wve=Symbol("radix.slottable");function Hve(e){return O.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Wve}function Kve(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]=(...l)=>{const c=s(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function Yve(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 hT(e){const t=e+"CollectionProvider",[n,r]=xl(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:g,children:y}=v,w=Ae.useRef(null),j=Ae.useRef(new Map).current;return a.jsx(i,{scope:g,itemMap:j,collectionRef:w,children:y})};o.displayName=t;const l=e+"CollectionSlot",c=aM(l),u=Ae.forwardRef((v,g)=>{const{scope:y,children:w}=v,j=s(l,y),_=Qn(g,j.collectionRef);return a.jsx(c,{ref:_,children:w})});u.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=aM(d),h=Ae.forwardRef((v,g)=>{const{scope:y,children:w,...j}=v,_=Ae.useRef(null),N=Qn(g,_),A=s(d,y);return Ae.useEffect(()=>(A.itemMap.set(_,{ref:_,...j}),()=>void A.itemMap.delete(_))),a.jsx(p,{[f]:"",ref:N,children:w})});h.displayName=d;function x(v){const g=s(e+"CollectionConsumer",v);return Ae.useCallback(()=>{const w=g.collectionRef.current;if(!w)return[];const j=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((A,E)=>j.indexOf(A.ref.current)-j.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:o,Slot:u,ItemSlot:h},x,r]}var Xve=O.createContext(void 0);function v0(e){const t=O.useContext(Xve);return e||t||"ltr"}const Qve=["top","right","bottom","left"],Df=Math.min,ko=Math.max,rw=Math.round,Fb=Math.floor,zc=e=>({x:e,y:e}),Zve={left:"right",right:"left",bottom:"top",top:"bottom"},Jve={start:"end",end:"start"};function fC(e,t,n){return ko(e,Df(t,n))}function ld(e,t){return typeof e=="function"?e(t):e}function cd(e){return e.split("-")[0]}function av(e){return e.split("-")[1]}function pT(e){return e==="x"?"y":"x"}function mT(e){return e==="y"?"height":"width"}const eye=new Set(["top","bottom"]);function Lc(e){return eye.has(cd(e))?"y":"x"}function gT(e){return pT(Lc(e))}function tye(e,t,n){n===void 0&&(n=!1);const r=av(e),i=gT(e),s=mT(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=iw(o)),[o,iw(o)]}function nye(e){const t=iw(e);return[hC(e),t,hC(t)]}function hC(e){return e.replace(/start|end/g,t=>Jve[t])}const sM=["left","right"],oM=["right","left"],rye=["top","bottom"],iye=["bottom","top"];function aye(e,t,n){switch(e){case"top":case"bottom":return n?t?oM:sM:t?sM:oM;case"left":case"right":return t?rye:iye;default:return[]}}function sye(e,t,n,r){const i=av(e);let s=aye(cd(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(hC)))),s}function iw(e){return e.replace(/left|right|bottom|top/g,t=>Zve[t])}function oye(e){return{top:0,right:0,bottom:0,left:0,...e}}function qV(e){return typeof e!="number"?oye(e):{top:e,right:e,bottom:e,left:e}}function aw(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 lM(e,t,n){let{reference:r,floating:i}=e;const s=Lc(t),o=gT(t),l=mT(o),c=cd(t),u=s==="y",d=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,p=r[l]/2-i[l]/2;let h;switch(c){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:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(av(t)){case"start":h[o]-=p*(n&&u?-1:1);break;case"end":h[o]+=p*(n&&u?-1:1);break}return h}async function lye(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=ld(t,e),x=qV(h),g=l[p?f==="floating"?"reference":"floating":f],y=aw(await s.getClippingRect
vendor: 9,895 bytes, line 775
775({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),w=f==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,j=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),_=await(s.isElement==null?void 0:s.isElement(j))?await(s.getScale==null?void 0:s.getScale(j))||{x:1,y:1}:{x:1,y:1},N=aw(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:j,strategy:c}):w);return{top:(y.top-N.top+x.top)/_.y,bottom:(N.bottom-y.bottom+x.bottom)/_.y,left:(y.left-N.left+x.left)/_.x,right:(N.right-y.right+x.right)/_.x}}const cye=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,l=s.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=lM(u,r,c),p=r,h={},x=0;for(let g=0;g<l.length;g++){var v;const{name:y,fn:w}=l[g],{x:j,y:_,data:N,reset:A}=await w({x:d,y:f,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:u,platform:{...o,detectOverflow:(v=o.detectOverflow)!=null?v:lye},elements:{reference:e,floating:t}});d=j??d,f=_??f,h={...h,[y]:{...h[y],...N}},A&&x<=50&&(x++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(u=A.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:d,y:f}=lM(u,p,c)),g=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:h}},uye=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=ld(e,t)||{};if(u==null)return{};const f=qV(d),p={x:n,y:r},h=gT(i),x=mT(h),v=await o.getDimensions(u),g=h==="y",y=g?"top":"left",w=g?"bottom":"right",j=g?"clientHeight":"clientWidth",_=s.reference[x]+s.reference[h]-p[h]-s.floating[x],N=p[h]-s.reference[h],A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let E=A?A[j]:0;(!E||!await(o.isElement==null?void 0:o.isElement(A)))&&(E=l.floating[j]||s.floating[x]);const k=_/2-N/2,T=E/2-v[x]/2-1,D=Df(f[y],T),P=Df(f[w],T),R=D,q=E-v[x]-P,M=E/2-v[x]/2+k,V=fC(R,M,q),H=!c.arrow&&av(i)!=null&&M!==V&&s.reference[x]/2-(M<R?D:P)-v[x]/2<0,Z=H?M<R?M-R:M-q:0;return{[h]:p[h]+Z,data:{[h]:V,centerOffset:M-V-Z,...H&&{alignmentOffset:Z}},reset:H}}}),dye=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:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:v=!0,...g}=ld(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=cd(i),w=Lc(l),j=cd(l)===l,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),N=p||(j||!v?[iw(l)]:nye(l)),A=x!=="none";!p&&A&&N.push(...sye(l,v,x,_));const E=[l,...N],k=await c.detectOverflow(t,g),T=[];let D=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&T.push(k[y]),f){const M=tye(i,o,_);T.push(k[M[0]],k[M[1]])}if(D=[...D,{placement:i,overflows:T}],!T.every(M=>M<=0)){var P,R;const M=(((P=s.flip)==null?void 0:P.index)||0)+1,V=E[M];if(V&&(!(f==="alignment"?w!==Lc(V):!1)||D.every(J=>Lc(J.placement)===w?J.overflows[0]>0:!0)))return{data:{index:M,overflows:D},reset:{placement:V}};let H=(R=D.filter(Z=>Z.overflows[0]<=0).sort((Z,J)=>Z.overflows[1]-J.overflows[1])[0])==null?void 0:R.placement;if(!H)switch(h){case"bestFit":{var q;const Z=(q=D.filter(J=>{if(A){const K=Lc(J.placement);return K===w||K==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(K=>K>0).reduce((K,F)=>K+F,0)]).sort((J,K)=>J[1]-K[1])[0])==null?void 0:q[0];Z&&(H=Z);break}case"initialPlacement":H=l;break}if(i!==H)return{reset:{placement:H}}}return{}}}};function cM(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uM(e){return Qve.some(t=>e[t]>=0)}const fye=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...s}=ld(e,t);switch(i){case"referenceHidden":{const o=await r.detectOverflow(t,{...s,elementContext:"reference"}),l=cM(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:uM(l)}}}case"escaped":{const o=await r.detectOverflow(t,{...s,altBoundary:!0}),l=cM(o,n.floating);return{data:{escapedOffsets:l,escaped:uM(l)}}}default:return{}}}}},zV=new Set(["left","top"]);async function hye(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=cd(n),l=av(n),c=Lc(n)==="y",u=zV.has(o)?-1:1,d=s&&c?-1:1,f=ld(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof x=="number"&&(h=l==="end"?x*-1:x),c?{x:h*d,y:p*u}:{x:p*u,y:h*d}}const pye=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:l}=t,c=await hye(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:{...c,placement:o}}}}},mye=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:s}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:c={fn:y=>{let{x:w,y:j}=y;return{x:w,y:j}}},...u}=ld(e,t),d={x:n,y:r},f=await s.detectOverflow(t,u),p=Lc(cd(i)),h=pT(p);let x=d[h],v=d[p];if(o){const y=h==="y"?"top":"left",w=h==="y"?"bottom":"right",j=x+f[y],_=x-f[w];x=fC(j,x,_)}if(l){const y=p==="y"?"top":"left",w=p==="y"?"bottom":"right",j=v+f[y],_=v-f[w];v=fC(j,v,_)}const g=c.fn({...t,[h]:x,[p]:v});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:o,[p]:l}}}}}},gye=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=ld(e,t),d={x:n,y:r},f=Lc(i),p=pT(f);let h=d[p],x=d[f];const v=ld(l,t),g=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const j=p==="y"?"height":"width",_=s.reference[p]-s.floating[j]+g.mainAxis,N=s.reference[p]+s.reference[j]-g.mainAxis;h<_?h=_:h>N&&(h=N)}if(u){var y,w;const j=p==="y"?"width":"height",_=zV.has(cd(i)),N=s.reference[f]-s.floating[j]+(_&&((y=o.offset)==null?void 0:y[f])||0)+(_?0:g.crossAxis),A=s.reference[f]+s.reference[j]+(_?0:((w=o.offset)==null?void 0:w[f])||0)-(_?g.crossAxis:0);x<N?x=N:x>A&&(x=A)}return{[p]:h,[f]:x}}}},vye=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:l}=t,{apply:c=()=>{},...u}=ld(e,t),d=await o.detectOverflow(t,u),f=cd(i),p=av(i),h=Lc(i)==="y",{width:x,height:v}=s.floating;let g,y;f==="top"||f==="bottom"?(g=f,y=p===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(y=f,g=p==="end"?"top":"bottom");const w=v-d.top-d.bottom,j=x-d.left-d.right,_=Df(v-d[g],w),N=Df(x-d[y],j),A=!t.middlewareData.shift;let E=_,k=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=j),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=w),A&&!p){const D=ko(d.left,0),P=ko(d.right,0),R=ko(d.top,0),q=ko(d.bottom,0);h?k=x-2*(D!==0||P!==0?D+P:ko(d.left,d.right)):E=v-2*(R!==0||q!==0?R+q:ko(d.top,d.bottom))}await c({...t,availableWidth:k,availableHeight:E});const T=await o.getDimensions(l.floating);return x!==T.width||v!==T.height?{reset:{rects:!0}}:{}}}};function K2(){return typeof window<"u"}function sv(e){return $V(e)?(e.nodeName||"").toLowerCase():"#document"}function To(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zc(e){var t;return(t=($V(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $V(e){return K2()?e instanceof Node||e instanceof To(e).Node:!1}function Xl(e){return K2()?e instanceof Element||e instanceof To(e).Element:!1}function Xc(e){return K2()?e instanceof HTMLElement||e instanceof To(e).HTMLElement:!1}function dM(e){return!K2()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof To(e).ShadowRoot}const yye=new Set(["inline","contents"]);function y0(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ql(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!yye.has(i)}const xye=new Set(["table","td","th"]);function bye(e){return xye.has(sv(e))}const wye=[":popover-open",":modal"];function Y2(e){return wye.some(t=>{try{return e.matches(t)}catch{return!1}})}const jye=["transform","translate","scale","rotate","perspective"],_ye=["transform","translate","scale","rotate","perspective","filter"],Nye=["paint","layout","strict","content"];function vT(e){const t=yT(),n=Xl(e)?Ql(e):e;return jye.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)||_ye.some(r=>(n.willChange||"").includes(r))||Nye.some(r=>(n.contain||"").includes(r))}function Sye(e){let t=Ff(e);for(;Xc(t)&&!wg(t);){if(vT(t))return t;if(Y2(t))return null;t=Ff(t)}return null}function yT(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Aye=new Set(["html","body","#document"]);function wg(e){return Aye.has(sv(e))}function Ql(e){return To(e).getComputedStyle(e)}function X2(e){return Xl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ff(e){if(sv(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dM(e)&&e.host||Zc(e);return dM(t)?t.host:t}function UV(e){const t=Ff(e);return wg(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xc(t)&&y0(t)?t:UV(t)}function lx(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=UV(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=To(i);if(s){const l=pC(o);
vendor: 14,294 bytes, line 775
775return t.concat(o,o.visualViewport||[],y0(i)?i:[],l&&n?lx(l):[])}return t.concat(i,lx(i,[],n))}function pC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function GV(e){const t=Ql(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Xc(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,l=rw(n)!==s||rw(r)!==o;return l&&(n=s,r=o),{width:n,height:r,$:l}}function xT(e){return Xl(e)?e:e.contextElement}function Ym(e){const t=xT(e);if(!Xc(t))return zc(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=GV(t);let o=(s?rw(n.width):n.width)/r,l=(s?rw(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const kye=zc(0);function VV(e){const t=To(e);return!yT()||!t.visualViewport?kye:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pye(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==To(e)?!1:t}function dp(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=xT(e);let o=zc(1);t&&(r?Xl(r)&&(o=Ym(r)):o=Ym(e));const l=Pye(s,n,r)?VV(s):zc(0);let c=(i.left+l.x)/o.x,u=(i.top+l.y)/o.y,d=i.width/o.x,f=i.height/o.y;if(s){const p=To(s),h=r&&Xl(r)?To(r):r;let x=p,v=pC(x);for(;v&&r&&h!==x;){const g=Ym(v),y=v.getBoundingClientRect(),w=Ql(v),j=y.left+(v.clientLeft+parseFloat(w.paddingLeft))*g.x,_=y.top+(v.clientTop+parseFloat(w.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,f*=g.y,c+=j,u+=_,x=To(v),v=pC(x)}}return aw({width:d,height:f,x:c,y:u})}function Q2(e,t){const n=X2(e).scrollLeft;return t?t.left+n:dp(Zc(e)).left+n}function WV(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Q2(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Cye(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=Zc(r),l=t?Y2(t.floating):!1;if(r===o||l&&s)return n;let c={scrollLeft:0,scrollTop:0},u=zc(1);const d=zc(0),f=Xc(r);if((f||!f&&!s)&&((sv(r)!=="body"||y0(o))&&(c=X2(r)),Xc(r))){const h=dp(r);u=Ym(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const p=o&&!f&&!s?WV(o,c):zc(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}}function Eye(e){return Array.from(e.getClientRects())}function Tye(e){const t=Zc(e),n=X2(e),r=e.ownerDocument.body,i=ko(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ko(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Q2(e);const l=-n.scrollTop;return Ql(r).direction==="rtl"&&(o+=ko(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:l}}const fM=25;function Oye(e,t){const n=To(e),r=Zc(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,l=0,c=0;if(i){s=i.width,o=i.height;const d=yT();(!d||d&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}const u=Q2(r);if(u<=0){const d=r.ownerDocument,f=d.body,p=getComputedStyle(f),h=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,x=Math.abs(r.clientWidth-f.clientWidth-h);x<=fM&&(s-=x)}else u<=fM&&(s+=u);return{width:s,height:o,x:l,y:c}}const Rye=new Set(["absolute","fixed"]);function Iye(e,t){const n=dp(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=Xc(e)?Ym(e):zc(1),o=e.clientWidth*s.x,l=e.clientHeight*s.y,c=i*s.x,u=r*s.y;return{width:o,height:l,x:c,y:u}}function hM(e,t,n){let r;if(t==="viewport")r=Oye(e,n);else if(t==="document")r=Tye(Zc(e));else if(Xl(t))r=Iye(t,n);else{const i=VV(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return aw(r)}function HV(e,t){const n=Ff(e);return n===t||!Xl(n)||wg(n)?!1:Ql(n).position==="fixed"||HV(n,t)}function Lye(e,t){const n=t.get(e);if(n)return n;let r=lx(e,[],!1).filter(l=>Xl(l)&&sv(l)!=="body"),i=null;const s=Ql(e).position==="fixed";let o=s?Ff(e):e;for(;Xl(o)&&!wg(o);){const l=Ql(o),c=vT(o);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&Rye.has(i.position)||y0(o)&&!c&&HV(e,o))?r=r.filter(d=>d!==o):i=l,o=Ff(o)}return t.set(e,r),r}function Mye(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Y2(t)?[]:Lye(t,this._c):[].concat(n),r],l=o[0],c=o.reduce((u,d)=>{const f=hM(t,d,i);return u.top=ko(f.top,u.top),u.right=Df(f.right,u.right),u.bottom=Df(f.bottom,u.bottom),u.left=ko(f.left,u.left),u},hM(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Dye(e){const{width:t,height:n}=GV(e);return{width:t,height:n}}function Fye(e,t,n){const r=Xc(t),i=Zc(t),s=n==="fixed",o=dp(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=zc(0);function u(){c.x=Q2(i)}if(r||!r&&!s)if((sv(t)!=="body"||y0(i))&&(l=X2(t)),r){const h=dp(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else i&&u();s&&!r&&i&&u();const d=i&&!r&&!s?WV(i,l):zc(0),f=o.left+l.scrollLeft-c.x-d.x,p=o.top+l.scrollTop-c.y-d.y;return{x:f,y:p,width:o.width,height:o.height}}function EN(e){return Ql(e).position==="static"}function pM(e,t){if(!Xc(e)||Ql(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Zc(e)===n&&(n=n.ownerDocument.body),n}function KV(e,t){const n=To(e);if(Y2(e))return n;if(!Xc(e)){let i=Ff(e);for(;i&&!wg(i);){if(Xl(i)&&!EN(i))return i;i=Ff(i)}return n}let r=pM(e,t);for(;r&&bye(r)&&EN(r);)r=pM(r,t);return r&&wg(r)&&EN(r)&&!vT(r)?n:r||Sye(e)||n}const Bye=async function(e){const t=this.getOffsetParent||KV,n=this.getDimensions,r=await n(e.floating);return{reference:Fye(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qye(e){return Ql(e).direction==="rtl"}const zye={convertOffsetParentRelativeRectToViewportRelativeRect:Cye,getDocumentElement:Zc,getClippingRect:Mye,getOffsetParent:KV,getElementRects:Bye,getClientRects:Eye,getDimensions:Dye,getScale:Ym,isElement:Xl,isRTL:qye};function YV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $ye(e,t){let n=null,r;const i=Zc(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:h}=u;if(l||t(),!p||!h)return;const x=Fb(f),v=Fb(i.clientWidth-(d+p)),g=Fb(i.clientHeight-(f+h)),y=Fb(d),j={rootMargin:-x+"px "+-v+"px "+-g+"px "+-y+"px",threshold:ko(0,Df(1,c))||1};let _=!0;function N(A){const E=A[0].intersectionRatio;if(E!==c){if(!_)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!YV(u,e.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(N,{...j,root:i.ownerDocument})}catch{n=new IntersectionObserver(N,j)}n.observe(e)}return o(!0),s}function Uye(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=xT(e),d=i||s?[...u?lx(u):[],...lx(t)]:[];d.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const f=u&&l?$ye(u,n):null;let p=-1,h=null;o&&(h=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var j;(j=h)==null||j.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let x,v=c?dp(e):null;c&&g();function g(){const y=dp(e);v&&!YV(v,y)&&n(),v=y,x=requestAnimationFrame(g)}return n(),()=>{var y;d.forEach(w=>{i&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),f==null||f(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(x)}}const Gye=pye,Vye=mye,Wye=dye,Hye=vye,Kye=fye,mM=uye,Yye=gye,Xye=(e,t,n)=>{const r=new Map,i={platform:zye,...n},s={...i.platform,_c:r};return cye(e,t,{...i,platform:s})};var Qye=typeof document<"u",Zye=function(){},C1=Qye?O.useLayoutEffect:Zye;function sw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!sw(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)&&!sw(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function XV(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gM(e,t){const n=XV(e);return Math.round(t*n)/n}function TN(e){const t=O.useRef(e);return C1(()=>{t.current=e}),t}function Jye(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=O.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=O.useState(r);sw(p,r)||h(r);const[x,v]=O.useState(null),[g,y]=O.useState(null),w=O.useCallback(J=>{J!==A.current&&(A.current=J,v(J))},[]),j=O.useCallback(J=>{J!==E.current&&(E.current=J,y(J))},[]),_=s||x,N=o||g,A=O.useRef(null),E=O.useRef(null),k=O.useRef(d),T=c!=null,D=TN(c),P=TN(i),R=TN(u),q=O.useCallback(()=>{if(!A.current||!E.current)return;const J={placement:t,strategy:n,middleware:p};P.current&&(J.platform=P.current),Xye(A.current,E.current,J).then(K=>{const F={...K,isPositioned:R.current!==!1};M.current&&!sw(k.current,F)&&(k.current=F,c0.flushSync(()=>{f(F)}))})},[p,t,n,P,R]);C1(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(J=>({...J,isPositioned:!1})))},[u]);const M=O.useRef(!1);C1(()=>(M.current=!0,()=>{M.current=!1}),[]),C1(()=>{if(_&&(A.current=_),N&&(E.current=N),_&&N){if(D.current)return D.current(_,N,q);q()}},[_,N,q,D,T]);const V=O.useMemo(()=>({reference:A,floating:E,setReference:w,setFloating:j}),[w,j]),H=O.useMemo(()=>({reference:_,floating:N}),[_,N]),Z=O.useMemo(()=>{const J={position:n,left:0,top:0};if(!H.floating)return J;const K=gM(H.floating,d.x),F=gM(H.floating,d.y);return l?{...J,transform:"translate("+K+"px, "+F+"px)",...XV(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:F}},[n,l,H.floating,d.x,d.y]);return O.useMemo(()=>({...d,update:q,refs:V,elements:H,floatingStyles:Z}),[d,q,V,H,Z])}const exe=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?mM({element:r.current,padding:i}).fn(n):{}:r?mM({element:r,padding:i}).fn(n):{}}}},txe=(e,t)=>({...Gye(e),options:[e,t]}),nxe=(e,t)=>({...Vye(e),options:[e,t]}),rxe=(e,t)=>({...Yye(e),options:[e,t]}),ixe=(e,t)=>({...Wye(e),options:[e,t]}),axe=(e,t)=>({...Hye(e),options:[e,t]}),sxe=(e,t)=>({...Kye(e),options:[e,t]}),oxe=(e,t)=>({...exe(e),options:[e,t]});var lxe="Arrow",QV=O.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return a.jsx(wn.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});QV.displayName=lxe;var cxe=QV;function Z2(e){const[t,n]=O.useState(void 0);return os(()=>{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,l;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,l=u.blockSize}else o=e.offsetWidth,l=e.offsetHeight;n({width:o,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var bT="Popper",[ZV,J2]=xl(bT),[uxe,JV]=ZV(bT),eW=e=>{const{__scopePopper:t,children:n}=e,[r,i]=O.useState(null);return a.jsx(uxe,{scope:t,anchor:r,onAnchorChange:i,children:n})};eW.displayName=bT;var tW="PopperAnchor",nW=O.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=JV(tW,n),o=O.useRef(null),l=Qn(t,o),c=O.useRef(null);return O.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||o.current,u!==c.current&&s.onAnchorChange(c.current)}),r?null:a.jsx(wn.div,{...i,ref:l})});nW.displayName=tW;var wT="PopperContent",[dxe,fxe]=ZV(wT),rW=O.forwardRef((e,t)=>{var ne,le,re,he,be,ve;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:x,...v}=e,g=JV(wT,n),[y,w]=O.useState(null),j=Qn(t,ze=>w(ze)),[_,N]=O.useState(null),A=Z2(_),E=(A==null?void 0:A.width)??0,k=(A==null?void 0:A.height)??0,T=r+(s!=="center"?"-"+s:""),D=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},P=Array.isArray(u)?u:[u],R=P.length>0,q={padding:D,boundary:P.filter(pxe),altBoundary:R},{refs:M,floatingStyles:V,placement:H,isPositioned:Z,middlewareData:J}=Jye({strategy:"fixed",placement:T,whileElementsMounted:(...ze)=>Uye(...ze,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[txe({mainAxis:i+k,alignmentAxis:o}),c&&nxe({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?rxe():void 0,...q}),c&&ixe({...q}),axe({...q,apply:({elements:ze,rects:He,availableWidth:ue,availableHeight:Ue})=>{const{width:ut,height:Ee}=He.reference,we=ze.floating.style;we.setProperty("--radix-popper-available-width",`${ue}px`),we.setProperty("--radix-popper-available-height",`${Ue}px`),we.setProperty("--radix-popper-anchor-width",`${ut}px`),we.setProperty("--radix-popper-anchor-height",`${Ee}px`)}}),_&&oxe({element:_,padding:l}),mxe({arrowWidth:E,arrowHeight:k}),p&&sxe({strategy:"referenceHidden",...q})]}),[K,F]=sW(H),$=Yc(x);os(()=>{Z&&($==null||$())},[Z,$]);const B=(ne=J.arrow)==null?void 0:ne.x,z=(le=J.arrow)==null?void 0:le.y,ee=((re=J.arrow)==null?void 0:re.centerOffset)!==0,[te,X]=O.useState();return os(()=>{y&&X(window.getComputedStyle(y).zIndex)},[y]),a.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:Z?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(he=J.transformOrigin)==null?void 0:he.x,(be=J.transformOrigin)==null?void 0:be.y].join(" "),...((ve=J.hide)==null?void 0:ve.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(dxe,{scope:n,placedSide:K,onArrowChange:N,arrowX:B,arrowY:z,shouldHideArrow:ee,children:a.jsx(wn.div,{"data-side":K,"data-align":F,...v,ref:j,style:{...v.style,animation:Z?void 0:"none"}})})})});rW.displayName=wT;var iW="PopperArrow",hxe={top:"bottom",right:"left",bottom:"top",left:"r
775ight"},aW=O.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=fxe(iW,r),o=hxe[s.placedSide];return a.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:a.jsx(cxe,{...i,ref:n,style:{...i.style,display:"block"}})})});aW.displayName=iW;function pxe(e){return e!==null}var mxe=e=>({name:"transformOrigin",options:e,fn(t){var g,y,w;const{placement:n,rects:r,middlewareData:i}=t,o=((g=i.arrow)==null?void 0:g.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,d]=sW(n),f={start:"0%",center:"50%",end:"100%"}[d],p=(((y=i.arrow)==null?void 0:y.x)??0)+l/2,h=(((w=i.arrow)==null?void 0:w.y)??0)+c/2;let x="",v="";return u==="bottom"?(x=o?f:`${p}px`,v=`${-c}px`):u==="top"?(x=o?f:`${p}px`,v=`${r.floating.height+c}px`):u==="right"?(x=`${-c}px`,v=o?f:`${h}px`):u==="left"&&(x=`${r.floating.width+c}px`,v=o?f:`${h}px`),{data:{x,y:v}}}});function sW(e){const[t,n="center"]=e.split("-");return[t,n]}var oW=eW,lW=nW,cW=rW,uW=aW,ON="rovingFocusGroup.onEntryFocus",gxe={bubbles:!1,cancelable:!0},x0="RovingFocusGroup",[mC,dW,vxe]=hT(x0),[yxe,ov]=xl(x0,[vxe]),[xxe,bxe]=yxe(x0),fW=O.forwardRef((e,t)=>a.jsx(mC.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(mC.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(wxe,{...e,ref:t})})}));fW.displayName=x0;var wxe=O.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,p=O.useRef(null),h=Qn(t,p),x=v0(s),[v,g]=od({prop:o,defaultProp:l??null,onChange:c,caller:x0}),[y,w]=O.useState(!1),j=Yc(u),_=dW(n),N=O.useRef(!1),[A,E]=O.useState(0);return O.useEffect(()=>{const k=p.current;if(k)return k.addEventListener(ON,j),()=>k.removeEventListener(ON,j)},[j]),a.jsx(xxe,{scope:n,orientation:r,dir:x,loop:i,currentTabStopId:v,onItemFocus:O.useCallback(k=>g(k),[g]),onItemShiftTab:O.useCallback(()=>w(!0),[]),onFocusableItemAdd:O.useCallback(()=>E(k=>k+1),[]),onFocusableItemRemove:O.useCallback(()=>E(k=>k-1),[]),children:a.jsx(wn.div,{tabIndex:y||A===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:qt(e.onMouseDown,()=>{N.current=!0}),onFocus:qt(e.onFocus,k=>{const T=!N.current;if(k.target===k.currentTarget&&T&&!y){const D=new CustomEvent(ON,gxe);if(k.currentTarget.dispatchEvent(D),!D.defaultPrevented){const P=_().filter(H=>H.focusable),R=P.find(H=>H.active),q=P.find(H=>H.id===v),V=[R,q,...P].filter(Boolean).map(H=>H.ref.current);mW(V,d)}}N.current=!1}),onBlur:qt(e.onBlur,()=>w(!1))})})}),hW="RovingFocusGroupItem",pW=O.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,children:o,...l}=e,c=qc(),u=s||c,d=bxe(hW,n),f=d.currentTabStopId===u,p=dW(n),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:v}=d;return O.useEffect(()=>{if(r)return h(),()=>x()}
vendor: 17,959 bytes, line 775
775,[r,h,x]),a.jsx(mC.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:a.jsx(wn.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:qt(e.onMouseDown,g=>{r?d.onItemFocus(u):g.preventDefault()}),onFocus:qt(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:qt(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Nxe(g,d.orientation,d.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let j=p().filter(_=>_.focusable).map(_=>_.ref.current);if(y==="last")j.reverse();else if(y==="prev"||y==="next"){y==="prev"&&j.reverse();const _=j.indexOf(g.currentTarget);j=d.loop?Sxe(j,_+1):j.slice(_+1)}setTimeout(()=>mW(j))}}),children:typeof o=="function"?o({isCurrentTabStop:f,hasTabStop:v!=null}):o})})});pW.displayName=hW;var jxe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _xe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Nxe(e,t,n){const r=_xe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return jxe[r]}function mW(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Sxe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var jT=fW,_T=pW;function Axe(e){const t=kxe(e),n=O.forwardRef((r,i)=>{const{children:s,...o}=r,l=O.Children.toArray(s),c=l.find(Cxe);if(c){const u=c.props.children,d=l.map(f=>f===c?O.Children.count(u)>1?O.Children.only(null):O.isValidElement(u)?u.props.children:null:f);return a.jsx(t,{...o,ref:i,children:O.isValidElement(u)?O.cloneElement(u,void 0,d):null})}return a.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function kxe(e){const t=O.forwardRef((n,r)=>{const{children:i,...s}=n;if(O.isValidElement(i)){const o=Txe(i),l=Exe(s,i.props);return i.type!==O.Fragment&&(l.ref=r?yd(r,o):o),O.cloneElement(i,l)}return O.Children.count(i)>1?O.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Pxe=Symbol("radix.slottable");function Cxe(e){return O.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Pxe}function Exe(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]=(...l)=>{const c=s(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function Txe(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 gC=["Enter"," "],Oxe=["ArrowDown","PageUp","Home"],gW=["ArrowUp","PageDown","End"],Rxe=[...Oxe,...gW],Ixe={ltr:[...gC,"ArrowRight"],rtl:[...gC,"ArrowLeft"]},Lxe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},b0="Menu",[cx,Mxe,Dxe]=hT(b0),[Tp,vW]=xl(b0,[Dxe,J2,ov]),ej=J2(),yW=ov(),[Fxe,Op]=Tp(b0),[Bxe,w0]=Tp(b0),xW=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:s,modal:o=!0}=e,l=ej(t),[c,u]=O.useState(null),d=O.useRef(!1),f=Yc(s),p=v0(i);return O.useEffect(()=>{const h=()=>{d.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>d.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),a.jsx(oW,{...l,children:a.jsx(Fxe,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:u,children:a.jsx(Bxe,{scope:t,onClose:O.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:o,children:r})})})};xW.displayName=b0;var qxe="MenuAnchor",NT=O.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=ej(n);return a.jsx(lW,{...i,...r,ref:t})});NT.displayName=qxe;var ST="MenuPortal",[zxe,bW]=Tp(ST,{forceMount:void 0}),wW=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,s=Op(ST,t);return a.jsx(zxe,{scope:t,forceMount:n,children:a.jsx(ec,{present:n||s.open,children:a.jsx(q2,{asChild:!0,container:i,children:r})})})};wW.displayName=ST;var hl="MenuContent",[$xe,AT]=Tp(hl),jW=O.forwardRef((e,t)=>{const n=bW(hl,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,s=Op(hl,e.__scopeMenu),o=w0(hl,e.__scopeMenu);return a.jsx(cx.Provider,{scope:e.__scopeMenu,children:a.jsx(ec,{present:r||s.open,children:a.jsx(cx.Slot,{scope:e.__scopeMenu,children:o.modal?a.jsx(Uxe,{...i,ref:t}):a.jsx(Gxe,{...i,ref:t})})})})}),Uxe=O.forwardRef((e,t)=>{const n=Op(hl,e.__scopeMenu),r=O.useRef(null),i=Qn(t,r);return O.useEffect(()=>{const s=r.current;if(s)return cT(s)},[]),a.jsx(kT,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:qt(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Gxe=O.forwardRef((e,t)=>{const n=Op(hl,e.__scopeMenu);return a.jsx(kT,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Vxe=Axe("MenuContent.ScrollLock"),kT=O.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h,disableOutsideScroll:x,...v}=e,g=Op(hl,n),y=w0(hl,n),w=ej(n),j=yW(n),_=Mxe(n),[N,A]=O.useState(null),E=O.useRef(null),k=Qn(t,E,g.onContentChange),T=O.useRef(0),D=O.useRef(""),P=O.useRef(0),R=O.useRef(null),q=O.useRef("right"),M=O.useRef(0),V=x?$2:O.Fragment,H=x?{as:Vxe,allowPinchZoom:!0}:void 0,Z=K=>{var ne,le;const F=D.current+K,$=_().filter(re=>!re.disabled),B=document.activeElement,z=(ne=$.find(re=>re.ref.current===B))==null?void 0:ne.textValue,ee=$.map(re=>re.textValue),te=r0e(ee,F,z),X=(le=$.find(re=>re.textValue===te))==null?void 0:le.ref.current;(function re(he){D.current=he,window.clearTimeout(T.current),he!==""&&(T.current=window.setTimeout(()=>re(""),1e3))})(F),X&&setTimeout(()=>X.focus())};O.useEffect(()=>()=>window.clearTimeout(T.current),[]),lT();const J=O.useCallback(K=>{var $,B;return q.current===(($=R.current)==null?void 0:$.side)&&a0e(K,(B=R.current)==null?void 0:B.area)},[]);return a.jsx($xe,{scope:n,searchRef:D,onItemEnter:O.useCallback(K=>{J(K)&&K.preventDefault()},[J]),onItemLeave:O.useCallback(K=>{var F;J(K)||((F=E.current)==null||F.focus(),A(null))},[J]),onTriggerLeave:O.useCallback(K=>{J(K)&&K.preventDefault()},[J]),pointerGraceTimerRef:P,onPointerGraceIntentChange:O.useCallback(K=>{R.current=K},[]),children:a.jsx(V,{...H,children:a.jsx(B2,{asChild:!0,trapped:i,onMountAutoFocus:qt(s,K=>{var F;K.preventDefault(),(F=E.current)==null||F.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:a.jsx(F2,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h,children:a.jsx(jT,{asChild:!0,...j,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:N,onCurrentTabStopIdChange:A,onEntryFocus:qt(c,K=>{y.isUsingKeyboardRef.current||K.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsx(cW,{role:"menu","aria-orientation":"vertical","data-state":FW(g.open),"data-radix-menu-content":"",dir:y.dir,...w,...v,ref:k,style:{outline:"none",...v.style},onKeyDown:qt(v.onKeyDown,K=>{const $=K.target.closest("[data-radix-menu-content]")===K.currentTarget,B=K.ctrlKey||K.altKey||K.metaKey,z=K.key.length===1;$&&(K.key==="Tab"&&K.preventDefault(),!B&&z&&Z(K.key));const ee=E.current;if(K.target!==ee||!Rxe.includes(K.key))return;K.preventDefault();const X=_().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);gW.includes(K.key)&&X.reverse(),t0e(X)}),onBlur:qt(e.onBlur,K=>{K.currentTarget.contains(K.target)||(window.clearTimeout(T.current),D.current="")}),onPointerMove:qt(e.onPointerMove,ux(K=>{const F=K.target,$=M.current!==K.clientX;if(K.currentTarget.contains(F)&&$){const B=K.clientX>M.current?"right":"left";q.current=B,M.current=K.clientX}}))})})})})})})});jW.displayName=hl;var Wxe="MenuGroup",PT=O.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return a.jsx(wn.div,{role:"group",...r,ref:t})});PT.displayName=Wxe;var Hxe="MenuLabel",_W=O.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return a.jsx(wn.div,{...r,ref:t})});_W.displayName=Hxe;var ow="MenuItem",vM="menu.itemSelect",tj=O.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,s=O.useRef(null),o=w0(ow,e.__scopeMenu),l=AT(ow,e.__scopeMenu),c=Qn(t,s),u=O.useRef(!1),d=()=>{const f=s.current;if(!n&&f){const p=new CustomEvent(vM,{bubbles:!0,cancelable:!0});f.addEventListener(vM,h=>r==null?void 0:r(h),{once:!0}),sV(f,p),p.defaultPrevented?u.current=!1:o.onClose()}};return a.jsx(NW,{...i,ref:c,disabled:n,onClick:qt(e.onClick,d),onPointerDown:f=>{var p;(p=e.onPointerDown)==null||p.call(e,f),u.current=!0},onPointerUp:qt(e.onPointerUp,f=>{var p;u.current||(p=f.currentTarget)==null||p.click()}),onKeyDown:qt(e.onKeyDown,f=>{const p=l.searchRef.current!=="";n||p&&f.key===" "||gC.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});tj.displayName=ow;var NW=O.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...s}=e,o=AT(ow,n),l=yW(n),c=O.useRef(null),u=Qn(t,c),[d,f]=O.useState(!1),[p,h]=O.useState("");return O.useEffect(()=>{const x=c.current;x&&h((x.textContent??"").trim())},[s.children]),a.jsx(cx.ItemSlot,{scope:n,disabled:r,textValue:i??p,children:a.jsx(_T,{asChild:!0,...l,focusable:!r,children:a.jsx(wn.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:u,onPointerMove:qt(e.onPointerMove,ux(x=>{r?o.onItemLeave(x):(o.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:qt(e.onPointerLeave,ux(x=>o.onItemLeave(x))),onFocus:qt(e.onFocus,()=>f(!0)),onBlur:qt(e.onBlur,()=>f(!1))})})})}),Kxe="MenuCheckboxItem",SW=O.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return a.jsx(EW,{scope:e.__scopeMenu,checked:n,children:a.jsx(tj,{role:"menuitemcheckbox","aria-checked":lw(n)?"mixed":n,...i,ref:t,"data-state":ET(n),onSelect:qt(i.onSelect,()=>r==null?void 0:r(lw(n)?!0:!n),{checkForDefaultPrevented:!1})})})});SW.displayName=Kxe;var AW="MenuRadioGroup",[Yxe,Xxe]=Tp(AW,{value:void 0,onValueChange:()=>{}}),kW=O.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,s=Yc(r);return a.jsx(Yxe,{scope:e.__scopeMenu,value:n,onValueChange:s,children:a.jsx(PT,{...i,ref:t})})});kW.displayName=AW;var PW="MenuRadioItem",CW=O.forwardRef((e,t)=>{const{value:n,...r}=e,i=Xxe(PW,e.__scopeMenu),s=n===i.value;return a.jsx(EW,{scope:e.__scopeMenu,checked:s,children:a.jsx(tj,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":ET(s),onSelect:qt(r.onSelect,()=>{var o;return(o=i.onValueChange)==null?void 0:o.call(i,n)},{checkForDefaultPrevented:!1})})})});CW.displayName=PW;var CT="MenuItemIndicator",[EW,Qxe]=Tp(CT,{checked:!1}),TW=O.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,s=Qxe(CT,n);return a.jsx(ec,{present:r||lw(s.checked)||s.checked===!0,children:a.jsx(wn.span,{...i,ref:t,"data-state":ET(s.checked)})})});TW.displayName=CT;var Zxe="MenuSeparator",OW=O.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return a.jsx(wn.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});OW.displayName=Zxe;var Jxe="MenuArrow",RW=O.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=ej(n);return a.jsx(uW,{...i,...r,ref:t})});RW.displayName=Jxe;var e0e="MenuSub",[R$e,IW]=Tp(e0e),Py="MenuSubTrigger",LW=O.forwardRef((e,t)=>{const n=Op(Py,e.__scopeMenu),r=w0(Py,e.__scopeMenu),i=IW(Py,e.__scopeMenu),s=AT(Py,e.__scopeMenu),o=O.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=s,u={__scopeMenu:e.__scopeMenu},d=O.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return O.useEffect(()=>d,[d]),O.useEffect(()=>{const f=l.current;return()=>{window.clearTimeout(f),c(null)}},[l,c]),a.jsx(NT,{asChild:!0,...u,children:a.jsx(NW,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":FW(n.open),...e,ref:yd(t,i.onTriggerChange),onClick:f=>{var p;(p=e.onClick)==null||p.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:qt(e.onPointerMove,ux(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(s.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:qt(e.onPointerLeave,ux(f=>{var h,x;d();const p=(h=n.content)==null?void 0:h.getBoundingClientRect();if(p){const v=(x=n.content)==null?void 0:x.dataset.side,g=v==="right",y=g?-5:5,w=p[g?"left":"right"],j=p[g?"right":"left"];s.onPointerGraceIntentChange({area:[{x:f.clientX+y,y:f.clientY},{x:w,y:p.top},{x:j,y:p.top},{x:j,y:p.bottom},{x:w,y:p.bottom}],side:v}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:qt(e.onKeyDown,f=>{var h;const p=s.searchRef.current!=="";e.disabled||p&&f.key===" "||Ixe[r.dir].includes(f.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),f.preventDefault())})})})});LW.displayName=Py;var MW="MenuSubContent",DW=O.forwardRef((e,t)=>{const n=bW(hl,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,s=Op(hl,e.__scopeMenu),o=w0(hl,e.__scopeMenu),l=IW(MW,e.__scopeMenu),c=O.useRef(null),u=Qn(t,c);return a.jsx(cx.Provider,{scope:e.__scopeMenu,children:a.jsx(ec,{present:r||s.open,children:a.jsx(cx.Slot,{scope:e.__scopeMenu,children:a.jsx(kT,{id:l.contentId,"aria-labelledby":l.triggerId,...i,ref:u,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;o.isUsingKeyboardRef.current&&((f=c.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:qt(e.onFocusOutside,d=>{d.target!==l.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:qt(e.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:qt(e.onKeyDown,d=>{var h;const f=d.currentTarget.contains(d.target),p=Lxe[o.dir].includes(d.key);f&&p&&(s.onOpenChange(!1),(h=l.trigger)==null||h.focus(),d.preventDefault())})})})})})});DW.displayName=MW;function FW(e){return e?"open":"closed"}function lw(e){return e==="indeterminate"}function ET(e){return lw(e)?"indeterminate":e?"checked":"unchecked"}function t0e(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function n0e(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function r0e(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let o=n0e(e,Math.max(s,0));i.length===1&&(o=o.filter(u=>u!==n));const c=o.find(u=>u.toLowerCase().startsWith(i.toLowerCase()));return c!==n?c:void 0}function i0e(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 l=t[s],c=t[o],u=l.x,d=l.y,f=c.x,p=c.y;d>r!=p>r&&n<(f-u)*(r-d)/(p-d)+u&&(i=!i)}return i}function a0e(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return i0e(n,t)}function ux(e){return t=>t.pointerType==="mouse"?e(t):void 0}var s0e=xW,o0e=NT,l0e=wW,c0e=jW,u0e=PT,d0e=_W,f0e=tj,h0e=SW,p0e=kW,m0e=CW,g0e=TW,v0e=OW,y0e=RW,x0e=LW,b0e=DW,nj="DropdownMenu",[w0e]=xl(nj,[vW]),Cs=vW(),[j0e,BW]=w0e(nj),qW=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:s,onOpenChange:o,modal:l=!0}=e,c=Cs(t),u=O.useRef(null),[d,f]=od({prop:i,defaultProp:s??!1,onChange:o,caller:nj});return a.jsx(j0e,{scope:t,triggerId:qc(),triggerRef:u,contentId:qc(),open:d,onOpenChange:f,onOpenToggle:O.useCallback(()=>f(p=>!p),[f]),modal:l,children:a.jsx(s0e,{...c,open:d,onOpenChange:f,dir:r,modal:l,children:n})})};qW.displayName=nj;var zW="DropdownMenuTrigger",$W=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,s=BW(zW,n),o=Cs(n);return a.jsx(o0e,{asChild:!0,...o,children:a.jsx(wn.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:yd(t,s.triggerRef),onPointerDown:qt(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(s.onOpenToggle(),s.open||l.preventDefault())}),onKeyDown:qt(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&s.onOpenToggle(),l.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});$W.displayName=zW;var _0e="DropdownMenuPortal",UW=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Cs(t);return a.jsx(l0e,{...r,...n})};UW.displayName=_0e;var GW="DropdownMenuContent",VW=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=BW(GW,n),s=Cs(n),o=O.useRef(!1);return a.jsx(c0e,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...r,ref:t,onCloseAutoFocus:qt(e.onCloseAutoFocus,l=>{var c;o.current||(c=i.triggerRef.current)==null||c.focus(),o.current=!1,l.preventDefault()}),onInteractOutside:qt(e.onInteractOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;(!i.modal||d)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});VW.displayName=GW;var N0e="DropdownMenuGroup",S0e=O.forwardRef((e,t)=>
775{const{__scopeDropdownMenu:n,...r}=e,i=Cs(n);return a.jsx(u0e,{...i,...r,ref:t})});S0e.displayName=N0e;var A0e="DropdownMenuLabel",WW=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Cs(n);return a.jsx(d0e,{...i,...r,ref:t})});WW.displayName=A0e;var k0e="DropdownMenuItem",HW=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Cs(n);return a.jsx(f0e,{...i,...r,ref:t})});HW.displayName=k0e;var P0e="DropdownMenuCheckboxItem",KW=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Cs(n);return a.jsx(h0e,{...i,...r,ref:t})});KW.displayName=P0e;var C0e="DropdownMenuRadioGroup",E0e=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Cs(n);return a.jsx(p0e,{...i,...r,ref:t})});E0e.displayName=C0e;var T0e="DropdownMenuRadioItem",YW=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Cs(n);return a.jsx(m0e,{...i,...r,ref:t})});YW.displayName=T0e;var O0e="DropdownMenuItemIndicator",XW=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Cs(n);return a.jsx(g0e,{...i,...r,ref:t})});XW.displayName=O0e;var R0e="DropdownMenuSeparator",QW=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Cs(n);return a.jsx(v0e,{...i,...r,ref:t})});QW.displayName=R0e;var I0e="DropdownMenuArrow",L0e=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Cs(n);return a.jsx(y0e,{...i,...r,ref:t})});L0e.displayName=I0e;var M0e="DropdownMenuSubTrigger",ZW=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Cs(n);return a.jsx(x0e,{...i,...r,ref:t})});ZW.displayName=M0e;var D0e="DropdownMenuSubContent",JW=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Cs(n);return a.jsx(b0e,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});JW.displayName=D0e;var F0e=qW,B0e=$W,q0e=UW,eH=VW,tH=WW,nH=HW,rH=KW,iH=YW,aH=XW,sH=QW,oH=ZW,lH=JW;const cH=F0e,uH=B0e,z0e=O.forwardRef(({className:e,inset:t,children:n,...r},i)=>a.jsxs(oH,{ref:i,className:ln("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,a.jsx(one,{className:"ml-auto"})]}));z0e.displayName=oH.displayName;const $0e=O.forwardRef(({className:e,...t},n)=>a.jsx(lH,{ref:n,className:ln("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-[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),...t}));$0e.displayName=lH.displayName;const TT=O.forwardRef(({className:e,sideOffset:t=4,...n},r)=>a.jsx(q0e,{children:a.jsx(eH,{ref:r,sideOffset:t,className:ln("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","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-[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})}));TT.displayName=eH.displayName;const OT=O.forwardRef(({className:e,inset:t,...n},r)=>a.jsx(nH,{ref:r,className:ln("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));OT.displayName=nH.displayName;const U0e=O.forwardRef(({className:e,children:t,checked:n,...r},i)=>a.jsxs(rH,{ref:i,className:ln("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(aH,{children:a.jsx(Oi,{className:"h-4 w-4"})})}),t]}));U0e.displayName=rH.displayName;const G0e=O.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(iH,{ref:r,className:ln("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(aH,{children:a.jsx(T9,{className:"h-2 w-2 fill-current"})})}),t]}));G0e.displayName=iH.displayName;const dH=O.forwardRef(({className:e,inset:t,...n},r)=>a.jsx(tH,{ref:r,className:ln("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));dH.displayName=tH.displayName;const fH=O.forwardRef(({className:e,...t},n)=>a.jsx(sH,{ref:n,className:ln("-mx-1 my-1 h-px bg-muted",e),...t}));fH.displayName=sH.displayName;const Nm={visitor:{label:"Visitor",credits:5,assessmentsPerDay:1,reportsPerMonth:2,microToolsPerDay:3,canExport:!1,canSave:!1,canBenchmark:!1},free:{label:"Free",credits:20,assessmentsPerDay:3,reportsPerMonth:5,microToolsPerDay:10,canExport:!1,canSave:!0,canBenchmark:!1},premium:{label:"Premium",credits:999,assessmentsPerDay:999,reportsPerMonth:999,microToolsPerDay:999,canExport:!0,canSave:!0,canBenchmark:!0}},hH=O.createContext(null);function V0e({children:e}){const[t,n]=O.useState(null),[r,i]=O.useState("visitor"),[s,o]=O.useState(Nm.visitor.credits),[l,c]=O.useState({assessments:0,microTools:0,reports:0});O.useEffect(()=>{Ne.auth.isAuthenticated().then(async y=>{var w;if(y){const j=await Ne.auth.me();n(j);const _=(j==null?void 0:j.role)||"user",N=(j==null?void 0:j.tier)||"free";let A=N;
775N==="premium"&&(j!=null&&j.trial_ends_at)&&new Date(j.trial_ends_at)<new Date&&(A="free",await Ne.auth.updateMe({tier:"free",trial_expired:!0}));const E=(j==null?void 0:j.credits)??((w=Nm[A])==null?void 0:w.credits)??Nm.free.credits;i(A==="premium"||_==="admin"?"premium":"free"),o(E)}else i("visitor"),o(Nm.visitor.credits)})},[]);const u=Nm[r]||Nm.visitor,d=r==="premium",f=r==="free",p=r==="visitor",h=(y=1)=>{o(w=>Math.max(0,w-y))},x=y=>{c(w=>({...w,[y]:(w[y]||0)+1}))},v=(y=1)=>s>=y,g=y=>{if(d)return!0;const w=y==="assessments"?"assessmentsPerDay":y==="microTools"?"microToolsPerDay":"reportsPerMonth";return l[y]<u[w]&&s>0};return a.jsx(hH.Provider,{value:{user:t,tierKey:r,tier:u,credits:s,usageToday:l,isPremium:d,isFree:f,isVisitor:p,consumeCredit:h,recordUsage:x,hasCredits:v,canDoAction:g},children:e})}function Rp(){const e=O.useContext(hH);if(!e)throw new Error("useUserTier must be used within UserTierProvider");return e}function W0e(){const{credits:e,tier:t,tierKey:n,isPremium:r,isVisitor:i,usageToday:s}=Rp();return r?a.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1 rounded-full bg-amber-50 border border-amber-200",children:[a.jsx(Wc,{className:"w-3 h-3 text-amber-500"}),a.jsx("span",{className:"text-xs font-semibold text-amber-700",children:"Premium"})]}):i?a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(xe,{size:"sm",variant:"outline",className:"h-7 text-xs gap-1.5",onClick:()=>Ne.auth.redirectToLogin(window.location.href),children:[a.jsx(bre,{className:"w-3 h-3"})," Login"]}),a.jsx(xe,{size:"sm",className:"h-7 text-xs gap-1.5 bg-primary hover:bg-primary/90",asChild:!0,children:a.jsxs(Dt,{to:"/pricing",children:[a.jsx(A2,{className:"w-3 h-3"})," Sign Up Free"]})})]}):(Math.round(e/t.credits*100),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-muted border text-xs",children:[a.jsx(Zu,{className:"w-3 h-3 text-primary"}),a.jsx("span",{className:"font-semibold text-foreground",children:e}),a.jsx("span",{className:"text-muted-foreground",children:"credits"})]}),a.jsx(xe,{size:"sm",className:"h-7 text-xs gap-1 bg-primary hover:bg-primary/90",asChild:!0,children:a.jsxs(Dt,{to:"/pricing",children:[a.jsx(Wc,{className:"w-3 h-3"})," Upgrade"]})})]}))}const yM={en:a.jsxs("svg",{viewBox:"0 0 60 40",preserveAspectRatio:"none",className:"block w-full h-full",children:[a.jsx("rect",{width:"60",height:"40",fill:"#012169"}),a.jsx("path",{d:"M0,0 L60,40 M60,0 L0,40",stroke:"#fff",strokeWidth:"8"}),a.jsx("path",{d:"M0,0 L60,40 M60,0 L0,40",stroke:"#C8102E",strokeWidth:"3"}),a.jsx("path",{d:"M30,0 V40 M0,20 H60",stroke:"#fff",strokeWidth:"10"}),a.jsx("path",{d:"M30,0 V40 M0,20 H60",stroke:"#C8102E",strokeWidth:"5"})]}),fr:a.jsxs("svg",{viewBox:"0 0 60 40",preserveAspectRatio:"none",className:"block w-full h-full",children:[a.jsx("rect",{width:"20",height:"40",fill:"#002654"}),a.jsx("rect",{x:"20",width:"20",height:"40",fill:"#fff"}),a.jsx("rect",{x:"40",width:"20",height:"40",fill:"#ED2939"})]}),de:a.jsxs("svg",{viewBox:"0 0 60 40",preserveAspectRatio:"none",className:"block w-full h-full",children:[a.jsx("rect",{width:"60",height:"13.33",fill:"#000"}),a.jsx("rect",{y:"13.33",width:"60",height:"13.33",fill:"#DD0000"}),a.jsx("rect",{y:"26.66",width:"60",height:"13.34",fill:"#FFCE00"})]}),es:a.jsxs("svg",{viewBox:"0 0 60 40",preserveAspectRatio:"none",className:"block w-full h-full",children:[a.jsx("rect",{width:"60",height:"40",fill:"#AA151B"}),a.jsx("rect",{y:"10",width:"60",height:"20",fill:"#F1BF00"}),a.jsx("rect",{width:"60",height:"10",fill:"#AA151B"}),a.jsx("rect",{y:"30",width:"60",height:"10",fill:"#AA151B"})]}),sk:a.jsxs("svg",{viewBox:"0 0 60 40",preserveAspectRatio:"none",className:"block w-full h-full",children:[a.jsx("rect",{width:"60",height:"13.33",fill:"#fff"}),a.jsx("rect",{y:"13.33",width:"60",height:"13.33",fill:"#0B4EA2"}),a.jsx("rect",{y:"26.66",width:"60",height:"13.34",fill:"#EE1C25"})]})};function xM({code:e,className:t=""}){return a.jsx("span",{className:`inline-flex items-center justify-center overflow-hidden rounded-sm ring-1 ring-black/10 ${t}`,children:yM[e]||yM.en})}function vC({compact:e=!1,showLabel:t=!1}){const{lang:n,setLang:r,languages:i,t:s}=Zt(),o=i[n];return a.jsxs(cH,{children:[a.jsx(uH,{asChild:!0,children:a.jsxs(xe,{variant:"ghost",size:"sm",className:"gap-2 text-muted-foreground hover:text-foreground px-2",children:[a.jsx(xM,{code:n,className:"w-5 h-3.5"}),t&&a.jsx("span",{className:"text-sm font-medium",children:o==null?void 0:o.nativeName})]})}),a.jsxs(TT,{align:"end",className:"w-52",children:[a.jsx(dH,{children:s("common.language")}),a.jsx(fH,{}
775),Object.values(i).map(l=>a.jsxs(OT,{onClick:()=>r(l.code),className:"flex items-center justify-between cursor-pointer",children:[a.jsxs("span",{className:"flex items-center gap-3",children:[a.jsx(xM,{code:l.code,className:"w-6 h-4"}),a.jsx("span",{className:"text-sm font-medium",children:l.nativeName})]}),n===l.code&&a.jsx(Oi,{className:"w-4 h-4 text-primary"})]},l.code))]})]})}const H0e=[{labelKey:"nav.aiTools",children:[{labelKey:"nav.healthCheck",href:"/health-check",icon:ns,descKey:"nav.healthCheckDesc"},{labelKey:"nav.policyGenerator",href:"/policy-generator",icon:Xn,descKey:"nav.policyGenDesc"},{labelKey:"nav.riskAnalyzer",href:"/risk-analyzer",icon:ja,descKey:"nav.riskAnalyzerDesc"},{labelKey:"nav.decisionEngine",href:"/decision-engine",icon:Io,descKey:"nav.decisionEngineDesc"}]},{labelKey:"nav.microTools",href:"/micro-tools"},{labelKey:"nav.intelligence",href:"/intelligence"},{labelKey:"footer.encyclopedia",href:"/encyclopedia"},{labelKey:"nav.glossary",href:"/glossary"},{labelKey:"nav.dashboard",href:"/dashboard"},{labelKey:"nav.pricing",href:"/pricing"}];function K0e(){const e=vd(),[t,n]=O.useState(!1),{isVisitor:r}=Rp(),{t:i}=Zt(),[s,o]=O.useState(null),[l,c]=O.useState(!1),[u,d]=O.useState(0),f=H0e.map(p=>{var h;return{...p,label:i(p.labelKey),children:(h=p.children)==null?void 0:h.map(x=>({...x,label:i(x.labelKey),desc:i(x.descKey)}))}});return Ae.useEffect(()=>{Ne.auth.me().then(async p=>{p&&(o(p),c(p.role==="admin"))}).catch(()=>c(!1))},[]),Ae.useEffect(()=>{if(!l)return;let p=!0;const h=async()=>{try{const[v,g]=await Promise.all([Ne.entities.PartnerApplication.filter({status:"submitted"},"-created_date",100),Ne.entities.ContentCreatorApplication.filter({application_status:"submitted"},"-created_date",100)]);p&&d(v.length+g.length)}catch{p&&d(0)}};h();const x=setInterval(h,6e4);return()=>{p=!1,clearInterval(x)}},[l]),a.jsx("header",{className:"sticky top-0 z-50 bg-card/80 backdrop-blur-xl border-b border-border/50",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"flex items-center justify-between h-16",children:[a.jsx(Dt,{to:"/",className:"flex items-center gap-2.5 group",children:a.jsx("img",{src:"https://media.base44.com/images/public/6a03f8b88f6f721dccc673fe/607bf6f79_Governancepedialogo.png",alt:"Governancepedia",className:"h-9 w-auto"})}),a.jsx("nav",{className:"hidden lg:flex items-center gap-1",children:f.map(p=>p.children?a.jsxs(cH,{children:[a.jsx(uH,{asChild:!0,children:a.jsxs(xe,{variant:"ghost",size:"sm",className:"gap-1.5 text-muted-foreground hover:text-foreground",children:[a.jsx(Xr,{className:"w-3.5 h-3.5 text-primary"}),p.label,a.jsx(N2,{className:"w-3 h-3"})]})}),a.jsx(TT,{align:"center",className:"w-72",children:p.children.map(h=>a.jsx(OT,{asChild:!0,children:a.jsxs(Dt,{to:h.href,className:"flex items-start gap-3 p-3",children:[a.jsx("div",{className:"w-8 h-8 rounded-md bg-primary/10 flex items-center justify-center mt-0.5",children:a.jsx(h.icon,{className:"w-4 h-4 text-primary"})}),a.jsxs("div",{children:[a.jsx("div",{className:"font-medium text-sm",children:h.label}),a.jsx("div",{className:"text-xs text-muted-foreground",children:h.desc})]})]})},h.href))})]},p.label):a.jsx(xe,{variant:"ghost",size:"sm",asChild:!0,className:e.pathname===p.href?"text-foreground":"text-muted-foreground hover:text-foreground",children:a.jsx(Dt,{to:p.href,children:p.label})},p.href))}),a.jsxs("div",{className:"hidden lg:flex items-center gap-2",children:[a.jsx(W0e,{}),a.jsx(vC,{showLabel:!0}),l&&a.jsx("div",{className:"flex gap-2",children:a.jsx(xe,{variant:"outline",size:"sm",asChild:!0,className:"gap-1.5 relative",children:a.jsxs(Dt,{to:"/admin",children:[a.jsx(ls,{className:"w-4 h-4"}),i("nav.admin"),u>0&&a.jsx("span",{className:"absolute -top-1.5 -right-1.5 min-w-[18px] h-[18px] px-1 flex items-center justify-center rounded-full bg-red-500 text-white text-[10px] font-bold leading-none ring-2 ring-card",children:u>99?"99+":u})]})})}),!r&&a.jsxs(xe,{variant:"ghost",size:"sm",className:"gap-1.5 text-muted-foreground hover:text-foreground",onClick:()=>Ne.auth.logout("/"),children:[a.jsx(WR,{className:"w-4 h-4"})," ",i("nav.signOut")]})]}),a.jsxs(Bve,{open:t,onOpenChange:n,children:[a.jsx(qve,{asChild:!0,className:"lg:hidden",children:a.jsx(xe,{variant:"ghost",size:"icon",children:a.jsx(Sre,{className:"w-5 h-5"})})}),a.jsx(BV,{side:"right",className:"w-80 p-0",children:a.jsxs("div",{className:"p-6 space-y-6",children:[a.jsxs(Dt,{to:"/",className:"flex items-center gap-2.5",onClick:()=>n(!1),children:[a.jsx("img",{src:"https://media.base44.com/images/public/6a03f8b88f6f721dccc673fe/607bf6f79_Governancepedialogo.png",alt:"Governancepedia",className:"h-9 w-auto"}),a.jsx("span",{className:"font-heading font-bold text-lg",children:"Governancepedia"})]}),a.jsx("nav",{className:"space-y-1",children:f.map(p=>p.children?a.jsxs("div",{className:"space-y-1",children:[a.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider px-3 py-2",children:p.label}),p.children.map(h=>a.jsxs(Dt,{to:h.href,onClick:()=>n(!1),className:"flex items-center gap-3 px-3 py-2.5 rounded-lg hover:bg-muted transition-colors",children:[a.jsx(h.icon,{className:"w-4 h-4 text-primary"}),a.jsx("span",{className:"text-sm font-medium",children:h.label})]},h.href))]},p.label):a.jsx(Dt,{to:p.href,onClick:()=>n(!1),className:"flex items-center gap-3 px-3 py-2.5 rounded-lg hover:bg-muted transition-colors",children:a.jsx("span",{className:"text-sm font-medium",children:p.label})},p.href))}),a.jsxs("div",{className:"space-y-2 pt-4 border-t",children:[a.jsx("div",{className:"flex justify-center",children:a.jsx(vC,{})}),a.jsxs(xe,{className:"w-full gap-1.5",size:"sm",children:[a.jsx(Xr,{className:"w-3.5 h-3.5"}),i("nav.getStarted")]}),!r&&a.jsxs(xe,{variant:"outline",className:"w-full gap-1.5",size:"sm",onClick:()=>Ne.auth.logout("/"),children:[a.jsx(WR,{className:"w-3.5 h-3.5"})," ",i("nav.signOut")]})]})]})})]})]})})})}function Y0e({placement:e="banner",targetRole:t="user"}){const[n,r]=O.useState(null),[i,s]=O.useState(!0),[o,l]=O.useState(null);O.useEffect(()=>{(async()=>{try{const d=await Ne.auth.me();l(d)}catch{l(null)}})()},[]),O.useEffect(()=>{o!==null&&(async()=>{try{const d=await Ne.entities.Advertisement.filter({placement:e,status:"active"},null,1);if(d.length>0){const f=d[0];if(f.target_roles&&o&&!f.target_roles.includes(o.role))return;r(f),f.impressions!==void 0&&await Ne.entities.Advertisement.update(f.id,{impressions:(f.impressions||0)+1})}}catch(d){console.error("Failed to fetch ad:",d)}})()},[e,o]);const c=async()=>{n&&n.click_url&&(await Ne.entities.Advertisement.update(n.id,{clicks:(n.clicks||0)+1}),window.open(n.click_url,"_blank"))};return!n||!i?null:e==="banner"?a.jsx("div",{className:"w-full bg-gradient-to-r from-primary/10 to-primary/5 border-b border-border p-4",children:a.jsxs("div",{className:"max-w-7xl mx-auto flex items-center justify-between gap-4",children:[a.jsxs("div",{className:"flex-1 flex items-center gap-4",children:[n.image_url&&a.jsx("img",{src:n.image_url,alt:n.title,className:"h-16 object-contain"}),a.jsxs("div",{children:[a.jsx("p",{className:"font-semibold",children:n.title}),a.jsx("p",{className:"text-sm text-muted-foreground",children:n.description})]})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(xe,{size:"sm",onClick:c,className:"shrink-0",children:"Learn More"}),a.jsx(xe,{variant:"ghost",size:"icon",onClick:()=>s(!1),className:"shrink-0",children:a.jsx(ss,{className:"w-4 h-4"})})]})]})}):e==="sidebar"?a.jsxs("div",{className:"bg-card border rounded-lg p-4 space-y-3",children:[n.image_url&&a.jsx("img",{src:n.image_url,alt:n.title,className:"w-full h-32 object-cover rounded"}),a.jsxs("div",{children:[a.jsx("p",{className:"font-semibold text-sm",children:n.title}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:n.description})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(xe,{size:"sm",onClick:c,className:"flex-1",children:"View"}),a.jsx(xe,{variant:"ghost",size:"icon",onClick:()=>s(!1),children:a.jsx(ss,{className:"w-4 h-4"})})]})]}):null}const X0e={legal:_4,privacy:ls,community:Mi,intellectual_property:$1,other:Xn};function Q0e({placement:e="footer",className:t="",linkClassName:n=""}){const r=vd(),{data:i=[]}=Qt({queryKey:["policy-nav",e],queryFn:()=>Ne.entities.PolicyPage.filter({status:"published"}),staleTime:300*1e3}),s=i.filter(o=>e==="header"?o.show_in_header:o.show_in_footer).sort((o,l)=>(o.display_order||0)-(l.display_order||0));return s.length?a.jsx("nav",{className:t,children:s.map(o=>{const l=X0e[o.category]||Xn,c=r.pathname===`/policy/${o.slug}`;return a.jsxs(Dt,{to:`/policy/${o.slug}`,className:`${n} ${c?"text-primary font-medium":""} flex items-center gap-1.5`,children:[a.jsx(l,{className:"w-3 h-3 flex-shrink-0"}),o.tab_label||o.title]},o.id)})}):null}const Z0e={facebook:"hover:text-[#1877F2] hover:border-[#1877F2]/30 hover:bg-[#1877F2]/10",linkedin:"hover:text-[#0A66C2] hover:border-[#0A66C2]/30 hover:bg-[#0A66C2]/10",youtube:"hover:text-[#FF0000] hover:border-[#FF0000]/30 hover:bg-[#FF0000]/10",twitter:"hover:text-foreground hover:border-border hover:bg-muted",x:"hover:text-foreground hover:border-border hover:bg-muted",instagram:"hover:text-[#E4405F] hover:border-[#
775E4405F]/30 hover:bg-[#E4405F]/10"};function pH({placement:e="landing",size:t="md",className:n=""}){const{data:r=[]}=Qt({queryKey:["social-links"],queryFn:()=>Ne.entities.SocialMedia.list("display_order",20),staleTime:3e5}),i=r.filter(l=>l.is_enabled).filter(l=>e==="footer"?l.show_in_footer:e==="floating"?l.show_in_floating_bar:l.show_on_landing).sort((l,c)=>(l.display_order||0)-(c.display_order||0));if(!i.length)return null;const s=t==="sm"?"w-4 h-4":t==="lg"?"w-6 h-6":"w-5 h-5",o=t==="sm"?"w-8 h-8":t==="lg"?"w-12 h-12":"w-10 h-10";return a.jsx("div",{className:`flex items-center gap-2 ${n}`,children:i.map(l=>{var u;const c=Z0e[(u=l.icon)==null?void 0:u.toLowerCase()]||"hover:text-primary hover:border-primary/30 hover:bg-primary/10";return a.jsx("a",{href:l.url,target:"_blank",rel:"noopener noreferrer","aria-label":l.label||`Follow Governancepedia on ${l.platform}`,title:l.label||`Follow Governancepedia on ${l.platform}`,className:`${o} flex items-center justify-center rounded-full border border-border/60 text-muted-foreground transition-all duration-200 ${c} hover:scale-110 hover:shadow-sm`,children:a.jsx(J1,{icon:l.icon,className:s})},l.id)})})}function J0e(){const{t:e}=Zt(),t=[{title:e("nav.aiTools"),links:[{label:e("nav.healthCheck"),href:"/health-check"},{label:e("nav.policyGenerator"),href:"/policy-generator"},{label:e("nav.riskAnalyzer"),href:"/risk-analyzer"},{label:e("nav.decisionEngine"),href:"/decision-engine"}]},{title:e("footer.platform"),links:[{label:e("nav.microTools"),href:"/micro-tools"},{label:e("nav.intelligence"),href:"/intelligence"},{label:e("footer.encyclopedia"),href:"/encyclopedia"},{label:e("footer.glossary"),href:"/glossary"},{label:e("nav.dashboard"),href:"/dashboard"}]},{title:e("footer.ecosystem"),links:[{label:e("nav.partners"),href:"/partners"},{label:"My Premium Governance",href:"https://mypremiumgovernance.com",external:!0}]}];return a.jsx("footer",{className:"border-t border-border/50 bg-accent/30",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:[a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 mb-12",children:[a.jsxs("div",{className:"col-span-2 md:col-span-1",children:[a.jsxs(Dt,{to:"/",className:"flex items-center gap-2.5 mb-4",children:[a.jsx("img",{src:"https://media.base44.com/images/public/6a03f8b88f6f721dccc673fe/607bf6f79_Governancepedialogo.png",alt:"Governancepedia",className:"h-8 w-auto"}),a.jsx("span",{className:"font-heading font-bold text-base",children:"Governancepedia"})]}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-4",children:e("footer.description")}),a.jsx(pH,{placement:"footer",size:"sm"})]}),t.map(n=>a.jsxs("div",{children:[a.jsx("h4",{className:"font-heading font-semibold text-sm mb-4",children:n.title}),a.jsx("ul",{className:"space-y-2.5",children:n.links.map(r=>a.jsx("li",{children:r.external?a.jsxs("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover:text-foreground transition-colors inline-flex items-center gap-1",children:[r.label,a.jsx(Np,{className:"w-3 h-3"})]}):a.jsx(Dt,{to:r.href,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:r.label})},r.label))})]},n.title))]}),a.jsxs("div",{className:"pt-8 border-t border-border/50 space-y-4",children:[a.jsx(Q0e,{placement:"footer",className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-2",linkClassName:"text-xs text-muted-foreground hover:text-foreground transition-colors"}),a.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4",children:[a.jsxs("p",{className:"text-xs text-muted-foreground",children:["© ",new Date().getFullYear()," ",e("footer.copyright")]}),a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx(vC,{showLabel:!0}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("footer.partOf")})]})]})]})]})})}const Gn=IV,Cy=LV,ebe=MV,mH=O.forwardRef(({className:e,...t},n)=>a.jsx(G2,{ref:n,className:ln("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}));mH.displayName=G2.displayName;const zn=O.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(ebe,{children:[a.jsx(mH,{}),a.jsxs(V2,{ref:r,className:ln("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
775nded-lg",e),...n,children:[t,a.jsxs(DV,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[a.jsx(ss,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));zn.displayName=V2.displayName;const Vn=({className:e,...t})=>a.jsx("div",{className:ln("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Vn.displayName="DialogHeader";const j0=({className:e,...t})=>a.jsx("div",{className:ln("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});j0.displayName="DialogFooter";const Wn=O.forwardRef(({className:e,...t},n)=>a.jsx(W2,{ref:n,className:ln("text-lg font-semibold leading-none tracking-tight",e),...t}));Wn.displayName=W2.displayName;const Mc=O.forwardRef(({className:e,...t},n)=>a.jsx(H2,{ref:n,className:ln("text-sm text-muted-foreground",e),...t}));Mc.displayName=H2.displayName;const Qe=O.forwardRef(({className:e,type:t,...n},r)=>a.jsx("input",{type:t,className:ln("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Qe.displayName="Input";const Pn=O.forwardRef(({className:e,...t},n)=>a.jsx("textarea",{className:ln("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Pn.displayName="Textarea";function bM(e,[t,n]){return Math.min(n,Math.max(t,e))}function tbe(e){const t=nbe(e),n=O.forwardRef((r,i)=>{const{children:s,...o}=r,l=O.Children.toArray(s),c=l.find(ibe);if(c){const u=c.props.children,d=l.map(f=>f===c?O.Children.count(u)>1?O.Children.only(null):O.isValidElement(u)?u.props.children:null:f);return a.jsx(t,{...o,ref:i,children:O.isValidElement(u)?O.cloneElement(u,void 0,d):null})}return a.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function nbe(e){const t=O.forwardRef((n,r)=>{const{children:i,...s}=n;if(O.isValidElement(i)){const o=sbe(i),l=abe(s,i.props);return i.type!==O.Fragment&&(l.ref=r?yd(r,o):o),O.cloneElement(i,l)}return O.Children.count(i)>1?O.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rbe=Symbol("radix.slottable");function ibe(e){return O.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rbe}function abe(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]=(...l)=>{const c=s(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function sbe(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 rj(e){const t=O.useRef({value:e,previous:e});return O.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var gH=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"}),obe="VisuallyHidden",lbe=O.forwardRef((e,t)=>a.jsx(wn.span,{...e,ref:t,style:{...gH,...e.style}}));lbe.displayName=obe;var cbe=[" ","Enter","ArrowUp","ArrowDown"],ube=[" ","Enter"],fp="Select",[ij,aj,dbe]=hT(fp),[lv]=xl(fp,[dbe,J2]),sj=J2(),[fbe,Vf]=lv(fp),[hbe,pbe]=lv(fp),vH=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:s,value:o,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:p,required:h,form:x}=e,v=sj(t),[g,y]=O.useState(null),[w,j]=O.useState(null),[_,N]=O.useState(!1),A=v0(u),[E,k]=od({prop:r,defaultProp:i??!1,onChange:s,caller:fp}),[T,D]=od({prop:o,defaultProp:l,onChange:c,caller:fp}),P=O.useRef(null),R=g?x||!!g.closest("form"):!0,[q,M]=O.useState(new Set),V=Array.from(q).map(H=>H.props.value).join(";");return a.jsx(oW,{...v,children:a.jsxs(fbe,{required:h,scope:t,trigger:g,onTriggerChange:y,valueNode:w,onValueNodeChange:j,valueNodeHasChildren:_,onValueNodeHasChildrenChange:N,contentId:qc(),value:T,onValueChange:D,open:E,onOpenChange:k,dir:A,triggerPointerDownPosRef:P,disabled:p,children:[a.jsx(ij.Provider,{scope:t,children:a.jsx(hbe,{scope:e.__scopeSelect,onNativeOptionAdd:O.useCallback(H=>{M(Z=>new Set(Z).add(H))},[]),onNativeOptionRemove:O.useCallback(H=>{M(Z=>{const J=new Set(Z);return J.delete(H),J})},[]),children:n})}),R?a.jsxs(zH,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:f,value:T,onChange:H=>D(H.target.value),disabled:p,form:x,children:[T===void 0?a.jsx("option",{value:""}):null,Array.from(q)]},V):null]})})};vH.displayName=fp;var yH="SelectTrigger",xH=O.forwardRef((e,t)=>
vendor: 15,118 bytes, line 775
775{const{__scopeSelect:n,disabled:r=!1,...i}=e,s=sj(n),o=Vf(yH,n),l=o.disabled||r,c=Qn(t,o.onTriggerChange),u=aj(n),d=O.useRef("touch"),[f,p,h]=UH(v=>{const g=u().filter(j=>!j.disabled),y=g.find(j=>j.value===o.value),w=GH(g,v,y);w!==void 0&&o.onValueChange(w.value)}),x=v=>{l||(o.onOpenChange(!0),h()),v&&(o.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return a.jsx(lW,{asChild:!0,...s,children:a.jsx(wn.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":$H(o.value)?"":void 0,...i,ref:c,onClick:qt(i.onClick,v=>{v.currentTarget.focus(),d.current!=="mouse"&&x(v)}),onPointerDown:qt(i.onPointerDown,v=>{d.current=v.pointerType;const g=v.target;g.hasPointerCapture(v.pointerId)&&g.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(x(v),v.preventDefault())}),onKeyDown:qt(i.onKeyDown,v=>{const g=f.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&p(v.key),!(g&&v.key===" ")&&cbe.includes(v.key)&&(x(),v.preventDefault())})})})});xH.displayName=yH;var bH="SelectValue",wH=O.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:s,placeholder:o="",...l}=e,c=Vf(bH,n),{onValueNodeHasChildrenChange:u}=c,d=s!==void 0,f=Qn(t,c.onValueNodeChange);return os(()=>{u(d)},[u,d]),a.jsx(wn.span,{...l,ref:f,style:{pointerEvents:"none"},children:$H(c.value)?a.jsx(a.Fragment,{children:o}):s})});wH.displayName=bH;var mbe="SelectIcon",jH=O.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return a.jsx(wn.span,{"aria-hidden":!0,...i,ref:t,children:r||"â¼"})});jH.displayName=mbe;var gbe="SelectPortal",_H=e=>a.jsx(q2,{asChild:!0,...e});_H.displayName=gbe;var hp="SelectContent",NH=O.forwardRef((e,t)=>{const n=Vf(hp,e.__scopeSelect),[r,i]=O.useState();if(os(()=>{i(new DocumentFragment)},[]),!n.open){const s=r;return s?c0.createPortal(a.jsx(SH,{scope:e.__scopeSelect,children:a.jsx(ij.Slot,{scope:e.__scopeSelect,children:a.jsx("div",{children:e.children})})}),s):null}return a.jsx(AH,{...e,ref:t})});NH.displayName=hp;var ql=10,[SH,Wf]=lv(hp),vbe="SelectContentImpl",ybe=tbe("SelectContent.RemoveScroll"),AH=O.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:o,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:h,sticky:x,hideWhenDetached:v,avoidCollisions:g,...y}=e,w=Vf(hp,n),[j,_]=O.useState(null),[N,A]=O.useState(null),E=Qn(t,ne=>_(ne)),[k,T]=O.useState(null),[D,P]=O.useState(null),R=aj(n),[q,M]=O.useState(!1),V=O.useRef(!1);O.useEffect(()=>{if(j)return cT(j)},[j]),lT();const H=O.useCallback(ne=>{const[le,...re]=R().map(ve=>ve.ref.current),[he]=re.slice(-1),be=document.activeElement;for(const ve of ne)if(ve===be||(ve==null||ve.scrollIntoView({block:"nearest"}),ve===le&&N&&(N.scrollTop=0),ve===he&&N&&(N.scrollTop=N.scrollHeight),ve==null||ve.focus(),document.activeElement!==be))return},[R,N]),Z=O.useCallback(()=>H([k,j]),[H,k,j]);O.useEffect(()=>{q&&Z()},[q,Z]);const{onOpenChange:J,triggerPointerDownPosRef:K}=w;O.useEffect(()=>{if(j){let ne={x:0,y:0};const le=he=>{var be,ve;ne={x:Math.abs(Math.round(he.pageX)-(((be=K.current)==null?void 0:be.x)??0)),y:Math.abs(Math.round(he.pageY)-(((ve=K.current)==null?void 0:ve.y)??0))}},re=he=>{ne.x<=10&&ne.y<=10?he.preventDefault():j.contains(he.target)||J(!1),document.removeEventListener("pointermove",le),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",le),document.addEventListener("pointerup",re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",re,{capture:!0})}}},[j,J,K]),O.useEffect(()=>{const ne=()=>J(!1);return window.addEventListener("blur",ne),window.addEventListener("resize",ne),()=>{window.removeEventListener("blur",ne),window.removeEventListener("resize",ne)}},[J]);const[F,$]=UH(ne=>{const le=R().filter(be=>!be.disabled),re=le.find(be=>be.ref.current===document.activeElement),he=GH(le,ne,re);he&&setTimeout(()=>he.ref.current.focus())}),B=O.useCallback((ne,le,re)=>{const he=!V.current&&!re;(w.value!==void 0&&w.value===le||he)&&(T(ne),he&&(V.current=!0))},[w.value]),z=O.useCallback(()=>j==null?void 0:j.focus(),[j]),ee=O.useCallback((ne,le,re)=>{const he=!V.current&&!re;(w.value!==void 0&&w.value===le||he)&&P(ne)},[w.value]),te=r==="popper"?yC:kH,X=te===yC?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:h,sticky:x,hideWhenDetached:v,avoidCollisions:g}:{};return a.jsx(SH,{scope:n,content:j,viewport:N,onViewportChange:A,itemRefCallback:B,selectedItem:k,onItemLeave:z,itemTextRefCallback:ee,focusSelectedItem:Z,selectedItemText:D,position:r,isPositioned:q,searchRef:F,children:a.jsx($2,{as:ybe,allowPinchZoom:!0,children:a.jsx(B2,{asChild:!0,trapped:w.open,onMountAutoFocus:ne=>{ne.preventDefault()},onUnmountAutoFocus:qt(i,ne=>{var le;(le=w.trigger)==null||le.focus({preventScroll:!0}),ne.preventDefault()}),children:a.jsx(F2,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:ne=>ne.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:a.jsx(te,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:ne=>ne.preventDefault(),...y,...X,onPlaced:()=>M(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:qt(y.onKeyDown,ne=>{const le=ne.ctrlKey||ne.altKey||ne.metaKey;if(ne.key==="Tab"&&ne.preventDefault(),!le&&ne.key.length===1&&$(ne.key),["ArrowUp","ArrowDown","Home","End"].includes(ne.key)){let he=R().filter(be=>!be.disabled).map(be=>be.ref.current);if(["ArrowUp","End"].includes(ne.key)&&(he=he.slice().reverse()),["ArrowUp","ArrowDown"].includes(ne.key)){const be=ne.target,ve=he.indexOf(be);he=he.slice(ve+1)}setTimeout(()=>H(he)),ne.preventDefault()}})})})})})})});AH.displayName=vbe;var xbe="SelectItemAlignedPosition",kH=O.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,s=Vf(hp,n),o=Wf(hp,n),[l,c]=O.useState(null),[u,d]=O.useState(null),f=Qn(t,E=>d(E)),p=aj(n),h=O.useRef(!1),x=O.useRef(!0),{viewport:v,selectedItem:g,selectedItemText:y,focusSelectedItem:w}=o,j=O.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&u&&v&&g&&y){const E=s.trigger.getBoundingClientRect(),k=u.getBoundingClientRect(),T=s.valueNode.getBoundingClientRect(),D=y.getBoundingClientRect();if(s.dir!=="rtl"){const be=D.left-k.left,ve=T.left-be,ze=E.left-ve,He=E.width+ze,ue=Math.max(He,k.width),Ue=window.innerWidth-ql,ut=bM(ve,[ql,Math.max(ql,Ue-ue)]);l.style.minWidth=He+"px",l.style.left=ut+"px"}else{const be=k.right-D.right,ve=window.innerWidth-T.right-be,ze=window.innerWidth-E.right-ve,He=E.width+ze,ue=Math.max(He,k.width),Ue=window.innerWidth-ql,ut=bM(ve,[ql,Math.max(ql,Ue-ue)]);l.style.minWidth=He+"px",l.style.right=ut+"px"}const P=p(),R=window.innerHeight-ql*2,q=v.scrollHeight,M=window.getComputedStyle(u),V=parseInt(M.borderTopWidth,10),H=parseInt(M.paddingTop,10),Z=parseInt(M.borderBottomWidth,10),J=parseInt(M.paddingBottom,10),K=V+H+q+J+Z,F=Math.min(g.offsetHeight*5,K),$=window.getComputedStyle(v),B=parseInt($.paddingTop,10),z=parseInt($.paddingBottom,10),ee=E.top+E.height/2-ql,te=R-ee,X=g.offsetHeight/2,ne=g.offsetTop+X,le=V+H+ne,re=K-le;if(le<=ee){const be=P.length>0&&g===P[P.length-1].ref.current;l.style.bottom="0px";const ve=u.clientHeight-v.offsetTop-v.offsetHeight,ze=Math.max(te,X+(be?z:0)+ve+Z),He=le+ze;l.style.height=He+"px"}else{const be=P.length>0&&g===P[0].ref.current;l.style.top="0px";const ze=Math.max(ee,V+v.offsetTop+(be?B:0)+X)+re;l.style.height=ze+"px",v.scrollTop=le-ee+v.offsetTop}l.style.margin=`${ql}px 0`,l.style.minHeight=F+"px",l.style.maxHeight=R+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[p,s.trigger,s.valueNode,l,u,v,g,y,s.dir,r]);os(()=>j(),[j]);const[_,N]=O.useState();os(()=>{u&&N(window.getComputedStyle(u).zIndex)},[u]);const A=O.useCallback(E=>{E&&x.current===!0&&(j(),w==null||w(),x.current=!1)},[j,w]);return a.jsx(wbe,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:h,onScrollButtonChange:A,children:a.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:a.jsx(wn.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});kH.displayName=xbe;var bbe="SelectPopperPosition",yC=O.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=ql,...s}=e,o=sj(n);return a.jsx(cW,{...o,...s,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});yC.displayName=bbe;var[wbe,RT]=lv(hp,{}),xC="SelectViewport",PH=O.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,s=Wf(xC,n),o=RT(xC,n),l=Qn(t,s.onViewportChange),c=O.useRef(0);return a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),a.jsx(ij.Slot,{scope:n,children:a.jsx(wn.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:qt(i.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:p}=o;if(p!=null&&p.current&&f){const h=Math.abs(c.current-d.scrollTop);if(h>0){const x=window.innerHeight-ql*2,v=parseFloat(f.style.minHeight),g=parseFloat(f.style.height),y=Math.max(v,g);if(y<x){const w=y+h,j=Math.min(x,w),_=w-j;f.style.height=j+"px",f.style.bottom==="0px"&&(d.scrollTop=_>0?_:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});PH.displayName=xC;var CH="SelectGroup",[jbe,_be]=lv(CH),Nbe=O.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=qc();return a.jsx(jbe,{scope:n,id:i,children:a.jsx(wn.div,{role:"group","aria-labelledby":i,...r,ref:t})})});Nbe.displayName=CH;var EH="SelectLabel",TH=O.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=_be(EH,n);return a.jsx(wn.div,{id:i.id,...r,ref:t})});TH.displayName=EH;var cw="SelectItem",[Sbe,OH]=lv(cw),RH=O.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:s,...o}=e,l=Vf(cw,n),c=Wf(cw,n),u=l.value===r,[d,f]=O.useState(s??""),[p,h]=O.useState(!1),x=Qn(t,w=>{var j;return(j=c.itemRefCallback)==null?void 0:j.call(c,w,r,i)}),v=qc(),g=O.useRef("touch"),y=()=>{i||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return a.jsx(Sbe,{scope:n,value:r,disabled:i,textId:v,isSelected:u,onItemTextChange:O.useCallback(w=>{f(j=>j||((w==null?void 0:w.textContent)??"").trim())},[]),children:a.jsx(ij.ItemSlot,{scope:n,value:r,disabled:i,textValue:d,children:a.jsx(wn.div,{role:"option","aria-labelledby":v,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:x,onFocus:qt(o.onFocus,()=>h(!0)),onBlur:qt(o.onBlur,()=>h(!1)),onClick:qt(o.onClick,()=>{g.current!=="mouse"&&y()}),onPointerUp:qt(o.onPointerUp,()=>{g.current==="mouse"&&y()}),onPointerDown:qt(o.onPointerDown,w=>{g.current=w.pointerType}),onPointerMove:qt(o.onPointerMove,w=>{var j;g.current=w.pointerType,i?(j=c.onItemLeave)==null||j.call(c):g.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:qt(o.onPointerLeave,w=>{var j;w.currentTarget===document.activeElement&&((j=c.onItemLeave)==null||j.call(c))}),onKeyDown:qt(o.onKeyDown,w=>{var _;((_=c.searchRef)==null?void 0:_.current)!==""&&w.key===" "||(ube.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});RH.displayName=cw;var Ey="SelectItemText",IH=O.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...s}=e,o=Vf(Ey,n),l=Wf(Ey,n),c=OH(Ey,n),u=pbe(Ey,n),[d,f]=O.useState(null),p=Qn(t,y=>f(y),c.onItemTextChange,y=>{var w;return(w=l.itemTextRefCallback)==null?void 0:w.call(l,y,c.value,c.disabled)}),h=d==null?void 0:d.textContent,x=O.useMemo(()=>a.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:g}=u;return os(()=>(v(x),()=>g(x)),[v,g,x]),a.jsxs(a.Fragment,{children:[a.jsx(wn.span,{id:c.textId,...s,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?c0.createPortal(s.children,o.valueNode):null]})});IH.displayName=Ey;var LH="SelectItemIndicator",MH=O.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return OH(LH,n).isSelected?a.jsx(wn.span,{"aria-hidden":!0,...r,ref:t}):null});MH.displayName=LH;var bC="SelectScrollUpButton",DH=O.forwardRef((e,t)=>{const n=Wf(bC,e.__scopeSelect),r=RT(bC,e.__scopeSelect),[i,s]=O.useState(!1),o=Qn(t,r.onScrollButtonChange);return os(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollTop>0;s(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?a.jsx(BH,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});DH.displayName=bC;var wC="SelectScrollDownButton",FH=O.forwardRef((e,t)=>{const n=Wf(wC,e.__scopeSelect),r=RT(wC,e.__scopeSelect),[i,s]=O.useState(!1),o=Qn(t,r.onScrollButtonChange);return os(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;s(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?a.jsx(BH,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});FH.displayName=wC;var BH=O.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,s=Wf("SelectScrollButton",n),o=O.useRef(null),l=aj(n),c=O.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return O.useEffect(()=>()=>c(),[c]),os(()=>{var d;const u=l().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),a.jsx(wn.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:qt(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:qt(i.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:qt(i.onPointerLeave,()=>{c()})})}),Abe="SelectSeparator",qH=O.forwardRef((e,t)=>
vendor: 4,818 bytes, line 775
775{const{__scopeSelect:n,...r}=e;return a.jsx(wn.div,{"aria-hidden":!0,...r,ref:t})});qH.displayName=Abe;var jC="SelectArrow",kbe=O.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=sj(n),s=Vf(jC,n),o=Wf(jC,n);return s.open&&o.position==="popper"?a.jsx(uW,{...i,...r,ref:t}):null});kbe.displayName=jC;var Pbe="SelectBubbleInput",zH=O.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=O.useRef(null),s=Qn(r,i),o=rj(t);return O.useEffect(()=>{const l=i.current;if(!l)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&d){const f=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(f)}},[o,t]),a.jsx(wn.select,{...n,style:{...gH,...n.style},ref:s,defaultValue:t})});zH.displayName=Pbe;function $H(e){return e===""||e===void 0}function UH(e){const t=Yc(e),n=O.useRef(""),r=O.useRef(0),i=O.useCallback(o=>{const l=n.current+o;t(l),(function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(l)},[t]),s=O.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return O.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,s]}function GH(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let o=Cbe(e,Math.max(s,0));i.length===1&&(o=o.filter(u=>u!==n));const c=o.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return c!==n?c:void 0}function Cbe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ebe=vH,VH=xH,Tbe=wH,Obe=jH,Rbe=_H,WH=NH,Ibe=PH,HH=TH,KH=RH,Lbe=IH,Mbe=MH,YH=DH,XH=FH,QH=qH;const Et=Ebe,Tt=Tbe,Pt=O.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(VH,{ref:r,className:ln("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,a.jsx(Obe,{asChild:!0,children:a.jsx(N2,{className:"h-4 w-4 opacity-50"})})]}));Pt.displayName=VH.displayName;const ZH=O.forwardRef(({className:e,...t},n)=>a.jsx(YH,{ref:n,className:ln("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(cne,{className:"h-4 w-4"})}));ZH.displayName=YH.displayName;const JH=O.forwardRef(({className:e,...t},n)=>a.jsx(XH,{ref:n,className:ln("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(N2,{className:"h-4 w-4"})}));JH.displayName=XH.displayName;const Ct=O.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>a.jsx(Rbe,{children:a.jsxs(WH,{ref:i,className:ln("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-[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",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[a.jsx(ZH,{}),a.jsx(Ibe,{className:ln("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(JH,{})]})}));Ct.displayName=WH.displayName;const Dbe=O.forwardRef(({className:e,...t},n)=>a.jsx(HH,{ref:n,className:ln("px-2 py-1.5 text-sm font-semibold",e),...t}));Dbe.displayName=HH.displayName;const Ce=O.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(KH,{ref:r,className:ln("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[a.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(Mbe,{children:a.jsx(Oi,{className:"h-4 w-4"})})}),a.jsx(Lbe,{children:t})]}));Ce.displayName=KH.displayName;const Fbe=O.forwardRef(({className:e,...t},n)=>a.jsx(QH,{ref:n,className:ln("-mx-1 my-1 h-px bg-muted",e),...t}));Fbe.displayName=QH.displayName;const Bbe={"/":{title:"Welcome to Governancepedia",description:"Get started with governance tools and intelligence",sections:[{title:"What can you do here?",content:"Explore governance assessment tools, access AI-powered intelligence reports, and manage your organization's governance framework."},{title:"Getting Started",content:"Start with a Health Check assessment to evaluate your current governance maturity, or browse governance tools in our MicroTools section."}]}
775,"/health-check":{title:"Governance Health Check",description:"Assess your organization's governance maturity",sections:[{title:"Purpose",content:"The health check provides a comprehensive evaluation of your governance practices across risk, compliance, and oversight domains."},{title:"How to Use",content:"Answer the questionnaire about your organization's current practices. The AI will generate a detailed governance assessment with improvement recommendations."},{title:"Results",content:"You'll receive an overall governance score, domain-specific insights, and actionable recommendations for improvement."}]},"/policy-generator":{title:"Policy Generator",description:"Create customized governance policies",sections:[{title:"Purpose",content:"Generate professional governance policies tailored to your organization's industry, size, and specific requirements."},{title:"How It Works",content:"Provide your organization details and policy preferences. Our AI generates comprehensive, ready-to-use governance policy documents."},{title:"Output",content:"Receive markdown-formatted policies that you can edit, customize, and download for implementation."}]},"/risk-analyzer":{title:"Risk Analyzer",description:"Identify and assess governance risks",sections:[{title:"Purpose",content:"Analyze potential governance and operational risks specific to your organization and industry."},{title:"Analysis Includes",content:"Risk identification, probability assessment, impact evaluation, and mitigation strategies for critical governance risks."},{title:"Benefits",content:"Proactively manage risks and align your governance framework with industry best practices."}]},"/decision-engine":{title:"Decision Engine",description:"Get AI-powered governance recommendations",sections:[{title:"Purpose",content:"Receive intelligent recommendations on governance decisions, structures, and processes based on your organization's context."},{title:"Input Your Scenario",content:"Describe the governance decision or challenge you're facing, and the AI provides tailored recommendations."},{title:"Use Cases",content:"Board structure recommendations, committee composition, policy prioritization, compliance strategies, and more."}]},"/micro-tools":{title:"MicroTools",description:"Specialized governance assessment tools",sections:[{title:"What are MicroTools?",content:"Quick, focused assessment tools designed to evaluate specific aspects of your governance framework."},{title:"Browse & Filter",content:"Search by governance domain (risk, compliance, oversight, etc.) to find tools relevant to your needs."},{title:"Run Assessments",content:"Each tool generates detailed analysis and recommendations for that specific governance area."}]},"/intelligence":{title:"Intelligence Reports",description:"Industry insights and governance trends",sections:[{title:"Purpose",content:"Stay informed on governance trends, regulatory updates, and industry-specific insights powered by AI analysis."},{title:"Report Topics",content:"Select from industry trends, compliance updates, risk summaries, and governance best practices reports."},{title:"Actionable Insights",content:"Get professionally formatted reports with key findings and recommendations for your governance strategy."}]},"/dashboard":{title:"Your Dashboard",description:"Track governance activities and metrics",sections:[{title:"Dashboard Overview",content:"View your subscription status, credit usage, recent assessments, and generated documents in one place."},{title:"Quick Actions",content:"Access frequently used governance tools and track your usage metrics."},{title:"Credits & Upgrades",content:"Monitor your AI credits and upgrade your plan to unlock premium features and higher credit limits."}]},"/admin":{title:"Admin Dashboard",description:"Platform administration and analytics",sections:[{title:"Administrator Overview",content:"Monitor platform health, user activity, revenue, and system performance from this central hub."},{title:"Key Metrics",content:"Track total users, active sessions, support tickets, and monthly revenue at a glance."}
775,{title:"Management Tools",content:"Access user management, support ticketing, analytics, billing, and advertisement management modules."}]},"/admin/users":{title:"User Administration",description:"Manage platform users and access",sections:[{title:"User Management",content:"Invite new users, assign roles (user/admin), manage suspensions, and remove accounts."},{title:"Role Management",content:"Upgrade users to admin status or downgrade as needed. Admin users have full platform access."},{title:"Account Controls",content:"Suspend user accounts temporarily or permanently delete accounts from the system."}]},"/admin/support":{title:"Support Ticket Management",description:"Handle user support requests",sections:[{title:"Ticket Overview",content:"View all support tickets submitted by users, organized by status and priority."},{title:"Status Management",content:"Track tickets through the workflow: open â in progress â resolved â closed."},{title:"User Support",content:"Respond to tickets and provide solutions to help users with their governance needs."}]},"/admin/analytics":{title:"Platform Analytics",description:"Monitor platform performance and trends",sections:[{title:"Key Metrics",content:"View user growth, revenue trends, support ticket resolution rates, and platform usage patterns."},{title:"Data Insights",content:"Analyze 7-day trends to understand platform growth and user engagement patterns."},{title:"Strategic Planning",content:"Use metrics to inform business decisions and identify areas for platform improvement."}]},"/admin/billing":{title:"Billing Management",description:"Monitor financial metrics",sections:[{title:"Revenue Overview",content:"Track total revenue, invoicing status, and payment processing metrics."},{title:"Financial Health",content:"Monitor overdue payments, completed transactions, and overall platform revenue."},{title:"Invoice Management",content:"View invoice history, payment statuses, and transaction details for all organizations."}]},"/admin/advertisements":{title:"Advertisement Management",description:"Manage platform advertisements",sections:[{title:"Ad Lifecycle",content:"Create, edit, and manage advertisements displayed across the platform."},{title:"Ad Settings",content:"Configure ad placement, target audience by role, set display frequency, and track performance."},{title:"Performance Tracking",content:"Monitor impressions, clicks, and campaign effectiveness to optimize ad strategy."}]},"/billing":{title:"Billing & Subscriptions",description:"Manage your subscription and billing",sections:[{title:"Subscription Status",content:"View your current plan, credit balance, and team member allocation."},{title:"Plan Upgrades",content:"Upgrade to premium plans for additional credits, team members, and advanced features."},{title:"Invoice History",content:"Access past invoices, payment records, and billing details for your organization."}]},"/pricing":{title:"Pricing & Plans",description:"Choose the right plan for your needs",sections:[{title:"Available Plans",content:"Free, Professional, and Enterprise plans with different features and credit allocations."},{title:"AI Credits",content:"Each plan includes monthly AI credits. Purchase additional credits for on-demand analysis."},{title:"One-Time Reports",content:"Purchase individual governance reports without a subscription commitment."}]}},qbe=e=>Bbe[e]||null;function zbe(){const e=vd(),t=qbe(e.pathname),[n,r]=O.useState(!1),[i,s]=O.useState(!1),[o,l]=O.useState(0),[c,u]=O.useState({subject:"",category:"tool_issue",description:""}),[d,f]=O.useState(!1),p=async()=>{if(!(!c.subject||!c.description))try{f(!0);const h=await Ne.auth.me();await Ne.entities.SupportTicket.create({user_email:h.email,subject:c.subject,category:c.category,description:c.description}),u({subject:"",category:"tool_issue",description:""}),s(!1),alert("Support ticket created successfully!")}catch(h){console.error("Failed to create ticket:",h),alert("Failed to create support ticket")}finally{f(!1)}};return t?a.jsxs(a.Fragment,{children:[a.jsx("button",{onClick:()=>r(!n),className:"fixed bottom-8 left-8 w-12 h-12 bg-primary text-primary-foreground rounded-full shadow-lg hover:shadow-xl transition-all flex items-center justify-center z-40",title:"Get help",children:n?a.jsx(ss,{className:"w-6 h-6"}):a.jsx(mne,{className:"w-6 h-6"})}),n&&a.jsxs("div",{className:"fixed bottom-24 left-8 w-96 max-h-96 bg-white border border-border rounded-lg shadow-xl z-40 flex flex-col",children:[a.jsxs("div",{className:"p-4 border-b bg-muted/50",children:[a.jsx("h3",{className:"font-semibold",children:t.title}),a.jsx("p",{className:"text-xs text-muted-foreground",children:t.description})]}),a.jsx("div",{className:"overflow-y-auto flex-1 p-4 space-y-2",children:t.sections.map((h,x)=>a.jsxs("div",{className:"border rounded-lg",children:[a.jsxs("button",{onClick:()=>l(o===x?-1:x),className:"w-full flex items-center justify-between p-3 hover:bg-muted/50 transition-colors",children:[a.jsx("span",{className:"font-medium text-sm",children:h.title}),a.jsx(N2,{className:`w-4 h-4 transition-transform ${o===x?"rotate-180":""}`})]}),o===x&&a.jsx("div",{className:"p-3 pt-0 bg-muted/30 text-xs text-muted-foreground border-t",children:h.content})]},x))}),a.jsx("div",{className:"p-4 border-t bg-muted/30",children:a.jsxs(Gn,{open:i,onOpenChange:s,children:[a.jsxs("button",{onClick:()=>s(!0),className:"w-full flex items-center justify-center gap-2 px-3 py-2 text-sm font-medium bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",children:[a.jsx(o0,{className:"w-4 h-4"}),"Create Support Ticket"]}),a.jsxs(zn,{children:[a.jsxs(Vn,{children:[a.jsx(Wn,{children:"Create Support Ticket"}),a.jsx(Mc,{children:"Need additional help? Submit a support request and our team will assist you."})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx(Qe,{placeholder:"Subject",value:c.subject,onChange:h=>u({...c,subject:h.target.value})}),a.jsxs(Et,{value:c.category,onValueChange:h=>u({...c,category:h}),children:[a.jsx(Pt,{children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"billing",children:"Billing"}),a.jsx(Ce,{value:"tool_issue",children:"Tool Issue"}),a.jsx(Ce,{value:"governance_support",children:"Governance Support"}),a.jsx(Ce,{value:"account_problem",children:"Account Problem"}),a.jsx(Ce,{value:"technical_support",children:"Technical Support"}),a.jsx(Ce,{value:"other",children:"Other"})]})]}),a.jsx(Pn,{placeholder:"Describe your issue...",value:c.description,onChange:h=>u({...c,description:h.target.value}),rows:4}),a.jsx(xe,{onClick:p,disabled:d||!c.subject||!c.description,className:"w-full",children:d?"Submitting...":"Submit Ticket"})]})]})]})})]})]}):null}const _C="https://governancepedia.com",$be=["en","de","fr","es","sk"],Ube=["/admin","/dashboard","/organization-settings","/billing"],Gbe=["/partners/apply","/content-creators/appl
775y"],Vbe={"/":{titleKey:"seo.homeTitle",descKey:"seo.homeDesc"},"/health-check":{titleKey:"seo.healthCheckTitle",descKey:"seo.healthCheckDesc"},"/policy-generator":{titleKey:"seo.policyGenTitle",descKey:"seo.policyGenDesc"},"/risk-analyzer":{titleKey:"seo.riskAnalyzerTitle",descKey:"seo.riskAnalyzerDesc"},"/decision-engine":{titleKey:"seo.decisionEngineTitle",descKey:"seo.decisionEngineDesc"},"/micro-tools":{titleKey:"seo.microToolsTitle",descKey:"seo.microToolsDesc"},"/intelligence":{titleKey:"seo.intelligenceTitle",descKey:"seo.intelligenceDesc"},"/pricing":{titleKey:"seo.pricingTitle",descKey:"seo.pricingDesc"},"/partners":{titleKey:"seo.partnersTitle",descKey:"seo.partnersDesc"},"/content-creators":{titleKey:"seo.creatorsTitle",descKey:"seo.creatorsDesc"},"/encyclopedia":{titleKey:"seo.encyclopediaTitle",descKey:"seo.encyclopediaDesc"},"/glossary":{titleKey:"seo.glossaryTitle",descKey:"seo.glossaryDesc"}};function Wbe(e){return Ube.some(t=>e===t||e.startsWith(t+"/"))}function Hbe(e){return Gbe.some(t=>e===t||e.startsWith(t+"/"))}function Kbe(e){return e.startsWith("/r/")}function Ybe(e){return e.startsWith("/policy/")}function Xbe(e,t){if(Wbe(e))return{title:t("seo.adminTitle"),description:"",noindex:!0};if(Kbe(e))return{title:"Governancepedia",description:"",noindex:!0};if(Hbe(e))return{title:t("seo.applyTitle"),description:"",noindex:!0};if(Ybe(e))return{title:t("seo.policyTitle"),description:t("seo.policyDesc"),noindex:!1};const n=Vbe[e];return n?{title:t(n.titleKey),description:t(n.descKey),noindex:!1}:e.startsWith("/encyclopedia/")?{title:t("seo.encyclopediaTitle"),description:t("seo.encyclopediaDesc"),noindex:!1}:e.startsWith("/glossary/")?{title:t("seo.glossaryTitle"),description:t("seo.glossaryDesc"),noindex:!1}:{title:t("seo.defaultTitle"),description:t("seo.defaultDesc"),noindex:!1}}function Ml(e,t,n){if(!n){const i=document.head.querySelector(`meta[${e}="${t}"]`);i&&i.remove();return}let r=document.head.querySelector(`meta[${e}="${t}"]`);r||(r=document.createElement("meta"),r.setAttribute(e,t),document.head.appendChild(r)),r.setAttribute("content",n)}function Qbe(e,t){let n=document.head.querySelector(`link[rel="${e}"]`);n||(n=document.createElement("link"),n.setAttribute("rel",e),document.head.appendChild(n)),n.setAttribute("href",t)}function Zbe(e){document.head.querySelectorAll('link[rel="alternate"][hreflang]').forEach(n=>n.remove()),$be.forEach(n=>{const r=document.createElement("link");r.setAttribute("rel","alternate"),r.setAttribute("hreflang",n),r.setAttribute("href",`${_C}${e}?lang=${n}`),document.head.appendChild(r)});const t=document.createElement("link");t.setAttribute("rel","alternate"),t.setAttribute("hreflang","x-default"),t.setAttribute("href",`${_C}${e}`),document.head.appendChild(t)}function IT(){const e=vd(),{lang:t,t:n}=Zt();return O.useEffect(()=>{const r=Xbe(e.pathname,n),i=`${_C}${e.pathname}`,s=r.noindex?"":" | Governancepedia";document.title=r.title.includes("Governancepedia")?r.title:`${r.title}${s}`,Ml("name","description",r.description),Ml("name","robots",r.noindex?"noindex, nofollow":"index, follow"),Qbe("canonical",i),Zbe(e.pathname),Ml("property","og:title",document.title),Ml("property","og:description",r.description),Ml("property","og:url",i),Ml("property","og:type","website"),Ml("property","og:site_name","Governancepedia"),Ml("property","og:locale",t),Ml("name","twitter:card","summary_large_image"),Ml("name","twitter:title",document.title),Ml("name","twitter:description",r.description),document.documentElement.lang=t},[e.pathname,t,n]),null}function Jbe(){return a.jsxs("div",{className:"min-h-screen flex flex-col",children:[a.jsx(IT,{}),a.jsx(K0e,{}),a.jsx(Y0e,{placement:"banner"}),a.jsx("main",{className:"flex-1",children:a.jsx(Xse,{})}),a.jsx(J0e,{}),a.jsx(zbe,{}),a.jsx(age,{}),a.jsx(Cde,{})]})}const LT=O.createContext({});function MT(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const oj=O.createContext(null),DT=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class e1e extends O.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function t1e({children:e,isPresent:t}){const n=O.useId(),r=O.useRef(null),i=O.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=O.useContext(DT);return O.useInsertionEffect(()=>{const{width:o,height:l,top:c,left:u}=i.current;if(t||!r.current||!o||!l)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return s&&(d.nonce=s),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` 776 [data-motion-pop-id="${n}"] { 777 position: absolute !important; 778 width: ${o}px !important; 779 height: ${l}px !important; 780 top: ${c}px !important; 781 left: ${u}px !important; 782 } 783 `),()=>{document.head.removeChild(d)}},[t]),a.jsx(e1e,{isPresent:t,childRef:r,sizeRef:i,children:O.cloneElement(e,{ref:r})})}const n1e=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const l=MT(r1e),c=O.useId(),u=O.useCallback(f=>{l.set(f,!0);for(const p of l.values())if(!p)return;r&&r()},[l,r]),d=O.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),s?[Math.random(),u]:[n,u]);return O.useMemo(()=>{l.forEach((f,p)=>l.set(p,!1))},[n]),O.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=a.jsx(t1e,{isPresent:n,children:e})),a.jsx(oj.Provider,{value:d,children:e})};function r1e(){return new Map}function eK(e=!0){const t=O.useContext(oj);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=O.useId();O.useEffect(()=>{e&&i(s)},[e]);const o=O.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Bb=e=>e.key||"";function wM(e){const t=[];
vendor: 30,597 bytes, line 783
783return O.Children.forEach(e,n=>{O.isValidElement(n)&&t.push(n)}),t}const FT=typeof window<"u",tK=FT?O.useLayoutEffect:O.useEffect,nK=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1})=>{const[l,c]=eK(o),u=O.useMemo(()=>wM(e),[e]),d=o&&!l?[]:u.map(Bb),f=O.useRef(!0),p=O.useRef(u),h=MT(()=>new Map),[x,v]=O.useState(u),[g,y]=O.useState(u);tK(()=>{f.current=!1,p.current=u;for(let _=0;_<g.length;_++){const N=Bb(g[_]);d.includes(N)?h.delete(N):h.get(N)!==!0&&h.set(N,!1)}},[g,d.length,d.join("-")]);const w=[];if(u!==x){let _=[...u];for(let N=0;N<g.length;N++){const A=g[N],E=Bb(A);d.includes(E)||(_.splice(N,0,A),w.push(A))}s==="wait"&&w.length&&(_=w),y(wM(_)),v(u);return}const{forceRender:j}=O.useContext(LT);return a.jsx(a.Fragment,{children:g.map(_=>{const N=Bb(_),A=o&&!l?!1:u===g||d.includes(N),E=()=>{if(h.has(N))h.set(N,!0);else return;let k=!0;h.forEach(T=>{T||(k=!1)}),k&&(j==null||j(),y(p.current),o&&(c==null||c()),r&&r())};return a.jsx(n1e,{isPresent:A,initial:!f.current||n?void 0:!1,custom:A?void 0:t,presenceAffectsLayout:i,mode:s,onExitComplete:A?void 0:E,children:_},N)})})},Oo=e=>e;let rK=Oo;function BT(e){let t;return()=>(t===void 0&&(t=e()),t)}const jg=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ju=e=>e*1e3,ed=e=>e/1e3,i1e={useManualTiming:!1};function a1e(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),e()),u(o)}const c={schedule:(u,d=!1,f=!1)=>{const h=f&&r?t:n;return d&&s.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(o=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,c.process(u))}};return c}const qb=["read","resolveKeyframes","update","preRender","render","postRender"],s1e=40;function iK(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=qb.reduce((y,w)=>(y[w]=a1e(s),y),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:f,postRender:p}=o,h=()=>{const y=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(y-i.timestamp,s1e),1),i.timestamp=y,i.isProcessing=!0,l.process(i),c.process(i),u.process(i),d.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},x=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:qb.reduce((y,w)=>{const j=o[w];return y[w]=(_,N=!1,A=!1)=>(n||x(),j.schedule(_,N,A)),y},{}),cancel:y=>{for(let w=0;w<qb.length;w++)o[qb[w]].cancel(y)},state:i,steps:o}}const{schedule:Qr,cancel:Bf,state:Ia,steps:RN}=iK(typeof requestAnimationFrame<"u"?requestAnimationFrame:Oo,!0),aK=O.createContext({strict:!1}),jM={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},_g={};for(const e in jM)_g[e]={isEnabled:t=>jM[e].some(n=>!!t[n])};function o1e(e){for(const t in e)_g[t]={..._g[t],...e[t]}}const l1e=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function uw(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||l1e.has(e)}let sK=e=>!uw(e);function c1e(e){e&&(sK=t=>t.startsWith("on")?!uw(t):e(t))}try{c1e(require("@emotion/is-prop-valid").default)}catch{}function u1e(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(sK(i)||n===!0&&uw(i)||!t&&!uw(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function d1e(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const lj=O.createContext({});function dx(e){return typeof e=="string"||Array.isArray(e)}function cj(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const qT=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zT=["initial",...qT];function uj(e){return cj(e.animate)||zT.some(t=>dx(e[t]))}function oK(e){return!!(uj(e)||e.variants)}function f1e(e,t){if(uj(e)){const{initial:n,animate:r}=e;return{initial:n===!1||dx(n)?n:void 0,animate:dx(r)?r:void 0}}return e.inherit!==!1?t:{}}function h1e(e){const{initial:t,animate:n}=f1e(e,O.useContext(lj));return O.useMemo(()=>({initial:t,animate:n}),[_M(t),_M(n)])}function _M(e){return Array.isArray(e)?e.join(" "):e}const p1e=Symbol.for("motionComponentSymbol");function Lm(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function m1e(e,t,n){return O.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Lm(n)&&(n.current=r))},[t])}const $T=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),g1e="framerAppearId",lK="data-"+$T(g1e),{schedule:UT}=iK(queueMicrotask,!1),cK=O.createContext({});function v1e(e,t,n,r,i){var s,o;const{visualElement:l}=O.useContext(lj),c=O.useContext(aK),u=O.useContext(oj),d=O.useContext(DT).reducedMotion,f=O.useRef(null);r=r||c.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const p=f.current,h=O.useContext(cK);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&y1e(f.current,n,i,h);const x=O.useRef(!1);O.useInsertionEffect(()=>{p&&x.current&&p.update(n,u)});const v=n[lK],g=O.useRef(!!v&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,v))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,v)));return tK(()=>{p&&(x.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),UT.render(p.render),g.current&&p.animationState&&p.animationState.animateChanges())}),O.useEffect(()=>{p&&(!g.current&&p.animationState&&p.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,v)}),g.current=!1))}),p}function y1e(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:uK(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||l&&Lm(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:u})}function uK(e){if(e)return e.options.allowProjection!==!1?e.projection:uK(e.parent)}function x1e({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&o1e(e);function l(u,d){let f;const p={...O.useContext(DT),...u,layoutId:b1e(u)},{isStatic:h}=p,x=h1e(u),v=r(u,h);if(!h&&FT){w1e();const g=j1e(p);f=g.MeasureLayout,x.visualElement=v1e(i,v,p,t,g.ProjectionNode)}return a.jsxs(lj.Provider,{value:x,children:[f&&x.visualElement?a.jsx(f,{visualElement:x.visualElement,...p}):null,n(i,u,m1e(v,x.visualElement,d),v,h,x.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const c=O.forwardRef(l);return c[p1e]=i,c}function b1e({layoutId:e}){const t=O.useContext(LT).id;return t&&e!==void 0?t+"-"+e:e}function w1e(e,t){O.useContext(aK).strict}function j1e(e){const{drag:t,layout:n}=_g;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const _1e=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function GT(e){return typeof e!="string"||e.includes("-")?!1:!!(_1e.indexOf(e)>-1||/[A-Z]/u.test(e))}function NM(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function VT(e,t,n,r){if(typeof t=="function"){const[i,s]=NM(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=NM(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const NC=e=>Array.isArray(e),N1e=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),S1e=e=>NC(e)?e[e.length-1]||0:e,ts=e=>!!(e&&e.getVelocity);function E1(e){const t=ts(e)?e.get():e;return N1e(t)?t.toValue():t}function A1e({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:k1e(r,i,s,e),renderState:t()};return n&&(o.onMount=l=>n({props:r,current:l,...o}),o.onUpdate=l=>n(l)),o}const dK=e=>(t,n)=>{const r=O.useContext(lj),i=O.useContext(oj),s=()=>A1e(e,t,r,i);return n?s():MT(s)};function k1e(e,t,n,r){const i={},s=r(e,{});for(const p in s)i[p]=E1(s[p]);let{initial:o,animate:l}=e;const c=uj(e),u=oK(e);t&&u&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const f=d?l:o;if(f&&typeof f!="boolean"&&!cj(f)){const p=Array.isArray(f)?f:[f];for(let h=0;h<p.length;h++){const x=VT(e,p[h]);if(x){const{transitionEnd:v,transition:g,...y}=x;for(const w in y){let j=y[w];if(Array.isArray(j)){const _=d?j.length-1:0;j=j[_]}j!==null&&(i[w]=j)}for(const w in v)i[w]=v[w]}}}return i}const cv=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ip=new Set(cv),fK=e=>t=>typeof t=="string"&&t.startsWith(e),hK=fK("--"),P1e=fK("var(--"),WT=e=>P1e(e)?C1e.test(e.split("/*")[0].trim()):!1,C1e=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,pK=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ud=(e,t,n)=>n>t?t:n<e?e:n,uv={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},fx={...uv,transform:e=>ud(0,1,e)},zb={...uv,default:1},_0=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),df=_0("deg"),$c=_0("%"),un=_0("px"),E1e=_0("vh"),T1e=_0("vw"),SM={...$c,parse:e=>$c.parse(e)/100,transform:e=>$c.transform(e*100)},O1e={borderWidth:un,borderTopWidth:un,borderRightWidth:un,borderBottomWidth:un,borderLeftWidth:un,borderRadius:un,radius:un,borderTopLeftRadius:un,borderTopRightRadius:un,borderBottomRightRadius:un,borderBottomLeftRadius:un,width:un,maxWidth:un,height:un,maxHeight:un,top:un,right:un,bottom:un,left:un,padding:un,paddingTop:un,paddingRight:un,paddingBottom:un,paddingLeft:un,margin:un,marginTop:un,marginRight:un,marginBottom:un,marginLeft:un,backgroundPositionX:un,backgroundPositionY:un},R1e={rotate:df,rotateX:df,rotateY:df,rotateZ:df,scale:zb,scaleX:zb,scaleY:zb,scaleZ:zb,skew:df,skewX:df,skewY:df,distance:un,translateX:un,translateY:un,translateZ:un,x:un,y:un,z:un,perspective:un,transformPerspective:un,opacity:fx,originX:SM,originY:SM,originZ:un},AM={...uv,transform:Math.round},HT={...O1e,...R1e,zIndex:AM,size:un,fillOpacity:fx,strokeOpacity:fx,numOctaves:AM},I1e={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},L1e=cv.length;function M1e(e,t,n){let r="",i=!0;for(let s=0;s<L1e;s++){const o=cv[s],l=e[o];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(o.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=pK(l,HT[o]);if(!c){i=!1;const d=I1e[o]||o;r+=`${d}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function KT(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,l=!1;for(const c in t){const u=t[c];if(Ip.has(c)){o=!0;continue}else if(hK(c)){i[c]=u;continue}else{const d=pK(u,HT[c]);c.startsWith("origin")?(l=!0,s[c]=d):r[c]=d}}if(t.transform||(o||n?r.transform=M1e(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=s;r.transformOrigin=`${c} ${u} ${d}`}}const D1e={offset:"stroke-dashoffset",array:"stroke-dasharray"},F1e={offset:"strokeDashoffset",array:"strokeDasharray"};function B1e(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?D1e:F1e;e[s.offset]=un.transform(-r);const o=un.transform(t),l=un.transform(n);e[s.array]=`${o} ${l}`}function kM(e,t,n){return typeof e=="string"?e:un.transform(t+n*e)}function q1e(e,t,n){const r=kM(t,e.x,e.width),i=kM(n,e.y,e.height);return`${r} ${i}`}function YT(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:l=1,pathOffset:c=0,...u},d,f){if(KT(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:x}=e;p.transform&&(x&&(h.transform=p.transform),delete p.transform),x&&(i!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=q1e(x,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&B1e(p,o,l,c,!1)}const XT=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),mK=()=>({...XT(),attrs:{}}),QT=e=>typeof e=="string"&&e.toLowerCase()==="svg";function gK(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const vK=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function yK(e,t,n,r){gK(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(vK.has(i)?i:$T(i),t.attrs[i])}const dw={};function z1e(e){Object.assign(dw,e)}function xK(e,{layout:t,layoutId:n}){return Ip.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dw[e]||e==="opacity")}function ZT(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(ts(i[o])||t.style&&ts(t.style[o])||xK(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function bK(e,t,n){const r=ZT(e,t,n);for(const i in e)if(ts(e[i])||ts(t[i])){const s=cv.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function $1e(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const PM=["x","y","width","height","cx","cy","r"],U1e={useVisualState:dK({scrapeMotionValuesFromProps:bK,createRenderState:mK,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const l in i)if(Ip.has(l)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let l=0;l<PM.length;l++){const c=PM[l];e[c]!==t[c]&&(o=!0)}o&&Qr.read(()=>{$1e(n,r),Qr.render(()=>{YT(r,i,QT(n.tagName),e.transformTemplate),yK(n,r)})})}})},G1e={useVisualState:dK({scrapeMotionValuesFromProps:ZT,createRenderState:XT})};function wK(e,t,n){for(const r in t)!ts(t[r])&&!xK(r,n)&&(e[r]=t[r])}function V1e({transformTemplate:e},t){return O.useMemo(()=>{const n=XT();return KT(n,t,e),Object.assign({},n.vars,n.style)},[t])}function W1e(e,t){const n=e.style||{},r={};return wK(r,n,e),Object.assign(r,V1e(e,t)),r}function H1e(e,t){const n={},r=W1e(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function K1e(e,t,n,r){const i=O.useMemo(()=>{const s=mK();return YT(s,t,QT(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};wK(s,e.style,e),i.style={...s,...i.style}}return i}function Y1e(e=!1){return(n,r,i,{latestValues:s},o)=>{const c=(GT(n)?K1e:H1e)(r,s,o,n),u=u1e(r,typeof n=="string",e),d=n!==O.Fragment?{...u,...c,ref:i}:{},{children:f}=r,p=O.useMemo(()=>ts(f)?f.get():f,[f]);return O.createElement(n,{...d,children:p})}}function X1e(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...GT(r)?U1e:G1e,preloadedFeatures:e,useRender:Y1e(i),createVisualElement:t,Component:r};return x1e(o)}}function jK(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function dj(e,t,n){const r=e.getProps();return VT(r,t,n!==void 0?n:r.custom,e)}const Q1e=BT(()=>window.ScrollTimeline!==void 0);class Z1e{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(Q1e()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class J1e extends Z1e{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function JT(e,t){return e?e[t]||e.default||e:void 0}const SC=2e4;function _K(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<SC;)t+=n,r=e.next(t);return t>=SC?1/0:t}function e3(e){return typeof e=="function"}function CM(e,t){e.timeline=t,e.onfinish=null}const t3=e=>Array.isArray(e)&&typeof e[0]=="number",ewe={linearEasing:void 0};function twe(e,t){const n=BT(e);return()=>{var r;return(r=ewe[t])!==null&&r!==void 0?r:n()}}const fw=twe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),NK=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(jg(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function SK(e){return!!(typeof e=="function"&&fw()||!e||typeof e=="string"&&(e in AC||fw())||t3(e)||Array.isArray(e)&&e.every(SK))}const Ty=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,AC={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ty([0,.65,.55,1]),circOut:Ty([.55,0,1,.45]),backIn:Ty([.31,.01,.66,-.59]),backOut:Ty([.33,1.53,.69,.99])};function AK(e,t){if(e)return typeof e=="function"&&fw()?NK(e,t):t3(e)?Ty(e):Array.isArray(e)?e.map(n=>AK(n,t)||AC.easeOut):AC[e]}const zl={x:!1,y:!1};function kK(){return zl.x||zl.y}function nwe(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function PK(e,t){const n=nwe(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function EM(e){return t=>{t.pointerType==="touch"||kK()||e(t)}}function rwe(e,t,n={}){const[r,i,s]=PK(e,n),o=EM(l=>{const{target:c}=l,u=t(l);if(typeof u!="function"||!c)return;const d=EM(f=>{u(f),c.removeEventListener("pointerleave",d)});c.addEventListener("pointerleave",d,i)});return r.forEach(l=>{l.addEventListener("pointerenter",o,i)}),s}const CK=(e,t)=>t?e===t?!0:CK(e,t.parentElement):!1,n3=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,iwe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function awe(e){return iwe.has(e.tagName)||e.tabIndex!==-1}const Oy=new WeakSet;function TM(e){return t=>{t.key==="Enter"&&e(t)}}function IN(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const swe=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=TM(()=>{if(Oy.has(n))return;IN(n,"down");const i=TM(()=>{IN(n,"up")}),s=()=>IN(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function OM(e){return n3(e)&&!kK()}function owe(e,t,n={}){const[r,i,s]=PK(e,n),o=l=>{const c=l.currentTarget;if(!OM(l)||Oy.has(c))return;Oy.add(c);const u=t(l),d=(h,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!OM(h)||!Oy.has(c))&&(Oy.delete(c),typeof u=="function"&&u(h,{success:x}))},f=h=>{d(h,n.useGlobalTarget||CK(c,h.target))},p=h=>{d(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",p,i)};return r.forEach(l=>{!awe(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,i),l.addEventListener("focus",u=>swe(u,i),i)}),s}function lwe(e){return e==="x"||e==="y"?zl[e]?null:(zl[e]=!0,()=>{zl[e]=!1}):zl.x||zl.y?null:(zl.x=zl.y=!0,()=>{zl.x=zl.y=!1})}const EK=new Set(["width","height","top","left","right","bottom",...cv]);let T1;function cwe(){T1=void 0}const Uc={now:()=>(T1===void 0&&Uc.set(Ia.isProcessing||i1e.useManualTiming?Ia.timestamp:performance.now()),T1),set:e=>{T1=e,queueMicrotask(cwe)}};function r3(e,t){e.indexOf(t)===-1&&e.push(t)}function i3(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class a3{constructor(){this.subscriptions=[]}add(t){return r3(this.subscriptions,t),()=>i3(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function TK(e,t){return t?e*(1e3/t):0}const RM=30,uwe=e=>!isNaN(parseFloat(e));class dwe{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Uc.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Uc.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=uwe(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new a3);const r=this.events[t].add(n);return t==="change"?()=>{r(),Qr.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Uc.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>RM)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,RM);return TK(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function hx(e,t){return new dwe(e,t)}function fwe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,hx(n))}function hwe(e,t){const n=dj(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const l=S1e(s[o]);fwe(e,o,l)}}function pwe(e){return!!(ts(e)&&e.add)}function kC(e,t){const n=e.getValue("willChange");if(pwe(n))return n.add(t)}function OK(e){return e.props[lK]}const RK=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mwe=1e-7,gwe=12;function vwe(e,t,n,r,i){let s,o,l=0;do o=t+(n-t)/2,s=RK(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>mwe&&++l<gwe);return o}function N0(e,t,n,r){if(e===t&&n===r)return Oo;const i=s=>vwe(s,0,1,e,n);return s=>s===0||s===1?s:RK(i(s),t,r)}const IK=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,LK=e=>t=>1-e(1-t),MK=N0(.33,1.53,.69,.99),s3=LK(MK),DK=IK(s3),FK=e=>(e*=2)<1?.5*s3(e):.5*(2-Math.pow(2,-10*(e-1))),o3=e=>1-Math.sin(Math.acos(e)),BK=LK(o3),qK=IK(o3),zK=e=>/^0[^.\s]+$/u.test(e);function ywe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||zK(e):!0}const Uy=e=>Math.round(e*1e5)/1e5,l3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xwe(e){return e==null}const bwe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,c3=(e,t)=>n=>!!(typeof n=="string"&&bwe.test(n)&&n.startsWith(e)||t&&!xwe(n)&&Object.prototype.hasOwnProperty.call(n,t)),$K=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,l]=r.match(l3);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},wwe=e=>ud(0,255,e),LN={...uv,transform:e=>Math.round(wwe(e))},qh={test:c3("rgb","red"),parse:$K("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+LN.transform(e)+", "+LN.transform(t)+", "+LN.transform(n)+", "+Uy(fx.transform(r))+")"};function jwe(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const PC={test:c3("#"),parse:jwe,transform:qh.transform},Mm={test:c3("hsl","hue"),parse:$K("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+$c.transform(Uy(t))+", "+$c.transform(Uy(n))+", "+Uy(fx.transform(r))+")"},Ya={test:e=>qh.test(e)||PC.test(e)||Mm.test(e),parse:e=>qh.test(e)?qh.parse(e):Mm.test(e)?Mm.parse(e):PC.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?qh.transform(e):Mm.transform(e)},_we=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Nwe(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(l3))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(_we))===null||n===void 0?void 0:n.length)||0)>0}const UK="number",GK="color",Swe="var",Awe="var(",IM="${}",kwe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function px(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const l=t.replace(kwe,c=>(Ya.test(c)?(r.color.push(s),i.push(GK),n.push(Ya.parse(c))):c.startsWith(Awe)?(r.var.push(s),i.push(Swe),n.push(c)):(r.number.push(s),i.push(UK),n.push(parseFloat(c))),++s,IM)).split(IM);return{values:n,split:l,indexes:r,types:i}}function VK(e){return px(e).values}function WK(e){const{split:t,types:n}=px(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const l=n[o];l===UK?s+=Uy(i[o]):l===GK?s+=Ya.transform(i[o]):s+=i[o]}return s}}const Pwe=e=>typeof e=="number"?0:e;function Cwe(e){const t=VK(e);return WK(e)(t.map(Pwe))}const qf={test:Nwe,parse:VK,createTransformer:WK,getAnimatableNone:Cwe},Ewe=new Set(["brightness","contrast","saturate","opacity"]);function Twe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(l3)||[];if(!r)return e;const i=n.replace(r,"");let s=Ewe.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Owe=/\b([a-z-]*)\(.*?\)/gu,CC={...qf,getAnimatableNone:e=>{const t=e.match(Owe);return t?t.map(Twe).join(" "):e}},Rwe={...HT,color:Ya,backgroundColor:Ya,outlineColor:Ya,fill:Ya,stroke:Ya,borderColor:Ya,borderTopColor:Ya,borderRightColor:Ya,borderBottomColor:Ya,borderLeftColor:Ya,filter:CC,WebkitFilter:CC},u3=e=>Rwe[e];function HK(e,t){let n=u3(e);return n!==CC&&(n=qf),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Iwe=new Set(["auto","none","0"]);function Lwe(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Iwe.has(s)&&px(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=HK(n,i)}const LM=e=>e===uv||e===un,MM=(e,t)=>parseFloat(e.split(", ")[t]),DM=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return MM(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?MM(s[1],e):0}},Mwe=new Set(["x","y","z"]),Dwe=cv.filter(e=>!Mwe.has(e));function Fwe(e){const t=[];return Dwe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ng={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:DM(4,13),y:DM(5,14)};Ng.translateX=Ng.x;Ng.translateY=Ng.y;const np=new Set;let EC=!1,TC=!1;function KK(){if(TC){const e=Array.from(np).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Fwe(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var l;(l=r.getValue(s))===null||l===void 0||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}
vendor: 15,033 bytes, line 783
783TC=!1,EC=!1,np.forEach(e=>e.complete()),np.clear()}function YK(){np.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(TC=!0)})}function Bwe(){YK(),KK()}class d3{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(np.add(this),EC||(EC=!0,Qr.read(YK),Qr.resolveKeyframes(KK))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),np.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,np.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const XK=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),qwe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zwe(e){const t=qwe.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function QK(e,t,n=1){const[r,i]=zwe(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return XK(o)?parseFloat(o):o}return WT(i)?QK(i,t,n+1):i}const ZK=e=>t=>t.test(e),$we={test:e=>e==="auto",parse:e=>e},JK=[uv,un,$c,df,T1e,E1e,$we],FM=e=>JK.find(ZK(e));class eY extends d3{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),WT(u))){const d=QK(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!EK.has(r)||t.length!==2)return;const[i,s]=t,o=FM(i),l=FM(s);if(o!==l)if(LM(o)&&LM(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)ywe(t[i])&&r.push(i);r.length&&Lwe(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ng[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,l=i[o];i[o]=Ng[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,u])=>{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const BM=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(qf.test(e)||e==="0")&&!e.startsWith("url("));function Uwe(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Gwe(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=BM(i,t),l=BM(s,t);return!o||!l?!1:Uwe(e)||(n==="spring"||e3(n))&&r}const Vwe=e=>e!==null;function fj(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Vwe),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const Wwe=40;class tY{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Uc.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Wwe?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Bwe(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Uc.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!Gwe(t,r,i,s))if(o)this.options.duration=0;else{c&&c(fj(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const di=(e,t,n)=>e+(t-e)*n;function MN(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Hwe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=MN(c,l,e+1/3),s=MN(c,l,e),o=MN(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function hw(e,t){return n=>n>0?t:e}const DN=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Kwe=[PC,qh,Mm],Ywe=e=>Kwe.find(t=>t.test(e));function qM(e){const t=Ywe(e);if(!t)return!1;let n=t.parse(e);return t===Mm&&(n=Hwe(n)),n}const zM=(e,t)=>{const n=qM(e),r=qM(t);if(!n||!r)return hw(e,t);const i={...n};return s=>(i.red=DN(n.red,r.red,s),i.green=DN(n.green,r.green,s),i.blue=DN(n.blue,r.blue,s),i.alpha=di(n.alpha,r.alpha,s),qh.transform(i))},Xwe=(e,t)=>n=>t(e(n)),S0=(...e)=>e.reduce(Xwe),OC=new Set(["none","hidden"]);function Qwe(e,t){return OC.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Zwe(e,t){return n=>di(e,t,n)}function f3(e){return typeof e=="number"?Zwe:typeof e=="string"?WT(e)?hw:Ya.test(e)?zM:t2e:Array.isArray(e)?nY:typeof e=="object"?Ya.test(e)?zM:Jwe:hw}function nY(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>f3(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function Jwe(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=f3(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function e2e(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],l=e.indexes[o][i[o]],c=(n=e.values[l])!==null&&n!==void 0?n:0;r[s]=c,i[o]++}return r}const t2e=(e,t)=>{const n=qf.createTransformer(t),r=px(e),i=px(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?OC.has(e)&&!i.values.length||OC.has(t)&&!r.values.length?Qwe(e,t):S0(nY(e2e(r,i),i.values),n):hw(e,t)};function rY(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?di(e,t,n):f3(e)(e,t)}const n2e=5;function iY(e,t,n){const r=Math.max(t-n2e,0);return TK(n-e(r),t-r)}const Ni={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},FN=.001;function r2e({duration:e=Ni.duration,bounce:t=Ni.bounce,velocity:n=Ni.velocity,mass:r=Ni.mass}){let i,s,o=1-t;o=ud(Ni.minDamping,Ni.maxDamping,o),e=ud(Ni.minDuration,Ni.maxDuration,ed(e)),o<1?(i=u=>{const d=u*o,f=d*e,p=d-n,h=RC(u,o),x=Math.exp(-f);return FN-p/h*x},s=u=>{const f=u*o*e,p=f*n+n,h=Math.pow(o,2)*Math.pow(u,2)*e,x=Math.exp(-f),v=RC(Math.pow(u,2),o);return(-i(u)+FN>0?-1:1)*((p-h)*x)/v}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-FN+d*f},s=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=a2e(i,s,l);if(e=Ju(e),isNaN(c))return{stiffness:Ni.stiffness,damping:Ni.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const i2e=12;function a2e(e,t,n){let r=n;for(let i=1;i<i2e;i++)r=r-e(r)/t(r);return r}function RC(e,t){return e*Math.sqrt(1-t*t)}const s2e=["duration","bounce"],o2e=["stiffness","damping","mass"];function $M(e,t){return t.some(n=>e[n]!==void 0)}function l2e(e){let t={velocity:Ni.velocity,stiffness:Ni.stiffness,damping:Ni.damping,mass:Ni.mass,isResolvedFromDuration:!1,...e};if(!$M(e,o2e)&&$M(e,s2e))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*ud(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Ni.mass,stiffness:i,damping:s}}else{const n=r2e(e);t={...t,...n,mass:Ni.mass},t.isResolvedFromDuration=!0}return t}function aY(e=Ni.visualDuration,t=Ni.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:c,damping:u,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=l2e({...n,velocity:-ed(n.velocity||0)}),x=p||0,v=u/(2*Math.sqrt(c*d)),g=o-s,y=ed(Math.sqrt(c/d)),w=Math.abs(g)<5;r||(r=w?Ni.restSpeed.granular:Ni.restSpeed.default),i||(i=w?Ni.restDelta.granular:Ni.restDelta.default);let j;if(v<1){const N=RC(y,v);j=A=>{const E=Math.exp(-v*y*A);return o-E*((x+v*y*g)/N*Math.sin(N*A)+g*Math.cos(N*A))}}else if(v===1)j=N=>o-Math.exp(-y*N)*(g+(x+y*g)*N);else{const N=y*Math.sqrt(v*v-1);j=A=>{const E=Math.exp(-v*y*A),k=Math.min(N*A,300);return o-E*((x+v*y*g)*Math.sinh(k)+N*g*Math.cosh(k))/N}}const _={calculatedDuration:h&&f||null,next:N=>{const A=j(N);if(h)l.done=N>=f;else{let E=0;v<1&&(E=N===0?Ju(x):iY(j,N,A));const k=Math.abs(E)<=r,T=Math.abs(o-A)<=i;l.done=k&&T}return l.value=l.done?o:A,l},toString:()=>{const N=Math.min(_K(_),SC),A=NK(E=>_.next(N*E).value,N,30);return N+"ms "+A}};return _}function UM({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=k=>l!==void 0&&k<l||c!==void 0&&k>c,x=k=>l===void 0?c:c===void 0||Math.abs(l-k)<Math.abs(c-k)?l:c;let v=n*t;const g=f+v,y=o===void 0?g:o(g);y!==g&&(v=y-f);const w=k=>-v*Math.exp(-k/r),j=k=>y+w(k),_=k=>{const T=w(k),D=j(k);p.done=Math.abs(T)<=u,p.value=p.done?y:D};let N,A;const E=k=>{h(p.value)&&(N=k,A=aY({keyframes:[p.value,x(p.value)],velocity:iY(j,k,p.value),damping:i,stiffness:s,restDelta:u,restSpeed:d}))};return E(0),{calculatedDuration:null,next:k=>{let T=!1;return!A&&N===void 0&&(T=!0,_(k),E(k)),N!==void 0&&k>=N?A.next(k-N):(!T&&_(k),p)}}}const c2e=N0(.42,0,1,1),u2e=N0(0,0,.58,1),sY=N0(.42,0,.58,1),d2e=e=>Array.isArray(e)&&typeof e[0]!="number",f2e={linear:Oo,easeIn:c2e,easeInOut:sY,easeOut:u2e,circIn:o3,circInOut:qK,circOut:BK,backIn:s3,backInOut:DK,backOut:MK,anticipate:FK},GM=e=>{if(t3(e)){rK(e.length===4);const[t,n,r,i]=e;return N0(t,n,r,i)}else if(typeof e=="string")return f2e[e];return e};function h2e(e,t,n){const r=[],i=n||rY,s=e.length-1;for(let o=0;o<s;o++){let l=i(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||Oo:t;l=S0(c,l)}r.push(l)}return r}function p2e(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(rK(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=h2e(t,r,i),c=l.length,u=d=>{if(o&&d<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const p=jg(e[f],e[f+1],d);return l[f](p)};return n?d=>u(ud(e[0],e[s-1],d)):u}function m2e(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=jg(0,t,r);e.push(di(n,1,i))}}function g2e(e){const t=[0];return m2e(t,e.length-1),t}function v2e(e,t){return e.map(n=>n*t)}function y2e(e,t){return e.map(()=>t||sY).splice(0,e.length-1)}function pw({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=d2e(r)?r.map(GM):GM(r),s={done:!1,value:t[0]},o=v2e(n&&n.length===t.length?n:g2e(t),e),l=p2e(o,t,{ease:Array.isArray(i)?i:y2e(t,i)});return{calculatedDuration:e,next:c=>(s.value=l(c),s.done=c>=e,s)}}const x2e=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Qr.update(t,!0),stop:()=>Bf(t),now:()=>Ia.isProcessing?Ia.timestamp:Uc.now()}},b2e={decay:UM,inertia:UM,tween:pw,keyframes:pw,spring:aY},w2e=e=>e/100;class h3 extends tY{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||d3,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new o(s,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,l=e3(n)?n:b2e[n]||pw;let c,u;l!==pw&&typeof t[0]!="number"&&(c=S0(w2e,rY(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});s==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=_K(d));const{calculatedDuration:f}=d,p=f+i,h=p*(r+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:k}=this.options;return{done:!0,value:k[k.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return s.next(0);const{delay:p,repeat:h,repeatType:x,repeatDelay:v,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-p*(this.speed>=0?1:-1),w=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let j=this.currentTime,_=s;if(h){const k=Math.min(this.currentTime,d)/f;let T=Math.floor(k),D=k%1;!D&&k>=1&&(D=1),D===1&&T--,T=Math.min(T,h+1),!!(T%2)&&(x==="reverse"?(D=1-D,v&&(D-=v/f)):x==="mirror"&&(_=o)),j=ud(0,1,D)*f}const N=w?{done:!1,value:c[0]}:_.next(j);l&&(N.value=l(N.value));let{done:A}=N;!w&&u!==null&&(A=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return E&&i!==void 0&&(N.value=fj(c,this.options,i)),g&&g(N.value),E&&this.finish(),N}get duration(){const{resolved:t}=this;return t?ed(t.calculatedDuration):0}
vendor: 57,618 bytes, line 783
783get time(){return ed(this.currentTime)}set time(t){t=Ju(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ed(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=x2e,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const j2e=new Set(["opacity","clipPath","filter","transform"]);function _2e(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:l="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const d=AK(l,i);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const N2e=BT(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),mw=10,S2e=2e4;function A2e(e){return e3(e.type)||e.type==="spring"||!SK(e.ease)}function k2e(e,t){const n=new h3({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<S2e;)r=n.sample(s),i.push(r.value),s+=mw;return{times:void 0,keyframes:i,duration:s-mw,ease:"linear"}}const oY={anticipate:FK,backInOut:DK,circInOut:qK};function P2e(e){return e in oY}class VM extends tY{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new eY(s,(o,l)=>this.onKeyframesResolved(o,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof s=="string"&&fw()&&P2e(s)&&(s=oY[s]),A2e(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,element:x,...v}=this.options,g=k2e(t,v);t=g.keyframes,t.length===1&&(t[1]=t[0]),r=g.duration,i=g.times,s=g.ease,o="keyframes"}const d=_2e(l.owner.current,c,t,{...this.options,duration:r,times:i,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(CM(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(fj(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ed(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ed(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ju(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Oo;const{animation:r}=n;CM(r,t)}return Oo}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:p,...h}=this.options,x=new h3({...h,keyframes:r,duration:i,type:s,ease:o,times:l,isGenerator:!0}),v=Ju(this.time);u.setWithVelocity(x.sample(v-mw).value,x.sample(v).value,mw)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return N2e()&&r&&j2e.has(r)&&!c&&!u&&!i&&s!=="mirror"&&o!==0&&l!=="inertia"}}const C2e={type:"spring",stiffness:500,damping:25,restSpeed:10},E2e=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),T2e={type:"keyframes",duration:.8},O2e={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},R2e=(e,{keyframes:t})=>t.length>2?T2e:Ip.has(e)?e.startsWith("scale")?E2e(t[1]):C2e:O2e;function I2e({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const p3=(e,t,n,r={},i,s)=>o=>{const l=JT(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Ju(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:i};I2e(l)||(d={...d,...R2e(e,d)}),d.duration&&(d.duration=Ju(d.duration)),d.repeatDelay&&(d.repeatDelay=Ju(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!s&&t.get()!==void 0){const p=fj(d.keyframes,l);if(p!==void 0)return Qr.update(()=>{d.onUpdate(p),d.onComplete()}),new J1e([])}return!s&&VM.supports(d)?new VM(d):new h3(d)};function L2e({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function lY(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(o=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in c){const p=e.getValue(f,(s=e.latestValues[f])!==null&&s!==void 0?s:null),h=c[f];if(h===void 0||d&&L2e(d,f))continue;const x={delay:n,...JT(o||{},f)};let v=!1;if(window.MotionHandoffAnimation){const y=OK(e);if(y){const w=window.MotionHandoffAnimation(y,f,Qr);w!==null&&(x.startTime=w,v=!0)}}kC(e,f),p.start(p3(f,p,h,e.shouldReduceMotion&&EK.has(f)?{type:!1}:x,e,v));const g=p.animation;g&&u.push(g)}return l&&Promise.all(u).then(()=>{Qr.update(()=>{l&&hwe(e,l)})}),u}function IC(e,t,n={}){var r;const i=dj(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(lY(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=s;return M2e(e,t,d+u,f,p,n)}:()=>Promise.resolve(),{when:c}=s;if(c){const[u,d]=c==="beforeChildren"?[o,l]:[l,o];return u().then(()=>d())}else return Promise.all([o(),l(n.delay)])}function M2e(e,t,n=0,r=0,i=1,s){const o=[],l=(e.variantChildren.size-1)*r,c=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(D2e).forEach((u,d)=>{u.notify("AnimationStart",t),o.push(IC(u,t,{...s,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function D2e(e,t){return e.sortNodePosition(t)}function F2e(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>IC(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=IC(e,t,n);else{const i=typeof t=="function"?dj(e,t,n.custom):t;r=Promise.all(lY(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const B2e=zT.length;function cY(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?cY(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<B2e;n++){const r=zT[n],i=e.props[r];(dx(i)||i===!1)&&(t[r]=i)}return t}const q2e=[...qT].reverse(),z2e=qT.length;function $2e(e){return t=>Promise.all(t.map(({animation:n,options:r})=>F2e(e,n,r)))}function U2e(e){let t=$2e(e),n=WM(),r=!0;const i=c=>(u,d)=>{var f;const p=dj(e,d,c==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:h,transitionEnd:x,...v}=p;u={...u,...v,...x}}return u};function s(c){t=c(e)}function o(c){const{props:u}=e,d=cY(e.parent)||{},f=[],p=new Set;let h={},x=1/0;for(let g=0;g<z2e;g++){const y=q2e[g],w=n[y],j=u[y]!==void 0?u[y]:d[y],_=dx(j),N=y===c?w.isActive:null;N===!1&&(x=g);let A=j===d[y]&&j!==u[y]&&_;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),w.protectedKeys={...h},!w.isActive&&N===null||!j&&!w.prevProp||cj(j)||typeof j=="boolean")continue;const E=G2e(w.prevProp,j);let k=E||y===c&&w.isActive&&!A&&_||g>x&&_,T=!1;const D=Array.isArray(j)?j:[j];let P=D.reduce(i(y),{});N===!1&&(P={});const{prevResolvedValues:R={}}=w,q={...R,...P},M=Z=>{k=!0,p.has(Z)&&(T=!0,p.delete(Z)),w.needsAnimating[Z]=!0;const J=e.getValue(Z);J&&(J.liveStyle=!1)};for(const Z in q){const J=P[Z],K=R[Z];if(h.hasOwnProperty(Z))continue;let F=!1;NC(J)&&NC(K)?F=!jK(J,K):F=J!==K,F?J!=null?M(Z):p.add(Z):J!==void 0&&p.has(Z)?M(Z):w.protectedKeys[Z]=!0}w.prevProp=j,w.prevResolvedValues=P,w.isActive&&(h={...h,...P}),r&&e.blockInitialAnimation&&(k=!1),k&&(!(A&&E)||T)&&f.push(...D.map(Z=>({animation:Z,options:{type:y}})))}if(p.size){const g={};p.forEach(y=>{const w=e.getBaseTarget(y),j=e.getValue(y);j&&(j.liveStyle=!0),g[y]=w??null}),f.push({animation:g})}let v=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(f):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(c,u)}),n[c].isActive=u;const f=o(c);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:o,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=WM(),r=!0}}}function G2e(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jK(t,e):!1}function Sh(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function WM(){return{animate:Sh(!0),whileInView:Sh(),whileHover:Sh(),whileTap:Sh(),whileDrag:Sh(),whileFocus:Sh(),exit:Sh()}}class Hf{constructor(t){this.isMounted=!1,this.node=t}update(){}}class V2e extends Hf{constructor(t){super(t),t.animationState||(t.animationState=U2e(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();cj(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let W2e=0;class H2e extends Hf{constructor(){super(...arguments),this.id=W2e++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const K2e={animation:{Feature:V2e},exit:{Feature:H2e}};function mx(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function A0(e){return{point:{x:e.pageX,y:e.pageY}}}const Y2e=e=>t=>n3(t)&&e(t,A0(t));function Gy(e,t,n,r){return mx(e,t,Y2e(n),r)}const HM=(e,t)=>Math.abs(e-t);function X2e(e,t){const n=HM(e.x,t.x),r=HM(e.y,t.y);return Math.sqrt(n**2+r**2)}class uY{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=qN(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=X2e(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:x}=f,{timestamp:v}=Ia;this.history.push({...x,timestamp:v});const{onStart:g,onMove:y}=this.handlers;p||(g&&g(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=BN(p,this.transformPagePoint),Qr.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:x,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=qN(f.type==="pointercancel"?this.lastMoveEventInfo:BN(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,g),x&&x(f,g)},!n3(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=A0(t),l=BN(o,this.transformPagePoint),{point:c}=l,{timestamp:u}=Ia;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,qN(l,this.history)),this.removeListeners=S0(Gy(this.contextWindow,"pointermove",this.handlePointerMove),Gy(this.contextWindow,"pointerup",this.handlePointerUp),Gy(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Bf(this.updatePoint)}}function BN(e,t){return t?{point:t(e.point)}:e}function KM(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qN({point:e},t){return{point:e,delta:KM(e,dY(t)),offset:KM(e,Q2e(t)),velocity:Z2e(t,.1)}}function Q2e(e){return e[0]}function dY(e){return e[e.length-1]}function Z2e(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=dY(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ju(t)));)n--;if(!r)return{x:0,y:0};const s=ed(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const fY=1e-4,J2e=1-fY,eje=1+fY,hY=.01,tje=0-hY,nje=0+hY;function Mo(e){return e.max-e.min}function rje(e,t,n){return Math.abs(e-t)<=n}function YM(e,t,n,r=.5){e.origin=r,e.originPoint=di(t.min,t.max,e.origin),e.scale=Mo(n)/Mo(t),e.translate=di(n.min,n.max,e.origin)-e.originPoint,(e.scale>=J2e&&e.scale<=eje||isNaN(e.scale))&&(e.scale=1),(e.translate>=tje&&e.translate<=nje||isNaN(e.translate))&&(e.translate=0)}function Vy(e,t,n,r){YM(e.x,t.x,n.x,r?r.originX:void 0),YM(e.y,t.y,n.y,r?r.originY:void 0)}function XM(e,t,n){e.min=n.min+t.min,e.max=e.min+Mo(t)}function ije(e,t,n){XM(e.x,t.x,n.x),XM(e.y,t.y,n.y)}function QM(e,t,n){e.min=t.min-n.min,e.max=e.min+Mo(t)}function Wy(e,t,n){QM(e.x,t.x,n.x),QM(e.y,t.y,n.y)}function aje(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?di(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?di(n,e,r.max):Math.min(e,n)),e}function ZM(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function sje(e,{top:t,left:n,bottom:r,right:i}){return{x:ZM(e.x,n,i),y:ZM(e.y,t,r)}}function JM(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function oje(e,t){return{x:JM(e.x,t.x),y:JM(e.y,t.y)}}function lje(e,t){let n=.5;const r=Mo(e),i=Mo(t);return i>r?n=jg(t.min,t.max-r,e.min):r>i&&(n=jg(e.min,e.max-i,t.min)),ud(0,1,n)}function cje(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const LC=.35;function uje(e=LC){return e===!1?e=0:e===!0&&(e=LC),{x:e6(e,"left","right"),y:e6(e,"top","bottom")}}function e6(e,t,n){return{min:t6(e,t),max:t6(e,n)}}function t6(e,t){return typeof e=="number"?e:e[t]||0}const n6=()=>({translate:0,scale:1,origin:0,originPoint:0}),Dm=()=>({x:n6(),y:n6()}),r6=()=>({min:0,max:0}),Ti=()=>({x:r6(),y:r6()});function al(e){return[e("x"),e("y")]}function pY({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function dje({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function fje(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function zN(e){return e===void 0||e===1}function MC({scale:e,scaleX:t,scaleY:n}){return!zN(e)||!zN(t)||!zN(n)}function Eh(e){return MC(e)||mY(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function mY(e){return i6(e.x)||i6(e.y)}function i6(e){return e&&e!=="0%"}function gw(e,t,n){const r=e-n,i=t*r;return n+i}function a6(e,t,n,r,i){return i!==void 0&&(e=gw(e,i,r)),gw(e,n,r)+t}function DC(e,t=0,n=1,r,i){e.min=a6(e.min,t,n,r,i),e.max=a6(e.max,t,n,r,i)}function gY(e,{x:t,y:n}){DC(e.x,t.translate,t.scale,t.originPoint),DC(e.y,n.translate,n.scale,n.originPoint)}const s6=.999999999999,o6=1.0000000000001;function hje(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let l=0;l<i;l++){s=n[l],o=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Bm(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,gY(e,o)),r&&Eh(s.latestValues)&&Bm(e,s.latestValues))}t.x<o6&&t.x>s6&&(t.x=1),t.y<o6&&t.y>s6&&(t.y=1)}function Fm(e,t){e.min=e.min+t,e.max=e.max+t}function l6(e,t,n,r,i=.5){const s=di(e.min,e.max,i);DC(e,t,n,s,r)}function Bm(e,t){l6(e.x,t.x,t.scaleX,t.scale,t.originX),l6(e.y,t.y,t.scaleY,t.scale,t.originY)}function vY(e,t){return pY(fje(e.getBoundingClientRect(),t))}function pje(e,t,n){const r=vY(e,n),{scroll:i}=t;return i&&(Fm(r.x,i.offset.x),Fm(r.y,i.offset.y)),r}const yY=({current:e})=>e?e.ownerDocument.defaultView:null,mje=new WeakMap;class gje{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ti(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(A0(d).point)},s=(d,f)=>{const{drag:p,dragPropagation:h,onDragStart:x}=this.getProps();if(p&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=lwe(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),al(g=>{let y=this.getAxisMotionValue(g).get()||0;if($c.test(y)){const{projection:w}=this.visualElement;if(w&&w.layout){const j=w.layout.layoutBox[g];j&&(y=Mo(j)*(parseFloat(y)/100))}}this.originPoint[g]=y}),x&&Qr.postRender(()=>x(d,f)),kC(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(d,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:x,onDrag:v}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:g}=f;if(h&&this.currentDirection===null){this.currentDirection=vje(g),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),v&&v(d,f)},l=(d,f)=>this.stop(d,f),c=()=>al(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new uY(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:yY(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Qr.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!$b(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=aje(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&Lm(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=sje(i.layoutBox,n):this.constraints=!1,this.elastic=uje(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&al(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=cje(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Lm(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=pje(r,i.root,this.visualElement.getTransformPagePoint());let o=oje(i.layout.layoutBox,s);if(n){const l=n(dje(o));this.hasMutatedConstraints=!!l,l&&(o=pY(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=al(d=>{if(!$b(d,n,this.currentDirection))return;let f=c&&c[d]||{};o&&(f={min:0,max:0});const p=i?200:1e6,h=i?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(d,x)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return kC(this.visualElement,t),r.start(p3(t,r,0,n,this.visualElement,!1))}stopAnimation(){al(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){al(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){al(n=>{const{drag:r}=this.getProps();if(!$b(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[n];s.set(t[n]-di(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Lm(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};al(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();i[o]=lje({min:c,max:c},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),al(o=>{if(!$b(o,t,null))return;const l=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];l.set(di(c,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;mje.set(this.visualElement,this);const t=this.visualElement.current,n=Gy(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Lm(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Qr.read(r);const o=mx(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(al(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())}));return()=>{o(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=LC,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:l}}}function $b(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vje(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class yje extends Hf{constructor(t){super(t),this.removeGroupControls=Oo,this.removeListeners=Oo,this.controls=new gje(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Oo}unmount(){this.removeGroupControls(),this.removeListeners()}}const c6=e=>(t,n)=>{e&&Qr.postRender(()=>e(t,n))};class xje extends Hf{constructor(){super(...arguments),this.removePointerDownListener=Oo}onPointerDown(t){this.session=new uY(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yY(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:c6(t),onStart:c6(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&Qr.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Gy(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const O1={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function u6(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ly={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(un.test(e))e=parseFloat(e);else return e;const n=u6(e,t.target.x),r=u6(e,t.target.y);return`${n}% ${r}%`}},bje={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=qf.parse(e);if(i.length>5)return r;const s=qf.createTransformer(e),o=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=l,i[1+o]/=c;const u=di(l,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class wje extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;z1e(jje),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),O1.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||Qr.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),UT.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function xY(e){const[t,n]=eK(),r=O.useContext(LT);return a.jsx(wje,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(cK),isPresent:t,safeToRemove:n})}const jje={borderRadius:{...ly,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ly,borderTopRightRadius:ly,borderBottomLeftRadius:ly,borderBottomRightRadius:ly,boxShadow:bje};function _je(e,t,n){const r=ts(e)?e:hx(e);return r.start(p3("",r,t,n)),r.animation}function Nje(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Sje=(e,t)=>e.depth-t.depth;class Aje{constructor(){this.children=[],this.isDirty=!1}add(t){r3(this.children,t),this.isDirty=!0}remove(t){i3(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Sje),this.isDirty=!1,this.children.forEach(t)}}function kje(e,t){const n=Uc.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Bf(r),e(s-t))};return Qr.read(r,!0),()=>Bf(r)}const bY=["TopLeft","TopRight","BottomLeft","BottomRight"],Pje=bY.length,d6=e=>typeof e=="string"?parseFloat(e):e,f6=e=>typeof e=="number"||un.test(e);function Cje(e,t,n,r,i,s){i?(e.opacity=di(0,n.opacity!==void 0?n.opacity:1,Eje(r)),e.opacityExit=di(t.opacity!==void 0?t.opacity:1,0,Tje(r))):s&&(e.opacity=di(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Pje;o++){const l=`border${bY[o]}Radius`;let c=h6(t,l),u=h6(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||f6(c)===f6(u)?(e[l]=Math.max(di(d6(c),d6(u),r),0),($c.test(u)||$c.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=di(t.rotate||0,n.rotate||0,r))}function h6(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Eje=wY(0,.5,BK),Tje=wY(.5,.95,Oo);function wY(e,t,n){return r=>r<e?0:r>t?1:n(jg(e,t,r))}function p6(e,t){e.min=t.min,e.max=t.max}function tl(e,t){p6(e.x,t.x),p6(e.y,t.y)}function m6(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function g6(e,t,n,r,i){return e-=t,e=gw(e,1/n,r),i!==void 0&&(e=gw(e,1/i,r)),e}function Oje(e,t=0,n=1,r=.5,i,s=e,o=e){if($c.test(t)&&(t=parseFloat(t),t=di(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=di(s.min,s.max,r);e===s&&(l-=t),e.min=g6(e.min,t,n,l,i),e.max=g6(e.max,t,n,l,i)}function v6(e,t,[n,r,i],s,o){Oje(e,t[n],t[r],t[i],t.scale,s,o)}const Rje=["x","scaleX","originX"],Ije=["y","scaleY","originY"];function y6(e,t,n,r){v6(e.x,t,Rje,n?n.x:void 0,r?r.x:void 0),v6(e.y,t,Ije,n?n.y:void 0,r?r.y:void 0)}function x6(e){return e.translate===0&&e.scale===1}function jY(e){return x6(e.x)&&x6(e.y)}function b6(e,t){return e.min===t.min&&e.max===t.max}function Lje(e,t){return b6(e.x,t.x)&&b6(e.y,t.y)}function w6(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _Y(e,t){return w6(e.x,t.x)&&w6(e.y,t.y)}function j6(e){return Mo(e.x)/Mo(e.y)}function _6(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Mje{constructor(){this.members=[]}add(t){r3(this.members,t),t.scheduleRender()}remove(t){if(i3(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Dje(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:p,skewX:h,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),x&&(r+=`skewY(${x}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const Th={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ry=typeof window<"u"&&window.MotionDebug!==void 0,$N=["","X","Y","Z"],Fje={visibility:"hidden"},N6=1e3;let Bje=0;function UN(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function NY(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=OK(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Qr,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&NY(r)}function SY({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},l=t==null?void 0:t()){this.id=Bje++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ry&&(Th.totalNodes=Th.resolvedTargetDeltas=Th.recalculatedProjection=0),this.nodes.forEach($je),this.nodes.forEach(Hje),this.nodes.forEach(Kje),this.nodes.forEach(Uje),Ry&&window.MotionDebug.record(Th)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Aje)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new a3),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Nje(o),this.instance=o;const{layoutId:c,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||c)&&(this.isLayoutDirty=!0),e){let f;const p=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=kje(p,250),O1.hasAnimatedSinceResize&&(O1.hasAnimatedSinceResize=!1,this.nodes.forEach(A6))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||Jje,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=d.getProps(),w=!this.targetLayout||!_Y(this.targetLayout,x)||h,j=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||j||p&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,j);const _={...JT(v,"layout"),onPlay:g,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else p||A6(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Bf(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Yje),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&NY(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(S6);return}this.isUpdating||this.nodes.forEach(Vje),this.isUpdating=!1,this.nodes.forEach(Wje),this.nodes.forEach(qje),this.nodes.forEach(zje),this.clearAllSnapshots();const l=Uc.now();Ia.delta=ud(0,1e3/60,l-Ia.timestamp),Ia.timestamp=l,Ia.isProcessing=!0,RN.update.process(Ia),RN.preRender.process(Ia),RN.render.process(Ia),Ia.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,UT.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Gje),this.sharedNodes.forEach(Xje)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ti(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!jY(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&(l||Eh(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),e_e(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return Ti();const c=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(t_e))){const{scroll:d}=this.root;d&&(Fm(c.x,d.offset.x),Fm(c.y,d.offset.y))}return c}removeElementScroll(o){var l;const c=Ti();if(tl(c,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:p}=d;d!==this.root&&f&&p.layoutScroll&&(f.wasRoot&&tl(c,o),Fm(c.x,f.offset.x),Fm(c.y,f.offset.y))}return c}applyTransform(o,l=!1){const c=Ti();tl(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Bm(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Eh(d.latestValues)&&Bm(c,d.latestValues)}return Eh(this.latestValues)&&Bm(c,this.latestValues),c}removeTransform(o){const l=Ti();tl(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!Eh(u.latestValues))continue;MC(u.latestValues)&&u.updateSnapshot();const d=Ti(),f=u.measurePageBox();tl(d,f),y6(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Eh(this.latestValues)&&y6(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ia.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=Ia.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ti(),this.relativeTargetOrigin=Ti(),Wy(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),tl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ti(),this.targetWithTransforms=Ti()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ije(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tl(this.target,this.layout.layoutBox),gY(this.target,this.targetDelta)):tl(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ti(),this.relativeTargetOrigin=Ti(),Wy(this.relativeTargetOrigin,this.target,h.target),tl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ry&&Th.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||MC(this.parent.latestValues)||mY(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Ia.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;tl(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;hje(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Ti());const{target:x}=l;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(m6(this.prevProjectionDelta.x,this.projectionDelta.x),m6(this.prevProjectionDelta.y,this.projectionDelta.y)),Vy(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==h||!_6(this.projectionDelta.x,this.prevProjectionDelta.x)||!_6(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x)),Ry&&Th.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Dm(),this.projectionDelta=Dm(),this.projectionDeltaWithTransform=Dm()}setAnimationOrigin(o,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=Dm();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=Ti(),h=c?c.source:void 0,x=this.layout?this.layout.source:void 0,v=h!==x,g=this.getStack(),y=!g||g.members.length<=1,w=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(Zje));this.animationProgress=0;let j;this.mixTargetDelta=_=>{const N=_/1e3;k6(f.x,o.x,N),k6(f.y,o.y,N),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wy(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Qje(this.relativeTarget,this.relativeTargetOrigin,p,N),j&&Lje(this.relativeTarget,j)&&(this.isProjectionDirty=!1),j||(j=Ti()),tl(j,this.relativeTarget)),v&&(this.animationValues=d,Cje(d,u,this.latestValues,N,w,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Bf(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qr.update(()=>{O1.hasAnimatedSinceResize=!0,this.currentAnimation=_je(0,N6,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(N6),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=o;if(!(!l||!c||!u)){if(this!==o&&this.layout&&u&&AY(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Ti();const f=Mo(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+f;const p=Mo(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+p}tl(l,c),Bm(l,d),Vy(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Mje),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&UN("z",o,u,this.animationValues);for(let d=0;d<$N.length;d++)UN(`rotate${$N[d]}`,o,u,this.animationValues),UN(`skew${$N[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}getProjectionStyles(o){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Fje;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=E1(o==null?void 0:o.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=E1(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Eh(this.latestValues)&&(v.transform=d?d({},""):"none",this.hasProjected=!1),v}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=Dje(this.projectionDeltaWithTransform,this.treeScale,p),d&&(u.transform=d(p,u.transform));const{x:h,y:x}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${x.origin*100}% 0`,f.animationValues?u.opacity=f===this?(c=(l=p.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:u.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const v in dw){if(p[v]===void 0)continue;const{correct:g,applyTo:y}=dw[v],w=u.transform==="none"?p[v]:g(p[v],f);if(y){const j=y.length;for(let _=0;_<j;_++)u[y[_]]=w}else u[v]=w}return this.options.layoutId&&(u.pointerEvents=f===this?E1(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(S6),this.root.sharedNodes.clear()}}}function qje(e){e.updateLayout()}function zje(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?al(f=>{const p=o?n.measuredBox[f]:n.layoutBox[f],h=Mo(p);p.min=r[f].min,p.max=p.min+h}):AY(s,n.layoutBox,r)&&al(f=>{const p=o?n.measuredBox[f]:n.layoutBox[f],h=Mo(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=Dm();Vy(l,r,n.layoutBox);const c=Dm();o?Vy(c,e.applyTransform(i,!0),n.measuredBox):Vy(c,r,n.layoutBox);const u=!jY(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const x=Ti();Wy(x,n.layoutBox,p.layoutBox);const v=Ti();Wy(v,r,h.layoutBox),_Y(x,v)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=x,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function $je(e){Ry&&Th.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Uje(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Gje(e){e.clearSnapshot()}function S6(e){e.clearMeasurements()}function Vje(e){e.isLayoutDirty=!1}function Wje(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function A6(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Hje(e){e.resolveTargetDelta()}function Kje(e){e.calcProjection()}function Yje(e){e.resetSkewAndRotation()}function Xje(e){e.removeLeadSnapshot()}function k6(e,t,n){e.translate=di(t.translate,0,n),e.scale=di(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function P6(e,t,n,r){e.min=di(t.min,n.min,r),e.max=di(t.max,n.max,r)}function Qje(e,t,n,r){P6(e.x,t.x,n.x,r),P6(e.y,t.y,n.y,r)}function Zje(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Jje={duration:.45,ease:[.4,0,.1,1]},C6=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),E6=C6("applewebkit/")&&!C6("chrome/")?Math.round:Oo;function T6(e){e.min=E6(e.min),e.max=E6(e.max)}function e_e(e){T6(e.x),T6(e.y)}function AY(e,t,n){return e==="position"||e==="preserve-aspect"&&!rje(j6(t),j6(n),.2)}function t_e(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const n_e=SY({attachResizeListener:(e,t)=>mx(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),GN={current:void 0},kY=SY({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!GN.current){const e=new n_e({});e.mount(window),e.setOptions({layoutScroll:!0}),GN.current=e}return GN.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),r_e={pan:{Feature:xje},drag:{Feature:yje,ProjectionNode:kY,MeasureLayout:xY}};function O6(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&Qr.postRender(()=>s(t,A0(t)))}class i_e extends Hf{mount(){const{current:t}=this.node;t&&(this.unmount=rwe(t,n=>(O6(this.node,n,"Start"),r=>O6(this.node,r,"End"))))}unmount(){}}class a_e extends Hf{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=S0(mx(this.node.current,"focus",()=>this.onFocus()),mx(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function R6(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&Qr.postRender(()=>s(t,A0(t)))}class s_e extends Hf{mount(){const{current:t}=this.node;t&&(this.unmount=owe(t,n=>(R6(this.node,n,"Start"),(r,{success:i})=>R6(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const FC=new WeakMap,VN=new WeakMap,o_e=e=>{const t=FC.get(e.target);t&&t(e)},l_e=e=>{e.forEach(o_e)};function c_e({root:e,...t}){const n=e||document;VN.has(n)||VN.set(n,{});const r=VN.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(l_e,{root:e,...t})),r[i]}
vendor: 4,250 bytes, line 783
783function u_e(e,t,n){const r=c_e(t);return FC.set(e,n),r.observe(e),()=>{FC.delete(e),r.unobserve(e)}}const d_e={some:0,all:1};class f_e extends Hf{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:d_e[i]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=u?d:f;p&&p(c)};return u_e(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(h_e(t,n))&&this.startObserver()}unmount(){}}function h_e({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const p_e={inView:{Feature:f_e},tap:{Feature:s_e},focus:{Feature:a_e},hover:{Feature:i_e}},m_e={layout:{ProjectionNode:kY,MeasureLayout:xY}},BC={current:null},PY={current:!1};function g_e(){if(PY.current=!0,!!FT)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>BC.current=e.matches;e.addListener(t),t()}else BC.current=!1}const v_e=[...JK,Ya,qf],y_e=e=>v_e.find(ZK(e)),I6=new WeakMap;function x_e(e,t,n){for(const r in t){const i=t[r],s=n[r];if(ts(i))e.addValue(r,i);else if(ts(s))e.addValue(r,hx(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,hx(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const L6=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class b_e{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=d3,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Uc.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Qr.render(this.render,!1,!0))};const{latestValues:c,renderState:u,onUpdate:d}=o;this.onUpdate=d,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=uj(n),this.isVariantNode=oK(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in p){const x=p[h];c[h]!==void 0&&ts(x)&&x.set(c[h],!1)}}mount(t){this.current=t,I6.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),PY.current||g_e(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:BC.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){I6.delete(this.current),this.projection&&this.projection.unmount(),Bf(this.notifyUpdate),Bf(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];
vendor: 5,288 bytes, line 783
783n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Ip.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Qr.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in _g){const n=_g[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ti()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<L6.length;r++){const i=L6[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=x_e(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=hx(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(XK(i)||zK(i))?i=parseFloat(i):!y_e(i)&&qf.test(n)&&(i=HK(t,n)),this.setBaseTarget(t,ts(i)?i.get():i)),ts(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=VT(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!ts(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new a3),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class CY extends b_e{constructor(){super(...arguments),this.KeyframeResolver=eY}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ts(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function w_e(e){return window.getComputedStyle(e)}class j_e extends CY{constructor(){super(...arguments),this.type="html",this.renderInstance=gK}readValueFromInstance(t,n){if(Ip.has(n)){const r=u3(n);return r&&r.default||0}else{const r=w_e(t),i=(hK(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return vY(t,n)}build(t,n,r){KT(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return ZT(t,n,r)}}class __e extends CY{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ti}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ip.has(n)){const r=u3(n);return r&&r.default||0}return n=vK.has(n)?n:$T(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return bK(t,n,r)}build(t,n,r){YT(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){yK(t,n,r,i)}mount(t){this.isSVGTag=QT(t.tagName),super.mount(t)}}const N_e=(e,t)=>
783GT(e)?new __e(t):new j_e(t,{allowProjection:e!==O.Fragment}),S_e=X1e({...K2e,...p_e,...r_e,...m_e},N_e),ur=d1e(S_e);function A_e(){const{t:e}=Zt(),t=[{icon:ns,label:e("hero.governanceScore"),value:"78/100",color:"text-primary",x:-40,y:20},{icon:ns,label:e("hero.riskLevel"),value:e("hero.moderate"),color:"text-amber-500",x:40,y:-20},{icon:Io,label:e("hero.aiAnalysis"),value:e("hero.complete"),color:"text-emerald-500",x:0,y:60}];return a.jsxs("section",{className:"relative overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-accent/40 via-background to-primary/5"}),a.jsx("div",{className:"absolute top-20 right-1/4 w-96 h-96 bg-primary/5 rounded-full blur-3xl"}),a.jsx("div",{className:"absolute bottom-10 left-1/4 w-72 h-72 bg-primary/8 rounded-full blur-3xl"}),a.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20 lg:py-32",children:a.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[a.jsxs(ur.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7},children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-primary/10 border border-primary/20 mb-6",children:[a.jsx(Xr,{className:"w-3.5 h-3.5 text-primary"}),a.jsx("span",{className:"text-xs font-medium text-primary",children:e("hero.badge")})]}),a.jsxs("h1",{className:"font-heading text-4xl sm:text-5xl lg:text-6xl font-bold tracking-tight leading-tight mb-6",children:[e("hero.title1")," ",a.jsx("span",{className:"text-primary",children:e("hero.title2")})," ",e("hero.title3")]}),a.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed mb-8 max-w-xl",children:e("hero.description")}),a.jsxs("div",{className:"flex flex-wrap gap-3",children:[a.jsx(xe,{size:"lg",asChild:!0,className:"gap-2 bg-primary hover:bg-primary/90 h-12 px-6",children:a.jsxs(Dt,{to:"/health-check",children:[a.jsx(ns,{className:"w-4 h-4"}),e("hero.startHealthCheck")]})}),a.jsx(xe,{size:"lg",variant:"outline",asChild:!0,className:"gap-2 h-12 px-6",children:a.jsxs(Dt,{to:"/pricing",children:[e("hero.tryPremium"),a.jsx(rs,{className:"w-4 h-4"})]})})]}),a.jsxs("div",{className:"mt-10 flex items-center gap-6",children:[a.jsx("div",{className:"flex -space-x-2",children:[1,2,3,4].map(n=>a.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-br from-primary/20 to-primary/40 border-2 border-card flex items-center justify-center",children:a.jsx("span",{className:"text-[10px] font-semibold text-primary",children:String.fromCharCode(64+n)})},n))}),a.jsxs("p",{className:"text-sm text-muted-foreground",children:[e("hero.trustedBy")," ",a.jsx("span",{className:"font-semibold text-foreground",children:"2,000+"})," ",e("hero.governanceProfessionals")]})]})]}),a.jsxs(ur.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.7,delay:.2},className:"relative hidden lg:block",children:[a.jsxs("div",{className:"relative bg-card rounded-2xl border border-border/80 shadow-2xl shadow-primary/5 p-6 mx-8",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a.jsx("div",{className:"w-3 h-3 rounded-full bg-red-400"}),a.jsx("div",{className:"w-3 h-3 rounded-full bg-amber-400"}),a.jsx("div",{className:"w-3 h-3 rounded-full bg-emerald-400"})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:e("hero.governanceMaturity")}),a.jsx("p",{className:"text-2xl font-heading font-bold text-primary",children:"78%"})]}),a.jsx("div",{className:"w-16 h-16 rounded-full border-4 border-primary/20 flex items-center justify-center",children:a.jsx("div",{className:"w-12 h-12 rounded-full border-4 border-primary border-t-transparent animate-spin",style:{animationDuration:"3s"}})})]}),a.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{label:e("hero.controls"),pct:82,color:"bg-emerald-500"},{label:e("hero.oversight"),pct:65,color:"bg-amber-500"},{label:e("hero.compliance"),pct:91,color:"bg-primary"}].map(n=>a.jsxs("div",{className:"bg-muted/50 rounded-lg p-3",children:[a.jsx("p",{className:"text-[10px] text-muted-foreground mb-1",children:n.label}),a.jsxs("p",{className:"text-sm font-semibold mb-2",children:[n.pct,"%"]}),a.jsx("div",{className:"h-1 rounded-full bg-muted",children:a.jsx("div",{className:`h-1 rounded-full ${n.color}`,style:{width:`${n.pct}%`}})})]},n.label))}),a.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-lg bg-primary/5 border border-primary/10",children:[a.jsx(Io,{className:"w-4 h-4 text-primary flex-shrink-0"}),a.jsxs("p",{className:"text-xs text-muted-foreground",children:[a.jsx("span",{className:"font-medium text-foreground",children:e("hero.aiInsight")})," ",e("hero.aiInsightText")]})]})]})]}),t.map((n,r)=>a.jsx(ur.div,{className:"absolute bg-card rounded-xl border border-border shadow-lg p-3 min-w-[140px]",style:{to
783p:`${30+n.y}%`,left:n.x<0?"-8%":void 0,right:n.x>0?"-8%":void 0,bottom:n.y>40?"5%":void 0},animate:{y:[0,-8,0]},transition:{duration:3+r,repeat:1/0,ease:"easeInOut"},children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(n.icon,{className:`w-4 h-4 ${n.color}`}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] text-muted-foreground",children:n.label}),a.jsx("p",{className:"text-sm font-semibold",children:n.value})]})]})},n.label))]})]})})]})}const k_e=[{icon:ns,titleKey:"features.f1Title",descKey:"features.f1Desc",href:"/health-check",gradient:"from-teal-500/10 to-cyan-500/10",iconBg:"bg-teal-500/10",iconColor:"text-teal-600"},{icon:Xn,titleKey:"features.f2Title",descKey:"features.f2Desc",href:"/policy-generator",gradient:"from-blue-500/10 to-indigo-500/10",iconBg:"bg-blue-500/10",iconColor:"text-blue-600"},{icon:ja,titleKey:"features.f3Title",descKey:"features.f3Desc",href:"/risk-analyzer",gradient:"from-amber-500/10 to-orange-500/10",iconBg:"bg-amber-500/10",iconColor:"text-amber-600"},{icon:Io,titleKey:"features.f4Title",descKey:"features.f4Desc",href:"/decision-engine",gradient:"from-purple-500/10 to-pink-500/10",iconBg:"bg-purple-500/10",iconColor:"text-purple-600"},{icon:Fy,titleKey:"features.f5Title",descKey:"features.f5Desc",href:"/micro-tools",gradient:"from-emerald-500/10 to-green-500/10",iconBg:"bg-emerald-500/10",iconColor:"text-emerald-600"},{icon:Yl,titleKey:"features.f6Title",descKey:"features.f6Desc",href:"/intelligence",gradient:"from-rose-500/10 to-red-500/10",iconBg:"bg-rose-500/10",iconColor:"text-rose-600"}];function P_e(){const{t:e}=Zt(),t=k_e.map(n=>({...n,title:e(n.titleKey),description:e(n.descKey)}));return a.jsx("section",{className:"py-24 bg-background",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs("div",{className:"text-center mb-16",children:[a.jsx("h2",{className:"font-heading text-3xl sm:text-4xl font-bold mb-4",children:e("features.sectionTitle")}),a.jsx("p",{className:"text-muted-foreground text-lg max-w-2xl mx-auto",children:e("features.sectionDesc")})]}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:t.map((n,r)=>a.jsx(ur.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.1},children:a.jsxs(Dt,{to:n.href,className:"group block h-full p-6 rounded-2xl bg-card border border-border/60 hover:border-primary/30 hover:shadow-lg hover:shadow-primary/5 transition-all duration-300",children:[a.jsx("div",{className:`w-12 h-12 rounded-xl ${n.iconBg} flex items-center justify-center mb-4`,children:a.jsx(n.icon,{className:`w-6 h-6 ${n.iconColor}`})}),a.jsx("h3",{className:"font-heading font-semibold text-lg mb-2 group-hover:text-primary transition-colors",children:n.title}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-4",children:n.description}),a.jsxs("div",{className:"flex items-center gap-1.5 text-sm font-medium text-primary opacity-0 group-hover:opacity-100 transition-opacity",children:[e("features.launchTool")," ",a.jsx(rs,{className:"w-3.5 h-3.5"})]})]})},n.title))})]})})}function C_e(){const{t:e}=Zt(),t=[{icon:k2,label:e("mpg.f1")},{icon:s0,label:e("mpg.f2")},{icon:Mi,label:e("mpg.f3")},{icon:ja,label:e("mpg.f4")}],n=[{title:e("mpg.item1"),status:e("mpg.inProgress"),color:"bg-amber-500"},{title:e("mpg.item2"),status:e("mpg.completed"),color:"bg-emerald-500"},{title:e("mpg.item3"),status:e("mpg.pending"),color:"bg-blue-500"},{title:e("mpg.item4"),status:e("mpg.inProgress"),color:"bg-amber-500"}];return a.jsx("section",{className:"py-24 bg-accent/30",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[a.jsxs(ur.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[a.jsx("p",{className:"text-sm font-semibold text-primary uppercase tracking-wider mb-3",children:e("mpg.label")}),a.jsx("h2",{className:"font-heading text-3xl sm:text-4xl font-bold mb-4",children:e("mpg.title")}),a.jsx("p",{className:"text-muted-foreground leading-relaxed mb-8",children:e("mpg.description")}),a.jsx("div",{className:"grid grid-cols-2 gap-4 mb-8",children:t.map(r=>a.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-xl bg-card border border-border/60",children:[a.jsx(r.icon,{className:"w-5 h-5 text-primary flex-shrink-0"}),a.jsx("span",{className:"text-sm font-medium",children:r.label})]},r.label))}),a.jsx(xe,{size:"lg",className:"gap-2 bg-primary hover:bg-primary/90",asChild:!0,children:a.jsxs("a",{href:"https://mypremiumgovernance.com",target:"_blank",rel:"noopener noreferrer",children:[e("mpg.launchMPG"),a.jsx(Np,{className:"w-4 h-4"})]})})]}),a.jsx(ur.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"relative",children:a.jsxs("div",{className:"bg-card rounded-2xl border border-border shadow-xl p-6",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[a.jsx("div",{className:"w-3 h-3 rounded-full bg-red-400"}),a.jsx("div",{className:"w-3 h-3 rounded-full bg-amber-400"}),a.jsx("div",{className:"w-3 h-3 rounded-full bg-emerald-400"}),a.jsx("span",{className:"ml-2 text-xs text-muted-foreground font-medium",children:e("mpg.workspace")})]}),a.jsx("div",{className:"space-y-3",children:n.map(r=>a.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-muted/50 hover:bg-muted transition-colors",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(hne,{className:"w-4 h-4 text-primary"}),a.jsx("span",{className:"text-sm font-medium",children:r.title})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:`w-2 h-2 rounded-full ${r.color}`}),a.jsx("span",{className:"text-xs text-muted-foreground",children:r.status})]})]},r.title))})]})})]})})})}function E_e(){const{t:e}=Zt();return a.jsx("section",{className:"py-24",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"relative rounded-3xl bg-accent overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/10 via-trans
783parent to-primary/5"}),a.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-primary/10 rounded-full blur-3xl -translate-y-1/2 translate-x-1/2"}),a.jsxs("div",{className:"relative text-center px-6 py-20",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-primary/10 border border-primary/20 mb-6",children:[a.jsx(Xr,{className:"w-3.5 h-3.5 text-primary"}),a.jsx("span",{className:"text-xs font-medium text-primary",children:e("cta.badge")})]}),a.jsx("h2",{className:"font-heading text-3xl sm:text-4xl lg:text-5xl font-bold mb-4 max-w-2xl mx-auto",children:e("cta.title")}),a.jsx("p",{className:"text-muted-foreground text-lg mb-8 max-w-xl mx-auto",children:e("cta.description")}),a.jsxs("div",{className:"flex flex-wrap justify-center gap-3",children:[a.jsx(xe,{size:"lg",asChild:!0,className:"gap-2 bg-primary hover:bg-primary/90 h-12 px-8",children:a.jsxs(Dt,{to:"/health-check",children:[a.jsx(Xr,{className:"w-4 h-4"}),e("cta.startFreeAssessment")]})}),a.jsx(xe,{size:"lg",variant:"outline",asChild:!0,className:"gap-2 h-12 px-8",children:a.jsxs(Dt,{to:"/micro-tools",children:[e("cta.exploreAllTools"),a.jsx(rs,{className:"w-4 h-4"})]})})]})]})]})})})}const T_e=[{icon:ls,labelKey:"community.b1Label",descKey:"community.b1Desc"},{icon:as,labelKey:"community.b2Label",descKey:"community.b2Desc"},{icon:Io,labelKey:"community.b3Label",descKey:"community.b3Desc"},{icon:yg,labelKey:"community.b4Label",descKey:"community.b4Desc"},{icon:Aie,labelKey:"community.b5Label",descKey:"community.b5Desc"},{icon:Mi,labelKey:"community.b6Label",descKey:"community.b6Desc"}];function O_e(){const{t:e}=Zt(),t=T_e.map(n=>({...n,label:e(n.labelKey),desc:e(n.descKey)}));return a.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-accent/20 to-background",children:a.jsxs("div",{className:"max-w-5xl mx-auto text-center",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/10 text-primary rounded-full px-4 py-1.5 text-sm font-medium mb-6",children:[a.jsx(Mi,{className:"w-4 h-4"}),e("community.joinCommunity")]}),a.jsx("h2",{className:"text-3xl sm:text-4xl font-heading font-bold mb-4",children:e("community.title")}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto mb-10",children:e("community.description")}),a.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-4 mb-12 text-left",children:t.map(({icon:n,label:r,desc:i})=>a.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-xl bg-card border border-border/50 hover:border-primary/30 hover:shadow-sm transition-all duration-200",children:[a.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:a.jsx(n,{className:"w-4 h-4 text-primary"})}),a.jsxs("div",{children:[a.jsx("p",{className:"font-semibold text-sm leading-tight mb-0.5",children:r}),a.jsx("p",{className:"text-xs text-muted-foreground leading-snug",children:i})]})]},r))}),a.jsxs("div",{className:"flex flex-col items-center gap-4",children:[a.jsx("p",{className:"text-sm font-medium text-muted-foreground uppercase tracking-wider",children:e("community.followUs")}),a.jsx(pH,{placement:"landing",size:"lg",className:"justify-center"})]})]})})}const R_e=[{badge:"REQUESTOR",badgeClass:"bg-[#1b3a4a] text-[#70c3d9]",initials:"S",nameKey:"testimonials.name1",roleKey:"testimonials.role1",bodyKey:"testimonials.body1"},{badge:"REQUESTOR",badgeClass:"bg-[#1b3a4a] text-[#70c3d9]",initials:"J",nameKey:"testimonials.name2",roleKey:"testimonials.role2",bodyKey:"testimonials.body2"},{badge:"REQUESTED",badgeClass:"bg-[#2c2140] text-[#b590e8]",initials:"P",nameKey:"testimonials.name3",roleKey:"testimonials.role3",bodyKey:"testimonials.body3"}];function I_e(){const{t:e}=Zt();return a.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-[#0a141c]",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-14",children:[a.jsx("p",{className:"text-[#5e7a8e] uppercase tracking-[0.2em] text-sm font-medium mb-4",children:e("testimonials.eyebrow")}),a.jsx("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-heading font-bold text-white max-w-3xl mx-auto",children:e("testimonials.heading")})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:R_e.map((t,n)=>a.jsxs("div",{className:"bg-[#16212b] rounded-xl border border-white/5 p-6 flex flex-col gap-4",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:`inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-xs font-semibold ${t.badgeClass}`,children:t.badge}),a.jsx("div",{className:"flex gap-0.5",children:[...Array(5)].map((r,i)=>a.jsx(NP,{className:"w-4 h-4 fill-[#1ab9b9] text-[#1ab9b9]"},i))})]}),a.jsxs("p",{className:"text-[#d1d5db] text-sm leading-relaxed flex-1",children:['"',e(t.bodyKey),'"']}),a.jsxs("div",{className:"flex items-center gap-3 pt-2 border-t border-white/5",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-white/10 flex items-center justify-center text-white font-semibold text-sm",children:t.initials}),a.jsxs("div",{children:[a.jsx("p",{className:"text-white font-semibold text-sm",children:e(t.nameKey)}),a.jsx("p",{className:"text-[#7d8995] text-xs",children:e(t.roleKey)})]})]})]},n))})]})})}function L_e(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Array(12).fill(0);let qC=1;class M_e{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>
vendor: 3,675 bytes, line 783
783{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:qC++,o=this.toasts.find(c=>c.id===s),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(c=>c.id===s?(this.publish({...c,...t,id:s,title:r}),{...c,...t,id:s,dismissible:l,title:r}):c):this.addToast({title:r,...i,dismissible:l,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,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}));const i=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,o;const l=i.then(async u=>{if(o=["resolve",u],Ae.isValidElement(u))s=!1,this.create({id:r,type:"default",message:u});else if(F_e(u)&&!u.ok){s=!1;const f=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,p=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,x=typeof f=="object"&&!Ae.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:p,...x})}else if(u instanceof Error){s=!1;const f=typeof n.error=="function"?await n.error(u):n.error,p=typeof n.description=="function"?await n.description(u):n.description,x=typeof f=="object"&&!Ae.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:p,...x})}else if(n.success!==void 0){s=!1;const f=typeof n.success=="function"?await n.success(u):n.success,p=typeof n.description=="function"?await n.description(u):n.description,x=typeof f=="object"&&!Ae.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:p,...x})}}).catch(async u=>{if(o=["reject",u],n.error!==void 0){s=!1;const d=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,h=typeof d=="object"&&!Ae.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...h})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),c=()=>new Promise((u,d)=>l.then(()=>o[0]==="reject"?d(o[1]):u(o[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:c}:Object.assign(r,{unwrap:c})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||qC++;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}}const sl=new M_e,D_e=(e,t)=>{const n=(t==null?void 0:t.id)||qC++;return sl.addToast({title:e,...t,id:n}),n},F_e=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",B_e=D_e,q_e=()=>sl.toasts,z_e=()=>sl.getActiveToasts(),pt=Object.assign(B_e,{success:sl.success,info:sl.info,warning:sl.warning,error:sl.error,custom:sl.custom,message:sl.message,promise:sl.promise,dismiss:sl.dismiss,loading:sl.loading},{getHistory:q_e,getToasts:z_e});L_
vendor: 4,788 bytes, line 783
783e("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
vendor: 10,086 bytes, line 783
783left: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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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%)}");function
783$_e(){const e=Uf(),[t,n]=O.useState(!1),{t:r}=Zt(),i=async()=>{try{if(!await Ne.auth.isAuthenticated()){Ne.auth.redirectToLogin("/pricing");return}n(!0);const o=await Ne.auth.me();if((o==null?void 0:o.tier)==="premium"){pt.success(r("trial.alreadyPremium")),e("/dashboard");return}const l=new Date,c=new Date(l.getTime()+720*60*60*1e3);await Ne.auth.updateMe({tier:"premium",trial_started_at:l.toISOString(),trial_ends_at:c.toISOString()}),pt.success(r("trial.trialActivated")),e("/dashboard")}catch(s){console.error("Trial activation failed:",s),pt.error(r("trial.trialFailed"))}finally{n(!1)}};return a.jsx("section",{className:"py-16",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs(ur.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"relative overflow-hidden rounded-3xl border border-primary/20 bg-gradient-to-br from-primary/10 via-accent to-primary/5",children:[a.jsx("div",{className:"absolute top-0 right-0 w-72 h-72 bg-primary/10 rounded-full blur-3xl translate-x-1/3 -translate-y-1/3"}),a.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 bg-primary/5 rounded-full blur-3xl -translate-x-1/3 translate-y-1/3"}),a.jsxs("div",{className:"relative grid lg:grid-cols-2 gap-8 items-center p-8 sm:p-12",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-primary text-primary-foreground mb-5",children:[a.jsx(vg,{className:"w-3.5 h-3.5"}),a.jsx("span",{className:"text-xs font-semibold",children:r("trial.badge")})]}),a.jsx("h2",{className:"font-heading text-2xl sm:text-3xl font-bold mb-3",children:r("trial.title")}),a.jsx("p",{className:"text-muted-foreground text-base mb-6 max-w-md",children:r("trial.description")}),a.jsxs("div",{className:"flex flex-wrap gap-3",children:[a.jsx(xe,{size:"lg",className:"gap-2 bg-primary hover:bg-primary/90 h-12 px-6",onClick:i,disabled:t,children:t?a.jsxs(a.Fragment,{children:[a.jsx(Mf,{className:"w-4 h-4 animate-spin"})," ",r("trial.activating")]}):a.jsxs(a.Fragment,{children:[a.jsx(vg,{className:"w-4 h-4"})," ",r("trial.startFreeTrial")," ",a.jsx(rs,{className:"w-4 h-4"})]})}),a.jsx(xe,{size:"lg",variant:"outline",asChild:!0,className:"gap-2 h-12 px-6",children:a.jsx(Dt,{to:"/pricing",children:r("trial.viewPlans")})})]})]}),a.jsx("div",{className:"grid sm:grid-cols-2 gap-3",children:[r("trial.benefit1"),r("trial.benefit2"),r("trial.benefit3"),r("trial.benefit4"),r("trial.benefit5"),r("trial.benefit6")].map(s=>a.jsxs("div",{className:"flex items-center gap-2.5 bg-card/60 rounded-lg p-3 border border-border/40",children:[a.jsx("div",{className:"w-5 h-5 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:a.jsx(Oi,{className:"w-3 h-3 text-primary"})}),a.jsx("span",{className:"text-sm font-medium",children:s})]},s))})]})]})})})}function U_e(){return a.jsxs(a.Fragment,{children:[a.jsx(A_e,{}),a.jsx($_e,{}),a.jsx(P_e,{}),a.jsx(C_e,{}),a.jsx(O_e,{}),a.jsx(I_e,{}),a.jsx(E_e,{})]})}const Oe=O.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:ln("rounded-xl border bg-card text-card-foreground shadow",e),...t}));
vendor: 4,460 bytes, line 783
783Oe.displayName="Card";const vt=O.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:ln("flex flex-col space-y-1.5 p-6",e),...t}));vt.displayName="CardHeader";const yt=O.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:ln("font-semibold leading-none tracking-tight",e),...t}));yt.displayName="CardTitle";const Ja=O.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:ln("text-sm text-muted-foreground",e),...t}));Ja.displayName="CardDescription";const Le=O.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:ln("p-6 pt-0",e),...t}));Le.displayName="CardContent";const G_e=O.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:ln("flex items-center p-6 pt-0",e),...t}));G_e.displayName="CardFooter";var V_e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],W_e=V_e.reduce((e,t)=>{const n=L4(`Primitive.${t}`),r=O.forwardRef((i,s)=>{const{asChild:o,...l}=i,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),H_e="Label",EY=O.forwardRef((e,t)=>a.jsx(W_e.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));EY.displayName=H_e;var TY=EY;const K_e=a0("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Se=O.forwardRef(({className:e,...t},n)=>a.jsx(TY,{ref:n,className:ln(K_e(),e),...t}));Se.displayName=TY.displayName;var m3="Radio",[Y_e,OY]=xl(m3),[X_e,Q_e]=Y_e(m3),RY=O.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:s,disabled:o,value:l="on",onCheck:c,form:u,...d}=e,[f,p]=O.useState(null),h=Qn(t,g=>p(g)),x=O.useRef(!1),v=f?u||!!f.closest("form"):!0;return a.jsxs(X_e,{scope:n,checked:i,disabled:o,children:[a.jsx(wn.button,{type:"button",role:"radio","aria-checked":i,"data-state":DY(i),"data-disabled":o?"":void 0,disabled:o,value:l,...d,ref:h,onClick:qt(e.onClick,g=>{i||c==null||c(),v&&(x.current=g.isPropagationStopped(),x.current||g.stopPropagation())})}),v&&a.jsx(MY,{control:f,bubbles:!x.current,name:r,value:l,checked:i,required:s,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});RY.displayName=m3;var IY="RadioIndicator",LY=O.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...i}=e,s=Q_e(IY,n);return a.jsx(ec,{present:r||s.checked,children:a.jsx(wn.span,{"data-state":DY(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:t})})});LY.displayName=IY;var Z_e="RadioBubbleInput",MY=O.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...i},s)=>{const o=O.useRef(null),l=Qn(o,s),c=rj(n),u=Z2(t);return O.useEffect(()=>{const d=o.current;if(!d)return;const f=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(f,"checked").set;if(c!==n&&h){const x=new Event("click",{bubbles:r});h.call(d,n),d.dispatchEvent(x)}},[c,n,r]),a.jsx(wn.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:l,style:{...i.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});MY.displayName=Z_e;function DY(e){return e?"checked":"unchecked"}var J_e=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],hj="RadioGroup",[eNe]=xl(hj,[ov,OY]),FY=ov(),BY=OY(),[tNe,nNe]=eNe(hj),qY=O.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:i,value:s,required:o=!1,disabled:l=!1,orientation:c,dir:u,loop:d=!0,onValueChange:f,...p}=e,h=FY(n),x=v0(u),[v,g]=od({prop:s,defaultProp:i??null,onChange:f,caller:hj});return a.jsx(tNe,{scope:n,name:r,required:o,disabled:l,value:v,onValueChange:g,children:a.jsx(jT,{asChild:!0,...h,orientation:c,dir:x,loop:d,children:a.jsx(wn.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":l?"":void 0,dir:x,...p,ref:t})})})});qY.displayName=hj;var zY="RadioGroupItem",$Y=O.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...i}=e,s=nNe(zY,n),o=s.disabled||r,l=FY(n),c=BY(n),u=O.useRef(null),d=Qn(t,u),f=s.value===i.value,p=O.useRef(!1);return O.useEffect(()=>{const h=v=>{J_e.includes(v.key)&&(p.current=!0)},x=()=>p.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",x),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",x)}},[]),a.jsx(_T,{asChild:!0,...l,focusable:!o,active:f,children:a.jsx(RY,{disabled:o,required:s.required,
783checked:f,...c,...i,name:s.name,ref:d,onCheck:()=>s.onValueChange(i.value),onKeyDown:qt(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:qt(i.onFocus,()=>{var h;p.current&&((h=u.current)==null||h.click())})})})});$Y.displayName=zY;var rNe="RadioGroupIndicator",UY=O.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,i=BY(n);return a.jsx(LY,{...i,...r,ref:t})});UY.displayName=rNe;var GY=qY,VY=$Y,iNe=UY;const WY=O.forwardRef(({className:e,...t},n)=>a.jsx(GY,{className:ln("grid gap-2",e),...t,ref:n}));WY.displayName=GY.displayName;const HY=O.forwardRef(({className:e,...t},n)=>a.jsx(VY,{ref:n,className:ln("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:a.jsx(iNe,{className:"flex items-center justify-center",children:a.jsx(T9,{className:"h-3.5 w-3.5 fill-primary"})})}));HY.displayName=VY.displayName;function aNe(e,t=[]){let n=[];function r(s,o){const l=O.createContext(o);l.displayName=s+"Context";const c=n.length;n=[...n,o];const u=f=>{var y;const{scope:p,children:h,...x}=f,v=((y=p==null?void 0:p[e])==null?void 0:y[c])||l,g=O.useMemo(()=>x,Object.values(x));return a.jsx(v.Provider,{value:g,children:h})};u.displayName=s+"Provider";function d(f,p){var v;const h=((v=p==null?void 0:p[e])==null?void 0:v[c])||l,x=O.useContext(h);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const i=()=>{const s=n.map(o=>O.createContext(o));return function(l){const c=(l==null?void 0:l[e])||s;return O.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return i.scopeName=e,[r,sNe(i,...t)]}function sNe(...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((l,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...l,...f}},{});return O.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var oNe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],KY=oNe.reduce((e,t)=>{const n=L4(`Primitive.${t}`),r=O.forwardRef((i,s)=>{const{asChild:o,...l}=i,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),g3="Progress",v3=100,[lNe]=aNe(g3),[cNe,uNe]=lNe(g3),YY=O.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:i,getValueLabel:s=dNe,...o}=e;(i||i===0)&&!M6(i)&&console.error(fNe(`${i}`,"Progress"));const l=M6(i)?i:v3;r!==null&&!D6(r,l)&&console.error(hNe(`${r}`,"Progress"));const c=D6(r,l)?r:null,u=vw(c)?s(c,l):void 0;return a.jsx(cNe,{scope:n,value:c,max:l,children:a.jsx(KY.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":vw(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":ZY(c,l),"data-value":c??void 0,"data-max":l,...o,ref:t})})});YY.displayName=g3;var XY="ProgressIndicator",QY=O.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,i=uNe(XY,n);return a.jsx(KY.div,{"data-state":ZY(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});QY.displayName=XY;function dNe(e,t){return`${Math.round(e/t*100)}%`}function ZY(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function vw(e){return typeof e=="number"}function M6(e){return vw(e)&&!isNaN(e)&&e>0}function D6(e,t){return vw(e)&&!isNaN(e)&&e<=t&&e>=0}function fNe(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${v3}\`.`}function hNe(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 784 - a positive number 785 - less than the value passed to \`max\` (or ${v3} if no \`max\` prop is set) 786 - \`null\` or \`undefined\` if the progress is indeterminate. 787 788Defaulting to \`null\`.`}var JY=YY,pNe=QY;const k0=O.forwardRef(({className:e,value:t,...n},r)=>a.jsx(JY,{ref:r,className:ln("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:a.jsx(pNe,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));k0.displayName=JY.displayName;const mNe=a0("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function at({className:e,variant:t,...n}){return a.jsx("div",{className:ln(mNe({variant:t}),e),...n})}function gNe({score:e,label:t,size:n=120}){const r=(n-16)/2,i=2*Math.PI*r,s=e/100*i,o=e>=80?"text-emerald-500":e>=60?"text-amber-500":"text-red-500",l=e>=80?"stroke-emerald-500":e>=60?"stroke-amber-500":"stroke-red-500";return a.jsxs("div",{className:"flex flex-col items-center gap-2",children:[a.jsxs("div",{className:"relative",style:{width:n,height:n},children:[a.jsxs("svg",{className:"transform -rotate-90",width:n,height:n,
788children:[a.jsx("circle",{cx:n/2,cy:n/2,r,strokeWidth:8,fill:"none",className:"stroke-muted"}),a.jsx("circle",{cx:n/2,cy:n/2,r,strokeWidth:8,fill:"none",strokeLinecap:"round",className:l,strokeDasharray:i,strokeDashoffset:i-s,style:{transition:"stroke-dashoffset 1s ease-in-out"}})]}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a.jsx("span",{className:`text-2xl font-heading font-bold ${o}`,children:e})})]}),t&&a.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:t})]})}function nc({message:e="AI is analyzing your data..."}){return a.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[a.jsxs("div",{className:"relative mb-6",children:[a.jsx("div",{className:"w-16 h-16 rounded-2xl bg-primary/10 flex items-center justify-center",children:a.jsx(Io,{className:"w-8 h-8 text-primary"})}),a.jsx("div",{className:"absolute inset-0 rounded-2xl bg-primary/20 animate-pulse-ring"})]}),a.jsx("p",{className:"text-muted-foreground font-medium animate-pulse",children:e})]})}const vNe={health_check:ns,risk_analysis:ja,policy_generation:Xn,decision_engine:Io,document:Xn},yNe={critical:"bg-red-500/10 text-red-600 border-red-500/20",high:"bg-orange-500/10 text-orange-600 border-orange-500/20",medium:"bg-amber-500/10 text-amber-600 border-amber-500/20",low:"bg-emerald-500/10 text-emerald-600 border-emerald-500/20"};function pj({item:e,type:t}){var i;if(!e)return null;t==="assessment"&&vNe[e.type];const n=t==="assessment",r=n?e.results:null;return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[n&&(r==null?void 0:r.overall_score)&&a.jsx(Oe,{className:"flex items-center justify-center p-4",children:a.jsx(gNe,{score:r.overall_score,label:"Overall Score",size:100})}),n&&((i=r==null?void 0:r.risk_categories)==null?void 0:i.slice(0,2).map((s,o)=>a.jsxs(Oe,{className:"p-4",children:[a.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:s.category}),a.jsxs("p",{className:"text-2xl font-heading font-bold mb-1",children:[s.score,"%"]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:s.description})]},o))),!n&&a.jsxs(a.Fragment,{children:[a.jsxs(Oe,{className:"p-4",children:[a.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Type"}),a.jsx("p",{className:"font-semibold capitalize",children:e.doc_type})]}),e.category&&a.jsxs(Oe,{className:"p-4",children:[a.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Category"}),a.jsx("p",{className:"font-semibold capitalize",children:e.category})]})]}),e.company_name&&a.jsxs(Oe,{className:"p-4",children:[a.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Organization"}),a.jsx("p",{className:"font-semibold",children:e.company_name})]}),e.industry&&a.jsxs(Oe,{className:"p-4",children:[a.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Industry"}),a.jsx("p",{className:"font-semibold",children:e.industry})]})]}),(r==null?void 0:r.executive_summary)&&a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"text-lg font-heading flex items-center gap-2",children:[a.jsx(Xn,{className:"w-5 h-5 text-primary"}),"Executive Summary"]})}),a.jsx(Le,{children:a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed whitespace-pre-line",children:r.executive_summary})})]}),(r==null?void 0:r.identified_risks)&&r.identified_risks.length>0&&a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"text-lg font-heading flex items-center gap-2",children:[a.jsx(Ap,{className:"w-5 h-5 text-amber-500"}),"Identified Risks"]})}),a.jsx(Le,{children:a.jsx("div",{className:"space-y-3",children:r.identified_risks.map((s,o)=>a.jsxs("div",{className:"p-4 rounded-lg border border-border",children:[a.jsxs("div",{className:"flex items-start justify-between mb-2",children:[a.jsx("h4",{className:"font-medium text-sm",children:s.title}),a.jsx(at,{variant:"outline",className:yNe[s.severity],children:s.severity})]}),a.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:s.description}),a.jsxs("p",{className:"text-xs text-muted-foreground",children:[a.jsx("span",{className:"font-medium",children:"Impact:"})," ",s.impact]})]},o))})})]}),(r==null?void 0:r.strengths)&&r.strengths.length>0&&a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"text-lg font-heading flex items-center gap-2",children:[a.jsx(fi,{className:"w-5 h-5 text-emerald-500"}
788),"Strengths"]})}),a.jsx(Le,{children:a.jsx("ul",{className:"space-y-2",children:r.strengths.map((s,o)=>a.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[a.jsx(fi,{className:"w-4 h-4 text-emerald-500 mt-0.5 flex-shrink-0"}),a.jsx("span",{children:s})]},o))})})]}),(r==null?void 0:r.recommendations)&&r.recommendations.length>0&&a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"text-lg font-heading flex items-center gap-2",children:[a.jsx(q9,{className:"w-5 h-5 text-primary"}),"Recommendations"]})}),a.jsx(Le,{children:a.jsx("ol",{className:"space-y-3",children:r.recommendations.map((s,o)=>a.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[a.jsx("span",{className:"w-6 h-6 rounded-full bg-primary/10 text-primary text-xs font-semibold flex items-center justify-center flex-shrink-0",children:o+1}),a.jsx("span",{children:s})]},o))})})]}),!n&&e.content&&a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"text-lg font-heading",children:"Document Content"})}),a.jsx(Le,{children:a.jsx("div",{className:"prose prose-sm max-w-none prose-headings:font-heading prose-headings:mt-6 prose-headings:mb-4 prose-p:text-muted-foreground prose-p:leading-relaxed prose-table:w-full prose-table:border-collapse prose-tr:border-b prose-tr:border-border prose-th:bg-secondary prose-th:font-semibold prose-th:px-4 prose-th:py-2 prose-th:text-left prose-td:px-4 prose-td:py-2",children:a.jsx(Ep,{components:{table:({children:s})=>a.jsx("div",{className:"overflow-x-auto my-6 border rounded-lg",children:a.jsx("table",{className:"w-full border-collapse",children:s})}),thead:({children:s})=>a.jsx("thead",{className:"bg-secondary border-b-2 border-border",children:s}),th:({children:s})=>a.jsx("th",{className:"px-4 py-3 text-left font-semibold text-foreground border-r border-border last:border-r-0",children:s}),td:({children:s})=>a.jsx("td",{className:"px-4 py-3 text-muted-foreground border-r border-border last:border-r-0",children:s}),tr:({children:s})=>a.jsx("tr",{className:"border-b border-border hover:bg-accent/50 transition",children:s}),h1:({children:s})=>a.jsx("h1",{className:"text-3xl font-bold mt-8 mb-4 text-foreground font-heading",children:s}),h2:({children:s})=>a.jsx("h2",{className:"text-2xl font-bold mt-6 mb-3 text-foreground font-heading",children:s}),h3:({children:s})=>a.jsx("h3",{className:"text-xl font-semibold mt-5 mb-2 text-foreground font-heading",children:s}),p:({children:s})=>a.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:s}),ul:({children:s})=>a.jsx("ul",{className:"list-disc list-inside space-y-2 mb-4 text-muted-foreground",children:s}),ol:({children:s})=>a.jsx("ol",{className:"list-decimal list-inside space-y-2 mb-4 text-muted-foreground",children:s}),li:({children:s})=>a.jsx("li",{className:"text-muted-foreground",children:s})},children:e.content})})})]}),e.answers&&a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"text-lg font-heading",children:"Your Responses"})}),a.jsx(Le,{children:a.jsx("div",{className:"space-y-3",children:Object.entries(e.answers
788).map(([s,o],l)=>a.jsxs("div",{className:"p-3 rounded-lg border bg-card",children:[a.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-1",children:s.replace(/_/g," ")}),a.jsx("p",{className:"text-sm",children:typeof o=="boolean"?o?"Yes":"No":typeof o=="object"?JSON.stringify(o):String(o)})]},l))})})]})]})}const xNe=e=>[{id:"company",title:e("healthCheck.stepCompany"),fields:[{name:"company_name",label:e("healthCheck.orgName"),type:"text",placeholder:e("healthCheck.orgNamePlaceholder")},{name:"industry",label:e("healthCheck.industry"),type:"select",options:[{v:"Financial Services",k:"healthCheck.finServices"},{v:"Healthcare",k:"healthCheck.healthcare"},{v:"Technology",k:"healthCheck.technology"},{v:"Manufacturing",k:"healthCheck.manufacturing"},{v:"Retail",k:"healthCheck.retail"},{v:"Energy",k:"healthCheck.energy"},{v:"Government",k:"healthCheck.government"},{v:"Education",k:"healthCheck.education"},{v:"Non-Profit",k:"healthCheck.nonProfit"},{v:"Other",k:"healthCheck.other"}]}
788,{name:"company_size",label:e("healthCheck.companySize"),type:"select",options:[{v:"Startup (1-50)",k:"healthCheck.startup"},{v:"Small (51-200)",k:"healthCheck.small"},{v:"Medium (201-1000)",k:"healthCheck.medium"},{v:"Large (1001-5000)",k:"healthCheck.large"},{v:"Enterprise (5000+)",k:"healthCheck.enterprise"}]},{name:"regulatory_env",label:e("healthCheck.regulatoryEnv"),type:"select",options:[{v:"Highly Regulated",k:"healthCheck.highlyReg"},{v:"Moderately Regulated",k:"healthCheck.modReg"},{v:"Lightly Regulated",k:"healthCheck.lightlyReg"},{v:"Unsure",k:"healthCheck.unsure"}]}]},{id:"governance",title:e("healthCheck.stepGovernance"),questions:[{name:"board_oversight",label:e("healthCheck.q1"),options:[{v:"Yes, very active",k:"healthCheck.yesVeryActive"},{v:"Yes, but limited",k:"healthCheck.yesLimited"},{v:"No formal board",k:"healthCheck.noFormalBoard"},{v:"Not applicable",k:"healthCheck.notApplicable"}]},{name:"governance_framework",label:e("healthCheck.q2"),options:[{v:"Yes, fully implemented",k:"healthCheck.yesFully"},{v:"Partially implemented",k:"healthCheck.partialImpl"},{v:"Planning to implement",k:"healthCheck.planningImpl"},{v:"No framework",k:"healthCheck.noFramework"}]},{name:"policy_management",label:e("healthCheck.q3"),options:[{v:"Centralized & automated",k:"healthCheck.centralAuto"},{v:"Centralized & manual",k:"healthCheck.centralManual"},{v:"Decentralized",k:"healthCheck.decentralized"},{v:"No formal process",k:"healthCheck.noFormalProcess"}]}]},{id:"risk",title:e("healthCheck.stepRisk"),questions:[{name:"risk_management",label:e("healthCheck.q4"),options:[{v:"Advanced & integrated",k:"healthCheck.advancedInteg"},{v:"Established",k:"healthCheck.established"},{v:"Developing",k:"healthCheck.developing"},{v:"Ad hoc or none",k:"healthCheck.adHocNone"}]},{name:"vendor_oversight",label:e("healthCheck.q5"),options:[{v:"Formal program",k:"healthCheck.formalProgram"},{v:"Periodic reviews",k:"healthCheck.periodicReviews"},{v:"Minimal oversight",k:"healthCheck.minimalOversight"},{v:"No formal process",k:"healthCheck.noFormalProcess"}]},{name:"escalation",label:e("healthCheck.q6"),options:[{v:"Well-defined & tested",k:"healthCheck.wellDefined"},{v:"Defined but untested",k:"healthCheck.definedUntested"},{v:"Informal",k:"healthCheck.informal"},{v:"None",k:"healthCheck.none"}]},{name:"cyber_governance",label:e("healthCheck.q7"),options:[{v:"Dedicated team & framework",k:"healthCheck.dedicatedTeam"},{v:"Part of IT",k:"healthCheck.partOfIT"},{v:"Outsourced",k:"healthCheck.outsourced"},{v:"No formal program",k:"healthCheck.noFormalProgram"}]}]},{id:"operations",title:e("healthCheck.stepOperations"),questions:[{name:"internal_controls",label:e("healthCheck.q8"),options:[{v:"Regularly tested & improved",k:"healthCheck.regularlyTested"},{v:"Established but rarely tested",k:"healthCheck.estRarelyTested"},{v:"Basic controls",k:"healthCheck.basicControls"},{v:"Minimal or none",k:"healthCheck.minimalOrNone"}]},{name:"compliance",label:e("healthCheck.q9"),options:[{v:"Proactive & automated",k:"healthCheck.proactiveAuto"},{v:"Reactive but structured",k:"healthCheck.reactiveStructured"},{v:"Ad hoc",k:"healthCheck.adHoc"},{v:"No formal program",k:"healthCheck.noFormalProgram"}]},{name:"incident_response",label:e("healthCheck.q10"),options:[{v:"Tested & updated regularly",k:"healthCheck.testedUpdated"},{v:"Documented but untested",k:"healthCheck.docUntested"},{v:"Informal plan",k:"healthCheck.informalPlan"},{v:"No plan",k:"healthCheck.noPlan"}]}]}],bNe={"Startup (1-50)":"startup","Small (51-200)":"small","Medium (201-1000)":"medium","Large (1001-5000)":"large","Enterprise (5000+)":"enterprise"};function wNe(){var y,w;const{t:e,aiLanguageInstruction:t}=Zt(),[n,r]=O.useState(0),[i,s]=O.useState({}),[o,l]=O.useState(!1),[c,u]=O.useState(null),d=xNe(e),f=d[n],p=d.length,h=(n+1)/p*100,x=(j,_)=>{s(N=>({...N,[j]:_}))},v=()=>f.fields?f.fields.every(j=>i[j.name]):f.questions?f.questions.every(j=>i[j.name]):!0,g=async()=>{try{l(!0);const j=`You are a senior governance consultant. Based on the following organizational assessment data, provide a comprehensive governance health check report.${t()} 789 790Organization: ${i.company_name} 791Industry: ${i.industry}
792Size: ${i.company_size} 793Regulatory Environment: ${i.regulatory_env} 794 795Assessment Answers: 796${Object.entries(i).filter(([N])=>!["company_name","industry","company_size","regulatory_env"].includes(N)).map(([N,A])=>`- ${N.replace(/_/g," ")}: ${A}`).join(` 797`)} 798 799Provide the response in the following JSON format: 800{ 801 "overall_score": <number 0-100>, 802 "category_scores": { 803 "governance_structure": <number 0-100>, 804 "risk_management": <number 0-100>, 805 "operational_controls": <number 0-100>, 806 "compliance_readiness": <number 0-100>, 807 "oversight_effectiveness": <number 0-100> 808 }, 809 "strengths": [<list of 3-4 strength descriptions>], 810 "critical_gaps": [<list of 3-5 gap descriptions with severity: "critical", "high", "medium">], 811 "recommendations": [<list of 5-7 actionable recommendations>], 812 "executive_summary": "<2-3 paragraph professional governance assessment summary>" 813}`,_=await Ne.integrations.Core.InvokeLLM({prompt:j,response_json_schema:{type:"object",properties:{overall_score:{type:"number"},category_scores:{type:"object",properties:{governance_structure:{type:"number"},risk_management:{type:"number"},operational_controls:{type:"number"},compliance_readiness:{type:"number"},oversight_effectiveness:{type:"number"}}},strengths:{type:"array",items:{type:"string"}},critical_gaps:{type:"array",items:{type:"object",properties:{description:{type:"string"},severity:{type:"string"}}}},recommendations:{type:"array",items:{type:"string"}},executive_summary:{type:"string"}}}});u(_),await Ne.entities.Assessment.create({title:`Health Check - ${i.company_name}`,type:"health_check",status:"completed",answers:i,results:_,overall_score:_.overall_score,company_name:i.company_name,industry:i.industry,company_size:bNe[i.company_size]||"medium"}),pt.success(e("healthCheck.success"))}catch(j){console.error("Assessment error:",j),pt.error(e("healthCheck.error"))}finally{l(!1)}};if(o)return a.jsx("div",{className:"max-w-3xl mx-auto px-4 py-20",children:a.jsx(nc,{message:e("healthCheck.loading")})});if(c){const j={title:`Health Check - ${i.company_name}`,type:"health_check",company_name:i.company_name,industry:i.industry,company_size:i.company_size,results:c,overall_score:c.overall_score};return a.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:a.jsxs(ur.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[a.jsxs("div",{className:"text-center mb-10",children:[a.jsxs(at,{variant:"secondary",className:"mb-4 gap-1",children:[a.jsx(ns,{className:"w-3 h-3"})," ",e("healthCheck.assessmentComplete")]}),a.jsx("h1",{className:"font-heading text-3xl font-bold mb-2",children:e("healthCheck.reportTitle")}),a.jsxs("p",{className:"text-muted-foreground",children:[i.company_name," â ",i.industry]})]}),a.jsx(pj,{item:j,type:"assessment"}),a.jsx(Oe,{className:"bg-accent border-primary/20 mt-8",children:a.jsxs(Le,{className:"flex flex-col sm:flex-row items-center justify-between gap-4 py-6",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(ls,{className:"w-8 h-8 text-primary"}),a.jsxs("div",{children:[a.jsx("p",{className:"font-heading font-semibold",children:e("healthCheck.operationalize")}),a.jsx("p",{className:"text-sm text-muted-foreground",children:e("healthCheck.operationalizeDesc")})]})]}),a.jsx(xe,{className:"gap-2 bg-primary hover:bg-primary/90",asChild:!0,children:a.jsxs("a",{href:"https://mypremiumgovernance.com",target:"_blank",rel:"noopener noreferrer",children:[e("healthCheck.openMPG")," ",a.jsx(Np,{className:"w-4 h-4"})]})})]})}),a.jsx("div",{className:"text-center mt-8",children:a.jsx(xe,{variant:"outline",onClick:()=>{u(null),r(0),s({})},children:e("healthCheck.newAssessment")})})]})})}return a.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[a.jsxs("div",{className:"text-center mb-10",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-primary/10 border border-primary/20 mb-4",children:[a.jsx(ns,{className:"w-3.5 h-3.5 text-primary"}),a.jsx("span",{className:"text-xs font-medium text-primary",children:e("healthCheck.badge")})]}),a.jsx("h1",{className:"font-heading text-3xl font-bold mb-2",children:e("healthCheck.title")}),a.jsx("p",{className:"text-muted-foreground",children:e("healthCheck.subtitle")})]}),a.jsxs("div",{className:"mb-8",children:[a.jsxs("div",{className:"flex items-center justify-between text-sm mb-2",children:[a.jsxs("span",{className:"text-muted-foreground",children:[e("healthCheck.step")," ",n+1," ",e("healthCheck.of")," ",p]}),a.jsx("span",{className:"font-medium",children:f.title})]}),a.jsx(k0,{value:h,className:"h-1.5"})]}),a.jsx(nK,{mode:"wait",children:a.jsx(ur.div,{initial:{opacity:0,x:20}
813,animate:{opacity:1,x:0},exit:{opacity:0,x:-20},children:a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"font-heading text-xl",children:f.title})}),a.jsxs(Le,{className:"space-y-6",children:[(y=f.fields)==null?void 0:y.map(j=>a.jsxs("div",{className:"space-y-2",children:[a.jsx(Se,{children:j.label}),j.type==="text"?a.jsx(Qe,{placeholder:j.placeholder,value:i[j.name]||"",onChange:_=>x(j.name,_.target.value)}):a.jsxs(Et,{value:i[j.name]||"",onValueChange:_=>x(j.name,_),children:[a.jsx(Pt,{children:a.jsx(Tt,{placeholder:e("healthCheck.selectType")})}),a.jsx(Ct,{children:j.options.map(_=>a.jsx(Ce,{value:_.v,children:e(_.k)},_.v))})]})]},j.name)),(w=f.questions)==null?void 0:w.map(j=>a.jsxs("div",{className:"space-y-3",children:[a.jsx(Se,{className:"text-sm font-medium",children:j.label}),a.jsx(WY,{value:i[j.name]||"",onValueChange:_=>x(j.name,_),className:"space-y-2",children:j.options.map(_=>a.jsxs("div",{className:"flex items-center space-x-3 p-3 rounded-lg border border-border hover:border-primary/30 hover:bg-primary/5 transition-colors cursor-pointer",children:[a.jsx(HY,{value:_.v,id:`${j.name}-${_.v}`}),a.jsx(Se,{htmlFor:`${j.name}-${_.v}`,className:"text-sm cursor-pointer flex-1",children:e(_.k)})]},_.v))})]},j.name))]})]})},f.id)}),a.jsxs("div",{className:"flex items-center justify-between mt-6",children:[a.jsxs(xe,{variant:"outline",onClick:()=>r(j=>j-1),disabled:n===0,className:"gap-2",children:[a.jsx(gl,{className:"w-4 h-4"})," ",e("healthCheck.back")]}),n<p-1?a.jsxs(xe,{onClick:()=>r(j=>j+1),disabled:!v(),className:"gap-2 bg-primary hover:bg-primary/90",children:[e("healthCheck.next")," ",a.jsx(rs,{className:"w-4 h-4"})]}):a.jsxs(xe,{onClick:g,disabled:!v(),className:"gap-2 bg-primary hover:bg-primary/90",children:[a.jsx(Xr,{className:"w-4 h-4"})," ",e("healthCheck.generateReport")]})]})]})}const jNe=[{value:"policy",labelKey:"policyGen.dtPolicy"},{value:"framework",labelKey:"policyGen.dtFramework"},{value:"charter",labelKey:"policyGen.dtCharter"},{value:"procedure",labelKey:"policyGen.dtProcedure"},{value:"plan",labelKey:"policyGen.dtPlan"},{value:"template",labelKey:"policyGen.dtTemplate"}],_Ne=["Corporate Governance","Vendor Oversight","Risk Management","Cybersecurity Governance","ESG Oversight","AI Governance","Compliance Operations","Board Governance","Operational Resilience","Due Diligence","Internal Controls","Outsourcing Governance","Regulatory Oversight","Data Governance","Third-Party Risk"];function NNe(){var p;const{t:e,aiLanguageInstruction:t}=Zt(),n=jNe.map(h=>({...h,label:e(h.labelKey)})),[r,i]=O.useState({doc_type:"",category:"",company_name:"",industry:"",company_size:"",additional:""}),[s,o]=O.useState(!1),[l,c]=O.useState(null),u=(h,x)=>i(v=>({...v,[h]:x})),d=async()=>{var h;try{o(!0);const x=`You are a senior governance documentation expert. Generate a comprehensive, professional ${r.doc_type} document for the following:${t()} 814 815Category: ${r.category} 816Organization: ${r.company_name||"Generic Organization"} 817Industry: ${r.industry} 818Organization Size: ${r.company_size} 819Additional Context: ${r.additional||"None"} 820 821Generate a complete, production-ready governance document in professional markdown format. Include: 822- Title and document metadata 823- Purpose and scope 824- Definitions 825- Roles and responsibilities 826- Detailed procedures/framework elements 827- Monitoring and review 828- Approval and version control section 829 830Make it thorough, professional, and immediately usable. Use industry best practices and relevant standards.`,v=await Ne.integrations.Core.InvokeLLM({prompt:x});await Ne.entities.GeneratedDocument.create({title:`${r.category} ${((h=n.find(g=>g.value===r.doc_type))==null?void 0:h.label)||"Document"}`,doc_type:r.doc_type,category:r.category,content:v,company_name:r.company_name,industry:r.industry,company_size:r.company_size||"medium",status:"completed"}),c(v),pt.success(e("policyGen.success"))}catch(x){console.error("Generation error:",x),pt.error(e("policyGen.error"))}finally{o(!1)}},f=r.doc_type&&r.category&&r.industry;return s?a.jsx("div",{className:"max-w-3xl mx-auto px-4 py-20",children:a.jsx(nc,{message:e("policyGen.loading")})}):l?a.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:a.jsxs(ur.div,{initial:{opacity:0,y:20}
830,animate:{opacity:1,y:0},children:[a.jsxs("div",{className:"flex items-center justify-between mb-6",children:[a.jsxs("div",{children:[a.jsxs(at,{variant:"secondary",className:"mb-2 gap-1",children:[a.jsx(Xn,{className:"w-3 h-3"})," ",e("policyGen.generated")]}),a.jsxs("h1",{className:"font-heading text-2xl font-bold",children:[r.category," ",(p=n.find(h=>h.value===r.doc_type))==null?void 0:p.label]})]}),a.jsx("div",{className:"flex gap-2",children:a.jsxs(xe,{variant:"outline",size:"sm",onClick:()=>{navigator.clipboard.writeText(l),pt.success(e("policyGen.copied"))},className:"gap-1.5",children:[a.jsx(ad,{className:"w-3.5 h-3.5"})," ",e("policyGen.copy")]})})]}),a.jsx(Oe,{className:"mb-6",children:a.jsx(Le,{className:"p-8",children:a.jsx(Ep,{className:"prose prose-sm max-w-none prose-headings:font-heading prose-headings:text-foreground prose-headings:mt-6 prose-headings:mb-4 prose-p:text-muted-foreground prose-p:leading-relaxed prose-li:text-muted-foreground prose-strong:text-foreground prose-table:w-full prose-table:border-collapse prose-tr:border-b prose-tr:border-border prose-th:bg-secondary prose-th:font-semibold prose-th:px-4 prose-th:py-2 prose-th:text-left prose-td:px-4 prose-td:py-2",components:{table:({children:h})=>a.jsx("div",{className:"overflow-x-auto my-6 border rounded-lg",children:a.jsx("table",{className:"w-full border-collapse",children:h})}),thead:({children:h})=>a.jsx("thead",{className:"bg-secondary border-b-2 border-border",children:h}),th:({children:h})=>a.jsx("th",{className:"px-4 py-3 text-left font-semibold text-foreground border-r border-border last:border-r-0",children:h}),td:({children:h})=>a.jsx("td",{className:"px-4 py-3 text-muted-foreground border-r border-border last:border-r-0",children:h}),tr:({children:h})=>a.jsx("tr",{className:"border-b border-border hover:bg-accent/50 transition",children:h}),h1:({children:h})=>a.jsx("h1",{className:"text-3xl font-bold mt-8 mb-4 text-foreground font-heading",children:h}),h2:({children:h})=>a.jsx("h2",{className:"text-2xl font-bold mt-6 mb-3 text-foreground font-heading",children:h}),h3:({children:h})=>a.jsx("h3",{className:"text-xl font-semibold mt-5 mb-2 text-foreground font-heading",children:h}),h4:({children:h})=>a.jsx("h4",{className:"text-lg font-semibold mt-4 mb-2 text-foreground font-heading",children:h}),p:({children:h})=>a.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:h}),ul:({children:h})=>a.jsx("ul",{className:"list-disc list-inside space-y-2 mb-4 text-muted-foreground",children:h}),ol:({children:h})=>a.jsx("ol",{className:"list-decimal list-inside space-y-2 mb-4 text-muted-foreground",children:h}),li:({children:h})=>a.jsx("li",{className:"text-muted-foreground",children:h}),blockquote:({children:h})=>a.jsx("blockquote",{className:"border-l-4 border-primary pl-4 py-2 my-4 bg-accent rounded italic text-muted-foreground",children:h})},children:l})})}),a.jsx(Oe,{className:"bg-accent border-primary/20 mb-6",children:a.jsxs(Le,{className:"flex flex-col sm:flex-row items-center justify-between gap-4 py-6",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(ls,{className:"w-8 h-8 text-primary"}),a.jsxs("div",{children:[a.jsx("p",{className:"font-heading font-semibold",children:e("policyGen.storeMPG")}),a.jsx("p",{className:"text-sm text-muted-foreground",children:e("policyGen.storeMPGDesc")})]})]}),a.jsx(xe,{className:"gap-2 bg-primary hover:bg-primary/90",asChild:!0,children:a.jsxs("a",{href:"https://mypremiumgovernance.com",target:"_blank",rel:"noopener noreferrer",children:[e("healthCheck.openMPG")," ",a.jsx(Np,{className:"w-4 h-4"})]})})]})}),a.jsx("div",{className:"text-center",children:a.jsx(xe,{variant:"outline",onClick:()=>{c(null),i({doc_type:"",category:"",company_name:"",industry:"",company_size:"",additional:""})},children:e("policyGen.generateAnother")})})]})}):a.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[a.jsxs("div",{className:"text-center mb-10",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-blue-500/10 border border-blue-500/20 mb-4",children:[a.jsx(Xn,{className:"w-3.5 h-3.5 text-blue-600"}),a.jsx("span",{className:"text-xs font-medium text-blue-600",children:e("policyGen.badge")})]}),a.jsx("h1",{className:"font-heading text-3xl font-bold mb-2",children:e("policyGen.title")}),a.jsx("p",{className:"text-muted-foreground",children:e("policyGen.subtitle")})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"font-heading",children:e("policyGen.config")})}),a.jsxs(Le,{className:"space-y-6",children:[a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Se,{children:e("policyGen.docType")}),a.jsxs(Et,{value:r.doc_type,onValueChange:h=>u("doc_type",h),children:[a.jsx(Pt,{children:a.jsx(Tt,{placeholder:e("policyGen.selectType")})}),a.jsx(Ct,{children:n.map(h=>a.jsx(Ce,{value:h.value,children:h.label},h.value))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Se,{children:e("policyGen.domain")}),a.jsxs(Et,{value:r.category,onValueChange:h=>u("category",h),children:[a.jsx(Pt,{children:a.jsx(Tt,{placeholder:e("policyGen.selectDomain")})}),a.jsx(Ct,{children:_Ne.map(h=>a.jsx(Ce,{value:h,children:h},h))})]})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Se,{children:e("policyGen.orgNameOpt")}),a.jsx(Qe,{placeholder:e("policyGen.orgNamePlaceholder"),value:r.company_name,onChange:h=>u("company_name",h.target.value)})]}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Se,{children:e("policyGen.industryReq")}
830),a.jsxs(Et,{value:r.industry,onValueChange:h=>u("industry",h),children:[a.jsx(Pt,{children:a.jsx(Tt,{placeholder:e("policyGen.selectIndustry")})}),a.jsx(Ct,{children:[{v:"Financial Services",k:"healthCheck.finServices"},{v:"Healthcare",k:"healthCheck.healthcare"},{v:"Technology",k:"healthCheck.technology"},{v:"Manufacturing",k:"healthCheck.manufacturing"},{v:"Retail",k:"healthCheck.retail"},{v:"Energy",k:"healthCheck.energy"},{v:"Government",k:"healthCheck.government"},{v:"Education",k:"healthCheck.education"},{v:"Non-Profit",k:"healthCheck.nonProfit"},{v:"Other",k:"healthCheck.other"}].map(h=>a.jsx(Ce,{value:h.v,children:e(h.k)},h.v))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Se,{children:e("policyGen.orgSize")}),a.jsxs(Et,{value:r.company_size,onValueChange:h=>u("company_size",h),children:[a.jsx(Pt,{children:a.jsx(Tt,{placeholder:e("policyGen.selectSize")})}),a.jsx(Ct,{children:[{v:"startup",k:"policyGen.sizeStartup"},{v:"small",k:"policyGen.sizeSmall"},{v:"medium",k:"policyGen.sizeMedium"},{v:"large",k:"policyGen.sizeLarge"},{v:"enterprise",k:"policyGen.sizeEnterprise"}].map(h=>a.jsx(Ce,{value:h.v,children:e(h.k)},h.v))})]})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Se,{children:e("policyGen.additionalReq")}),a.jsx(Pn,{placeholder:e("policyGen.additionalPlaceholder"),value:r.additional,onChange:h=>u("additional",h.target.value),className:"h-24"})]}),a.jsxs(xe,{onClick:d,disabled:!f,className:"w-full gap-2 bg-primary hover:bg-primary/90 h-11",children:[a.jsx(Xr,{className:"w-4 h-4"})," ",e("policyGen.generate")]})]})]})]})}function SNe(){const{t:e,aiLanguageInstruction:t}=Zt(),[n,r]=O.useState({company_name:"",industry:"",operations:"",vendors:"",staffing:"",controls:""}),[i,s]=O.useState(!1),[o,l]=O.useState(null),c=(f,p)=>r(h=>({...h,[f]:p})),u=async()=>{try{s(!0);const f=`You are a senior risk & oversight analyst. Analyze the following operational information and identify governance risks, blind spots, and oversight weaknesses.${t()} 831 832Organization: ${n.company_name||"Organization"} 833Industry: ${n.industry} 834 835Operational Details: ${n.operations} 836Vendor Structure: ${n.vendors} 837Staffing & Governance Roles: ${n.staffing} 838Current Controls: ${n.controls} 839 840Provide a comprehensive risk analysis in JSON format: 841{ 842 "overall_risk_score": <number 0-100, higher = more risk>, 843 "risk_categories": [ 844 {"category": "<name>", "score": <0-100>, "description": "<brief>"} 845 ], 846 "identified_risks": [ 847 {"title": "<risk title>", "severity": "<critical/high/medium/low>", "description": "<detailed description>", "impact": "<potential impact>"} 848 ], 849 "blind_spots": ["<operational blind spot descriptions>"], 850 "mitigation_priorities": [ 851 {"priority": <1-5>, "action": "<mitigation action>", "expected_impact": "<expected improvement>"} 852 ], 853 "executive_summary": "<2-3 paragraph professional risk assessment summary>" 854}`,p=await Ne.integrations.Core.InvokeLLM({prompt:f,response_json_schema:{type:"object",properties:{overall_risk_score:{type:"number"},risk_categories:{type:"array",items:{type:"object",properties:{category:{type:"string"},score:{type:"number"},description:{type:"string"}}}},identified_risks:{type:"array",items:{type:"object",properties:{title:{type:"string"},severity:{type:"string"},description:{type:"string"},impact:{type:"string"}}}},blind_spots:{type:"array",items:{type:"string"}},mitigation_priorities:{type:"array",items:{type:"object",properties:{priority:{type:"number"},action:{type:"string"},expected_impact:{type:"string"}}}},executive_summary:{type:"string"}}}});l(p),await Ne.entities.Assessment.create({title:`Risk Analysis - ${n.company_name||"Organization"}`,type:"risk_analysis",status:"completed",answers:n,results:p,overall_score:100-p.overall_risk_score,company_name:n.company_name,industry:n.industry}),pt.success(e("riskAnalyzer.success"))}catch(f){console.error("Analysis error:",f),pt.error(e("riskAnalyzer.error"))}finally{s(!1)}},d=n.industry&&n.operations;if(i)return a.jsx("div",{className:"max-w-3xl mx-auto px-4 py-20",children:a.jsx(nc,{message:e("riskAnalyzer.loading")})});if(o){const f={title:`Risk Analysis - ${n.company_name||"Organization"}`,type:"risk_analysis",company_name:n.company_name,industry:n.industry,results:o,overall_score:100-o.overall_risk_score};return a.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:a.jsxs(ur.div,{initial:{opacity:0,y:20}
854,animate:{opacity:1,y:0},children:[a.jsxs("div",{className:"text-center mb-10",children:[a.jsxs(at,{variant:"secondary",className:"mb-4 gap-1",children:[a.jsx(ja,{className:"w-3 h-3"})," ",e("riskAnalyzer.analysisComplete")]}),a.jsx("h1",{className:"font-heading text-3xl font-bold mb-2",children:e("riskAnalyzer.reportTitle")}),a.jsxs("p",{className:"text-muted-foreground",children:[n.company_name||"Organization"," â ",n.industry]})]}),a.jsx(pj,{item:f,type:"assessment"}),a.jsx(Oe,{className:"bg-accent border-primary/20 mt-8",children:a.jsxs(Le,{className:"flex flex-col sm:flex-row items-center justify-between gap-4 py-6",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(ls,{className:"w-8 h-8 text-primary"}),a.jsxs("div",{children:[a.jsx("p",{className:"font-heading font-semibold",children:e("riskAnalyzer.trackMPG")}),a.jsx("p",{className:"text-sm text-muted-foreground",children:e("riskAnalyzer.trackMPGDesc")})]})]}),a.jsx(xe,{className:"gap-2 bg-primary hover:bg-primary/90",asChild:!0,children:a.jsxs("a",{href:"https://mypremiumgovernance.com",target:"_blank",rel:"noopener noreferrer",children:[e("healthCheck.openMPG")," ",a.jsx(Np,{className:"w-4 h-4"})]})})]})}),a.jsx("div",{className:"text-center mt-8",children:a.jsx(xe,{variant:"outline",onClick:()=>{l(null),r({company_name:"",industry:"",operations:"",vendors:"",staffing:"",controls:""})},children:e("riskAnalyzer.newAnalysis")})})]})})}return a.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[a.jsxs("div",{className:"text-center mb-10",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-amber-500/10 border border-amber-500/20 mb-4",children:[a.jsx(ja,{className:"w-3.5 h-3.5 text-amber-600"}),a.jsx("span",{className:"text-xs font-medium text-amber-600",children:e("riskAnalyzer.badge")})]}),a.jsx("h1",{className:"font-heading text-3xl font-bold mb-2",children:e("riskAnalyzer.title")}),a.jsx("p",{className:"text-muted-foreground",children:e("riskAnalyzer.subtitle")})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"font-heading",children:e("riskAnalyzer.details")})}),a.jsxs(Le,{className:"space-y-5",children:[a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Se,{children:e("riskAnalyzer.orgName")}),a.jsx(Qe,{placeholder:e("riskAnalyzer.orgPlaceholder"),value:n.company_name,onChange:f=>c("company_name",f.target.value)})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Se,{children:e("riskAnalyzer.industryReq")}),a.jsxs(Et,{value:n.industry,onValueChange:f=>c("industry",f),children:[a.jsx(Pt,{children:a.jsx(Tt,{placeholder:e("riskAnalyzer.selectIndustry")})}),a.jsx(Ct,{children:[{v:"Financial Services",k:"healthCheck.finServices"},{v:"Healthcare",k:"healthCheck.healthcare"},{v:"Technology",k:"healthCheck.technology"},{v:"Manufacturing",k:"healthCheck.manufacturing"},{v:"Retail",k:"healthCheck.retail"},{v:"Energy",k:"healthCheck.energy"},{v:"Government",k:"healthCheck.government"},{v:"Education",k:"healthCheck.education"},{v:"Other",k:"healthCheck.other"}].map(f=>a.jsx(Ce,{value:f.v,children:e(f.k)},f.v))})]})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Se,{children:e("riskAnalyzer.opsDetail
854s")}),a.jsx(Pn,{placeholder:e("riskAnalyzer.opsPlaceholder"),value:n.operations,onChange:f=>c("operations",f.target.value),className:"h-24"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Se,{children:e("riskAnalyzer.vendorStructure")}),a.jsx(Pn,{placeholder:e("riskAnalyzer.vendorPlaceholder"),value:n.vendors,onChange:f=>c("vendors",f.target.value),className:"h-20"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Se,{children:e("riskAnalyzer.staffing")}),a.jsx(Pn,{placeholder:e("riskAnalyzer.staffingPlaceholder"),value:n.staffing,onChange:f=>c("staffing",f.target.value),className:"h-20"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Se,{children:e("riskAnalyzer.controls")}),a.jsx(Pn,{placeholder:e("riskAnalyzer.controlsPlaceholder"),value:n.controls,onChange:f=>c("controls",f.target.value),className:"h-20"})]}),a.jsxs(xe,{onClick:u,disabled:!d,className:"w-full gap-2 bg-primary hover:bg-primary/90 h-11",children:[a.jsx(Xr,{className:"w-4 h-4"})," ",e("riskAnalyzer.analyze")]})]})]})]})}const ANe=["decisionEngine.sq1","decisionEngine.sq2","decisionEngine.sq3","decisionEngine.sq4","decisionEngine.sq5","decisionEngine.sq6"];function kNe(){const{t:e,aiLanguageInstruction:t}=Zt(),n=ANe.map(d=>e(d)),[r,i]=O.useState(""),[s,o]=O.useState(!1),[l,c]=O.useState(null),u=async()=>{try{o(!0);const d=`You are a senior governance advisor. A user asks the following governance decision question:${t()} 855 856"${r}" 857 858Provide a comprehensive governance decision analysis in JSON format: 859{ 860 "decision_summary": "<1 paragraph clear answer/recommendation>", 861 "governance_implications": ["<list of 4-5 governance implications>"], 862 "risk_factors": [{"factor": "<name>", "level": "<high/medium/low>", "description": "<brief>"}], 863 "recommended_approach": "<2-3 paragraph detailed recommended governance approach>", 864 "considerations": ["<list of 4-5 key operational considerations>"], 865 "action_items": ["<list of 3-5 actionable next steps>"], 866 "confidence_level": "<high/medium/low>" 867}`,f=await Ne.integrations.Core.InvokeLLM({prompt:d,response_json_schema:{type:"object",properties:{decision_summary:{type:"string"},governance_implications:{type:"array",items:{type:"string"}},risk_factors:{type:"array",items:{type:"object",properties:{factor:{type:"string"},level:{type:"string"},description:{type:"string"}}}},recommended_approach:{type:"string"},considerations:{type:"array",items:{type:"string"}},action_items:{type:"array",items:{type:"string"}},confidence_level:{type:"string"}}}});c(f);const p=`# Governance Decision Analysis 868 869## Executive Summary 870 871${f.decision_summary||""} 872 873## Governance Implications 874 875${(f.governance_implications||[]).map((h,x)=>`${x+1}. ${h}`).join(` 876 877`)} 878 879## Risk Assessment 880 881${(f.risk_factors||[]).map(h=>`### ${h.factor} 882 883**Severity:** ${h.level.toUpperCase()} 884 885${h.description}`).join(` 886 887`)} 888 889## Recommended Approach 890 891${f.recommended_approach||""} 892 893## Key Considerations 894 895${(f.considerations||[]).map((h,x)=>`${x+1}. ${h}`).join(` 896 897`)} 898 899## Action Items 900 901${(f.action_items||[]).map((h,x)=>`${x+1}. ${h}`).join(` 902 903`)} 904 905--- 906 907**Confidence Level:** ${(f.confidence_level||"Medium").toUpperCase()}`;await Ne.entities.GeneratedDocument.create({title:`Decision: ${r.slice(0,80)}`,doc_type:"framework",category:"decision_engine",content:p,status:"completed"}),pt.success(e("decisionEngine.success"))}catch(d){console.error("Analysis error:",d),pt.error(e("decisionEngine.error"))}finally{o(!1)}};if(s)return a.jsx("div",{className:"max-w-3xl mx-auto px-4 py-20",children:a.jsx(nc,{message:e("decisionEngine.loading")})});if(l){const d={title:`Decision: ${r.slice(0,80)}`,type:"decision_engine",company_name:"N/A",industry:"N/A",results:{executive_summary:l.decision_summary||"No summary available",strengths:l.governance_implications||[],critical_gaps:(l.risk_factors||[]).map(f=>({description:`${f.factor}: ${f.description}`,severity:f.level||"medium"})),recommendations:l.considerations||[],action_items:l.action_items||[]}};return a.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:a.jsxs(ur.div,{initial:{opacity:0,y:20}
907,animate:{opacity:1,y:0},children:[a.jsxs("div",{className:"text-center mb-10",children:[a.jsxs(at,{variant:"secondary",className:"mb-4 gap-1",children:[a.jsx(Io,{className:"w-3 h-3"})," ",e("decisionEngine.analysisComplete")]}),a.jsx("h1",{className:"font-heading text-2xl font-bold mb-2",children:e("decisionEngine.reportTitle")}),a.jsxs("p",{className:"text-muted-foreground italic max-w-2xl mx-auto",children:['"',r,'"']})]}),a.jsx(pj,{item:d,type:"assessment"}),a.jsx(Oe,{className:"bg-accent border-primary/20",children:a.jsxs(Le,{className:"flex flex-col sm:flex-row items-center justify-between gap-4 py-6",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(ls,{className:"w-8 h-8 text-primary"}),a.jsxs("div",{children:[a.jsx("p",{className:"font-heading font-semibold",children:e("decisionEngine.createWorkflow")}),a.jsx("p",{className:"text-sm text-muted-foreground",children:e("decisionEngine.createWorkflowDesc")})]})]}),a.jsx(xe,{className:"gap-2 bg-primary hover:bg-primary/90",asChild:!0,children:a.jsxs("a",{href:"https://mypremiumgovernance.com",target:"_blank",rel:"noopener noreferrer",children:[e("decisionEngine.launchMPG")," ",a.jsx(Np,{className:"w-4 h-4"})]})})]})}),a.jsx("div",{className:"text-center mt-8",children:a.jsx(xe,{variant:"outline",onClick:()=>{c(null),i("")},children:e("decisionEngine.askAnother")})})]})})}return a.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[a.jsxs("div",{className:"text-center mb-10",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-purple-500/10 border border-purple-500/20 mb-4",children:[a.jsx(Io,{className:"w-3.5 h-3.5 text-purple-600"}),a.jsx("span",{className:"text-xs font-medium text-purple-600",children:e("decisionEngine.badge")})]}),a.jsx("h1",{className:"font-heading text-3xl font-bold mb-2",children:e("decisionEngine.title")}),a.jsx("p",{className:"text-muted-foreground",children:e("decisionEngine.subtitle")})]}),a.jsx(Oe,{className:"mb-6",children:a.jsxs(Le,{className:"pt-6 space-y-4",children:[a.jsx(Pn,{placeholder:e("decisionEngine.placeholder"),value:r,onChange:d=>i(d.target.value),className:"h-32 text-base"}),a.jsxs(xe,{onClick:u,disabled:!r.trim(),className:"w-full gap-2 bg-primary hover:bg-primary/90 h-11",children:[a.jsx(Xr,{className:"w-4 h-4"})," ",e("decisionEngine.analyze")]})]})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm text-muted-foreground mb-3 font-medium",children:e("decisionEngine.tryQuestions")}),a.jsx("div",{className:"grid sm:grid-cols-2 gap-2",children:n.map(d=>a.jsx("button",{onClick:()=>i(d),className:"text-left text-sm p-3 rounded-lg border border-border hover:border-primary/30 hover:bg-primary/5 transition-colors",children:d},d))})]})]})}function eX({actionType:e="assessments"}){const{canDoAction:t,credits:n,isPremium:r,isVisitor:i}=Rp(),[s,o]=O.useState(!1);if(r||s||t(e)&&n>3)return null;const l=n<=0;return a.jsxs("div",{className:`relative flex items-center justify-between gap-4 px-4 py-3 rounded-xl border mb-6 ${l?"bg-red-50 border-red-200":"bg-amber-50 border-amber-200"}`,children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(Ap,{className:`w-4 h-4 flex-shrink-0 ${l?"text-red-500":"text-amber-500"}`}),a.jsx("p",{className:`text-sm font-medium ${l?"text-red-700":"text-amber-700"}`,children:l?"You've used all your AI credits. Upgrade to continue generating governance intelligence.":`Only ${n} AI credits remaining. Upgrade for unlimited access.`})]}),a.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[a.jsx(xe,{size:"sm",className:"h-7 text-xs gap-1 bg-primary hover:bg-primary/90",asChild:!0,children:a.jsxs(Dt,{to:"/pricing",children:[a.jsx(Wc,{className:"w-3 h-3"})," Upgrade"]})}),a.jsx("button",{onClick:()=>o(!0),className:"text-muted-foreground hover:text-foreground",children:a.jsx(ss,{className:"w-4 h-4"})})]})]})}const PNe=[{icon:k2,label:"Launch governance workflows"},{icon:ls,label:"Track governance risks operationally"},{icon:s0,label:"Store governance documents securely"},{icon:ja,label:"Monitor operational governance"}];function tX({compact:e=!1}){return e?a.jsx(Oe,{className:"border-primary/20 bg-gradient-to-r from-primary/5 to-accent",children:a.jsxs(Le,{className:"flex items-center justify-between gap-4 p-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-9 h-9 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:a.jsx(k2,{className:"w-4 h-4 text-primary"})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-semibold",children:"Continue in My Premium Governance"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Track, manage and act on your governance findings"})]})]}),a.jsx(xe,{size:"sm",variant:"outline",className:"gap-1.5 flex-shrink-0 border-primary/30 text-primary hover:bg-primary/5",asChild:!0,children:a.jsxs("a",{href:"https://mypremiumgovernance.com",target:"_blank",rel:"noopener noreferrer",children:["Open MPG ",a.jsx(nx,{className:"w-3 h-3"})]})})]})}):a.jsx(Oe,{className:"border-primary/20 bg-gradient-to-br from-primary/5 via-background to-accent overflow-hidden",children:a.jsx(Le,{className:"p-6",children:a.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[a.jsxs("div",{children:[a.jsx("p",{className:"font-heading font-bold text-base mb-1",children:"Take governance action in MPG"}),a.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:"Governancepedia is the intelligence layer. MPG is where you operationalise it."}),a.jsx("div",{className:"grid grid-cols-2 gap-x-6 gap-y-1.5",children:PNe.map(t=>a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(t.icon,{className:"w-3.5 h-3.5 text-primary flex-shrink-0"}),a.jsx("span",{className:"text-xs text-muted-foreground",children:t.label})]},t.label))})]}),a.jsx(xe,{className:"gap-2 bg-primary hover:bg-primary/90 flex-shrink-0",asChild:!0,children:a.jsxs("a",{href:"https://mypremiumgovernance.com",target:"_blank",rel:"noopener noreferrer",children:["Open MPG ",a.jsx(rs,{className:"w-4 h-4"})]})})]})})})}const F6={Target:q9,FileSearch:qne,Scale:_4,BarChart3:ja,AlertTriangle:Ap,Users:Mi,Lock:A2,Cpu:O9,Leaf:lre,ClipboardCheck:wne,Workflow:k2,TrendingUp:Yl,ShieldCheck:Xre,BookOpen:as,Gauge:Hne,Network:Cre},CNe=[{icon:"Gauge",category:"oversight",nameKey:"microTools.t1Name",descKey:"microTools.t1Desc",prompt:"governance maturity assessment"},{icon:"Target",category:"risk",nameKey:"microTools.t2Name",descKey:"microTools.t2Desc",prompt:"risk scoring and prioritization"},{icon:"Network",category:"vendor",nameKey:"microTools.t3Name",descKey:"microTools.t3Desc",prompt:"vendor dependency and concentration risk analysis"},{icon:"FileSearch",category:"policy",nameKey:"microTools.t4Name",descKey:"microTools.t4Desc",prompt:"governance policy gap analysis"},{icon:"Users",category:"board",nameKey:"microTools.t5Name",descKey:"microTools.t5Desc",prompt:"board governance effectiveness asse
907ssment"},{icon:"Scale",category:"compliance",nameKey:"microTools.t6Name",descKey:"microTools.t6Desc",prompt:"compliance complexity and regulatory burden assessment"},{icon:"Lock",category:"cyber",nameKey:"microTools.t7Name",descKey:"microTools.t7Desc",prompt:"cybersecurity governance maturity assessment"},{icon:"Leaf",category:"esg",nameKey:"microTools.t8Name",descKey:"microTools.t8Desc",prompt:"ESG governance and sustainability oversight assessment"},{icon:"Cpu",category:"ai_governance",nameKey:"microTools.t9Name",descKey:"microTools.t9Desc",prompt:"AI governance readiness and responsible AI assessment"},{icon:"ShieldCheck",category:"resilience",nameKey:"microTools.t10Name",descKey:"microTools.t10Desc",prompt:"operational resilience and business continuity governance assessment"},{icon:"TrendingUp",category:"operations",nameKey:"microTools.t11Name",descKey:"microTools.t11Desc",prompt:"governance KPI and metrics generation"},{icon:"ClipboardCheck",category:"audit",nameKey:"microTools.t12Name",descKey:"microTools.t12Desc",prompt:"governance audit checklist generation"}],ENe=[{value:"all",labelKey:"microTools.catAll"},{value:"risk",labelKey:"microTools.catRisk"},{value:"compliance",labelKey:"microTools.catCompliance"},{value:"oversight",labelKey:"microTools.catOversight"},{value:"vendor",labelKey:"microTools.catVendor"},{value:"board",labelKey:"microTools.catBoard"},{value:"cyber",labelKey:"microTools.catCyber"},{value:"esg",labelKey:"microTools.catESG"},{value:"policy",labelKey:"microTools.catPolicy"},{value:"ai_governance",labelKey:"microTools.catAIGov"}];function TNe(){const{t:e,aiLanguageInstruction:t}=Zt(),n=CNe.map(k=>({...k,name:e(k.nameKey),description:e(k.descKey)})),r=ENe.map(k=>({...k,label:e(k.labelKey)})),[i,s]=O.useState(""),[o,l]=O.useState("all"),[c,u]=O.useState(null),[d,f]=O.useState(""),[p,h]=O.useState(!1),[x,v]=O.useState(null),{canDoAction:g,consumeCredit:y,recordUsage:w,credits:j,isPremium:_,isVisitor:N}=Rp(),A=n.filter(k=>{const T=k.name.toLowerCase().includes(i.toLowerCase())||k.description.toLowerCase().includes(i.toLowerCase()),D=o==="all"||k.category===o;return T&&D}),E=async()=>{if(g("microTools"))try{h(!0),y(1),w("microTools");const k=`You are a senior governance consultant. The user is using the "${c.name}" tool.${t()} 908 909Tool Purpose: ${c.description} 910Analysis Focus: ${c.prompt} 911 912User Input: 913${d} 914 915Provide a comprehensive, professional analysis in markdown format with proper structure: 916- Use clear headings (##, ###) for sections 917- Include tables where appropriate for comparisons or scores 918- Use bullet points and numbered lists 919- Bold key terms and findings 920- Clear assessment findings 921- Scoring or ratings where applicable 922- Specific recommendations 923- Action items 924- Risk indicators if relevant 925 926Be thorough, professional, and actionable.`,T=await Ne.integrations.Core.InvokeLLM({prompt:k});v(T),await Ne.entities.GeneratedDocument.create({title:`${c.name} - ${new Date().toLocaleDateString()}`,doc_type:"checklist",category:c.category,content:T,status:"completed"}),pt.success(`${c.name} ${e("microTools.success")}`)}catch(k){console.error("Tool error:",k),pt.error(e("microTools.error"))}finally{h(!1)}};return a.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-background via-background to-primary/5",children:[a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[a.jsx(eX,{actionType:"microTools"}),a.jsxs("div",{className:"text-center mb-12",children:[a.jsxs(ur.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary/10 border border-primary/20 mb-6",children:[a.jsx(Fy,{className:"w-4 h-4 text-primary"}),a.jsx("span",{className:"text-sm font-semibold text-primary",children:e("microTools.badge")})]}),a.jsx(ur.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"font-heading text-4xl md:text-5xl font-bold mb-4 bg-gradient-to-r from-primary to-primary/60 bg-clip-text text-transparent",children:e("microTools.title")}),a.jsx(ur.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"text-muted-foreground max-w-2xl mx-auto text-lg",children:e("microTools.subtitle")})]}),a.jsxs(ur.div,{initial:{opacity:0,y:20}
926,animate:{opacity:1,y:0},transition:{delay:.3},className:"mb-10",children:[a.jsxs("div",{className:"relative max-w-md mx-auto mb-6",children:[a.jsx(eo,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),a.jsx(Qe,{placeholder:e("microTools.searchPlaceholder"),value:i,onChange:k=>s(k.target.value),className:"pl-10 shadow-sm border-border/50 focus-visible:ring-primary/30"})]}),a.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:r.map(k=>a.jsx(xe,{variant:o===k.value?"default":"outline",size:"sm",onClick:()=>l(k.value),className:`transition-all ${o===k.value?"bg-primary hover:bg-primary/90 shadow-md":"hover:bg-accent hover:text-accent-foreground"}`,children:k.label},k.value))})]}),a.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-5",children:A.map((k,T)=>{const D=F6[k.icon]||Fy;return a.jsx(ur.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:T*.04},children:a.jsx(Oe,{className:"h-full cursor-pointer hover:shadow-xl hover:shadow-primary/10 hover:-translate-y-1 transition-all duration-300 group border-border/50 bg-card/80 backdrop-blur-sm",onClick:()=>{u(k),f(""),v(null)},children:a.jsxs(Le,{className:"p-6",children:[a.jsxs("div",{className:"flex items-start justify-between mb-4",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-primary/15 to-primary/5 flex items-center justify-center group-hover:scale-110 transition-transform duration-300",children:a.jsx(D,{className:"w-6 h-6 text-primary"})}),a.jsxs(at,{className:"text-[10px] font-medium bg-gradient-to-r from-amber-500/10 to-orange-500/10 border border-amber-500/20 text-amber-700 dark:text-amber-400 shadow-sm",children:[a.jsx(Zu,{className:"w-2.5 h-2.5 mr-1 inline"}),e("microTools.credit")]})]}),a.jsx("h3",{className:"font-heading font-semibold text-base mb-2 group-hover:text-primary transition-colors line-clamp-2",children:k.name}),a.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed mb-4 line-clamp-3",children:k.description}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx(at,{variant:"outline",className:"text-[10px] bg-background/50",children:k.category.replace("_"," ")}),a.jsx(Np,{className:"w-3.5 h-3.5 text-muted-foreground group-hover:text-primary group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform"})]})]})})},k.name)})})]}),a.jsx(Gn,{open:!!c,onOpenChange:()=>{u(null),v(null)},children:a.jsx(zn,{className:"max-w-3xl max-h-[90vh] overflow-y-auto border-border/50 shadow-2xl",children:c&&a.jsxs(a.Fragment,{children:[a.jsx(Vn,{children:a.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",children:Ae.createElement(F6[c.icon]||Fy,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{children:[a.jsx(Wn,{className:"font-heading text-xl",children:c.name}),a.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:c.description})]})]})}),p?a.jsx("div",{className:"py-12",children:a.jsx(nc,{message:`${e("microTools.toolRunning")} ${c.name}...`})}):x?a.jsxs("div",{className:"space-y-6",children:[a.jsx("div",{className:"rounded-xl border bg-card/50 p-6 max-h-[60vh] overflow-y-auto",children:a.jsx("div",{className:"prose prose-sm max-w-none prose-headings:font-heading prose-headings:mt-6 prose-headings:mb-3 prose-p:text-muted-foreground prose-p:leading-relaxed prose-strong:text-foreground prose-table:w-full prose-table:border-collapse prose-tr:border-b prose-tr:border-border prose-th:bg-secondary/50 prose-th:font-semibold prose-th:px-4 prose-th:py-2.5 prose-th:text-left prose-td:px-4 prose-td:py-2.5 prose-a:text-primary prose-a:no-underline hover:prose-a:underline",children:a.jsx(Ep,{components:{table:({children:k})=>a.jsx("div",{className:"overflow-x-auto my-6 border rounded-lg",children:a.jsx("table",{className:"w-full border-collapse",children:k})}),thead:({children:k})=>a.jsx("thead",{className:"bg-secondary border-b-2 border-border",children:k}),th:({children:k})=>a.jsx("th",{className:"px-4 py-3 text-left font-semibold text-foreground border-r border-border last:border-r-0",children:k}),td:({children:k})=>a.jsx("td",{className:"px-4 py-3 text-muted-foreground border-r border-border last:border-r-0",children:k}),tr:({children:k})=>a.jsx("tr",{className:"border-b border-border hover:bg-accent/30 transition",children:k}),h1:({children:k})=>a.jsx("h1",{className:"text-2xl font-bold mt-6 mb-3 text-foreground font-heading",children:k}),h2:({children:k})=>a.jsx("h2",{className:"text-xl font-bold mt-5 mb-2.5 text-foreground font-heading",children:k}),h3:({children:k})=>a.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2 text-foreground font-heading",children:k}),h4:({children:k})=>a.jsx("h4",{className:"text-base font-semibold mt-3 mb-1.5 text-foreground font-heading",children:k}),p:({children:k})=>a.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:k}),ul:({children:k})=>a.jsx("ul",{className:"list-disc list-inside space-y-1.5 mb-4 text-muted-foreground",children:k}),ol:({children:k})=>a.jsx("ol",{className:"list-decimal list-inside space-y-1.5 mb-4 text-muted-foreground",children:k}),li:({children:k})=>a.jsx("li",{className:"text-muted-foreground",children:k})},children:x})})}),a.jsx("div",{className:"flex gap-3",children:a.jsx(xe,{variant:"outline",onClick:()=>v(null),className:"flex-1",children:e("microTools.runAnother")})})]}):a.jsxs("div",{className:"space-y-5 py-4",children:[a.jsx("div",{className:"rounded-lg border bg-muted/30 p-4",children:a.jsx("p",{className:"text-sm text-muted-foreground",children:c.description})}),a.jsx(Pn,{placeholder:e("microTools.inputPlaceholder"),value:d,onChange:k=>f(k.target.value),className:"h-40 resize-none shadow-sm"}),g("microTools")?a.jsxs(xe,{onClick:E,disabled:!d.trim(),className:"w-full h-11 gap-2 bg-gradient-to-r from-primary to-primary/90 hover:from-primary/90 hover:to-primary shadow-md hover:shadow-lg transition-all",children:[a.jsx(Xr,{className:"w-4 h-4"})," ",e("microTools.runAnalysis")]}):a.jsxs("div",{className:"rounded-xl border border-amber-200 bg-amber-50/80 p-5 text-center space-y-3",children:[a.jsx("div",{className:"inline-flex items-center justify-center w-10 h-10 rounded-full bg-amber-100",children:a.jsx(Zu,{className:"w-5 h-5 text-amber-600"})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-semibold text-amber-800",children:e("microTools.dailyLimit")}),a.jsx("p",{className:"text-xs text-amber-600 mt-1",children:e("microTools.upgradeDesc")})]}),a.jsx(xe,{size:"sm",className:"gap-2 bg-primary hover:bg-primary/90",asChild:!0,children:a.jsxs(Dt,{to:"/pricing",children:[a.jsx(Wc,{className:"w-4 h-4"})," ",e("microTools.upgradeNow")]})})]})]})]})})})]})}function ONe({children:e,title:t,description:n}){const{isPremium:r}=Rp();return r?e:a.jsxs("div",{className:"relative rounded-xl overflow-hidden border border-primary/10",children:[a.jsx("div",{className:"blur-sm op
926acity-40 pointer-events-none select-none",children:e}),a.jsxs("div",{className:"absolute inset-0 bg-gradient-to-t from-background/90 via-background/60 to-transparent flex flex-col items-center justify-center p-6 text-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center",children:a.jsx(Wc,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("p",{className:"font-heading font-bold text-sm",children:t}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-xs",children:n})]}),a.jsx(xe,{size:"sm",className:"gap-1.5 bg-primary hover:bg-primary/90",asChild:!0,children:a.jsx(Dt,{to:"/pricing",children:"Unlock with Premium"})})]})]})}const RNe=[{id:"trends",labelKey:"intelligence.topicTrends",icon:Yl,color:"text-primary"},{id:"risks",labelKey:"intelligence.topicRisks",icon:Ap,color:"text-amber-500"},{id:"regulatory",labelKey:"intelligence.topicRegulatory",icon:Sp,color:"text-blue-500"},{id:"cyber",labelKey:"intelligence.topicCyber",icon:ls,color:"text-red-500"},{id:"esg",labelKey:"intelligence.topicESG",icon:ja,color:"text-emerald-500"},{id:"ai",labelKey:"intelligence.topicAI",icon:O9,color:"text-purple-500"}];function INe(){const{t:e,aiLanguageInstruction:t}=Zt(),n=RNe.map(h=>({...h,label:e(h.labelKey)})),[r,i]=O.useState(null),[s,o]=O.useState(!1),[l,c]=O.useState(null),{canDoAction:u,consumeCredit:d,recordUsage:f}=Rp(),p=async h=>{if(u("reports"))try{i(h),o(!0),d(2),f("reports");const x=`You are a governance intelligence analyst. Generate a comprehensive, current intelligence briefing on the following topic:${t()} 927 928Topic: ${h.label} 929 930Write a professional intelligence report in markdown format with proper structure: 931- Use clear headings (##, ###) for sections 932- Include tables where appropriate for comparisons or data 933- Use bullet points and numbered lists 934- Bold key terms and findings 935- Cover: Executive Summary, Current Landscape, Key Trends, Risk Indicators, Best Practices, Actionable Insights, Outlook 936 937Use professional, authoritative language. Make it insightful and actionable, not generic.`,v=await Ne.integrations.Core.InvokeLLM({prompt:x,add_context_from_internet:!0});await Ne.entities.GeneratedDocument.create({title:`${h.label} Intelligence Report`,doc_type:"report",category:"intelligence",content:v,status:"completed"}),c(v),pt.success(e("intelligence.success"))}catch(x){console.error("Report error:",x),pt.error(e("intelligence.error"))}finally{o(!1)}};return a.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[a.jsx(eX,{actionType:"reports"}),a.jsxs("div",{className:"text-center mb-10",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-rose-500/10 border border-rose-500/20 mb-4",children:[a.jsx(as,{className:"w-3.5 h-3.5 text-rose-600"}),a.jsx("span",{className:"text-xs font-medium text-rose-600",children:e("intelligence.badge")})]}),a.jsx("h1",{className:"font-heading text-3xl font-bold mb-2",children:e("intelligence.title")}),a.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto",children:e("intelligence.subtitle")})]}),a.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3 mb-10",children:n.map(h=>a.jsx(ur.div,{whileHover:{scale:1.02},whileTap:{scale:.98},children:a.jsx(Oe,{className:`cursor-pointer hover:border-primary/30 transition-all ${(r==null?void 0:r.id)===h.id?"border-primary bg-primary/5":""}`,onClick:()=>p(h),children:a.jsxs(Le,{className:"p-4 text-center",children:[a.jsx(h.icon,{className:`w-6 h-6 mx-auto mb-2 ${h.color}`}),a.jsx("p",{className:"text-xs font-medium",children:h.label}),a.jsx("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:e("intelligence.credits")})]})})},h.id))}),s&&a.jsx(nc,{message:`${e("intelligence.generating")} ${r==null?void 0:r.label} ${e("intelligence.intelligenceReport")}`}),l&&!s&&a.jsxs(ur.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"space-y-5",children:[a.jsxs(Oe,{children:[a.jsxs(vt,{className:"flex flex-row items-center justify-between",children:[a.jsxs(yt,{className:"font-heading flex items-center gap-2",children:[r&&a.jsx(r.icon,{className:`w-5 h-5 ${r.color}`}),r==null?void 0:r.label," ",e("intelligence.reportTitle")]}),a.jsxs(at,{variant:"outline",className:"gap-1",children:[a.jsx(Xr,{className:"w-3 h-3"})," ",e("intelligence.aiGenerated")]})]}),a.jsx(Le,{children:a.jsx("div",{className:"prose prose-sm max-w-none prose-headings:font-heading prose-headings:text-foreground prose-headings:mt-6 prose-headings:mb-4 prose-p:text-muted-foreground prose-p:leading-relaxed prose-li:text-muted-foreground prose-strong:text-foreground prose-table:w-full prose-table:border-collapse prose-tr:border-b prose-tr:border-border prose-th:bg-secondary prose-th:font-semibold prose-th:px-4 prose-th:py-2 prose-th:text-left prose-td:px-4 prose-td:py-2",children:a.jsx(Ep,{components:{table:({children:h})=>a.jsx("div",{className:"overflow-x-auto my-6 border rounded-lg",children:a.jsx("table",{className:"w-full border-collapse",children:h})}),thead:({children:h})=>a.jsx("thead",{className:"bg-secondary border-b-2 border-border",children:h}),th:({children:h})=>a.jsx("th",{className:"px-4 py-3 text-left font-semibold text-foreground border-r border-border last:border-r-0",children:h}),td:({children:h})=>a.jsx("td",{className:"px-4 py-3 text-muted-foreground border-r border-border last:border-r-0",children:h}),tr:({children:h})=>a.jsx("tr",{className:"border-b border-border hover:bg-accent/50 transition",children:h}),h1:({children:h})=>a.jsx("h1",{className:"text-3xl font-bold mt-8 mb-4 text-foreground font-heading",children:h}),h2:({children:h})=>a.jsx("h2",{className:"text-2xl font-bold mt-6 mb-3 text-foreground font-heading",children:h}),h3:({children:h})=>a.jsx("h3",{className:"text-xl font-semibold mt-5 mb-2 text-foreground font-heading",children:h}),h4:({children:h})=>a.jsx("h4",{className:"text-lg font-semibold mt-4 mb-2 text-foreground font-heading",children:h}),p:({children:h})=>a.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:h}),ul:({children:h})=>a.jsx("ul",{className:"list-disc list-inside space-y-2 mb-4 text-muted-foreground",children:h}),ol:({children:h})=>a.jsx("ol",{className:"list-decimal list-inside space-y-2 mb-4 text-muted-foreground",children:h}),li:({children:h})=>a.jsx("li",{className:"text-muted-foreground",children:h})},children:l})})})]}),a.jsx(ONe,{title:"Advanced Governance Benchmarks",description:"Compare your governance posture against 500+ industry benchmarks and peer organisations. Available to Premium members.",children:a.jsx(Oe,{children:a.jsx(Le,{className:"p-6 grid grid-cols-3 gap-4",children:["Industry Rank","Peer Benchmark","Regulatory Gap Score"].map(h=>a.jsxs("div",{className:"text-center p-4 bg-muted rounded-lg",children:[a.jsx("p",{className:"text-2xl font-bold font-heading",children:"84%"}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:h})]},h))})})}),a.jsx(tX,{compact:!0})]}),!s&&!l&&a.jsxs("div",{className:"text-center py-20",children:[a.jsx(as,{className:"w-12 h-12 text-muted-foreground
vendor: 5,724 bytes, line 937
937/30 mx-auto mb-4"}),a.jsx("p",{className:"text-muted-foreground",children:e("intelligence.selectTopic")}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:e("intelligence.eachReport")})]})]})}function Ub({icon:e,value:t,label:n,color:r,delay:i=0}){return a.jsx(ur.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:i},children:a.jsxs(Oe,{className:"relative overflow-hidden hover:shadow-lg transition-all duration-300",children:[a.jsx("div",{className:`absolute top-0 right-0 w-24 h-24 ${r} opacity-10 rounded-bl-full`}),a.jsxs(Le,{className:"p-6 flex items-center gap-4",children:[a.jsx("div",{className:`w-14 h-14 rounded-2xl ${r} flex items-center justify-center shadow-sm`,children:a.jsx(e,{className:`w-7 h-7 ${r.replace("bg-","text-")}`})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-3xl font-heading font-bold",children:t}),a.jsx("p",{className:"text-xs text-muted-foreground font-medium mt-1",children:n})]})]})]})})}function rc(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function pp(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const nX=6048e5,LNe=864e5;let MNe={};function mj(){return MNe}function gx(e,t){var l,c,u,d;const n=mj(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,i=rc(e),s=i.getDay(),o=(s<r?7:0)+s-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function yw(e){return gx(e,{weekStartsOn:1})}function rX(e){const t=rc(e),n=t.getFullYear(),r=pp(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=yw(r),s=pp(e,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const o=yw(s);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function B6(e){const t=rc(e);return t.setHours(0,0,0,0),t}function q6(e){const t=rc(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function DNe(e,t){const n=B6(e),r=B6(t),i=+n-q6(n),s=+r-q6(r);return Math.round((i-s)/LNe)}function FNe(e){const t=rX(e),n=pp(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),yw(n)}function BNe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function qNe(e){if(!BNe(e)&&typeof e!="number")return!1;const t=rc(e);return!isNaN(Number(t))}function zNe(e){const t=rc(e),n=pp(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const $Ne={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},UNe=(e,t,n)=>{let r;const i=$Ne[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function WN(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const GNe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},VNe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},WNe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},HNe={date:WN({formats:GNe,defaultWidth:"full"}),time:WN({formats:VNe,defaultWidth:"full"}),dateTime:WN({formats:WNe,defaultWidth:"full"})},KNe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},YNe=(e,t,n,r)=>KNe[e];function cy(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):o;i=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[o]}const s=e.argumentCallback?e.argumentCallback(t):t;return i[s]}}const XNe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},QNe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ZNe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},JNe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
937ay","Saturday"]},eSe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},tSe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},nSe=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},rSe={ordinalNumber:nSe,era:cy({values:XNe,defaultWidth:"wide"}),quarter:cy({values:QNe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:cy({values:ZNe,defaultWidth:"wide"}),day:cy({values:JNe,defaultWidth:"wide"}),dayPeriod:cy({values:eSe,defaultWidth:"wide",formattingValues:tSe,defaultFormattingWidth:"wide"})};function uy(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;const o=s[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?aSe(l,f=>f.test(o)):iSe(l,f=>f.test(o));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(o.length);return{value:u,rest:d}}}function iSe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function aSe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function sSe(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],s=t.match(e.parsePattern);if(!s)return null;let o=e.valueCallback?e.valueCallback(s[0]):s[0];o=n.valueCallback?n.valueCallback(o):o;const l=t.slice(i.length);return{value:o,rest:l}}}const oSe=/^(\d+)(th|st|nd|rd)?/i,lSe=/\d+/i,cSe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},uSe={any:[/^b/i,/^(a|c)/i]},dSe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},fSe={any:[/1/i,/2/i,/3/i,/4/i]},hSe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pSe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mSe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},gSe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},vSe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ySe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xSe={ordinalNumber:sSe({matchPattern:oSe,parsePattern:lSe,valueCallback:e=>parseInt(e,10)}),era:uy({matchPatterns:cSe,defaultMatchWidth:"wide",parsePatterns:uSe,defaultParseWidth:"any"}),quarter:uy({matchPatterns:dSe,defaultMatchWidth:"wide",parsePatterns:fSe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:uy({matchPatterns:hSe,defaultMatchWidth:"wide",parsePatterns:pSe,defaultParseWidth:"any"}),day:uy({matchPatterns:mSe,defaultMatchWidth:"wide",parsePatterns:gSe,defaultParseWidth:"any"}),dayPeriod:uy({matchPatterns:vSe,defaultMatchWidth:"any",parsePatterns:ySe,defaultParseWidth:"any"})},bSe={code:"en-US",formatDistance:UNe,formatLong:HNe,formatRelative:YNe,localize:rSe,match:xSe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function wSe(e){const t=rc(e);return DNe(t,zNe(t))+1}function jSe(e){const t=rc(e),n=+yw(t)-+FNe(t);return Math.round(n/nX)+1}function iX(e,t){var d,f,p,h;const n=rc(e),r=n.getFullYear(),i=mj(),s=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(p=i.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,o=pp(e,0);o.setFullYear(r+1,0,s),o.setHours(0,0,0,0);const l=gx(o,t),c=pp(e,0);c.setFullYear(r,0,s),c.setHours(0,0,0,0);const u=gx(c,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function _Se(e,t){var l,c,u,d;const n=mj(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,i=iX(e,t),s=pp(e,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),gx(s,t)}function NSe(e,t){const n=rc(e),r=+gx(n,t)-+_Se(n,t);return Math.round(r/nX)+1}function Nr(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const sf={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Nr(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Nr(n+1,2)},d(e,t){return Nr(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Nr(e.getHours()%12||12,t.length)},H(e,t){return Nr(e.getHours(),t.length)},m(e,t){return Nr(e.getMinutes(),t.length)},s(e,t){return Nr(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Nr(i,t.length)}},Sm={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},z6={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return sf.y(e,t)},Y:function(e,t,n,r){const i=iX(e,r),s=i>0?i:1-i;if(t==="YY"){const o=s%100;return Nr(o,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):Nr(s,t.length)},R:function(e,t){const n=rX(e);return Nr(n,t.length)},u:function(e,t){const n=e.getFullYear();return Nr(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Nr(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Nr(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return sf.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Nr(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=NSe(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Nr(i,t.length)},I:function(e,t,n){const r=jSe(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Nr(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):sf.d(e,t)},D:function(e,t,n){const r=wSe(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Nr(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return Nr(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return Nr(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Nr(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Sm.noon:r===0?i=Sm.midnight:i=r/12>
vendor: 4,180 bytes, line 937
937=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Sm.evening:r>=12?i=Sm.afternoon:r>=4?i=Sm.morning:i=Sm.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return sf.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):sf.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Nr(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Nr(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):sf.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):sf.s(e,t)},S:function(e,t){return sf.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return U6(r);case"XXXX":case"XX":return Oh(r);case"XXXXX":case"XXX":default:return Oh(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return U6(r);case"xxxx":case"xx":return Oh(r);case"xxxxx":case"xxx":default:return Oh(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+$6(r,":");case"OOOO":default:return"GMT"+Oh(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+$6(r,":");case"zzzz":default:return"GMT"+Oh(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Nr(r,t.length)},T:function(e,t,n){const r=e.getTime();return Nr(r,t.length)}};function $6(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+t+Nr(s,2)}function U6(e,t){return e%60===0?(e>0?"-":"+")+Nr(Math.abs(e)/60,2):Oh(e,t)}function Oh(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Nr(Math.trunc(r/60),2),s=Nr(r%60,2);return n+i+t+s}const G6=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},aX=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},SSe=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return G6(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",G6(r,t)).replace("{{time}}",aX(i,t))},ASe={p:aX,P:SSe},kSe=/^D+$/,PSe=/^Y+$/,CSe=["D","DD","YY","YYYY"];function ESe(e){return kSe.test(e)}function TSe(e){return PSe.test(e)}function OSe(e,t,n){const r=RSe(e,t,n);if(console.warn(r),CSe.includes(e))throw new RangeError(r)}function RSe(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ISe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,LSe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,MSe=/^'([^]*?)'?$/,DSe=/''/g,FSe=/[a-zA-Z]/;function gj(e,t,n){var d,f,p,h;const r=mj(),i=r.locale??bSe,s=r.firstWeekContainsDate??((f=(d=r.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,o=r.weekStartsOn??((h=(p=r.locale)==null?void 0:p.options)==null?void 0:h.weekStartsOn)??0,l=rc(e);if(!qNe(l))throw new RangeError("Invalid time value");let c=t.match(LSe).map(x=>
vendor: 4,848 bytes, line 937
937{const v=x[0];if(v==="p"||v==="P"){const g=ASe[v];return g(x,i.formatLong)}return x}).join("").match(ISe).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const v=x[0];if(v==="'")return{isToken:!1,value:BSe(x)};if(z6[v])return{isToken:!0,value:x};if(v.match(FSe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:x}});i.localize.preprocessor&&(c=i.localize.preprocessor(l,c));const u={firstWeekContainsDate:s,weekStartsOn:o,locale:i};return c.map(x=>{if(!x.isToken)return x.value;const v=x.value;(TSe(v)||ESe(v))&&OSe(v,t,String(e));const g=z6[v[0]];return g(l,v,i.localize,u)}).join("")}function BSe(e){const t=e.match(MSe);return t?t[1].replace(DSe,"'"):e}function Sr(e){"@babel/helpers - typeof";return Sr=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},Sr(e)}var Zl=Uint8Array,Eo=Uint16Array,y3=Int32Array,x3=new Zl([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]),b3=new Zl([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]),V6=new Zl([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),sX=function(e,t){for(var n=new Eo(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new y3(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}},oX=sX(x3,2),qSe=oX.b,zC=oX.r;qSe[28]=258,zC[258]=28;var zSe=sX(b3,0),W6=zSe.r,$C=new Eo(32768);for(var Yr=0;Yr<32768;++Yr){var of=(Yr&43690)>>1|(Yr&21845)<<1;of=(of&52428)>>2|(of&13107)<<2,of=(of&61680)>>4|(of&3855)<<4,$C[Yr]=((of&65280)>>8|(of&255)<<8)>>1}var Hy=(function(e,t,n){for(var r=e.length,i=0,s=new Eo(t);i<r;++i)e[i]&&++s[e[i]-1];var o=new Eo(t);for(i=1;i<t;++i)o[i]=o[i-1]+s[i-1]<<1;var l;if(n){l=new Eo(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var u=i<<4|e[i],d=t-e[i],f=o[e[i]-1]++<<d,p=f|(1<<d)-1;f<=p;++f)l[$C[f]>>c]=u}else for(l=new Eo(r),i=0;i<r;++i)e[i]&&(l[i]=$C[o[e[i]-1]++]>>15-e[i]);return l}),mp=new Zl(288);for(var Yr=0;Yr<144;++Yr)mp[Yr]=8;for(var Yr=144;Yr<256;++Yr)mp[Yr]=9;for(var Yr=256;Yr<280;++Yr)mp[Yr]=7;for(var Yr=280;Yr<288;++Yr)mp[Yr]=8;var xw=new Zl(32);for(var Yr=0;Yr<32;++Yr)xw[Yr]=5;var $Se=Hy(mp,9,0),USe=Hy(xw,5,0),lX=function(e){return(e+7)/8|0},GSe=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new Zl(e.subarray(t,n))},Du=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},dy=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},HN=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:uX,l:0};if(i==1){var o=new Zl(n[0].s+1);return o[n[0].s]=1,{t:o,l:1}}n.sort(function(N,A){return N.f-A.f}),n.push({s:-1,f:25001});var l=n[0],c=n[1],u=0,d=1,f=2;for(n[0]={s:-1,f:l.f+c.f,l,r:c};d!=i-1;)l=n[n[u].f<n[f].f?u++:f++],c=n[u!=d&&n[u].f<n[f].f?u++:f++],n[d++]={s:-1,f:l.f+c.f,l,r:c};for(var p=s[0].s,r=1;r<i;++r)s[r].s>p&&(p=s[r].s);var h=new Eo(p+1),x=UC(n[d-1],h,0);if(x>t){var r=0,v=0,g=x-t,y=1<<g;for(s.sort(function(A,E){return h[E.s]-h[A.s]||A.f-E.f});r<i;++r){var w=s[r].s;if(h[w]>t)v+=y-(1<<x-h[w]),h[w]=t;else break}for(v>>=g;v>0;){var j=s[r].s;h[j]<t?v-=1<<t-h[j]++-1:++r}for(;r>=0&&v;--r){var _=s[r].s;h[_]==t&&(--h[_],++v)}x=t}return{t:new Zl(h),l:x}},UC=function(e,t,n){return e.s==-1?Math.max(UC(e.l,t,n+1),UC(e.r,t,n+1)):t[e.s]=n},H6=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Eo(++t),r=0,i=e[0],s=1,o=function(c){n[r++]=c},l=1;l<=t;++l)if(e[l]==i&&l!=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[l]}return{c:n.subarray(0,r),n:t}},fy=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},cX=function(e,t,n){var r=n.length,i=lX(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},K6=function(e,t,n,r,i,s,o,l,c,u,d){Du(t,d++,n),++i[256];for(var f=HN(i,15),p=f.t,h=f.l,x=HN(s,15),v=x.t,g=x.l,y=H6(p),w=y.c,j=y.n,_=H6(v),N=_.c,A=_.n,E=new Eo(19),k=0;k<w.length;++k)++E[w[k]&31];for(var k=0;k<N.length;++k)++E[N[k]&31];for(var T=HN(E,7),D=T.t,P=T.l,R=19;R>4&&!D[V6[R-1]];--R);var q=u+5<<3,M=fy(i,mp)+fy(s,xw)+o,V=fy(i,p)+fy(s,v)+o+14+3*R+fy(E,D)+2*E[16]+3*E[17]+7*E[18];if(c>=0&&q<=M&&q<=V)return cX(t,d,e.subarray(c,c+u));var H,Z,J,K;if(Du(t,d,1+(V<M)),d+=2,V<M){H=Hy(p,h,0),Z=p,J=Hy(v,g,0),K=v;var F=Hy(D,P,0);Du(t,d,j-257),Du(t,d+5,A-1),Du(t,d+10,R-4),d+=14;for(var k=0;k<R;++k)Du(t,d+3*k,D[V6[k]]);d+=3*R;for(var $=[w,N],B=0;B<2;++B)for(var z=$[B],k=0;k<z.length;++k){var ee=z[k]&31;Du(t,d,F[ee]),d+=D[ee],ee>15&&(Du(t,d,z[k]>>5&127),d+=z[k]>>12)}}else H=$Se,Z=mp,J=USe,K=xw;for(var k=0;k<l;++k){var te=r[k];if(te>255){var ee=te>>18&31;
vendor: 10,523 bytes, lines 937-938
937dy(t,d,H[ee+257]),d+=Z[ee+257],ee>7&&(Du(t,d,te>>23&31),d+=x3[ee]);var X=te&31;dy(t,d,J[X]),d+=K[X],X>3&&(dy(t,d,te>>5&8191),d+=b3[X])}else dy(t,d,H[te]),d+=Z[te]}return dy(t,d,H[256]),d+Z[256]},VSe=new y3([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),uX=new Zl(0),WSe=function(e,t,n,r,i,s){var o=s.z||e.length,l=new Zl(r+o+5*(1+Math.ceil(o/7e3))+i),c=l.subarray(r,l.length-i),u=s.l,d=(s.r||0)&7;if(t){d&&(c[0]=s.r>>3);for(var f=VSe[t-1],p=f>>13,h=f&8191,x=(1<<n)-1,v=s.p||new Eo(32768),g=s.h||new Eo(x+1),y=Math.ceil(n/3),w=2*y,j=function(He){return(e[He]^e[He+1]<<y^e[He+2]<<w)&x},_=new y3(25e3),N=new Eo(288),A=new Eo(32),E=0,k=0,T=s.i||0,D=0,P=s.w||0,R=0;T+2<o;++T){var q=j(T),M=T&32767,V=g[q];if(v[M]=V,g[q]=M,P<=T){var H=o-T;if((E>7e3||D>24576)&&(H>423||!u)){d=K6(e,c,0,_,N,A,k,D,R,T-R,d),D=E=k=0,R=T;for(var Z=0;Z<286;++Z)N[Z]=0;for(var Z=0;Z<30;++Z)A[Z]=0}var J=2,K=0,F=h,$=M-V&32767;if(H>2&&q==j(T-$))for(var B=Math.min(p,H)-1,z=Math.min(32767,T),ee=Math.min(258,H);$<=z&&--F&&M!=V;){if(e[T+J]==e[T+J-$]){for(var te=0;te<ee&&e[T+te]==e[T+te-$];++te);if(te>J){if(J=te,K=$,te>B)break;for(var X=Math.min($,te-2),ne=0,Z=0;Z<X;++Z){var le=T-$+Z&32767,re=v[le],he=le-re&32767;he>ne&&(ne=he,V=le)}}}M=V,V=v[M],$+=M-V&32767}if(K){_[D++]=268435456|zC[J]<<18|W6[K];var be=zC[J]&31,ve=W6[K]&31;k+=x3[be]+b3[ve],++N[257+be],++A[ve],P=T+J,++E}else _[D++]=e[T],++N[e[T]]}}for(T=Math.max(T,P);T<o;++T)_[D++]=e[T],++N[e[T]];d=K6(e,c,u,_,N,A,k,D,R,T-R,d),u||(s.r=d&7|c[d/8|0]<<3,d-=7,s.h=g,s.p=v,s.i=T,s.w=P)}else{for(var T=s.w||0;T<o+u;T+=65535){var ze=T+65535;ze>=o&&(c[d/8|0]=u,ze=o),d=cX(c,d+1,e.subarray(T,ze))}s.i=o}return GSe(l,0,r+lX(d)+i)},dX=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 l=Math.min(o+2655,s);o<l;++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}}},HSe=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),o=new Zl(s.length+e.length);o.set(s),o.set(e,s.length),e=o,i.w=s.length}return WSe(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)},fX=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},KSe=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=dX();i.p(t.dictionary),fX(e,2,i.d())}};function GC(e,t){t||(t={});var n=dX();n.p(e);var r=HSe(e,t,t.dictionary?6:2,4);return KSe(r,t),fX(r,r.length-4,n.d()),r}var YSe=typeof TextDecoder<"u"&&new TextDecoder,XSe=0;try{YSe.decode(uX,{stream:!0}),XSe=1}catch{}function QSe(e){if(Array.isArray(e))return e}function ZSe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function Y6(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 JSe(e,t){if(e){if(typeof e=="string")return Y6(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)?Y6(e,t):void 0}}function e5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 938In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X6(e,t){return QSe(e)||ZSe(e,t)||JSe(e,t)||e5e()}function Q6(e,t="utf8"){return new TextDecoder(t).decode(e)}const t5e=new TextEncoder;function n5e(e){return t5e.encode(e)}const r5e=1024*8,i5e=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),KN={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 w3{constructor(t=r5e,n={}){en(this,"buffer");en(this,"byteLength");en(this,"byteOffset");en(this,"length");en(this,"offset");en(this,"lastWrittenByte");en(this,"littleEndian");en(this,"_data");en(this,"_mark");en(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 w3)&&(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=KN[n].BYTES_PER_ELEMENT*t,i=this.byteOffset+this.offset,s=this.buffer.slice(i,i+r);if(this.littleEndian===i5e&&n!=="uint8"&&n!=="int8"){const l=new Uint8Array(this.buffer.slice(i,i+r));l.reverse();const c=new KN[n](l.buffer);return this.offset+=r,c.reverse(),c}const o=new KN[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 Q6(this.readBytes(t))}decodeText(t=1,n="utf8"){return Q6(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(n5e(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)}}function dv(e){let t=e.length;for(;--t>=0;)e[t]=0}const a5e=3,s5e=258,hX=29,o5e=256,l5e=o5e+1+hX,pX=30,c5e=512,u5e=new Array((l5e+2)*2);dv(u5e);const d5e=new Array(pX*2);dv(d5e);const f5e=new Array(c5e);dv(f5e);const h5e=new Array(s5e-a5e+1);dv(h5e);const p5e=new Array(hX);dv(p5e);const m5e=new Array(pX);dv(m5e);const g5e=(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 VC=g5e;const v5e=()=>{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},y5e=new Uint32Array(v5e()),x5e=(e,t,n,r)=>{const i=y5e,s=r+n;e^=-1;for(let o=r;o<s;o++)e=e>>>8^i[(e^t[o])&255];return e^-1};var kc=x5e,WC={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"},mX={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ER
vendor: 14,487 bytes, line 938
938ROR:-5,Z_DEFLATED:8};const b5e=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var w5e=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)b5e(n,r)&&(e[r]=n[r])}}return e},j5e=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},gX={assign:w5e,flattenChunks:j5e};let vX=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{vX=!1}const vx=new Uint8Array(256);for(let e=0;e<256;e++)vx[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;vx[254]=vx[254]=1;var _5e=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,s,o=e.length,l=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++)),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(l),s=0,i=0;s<l;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 N5e=(e,t)=>{if(t<65534&&e.subarray&&vX)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 S5e=(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 l=vx[o];if(l>4){s[i++]=65533,r+=l-1;continue}for(o&=l===2?31:l===3?15:7;l>1&&r<n;)o=o<<6|e[r++]&63,l--;if(l>1){s[i++]=65533;continue}o<65536?s[i++]=o:(o-=65536,s[i++]=55296|o>>10&1023,s[i++]=56320|o&1023)}return N5e(s,i)},A5e=(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+vx[e[n]]>t?n:t},HC={string2buf:_5e,buf2string:S5e,utf8border:A5e};function k5e(){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 P5e=k5e;const Gb=16209,C5e=16191;var E5e=function(t,n){let r,i,s,o,l,c,u,d,f,p,h,x,v,g,y,w,j,_,N,A,E,k,T,D;const P=t.state;r=t.next_in,T=t.input,i=r+(t.avail_in-5),s=t.next_out,D=t.output,o=s-(n-t.avail_out),l=s+(t.avail_out-257),c=P.dmax,u=P.wsize,d=P.whave,f=P.wnext,p=P.window,h=P.hold,x=P.bits,v=P.lencode,g=P.distcode,y=(1<<P.lenbits)-1,w=(1<<P.distbits)-1;e:do{x<15&&(h+=T[r++]<<x,x+=8,h+=T[r++]<<x,x+=8),j=v[h&y];t:for(;;){if(_=j>>>24,h>>>=_,x-=_,_=j>>>16&255,_===0)D[s++]=j&65535;else if(_&16){N=j&65535,_&=15,_&&(x<_&&(h+=T[r++]<<x,x+=8),N+=h&(1<<_)-1,h>>>=_,x-=_),x<15&&(h+=T[r++]<<x,x+=8,h+=T[r++]<<x,x+=8),j=g[h&w];n:for(;;){if(_=j>>>24,h>>>=_,x-=_,_=j>>>16&255,_&16){if(A=j&65535,_&=15,x<_&&(h+=T[r++]<<x,x+=8,x<_&&(h+=T[r++]<<x,x+=8)),A+=h&(1<<_)-1,A>c){t.msg="invalid distance too far back",P.mode=Gb;break e}if(h>>>=_,x-=_,_=s-o,A>_){if(_=A-_,_>d&&P.sane){t.msg="invalid distance too far back",P.mode=Gb;break e}if(E=0,k=p,f===0){if(E+=u-_,_<N){N-=_;do D[s++]=p[E++];while(--_);E=s-A,k=D}}else if(f<_){if(E+=u+f-_,_-=f,_<N){N-=_;do D[s++]=p[E++];while(--_);if(E=0,f<N){_=f,N-=_;do D[s++]=p[E++];while(--_);E=s-A,k=D}}}else if(E+=f-_,_<N){N-=_;do D[s++]=p[E++];while(--_);E=s-A,k=D}for(;N>2;)D[s++]=k[E++],D[s++]=k[E++],D[s++]=k[E++],N-=3;N&&(D[s++]=k[E++],N>1&&(D[s++]=k[E++]))}else{E=s-A;do D[s++]=D[E++],D[s++]=D[E++],D[s++]=D[E++],N-=3;while(N>2);N&&(D[s++]=D[E++],N>1&&(D[s++]=D[E++]))}}else if((_&64)===0){j=g[(j&65535)+(h&(1<<_)-1)];continue n}else{t.msg="invalid distance code",P.mode=Gb;break e}break}}else if((_&64)===0){j=v[(j&65535)+(h&(1<<_)-1)];continue t}else if(_&32){P.mode=C5e;break e}else{t.msg="invalid literal/length code",P.mode=Gb;break e}break}}while(r<i&&s<l);N=x>>3,r-=N,x-=N<<3,h&=(1<<x)-1,t.next_in=r,t.next_out=s,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=s<l?257+(l-s):257-(s-l),P.hold=h,P.bits=x};const Am=15,Z6=852,J6=592,eD=0,YN=1,tD=2,T5e=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]),O5e=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]),R5e=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]),I5e=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]),L5e=(e,t,n,r,i,s,o,l)=>{const c=l.bits;let u=0,d=0,f=0,p=0,h=0,x=0,v=0,g=0,y=0,w=0,j,_,N,A,E,k=null,T;const D=new Uint16Array(Am+1),P=new Uint16Array(Am+1);let R=null,q,M,V;for(u=0;u<=Am;u++)D[u]=0;for(d=0;d<r;d++)D[t[n+d]]++;for(h=c,p=Am;p>=1&&D[p]===0;p--);if(h>p&&(h=p),p===0)return i[s++]=1<<24|64<<16|0,i[s++]=1<<24|64<<16|0,l.bits=1,0;for(f=1;f<p&&D[f]===0;f++);for(h<f&&(h=f),g=1,u=1;u<=Am;u++)if(g<<=1,g-=D[u],g<0)return-1;if(g>0&&(e===eD||p!==1))return-1;for(P[1]=0,u=1;u<Am;u++)P[u+1]=P[u]+D[u];for(d=0;d<r;d++)t[n+d]!==0&&(o[P[t[n+d]]++]=d);if(e===eD?(k=R=o,T=20):e===YN?(k=T5e,R=O5e,T=257):(k=R5e,R=I5e,T=0),w=0,d=0,u=f,E=s,x=h,v=0,N=-1,y=1<<h,A=y-1,e===YN&&y>Z6||e===tD&&y>J6)return 1;for(;;){q=u-v,o[d]+1<T?(M=0,V=o[d]):o[d]>=T?(M=R[o[d]-T],V=k[o[d]-T]):(M=96,V=0),j=1<<u-v,_=1<<x,f=_;do _-=j,i[E+(w>>v)+_]=q<<24|M<<16|V|0;while(_!==0);for(j=1<<u-1;w&j;)j>>=1;if(j!==0?(w&=j-1,w+=j):w=0,d++,--D[u]===0){if(u===p)break;u=t[n+o[d]]}if(u>h&&(w&A)!==N){for(v===0&&(v=h),E+=f,x=u-v,g=1<<x;x+v<p&&(g-=D[x+v],!(g<=0));)x++,g<<=1;if(y+=1<<x,e===YN&&y>Z6||e===tD&&y>J6)return 1;N=w&A,i[N]=h<<24|x<<16|E-s|0}}return w!==0&&(i[E+w]=u-v<<24|64<<16|0),l.bits=h,0};var Ky=L5e;const M5e=0,yX=1,xX=2,{Z_FINISH:nD,Z_BLOCK:D5e,Z_TREES:Vb,Z_OK:gp,Z_STREAM_END:F5e,Z_NEED_DICT:B5e,Z_STREAM_ERROR:vl,Z_DATA_ERROR:bX,Z_MEM_ERROR:wX,Z_BUF_ERROR:q5e,Z_DEFLATED:rD}=mX,vj=16180,iD=16181,aD=16182,sD=16183,oD=16184,lD=16185,cD=16186,uD=16187,dD=16188,fD=16189,bw=16190,Fu=16191,XN=16192,hD=16193,QN=16194,pD=16195,mD=16196,gD=16197,vD=16198,Wb=16199,Hb=16200,yD=16201,xD=16202,bD=16203,wD=16204,jD=16205,ZN=16206,_D=16207,ND=16208,ti=16209,jX=16210,_X=16211,z5e=852,$5e=592,U5e=15,G5e=U5e,SD=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function V5e(){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 Lp=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<vj||t.mode>_X?1:0},NX=e=>{if(Lp(e))return vl;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=vj,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(z5e),t.distcode=t.distdyn=new Int32Array($5e),t.sane=1,t.back=-1,gp},SX=e=>{if(Lp(e))return vl;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,NX(e)},AX=(e,t)=>{let n;if(Lp(e))return vl;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?vl:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,SX(e))},kX=(e,t)=>{if(!e)return vl;const n=new V5e;e.state=n,n.strm=e,n.window=null,n.mode=vj;const r=AX(e,t);return r!==gp&&(e.state=null),r},W5e=e=>kX(e,G5e);let AD=!0,JN,eS;const H5e=e=>{if(AD){JN=new Int32Array(512),eS=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(Ky(yX,e.lens,0,288,JN,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Ky(xX,e.lens,0,32,eS,0,e.work,{bits:5}),AD=!1}e.lencode=JN,e.lenbits=9,e.distcode=eS,e.distbits=5},PX=(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},K5e=(e,t)=>{let n,r,i,s,o,l,c,u,d,f,p,h,x,v,g=0,y,w,j,_,N,A,E,k;const T=new Uint8Array(4);let D,P;const R=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Lp(e)||!e.output||!e.input&&e.avail_in!==0)return vl;n=e.state,n.mode===Fu&&(n.mode=XN),o=e.next_out,i=e.output,c=e.avail_out,s=e.next_in,r=e.input,l=e.avail_in,u=n.hold,d=n.bits,f=l,p=c,k=gp;e:for(;;)switch(n.mode){case vj:if(n.wrap===0){n.mode=XN;break}for(;d<16;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}if(n.wrap&2&&u===35615){n.wbits===0&&(n.wbits=15),n.check=0,T[0]=u&255,T[1]=u>>>8&255,n.check=kc(n.check,T,2,0),u=0,d=0,n.mode=iD;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=ti;break}if((u&15)!==rD){e.msg="unknown compression method",n.mode=ti;break}if(u>>>=4,d-=4,E=(u&15)+8,n.wbits===0&&(n.wbits=E),E>15||E>n.wbits){e.msg="invalid window size",n.mode=ti;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=u&512?fD:Fu,u=0,d=0;break;case iD:for(;d<16;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}if(n.flags=u,(n.flags&255)!==rD){e.msg="unknown compression method",n.mode=ti;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=ti;break}n.head&&(n.head.text=u>>8&1),n.flags&512&&n.wrap&4&&(T[0]=u&255,T[1]=u>>>8&255,n.check=kc(n.check,T,2,0)),u=0,d=0,n.mode=aD;case aD:for(;d<32;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}n.head&&(n.head.time=u),n.flags&512&&n.wrap&4&&(T[0]=u&255,T[1]=u>>>8&255,T[2]=u>>>16&255,T[3]=u>>>24&255,n.check=kc(n.check,T,4,0)),u=0,d=0,n.mode=sD;case sD:for(;d<16;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}n.head&&(n.head.xflags=u&255,n.head.os=u>>8),n.flags&512&&n.wrap&4&&(T[0]=u&255,T[1]=u>>>8&255,n.check=kc(n.check,T,2,0)),u=0,d=0,n.mode=oD;case oD:if(n.flags&1024){for(;d<16;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}n.length=u,n.head&&(n.head.extra_len=u),n.flags&512&&n.wrap&4&&(T[0]=u&255,T[1]=u>>>8&255,n.check=kc(n.check,T,2,0)),u=0,d=0}else n.head&&(n.head.extra=null);n.mode=lD;case lD:if(n.flags&1024&&(h=n.length,h>l&&(h=l),h&&(n.head&&(E=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),E)),n.flags&512&&n.wrap&4&&(n.check=kc(n.check,r,h,s)),l-=h,s+=h,n.length-=h),n.length))break e;n.length=0,n.mode=cD;case cD:if(n.flags&2048){if(l===0)break e;h=0;do E=r[s+h++],n.head&&E&&n.length<65536&&(n.head.name+=String.fromCharCode(E));while(E&&h<l);if(n.flags&512&&n.wrap&4&&(n.check=kc(n.check,r,h,s)),l-=h,s+=h,E)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=uD;case uD:if(n.flags&4096){if(l===0)break e;h=0;do E=r[s+h++],n.head&&E&&n.length<65536&&(n.head.comment+=String.fromCharCode(E));while(E&&h<l);if(n.flags&512&&n.wrap&4&&(n.check=kc(n.check,r,h,s)),l-=h,s+=h,E)break e}else n.head&&(n.head.comment=null);n.mode=dD;case dD:if(n.flags&512){for(;d<16;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}if(n.wrap&4&&u!==(n.check&65535)){e.msg="header crc mismatch",n.mode=ti;break}u=0,d=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Fu;break;case fD:for(;d<32;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}e.adler=n.check=SD(u),u=0,d=0,n.mode=bw;case bw:if(n.havedict===0)return e.next_out=o,e.avail_out=c,e.next_in=s,e.avail_in=l,n.hold=u,n.bits=d,B5e;e.adler=n.check=1,n.mode=Fu;case Fu:if(t===D5e||t===Vb)break e;case XN:if(n.last){u>>>=d&7,d-=d&7,n.mode=ZN;break}for(;d<3;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}switch(n.last=u&1,u>>>=1,d-=1,u&3){case 0:n.mode=hD;break;case 1:if(H5e(n),n.mode=Wb,t===Vb){u>>>=2,d-=2;break e}break;case 2:n.mode=mD;break;case 3:e.msg="invalid block type",n.mode=ti}u>>>=2,d-=2;break;case hD:for(u>>>=d&7,d-=d&7;d<32;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=ti;break}if(n.length=u&65535,u=0,d=0,n.mode=QN,t===Vb)break e;case QN:n.mode=pD;case pD:if(h=n.length,h){if(h>l&&(h=l),h>c&&(h=c),h===0)break e;i.set(r.subarray(s,s+h),o),l-=h,s+=h,c-=h,o+=h,n.length-=h;break}n.mode=Fu;break;case mD:for(;d<14;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}if(n.nlen=(u&31)+257,u>>>=5,d-=5,n.ndist=(u&31)+1,u>>>=5,d-=5,n.ncode=(u&15)+4,u>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=ti;break}n.have=0,n.mode=gD;case gD:for(;n.have<n.ncode;){for(;d<3;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}n.lens[R[n.have++]]=u&7,u>>>=3,d-=3}for(;n.have<19;)n.lens[R[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,D={bits:n.lenbits},k=Ky(M5e,n.lens,0,19,n.lencode,0,n.work,D),n.lenbits=D.bits,k){e.msg="invalid code lengths set",n.mode=ti;break}n.have=0,n.mode=vD;case vD:for(;n.have<n.nlen+n.ndist;){for(;g=n.lencode[u&(1<<n.lenbits)-1],y=g>>>24,w=g>>>16&255,j=g&65535,!(y<=d);){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}if(j<16)u>>>=y,d-=y,n.lens[n.have++]=j;else{if(j===16){for(P=y+2;d<P;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}if(u>>>=y,d-=y,n.have===0){e.msg="invalid bit length repeat",n.mode=ti;break}E=n.lens[n.have-1],h=3+(u&3),u>>>=2,d-=2}else if(j===17){for(P=y+3;d<P;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}u>>>=y,d-=y,E=0,h=3+(u&7),u>>>=3,d-=3}else{for(P=y+7;d<P;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}u>>>=y,d-=y,E=0,h=11+(u&127),u>>>=7,d-=7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=ti;break}for(;h--;)n.lens[n.have++]=E}}if(n.mode===ti)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=ti;break}if(n.lenbits=9,D={bits:n.lenbits},k=Ky(yX,n.lens,0,n.nlen,n.lencode,0,n.work,D),n.lenbits=D.bits,k){e.msg="invalid literal/lengths set",n.mode=ti;break}if(n.distbits=6,n.distcode=n.distdyn,D={bits:n.distbits},k=Ky(xX,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,D),n.distbits=D.bits,k){e.msg="invalid distances set",n.mode=ti;break}if(n.mode=Wb,t===Vb)break e;case Wb:n.mode=Hb;case Hb:if(l>
vendor: 5,013 bytes, line 938
938=6&&c>=258){e.next_out=o,e.avail_out=c,e.next_in=s,e.avail_in=l,n.hold=u,n.bits=d,E5e(e,p),o=e.next_out,i=e.output,c=e.avail_out,s=e.next_in,r=e.input,l=e.avail_in,u=n.hold,d=n.bits,n.mode===Fu&&(n.back=-1);break}for(n.back=0;g=n.lencode[u&(1<<n.lenbits)-1],y=g>>>24,w=g>>>16&255,j=g&65535,!(y<=d);){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}if(w&&(w&240)===0){for(_=y,N=w,A=j;g=n.lencode[A+((u&(1<<_+N)-1)>>_)],y=g>>>24,w=g>>>16&255,j=g&65535,!(_+y<=d);){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}u>>>=_,d-=_,n.back+=_}if(u>>>=y,d-=y,n.back+=y,n.length=j,w===0){n.mode=jD;break}if(w&32){n.back=-1,n.mode=Fu;break}if(w&64){e.msg="invalid literal/length code",n.mode=ti;break}n.extra=w&15,n.mode=yD;case yD:if(n.extra){for(P=n.extra;d<P;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=xD;case xD:for(;g=n.distcode[u&(1<<n.distbits)-1],y=g>>>24,w=g>>>16&255,j=g&65535,!(y<=d);){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}if((w&240)===0){for(_=y,N=w,A=j;g=n.distcode[A+((u&(1<<_+N)-1)>>_)],y=g>>>24,w=g>>>16&255,j=g&65535,!(_+y<=d);){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}u>>>=_,d-=_,n.back+=_}if(u>>>=y,d-=y,n.back+=y,w&64){e.msg="invalid distance code",n.mode=ti;break}n.offset=j,n.extra=w&15,n.mode=bD;case bD:if(n.extra){for(P=n.extra;d<P;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=ti;break}n.mode=wD;case wD:if(c===0)break e;if(h=p-c,n.offset>h){if(h=n.offset-h,h>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=ti;break}h>n.wnext?(h-=n.wnext,x=n.wsize-h):x=n.wnext-h,h>n.length&&(h=n.length),v=n.window}else v=i,x=o-n.offset,h=n.length;h>c&&(h=c),c-=h,n.length-=h;do i[o++]=v[x++];while(--h);n.length===0&&(n.mode=Hb);break;case jD:if(c===0)break e;i[o++]=n.length,c--,n.mode=Hb;break;case ZN:if(n.wrap){for(;d<32;){if(l===0)break e;l--,u|=r[s++]<<d,d+=8}if(p-=c,e.total_out+=p,n.total+=p,n.wrap&4&&p&&(e.adler=n.check=n.flags?kc(n.check,i,p,o-p):VC(n.check,i,p,o-p)),p=c,n.wrap&4&&(n.flags?u:SD(u))!==n.check){e.msg="incorrect data check",n.mode=ti;break}u=0,d=0}n.mode=_D;case _D:if(n.wrap&&n.flags){for(;d<32;){if(l===0)break e;l--,u+=r[s++]<<d,d+=8}if(n.wrap&4&&u!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=ti;break}u=0,d=0}n.mode=ND;case ND:k=F5e;break e;case ti:k=bX;break e;case jX:return wX;case _X:default:return vl}return e.next_out=o,e.avail_out=c,e.next_in=s,e.avail_in=l,n.hold=u,n.bits=d,(n.wsize||p!==e.avail_out&&n.mode<ti&&(n.mode<ZN||t!==nD))&&PX(e,e.output,e.next_out,p-e.avail_out),f-=e.avail_in,p-=e.avail_out,e.total_in+=f,e.total_out+=p,n.total+=p,n.wrap&4&&p&&(e.adler=n.check=n.flags?kc(n.check,i,p,e.next_out-p):VC(n.check,i,p,e.next_out-p)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Fu?128:0)+(n.mode===Wb||n.mode===QN?256:0),(f===0&&p===0||t===nD)&&k===gp&&(k=q5e),k},Y5e=e=>{if(Lp(e))return vl;let t=e.state;return t.window&&(t.window=null),e.state=null,gp},X5e=(e,t)=>{if(Lp(e))return vl;const n=e.state;return(n.wrap&2)===0?vl:(n.head=t,t.done=!1,gp)},Q5e=(e,t)=>{const n=t.length;let r,i,s;return Lp(e)||(r=e.state,r.wrap!==0&&r.mode!==bw)?vl:r.mode===bw&&(i=1,i=VC(i,t,n,0),i!==r.check)?bX:(s=PX(e,t,n,n),s?(r.mode=jX,wX):(r.havedict=1,gp))};var Z5e=SX,J5e=AX,eAe=NX,tAe=W5e,nAe=kX,rAe=K5e,iAe=Y5e,aAe=X5e,sAe=Q5e,oAe="pako inflate (from Nodeca project)",$u={inflateReset:Z5e,inflateReset2:J5e,inflateResetKeep:eAe,inflateInit:tAe,inflateInit2:nAe,inflate:rAe,inflateEnd:iAe,inflateGetHeader:aAe,inflateSetDictionary:sAe,inflateInfo:oAe};function lAe(){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 cAe=lAe;const CX=Object.prototype.toString,{Z_NO_FLUSH:uAe,Z_FINISH:dAe,Z_OK:yx,Z_STREAM_END:tS,Z_NEED_DICT:nS,Z_STREAM_ERROR:fAe,Z_DATA_ERROR:kD,Z_MEM_ERROR:hAe}=mX;function P0(e){this.options=gX.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)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new P5e,this.strm.avail_out=0;let n=$u.inflateInit2(this.strm,t.windowBits);if(n!==yx)throw new Error(WC[n]);if(this.header=new cAe,$u.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=HC.string2buf(t.dictionary):CX.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=$u.inflateSetDictionary(this.strm,t.dictionary),n!==yx)))throw new Error(WC[n])}P0.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let s,o,l;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?dAe:uAe,CX.call(e)==="[object ArrayBuffer]"?n.input=new
vendor: 10,007 bytes, line 938
938Uint8Array(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=$u.inflate(n,o),s===nS&&i&&(s=$u.inflateSetDictionary(n,i),s===yx?s=$u.inflate(n,o):s===kD&&(s=nS));n.avail_in>0&&s===tS&&n.state.wrap>0&&e[n.next_in]!==0;)$u.inflateReset(n),s=$u.inflate(n,o);switch(s){case fAe:case kD:case nS:case hAe:return this.onEnd(s),this.ended=!0,!1}if(l=n.avail_out,n.next_out&&(n.avail_out===0||s===tS))if(this.options.to==="string"){let c=HC.utf8border(n.output,n.next_out),u=n.next_out-c,d=HC.buf2string(n.output,c);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(c,c+u),0),this.onData(d)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(s===yx&&l===0)){if(s===tS)return s=$u.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};P0.prototype.onData=function(e){this.chunks.push(e)};P0.prototype.onEnd=function(e){e===yx&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=gX.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function pAe(e,t){const n=new P0(t);if(n.push(e),n.err)throw n.msg||WC[n.err];return n.result}var mAe=P0,gAe=pAe,vAe={Inflate:mAe,inflate:gAe};const{Inflate:yAe,inflate:xAe}=vAe;var PD=yAe,bAe=xAe;const EX=[];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;EX[e]=t}const CD=4294967295;function wAe(e,t,n){let r=e;for(let i=0;i<n;i++)r=EX[(r^t[i])&255]^r>>>8;return r}function jAe(e,t){return(wAe(CD,e,t)^CD)>>>0}function ED(e,t,n){const r=e.readUint32(),i=jAe(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 TX(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function OX(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 RX(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 IX(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 LX(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]+_Ae(t[s-i],n[s],n[s-i])&255}}function _Ae(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 NAe(e,t,n,r,i,s){switch(e){case 0:TX(t,n,i);break;case 1:OX(t,n,i,s);break;case 2:RX(t,n,r,i);break;case 3:IX(t,n,r,i,s);break;case 4:LX(t,n,r,i,s);break;default:throw new Error(`Unsupported filter: ${e}`)}}const SAe=new Uint16Array([255]),AAe=new Uint8Array(SAe.buffer),kAe=AAe[0]===255;function PAe(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}],l=Math.ceil(s/8)*i,c=new Uint8Array(r*n*l);let u=0;for(let d=0;d<7;d++){const f=o[d],p=Math.ceil((n-f.x)/f.xStep),h=Math.ceil((r-f.y)/f.yStep);if(p<=0||h<=0)continue;const x=p*l,v=new Uint8Array(x);for(let g=0;g<h;g++){const y=t[u++],w=t.subarray(u,u+x);u+=x;const j=new Uint8Array(x);NAe(y,w,j,v,x,l),v.set(j);for(let _=0;_<p;_++){const N=f.x+_*f.xStep,A=f.y+g*f.yStep;if(!(N>=n||A>=r))for(let E=0;E<l;E++)c[(A*n+N)*l+E]=j[_*l+E]}}}if(s===16){const d=new Uint16Array(c.buffer);if(kAe)for(let f=0;f<d.length;f++)d[f]=CAe(d[f]);return d}else return c}function CAe(e){return(e&255)<<8|e>>8&255}const EAe=new Uint16Array([255]),TAe=new Uint8Array(EAe.buffer),OAe=TAe[0]===255,RAe=new Uint8Array(0);function TD(e){const{data:t,width:n,height:r,channels:i,depth:s}=e,o=Math.ceil(s/8)*i,l=Math.ceil(s/8*i*n),c=new Uint8Array(r*l);let u=RAe,d=0,f,p;for(let h=0;h<r;h++){switch(f=t.subarray(d+1,d+1+l),p=c.subarray(h*l,(h+1)*l),t[d]){case 0:TX(f,p,l);break;case 1:OX(f,p,l,o);break;case 2:RX(f,p,u,l);break;case 3:IX(f,p,u,l,o);break;case 4:LX(f,p,u,l,o);break;default:throw new Error(`Unsupported filter: ${t[d]}`)}u=p,d+=l+1}if(s===16){const h=new Uint16Array(c.buffer);if(OAe)for(let x=0;x<h.length;x++)h[x]=IAe(h[x]);return h}else return c}function IAe(e){return(e&255)<<8|e>>8&255}const R1=Uint8Array.of(137,80,78,71,13,10,26,10);function OD(e){if(!LAe(e.readBytes(R1.length)))throw new Error("wrong PNG signature")}function LAe(e){if(e.length<R1.length)return!1;for(let t=0;t<R1.length;t++)if(e[t]!==R1[t])return!1;return!0}const MAe="tEXt",DAe=0,MX=new TextDecoder("latin1");function FAe(e){if(qAe(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const BAe=/^[\u0000-\u00FF]*$/;function qAe(e){if(!BAe.test(e))throw new Error("invalid latin1 text")}function zAe(e,t,n){const r=DX(t);e[r]=$Ae(t,n-r.length-1)}function DX(e){for(e.mark();e.readByte()!==DAe;);const t=e.offset;e.reset();const n=MX.decode(e.readBytes(t-e.offset-1));return e.skip(1),FAe(n),n}function $Ae(e,t){return MX.decode(e.readBytes(t))}const _o={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},rS={UNKNOWN:-1,DEFLATE:0},RD={UNKNOWN:-1,ADAPTIVE:0},iS={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Kb={NONE:0,BACKGROUND:1,PREVIOUS:2},aS={SOURCE:0,OVER:1};class UAe extends w3{constructor(n,r={}){super(n);en(this,"_checkCrc");en(this,"_inflator");en(this,"_png");en(this,"_apng");en(this,"_end");en(this,"_hasPalette");en(this,"_palette");en(this,"_hasTransparency");en(this,"_transparency");en(this,"_compressionMethod");en(this,"_filterMethod");en(this,"_interlaceMethod");en(this,"_colorType");en(this,"_isAnimated");en(this,"_numberOfFrames");en(this,"_numberOfPlays");en(this,"_frames");en(this,"_writingDataChunks");const{checkCrc:i=!1}=r;this._checkCrc=i,this._inflator=new PD,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=rS.UNKNOWN,this._filterMethod=RD.UNKNOWN,this._interlaceMethod=iS.UNKNOWN,this._colorType=_o.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(OD(this);!this._end;){const n=this.readUint32(),r=this.readChars(4);this.decodeChunk(n,r)}return this.decodeImage(),this._png}decodeApng(){for(OD(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 MAe:zAe(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?ED(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?ED(this,n+4,r):this.skip(4)}decodeIHDR(){const n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=GAe(this.readUint8());const r=this.readUint8();this._colorType=r;let i;switch(r){case _o.GREYSCALE:i=1;break;case _o.TRUECOLOUR:i=3;break;case _o.INDEXED_COLOUR:i=1;break;case _o.GREYSCALE_ALPHA:i=2;break;case _o.TRUECOLOUR_ALPHA:i=4;break;case _o.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==rS.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 _o.GREYSCALE:case _o.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 _o.INDEXED_COLOUR:{if(n>this._palette.length)throw new Error(`tRNS chunk contains more alph
938a 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 _o.UNKNOWN:case _o.GREYSCALE_ALPHA:case _o.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(n){const r=DX(this),i=this.readUint8();if(i!==rS.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const s=this.readBytes(n-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:bAe(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=TD({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 Kb.NONE:break;case Kb.BACKGROUND:for(let s=0;s<this._png.height;s++)for(let o=0;o<this._png.width;o++){const l=(s*n.width+o)*this._png.channels;for(let c=0;c<this._png.channels;c++)i.data[l+c]=0}break;case Kb.PREVIOUS:i.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(n,r){const i=1<<this._png.depth,s=(o,l)=>{const c=((o+r.yOffset)*this._png.width+r.xOffset+l)*this._png.channels,u=(o*r.width+l)*this._png.channels;return{index:c,frameIndex:u}};switch(r.blendOp){case aS.SOURCE:for(let o=0;o<r.height;o++)for(let l=0;l<r.width;l++){const{index:c,frameIndex:u}=s(o,l);for(let d=0;d<this._png.channels;d++)n.data[c+d]=r.data[u+d]}break;case aS.OVER:for(let o=0;o<r.height;o++)for(let l=0;l<r.width;l++){const{index:c,frameIndex:u}=s(o,l);for(let d=0;d<this._png.channels;d++){const f=r.data[u+this._png.channels-1]/i,p=d%(this._png.channels-1)===0?1:r.data[u+d],h=Math.floor(f*p+(1-f)*n.data[c+d]);n.data[c+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!==RD.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===iS.NO_INTERLACE)this._png.data=TD({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===iS.ADAM7)this._png.data=PAe({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:Kb.NONE,blendOp:aS.SOURCE,data:n}),this._inflator=new PD,this._writingDataChunks=!1}}function GAe(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var ID;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(ID||(ID={}));function VAe(e,t){return new UAe(e,t).decode()}var xn=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function sS(){xn.console&&typeof xn.console.log=="function"&&xn.console.log.apply(xn.console,arguments)}var Rr={log:sS,warn:function(e){xn.console&&(typeof xn.console.warn=="function"?xn.console.warn.apply(xn.console,arguments):sS.call(null,arguments))},error:function(e){xn.console&&(typeof xn.console.error=="function"?xn.console.error.apply(xn.console,arguments):sS(e))}};function oS(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Rh(r.response,t,n
vendor: 3,703 bytes, lines 938-943
938)},r.onerror=function(){Rr.error("could not download file")},r.send()}function LD(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Yb(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 Rh=xn.saveAs||((typeof window>"u"?"undefined":Sr(window))!=="object"||window!==xn?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=xn.URL||xn.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?LD(i.href)?oS(e,t,n):Yb(i,i.target="_blank"):Yb(i)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){Yb(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(LD(e))oS(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Yb(r)})}else navigator.msSaveOrOpenBlob((function(i,s){return s===void 0?s={autoBom:!1}:Sr(s)!=="object"&&(Rr.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 oS(e,t,n);var i=e.type==="application/octet-stream",s=/constructor/i.test(xn.HTMLElement)||xn.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&s)&&(typeof FileReader>"u"?"undefined":Sr(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var d=l.result;d=o?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=d:location=d,r=null},l.readAsDataURL(e)}else{var c=xn.URL||xn.webkitURL,u=c.createObjectURL(e);r?r.location=u:location.href=u,r=null,setTimeout(function(){c.revokeObjectURL(u)},4e4)}});/** 939 * A class to parse color values 940 * @author Stoyan Stefanov <[email protected]> 941 * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} 942 * @license Use it if you like it 943 */function FX(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
9430",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(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[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 l=this.r.toString(16),c=this.g.toString(16),u=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),u.length==1&&(u="0"+u),"#"+l+c+u}}var I1=xn.atob.bind(xn),MD=xn.btoa.bind(xn);/** 944 * @license 945 * Joseph Myers does not specify a particular license for his work. 946 * 947 * Author: Joseph Myers 948 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js 949 * 950 * Modified by: Owen Leong 951 */function lS(e,t){var n=e[0],r=e[1],i=e[2],s=e[3];n=Ga(n,r,i,s,t[0],7,-680876936),s=Ga(s,n,r,i,t[1],12,-389564586),i=Ga(i,s,n,r,t[2],17,606105819),r=Ga(r,i,s,n,t[3],22,-1044525330),n=Ga(n,r,i,s,t[4],7,-176418897),s=Ga(s,n,r,i,t[5],12,1200080426),i=Ga(i,s,n,r,t[6],17,-1473231341),r=Ga(r,i,s,n,t[7],22,-45705983),n=Ga(n,r,i,s,t[8],7,1770035416),s=Ga(s,n,r,i,t[9],12,-1958414417),i=Ga(i,s,n,r,t[10],17,-42063),r=Ga(r,i,s,n,t[11],22,-1990404162),n=Ga(n,r,i,s,t[12],7,1804603682),s=Ga(s,n,r,i,t[13],12,-40341101),i=Ga(i,s,n,r,t[14],17,-1502002290),n=Va(n,r=Ga(r,i,s,n,t[15],22,1236535329),i,s,t[1],5,-165796510),s=Va(s,n,r,i,t[6],9,-1069501632),i=Va(i,s,n,r,t[11],14,643717713),r=Va(r,i,s,n,t[0],20,-373897302),n=Va(n,r,i,s,t[5],5,-701558691),s=Va(s,n,r,i,t[10],9,38016083),i=Va(i,s,n,r,t[15],14,-660478335),r=Va(r,i,s,n,t[4],20,-405537848),n=Va(n,r,i,s,t[9],5,568446438),s=Va(s,n,r,i,t[14],9,-1019803690),i=Va(i,s,n,r,t[3],14,-187363961),r=Va(r,i,s,n,t[8],20,1163531501),n=Va(n,r,i,s,t[13],5,-1444681467),s=Va(s,n,r,i,t[2],9,-51403784),i=Va(i,s,n,r,t[7],14,1735328473),n=Wa(n,r=Va(r,i,s,n,t[12],20,-1926607734),i,s,t[5],4,-378558),s=Wa(s,n,r,i,t[8],11,-2022574463),i=Wa(i,s,n,r,t[11],16,1839030562),r=Wa(r,i,s,n,t[14],23,-35309556),n=Wa(n,r,i,s,t[1],4,-1530992060),s=Wa(s,n,r,i,t[4],11,1272893353),i=Wa(i,s,n,r,t[7],16,-155497632),r=Wa(r,i,s,n,t[10],23,-1094730640),n=Wa(n,r,i,s,t[13],4,681279174),s=Wa(s,n,r,i,t[0],11,-358537222),i=Wa(i,s,n,r,t[3],16,-722521979),r=Wa(r,i,s,n,t[6],23,76029189),n=Wa(n,r,i,s,t[9],4,-640364487),s=Wa(s,n,r,i,t[12],11,-421815835),i=Wa(i,s,n,r,t[15],16,530742520),n=Ha(n,r=Wa(r,i,s,n,t[2],23,-995338651),i,s,t[0],6,-198630844),s=Ha(s,n,r,i,t[7],10,1126891415),i=Ha(i,s,n,r,t[14],15,-1416354905),r=Ha(r,i,s,n,t[5],21,-57434055),n=Ha(n,r,i,s,t[12],6,1700485571),s=Ha(s,n,r,i,t[3],10,-1894986606),i=Ha(i,s,n,r,t[10],15,-1051523),r=Ha(r,i,s,n,t[1],21,-2054922799),n=Ha(n,r,i,s,t[8],6,1873313359),s=Ha(s,n,r,i,t[15],10,-30611744),i=Ha(i,s,n,r,t[6],15,-1560198380),r=Ha(r,i,s,n,t[13],21,1309151649),n=Ha(n,r,i,s,t[4],6,-145523070),s=Ha(s,n,r,i,t[11],10,-1120210379),i=Ha(i,s,n,r,t[2],15,718787259),r=Ha(r,i,s,n,t[9],21,-343485551),e[0]=Af(n,e[0]),e[1]=Af(r,e[1]),e[2]=Af(i,e[2]),e[3]=Af(s,e[3])}function yj(e,t,n,r,i,s){return t=Af(Af(t,e),Af(r,s)),Af(t<<i|t>>>32-i,n)}function Ga(e,t,n,r,i,s,o){return yj(t&n|~t&r,e,t,i,s,o)}function Va(e,t,n,r,i,s,o){return yj(t&r|n&~r,e,t,i,s,o)}function Wa(e,t,n,r,i,s,o){return yj(t^n^r,e,t,i,s,o)}function Ha(e,t,n,r,i,s,o){return yj(n^(t|~r),e,t,i,s,o)}function BX(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)lS(r,WAe(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(lS(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,lS(r,i),r}function WAe(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 DD="0123456789abcdef".split("");function HAe(e){for(var t="",n=0;n<4;n++)t+=DD[e>>8*n+4&15]+DD[e>>8*n&15];return t}function KAe(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function KC(e){return BX(e).map(KAe).join("")}var YAe=(function(e){for(var t=0;t<e.length;t++)e[t]=HAe(e[t]);return e.join("")})(BX("hello"))!="5d41402abc4b2a76b9719d911017c592";function Af(e,t){if(YAe){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}/** 952 * @license 953 * FPDF is released under a permissive license: there is no usage restriction. 954 * You may embed it freely in your application (commercial or not), with or 955 * without modifications. 956 * 957 * Reference: http://www.fpdf.org/en/script/script37.php 958 */function YC(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)),l=[],c=0;c<256;c++)l[c]=c;var u=0;for(c=0;c<256;c++){var d=l[c];
vendor: 28,313 bytes, lines 958-972
958u=(u+d+o.charCodeAt(c))%256,l[c]=l[u],l[u]=d}n=e,r=l}else l=r;var f=t.length,p=0,h=0,x="";for(c=0;c<f;c++)h=(h+(d=l[p=(p+1)%256]))%256,l[p]=l[h],l[h]=d,o=l[(l[p]+l[h])%256],x+=String.fromCharCode(t.charCodeAt(c)^o);return x}/** 959 * @license 960 * Licensed under the MIT License. 961 * http://opensource.org/licenses/mit-license 962 * Author: Owen Leong (@owenl131) 963 * Date: 15 Oct 2020 964 * References: 965 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt 966 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js 967 * http://www.fpdf.org/en/script/script37.php 968 */var FD={print:4,modify:8,copy:16,"annot-forms":32};function Rm(e,t,n,r){this.v=1,this.r=2;var i=192;e.forEach(function(l){if(FD.perm!==void 0)throw new Error("Invalid permission: "+l);i+=FD[l]}),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=KC(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=YC(this.encryptionKey,this.padding)}function Im(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 BD(e){if(Sr(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(l){xn.console&&Rr.error("jsPDF PubSub Error",l.message,l)}o[1]&&i.push(s)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function ww(e){if(!(this instanceof ww))return new ww(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 qX(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Mh(e,t,n,r,i){if(!(this instanceof Mh))return new Mh(e,t,n,r,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=n,qX.call(this,r,i)}function qm(e,t,n,r,i){if(!(this instanceof qm))return new qm(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,qX.call(this,r,i)}function Xt(e){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],s=arguments[3],o=[],l=1,c=16,u="S",d=null;Sr(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||[]),l=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(c=e.floatPrecision),u=e.defaultPathOperation||"S"),o=e.filters||(s===!0?["FlateEncode"]:o),r=r||"mm",n=(""+(n||"P")).toLowerCase();var f=e.putOnlyUsedFonts||!1,p={},h={internal:{},__private__:{}};h.__private__.PubSub=BD;var x="1.3",v=h.__private__.getPdfVersion=function(){return x};h.__private__.setPdfVersion=function(U){x=U};var g={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 g};var y=h.__private__.getPageFormat=function(U){return g[U]};i=i||"a4";var w="compat",j="advanced",_=w;function N(){this.saveGraphicsState(),ue(new rn(mt,0,0,-mt,0,ho()*mt).toString()+" cm"),this.setFontSize(this.getFontSize()/mt),u="n",_=j}function A(){this.restoreGraphicsState(),u="S",_=w}var E=h.__private__.combineFontStyleAndFontWeight=function(U,ie){if(U=="bold"&&ie=="normal"||U=="bold"&&ie==400||U=="normal"&&ie=="italic"||U=="bold"&&ie=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return ie&&(U=ie==400||ie==="normal"?U==="italic"?"italic":"normal":ie!=700&&ie!=="bold"||U!=="normal"?(ie==700?"bold":ie)+""+U:"bold"),U};h.advancedAPI=function(U){var ie=_===w;return ie&&N.call(this),typeof U!="function"||(U(this),ie&&A.call(this)),this},h.compatAPI=function(U){var ie=_===j;return ie&&A.call(this),typeof U!="function"||(U(this),ie&&N.call(this)),this},h.isAdvancedAPI=function(){return _===j};var k,T=function(U){if(_!==j)throw new Error(U+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},D=h.roundToPrecision=h.__private__.roundToPrecision=function(U,ie){var pe=t||ie;if(isNaN(U)||isNaN(pe))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return U.toFixed(pe).replace(/0+$/,"")};k=h.hpf=h.__private__.hpf=typeof c=="number"?function(U){if(isNaN(U))throw new Error("Invalid argument passed to jsPDF.hpf");return D(U,c)}:c==="smart"?function(U){if(isNaN(U))throw new Error("Invalid argument passed to jsPDF.hpf");return D(U,U>-1&&U<1?16:5)}:function(U){if(isNaN(U))throw new Error("Invalid argument passed to jsPDF.hpf");return D(U,16)};var P=h.f2=h.__private__.f2=function(U){if(isNaN(U))throw new Error("Invalid argument passed to jsPDF.f2");return D(U,2)},R=h.__private__.f3=function(U){if(isNaN(U))throw new Error("Invalid argument passed to jsPDF.f3");return D(U,3)},q=h.scale=h.__private__.scale=function(U){if(isNaN(U))throw new Error("Invalid argument passed to jsPDF.scale");return _===w?U*mt:_===j?U:void 0},M=function(U){return q((function(ie){return _===w?ho()-ie:_===j?ie:void 0})(U))};h.__private__.setPrecision=h.setPrecision=function(U){typeof parseInt(U,10)=="number"&&(t=parseInt(U,10))};var V,H="00000000000000000000000000000000",Z=h.__private__.getFileId=function(){return H},J=h.__private__.setFileId=function(U){return H=U!==void 0&&/^[a-fA-F0-9]{32}$/.test(U)?U.toUpperCase():H.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d!==null&&(Fi=new Rm(d.userPermissions,d.userPassword,d.ownerPassword,H)),H};h.setFileId=function(U){return J(U),this},h.getFileId=function(){return Z()};var K=h.__private__.convertDateToPDFDate=function(U){var ie=U.getTimezoneOffset(),pe=ie<0?"+":"-",je=Math.floor(Math.abs(ie/60)),Me=Math.abs(ie%60),tt=[pe,ee(je),"'",ee(Me),"'"].join("");return["D:",U.getFullYear(),ee(U.getMonth()+1),ee(U.getDate()),ee(U.getHours()),ee(U.getMinutes()),ee(U.getSeconds()),tt].join("")},F=h.__private__.convertPDFDateToDate=function(U){var ie=parseInt(U.substr(2,4),10),pe=parseInt(U.substr(6,2),10)-1,je=parseInt(U.substr(8,2),10),Me=parseInt(U.substr(10,2),10),tt=parseInt(U.substr(12,2),10),st=parseInt(U.substr(14,2),10);return new Date(ie,pe,je,Me,tt,st,0)},$=h.__private__.setCreationDate=function(U){var ie;if(U===void 0&&(U=new Date),U instanceof Date)ie=K(U);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(U))throw new Error("Invalid argument passed to jsPDF.setCreationDate");ie=U}return V=ie},B=h.__private__.getCreationDate=function(U){var ie=V;return U==="jsDate"&&(ie=F(V)),ie};h.setCreationDate=function(U){return $(U),this},h.getCreationDate=function(U){return B(U)};var z,ee=h.__private__.padd2=function(U){return("0"+parseInt(U)).slice(-2)},te=h.__private__.padd2Hex=function(U){return("00"+(U=U.toString())).substr(U.length)},X=0,ne=[],le=[],re=0,he=[],be=[],ve=!1,ze=le;h.__private__.setCustomOutputDestination=function(U){ve=!0,ze=U};var He=function(U){ve||(ze=U)};h.__private__.resetCustomOutputDestination=function(){ve=!1,ze=le};var ue=h.__private__.out=function(U){return U=U.toString(),re+=U.length+1,ze.push(U),ze},Ue=h.__private__.write=function(U){return ue(arguments.length===1?U.toString():Array.prototype.join.call(arguments," "))},ut=h.__private__.getArrayBuffer=function(U){for(var ie=U.length,pe=new ArrayBuffer(ie),je=new Uint8Array(pe);ie--;)je[ie]=U.charCodeAt(ie);return pe},Ee=[["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 Ee};var we=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(U){return we=_===j?U/mt:U,this};var Ye,We=h.__private__.getFontSize=h.getFontSize=function(){return _===w?we:we*mt},Be=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(U){return Be=U,this},h.__private__.getR2L=h.getR2L=function(){return Be};var dt,St=h.__private__.setZoomMode=function(U){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(U))Ye=U;else if(isNaN(U)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(U)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+U+'" is not recognized.');Ye=U}else Ye=parseInt(U,10)};h.__private__.getZoomMode=function(){return Ye};var Nt,De=h.__private__.setPageMode=function(U){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(U)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+U+'" is not recognized.');dt=U};h.__private__.getPageMode=function(){return dt};var et=h.__private__.setLayoutMode=function(U){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(U)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+U+'" is not recognized.');Nt=U};h.__private__.getLayoutMode=function(){return Nt},h.__private__.setDisplayMode=h.setDisplayMode=function(U,ie,pe){return St(U),et(ie),De(pe),this};var ot={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(U){if(Object.keys(ot).indexOf(U)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ot[U]},h.__private__.getDocumentProperties=function(){return ot},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(U){for(var ie in ot)ot.hasOwnProperty(ie)&&U[ie]&&(ot[ie]=U[ie]);return this},h.__private__.setDocumentProperty=function(U,ie){if(Object.keys(ot).indexOf(U)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ot[U]=ie};var ht,mt,jt,ar,jn,fn={},pn={},Tn=[],zt={},In={},tn={},mn={},sr=null,Sn=0,nn=[],Jn=new BD(h),oc=e.hotfixes||[],Yi={},Do={},Es=[],rn=function U(ie,pe,je,Me,tt,st){if(!(this instanceof U))return new U(ie,pe,je,Me,tt,st);isNaN(ie)&&(ie=1),isNaN(pe)&&(pe=0),isNaN(je)&&(je=0),isNaN(Me)&&(Me=1),isNaN(tt)&&(tt=0),isNaN(st)&&(st=0),this._matrix=[ie,pe,je,Me,tt,st]};Object.defineProperty(rn.prototype,"sx",{get:function(){return this._matrix[0]},set:function(U){this._matrix[0]=U}}),Object.defineProperty(rn.prototype,"shy",{get:function(){return this._matrix[1]},set:function(U){this._matrix[1]=U}}),Object.defineProperty(rn.prototype,"shx",{get:function(){return this._matrix[2]},set:function(U){this._matrix[2]=U}}),Object.defineProperty(rn.prototype,"sy",{get:function(){return this._matrix[3]},set:function(U){this._matrix[3]=U}}),Object.defineProperty(rn.prototype,"tx",{get:function(){return this._matrix[4]},set:function(U){this._matrix[4]=U}}),Object.defineProperty(rn.prototype,"ty",{get:function(){return this._matrix[5]},set:function(U){this._matrix[5]=U}}),Object.defineProperty(rn.prototype,"a",{get:function(){return this._matrix[0]},set:function(U){this._matrix[0]=U}}),Object.defineProperty(rn.prototype,"b",{get:function(){return this._matrix[1]},set:function(U){this._matrix[1]=U}}),Object.defineProperty(rn.prototype,"c",{get:function(){return this._matrix[2]},set:function(U){this._matrix[2]=U}}),Object.defineProperty(rn.prototype,"d",{get:function(){return this._matrix[3]},set:function(U){this._matrix[3]=U}}),Object.defineProperty(rn.prototype,"e",{get:function(){return this._matrix[4]},set:function(U){this._matrix[4]=U}}),Object.defineProperty(rn.prototype,"f",{get:function(){return this._matrix[5]},set:function(U){this._matrix[5]=U}}),Object.defineProperty(rn.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(rn.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(rn.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(rn.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),rn.prototype.join=function(U){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(k).join(U)},rn.prototype.multiply=function(U){var ie=U.sx*this.sx+U.shy*this.shx,pe=U.sx*this.shy+U.shy*this.sy,je=U.shx*this.sx+U.sy*this.shx,Me=U.shx*this.shy+U.sy*this.sy,tt=U.tx*this.sx+U.ty*this.shx+this.tx,st=U.tx*this.shy+U.ty*this.sy+this.ty;return new rn(ie,pe,je,Me,tt,st)},rn.prototype.decompose=function(){var U=this.sx,ie=this.shy,pe=this.shx,je=this.sy,Me=this.tx,tt=this.ty,st=Math.sqrt(U*U+ie*ie),$t=(U/=st)*pe+(ie/=st)*je;pe-=U*$t,je-=ie*$t;var Lt=Math.sqrt(pe*pe+je*je);return $t/=Lt,U*(je/=Lt)<ie*(pe/=Lt)&&(U=-U,ie=-ie,$t=-$t,st=-st),{scale:new rn(st,0,0,Lt,0,0),translate:new rn(1,0,0,1,Me,tt),rotate:new rn(U,ie,-ie,U,0,0),skew:new rn(1,0,$t,1,0,0)}},rn.prototype.toString=function(U){return this.join(" ")},rn.prototype.inversed=function(){var U=this.sx,ie=this.shy,pe=this.shx,je=this.sy,Me=this.tx,tt=this.ty,st=1/(U*je-ie*pe),$t=je*st,Lt=-ie*st,gn=-pe*st,An=U*st;return new rn($t,Lt,gn,An,-$t*Me-gn*tt,-Lt*Me-An*tt)},rn.prototype.applyToPoint=function(U){var ie=U.x*this.sx+U.y*this.shx+this.tx,pe=U.x*this.shy+U.y*this.sy+this.ty;return new hc(ie,pe)},rn.prototype.applyToRectangle=function(U){var ie=this.applyToPoint(U),pe=this.applyToPoint(new hc(U.x+U.w,U.y+U.h));return new Is(ie.x,ie.y,pe.x-ie.x,pe.y-ie.y)},rn.prototype.clone=function(){var U=this.sx,ie=this.shy,pe=this.shx,je=this.sy,Me=this.tx,tt=this.ty;return new rn(U,ie,pe,je,Me,tt)},h.Matrix=rn;var us=h.matrixMult=function(U,ie){return ie.multiply(U)},io=new rn(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=io;var la=function(U,ie){if(!In[U]){var pe=(ie instanceof Mh?"Sh":"P")+(Object.keys(zt).length+1).toString(10);ie.id=pe,In[U]=pe,zt[pe]=ie,Jn.publish("addPattern",ie)}};h.ShadingPattern=Mh,h.TilingPattern=qm,h.addShadingPattern=function(U,ie){return T("addShadingPattern()"),la(U,ie),this},h.beginTilingPattern=function(U){T("beginTilingPattern()"),mc(U.boundingBox[0],U.boundingBox[1],U.boundingBox[2]-U.boundingBox[0],U.boundingBox[3]-U.boundingBox[1],U.matrix)},h.endTilingPattern=function(U,ie){T("endTilingPattern()"),ie.stream=be[z].join(` 969`),la(U,ie),Jn.publish("endTilingPattern",ie),Es.pop().restore()};var Ts,kr=h.__private__.newObject=function(){var U=ai();return hi(U,!0),U},ai=h.__private__.newObjectDeferred=function(){return X++,ne[X]=function(){return re},X},hi=function(U,ie){return ie=typeof ie=="boolean"&&ie,ne[U]=re,ie&&ue(U+" 0 obj"),U},wl=h.__private__.newAdditionalObject=function(){var U={objId:ai(),content:""};return he.push(U),U},lc=ai(),ao=ai(),Fo=h.__private__.decodeColorString=function(U){var ie=U.split(" ");if(ie.length!==2||ie[1]!=="g"&&ie[1]!=="G")ie.length!==5||ie[4]!=="k"&&ie[4]!=="K"||(ie=[(1-ie[0])*(1-ie[3]),(1-ie[1])*(1-ie[3]),(1-ie[2])*(1-ie[3]),"r"]);else{var pe=parseFloat(ie[0]);ie=[pe,pe,pe,"r"]}for(var je="#",Me=0;Me<3;Me++)je+=("0"+Math.floor(255*parseFloat(ie[Me])).toString(16)).slice(-2);return je},Xi=h.__private__.encodeColorString=function(U){var ie;typeof U=="string"&&(U={ch1:U});var pe=U.ch1,je=U.ch2,Me=U.ch3,tt=U.ch4,st=U.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof pe=="string"&&pe.charAt(0)!=="#"){var $t=new FX(pe);if($t.ok)pe=$t.toHex();else if(!/^\d*\.?\d*$/.test(pe))throw new Error('Invalid color "'+pe+'" passed to jsPDF.encodeColorString.')}if(typeof pe=="string"&&/^#[0-9A-Fa-f]{3}$/.test(pe)&&(pe="#"+pe[1]+pe[1]+pe[2]+pe[2]+pe[3]+pe[3]),typeof pe=="string"&&/^#[0-9A-Fa-f]{6}$/.test(pe)){var Lt=parseInt(pe.substr(1),16);pe=Lt>>16&255,je=Lt>>8&255,Me=255&Lt}if(je===void 0||tt===void 0&&pe===je&&je===Me)ie=typeof pe=="string"?pe+" "+st[0]:U.precision===2?P(pe/255)+" "+st[0]:R(pe/255)+" "+st[0];else if(tt===void 0||Sr(tt)==="object"){if(tt&&!isNaN(tt.a)&&tt.a===0)return["1.","1.","1.",st[1]].join(" ");ie=typeof pe=="string"?[pe,je,Me,st[1]].join(" "):U.precision===2?[P(pe/255),P(je/255),P(Me/255),st[1]].join(" "):[R(pe/255),R(je/255),R(Me/255),st[1]].join(" ")}else ie=typeof pe=="string"?[pe,je,Me,tt,st[2]].join(" "):U.precision===2?[P(pe),P(je),P(Me),P(tt),st[2]].join(" "):[R(pe),R(je),R(Me),R(tt),st[2]].join(" ");return ie},Os=h.__private__.getFilters=function(){return o},ds=h.__private__.putStream=function(U){var ie=(U=U||{}).data||"",pe=U.filters||Os(),je=U.alreadyAppliedFilters||[],Me=U.addLength1||!1,tt=ie.length,st=U.objectId,$t=function(Tr){return Tr};if(d!==null&&st===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");d!==null&&($t=Fi.encryptor(st,0));var Lt={};pe===!0&&(pe=["FlateEncode"]);var gn=U.additionalKeyValues||[],An=(Lt=Xt.API.processDataByFilters!==void 0?Xt.API.processDataByFilters(ie,pe):{data:ie,reverseChain:[]}).reverseChain+(Array.isArray(je)?je.join(" "):je.toString());if(Lt.data.length!==0&&(gn.push({key:"Length",value:Lt.data.length}),Me===!0&&gn.push({key:"Length1",value:tt})),An.length!=0)if(An.split("/").length-1==1)gn.push({key:"Filter",value:An});else{gn.push({key:"Filter",value:"["+An+"]"});for(var Hn=0;Hn<gn.length;Hn+=1)if(gn[Hn].key==="DecodeParms"){for(var gi=[],vr=0;vr<Lt.reverseChain.split("/").length-1;vr+=1)gi.push("null");gi.push(gn[Hn].value),gn[Hn].value="["+gi.join(" ")+"]"}}ue("<<");for(var or=0;or<gn.length;or++)ue("/"+gn[or].key+" "+gn[or].value);ue(">>"),Lt.data.length!==0&&(ue("stream"),ue($t(Lt.data)),ue("endstream"))},ru=h.__private__.putPage=function(U){var ie=U.number,pe=U.data,je=U.objId,Me=U.contentsObjId;hi(je,!0),ue("<</Type /Page"),ue("/Parent "+U.rootDictionaryObjId+" 0 R"),ue("/Resources "+U.resourceDictionaryObjId+" 0 R"),ue("/MediaBox ["+parseFloat(k(U.mediaBox.bottomLeftX))+" "+parseFloat(k(U.mediaBox.bottomLeftY))+" "+k(U.mediaBox.topRightX)+" "+k(U.mediaBox.topRightY)+"]"),U.cropBox!==null&&ue("/CropBox ["+k(U.cropBox.bottomLeftX)+" "+k(U.cropBox.bottomLeftY)+" "+k(U.cropBox.topRightX)+" "+k(U.cropBox.topRightY)+"]"),U.bleedBox!==null&&ue("/BleedBox ["+k(U.bleedBox.bottomLeftX)+" "+k(U.bleedBox.bottomLeftY)+" "+k(U.bleedBox.topRightX)+" "+k(U.bleedBox.topRightY)+"]"),U.trimBox!==null&&ue("/TrimBox ["+k(U.trimBox.bottomLeftX)+" "+k(U.trimBox.bottomLeftY)+" "+k(U.trimBox.topRightX)+" "+k(U.trimBox.topRightY)+"]"),U.artBox!==null&&ue("/ArtBox ["+k(U.artBox.bottomLeftX)+" "+k(U.artBox.bottomLeftY)+" "+k(U.artBox.topRightX)+" "+k(U.artBox.topRightY)+"]"),typeof U.userUnit=="number"&&U.userUnit!==1&&ue("/UserUnit "+U.userUnit),Jn.publish("putPage",{objId:je,pageContext:nn[ie],pageNumber:ie,page:pe}),ue("/Contents "+Me+" 0 R"),ue(">>"),ue("endobj");var tt=pe.join(` 970`);return _===j&&(tt+=` 971Q`),hi(Me,!0),ds({data:tt,filters:Os(),objectId:Me}),ue("endobj"),je},so=h.__private__.putPages=function(){var U,ie,pe=[];for(U=1;U<=Sn;U++)nn[U].objId=ai(),nn[U].contentsObjId=ai();for(U=1;U<=Sn;U++)pe.push(ru({number:U,data:be[U],objId:nn[U].objId,contentsObjId:nn[U].contentsObjId,mediaBox:nn[U].mediaBox,cropBox:nn[U].cropBox,bleedBox:nn[U].bleedBox,trimBox:nn[U].trimBox,artBox:nn[U].artBox,userUnit:nn[U].userUnit,rootDictionaryObjId:lc,resourceDictionaryObjId:ao}));hi(lc,!0),ue("<</Type /Pages");var je="/Kids [";for(ie=0;ie<Sn;ie++)je+=pe[ie]+" 0 R ";ue(je+"]"),ue("/Count "+Sn),ue(">>"),ue("endobj"),Jn.publish("postPutPages")},cc=function(U){Jn.publish("putFont",{font:U,out:ue,newObject:kr,putStream:ds}),U.isAlreadyPutted!==!0&&(U.objectNumber=kr(),ue("<<"),ue("/Type /Font"),ue("/BaseFont /"+Im(U.postScriptName)),ue("/Subtype /Type1"),typeof U.encoding=="string"&&ue("/Encoding /"+U.encoding),ue("/FirstChar 32"),ue("/LastChar 255"),ue(">>"),ue("endobj"))},iu=function(U){U.objectNumber=kr();var ie=[];ie.push({key:"Type",value:"/XObject"}),ie.push({key:"Subtype",value:"/Form"}),ie.push({key:"BBox",value:"["+[k(U.x),k(U.y),k(U.x+U.width),k(U.y+U.height)].join(" ")+"]"}),ie.push({key:"Matrix",value:"["+U.matrix.toString()+"]"});var pe=U.pages[1].join(` 972`);ds({data:pe,additionalKeyValues:ie,objectId:U.objectNumber}),ue("endobj")},au=function(U,ie){ie||(ie=21);var pe=kr(),je=(function(st,$t){var Lt,gn=[],An=1/($t-1);for(Lt=0;Lt<1;Lt+=An)gn.push(Lt);if(gn.push(1),st[0].offset!=0){var Hn={offset:0,color:st[0].color};st.unshift(Hn)}if(st[st.length-1].offset!=1){var gi={offset:1,color:st[st.length-1].color};st.push(gi)}for(var vr="",or=0,Tr=0;Tr<gn.length;Tr++){for(Lt=gn[Tr];Lt>st[or+1].offset;)or++;var Gr=st[or].offset,Vr=(Lt-Gr)/(st[or+1].offset-Gr),ua=st[or].color,po=st[or+1].color;vr+=te(Math.round((1-Vr)*ua[0]+Vr*po[0]).toString(16))+te(Math.round((1-Vr)*ua[1]+Vr*po[1]).toString(16))+te(Math.round((1-Vr)*ua[2]+Vr*po[2]).toString(16))}return vr.trim()})(U.colors,ie),Me=[];Me.push({key:"FunctionType",value:"0"}),Me.push({key:"Domain",value:"[0.0 1.0]"}),Me.push({key:"Size",value:"["+ie+"]"}),Me.push({key:"BitsPerSample",value:"8"}),Me.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Me.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ds({data:je,additionalKeyValues:Me,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:pe}),ue("endobj"),U.objectNumber=kr(),ue("<< /ShadingType "+U.type),ue("/ColorSpace /DeviceRGB");var tt="/Coords ["+k(parseFloat(U.coords[0]))+" "+k(parseFloat(U.coords[1]))+" ";U.type===2?tt+=k(parseFloat(U.coords[2]))+" "+k(parseFloat(U.coords[3])):tt+=k(parseFloat(U.coords[2]))+" "+k(parseFloat(U.coords[3]))+" "+k(parseFloat(U.coords[4]))+" "+k(parseFloat(U.coords[5])),ue(tt+="]"),U.matrix&&ue("/Matrix ["+U.matrix.toString()+"]"),ue("/Function "+pe+" 0 R"),ue("/Extend [true true]"),ue(">>"),ue("endobj")},jd=function(U,ie){var pe=ai(),je=kr();ie.push({resourcesOid:pe,objectOid:je}),U.objectNumber=je;var Me=[];Me.push({key:"Type",value:"/Pattern"}),Me.push({key:"PatternType",value:"1"}),Me.push({key:"PaintType",value:"1"}),Me.push({key:"TilingType",value:"1"}),Me.push({key:"BBox",value:"["+U.boundingBox.map(k).join(" ")+"]"}),Me.push({key:"XStep",value:k(U.xStep)}),Me.push({key:"YStep",value:k(U.yStep)}),Me.push({key:"Resources",value:pe+" 0 R"}),U.matrix&&Me.push({key:"Matrix",value:"["+U.matrix.toString()+"]"}),ds({data:U.stream,additionalKeyValues:Me,objectId:U.objectNumber}),ue("endobj")},wv=function(U){for(var ie in U.objectNumber=kr(),ue("<<"),U)switch(ie){case"opacity":ue("/ca "+P(U[ie]));break;case"stroke-opacity":ue("/CA "+P(U[ie]))}ue(">>"),ue("endobj")},Er=function(U){hi(U.resourcesOid,!0),ue("<<"),ue("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var ie in ue("/Font <<"),fn)fn.hasOwnProperty(ie)&&(f===!1||f===!0&&p.hasOwnProperty(ie))&&ue("/"+ie+" "+fn[ie].objectNumber+" 0 R");ue(">>")})(),(function(){if(Object.keys(zt).length>0){for(var ie in ue("/Shading <<"),zt)zt.hasOwnProperty(ie)&&zt[ie]instanceof Mh&&zt[ie].objectNumber>=0&&ue("/"+ie+" "+zt[ie].objectNumber+" 0 R");Jn.publish("putShadingPatternDict"),ue(">>")}})(),(function(ie){if(Object.keys(zt).length>0){for(var pe in ue("/Pattern <<"),zt)zt.hasOwnProperty(pe)&&zt[pe]instanceof h.TilingPattern&&zt[pe].objectNumber>=0&&zt[pe].objectNumber<ie&&ue("/"+pe+" "+zt[pe].objectNumber+" 0 R");Jn.publish("putTilingPatternDict"),ue(">>")}})(U.objectOid),(function(){if(Object.keys(tn).length>0){var ie;for(ie in ue("/ExtGState <<"),tn)tn.hasOwnProperty(ie)&&tn[ie].objectNumber>=0&&ue("/"+ie+" "+tn[ie].objectNumber+" 0 R");Jn.publish("putGStateDict"),ue(">>")}})(),(function(){for(var ie in ue("/XObject <<"),Yi)Yi.hasOwnProperty(ie)&&Yi[ie].objectNumber>=0&&ue("/"+ie+" "+Yi[ie].objectNumber+" 0 R");Jn.publish("putXobjectDict"),ue(">>")})(),ue(">>"),ue("endobj")},zp=function(U){pn[U.fontName]=pn[U.fontName]||{},pn[U.fontName][U.fontStyle]=U.id},_d=function(U,ie,pe,je,Me){var tt={id:"F"+(Object.keys(fn).length+1).toString(10),postScriptName:U,fontName:ie,fontStyle:pe,encoding:je,isStandardFont:Me||!1,metadata:{}};return Jn.publish("addFont",{font:tt,instance:this}),fn[tt.id]=tt,zp(tt),tt.id},fs=h.__private__.pdfEscape=h.pdfEscape=function(U,ie){return(function(pe,je){var Me,tt,st,$t,Lt,gn,An,Hn,gi;if(st=(je=je||{}).sourceEncoding||"Unicode",Lt=je.outputEncoding,(je.autoencode||Lt)&&fn[ht].metadata&&fn[ht].metadata[st]&&fn[ht].metadata[st].encoding&&($t=fn[ht].metadata[st].encoding,!Lt&&fn[ht].encoding&&(Lt=fn[ht].encoding),!Lt&&$t.codePages&&(Lt=$t.codePages[0]),typeof Lt=="string"&&(Lt=$t[Lt]),Lt)){for(An=!1,gn=[],Me=0,tt=pe.length;Me<tt;Me++)(Hn=Lt[pe.charCodeAt(Me)])?gn.push(String.fromCharCode(Hn)):gn.push(pe[Me]),gn[Me].charCodeAt(0)>>8&&(An=!0);pe=gn.join("")}for(Me=pe.length;An===void 0&&Me!==0;)pe.charCodeAt(Me-1)>>8&&(An=!0),Me--;if(!An)return pe;for(gn=je.noBOM?[]:[254,255],Me=0,tt=pe.length;Me<tt;Me++){if((gi=(Hn=pe.charCodeAt(Me))>>8)>>8)throw new Error("Character at position "+Me+" of string '"+pe+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");gn.push(gi),gn.push(Hn-(gi<<8))}return String.fromCharCode.apply(void 0,gn)})(U,ie).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},uc=h.__private__.beginPage=function(U){be[++Sn]=[],nn[Sn]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(U[0]),topRightY:Number(U[1])}},su(Sn),He(be[z])},$p=function(U,ie){var pe,je,Me;switch(n=ie||n,typeof U=="string"&&(pe=y(U.toLowerCase()),Array.isArray(pe)&&(je=pe[0],Me=pe[1])),Array.isArray(U)&&(je=U[0]*mt,Me=U[1]*mt),isNaN(je)&&(je=i[0],Me=i[1]),(je>14400||Me>14400)&&(Rr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),je=Math.min(14400,je),Me=Math.min(14400,Me)),i=[je,Me],n.substr(0,1)){case"l":Me>je&&(i=[Me,je]);break;case"p":je>Me&&(i=[Me,je])}uc(i),Nv(an),ue(Uo),du!==0&&ue(du+" J"),fo!==0&&ue(fo+" j"),Jn.publish("addPage",{pageNumber:Sn})},Nd=function(U){U>0&&U<=Sn&&(be.splice(U,1),nn.splice(U,1),Sn--,z>Sn&&(z=Sn),this.setPage(z))},su=function(U){U>0&&U<=Sn&&(z=U)},hs=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return be.length-1},Up=function(U,ie,pe){var je,Me=void 0;return pe=pe||{},U=U!==void 0?U:fn[ht].fontName,ie=ie!==void 0?ie:fn[ht].fontStyle,je=U.toLowerCase(),pn[je]!==void 0&&pn[je][ie]!==void 0?Me=pn[je][ie]:pn[U]!==void 0&&pn[U][ie]!==void 0?Me=pn[U][ie]:pe.disableWarning===!1&&Rr.warn("Unable to look up font label for font '"+U+"', '"+ie+"'. Refer to getFontList(
972) for available fonts."),Me||pe.noFallback||(Me=pn.times[ie])==null&&(Me=pn.times.normal),Me},pi=h.__private__.putInfo=function(){var U=kr(),ie=function(je){return je};for(var pe in d!==null&&(ie=Fi.encryptor(U,0)),ue("<<"),ue("/Producer ("+fs(ie("jsPDF "+Xt.version))+")"),ot)ot.hasOwnProperty(pe)&&ot[pe]&&ue("/"+pe.substr(0,1).toUpperCase()+pe.substr(1)+" ("+fs(ie(ot[pe]))+")");ue("/CreationDate ("+fs(ie(V))+")"),ue(">>"),ue("endobj")},Sd=h.__private__.putCatalog=function(U){var ie=(U=U||{}).rootDictionaryObjId||lc;switch(kr(),ue("<<"),ue("/Type /Catalog"),ue("/Pages "+ie+" 0 R"),Ye||(Ye="fullwidth"),Ye){case"fullwidth":ue("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ue("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ue("/OpenAction [3 0 R /Fit]");break;case"original":ue("/OpenAction [3 0 R /XYZ null null 1]");break;default:var pe=""+Ye;pe.substr(pe.length-1)==="%"&&(Ye=parseInt(Ye)/100),typeof Ye=="number"&&ue("/OpenAction [3 0 R /XYZ null null "+P(Ye)+"]")}switch(Nt||(Nt="continuous"),Nt){case"continuous":ue("/PageLayout /OneColumn");break;case"single":ue("/PageLayout /SinglePage");break;case"two":case"twoleft":ue("/PageLayout /TwoColumnLeft");break;case"tworight":ue("/PageLayout /TwoColumnRight")}dt&&ue("/PageMode /"+dt),Jn.publish("putCatalog"),ue(">>"),ue("endobj")},jv=h.__private__.putTrailer=function(){ue("trailer"),ue("<<"),ue("/Size "+(X+1)),ue("/Root "+X+" 0 R"),ue("/Info "+(X-1)+" 0 R"),d!==null&&ue("/Encrypt "+Fi.oid+" 0 R"),ue("/ID [ <"+H+"> <"+H+"> ]"),ue(">>")},mi=h.__private__.putHeader=function(){ue("%PDF-"+x),ue("%ºÃˆ ")},ou=h.__private__.putXRef=function(){var U="0000000000";ue("xref"),ue("0 "+(X+1)),ue("0000000000 65535 f ");for(var ie=1;ie<=X;ie++)typeof ne[ie]=="function"?ue((U+ne[ie]()).slice(-10)+" 00000 n "):ne[ie]!==void 0?ue((U+ne[ie]).slice(-10)+" 00000 n "):ue("0000000000 00000 n ")},ps=h.__private__.buildDocument=function(){var U;X=0,re=0,le=[],ne=[],he=[],lc=ai(),ao=ai(),He(le),Jn.publish("buildDocument"),mi(),so(),(function(){Jn.publish("putAdditionalObjects");for(var pe=0;pe<he.length;pe++){var je=he[pe];hi(je.objId,!0),ue(je.content),ue("endobj")}Jn.publish("postPutAdditionalObjects")})(),U=[],(function(){for(var pe in fn)fn.hasOwnProperty(pe)&&(f===!1||f===!0&&p.hasOwnProperty(pe))&&cc(fn[pe])})(),(function(){var pe;for(pe in tn)tn.hasOwnProperty(pe)&&wv(tn[pe])})(),(function(){for(var pe in Yi)Yi.hasOwnProperty(pe)&&iu(Yi[pe])})(),(function(pe){var je;for(je in zt)zt.hasOwnProperty(je)&&(zt[je]instanceof Mh?au(zt[je]):zt[je]instanceof qm&&jd(zt[je],pe))})(U),Jn.publish("putResources"),U.forEach(Er),Er({resourcesOid:ao,objectOid:Number.MAX_SAFE_INTEGER}),Jn.publish("postPutResources"),d!==null&&(Fi.oid=kr(),ue("<<"),ue("/Filter /Standard"),ue("/V "+Fi.v),ue("/R "+Fi.r),ue("/U <"+Fi.toHexString(Fi.U)+">
972"),ue("/O <"+Fi.toHexString(Fi.O)+">"),ue("/P "+Fi.P),ue(">>"),ue("endobj")),pi(),Sd();var ie=re;return ou(),jv(),ue("startxref"),ue(""+ie),ue("%%EOF"),He(be[z]),le.join(` 973`)},Bo=h.__private__.getBlob=function(U){return new Blob([ut(U)],{type:"application/pdf"})},dc=function(U){for(;U.firstChild;)U.removeChild(U.firstChild)},ms=function(U){var ie,pe=U.document,je=pe.documentElement,Me=pe.head,tt=pe.body;return Me||(Me=pe.createElement("head"),je.appendChild(Me)),tt||(tt=pe.createElement("body"),je.appendChild(tt)),dc(Me),dc(tt),(ie=pe.createElement("style")).appendChild(pe.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),Me.appendChild(ie),{document:pe,body:tt}},Ad=h.output=h.__private__.output=(Ts=function(U,ie){switch(typeof(ie=ie||{})=="string"?ie={filename:ie}:ie.filename=ie.filename||"generated.pdf",U){case void 0:return ps();case"save":h.save(ie.filename);break;case"arraybuffer":return ut(ps());case"blob":return Bo(ps());case"bloburi":case"bloburl":if(xn.URL!==void 0&&typeof xn.URL.createObjectURL=="function")return xn.URL&&xn.URL.createObjectURL(Bo(ps()))||void 0;Rr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var pe="",je=ps();try{pe=MD(je)}catch{pe=MD(unescape(encodeURIComponent(je)))}return"data:application/pdf;filename="+encodeURIComponent(ie.filename)+";base64,"+pe;case"pdfobjectnewwindow":if(Object.prototype.toString.call(xn)==="[object Window]"){var Me="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",tt=!ie.pdfObjectUrl;tt||(Me=ie.pdfObjectUrl);var st=xn.open();if(st!==null){var $t=ms(st),Lt=$t.document.createElement("script"),gn=this;Lt.src=Me,tt&&(Lt.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",Lt.crossOrigin="anonymous"),Lt.onload=function(){st.PDFObject.embed(gn.output("dataurlstring"),ie)},$t.body.appendChild(Lt)}return st}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(xn)==="[object Window]"){var An=ie.pdfJsUrl||"examples/PDF.js/web/viewer.html",Hn=xn.open();if(Hn!==null){var gi=ms(Hn),vr=gi.document.createElement("iframe"),or=An.indexOf("?")===-1?"?":"&";gn=this,vr.id="pdfViewer",vr.width="500px",vr.height="400px",vr.src=An+or+"file=&downloadName="+encodeURIComponent(ie.filename),vr.onload=function(){Hn.document.title=ie.filename,vr.contentWindow.PDFViewerApplication.open(gn.output("bloburl"))},gi.body.appendChild(vr)}return Hn}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(xn)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Tr=xn.open();if(Tr!==null){var Gr=ms(Tr),Vr=Gr.document.createElement("iframe");Vr.src=this.output("datauristring",ie),Gr.body.appendChild(Vr),Tr.document.title=ie.filename}if(Tr||typeof safari>"u")return Tr;break;case"datauri":case"dataurl":return xn.document.location.href=this.output("datauristring",ie);default:return null}},Ts.foo=function(){try{return Ts.apply(this,arguments)}catch(pe){var U=pe.stack||"";~U.indexOf(" at ")&&(U=U.split(" at ")[1]);var ie="Error in function "+U.split(` 974`)[0].split("<")[0]+": "+pe.message;if(!xn.console)throw new Error(ie);xn.console.error(ie,pe),xn.alert&&alert(ie)}},Ts.foo.bar=Ts,Ts.foo),oo=function(U){return Array.isArray(oc)===!0&&oc.indexOf(U)>-1};switch(r){case"pt":mt=1;break;case"mm":mt=72/25.4;break;case"cm":mt=72/2.54;break;case"in":mt=72;break;case"px":mt=oo("px_scaling")==1?.75:96/72;break;case"pc":case"em":mt=12;break;case"ex":mt=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);mt=r}var Fi=null;$(),J();var kd=h.__private__.getPageInfo=h.getPageInfo=function(U){if(isNaN(U)||U%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:nn[U].objId,pageNumber:U,pageContext:nn[U]}}
vendor: 9,261 bytes, lines 974-988
974,lu=h.__private__.getPageInfoByObjId=function(U){if(isNaN(U)||U%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var ie in nn)if(nn[ie].objId===U)break;return kd(ie)},_v=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:nn[z].objId,pageNumber:z,pageContext:nn[z]}};h.addPage=function(){return $p.apply(this,arguments),this},h.setPage=function(){return su.apply(this,arguments),He.call(this,be[z]),this},h.insertPage=function(U){return this.addPage(),this.movePage(z,U),this},h.movePage=function(U,ie){var pe,je;if(U>ie){pe=be[U],je=nn[U];for(var Me=U;Me>ie;Me--)be[Me]=be[Me-1],nn[Me]=nn[Me-1];be[ie]=pe,nn[ie]=je,this.setPage(ie)}else if(U<ie){pe=be[U],je=nn[U];for(var tt=U;tt<ie;tt++)be[tt]=be[tt+1],nn[tt]=nn[tt+1];be[ie]=pe,nn[ie]=je,this.setPage(ie)}return this},h.deletePage=function(){return Nd.apply(this,arguments),this},h.__private__.text=h.text=function(U,ie,pe,je,Me){var tt,st,$t,Lt,gn,An,Hn,gi,vr,or=(je=je||{}).scope||this;if(typeof U=="number"&&typeof ie=="number"&&(typeof pe=="string"||Array.isArray(pe))){var Tr=pe;pe=ie,ie=U,U=Tr}if(arguments[3]instanceof rn==0?($t=arguments[4],Lt=arguments[5],Sr(Hn=arguments[3])==="object"&&Hn!==null||(typeof $t=="string"&&(Lt=$t,$t=null),typeof Hn=="string"&&(Lt=Hn,Hn=null),typeof Hn=="number"&&($t=Hn,Hn=null),je={flags:Hn,angle:$t,align:Lt})):(T("The transform parameter of text() with a Matrix value"),vr=Me),isNaN(ie)||isNaN(pe)||U==null)throw new Error("Invalid arguments passed to jsPDF.text");if(U.length===0)return or;var Gr,Vr="",ua=typeof je.lineHeightFactor=="number"?je.lineHeightFactor:uo,po=or.internal.scaleFactor;function th(yr){return yr=yr.split(" ").join(Array(je.TabLen||9).join(" ")),fs(yr,Hn)}function mu(yr){for(var xr,Wr=yr.concat(),ki=[],Al=Wr.length;Al--;)typeof(xr=Wr.shift())=="string"?ki.push(xr):Array.isArray(yr)&&(xr.length===1||xr[1]===void 0&&xr[2]===void 0)?ki.push(xr[0]):ki.push([xr[0],xr[1],xr[2]]);return ki}function gu(yr,xr){var Wr;if(typeof yr=="string")Wr=xr(yr)[0];else if(Array.isArray(yr)){for(var ki,Al,Ho=yr.concat(),xc=[],bc=Ho.length;bc--;)typeof(ki=Ho.shift())=="string"?xc.push(xr(ki)[0]):Array.isArray(ki)&&typeof ki[0]=="string"&&(Al=xr(ki[0],ki[1],ki[2]),xc.push([Al[0],Al[1],Al[2]]));Wr=xc}return Wr}var Nl=!1,vu=!0;if(typeof U=="string")Nl=!0;else if(Array.isArray(U)){var Od=U.concat();st=[];for(var Rd,da=Od.length;da--;)(typeof(Rd=Od.shift())!="string"||Array.isArray(Rd)&&typeof Rd[0]!="string")&&(vu=!1);Nl=vu}if(Nl===!1)throw new Error('Type of text must be string or Array. "'+U+'" is not recognized.');typeof U=="string"&&(U=U.match(/[\r?\n]/)?U.split(/\r\n|\r|\n/g):[U]);var yu=we/or.internal.scaleFactor,xu=yu*(ua-1);switch(je.baseline){case"bottom":pe-=xu;break;case"top":pe+=yu-xu;break;case"hanging":pe+=yu-2*xu;break;case"middle":pe+=yu/2-xu}if((An=je.maxWidth||0)>0&&(typeof U=="string"?U=or.splitTextToSize(U,An):Object.prototype.toString.call(U)==="[object Array]"&&(U=U.reduce(function(yr,xr){return yr.concat(or.splitTextToSize(xr,An))},[]))),tt={text:U,x:ie,y:pe,options:je,mutex:{pdfEscape:fs,activeFontKey:ht,fonts:fn,activeFontSize:we}},Jn.publish("preProcessText",tt),U=tt.text,$t=(je=tt.options).angle,vr instanceof rn==0&&$t&&typeof $t=="number"){$t*=Math.PI/180,je.rotationDirection===0&&($t=-$t),_===j&&($t=-$t);var nh=Math.cos($t),Ms=Math.sin($t);vr=new rn(nh,Ms,-Ms,nh,0,0)}else $t&&$t instanceof rn&&(vr=$t);_!==j||vr||(vr=io),(gn=je.charSpace||Ed)!==void 0&&(Vr+=k(q(gn))+` Tc 975`,this.setCharSpace(this.getCharSpace()||0)),(gi=je.horizontalScale)!==void 0&&(Vr+=k(100*gi)+` Tz 976`),je.lang;var Ai=-1,Yp=je.renderingMode!==void 0?je.renderingMode:je.stroke,bu=or.internal.getCurrentPageInfo().pageContext;switch(Yp){case 0:case!1:case"fill":Ai=0;break;case 1:case!0:case"stroke":Ai=1;break;case 2:case"fillThenStroke":Ai=2;break;case 3:case"invisible":Ai=3;break;case 4:case"fillAndAddForClipping":Ai=4;break;case 5:case"strokeAndAddPathForClipping":Ai=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ai=6;break;case 7:case"addToPathForClipping":Ai=7}var rh=bu.usedRenderingMode!==void 0?bu.usedRenderingMode:-1;Ai!==-1?Vr+=Ai+` Tr 977`:rh!==-1&&(Vr+=`0 Tr 978`),Ai!==-1&&(bu.usedRenderingMode=Ai),Lt=je.align||"left";var gs,gc=we*ua,Id=or.internal.pageSize.getWidth(),mo=fn[ht];gn=je.charSpace||Ed,An=je.maxWidth||0,Hn=Object.assign({autoencode:!0,noBOM:!0},je.flags);var wu=[],ih=function(yr){return or.getStringUnitWidth(yr,{font:mo,charSpace:gn,fontSize:we,doKerning:!1})*we/po};if(Object.prototype.toString.call(U)==="[object Array]"){var Aa;st=mu(U),Lt!=="left"&&(gs=st.map(ih));var ka,ju=0;if(Lt==="right"){ie-=gs[0],U=[],da=st.length;for(var Ds=0;Ds<da;Ds++)Ds===0?(ka=$o(ie),Aa=Rs(pe)):(ka=q(ju-gs[Ds]),Aa=-gc),U.push([st[Ds],ka,Aa]),ju=gs[Ds]}else if(Lt==="center"){ie-=gs[0]/2,U=[],da=st.length;for(var Fs=0;Fs<da;Fs++)Fs===0?(ka=$o(ie),Aa=Rs(pe)):(ka=q((ju-gs[Fs])/2),Aa=-gc),U.push([st[Fs],ka,Aa]),ju=gs[Fs]}else if(Lt==="left"){U=[],da=st.length;for(var Ld=0;Ld<da;Ld++)U.push(st[Ld])}else if(Lt==="justify"&&mo.encoding==="Identity-H"){U=[],da=st.length,An=An!==0?An:Id;for(var Vo=0,vi=0;vi<da;vi++)if(Aa=vi===0?Rs(pe):-gc,ka=vi===0?$o(ie):Vo,vi<da-1){var Xp=q((An-gs[vi])/(st[vi].split(" ").length-1)),Bs=st[vi].split(" ");U.push([Bs[0]+" ",ka,Aa]),Vo=0;for(var vs=1;vs<Bs.length;vs++){var vc=(ih(Bs[vs-1]+" "+Bs[vs])-ih(Bs[vs]))*po+Xp;vs==Bs.length-1?U.push([Bs[vs],vc,0]):U.push([Bs[vs]+" ",vc,0]),Vo-=vc}}else U.push([st[vi],ka,Aa]);U.push(["",Vo,0])}else{if(Lt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(U=[],da=st.length,An=An!==0?An:Id,vi=0;vi<da;vi++){Aa=vi===0?Rs(pe):-gc,ka=vi===0?$o(ie):0;var Md=st[vi].split(" ").length-1,Dd=Md>0?(An-gs[vi])/Md:0;vi<da-1?wu.push(k(q(Dd))):wu.push(0),U.push([st[vi],ka,Aa])}}}(typeof je.R2L=="boolean"?je.R2L:Be)===!0&&(U=gu(U,function(yr,xr,Wr){return[yr.split("").reverse().join(""),xr,Wr]})),tt={text:U,x:ie,y:pe,options:je,mutex:{pdfEscape:fs,activeFontKey:ht,fonts:fn,activeFontSize:we}},Jn.publish("postProcessText",tt),U=tt.text,Gr=tt.mutex.isHex||!1;var Fd=fn[ht].encoding;Fd!=="WinAnsiEncoding"&&Fd!=="StandardEncoding"||(U=gu(U,function(yr,xr,Wr){return[th(yr),xr,Wr]})),st=mu(U),U=[];for(var _u,Nu,yc,Sl=Array.isArray(st[0])?1:0,Bi="",Wo=function(yr,xr,Wr){var ki="";return Wr instanceof rn?(Wr=typeof je.angle=="number"?us(Wr,new rn(1,0,0,1,yr,xr)):us(new rn(1,0,0,1,yr,xr),Wr),_===j&&(Wr=us(new rn(1,0,0,-1,0,0),Wr)),ki=Wr.join(" ")+` Tm 979`):ki=k(yr)+" "+k(xr)+` Td 980`,ki},Qi=0;Qi<st.length;Qi++){switch(Bi="",Sl){case 1:yc=(Gr?"<":"(")+st[Qi][0]+(Gr?">":")"),_u=parseFloat(st[Qi][1]),Nu=parseFloat(st[Qi][2]);break;case 0:yc=(Gr?"<":"(")+st[Qi]+(Gr?">":")"),_u=$o(ie),Nu=Rs(pe)}wu!==void 0&&wu[Qi]!==void 0&&(Bi=wu[Qi]+` Tw 981`),Qi===0?U.push(Bi+Wo(_u,Nu,vr)+yc):Sl===0?U.push(Bi+yc):Sl===1&&U.push(Bi+Wo(_u,Nu,vr)+yc)}U=Sl===0?U.join(` Tj 982T* `):U.join(` Tj 983`),U+=` Tj 984`;var go=`BT 985/`;return go+=ht+" "+we+` Tf 986`,go+=k(we*ua)+` TL 987`,go+=Sa+` 988`,go+=Vr,go+=U,ue(go+="ET"),p[ht]=!0,or};var Zf=h.__private__.clip=h.clip=function(U){return ue(U==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return Zf("evenodd")},h.__private__.discardPath=h.discardPath=function(){return ue("n"),this};var Ln=h.__private__.isValidStyle=function(U){var ie=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(U)!==-1&&(ie=!0),ie};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(U){return Ln(U)&&(u=U),this};var Jf=h.__private__.getStyle=h.getStyle=function(U){var ie=u;switch(U){case"D":case"S":ie="S";break;case"F":ie="f";break;case"FD":case"DF":ie="B";break;case"f":case"f*":case"B":case"B*":ie=U}return ie},cu=h.close=function(){return ue("h"),this};h.stroke=function(){return ue("S"),this},h.fill=function(U){return fc("f",U),this},h.fillEvenOdd=function(U){return fc("f*",U),this},h.fillStroke=function(U){return fc("B",U),this},h.fillStrokeEvenOdd=function(U){return fc("B*",U),this};var fc=function(U,ie){Sr(ie)==="object"?Vp(ie,U):ue(U)},Pd=function(U){U===null||_===j&&U===void 0||(U=Jf(U),ue(U))};function Gp(U,ie,pe,je,Me){var tt=new qm(ie||this.boundingBox,pe||this.xStep,je||this.yStep,this.gState,Me||this.matrix);tt.stream=this.stream;var st=U+"$$"+this.cloneIndex+++"$$";return la(st,tt),tt}var Vp=function(U,ie){var pe=In[U.key],je=zt[pe];if(je instanceof Mh)ue("q"),ue(eh(ie)),je.gState&&h.setGState(je.gState),ue(U.matrix.toString()+" cm"),ue("/"+pe+" sh"),ue("Q");else if(je instanceof qm){var Me=new rn(1,0,0,-1,0,ho());U.matrix&&(Me=Me.multiply(U.matrix||io),pe=Gp.call(je,U.key,U.boundingBox,U.xStep,U.yStep,Me).id),ue("q"),ue("/Pattern cs"),ue("/"+pe+" scn"),je.gState&&h.setGState(je.gState),ue(ie),ue("Q")}},eh=function(U){switch(U){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"}},lo=h.moveTo=function(U,ie){return ue(k(q(U))+" "+k(M(ie))+" m"),this},co=h.lineTo=function(U,ie){return ue(k(q(U))+" "+k(M(ie))+" l"),this},Na=h.curveTo=function(U,ie,pe,je,Me,tt){return ue([k(q(U)),k(M(ie)),k(q(pe)),k(M(je)),k(q(Me)),k(M(tt)),"c"].join(" ")),this};h.__private__.line=h.line=function(U,ie,pe,je,Me){if(isNaN(U)||isNaN(ie)||isNaN(pe)||isNaN(je)||!Ln(Me))throw new Error("Invalid arguments passed to
988jsPDF.line");return _===w?this.lines([[pe-U,je-ie]],U,ie,[1,1],Me||"S"):this.lines([[pe-U,je-ie]],U,ie,[1,1]).stroke()},h.__private__.lines=h.lines=function(U,ie,pe,je,Me,tt){var st,$t,Lt,gn,An,Hn,gi,vr,or,Tr,Gr,Vr;if(typeof U=="number"&&(Vr=pe,pe=ie,ie=U,U=Vr),je=je||[1,1],tt=tt||!1,isNaN(ie)||isNaN(pe)||!Array.isArray(U)||!Array.isArray(je)||!Ln(Me)||typeof tt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(lo(ie,pe),st=je[0],$t=je[1],gn=U.length,Tr=ie,Gr=pe,Lt=0;Lt<gn;Lt++)(An=U[Lt]).length===2?(Tr=An[0]*st+Tr,Gr=An[1]*$t+Gr,co(Tr,Gr)):(Hn=An[0]*st+Tr,gi=An[1]*$t+Gr,vr=An[2]*st+Tr,or=An[3]*$t+Gr,Tr=An[4]*st+Tr,Gr=An[5]*$t+Gr,Na(Hn,gi,vr,or,Tr,Gr));return tt&&cu(),Pd(Me),this},h.path=function(U){for(var ie=0;ie<U.length;ie++){var pe=U[ie],je=pe.c;switch(pe.op){case"m":lo(je[0],je[1]);break;case"l":co(je[0],je[1]);break;case"c":Na.apply(this,je);break;case"h":cu()}}return this},h.__private__.rect=h.rect=function(U,ie,pe,je,Me){if(isNaN(U)||isNaN(ie)||isNaN(pe)||isNaN(je)||!Ln(Me))throw new Error("Invalid arguments passed to jsPDF.rect");return _===w&&(je=-je),ue([k(q(U)),k(M(ie)),k(q(pe)),k(q(je)),"re"].join(" ")),Pd(Me),this},h.__private__.triangle=h.triangle=function(U,ie,pe,je,Me,tt,st){if(isNaN(U)||isNaN(ie)||isNaN(pe)||isNaN(je)||isNaN(Me)||isNaN(tt)||!Ln(st))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[pe-U,je-ie],[Me-pe,tt-je],[U-Me,ie-tt]],U,ie,[1,1],st,!0),this},h.__private__.roundedRect=h.roundedRect=function(U,ie,pe,je,Me,tt,st){if(isNaN(U)||isNaN(ie)||isNaN(pe)||isNaN(je)||isNaN(Me)||isNaN(tt)||!Ln(st))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var $t=4/3*(Math.SQRT2-1);return Me=Math.min(Me,.5*pe),tt=Math.min(tt,.5*je),this.lines([[pe-2*Me,0],[Me*$t,0,Me,tt-tt*$t,Me,tt],[0,je-2*tt],[0,tt*$t,-Me*$t,tt,-Me,tt],[2*Me-pe,0],[
vendor: 49,315 bytes, lines 988-1007
988-Me*$t,0,-Me,-tt*$t,-Me,-tt],[0,2*tt-je],[0,-tt*$t,Me*$t,-tt,Me,-tt]],U+Me,ie,[1,1],st,!0),this},h.__private__.ellipse=h.ellipse=function(U,ie,pe,je,Me){if(isNaN(U)||isNaN(ie)||isNaN(pe)||isNaN(je)||!Ln(Me))throw new Error("Invalid arguments passed to jsPDF.ellipse");var tt=4/3*(Math.SQRT2-1)*pe,st=4/3*(Math.SQRT2-1)*je;return lo(U+pe,ie),Na(U+pe,ie-st,U+tt,ie-je,U,ie-je),Na(U-tt,ie-je,U-pe,ie-st,U-pe,ie),Na(U-pe,ie+st,U-tt,ie+je,U,ie+je),Na(U+tt,ie+je,U+pe,ie+st,U+pe,ie),Pd(Me),this},h.__private__.circle=h.circle=function(U,ie,pe,je){if(isNaN(U)||isNaN(ie)||isNaN(pe)||!Ln(je))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(U,ie,pe,pe,je)},h.setFont=function(U,ie,pe){return pe&&(ie=E(ie,pe)),ht=Up(U,ie,{disableWarning:!1}),this};var qo=h.__private__.getFont=h.getFont=function(){return fn[Up.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var U,ie,pe={};for(U in pn)if(pn.hasOwnProperty(U))for(ie in pe[U]=[],pn[U])pn[U].hasOwnProperty(ie)&&pe[U].push(ie);return pe},h.addFont=function(U,ie,pe,je,Me){var tt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&tt.indexOf(arguments[3])!==-1?Me=arguments[3]:arguments[3]&&tt.indexOf(arguments[3])==-1&&(pe=E(pe,je)),_d.call(this,U,ie,pe,Me=Me||"Identity-H")};var uo,an=e.lineWidth||.200025,zo=h.__private__.getLineWidth=h.getLineWidth=function(){return an},Nv=h.__private__.setLineWidth=h.setLineWidth=function(U){return an=U,ue(k(q(U))+" w"),this};h.__private__.setLineDash=Xt.API.setLineDash=Xt.API.setLineDashPattern=function(U,ie){if(U=U||[],ie=ie||0,isNaN(ie)||!Array.isArray(U))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return U=U.map(function(pe){return k(q(pe))}).join(" "),ie=k(q(ie)),ue("["+U+"] "+ie+" d"),this};var Wp=h.__private__.getLineHeight=h.getLineHeight=function(){return we*uo};h.__private__.getLineHeight=h.getLineHeight=function(){return we*uo};var uu=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(U){return typeof(U=U||1.15)=="number"&&(uo=U),this},Sv=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return uo};uu(e.lineHeight);var $o=h.__private__.getHorizontalCoordinate=function(U){return q(U)},Rs=h.__private__.getVerticalCoordinate=function(U){return _===j?U:nn[z].mediaBox.topRightY-nn[z].mediaBox.bottomLeftY-q(U)},Hp=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(U){return k($o(U))},Av=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(U){return k(Rs(U))},Uo=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return Fo(Uo)},h.__private__.setStrokeColor=h.setDrawColor=function(U,ie,pe,je){return Uo=Xi({ch1:U,ch2:ie,ch3:pe,ch4:je,pdfColorType:"draw",precision:2}),ue(Uo),this};var jl=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return Fo(jl)},h.__private__.setFillColor=h.setFillColor=function(U,ie,pe,je){return jl=Xi({ch1:U,ch2:ie,ch3:pe,ch4:je,pdfColorType:"fill",precision:2}),ue(jl),this};var Sa=e.textColor||"0 g",Cd=h.__private__.getTextColor=h.getTextColor=function(){return Fo(Sa)};h.__private__.setTextColor=h.setTextColor=function(U,ie,pe,je){return Sa=Xi({ch1:U,ch2:ie,ch3:pe,ch4:je,pdfColorType:"text",precision:3}),this};var Ed=e.charSpace,kv=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(Ed||0)};h.__private__.setCharSpace=h.setCharSpace=function(U){if(isNaN(U))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ed=U,this};var du=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(U){var ie=h.CapJoinStyles[U];if(ie===void 0)throw new Error("Line cap style of '"+U+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return du=ie,ue(ie+" J"),this};var fo=0;h.__private__.setLineJoin=h.setLineJoin=function(U){var ie=h.CapJoinStyles[U];if(ie===void 0)throw new Error("Line join style of '"+U+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return fo=ie,ue(ie+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(U){if(U=U||0,isNaN(U))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ue(k(q(U))+" M"),this},h.GState=ww,h.setGState=function(U){(U=typeof U=="string"?tn[mn[U]]:fu(null,U)).equals(sr)||(ue("/"+U.id+" gs"),sr=U)};var fu=function(U,ie){if(!U||!mn[U]){var pe=!1;for(var je in tn)if(tn.hasOwnProperty(je)&&tn[je].equals(ie)){pe=!0;break}if(pe)ie=tn[je];else{var Me="GS"+(Object.keys(tn).length+1).toString(10);tn[Me]=ie,ie.id=Me}return U&&(mn[U]=ie.id),Jn.publish("addGState",ie),ie}};h.addGState=function(U,ie){return fu(U,ie),this},h.saveGraphicsState=function(){return ue("q"),Tn.push({key:ht,size:we,color:Sa}),this},h.restoreGraphicsState=function(){ue("Q");var U=Tn.pop();return ht=U.key,we=U.size,Sa=U.color,sr=null,this},h.setCurrentTransformationMatrix=function(U){return ue(U.toString()+" cm"),this},h.comment=function(U){return ue("#"+U),this};var hc=function(U,ie){var pe=U||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return pe},set:function(tt){isNaN(tt)||(pe=parseFloat(tt))}});var je=ie||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return je},set:function(tt){isNaN(tt)||(je=parseFloat(tt))}});var Me="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Me},set:function(tt){Me=tt.toString()}}),this},Is=function(U,ie,pe,je){hc.call(this,U,ie),this.type="rect";var Me=pe||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Me},set:function(st){isNaN(st)||(Me=parseFloat(st))}});var tt=je||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return tt},set:function(st){isNaN(st)||(tt=parseFloat(st))}}),this},pc=function(){this.page=Sn,this.currentPage=z,this.pages=be.slice(0),this.pagesContext=nn.slice(0),this.x=jt,this.y=ar,this.matrix=jn,this.width=pu(z),this.height=Go(z),this.outputDestination=ze,this.id="",this.objectNumber=-1};pc.prototype.restore=function(){Sn=this.page,z=this.currentPage,nn=this.pagesContext,be=this.pages,jt=this.x,ar=this.y,jn=this.matrix,Ls(z,this.width),ca(z,this.height),ze=this.outputDestination};var mc=function(U,ie,pe,je,Me){Es.push(new pc),Sn=z=0,be=[],jt=U,ar=ie,jn=Me,uc([pe,je])};for(var hu in h.beginFormObject=function(U,ie,pe,je,Me){return mc(U,ie,pe,je,Me),this},h.endFormObject=function(U){return(function(ie){if(Do[ie])Es.pop().restore();else{var pe=new pc,je="Xo"+(Object.keys(Yi).length+1).toString(10);pe.id=je,Do[ie]=je,Yi[je]=pe,Jn.publish("addFormObject",pe),Es.pop().restore()}})(U),this},h.doFormObject=function(U,ie){var pe=Yi[Do[U]];return ue("q"),ue(ie.toString()+" cm"),ue("/"+pe.id+" Do"),ue("Q"),this},h.getFormObject=function(U){var ie=Yi[Do[U]];return{x:ie.x,y:ie.y,width:ie.width,height:ie.height,matrix:ie.matrix}},h.save=function(U,ie){return U=U||"generated.pdf",(ie=ie||{}).returnPromise=ie.returnPromise||!1,ie.returnPromise===!1?(Rh(Bo(ps()),U),typeof Rh.unload=="function"&&xn.setTimeout&&setTimeout(Rh.unload,911),this):new Promise(function(pe,je){try{var Me=Rh(Bo(ps()),U);typeof Rh.unload=="function"&&xn.setTimeout&&setTimeout(Rh.unload,911),pe(Me)}catch(tt){je(tt.message)}})},Xt.API)Xt.API.hasOwnProperty(hu)&&(hu==="events"&&Xt.API.events.length?(function(U,ie){var pe,je,Me;for(Me=ie.length-1;Me!==-1;Me--)pe=ie[Me][0],je=ie[Me][1],U.subscribe.apply(U,[pe].concat(typeof je=="function"?[je]:je))})(Jn,Xt.API.events):h[hu]=Xt.API[hu]);function pu(U){return nn[U].mediaBox.topRightX-nn[U].mediaBox.bottomLeftX}function Ls(U,ie){nn[U].mediaBox.topRightX=ie+nn[U].mediaBox.bottomLeftX}function Go(U){return nn[U].mediaBox.topRightY-nn[U].mediaBox.bottomLeftY}function ca(U,ie){nn[U].mediaBox.topRightY=ie+nn[U].mediaBox.bottomLeftY}var _l=h.getPageWidth=function(U){return pu(U=U||z)/mt},Td=h.setPageWidth=function(U,ie){Ls(U,ie*mt)},ho=h.getPageHeight=function(U){return Go(U=U||z)/mt},Kp=h.setPageHeight=function(U,ie){ca(U,ie*mt)};return h.internal={pdfEscape:fs,getStyle:Jf,getFont:qo,getFontSize:We,getCharSpace:kv,getTextColor:Cd,getLineHeight:Wp,getLineHeightFactor:Sv,getLineWidth:zo,write:Ue,getHorizontalCoordinate:$o,getVerticalCoordinate:Rs,getCoordinateString:Hp,getVerticalCoordinateString:Av,collections:{},newObject:kr,newAdditionalObject:wl,newObjectDeferred:ai,newObjectDeferredBegin:hi,getFilters:Os,putStream:ds,events:Jn,scaleFactor:mt,pageSize:{getWidth:function(){return _l(z)},setWidth:function(U){Td(z,U)},getHeight:function(){return ho(z)},setHeight:function(U){Kp(z,U)}},encryptionOptions:d,encryption:Fi,getEncryptor:function(U){return d!==null?Fi.encryptor(U,0):function(ie){return ie}},output:Ad,getNumberOfPages:hs,get pages(){return be},out:ue,f2:P,f3:R,getPageInfo:kd,getPageInfoByObjId:lu,getCurrentPageInfo:_v,getPDFVersion:v,Point:hc,Rectangle:Is,Matrix:rn,hasHotfix:oo},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return _l(z)},set:function(U){Td(z,U)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return ho(z)},set:function(U){Kp(z,U)},enumerable:!0,configurable:!0}),(function(U){for(var ie=0,pe=Ee.length;ie<pe;ie++){var je=_d.call(this,U[ie][0],U[ie][1],U[ie][2],Ee[ie][3],!0);f===!1&&(p[je]=!0);var Me=U[ie][0].split("-");zp({id:je,fontName:Me[0],fontStyle:Me[1]||""})}Jn.publish("addFonts",{fonts:fn,dictionary:pn})}).call(h,Ee),ht="F1",$p(i,n),Jn.publish("initialized"),h}Rm.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},Rm.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Rm.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("")},Rm.prototype.processOwnerPassword=function(e,t){return YC(KC(t).substr(0,5),e)},Rm.prototype.encryptor=function(e,t){var n=KC(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return YC(n,r)}},ww.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||Sr(e)!==Sr(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},Xt.API={events:[]},Xt.version="4.2.1";var _i=Xt.API,j3=1,Mp=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},km=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},vp=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)})},En=function(e){return e.toFixed(2)},lf=function(e){return e.toFixed(5)};_i.__acroform__={};var no=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},qD=function(e){return e*j3},Pc=function(e){var t=new $X,n=Vt.internal.getHeight(e)||0,r=Vt.internal.getWidth(e)||0;return t.BBox=[0,0,Number(En(r)),Number(En(n))],t},XAe=_i.__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},QAe=_i.__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)},ZAe=_i.__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},Ri=_i.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return ZAe(e,t-1)},Ii=_i.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return XAe(e,t-1)},Li=_i.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return QAe(e,t-1)},JAe=_i.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,i=e[0],s=e[1],o=e[2],l=e[3],c={};return c.lowerLeft_X=n(i)||0,c.lowerLeft_Y=r(s+l)||0,c.upperRight_X=n(i+o)||0,c.upperRight_Y=r(s)||0,[Number(En(c.lowerLeft_X)),Number(En(c.lowerLeft_Y)),Number(En(c.upperRight_X)),Number(En(c.upperRight_Y))]},eke=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=XC(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+" "+En(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=Pc(e);return s.scope=e.scope,s.stream=t.join(` 989`),s}},XC=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(P){return P.split(` 990`)}):i.map(function(P){return[P]});var s=n,o=Vt.internal.getHeight(e)||0;o=o<0?-o:o;var l=Vt.internal.getWidth(e)||0;l=l<0?-l:l;var c=function(P,R,q){if(P+1<i.length){var M=R+" "+i[P+1][0];return Xb(M,e,q).width<=l-4}return!1};s++;e:for(;s>0;){t="",s--;var u,d,f=Xb("3",e,s).height,p=e.multiline?o-s:(o-f)/2,h=p+=2,x=0,v=0,g=0;if(s<=0){t=`(...) Tj 991`,t+="% Width of Text: "+Xb(t,e,s=12).width+", FieldWidth:"+l+` 992`;break}for(var y="",w=0,j=0;j<i.length;j++)if(i.hasOwnProperty(j)){var _=!1;if(i[j].length!==1&&g!==i[j].length-1){if((f+2)*(w+2)+2>o)continue e;y+=i[j][g],_=!0,v=j,j--}else{y=(y+=i[j][g]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var N=parseInt(j),A=c(N,y,s),E=j>=i.length-1;if(A&&!E){y+=" ",g=0;continue}if(A||E){if(E)v=N;else if(e.multiline&&(f+2)*(w+2)+2>o)continue e}else{if(!e.multiline||(f+2)*(w+2)+2>o)continue e;v=N}}for(var k="",T=x;T<=v;T++){var D=i[T];if(e.multiline){if(T===v){k+=D[g]+" ",g=(g+1)%D.length;continue}if(T===x){k+=D[D.length-1]+" ";continue}}k+=D[0]+" "}switch(k=k.substr(k.length-1)==" "?k.substr(0,k.length-1):k,d=Xb(k,e,s).width,e.textAlign){case"right":u=l-d-2;break;case"center":u=(l-d)/2;break;default:u=2}t+=En(u)+" "+En(h)+` Td 993`,t+="("+Mp(k)+`) Tj 994`,t+=-En(u)+` 0 Td 995`,h=-(s+2),d=0,x=_?v:v+1,w++,y=""}break}return r.text=t,r.fontSize=s,r},Xb=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}},tke={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},nke=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)},rke=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(ic.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(tke)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");j3=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new UX,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&&nke(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 l=r[o],c=[],u=l.Rect;if(l.Rect&&(l.Rect=JAe(l.Rect,i)),i.internal.newObjectDeferredBegin(l.objId,!0),l.DA=Vt.createDefaultAppearanceStream(l),Sr(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(c=l.getKeyValueListForStream()),l.Rect=u,l.hasAppearanceStream&&!l.appearanceStreamContent){var d=eke(l);c.push({key:"AP",value:"<</N "+d+">>"}),i.internal.acroformPlugin.xForms.push(d)}if(l.appearanceStreamContent){var f="";for(var p in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(p)){var h=l.appearanceStreamContent[p];if(f+="/"+p+" ",f+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var o in h)if(h.hasOwnProperty(o)){var x=h[o];typeof x=="function"&&(x=x.call(i,l)),f+="/"+o+" "+x+" ",i.internal.acroformPlugin.xForms.indexOf(x)>=0||i.internal.acroformPlugin.xForms.push(x)}}else typeof(x=h)=="function"&&(x=x.call(i,l)),f+="/"+o+" "+x,i.internal.acroformPlugin.xForms.indexOf(x)>=0||i.internal.acroformPlugin.xForms.push(x);f+=">>"}c.push({key:"AP",value:`<< 996`+f+">>"})}i.internal.putStream({additionalKeyValues:c,objectId:l.objId}),i.internal.out("endobj")}s&&(function(v,g){for(var y in v)if(v.hasOwnProperty(y)){var w=y,j=v[y];g.internal.newObjectDeferredBegin(j.objId,!0),Sr(j)==="object"&&typeof j.putStream=="function"&&j.putStream(),delete v[w]}})(i.internal.acroformPlugin.xForms,i)})(n,e)}),e.internal.acroformPlugin.isInitialized=!0}},zX=_i.__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+=" "),Sr(e[s])){case"boolean":case"number":case"object":i+=e[s].toString();break;case"string":e[s].substr(0,1)==="/"?i+="/"+vp(e[s].substr(1)):(t!==void 0&&n&&(r=n.internal.getEncryptor(t)),i+="("+Mp(r(e[s].toString()))+")")}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},cS=function(e,t,n){var r=function(i){return i};return t!==void 0&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+Mp(r(e))+")"},Dc=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})};Dc.prototype.toString=function(){return this.objId+" 0 R"},Dc.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Dc.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:zX(i,this.objId,this.scope)}):i instanceof Dc?(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 $X=function(){Dc.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}})};no($X,Dc);var UX=function(){Dc.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)),"("+Mp(n(e))+")"}},set:function(n){e=n}})};no(UX,Dc);var ic=function e(){Dc.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');t=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ri(t,3)},set:function(y){y?this.F=Ii(t,3):this.F=Li(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');n=y}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(y){r=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(y){r[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(y){r[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(y){r[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(y){r[3]=y}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=y;break;default:throw new Error('Invalid value "'+y+'" 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 jw)return;s="FieldObject"+e.FieldNum++}var y=function(w){return w};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+Mp(y(s))+")"},set:function(y){s=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(y){s=y}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(y){o=y}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(y){l=y}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(y){c=y}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return u===void 0?50/j3:u},set:function(y){u=y}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(y){d=y}});var f="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!f||this instanceof jw||this instanceof rp))return cS(f,this.objId,this.scope)},set:function(y){y=y.toString(),f=y}});var p=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof ba==0?cS(p,this.objId,this.scope):p},set:function(y){y=y.toString(),p=this instanceof ba==0?y.substr(0,1)==="("?km(y.substr(1,y.length-2)):km(y):y}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ba==1?km(p.substr(1,p.length-1)):p},set:function(y){y=y.toString(),p=this instanceof ba==1?"/"+vp(y):y}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof ba==0?cS(h,this.objId,this.scope):h},set:function(y){y=y.toString(),h=this instanceof ba==0?y.substr(0,1)==="("?km(y.substr(1,y.length-2)):km(y):y}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ba==1?km(h.substr(1,h.length-1)):h},set:function(y){y=y.toString(),h=this instanceof ba==1?"/"+vp(y):y}}),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 x,v=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return v},set:function(y){y=!!y,v=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(x)return x},set:function(y){x=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,1)},set:function(y){y?this.Ff=Ii(this.Ff,1):this.Ff=Li(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,2)},set:function(y){y?this.Ff=Ii(this.Ff,2):this.Ff=Li(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,3)},set:function(y){y?this.Ff=Ii(this.Ff,3):this.Ff=Li(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(g!==null)return g},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');g=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(g){case 0:default:y="left";break;case 1:y="center";break;case 2:y="right"}return y},configurable:!0,enumerable:!0,set:function(y){switch(y){case"right":case 2:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};no(ic,Dc);var Xm=function(){ic.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 zX(t,this.objId,this.scope)},set:function(n){var r,i;i=[],typeof(r=n)=="string"&&(i=(function(s,o,l){l||(l=1);for(var c,u=[];c=o.exec(s);)u.push(c[l]);return u})(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!!Ri(this.Ff,18)},set:function(n){n?this.Ff=Ii(this.Ff,18):this.Ff=Li(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=Ii(this.Ff,19):this.Ff=Li(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,20)},set:function(n){n?(this.Ff=Ii(this.Ff,20),t.sort()):this.Ff=Li(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,22)},set:function(n){n?this.Ff=Ii(this.Ff,22):this.Ff=Li(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,23)},set:function(n){n?this.Ff=Ii(this.Ff,23):this.Ff=Li(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,27)},set:function(n){n?this.Ff=Ii(this.Ff,27):this.Ff=Li(this.Ff,27)}}),this.hasAppearanceStream=!1};no(Xm,ic);var Qm=function(){Xm.call(this),this.fontName="helvetica",this.combo=!1};no(Qm,Xm);var Zm=function(){Qm.call(this),this.combo=!0};no(Zm,Qm);var L1=function(){Zm.call(this),this.edit=!0};no(L1,Zm);var ba=function(){ic.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,15)},set:function(n){n?this.Ff=Ii(this.Ff,15):this.Ff=Li(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,16)},set:function(n){n?this.Ff=Ii(this.Ff,16):this.Ff=Li(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,17)},set:function(n){n?this.Ff=Ii(this.Ff,17):this.Ff=Li(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,26)},set:function(n){n?this.Ff=Ii(this.Ff,26):this.Ff=Li(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+" ("+Mp(n(t[r]))+")");return i.push(">>"),i.join(` 997`)}},set:function(n){Sr(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="/"+vp(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+vp(n)}})};no(ba,ic);var M1=function(){ba.call(this),this.pushButton=!0};no(M1,ba);var Jm=function(){ba.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:[]}})};no(Jm,ba);var jw=function(){var e,t;ic.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(l){return l};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var s,o=[];for(s in o.push("<<"),r)o.push("/"+s+" ("+Mp(i(r[s]))+")");return o.push(">>"),o.join(` 998`)},set:function(i){Sr(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="/"+vp(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="/"+vp(s)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Vt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};no(jw,ic),Jm.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()}},Jm.prototype.createOption=function(e){var t=new jw;return t.Parent=this,t.optionName=e,this.Kids.push(t),ike.call(this.scope,t),t};var D1=function(){ba.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Vt.CheckBox.createAppearanceStream()};no(D1,ba);var rp=function(){ic.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,13)},set:function(t){t?this.Ff=Ii(this.Ff,13):this.Ff=Li(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,21)},set:function(t){t?this.Ff=Ii(this.Ff,21):this.Ff=Li(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,23)},set:function(t){t?this.Ff=Ii(this.Ff,23):this.Ff=Li(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,24)},set:function(t){t?this.Ff=Ii(this.Ff,24):this.Ff=Li(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,25)},set:function(t){t?this.Ff=Ii(this.Ff,25):this.Ff=Li(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,26)},set:function(t){t?this.Ff=Ii(this.Ff,26):this.Ff=Li(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}})};no(rp,ic);var F1=function(){rp.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ri(this.Ff,14)},set:function(e){e?this.Ff=Ii(this.Ff,14):this.Ff=Li(this.Ff,14)}}),this.password=!0};no(F1,rp);var Vt={CheckBox:{createAppearanceStream:function(){return{N:{On:Vt.CheckBox.YesNormal},D:{On:Vt.CheckBox.YesPushDown,Off:Vt.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Pc(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=XC(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+En(Vt.internal.getWidth(e))+" "+En(Vt.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+En(s.fontSize)+" Tf "+i),n.push("BT"),n.push(s.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join(` 999`),t},YesNormal:function(e){var t=Pc(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=Vt.internal.getHeight(e),o=Vt.internal.getWidth(e),l=XC(e,e.caption);return i.push("1 g"),i.push("0 0 "+En(o)+" "+En(s)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+En(o-1)+" "+En(s-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+En(l.fontSize)+" Tf "+r),i.push(l.text),i.push("ET"),i.push("Q"),t.stream=i.join(` 1000`),t},OffPushDown:function(e){var t=Pc(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+En(Vt.internal.getWidth(e))+" "+En(Vt.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(` 1001`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Vt.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Vt.RadioButton.Circle.YesNormal,t.D[e]=Vt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Pc(e);t.scope=e.scope;var n=[],r=Vt.internal.getWidth(e)<=Vt.internal.getHeight(e)?Vt.internal.getWidth(e)/4:Vt.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Vt.internal.Bezier_C,s=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+lf(Vt.internal.getWidth(e)/2)+" "+lf(Vt.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(` 1002`),t},YesPushDown:function(e){var t=Pc(e);t.scope=e.scope;var n=[],r=Vt.internal.getWidth(e)<=Vt.internal.getHeight(e)?Vt.internal.getWidth(e)/4:Vt.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),s=Number((i*Vt.internal.Bezier_C).toFixed(5)),o=Number((r*Vt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+lf(Vt.internal.getWidth(e)/2)+" "+lf(Vt.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 "+lf(Vt.internal.getWidth(e)/2)+" "+lf(Vt.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(` 1003`),t},OffPushDown:function(e){var t=Pc(e);t.scope=e.scope;var n=[],r=Vt.internal.getWidth(e)<=Vt.internal.getHeight(e)?Vt.internal.getWidth(e)/4:Vt.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),s=Number((i*Vt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+lf(Vt.internal.getWidth(e)/2)+" "+lf(Vt.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(` 1004`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Vt.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Vt.RadioButton.Cross.YesNormal,t.D[e]=Vt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Pc(e);t.scope=e.scope;var n=[],r=Vt.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+En(Vt.internal.getWidth(e)-2)+" "+En(Vt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(En(r.x1.x)+" "+En(r.x1.y)+" m"),n.push(En(r.x2.x)+" "+En(r.x2.y)+" l"),n.push(En(r.x4.x)+" "+En(r.x4.y)+" m"),n.push(En(r.x3.x)+" "+En(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(` 1005`),t},YesPushDown:function(e){var t=Pc(e);t.scope=e.scope;var n=Vt.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+En(Vt.internal.getWidth(e))+" "+En(Vt.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+En(Vt.internal.getWidth(e)-2)+" "+En(Vt.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(En(n.x1.x)+" "+En(n.x1.y)+" m"),r.push(En(n.x2.x)+" "+En(n.x2.y)+" l"),r.push(En(n.x4.x)+" "+En(n.x4.y)+" m"),r.push(En(n.x3.x)+" "+En(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(` 1006`),t},OffPushDown:function(e){var t=Pc(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+En(Vt.internal.getWidth(e))+" "+En(Vt.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(` 1007`),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}};Vt.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Vt.internal.getWidth(e),n=Vt.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}}}},Vt.internal.getWidth=function(e){var t=0;return Sr(e)==="object"&&(t=qD(e.Rect[2])),t},Vt.internal.getHeight=function(e){var t=0;return Sr(e)==="object"&&(t=qD(e.Rect[3])),t};var ike=_i.addField=function(e){if(rke(this,e),!(e instanceof ic))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};_i.AcroFormChoiceField=Xm,_i.AcroFormListBox=Qm,_i.AcroFormComboBox=Zm,_i.AcroFormEditBox=L1,_i.AcroFormButton=ba,_i.AcroFormPushButton=M1,_i.AcroFormRadioButton=Jm,_i.AcroFormCheckBox=D1,_i.AcroFormTextField=rp,_i.AcroFormPasswordField=F1,_i.AcroFormAppearance=Vt,_i.AcroForm={ChoiceField:Xm,ListBox:Qm,ComboBox:Zm,EditBox:L1,Button:ba,PushButton:M1,RadioButton:Jm,CheckBox:D1,TextField:rp,PasswordField:F1,Appearance:Vt},Xt.AcroForm={ChoiceField:Xm,ListBox:Qm,ComboBox:Zm,EditBox:L1,Button:ba,PushButton:M1,RadioButton:Jm,CheckBox:D1,TextField:rp,PasswordField:F1,Appearance:Vt};Xt.AcroForm;function GX(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(P,R){var q,M,V,H,Z,J=n;if((R=R||n)==="RGBA"||P.data!==void 0&&P.data instanceof Uint8ClampedArray&&"height"in P&&"width"in P)return"RGBA";if(A(P))for(Z in r)for(V=r[Z],q=0;q<V.length;q+=1){for(H=!0,M=0;M<V[q].length;M+=1)if(V[q][M]!==void 0&&V[q][M]!==P[M]){H=!1;break}if(H===!0){J=Z;break}}else for(Z in r)for(V=r[Z],q=0;q<V.length;q+=1){for(H=!0,M=0;M<V[q].length;M+=1)if(V[q][M]!==void 0&&V[q][M]!==P.charCodeAt(M)){H=!1;break}if(H===!0){J=Z;break}}return J===n&&R!==n&&(J=R),J},s=function P(R){for(var q=this.internal.write,M=this.internal.putStream,V=(0,this.internal.getFilters)();V.indexOf("FlateEncode")!==-1;)V.splice(V.indexOf("FlateEncode"),1);R.objectId=this.internal.newObject();var H=[];if(H.push({key:"Type",value:"/XObject"}),H.push({key:"Subtype",value:"/Image"}),H.push({key:"Width",value:R.width}),H.push({key:"Height",value:R.height}),R.colorSpace===y.INDEXED?H.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(R.palette.length/3-1)+" "+("sMask"in R&&R.sMask!==void 0?R.objectId+2:R.objectId+1)+" 0 R]"}):(H.push({key:"ColorSpace",value:"/"+R.colorSpace}),R.colorSpace===y.DEVICE_CMYK&&H.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),H.push({key:"BitsPerComponent",value:R.bitsPerComponent}),"decodeParameters"in R&&R.decodeParameters!==void 0&&H.push({key:"DecodeParms",value:"<<"+R.decodeParameters+">>"}),"transparency"in R&&Array.isArray(R.transparency)&&R.transparency.length>0){for(var Z="",J=0,K=R.transparency.length;J<K;J++)Z+=R.transparency[J]+" "+R.transparency[J]+" ";H.push({key:"Mask",value:"["+Z+"]"})}R.sMask!==void 0&&H.push({key:"SMask",value:R.objectId+1+" 0 R"});var F=R.filter!==void 0?["/"+R.filter]:void 0;if(M({data:R.data,additionalKeyValues:H,alreadyAppliedFilters:F,objectId:R.objectId}),q("endobj"),"sMask"in R&&R.sMask!==void 0){var $,B=($=R.sMaskBitsPerComponent)!==null&&$!==void 0?$:R.bitsPerComponent,z={width:R.width,height:R.height,colorSpace:"DeviceGray",bitsPerComponent:B,data:R.sMask};"filter"in R&&(z.decodeParameters="/Predictor ".concat(R.predictor," /Colors 1 /BitsPerComponent ").concat(B," /Columns ").concat(R.width),z.filter=R.filter),P.call(this,z)}if(R.colorSpace===y.INDEXED){var ee=this.internal.newObject();M({data:k(new Uint8Array(R.palette)),objectId:ee}),q("endobj")}},o=function(){var P=this.internal.collections[t+"images"];for(var R in P)s.call(this,P[R])},l=function(){var P,R=this.internal.collections[t+"images"],q=this.internal.write;for(var M in R)q("/I"+(P=R[M]).index,P.objectId,"0","R")},c=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",l))},u=function(){var P=this.internal.collections[t+"images"];return c.call(this),P},d=function(){return Object.keys(this.internal.collections[t+"images"]).length},f=function(P){return typeof e["process"+P.toUpperCase()]=="function"},p=function(P){return Sr(P)==="object"&&P.nodeType===1},h=function(P,R){if(P.nodeName==="IMG"&&P.hasAttribute("src")){var q=""+P.getAttribute("src");if(q.indexOf("data:image/")===0)return I1(unescape(q).split("base64,").pop());var M=e.loadFile(q,!0);if(M!==void 0)return M}if(P.nodeName==="CANVAS"){if(P.width===0||P.height===0)throw new Error("Given canvas must have data. Canvas width: "+P.width+", height: "+P.height);var V;switch(R){case"PNG":V="image/png";break;case"WEBP":V="image/webp";break;default:V="image/jpeg"}return I1(P.toDataURL(V,1).split("base64,").pop())}},x=function(P){var R=this.internal.collections[t+"images"];if(R){for(var q in R)if(P===R[q].alias)return R[q]}},v=function(P,R,q){return P||R||(P=-96,R=-96),P<0&&(P=-1*q.width*72/P/this.internal.scaleFactor),R<0&&(R=-1*q.height*72/R/this.internal.scaleFactor),P===0&&(P=R*q.width/q.height),R===0&&(R=P*q.height/q.width),[P,R]},g=function(P,R,q,M,V,H){var Z=v.call(this,q,M,V),J=this.internal.getCoordinateString,K=this.internal.getVerticalCoordinateString,F=u.call(this);if(q=Z[0],M=Z[1],F[V.index]=V,H){H*=Math.PI/180;var $=Math.cos(H),B=Math.sin(H),z=function(te){return te.toFixed(4)},ee=[z($),z(B),z(-1*B),z($),0,0,"cm"]}this.internal.write("q"),H?(this.internal.write([1,"0","0",1,J(P),K(R+M),"cm"].join(" ")),this.internal.write(ee.join(" ")),this.internal.write([J(q),"0","0",J(M),"0","0","cm"].join(" "))):this.internal.write([J(q),"0","0",J(M),J(P),K(R+M),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+V.index+" Do"),this.internal.write("Q")},y=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 w=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},j=e.__addimage__.sHashCode=function(P){var R,q,M=0;if(typeof P=="string")for(q=P.length,R=0;R<q;R++)M=(M<<5)-M+P.charCodeAt(R),M|=0;else if(A(P))for(q=P.byteLength/2,R=0;R<q;R++)M=(M<<5)-M+P[R],M|=0;return M},_=e.__addimage__.validateStringAsBase64=function(P){(P=P||"").toString().trim();var R=!0;return P.length===0&&(R=!1),P.length%4!=0&&(R=!1),/^[A-Za-z0-9+/]+$/.test(P.substr(0,P.length-2))===!1&&(R=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(P.substr(-2))===!1&&(R=!1),R},N=e.__addimage__.extractImageFromDataUrl=function(P){if(P==null||!(P=P.trim()).startsWith("data:"))return null;var R=P.indexOf(",");return R<0?null:P.substring(0,R).trim().endsWith("base64")?P.substring(R+1):null};e.__addimage__.isArrayBuffer=function(P){return P instanceof ArrayBuffer};var A=e.__addimage__.isArrayBufferView=function(P){return P instanceof Int8Array||P instanceof Uint8Array||P instanceof Uint8ClampedArray||P instanceof Int16Array||P instanceof Uint16Array||P instanceof Int32Array||P instanceof Uint32Array||P instanceof Float32Array||P instanceof Float64Array},E=e.__addimage__.binaryStringToUint8Array=function(P){for(var R=P.length,q=new Uint8Array(R),M=0;M<R;M++)q[M]=P.charCodeAt(M);return q},k=e.__addimage__.arrayBufferToBinaryString=function(P){for(var R="",q=A(P)?P:new Uint8Array(P),M=0;M<q.length;M+=8192)R+=String.fromCharCode.apply(null,q.subarray(M,M+8192));return R};e.addImage=function(){var P,R,q,M,V,H,Z,J,K;if(typeof arguments[1]=="number"?(R=n,q=arguments[1],M=arguments[2],V=arguments[3],H=arguments[4],Z=arguments[5],J=arguments[6],K=arguments[7]):(R=arguments[1],q=arguments[2],M=arguments[3],V=arguments[4],H=arguments[5],Z=arguments[6],J=arguments[7],K=arguments[8]),Sr(P=arguments[0])==="object"&&!p(P)&&"imageData"in P){var F=P;P=F.imageData,R=F.format||R||n,q=F.x||q||0,M=F.y||M||0,V=F.w||F.width||V,H=F.h||F.height||H,Z=F.alias||Z,J=F.compression||J,K=F.rotation||F.angle||K}var $=this.internal.getFilters();if(J===void 0&&$.indexOf("FlateEncode")!==-1&&(J="SLOW"),isNaN(q)||isNaN(M))throw new Error("Invalid coordinates passed to
1007jsPDF.addImage");c.call(this);var B=T.call(this,P,R,Z,J);return g.call(this,q,M,V,H,B,K),this};var T=function(P,R,q,M){var V,H,Z;if(typeof P=="string"&&i(P)===n){P=unescape(P);var J=D(P,!1);(J!==""||(J=e.loadFile(P,!0))!==void 0)&&(P=J)}if(p(P)&&(P=h(P,R)),R=i(P,R),!f(R))throw new Error("addImage does not support files of type '"+R+"', please ensure that a plugin for '"+R+"' support is added.");if(((Z=q)==null||Z.length===0)&&(q=(function(K){return typeof K=="string"||A(K)?j(K):A(K.data)?j(K.data):null})(P)),(V=x.call(this,q))||(P instanceof Uint8Array||R==="RGBA"||(H=P,P=E(P)),V=this["process"+R.toUpperCase()](P,d.call(this),q,(function(K){return K&&typeof K=="string"&&(K=K.toUpperCase()),K in e.image_compression?K:w.NONE})(M),H)),!V)throw new Error("An unknown error occurred whilst processing the image.");return V},D=e.__addimage__.convertBase64ToBinaryString=function(P,R){R=typeof R!="boolean"||R;var q,M="";if(typeof P=="string"){var V;q=(V=N(P))!==null&&V!==void 0?V:P;try{M=I1(q)}catch(H){if(R)throw _(q)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+H.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return M};e.getImageProperties=function(P){var R,q,M="";if(p(P)&&(P=h(P)),typeof P=="string"&&i(P)===n&&((M=D(P,!1))===""&&(M=e.loadFile(P)||""),P=M),q=i(P),!f(q))throw new Error("addImage does not support files of type '"+q+"', please ensure that a plugin for '"+q+"' support is added.");if(P instanceof Uint8Array||(P=E(P)),!(R=this["process"+q.toUpperCase()](P)))throw new Error("An unknown error occurred whilst processing the image");return R.fileType=q,R}})(Xt.API),(function(e){var t=function(n){if(n!==void 0&&n!="")return!0};Xt.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,l=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(n.objId),u=n.pageContext.annotations,d=!1,f=0;f<u.length&&!d;f++)switch((r=u[f]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(d=!0);break;case"reference":case"text":case"freetext":d=!0}if(d!=0){this.internal.write("/Annots [");for(var p=0;p<u.length;p++){r=u[p];var h=this.internal.pdfEscape,x=this.internal.getEncryptor(n.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var v=this.internal.newAdditionalObject(),g=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(v.objId),w=r.title||"Note";s="<</Type /Annot /Subtype /Text "+(i="/Rect ["+o(r.bounds.x)+" "+l(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y)+"] ")+"/Contents ("+h(y(r.contents))+")",s+=" /Popup "+g.objId+" 0 R",s+=" /P "+c.objId+" 0 R",s+=" /T ("+h(y(w))+") >>",v.content=s;var j=v.objId+" 0 R";s="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+o(r.bounds.x+30)+" "+l(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w+30)+" "+l(r.bounds.y)+"] ")+" /Parent "+j,r.open&&(s+=" /Open true"),s+=" >>",g.content=s,this.internal.write(v.objId,"0 R",g.objId,"0 R");break;case"freetext":i="/Rect ["+o(r.bounds.x)+" "+l(r.bounds.y)+" "+o(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y+r.bounds.h)+"] ";var _="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(r.color||"#000000");s="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+h(x(r.contents))+")",s+=" /DS("+h(x(_))+")",s+=" /Border [0 0 0]",s+=" >>",this.internal.write(s);break;case"link":if(r.options.name){var N=this.annotations._nameMap[r.options.name];r.options.pageNumber=N.page,r.options.top=N.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(x(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: 54,921 bytes, lines 1007-1044
1007case"FitV":r.options.left=r.options.left||0,s+=" /FitV "+r.options.left+"]";break;default:var A=l(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),s+=" /XYZ "+r.options.left+" "+A+" "+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 l=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:c(n),y:u(r),w:c(n+i),h:u(r+s)},options:o,type:"link"})},e.textWithLink=function(n,r,i,s){var o,l,c=this.getTextWidth(n),u=this.internal.getLineHeight()/this.internal.scaleFactor;if(s.maxWidth!==void 0){l=s.maxWidth;var d=this.splitTextToSize(n,l).length;o=Math.ceil(u*d)}else l=c,o=u;return this.text(n,r,i,s),i+=.2*u,s.align==="center"&&(r-=c/2),s.align==="right"&&(r-=c),this.link(r,i-u,l,o,s),c},e.getTextWidth=function(n){var r=this.internal.getFontSize();return this.getStringUnitWidth(n)*r/this.internal.scaleFactor}})(Xt.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(v){return t[v.charCodeAt(0)]!==void 0},o=e.__arabicParser__.isArabicLetter=function(v){return typeof v=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(v)},l=e.__arabicParser__.isArabicEndLetter=function(v){return o(v)&&s(v)&&t[v.charCodeAt(0)].length<=2},c=e.__arabicParser__.isArabicAlfLetter=function(v){return o(v)&&i.indexOf(v.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(v){return o(v)&&s(v)&&t[v.charCodeAt(0)].length>=1};var u=e.__arabicParser__.arabicLetterHasFinalForm=function(v){return o(v)&&s(v)&&t[v.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(v){return o(v)&&s(v)&&t[v.charCodeAt(0)].length>=3};var d=e.__arabicParser__.arabicLetterHasMedialForm=function(v){return o(v)&&s(v)&&t[v.charCodeAt(0)].length==4},f=e.__arabicParser__.resolveLigatures=function(v){var g=0,y=n,w="",j=0;for(g=0;g<v.length;g+=1)y[v.charCodeAt(g)]!==void 0?(j++,typeof(y=y[v.charCodeAt(g)])=="number"&&(w+=String.fromCharCode(y),y=n,j=0),g===v.length-1&&(y=n,w+=v.charAt(g-(j-1)),g-=j-1,j=0)):(y=n,w+=v.charAt(g-j),g-=j,j=0);return w};e.__arabicParser__.isArabicDiacritic=function(v){return v!==void 0&&r[v.charCodeAt(0)]!==void 0};var p=e.__arabicParser__.getCorrectForm=function(v,g,y){return o(v)?s(v)===!1?-1:!u(v)||!o(g)&&!o(y)||!o(y)&&l(g)||l(v)&&!o(g)||l(v)&&c(g)||l(v)&&l(g)?0:d(v)&&o(g)&&!l(g)&&o(y)&&u(y)?3:l(v)||!o(y)?1:2:-1},h=function(v){var g=0,y=0,w=0,j="",_="",N="",A=(v=v||"").split("\\s+"),E=[];for(g=0;g<A.length;g+=1){for(E.push(""),y=0;y<A[g].length;y+=1)j=A[g][y],_=A[g][y-1],N=A[g][y+1],o(j)?(w=p(j,_,N),E[g]+=w!==-1?String.fromCharCode(t[j.charCodeAt(0)][w]):j):E[g]+=j;E[g]=f(E[g])}return E.join(" ")},x=e.__arabicParser__.processArabic=e.processArabic=function(){var v,g=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(g)){var w=0;for(y=[],w=0;w<g.length;w+=1)Array.isArray(g[w])?y.push([h(g[w][0]),g[w][1],g[w][2]]):y.push([h(g[w])]);v=y}else v=h(g);return typeof arguments[0]=="string"?v:(arguments[0].text=v,arguments[0])};e.events.push(["preProcessText",x])})(Xt.API),Xt.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(l){n=l}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(l){r=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(l){i=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var s=[];Object.defineProperty(this,"childNodes",{get:function(){return s},set:function(l){s=l}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(l){o=l}}),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}])})(Xt.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 c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(v){c=v}});var u=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return u},set:function(v){u=v}});var d=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return d},set:function(v){d=v}});var f=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return f},set:function(v){f=v}});var p=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return p},set:function(v){p=v}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(v){h=v}});var x=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return x},set:function(v){x=v}}),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(c){return r.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},e.getTextDimensions=function(c,u){r.call(this);var d=(u=u||{}).fontSize||this.getFontSize(),f=u.font||this.getFont(),p=u.scaleFactor||this.internal.scaleFactor,h=0,x=0,v=0,g=this;if(!Array.isArray(c)&&typeof c!="string"){if(typeof c!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");c=String(c)}var y=u.maxWidth;y>0?typeof c=="string"?c=this.splitTextToSize(c,y):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(j,_){return j.concat(g.splitTextToSize(_,y))},[])):c=Array.isArray(c)?c:[c];for(var w=0;w<c.length;w++)h<(v=this.getStringUnitWidth(c[w],{font:f})*d)&&(h=v);return h!==0&&(x=c.length),{w:h/=p,h:Math.max((x*d*this.getLineHeightFactor()-d*(this.getLineHeightFactor()-1))/p,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var c=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new s(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=e.cell=function(){var c;c=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 u=this.internal.__cell__.lastCell,d=this.internal.__cell__.padding,f=this.internal.__cell__.margins||t,p=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return u.lineNumber!==void 0&&(u.lineNumber===c.lineNumber?(c.x=(u.x||0)+(u.width||0),c.y=u.y||0):u.y+u.height+c.height+f.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=f.top,h&&p&&(this.printHeaderRow(c.lineNumber,!0),c.y+=p[0].height)):c.y=u.y+u.height||c.y),c.text[0]!==void 0&&(this.rect(c.x,c.y,c.width,c.height,n===!0?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-d,c.y+d,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+d,{align:"center",baseline:"top",maxWidth:c.width-d-d}):this.text(c.text,c.x+d,c.y+d,{align:"left",baseline:"top",maxWidth:c.width-d-d})),this.internal.__cell__.lastCell=c,this};e.table=function(c,u,d,f,p){if(r.call(this),!d)throw new Error("No data for PDF table.");var h,x,v,g,y=[],w=[],j=[],_={},N={},A=[],E=[],k=(p=p||{}).autoSize||!1,T=p.printHeaders!==!1,D=p.css&&p.css["font-size"]!==void 0?16*p.css["font-size"]:p.fontSize||12,P=p.margins||Object.assign({width:this.getPageWidth()},t),R=typeof p.padding=="number"?p.padding:3,q=p.headerBackgroundColor||"#c8c8c8",M=p.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=T,this.internal.__cell__.margins=P,this.internal.__cell__.table_font_size=D,this.internal.__cell__.padding=R,this.internal.__cell__.headerBackgroundColor=q,this.internal.__cell__.headerTextColor=M,this.setFontSize(D),f==null)w=y=Object.keys(d[0]),j=y.map(function(){return"left"});else if(Array.isArray(f)&&Sr(f[0])==="object")for(y=f.map(function(F){return F.name}),w=f.map(function(F){return F.prompt||F.name||""}),j=f.map(function(F){return F.align||"left"}),h=0;h<f.length;h+=1)N[f[h].name]=.7499990551181103*f[h].width;else Array.isArray(f)&&typeof f[0]=="string"&&(w=y=f,j=y.map(function(){return"left"}));if(k||Array.isArray(f)&&typeof f[0]=="string")for(h=0;h<y.length;h+=1){for(_[g=y[h]]=d.map(function(F){return F[g]}),this.setFont(void 0,"bold"),A.push(this.getTextDimensions(w[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),x=_[g],this.setFont(void 0,"normal"),v=0;v<x.length;v+=1)A.push(this.getTextDimensions(x[v],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);N[g]=Math.max.apply(null,A)+R+R,A=[]}if(T){var V={};for(h=0;h<y.length;h+=1)V[y[h]]={},V[y[h]].text=w[h],V[y[h]].align=j[h];var H=l.call(this,V,N);E=y.map(function(F){return new s(c,u,N[F],H,V[F].text,void 0,V[F].align)}),this.setTableHeaderRow(E),this.printHeaderRow(1,!1)}var Z=f.reduce(function(F,$){return F[$.name]=$.align,F},{});for(h=0;h<d.length;h+=1){"rowStart"in p&&p.rowStart instanceof Function&&p.rowStart({row:h,data:d[h]},this);var J=l.call(this,d[h],N);for(v=0;v<y.length;v+=1){var K=d[h][y[v]];"cellStart"in p&&p.cellStart instanceof Function&&p.cellStart({row:h,col:v,data:K},this),o.call(this,new s(c,u,N[y[v]],J,K,h+2,Z[y[v]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=u,this};var l=function(c,u){var d=this.internal.__cell__.padding,f=this.internal.__cell__.table_font_size,p=this.internal.scaleFactor;return Object.keys(c).map(function(h){var x=c[h];return this.splitTextToSize(x.hasOwnProperty("text")?x.text:x,u[h]-d-d)},this).map(function(h){return this.getLineHeightFactor()*h.length*f/p+d+d},this).reduce(function(h,x){return Math.max(h,x)},0)};e.setTableHeaderRow=function(c){r.call(this),this.internal.__cell__.tableHeaderRow=c},e.printHeaderRow=function(c,u){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 f=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(f[0],f[1],f[2],f[3],void 0,-1)}this.setFont(void 0,"bold");for(var p=[],h=0;h<this.internal.__cell__.tableHeaderRow.length;h+=1){d=this.internal.__cell__.tableHeaderRow[h].clone(),u&&(d.y=this.internal.__cell__.margins.top||0,p.push(d)),d.lineNumber=c;var x=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,d),this.setTextColor(x)}p.length>0&&this.setTableHeaderRow(p),this.setFont(void 0,"normal"),n=!1}})(Xt.API);var VX={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},WX=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],QC=GX(WX),HX=[100,200,300,400,500,600,700,800,900],ake=GX(HX);function uS(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=(function(s){return VX[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 QC[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 zD(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 ske={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},$D={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function UD(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function GD(e){return e.trimLeft()}function oke(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 lke(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 Pm,Qb,VD,WD,HD,dS=["times"];function KD(e,t,n,r,i){var s=4,o=XD;switch(i){case Xt.API.image_compression.FAST:s=1,o=YD;break;case Xt.API.image_compression.MEDIUM:s=6,o=QD;break;case Xt.API.image_compression.SLOW:s=9,o=ZD}e=(function(c,u,d,f){for(var p,h=c.length/u,x=new Uint8Array(c.length+h),v=[cke,YD,XD,QD,ZD],g=0;g<h;g+=1){var y=g*u,w=c.subarray(y,y+u);if(f)x.set(f(w,d,p),y+g);else{for(var j=v.length,_=[],N=0;N<j;N+=1)_[N]=v[N](w,d,p);var A=dke(_.concat());x.set(_[A],y+g)}p=w}return x})(e,t,Math.ceil(n*r/8),o);var l=GC(e,{level:s});return Xt.API.__addimage__.arrayBufferToBinaryString(l)}function cke(e){var t=Array.apply([],e);return t.unshift(0),t}function YD(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 XD(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 QD(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,l=n&&n[s]||0;i[s+1]=e[s]+256-(o+l>>>1)&255}return i}function ZD(e,t,n){var r=e.length,i=[];i[0]=4;for(var s=0;s<r;s+=1){var o=uke(e[s-t]||0,n&&n[s]||0,n&&n[s-t]||0);i[s+1]=e[s]-o+256&255}return i}function uke(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 dke(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 fS(e,t,n){var r=t*n,i=Math.floor(r/8),s=16-(r-8*i+n),o=(1<<n)-1;return KX(e,i)>>s&o}function JD(e,t,n,r){var i=n*r,s=Math.floor(i/8),o=16-(i-8*s+r),l=(1<<r)-1,c=(t&l)<<o;(function(u,d,f){if(d+1<u.byteLength)u.setUint16(d,f,!1);else{var p=f>>8&255;u.setUint8(d,p)}})(e,s,KX(e,s)&~(l<<o)&65535|c)}function KX(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function fke(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 l=null,c=null;s&&(l=t,c=o,t+=3*o);var u=!0,d=[],f=0,p=null,h=0,x=null;for(this.width=n,this.height=r;u&&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,x=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((P=e[t++])>=0))throw Error("Invalid block size");if(P===0)break;t+=P}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var v=e[t++];f=e[t++]|e[t++]<<8,p=e[t++],1&v||(p=null),h=v>>2&7,t++;break;case 254:for(;;){if(!((P=e[t++])>=0))throw Error("Invalid block size");if(P===0)break;t+=P}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var g=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,w=e[t++]|e[t++]<<8,j=e[t++]|e[t++]<<8,_=e[t++],N=_>>6&1,A=1<<1+(7&_),E=l,k=c,T=!1;_>>7&&(T=!0,E=t,k=A,t+=3*A);var D=t;for(t++;;){var P;if(!((P=e[t++])>=0))throw Error("Invalid block size");if(P===0)break;t+=P}d.push({x:g,y,width:w,height:j,has_local_palette:T,palette_offset:E,palette_size:k,data_offset:D,data_length:t-D,transparent_index:p,interlaced:!!N,delay:f,disposal:h});break;case 59:u=!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 x},this.frameInfo=function(R){if(R<0||R>=d.length)throw new Error("Frame index out of range.");return d[R]},this.decodeAndBlitFrameBGRA=function(R,q){var M=this.frameInfo(R),V=M.width*M.height;if(V>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var H=new Uint8Array(V);e8(e,M.data_offset,H,V);var Z=M.palette_offset,J=M.transparent_index;J===null&&(J=256);var K=M.width,F=n-K,$=K,B=4*(M.y*n+M.x),z=4*((M.y+M.height)*n+M.x),ee=B,te=4*F;M.interlaced===!0&&(te+=4*n*7);for(var X=8,ne=0,le=H.length;ne<le;++ne){var re=H[ne];if($===0&&($=K,(ee+=te)>=z&&(te=4*F+4*n*(X-1),ee=B+(K+F)*(X<<1),X>>=1)),re===J)ee+=4;else{var he=e[Z+3*re],be=e[Z+3*re+1],ve=e[Z+3*re+2];q[ee++]=ve,q[ee++]=be,q[ee++]=he,q[ee++]=255}--$}},this.decodeAndBlitFrameRGBA=function(R,q){var M=this.frameInfo(R),V=M.width*M.height;if(V>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var H=new Uint8Array(V);e8(e,M.data_offset,H,V);var Z=M.palette_offset,J=M.transparent_index;J===null&&(J=256);var K=M.width,F=n-K,$=K,B=4*(M.y*n+M.x),z=4*((M.y+M.height)*n+M.x),ee=B,te=4*F;M.interlaced===!0&&(te+=4*n*7);for(var X=8,ne=0,le=H.length;ne<le;++ne){var re=H[ne];if($===0&&($=K,(ee+=te)>=z&&(te=4*F+4*n*(X-1),ee=B+(K+F)*(X<<1),X>>=1)),re===J)ee+=4;else{var he=e[Z+3*re],be=e[Z+3*re+1],ve=e[Z+3*re+2];q[ee++]=he,q[ee++]=be,q[ee++]=ve,q[ee++]=255}--$}}}function e8(e,t,n,r){for(var i=e[t++],s=1<<i,o=s+1,l=o+1,c=i+1,u=(1<<c)-1,d=0,f=0,p=0,h=e[t++],x=new Int32Array(4096),v=null;;){for(;d<16&&h!==0;)f|=e[t++]<<d,d+=8,h===1?h=e[t++]:--h;if(d<c)break;var g=f&u;if(f>>=c,d-=c,g!==s){if(g===o)break;for(var y=g<l?g:v,w=0,j=y;j>s;)j=x[j]>>8,++w;var _=j;if(p+w+(y!==g?1:0)>r)return void Rr.log("Warning, gif stream longer than expected.");n[p++]=_;var N=p+=w;for(y!==g&&(n[p++]=_),j=y;w--;)j=x[j],n[--N]=255&j,j>>=8;v!==null&&l<4096&&(x[l++]=v<<8|_,l>=u+1&&c<12&&(++c,u=u<<1|1)),v=g}else l=o+1,u=(1<<(c=i+1))-1,v=null}return p!==r&&Rr.log("Warning, gif stream shorter than expected."),n}/** 1008 * @license 1009 Copyright (c) 2008, Adobe Systems Incorporated 1010 All rights reserved. 1011 1012 Redistribution and use in source and binary forms, with or without 1013 modification, are permitted provided that the following conditions are 1014 met: 1015 1016 * Redistributions of source code must retain the above copyright notice, 1017 this list of conditions and the following disclaimer. 1018 1019 * Redistributions in binary form must reproduce the above copyright 1020 notice, this list of conditions and the following disclaimer in the 1021 documentation and/or other materials provided with the distribution. 1022 1023 * Neither the name of Adobe Systems Incorporated nor the names of its 1024 contributors may be used to endorse or promote products derived from 1025 this software without specific prior written permission. 1026 1027 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 1028 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 1029 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1030 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 1031 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 1032 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 1033 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 1034 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 1035 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 1036 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 1037 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1038*/function hS(e){var t,n,r,i,s,o=Math.floor,l=new Array(64),c=new Array(64),u=new Array(64),d=new Array(64),f=new Array(65535),p=new Array(65535),h=new Array(64),x=new Array(64),v=[],g=0,y=7,w=new Array(64),j=new Array(64),_=new Array(64),N=new Array(256),A=new Array(2048),E=[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],k=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],D=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[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],R=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],q=[0,1,2,3,4,5,6,7,8,9,10,11],M=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],V=[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 H(B,z){for(var ee=0,te=0,X=new Array,ne=1;ne<=16;ne++){for(var le=1;le<=B[ne];le++)X[z[te]]=[],X[z[te]][0]=ee,X[z[te]][1]=ne,te++,ee++;ee*=2}return X}function Z(B){for(var z=B[0],ee=B[1]-1;ee>=0;)z&1<<ee&&(g|=1<<y),ee--,--y<0&&(g==255?(J(255),J(0)):J(g),y=7,g=0)}function J(B){v.push(B)}function K(B){J(B>>8&255),J(255&B)}function F(B,z,ee,te,X){for(var ne,le=X[0],re=X[240],he=(function(we,Ye){var We,Be,dt,St,Nt,De,et,ot,ht,mt,jt=0;for(ht=0;ht<8;++ht){We=we[jt],Be=we[jt+1],dt=we[jt+2],St=we[jt+3],Nt=we[jt+4],De=we[jt+5],et=we[jt+6];var ar=We+(ot=we[jt+7]),jn=We-ot,fn=Be+et,pn=Be-et,Tn=dt+De,zt=dt-De,In=St+Nt,tn=St-Nt,mn=ar+In,sr=ar-In,Sn=fn+Tn,nn=fn-Tn;we[jt]=mn+Sn,we[jt+4]=mn-Sn;var Jn=.707106781*(nn+sr);we[jt+2]=sr+Jn,we[jt+6]=sr-Jn;var oc=.382683433*((mn=tn+zt)-(nn=pn+jn)),Yi=.5411961*mn+oc,Do=1.306562965*nn+oc,Es=.707106781*(Sn=zt+pn),rn=jn+Es,us=jn-Es;we[jt+5]=us+Yi,we[jt+3]=us-Yi,we[jt+1]=rn+Do,we[jt+7]=rn-Do,jt+=8}for(jt=0,ht=0;ht<8;++ht){We=we[jt],Be=we[jt+8],dt=we[jt+16],St=we[jt+24],Nt=we[jt+32],De=we[jt+40],et=we[jt+48];var io=We+(ot=we[jt+56]),la=We-ot,Ts=Be+et,kr=Be-et,ai=dt+De,hi=dt-De,wl=St+Nt,lc=St-Nt,ao=io+wl,Fo=io-wl,Xi=Ts+ai,Os=Ts-ai;we[jt]=ao+Xi,we[jt+32]=ao-Xi;var ds=.707106781*(Os+Fo);we[jt+16]=Fo+ds,we[jt+48]=Fo-ds;var ru=.382683433*((ao=lc+hi)-(Os=kr+la)),so=.5411961*ao+ru,cc=1.306562965*Os+ru,iu=.707106781*(Xi=hi+kr),au=la+iu,jd=la-iu;we[jt+40]=jd+so,we[jt+24]=jd-so,we[jt+8]=au+cc,we[jt+56]=au-cc,jt++}for(ht=0;ht<64;++ht)mt=we[ht]*Ye[ht],h[ht]=mt>0?mt+.5|0:mt-.5|0;return h})(B,z),be=0;be<64;++be)x[E[be]]=he[be];var ve=x[0]-ee;ee=x[0],ve==0?Z(te[0]):(Z(te[p[ne=32767+ve]]),Z(f[ne]));for(var ze=63;ze>0&&x[ze]==0;)ze--;if(ze==0)return Z(le),ee;for(var He,ue=1;ue<=ze;){for(var Ue=ue;x[ue]==0&&ue<=ze;)++ue;var ut=ue-Ue;if(ut>=16){He=ut>>4;for(var Ee=1;Ee<=He;++Ee)Z(re);ut&=15}ne=32767+x[ue],Z(X[(ut<<4)+p[ne]]),Z(f[ne]),ue++}return ze!=63&&Z(le),ee}function $(B){B=Math.min(Math.max(B,1),100),s!=B&&((function(z){for(var ee=[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],te=0;te<64;te++){var X=o((ee[te]*z+50)/100);X=Math.min(Math.max(X,1),255),l[E[te]]=X}for(var ne=[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],le=0;le<64;le++){var re=o((ne[le]*z+50)/100);re=Math.min(Math.max(re,1),255),c[E[le]]=re}for(var he=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],be=0,ve=0;ve<8;ve++)for(var ze=0;ze<8;ze++)u[be]=1/(l[E[be]]*he[ve]*he[ze]*8),d[be]=1/(c[E[be]]*he[ve]*he[ze]*8),be++})(B<50?Math.floor(5e3/B):Math.floor(200-2*B)),s=B)}this.encode=function(B,z){z&&$(z),v=new Array,g=0,y=7,K(65496),K(65504),K(16),J(74),J(70),J(73),J(70),J(0),J(1),J(1),J(0),K(1),K(1),J(0),J(0),(function(){K(65499),K(132),J(0);for(var Be=0;Be<64;Be++)J(l[Be]);J(1);for(var dt=0;dt<64;dt++)J(c[dt])})(),(function(Be,dt){K(65472),K(17),J(8),K(dt),K(Be),J(3),J(1),J(17),J(0),J(2),J(17),J(1),J(3),J(17),J(1)})(B.width,B.height),(function(){K(65476),K(418),J(0);for(var Be=0;Be<16;Be++)J(k[Be+1]);for(var dt=0;dt<=11;dt++)J(T[dt]);J(16);for(var St=0;St<16;St++)J(D[St+1]);for(var Nt=0;Nt<=161;Nt++)J(P[Nt]);J(1);for(var De=0;De<16;De++)J(R[De+1]);for(var et=0;et<=11;et++)J(q[et]);J(17);for(var ot=0;ot<16;ot++)J(M[ot+1]);for(var ht=0;ht<=161;ht++)J(V[ht])})(),K(65498),K(12),J(3),J(1),J(0),J(2),J(17),J(3),J(17),J(0),J(63),J(0);var ee=0,te=0,X=0;g=0,y=7,this.encode.displayName="_encode_";for(var ne,le,re,he,be,ve,ze,He,ue,Ue=B.data,ut=B.width,Ee=B.height,we=4*ut,Ye=0;Ye<Ee;){for(ne=0;ne<we;){for(be=we*Ye+ne,ze=-1,He=0,ue=0;ue<64;ue++)ve=be+(He=ue>>3)*we+(ze=4*(7&ue)),Ye+He>=Ee&&(ve-=we*(Ye+1+He-Ee)),ne+ze>=we&&(ve-=ne+ze-we+4),le=Ue[ve++],re=Ue[ve++],he=Ue[ve++],w[ue]=(A[le]+A[re+256|0]+A[he+512|0]>>16)-128,j[ue]=(A[le+768|0]+A[re+1024|0]+A[he+1280|0]>>16)-128,_[ue]=(A[le+1280|0]+A[re+1536|0]+A[he+1792|0]>>16)-128;ee=F(w,u,ee,t,r),te=F(j,d,te,n,i),X=F(_,d,X,n,i),ne+=32}Ye+=8}if(y>=0){var We=[];We[1]=y+1,We[0]=(1<<y+1)-1,Z(We)}return K(65497),new Uint8Array(v)},e=e||50,(function(){for(var B=String.fromCharCode,z=0;z<256;z++)N[z]=B(z)})(),t=H(k,T),n=H(R,q),r=H(D,P),i=H(M,V),(function(){for(var B=1,z=2,ee=1;ee<=15;ee++){for(var te=B;te<z;te++)p[32767+te]=ee,f[32767+te]=[],f[32767+te][1]=ee,f[32767+te][0]=te;for(var X=-(z-1);X<=-B;X++)p[32767+X]=ee,f[32767+X]=[],f[32767+X][1]=ee,f[32767+X][0]=z-1+X;B<<=1,z<<=1}})(),(function(){for(var B=0;B<256;B++)A[B]=19595*B,A[B+256|0]=38470*B,A[B+512|0]=7471*B+32768,A[B+768|0]=-11059*B,A[B+1024|0]=-21709*B,A[B+1280|0]=32768*B+8421375,A[B+1536|0]=-27439*B,A[B+1792|0]=-5329*B})(),$(e)}/** 1039 * @license 1040 * Copyright (c) 2017 Aras Abbasi 1041 * 1042 * Licensed under the MIT License. 1043 * http://opensource.org/licenses/mit-license 1044 */function Dl(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 t8(e){function t(T){if(!T)throw Error("assert :P")}function n(T,D,P){for(var R=0;4>R;R++)if(T[D+R]!=P.charCodeAt(R))return!0;return!1}function r(T,D,P,R,q){for(var M=0;M<q;M++)T[D+M]=P[R+M]}function i(T,D,P,R){for(var q=0;q<R;q++)T[D+q]=P}function s(T){return new Int32Array(T)}function o(T,D){for(var P=[],R=0;R<T;R++)P.push(new D);return P}function l(T,D){var P=[];return(function R(q,M,V){for(var H=V[M],Z=0;Z<H&&(q.push(V.length>M+1?[]:new D),!(V.length<M+1));Z++)R(q[Z],M+1,V)})(P,0,T),P}var c=function(){var T=this;function D(C,L){for(var W=1<<L-1>>>0;C&W;)W>>>=1;return W?(C&W-1)+W:C}function P(C,L,W,Q,ae){t(!(Q%W));do C[L+(Q-=W)]=ae;while(0<Q)}function R(C,L,W,Q,ae){if(t(2328>=ae),512>=ae)var oe=s(512);else if((oe=s(ae))==null)return 0;return(function(ce,de,fe,me,ke,qe){var ge,Te,Fe=de,Je=1<<fe,Ge=s(16),Xe=s(16);for(t(ke!=0),t(me!=null),t(ce!=null),t(0<fe),Te=0;Te<ke;++Te){if(15<me[Te])return 0;++Ge[me[Te]]}if(Ge[0]==ke)return 0;for(Xe[1]=0,ge=1;15>ge;++ge){if(Ge[ge]>1<<ge)return 0;Xe[ge+1]=Xe[ge]+Ge[ge]}for(Te=0;Te<ke;++Te)ge=me[Te],0<me[Te]&&(qe[Xe[ge]++]=Te);if(Xe[15]==1)return(me=new q).g=0,me.value=qe[0],P(ce,Fe,1,Je,me),Je;var Ze,rt=-1,it=Je-1,Kt=0,Rt=1,kn=1,Bt=1<<fe;for(Te=0,ge=1,ke=2;ge<=fe;++ge,ke<<=1){if(Rt+=kn<<=1,0>(kn-=Ge[ge]))return 0;for(;0<Ge[ge];--Ge[ge])(me=new q).g=ge,me.value=qe[Te++],P(ce,Fe+Kt,ke,Bt,me),Kt=D(Kt,ge)}for(ge=fe+1,ke=2;15>=ge;++ge,ke<<=1){if(Rt+=kn<<=1,0>(kn-=Ge[ge]))return 0;for(;0<Ge[ge];--Ge[ge]){if(me=new q,(Kt&it)!=rt){for(Fe+=Bt,Ze=1<<(rt=ge)-fe;15>rt&&!(0>=(Ze-=Ge[rt]));)++rt,Ze<<=1;Je+=Bt=1<<(Ze=rt-fe),ce[de+(rt=Kt&it)].g=Ze+fe,ce[de+rt].value=Fe-de-rt}me.g=ge-fe,me.value=qe[Te++],P(ce,Fe+(Kt>>fe),ke,Bt,me),Kt=D(Kt,ge)}}return Rt!=2*Xe[15]-1?0:Je})(C,L,W,Q,ae,oe)}function q(){this.value=this.g=0}function M(){this.value=this.g=0}function V(){this.G=o(5,q),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(mo,M)}function H(C,L,W,Q){t(C!=null),t(L!=null),t(2147483648>Q),C.Ca=254,C.I=0,C.b=-8,C.Ka=0,C.oa=L,C.pa=W,C.Jd=L,C.Yc=W+Q,C.Zc=4<=Q?W+Q-4+1:W,le(C)}function Z(C,L){for(var W=0;0<L--;)W|=he(C,128)<<L;return W}function J(C,L){var W=Z(C,L);return re(C)?-W:W}function K(C,L,W,Q){var ae,oe=0;for(t(C!=null),t(L!=null),t(4294967288>Q),C.Sb=Q,C.Ra=0,C.u=0,C.h=0,4<Q&&(Q=4),ae=0;ae<Q;++ae)oe+=L[W+ae]<<8*ae;C.Ra=oe,C.bb=Q,C.oa=L,C.pa=W}function F(C){for(;8<=C.u&&C.bb<C.Sb;)C.Ra>>>=8,C.Ra+=C.oa[C.pa+C.bb]<<Aa-8>>>0,++C.bb,C.u-=8;te(C)&&(C.h=1,C.u=0)}function $(C,L){if(t(0<=L),!C.h&&L<=ih){var W=ee(C)&wu[L];return C.u+=L,F(C),W}return C.h=1,C.u=0}function B(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function z(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function ee(C){return C.Ra>>>(C.u&Aa-1)>>>0}function te(C){return t(C.bb<=C.Sb),C.h||C.bb==C.Sb&&C.u>Aa}function X(C,L){C.u=L,C.h=te(C)}function ne(C){C.u>=ka&&(t(C.u>=ka),F(C))}function le(C){t(C!=null&&C.oa!=null),C.pa<C.Zc?(C.I=(C.oa[C.pa++]|C.I<<8)>>>0,C.b+=8):(t(C!=null&&C.oa!=null),C.pa<C.Yc?(C.b+=8,C.I=C.oa[C.pa++]|C.I<<8):C.Ka?C.b=0:(C.I<<=8,C.b+=8,C.Ka=1))}function re(C){return Z(C,1)}function he(C,L){var W=C.Ca;0>C.b&&le(C);var Q=C.b,ae=W*L>>>8,oe=(C.I>>>Q>ae)+0;for(oe?(W-=ae,C.I-=ae+1<<Q>>>0):W=ae+1,Q=W,ae=0;256<=Q;)ae+=8,Q>>=8;return Q=7^ae+ju[Q],C.b-=Q,C.Ca=(W<<Q)-1,oe}function be(C,L,W){C[L+0]=W>>24&255,C[L+1]=W>>16&255,C[L+2]=W>>8&255,C[L+3]=255&W}function ve(C,L){return C[L+0]|C[L+1]<<8}function ze(C,L){return ve(C,L)|C[L+2]<<16}function He(C,L){return ve(C,L)|ve(C,L+2)<<16}function ue(C,L){var W=1<<L;return t(C!=null),t(0<L),C.X=s(W),C.X==null?0:(C.Mb=32-L,C.Xa=L,1)}function Ue(C,L){t(C!=null),t(L!=null),t(C.Xa==L.Xa),r(L.X,0,C.X,0,1<<L.Xa)}function ut(){this.X=[],this.Xa=this.Mb=0}function Ee(C,L,W,Q){t(W!=null),t(Q!=null);var ae=W[0],oe=Q[0];return ae==0&&(ae=(C*oe+L/2)/L),oe==0&&(oe=(L*ae+C/2)/C),0>=ae||0>=oe?0:(W[0]=ae,Q[0]=oe,1)}function we(C,L){return C+(1<<L)-1>>>L}function Ye(C,L){return((4278255360&C)+(4278255360&L)>>>0&4278255360)+((16711935&C)+(16711935&L)>>>0&16711935)>>>0}function We(C,L){T[L]=function(W,Q,ae,oe,ce,de,fe){var me;for(me=0;me<ce;++me){var ke=T[C](de[fe+me-1],ae,oe+me);de[fe+me]=Ye(W[Q+me],ke)}}}function Be(){this.ud=this.hd=this.jd=0}function dt(C,L){return((4278124286&(C^L))>>>1)+(C&L)>>>0}function St(C){return 0<=C&&256>C?C:0>C?0:255<C?255:void 0}function Nt(C,L){return St(C+(C-L+.5>>1))}function De(C,L,W){return Math.abs(L-W)-Math.abs(C-W)}function et(C,L,W,Q,ae,oe,ce){for(Q=oe[ce-1],W=0;W<ae;++W)oe[ce+W]=Q=Ye(C[L+W],Q)}function ot(C,L,W,Q,ae){var oe;for(oe=0;oe<W;++oe){var ce=C[L+oe],de=ce>>8&255,fe=16711935&(fe=(fe=16711935&ce)+((de<<16)+de));Q[ae+oe]=(4278255360&ce)+fe>>>0}}function ht(C,L){L.jd=255&C,L.hd=C>>8&255,L.ud=C>>16&255}function mt(C,L,W,Q,ae,oe){var ce;for(ce=0;ce<Q;++ce){var de=L[W+ce],fe=de>>>8,me=de,ke=255&(ke=(ke=de>>>16)+((C.jd<<24>>24)*(fe<<24>>24)>>>5));me=255&(me=(me+=(C.hd<<24>>24)*(fe<<24>>24)>>>5)+((C.ud<<24>>24)*(ke<<24>>24)>>>5)),ae[oe+ce]=(4278255360&de)+(ke<<16)+me}}function jt(C,L,W,Q,ae){T[L]=function(oe,ce,de,fe,me,ke,qe,ge,Te){for(fe=qe;fe<ge;++fe)for(qe=0;qe<Te;++qe)me[ke++]=ae(de[Q(oe[ce++])])},T[C]=function(oe,ce,de,fe,me,ke,qe){var ge=8>>oe.b,Te=oe.Ea,Fe=oe.K[0],Je=oe.w;if(8>ge)for(oe=(1<<oe.b)-1,Je=(1<<ge)-1;ce<de;++ce){var Ge,Xe=0;for(Ge=0;Ge<Te;++Ge)Ge&oe||(Xe=Q(fe[me++])),ke[qe++]=ae(Fe[Xe&Je]),Xe>>=ge}else T["VP8LMapColor"+W](fe,me,Fe,Je,ke,qe,ce,de,Te)}}function ar(C,L,W,Q,ae){for(W=L+W;L<W;){var oe=C[L++];Q[ae++]=oe>>16&255,Q[ae++]=oe>>8&255,Q[ae++]=255&oe}}function jn(C,L,W,Q,ae){for(W=L+W;L<W;){var oe=C[L++];Q[ae++]=oe>>16&255,Q[ae++]=oe>>8&255,Q[ae++]=255&oe,Q[ae++]=oe>>24&255}}function fn(C,L,W,Q,ae){for(W=L+W;L<W;){var oe=(ce=C[L++])>>16&240|ce>>12&15,ce=240&ce|ce>>28&15;Q[ae++]=oe,Q[ae++]=ce}}function pn(C,L,W,Q,ae){for(W=L+W;L<W;){var oe=(ce=C[L++])>>16&248|ce>>13&7,ce=ce>>5&224|ce>>3&31;Q[ae++]=oe,Q[ae++]=ce}}function Tn(C,L,W,Q,ae){for(W=L+W;L<W;){var oe=C[L++];Q[ae++]=255&oe,Q[ae++]=oe>>8&255,Q[ae++]=oe>>16&255}}function zt(C,L,W,Q,ae,oe){if(oe==0)for(W=L+W;L<W;)be(Q,((oe=C[L++])[0]>>24|oe[1]>>8&65280|oe[2]<<8&16711680|oe[3]<<24)>>>0),ae+=32;else r(Q,ae,C,L,W)}function In(C,L){T[L][0]=T[C+"0"],T[L][1]=T[C+"1"],T[L][2]=T[C+"2"],T[L][3]=T[C+"3"],T[L][4]=T[C+"4"],T[L][5]=T[C+"5"],T[L][6]=T[C+"6"],T[L][7]=T[C+"7"],T[L][8]=T[C+"8"],T[L][9]=T[C+"9"],T[L][10]=T[C+"10"],T[L][11]=T[C+"11"],T[L][12]=T[C+"12"],T[L][13]=T[C+"13"],T[L][14]=T[C+"0"],T[L][15]=T[C+"0"]}function tn(C){return C==qd||C==ku||C==ch||C==uh}function mn(){this.eb=[],this.size=this.A=this.fb=0}function sr(){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 Sn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new mn,this.f.kb=new sr,this.sd=null}function nn(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Jn(){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 oc(C){return alert("todo:WebPSamplerProcessPlane"),C.T}function Yi(C,L){var W=C.T,Q=L.ba.f.RGBA,ae=Q.eb,oe=Q.fb+C.ka*Q.A,ce=Da[L.ba.S],de=C.y,fe=C.O,me=C.f,ke=C.N,qe=C.ea,ge=C.W,Te=L.cc,Fe=L.dc,Je=L.Mc,Ge=L.Nc,Xe=C.ka,Ze=C.ka+C.T,rt=C.U,it=rt+1>>1;for(Xe==0?ce(de,fe,null,null,me,ke,qe,ge,me,ke,qe,ge,ae,oe,null,null,rt):(ce(L.ec,L.fc,de,fe,Te,Fe,Je,Ge,me,ke,qe,ge,ae,oe-Q.A,ae,oe,rt),++W);Xe+2<Ze;Xe+=2)Te=me,Fe=ke,Je=qe,Ge=ge,ke+=C.Rc,ge+=C.Rc,oe+=2*Q.A,ce(de,(fe+=2*C.fa)-C.fa,de,fe,Te,Fe,Je,Ge,me,ke,qe,ge,ae,oe-Q.A,ae,oe,rt);return fe+=C.fa,C.j+Ze<C.o?(r(L.ec,L.fc,de,fe,rt),r(L.cc,L.dc,me,ke,it),r(L.Mc,L.Nc,qe,ge,it),W--):1&Ze||ce(de,fe,null,null,me,ke,qe,ge,me,ke,qe,ge,ae,oe+Q.A,null,null,rt),W}function Do(C,L,W){var Q=C.F,ae=[C.J];if(Q!=null){var oe=C.U,ce=L.ba.S,de=ce==lh||ce==ch;L=L.ba.f.RGBA;var fe=[0],me=C.ka;fe[0]=C.T,C.Kb&&(me==0?--fe[0]:(--me,ae[0]-=C.width),C.j+C.ka+C.T==C.o&&(fe[0]=C.o-C.j-me));var ke=L.eb;me=L.fb+me*L.A,C=sh(Q,ae[0],C.width,oe,fe,ke,me+(de?0:3),L.A),t(W==fe),C&&tn(ce)&&Au(ke,me,de,oe,fe,L.A)}return 0}function Es(C){var L=C.ma,W=L.ba.S,Q=11>W,ae=W==wc||W==oh||W==lh||W==br||W==12||tn(W);if(L.memory=null,L.Ib=null,L.Jb=null,L.Nd=null,!gs(L.Oa,C,ae?11:12))return 0;if(ae&&tn(W)&&po(),C.da)alert("todo:use_scaling");else{if(Q){if(L.Ib=oc,C.Kb){if(W=C.U+1>>1,L.memory=s(C.U+2*W),L.memory==null)return 0;L.ec=L.memory,L.fc=0,L.cc=L.ec,L.dc=L.fc+C.U,L.Mc=L.cc,L.Nc=L.dc+W,L.Ib=Yi,po()}}else alert("todo:EmitYUV");ae&&(L.Jb=Do,Q&&Vr())}if(Q&&!Zi){for(C=0;256>C;++C)Fa[C]=89858*(C-128)+vo>>kl,Ba[C]=-22014*(C-128)+vo,Gd[C]=-45773*(C-128),Tu[C]=113618*(C-128)+vo>>kl;for(C=lr;C<dr;++C)L=76283*(C-16)+vo>>kl,nm[C-lr]=pi(L,255),G0[C-lr]=pi(L+8>>4,15);Zi=1}return 1}function rn(C){var L=C.ma,W=C.U,Q=C.T;return t(!(1&C.ka)),0>=W||0>=Q?0:(W=L.Ib(C,L),L.Jb!=null&&L.Jb(C,L,W),L.Dc+=W,1)}function us(C){C.ma.memory=null}function io(C,L,W,Q){return $(C,8)!=47?0:(L[0]=$(C,14)+1,W[0]=$(C,14)+1,Q[0]=$(C,1),$(C,3)!=0?0:!C.h)}function la(C,L){if(4>C)return C+1;var W=C-2>>1;return(2+(1&C)<<W)+$(L,W)+1}function Ts(C,L){return 120<L?L-120:1<=(W=((W=s_[L-1])>>4)*C+(8-(15&W)))?W:1;var W}function kr(C,L,W){var Q=ee(W),ae=C[L+=255&Q].g-8;return 0<ae&&(X(W,W.u+8),Q=ee(W),L+=C[L].value,L+=Q&(1<<ae)-1),X(W,W.u+C[L].g),C[L].value}function ai(C,L,W){return W.g+=C.g,W.value+=C.value<<L>>>0,t(8>=W.g),C.g}function hi(C,L,W){var Q=C.xc;return t((L=Q==0?0:C.vc[C.md*(W>>Q)+(L>>Q)])<C.Wb),C.Ya[L]}function wl(C,L,W,Q){var ae=C.ab,oe=C.c*L,ce=C.C;L=ce+L;var de=W,fe=Q;for(Q=C.Ta,W=C.Ua;0<ae--;){var me=C.gc[ae],ke=ce,qe=L,ge=de,Te=fe,Fe=(fe=Q,de=W,me.Ea);switch(t(ke<qe),t(qe<=me.nc),me.hc){case 2:Ld(ge,Te,(qe-ke)*Fe,fe,de);break;case 0:var Je=ke,Ge=qe,Xe=fe,Ze=de,rt=(Bt=me).Ea;Je==0&&(Ds(ge,Te,null,null,1,Xe,Ze),et(ge,Te+1,0,0,rt-1,Xe,Ze+1),Te+=rt,Ze+=rt,++Je);for(var it=1<<Bt.b,Kt=it-1,Rt=we(rt,Bt.b),kn=Bt.K,Bt=Bt.w+(Je>>Bt.b)*Rt;Je<Ge;){var Bn=kn,Zr=Bt,Cn=1;for(Fs(ge,Te,Xe,Ze-rt,1,Xe,Ze);Cn<rt;){var It=(Cn&~Kt)+it;It>rt&&(It=rt),(0,vs[Bn[Zr++]>>8&15])(ge,Te+ +Cn,Xe,Ze+Cn-rt,It-Cn,Xe,Ze+Cn),Cn=It}Te+=rt,Ze+=rt,++Je&Kt||(Bt+=Rt)}qe!=me.nc&&r(fe,de-Fe,fe,de+(qe-ke-1)*Fe,Fe);break;case 1:for(Fe=ge,Ge=Te,rt=(ge=me.Ea)-(Ze=ge&~(Xe=(Te=1<<me.b)-1)),Je=we(ge,me.b),it=me.K,me=me.w+(ke>>me.b)*Je;ke<qe;){for(Kt=it,Rt=me,kn=new Be,Bt=Ge+Ze,Bn=Ge+ge;Ge<Bt;)ht(Kt[Rt++],kn),vc(kn,Fe,Ge,Te,fe,de),Ge+=Te,de+=Te;Ge<Bn&&(ht(Kt[Rt++],kn),vc(kn,Fe,Ge,rt,fe,de),Ge+=rt,de+=rt),++ke&Xe||(me+=Je)}break;case 3:if(ge==fe&&Te==de&&0<me.b){for(Ge=fe,ge=Fe=de+(qe-ke)*Fe-(Ze=(qe-ke)*we(me.Ea,me.b)),Te=fe,Xe=de,Je=[],Ze=(rt=Ze)-1;0<=Ze;--Ze)Je[Ze]=Te[Xe+Ze];for(Ze=rt-1;0<=Ze;--Ze)Ge[ge+Ze]=Je[Ze];Vo(me,ke,qe,fe,Fe,fe,de)}else Vo(me,ke,qe,ge,Te,fe,de)}de=Q,fe=W}fe!=W&&r(Q,W,de,fe,oe)}function lc(C,L){var W=C.V,Q=C.Ba+C.c*C.C,ae=L-C.C;if(t(L<=C.l.o),t(16>=ae),0<ae){var oe=C.l,ce=C.Ta,de=C.Ua,fe=oe.width;if(wl(C,ae,W,Q),ae=de=[de],t((W=C.C)<(Q=L)),t(oe.v<oe.va),Q>oe.o&&(Q=oe.o),W<oe.j){var me=oe.j-W;W=oe.j,ae[0]+=me*fe}if(W>=Q?W=0:(ae[0]+=4*oe.v,oe.ka=W-oe.j,oe.U=oe.va-oe.v,oe.T=Q-W,W=1),W){if(de=de[0],11>(W=C.ca).S){var ke=W.f.RGBA,qe=(Q=W.S,ae=oe.U,oe=oe.T,me=ke.eb,ke.A),ge=oe;for(ke=ke.fb+C.Ma*ke.A;0<ge--;){var Te=ce,Fe=de,Je=ae,Ge=me,Xe=ke;switch(Q){case Zp:Md(Te,Fe,Je,Ge,Xe);break;case wc:Dd(Te,Fe,Je,Ge,Xe);break;case qd:Dd(Te,Fe,Je,Ge,Xe),Au(Ge,Xe,0,Je,1,0);break;case B0:Nu(Te,Fe,Je,Ge,Xe);break;case oh:zt(Te,Fe,Je,Ge,Xe,1);break;case ku:zt(Te,Fe,Je,Ge,Xe,1),Au(Ge,Xe,0,Je,1,0);break;case lh:zt(Te,Fe,Je,Ge,Xe,0);break;case ch:zt(Te,Fe,Je,Ge,Xe,0),Au(Ge,Xe,1,Je,1,0);break;case br:Fd(Te,Fe,Je,Ge,Xe);break;case uh:Fd(Te,Fe,Je,Ge,Xe),Cv(Ge,Xe,Je,1,0);break;case Jp:_u(Te,Fe,Je,Ge,Xe);break;default:t(0)}de+=fe,ke+=qe}C.Ma+=oe}else alert("todo:EmitRescaledRowsYUVA");t(C.Ma<=W.height)}}C.C=L,t(C.C<=C.i)}function ao(C){var L;if(0<C.ua)return 0;for(L=0;L<C.Wb;++L){var W=C.Ya[L].G,Q=C.Ya[L].H;if(0<W[1][Q[1]+0].g||0<W[2][Q[2]+0].g||0<W[3][Q[3]+0].g)return 0}return 1}function Fo(C,L,W,Q,ae,oe){if(C.Z!=0){var ce=C.qd,de=C.rd;for(t(fa[C.Z]!=null);L<W;++L)fa[C.Z](ce,de,Q,ae,Q,ae,oe),ce=Q,de=ae,ae+=oe;C.qd=ce,C.rd=de}}function Xi(C,L){var W=C.l.ma,Q=W.Z==0||W.Z==1?C.l.j:C.C;if(Q=C.C<Q?Q:C.C,t(L<=C.l.o),L>Q){var ae=C.l.width,oe=W.ca,ce=W.tb+ae*Q,de=C.V,fe=C.Ba+C.c*Q,me=C.gc;t(C.ab==1),t(me[0].hc==3),Xp(me[0],Q,L,de,fe,oe,ce),Fo(W,Q,L,oe,ce,ae)}C.C=C.Ma=L}function Os(C,L,W,Q,ae,oe,ce){var de=C.$/Q,fe=C.$%Q,me=C.m,ke=C.s,qe=W+C.$,ge=qe;ae=W+Q*ae;var Te=W+Q*oe,Fe=280+ke.ua,Je=C.Pb?de:16777216,Ge=0<ke.ua?ke.Wa:null,Xe=ke.wc,Ze=qe<Te?hi(ke,fe,de):null;t(C.C<oe),t(Te<=ae);var rt=!1;e:for(;;){for(;rt||qe<Te;){var it=0;if(de>=Je){var Kt=qe-W;t((Je=C).Pb),Je.wd=Je.m,Je.xd=Kt,0<Je.s.ua&&Ue(Je.s.Wa,Je.s.vb),Je=de+tm}if(fe&Xe||(Ze=hi(ke,fe,de)),t(Ze!=null),Ze.Qb&&(L[qe]=Ze.qb,rt=!0),!rt)if(ne(me),Ze.jc){it=me,Kt=L;var Rt=qe,kn=Ze.pd[ee(it)&mo-1];t(Ze.jc),256>kn.g?(X(it,it.u+kn.g),Kt[Rt]=kn.value,it=0):(X(it,it.u+kn.g-256),t(256<=kn.value),it=kn.value),it==0&&(rt=!0)}else it=kr(Ze.G[0],Ze.H[0],me);if(me.h)break;if(rt||256>it){if(!rt)if(Ze.nd)L[qe]=(Ze.qb|it<<8)>>>0;else{if(ne(me),rt=kr(Ze.G[1],Ze.H[1],me),ne(me),Kt=kr(Ze.G[2],Ze.H[2],me),Rt=kr(Ze.G[3],Ze.H[3],me),me.h)break;L[qe]=(Rt<<24|rt<<16|it<<8|Kt)>>>0}if(rt=!1,++qe,++fe>=Q&&(fe=0,++de,ce!=null&&de<=oe&&!(de%16)&&ce(C,de),Ge!=null))for(;ge<qe;)it=L[ge++],Ge.X[(506832829*it&4294967295)>>>Ge.Mb]=it}else if(280>it){if(it=la(it-256,me),Kt=kr(Ze.G[4],Ze.H[4],me),ne(me),Kt=Ts(Q,Kt=la(Kt,me)),me.h)break;if(qe-W<Kt||ae-qe<it)break e;for(Rt=0;Rt<it;++Rt)L[qe+Rt]=L[qe+Rt-Kt];for(qe+=it,fe+=it;fe>=Q;)fe-=Q,++de,ce!=null&&de<=oe&&!(de%16)&&ce(C,de);if(t(qe<=ae),fe&Xe&&(Ze=hi(ke,fe,de)),Ge!=null)for(;ge<qe;)it=L[ge++],Ge.X[(506832829*it&4294967295)>>>Ge.Mb]=it}else{if(!(it<Fe))break e;for(rt=it-280,t(Ge!=null);ge<qe;)it=L[ge++],Ge.X[(506832829*it&4294967295)>>>Ge.Mb]=it;it=qe,t(!(rt>>>(Kt=Ge).Xa)),L[it]=Kt.X[rt],rt=!0}rt||t(me.h==te(me))}if(C.Pb&&me.h&&qe<ae)t(C.m.h),C.a=5,C.m=C.wd,C.$=C.xd,0<C.s.ua&&Ue(C.s.vb,C.s.Wa);else{if(me.h)break e;ce!=null&&ce(C,de>oe?oe:de),C.a=0,C.$=qe-W}return 1}return C.a=3,0}function ds(C){t(C!=null),C.vc=null,C.yc=null,C.Ya=null;var L=C.Wa;L!=null&&(L.X=null),C.vb=null,t(C!=null)}function ru(){var C=new $t;return C==null?null:(C.a=0,C.xb=$d,In("Predictor","VP8LPredictors"),In("Predictor","VP8LPredictors_C"),In("PredictorAdd","VP8LPredictorsAdd"),In("PredictorAdd","VP8LPredictorsAdd_C"),Ld=ot,vc=mt,Md=ar,Dd=jn,Fd=fn,_u=pn,Nu=Tn,T.VP8LMapColor32b=vi,T.VP8LMapColor8b=Bs,C)}function so(C,L,W,Q,ae){var oe=1,ce=[C],de=[L],fe=Q.m,me=Q.s,ke=null,qe=0;e:for(;;){if(W)for(;oe&&$(fe,1);){var ge=ce,Te=de,Fe=Q,Je=1,Ge=Fe.m,Xe=Fe.gc[Fe.ab],Ze=$(Ge,2);if(Fe.Oc&1<<Ze)oe=0;else{switch(Fe.Oc|=1<<Ze,Xe.hc=Ze,Xe.Ea=ge[0],Xe.nc=Te[0],Xe.K=[null],++Fe.ab,t(4>=Fe.ab),Ze){case 0:case 1:Xe.b=$(Ge,3)+2,Je=so(we(Xe.Ea,Xe.b),we(Xe.nc,Xe.b),0,Fe,Xe.K),Xe.K=Xe.K[0];break;case 3:var rt,it=$(Ge,8)+1,Kt=16<it?0:4<it?1:2<it?2:3;if(ge[0]=we(Xe.Ea,Kt),Xe.b=Kt,rt=Je=so(it,1,0,Fe,Xe.K)){var Rt,kn=it,Bt=Xe,Bn=1<<(8>>Bt.b),Zr=s(Bn);if(Zr==null)rt=0;else{var Cn=Bt.K[0],It=Bt.w;for(Zr[0]=Bt.K[0][0],Rt=1;Rt<1*kn;++Rt)Zr[Rt]=Ye(Cn[It+Rt],Zr[Rt-1]);for(;Rt<4*Bn;++Rt)Zr[Rt]=0;Bt.K[0]=null,Bt.K[0]=Zr,rt=1}}Je=rt;break;case 2:break;default:t(0)}oe=Je}}if(ce=ce[0],de=de[0],oe&&$(fe,1)&&!(oe=1<=(qe=$(fe,4))&&11>=qe)){Q.a=3;break e}var _t;if(_t=oe)t:{var si,dn,Dn,Pr=Q,qi=ce,yi=de,Hr=qe,Pi=W,zi=Pr.m,Lr=Pr.s,Un=[null],er=1,Mr=0,tr=z0[Hr];n:for(;;){if(Pi&&$(zi,1)){var Jr=$(zi,3)+2,ei=we(qi,Jr),wr=we(yi,Jr),ha=ei*wr;if(!so(ei,wr,0,Pr,Un))break n;for(Un=Un[0],Lr.xc=Jr,si=0;si<ha;++si){var fr=Un[si]>>8&65535;Un[si]=fr,fr>=er&&(er=fr+1)}}if(zi.h)break n;for(dn=0;5>dn;++dn){var jr=Pu[dn];!dn&&0<Hr&&(jr+=1<<Hr),Mr<jr&&(Mr=jr)}var xi=o(er*tr,q),Ji=er,qa=o(Ji,V);if(qa==null)var oi=null;else t(65536>=Ji),oi=qa;var li=s(Mr);if(oi==null||li==null||xi==null){Pr.a=1;break n}var pa=xi;for(si=Dn=0;si<er;++si){var _r=oi[si],ma=_r.G,$s=_r.H,yo=0,$i=1,ci=0;for(dn=0;5>dn;++dn){jr=Pu[dn],ma[dn]=pa,$s[dn]=Dn,!dn&&0<Hr&&(jr+=1<<Hr);i:{var Nc,Cl=jr,Vd=Pr,Xo=li,W0=pa,zv=Dn,Or=0,xo=Vd.m,$v=$(xo,1);if(i(Xo,0,0,Cl),$v){var Uv=$(xo,1)+1,rm=$(xo,1),im=$(xo,rm==0?1:8);Xo[im]=1,Uv==2&&(Xo[im=$(xo,8)]=1);var Qo=1}else{var Dr=s(19),bi=$(xo,4)+4;if(19<bi){Vd.a=3;var ui=0;break i}for(Nc=0;Nc<bi;++Nc)Dr[a_[Nc]]=$(xo,3);var Wd=void 0,El=void 0,Hd=Vd,d_=Dr,Ci=Cl,am=Xo,mh=0,Zo=Hd.m,bo=8,ys=o(128,q);r:for(;R(ys,0,7,d_,19);){if($(Zo,1)){var gh=2+2*$(Zo,3);if((Wd=2+$(Zo,gh))>Ci)break r}else Wd=Ci;for(El=0;El<Ci&&Wd--;){ne(Zo);var sm=ys[0+(127&ee(Zo))];X(Zo,Zo.u+sm.g);var Sc=sm.value;if(16>Sc)am[El++]=Sc,Sc!=0&&(bo=Sc);else{var H0=Sc==16,Gv=Sc-16,K0=em[Gv],Vv=$(Zo,dh[Gv])+K0;if(El+Vv>Ci)break r;for(var Y0=H0?bo:0;0<Vv--;)am[El++]=Y0}}mh=1;break r}mh||(Hd.a=3),Qo=mh}(Qo=Qo&&!xo.h)&&(Or=R(W0,zv,8,Xo,Cl)),Qo&&Or!=0?ui=Or:(Vd.a=3,ui=0)}if(ui==0)break n;if($i&&q0[dn]==1&&($i=pa[Dn].g==0),yo+=pa[Dn].g,Dn+=ui,3>=dn){var Kd,om=li[0];for(Kd=1;Kd<jr;++Kd)li[Kd]>om&&(om=li[Kd]);ci+=om}}if(_r.nd=$i,_r.Qb=0,$i&&(_r.qb=(ma[3][$s[3]+0].value<<24|ma[1][$s[1]+0].value<<16|ma[2][$s[2]+0].value)>>>0,yo==0&&256>ma[0][$s[0]+0].value&&(_r.Qb=1,_r.qb+=ma[0][$s[0]+0].value<<8)),_r.jc=!_r.Qb&&6>ci,_r.jc){var vh,xs=_r;for(vh=0;vh<mo;++vh){var Tl=vh,wo=xs.pd[Tl],Ru=xs.G[0][xs.H[0]+Tl];256<=Ru.value?(wo.g=Ru.g+256,wo.value=Ru.value):(wo.g=0,wo.value=0,Tl>>=ai(Ru,8,wo),Tl>>=ai(xs.G[1][xs.H[1]+Tl],16,wo),Tl>>=ai(xs.G[2][xs.H[2]+Tl],0,wo),ai(xs.G[3][xs.H[3]+Tl],24,wo))}}}Lr.vc=Un,Lr.Wb=er,Lr.Ya=oi,Lr.yc=xi,_t=1;break t}_t=0}if(!(oe=_t)){Q.a=3;break e}if(0<qe){if(me.ua=1<<qe,!ue(me.Wa,qe)){Q.a=1,oe=0;break e}}else me.ua=0;var lm=Q,cm=ce,X0=de,um=lm.s,dm=um.xc;if(lm.c=cm,lm.i=X0,um.md=we(cm,dm),um.wc=dm==0?-1:(1<<dm)-1,W){Q.xb=Yo;break e}if((ke=s(ce*de))==null){Q.a=1,oe=0;break e}oe=(oe=Os(Q,ke,0,ce,de,de,null))&&!fe.h;break e}return oe?(ae!=null?ae[0]=ke:(t(ke==null),t(W)),Q.$=0,W||ds(me)):ds(me),oe}function cc(C,L){var W=C.c*C.i,Q=W+L+16*L;return t(C.c<=L),C.V=s(Q),C.V==null?(C.Ta=null,C.Ua=0,C.a=1,0):(C.Ta=C.V,C.Ua=C.Ba+W+L,1)}function iu(C,L){var W=C.C,Q=L-W,ae=C.V,oe=C.Ba+C.c*W;for(t(L<=C.l.o);0<Q;){var ce=16<Q?16:Q,de=C.l.ma,fe=C.l.width,me=fe*ce,ke=de.ca,qe=de.tb+fe*W,ge=C.Ta,Te=C.Ua;wl(C,ce,ae,oe),Ev(ge,Te,ke,qe,me),Fo(de,W,W+ce,ke,qe,fe),Q-=ce,ae+=ce*C.c,W+=ce}t(W==L),C.C=C.Ma=L}function au(){this.ub=this.yd=this.td=this.Rb=0}function jd(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function wv(){this.Fb=this.Bb=this.Cb=0,this.Zb=s(4),this.Lb=s(4)}function Er(){this.Yb=(function(){var C=[];return(function L(W,Q,ae){for(var oe=ae[Q],ce=0;ce<oe&&(W.push(ae.length>Q+1?[]:0),!(ae.length<Q+1));ce++)L(W[ce],Q+1,ae)})(C,0,[3,11]),C})()}function zp(){this.jb=s(3),this.Wc=l([4,8],Er),this.Xc=l([4,17],Er)}function _d(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new s(4),this.od=new s(4)}function fs(){this.ld=this.La=this.dd=this.tc=0}function uc(){this.Na=this.la=0}function $p(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Nd(){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 su(){this.uc=this.M=this.Nb=0,this.wa=Array(new fs),this.Y=0,this.ya=Array(new Nd),this.aa=0,this.l=new Sd}function hs(){this.y=s(16),this.f=s(8),this.ea=s(8)}function Up(){this.cb=this.a=0,this.sc="",this.m=new B,this.Od=new au,this.Kc=new jd,this.ed=new _d,this.Qa=new wv,this.Ic=this.$c=this.Aa=0,this.D=new su,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,B),this.ia=0,this.pb=o(4,$p),this.Pa=new zp,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new hs),this.Hd=0,this.rb=Array(new uc),this.sb=0,this.wa=Array(new fs),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 Nd),this.L=this.aa=0,this.gd=l([4,2],fs),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 pi(C,L){return 0>C?0:C>L?L:C}function Sd(){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 jv(){var C=new Up;return C!=null&&(C.a=0,C.sc="OK",C.cb=0,C.Xb=0,Cu||(Cu=Bo)),C}function mi(C,L,W){return C.a==0&&(C.a=L,C.sc=W,C.cb=0),0}function ou(C,L,W){return 3<=W&&C[L+0]==157&&C[L+1]==1&&C[L+2]==42}function ps(C,L){if(C==null)return 0;if(C.a=0,C.sc="OK",L==null)return mi(C,2,"null VP8Io passed to VP8GetHeaders()");var W=L.data,Q=L.w,ae=L.ha;if(4>ae)return mi(C,7,"Truncated header.");var oe=W[Q+0]|W[Q+1]<<8|W[Q+2]<<16,ce=C.Od;if(ce.Rb=!(1&oe),ce.td=oe>>1&7,ce.yd=oe>>4&1,ce.ub=oe>>5,3<ce.td)return mi(C,3,"Incorrect keyframe parameters.");if(!ce.yd)return mi(C,4,"Frame not displayable.");Q+=3,ae-=3;var de=C.Kc;if(ce.Rb){if(7>ae)return mi(C,7,"cannot parse picture header");if(!ou(W,Q,ae))return mi(C,3,"Bad code word");de.c=16383&(W[Q+4]<<8|W[Q+3]),de.Td=W[Q+4]>>6,de.i=16383&(W[Q+6]<<8|W[Q+5]),de.Ud=W[Q+6]>>6,Q+=7,ae-=7,C.za=de.c+15>>4,C.Ub=de.i+15>>4,L.width=de.c,L.height=de.i,L.Da=0,L.j=0,L.v=0,L.va=L.width,L.o=L.height,L.da=0,L.ib=L.width,L.hb=L.height,L.U=L.width,L.T=L.height,i((oe=C.Pa).jb,0,255,oe.jb.length),t((oe=C.Qa)!=null),oe.Cb=0,oe.Bb=0,oe.Fb=1,i(oe.Zb,0,0,oe.Zb.length),i(oe.Lb,0,0,oe.Lb)}if(ce.ub>ae)return mi(C,7,"bad partition length");H(oe=C.m,W,Q,ce.ub),Q+=ce.ub,ae-=ce.ub,ce.Rb&&(de.Ld=re(oe),de.Kd=re(oe)),de=C.Qa;var fe,me=C.Pa;if(t(oe!=null),t(de!=null),de.Cb=re(oe),de.Cb){if(de.Bb=re(oe),re(oe)){for(de.Fb=re(oe),fe=0;4>fe;++fe)de.Zb[fe]=re(oe)?J(oe,7):0;for(fe=0;4>fe;++fe)de.Lb[fe]=re(oe)?J(oe,6):0}if(de.Bb)for(fe=0;3>fe;++fe)me.jb[fe]=re(oe)?Z(oe,8):255}else de.Bb=0;if(oe.Ka)return mi(C,3,"cannot parse segment header");if((de=C.ed).zd=re(oe),de.Tb=Z(oe,6),de.wb=Z(oe,3),de.Pc=re(oe),de.Pc&&re(oe)){for(me=0;4>me;++me)re(oe)&&(de.vd[me]=J(oe,6));for(me=0;4>me;++me)re(oe)&&(de.od[me]=J(oe,6))}if(C.L=de.Tb==0?0:de.zd?1:2,oe.Ka)return mi(C,3,"cannot parse filter header");var ke=ae;if(ae=fe=Q,Q=fe+ke,de=ke,C.Xb=(1<<Z(C.m,2))-1,ke<3*(me=C.Xb))W=7;else{for(fe+=3*me,de-=3*me,ke=0;ke<me;++ke){var qe=W[ae+0]|W[ae+1]<<8|W[ae+2]<<16;qe>de&&(qe=de),H(C.Jc[+ke],W,fe,qe),fe+=qe,de-=qe,ae+=3}H(C.Jc[+me],W,fe,de),W=fe<Q?0:5}if(W!=0)return mi(C,W,"cannot parse partitions");for(W=Z(fe=C.m,7),ae=re(fe)?J(fe,4):0,Q=re(fe)?J(fe,4):0,de=re(fe)?J(fe,4):0,me=re(fe)?J(fe,4):0,fe=re(fe)?J(fe,4):0,ke=C.Qa,qe=0;4>qe;++qe){if(ke.Cb){var ge=ke.Zb[qe];ke.Fb||(ge+=W)}else{if(0<qe){C.pb[qe]=C.pb[0];continue}ge=W}var Te=C.pb[qe];Te.Sc[0]=zd[pi(ge+ae,127)],Te.Sc[1]=fh[pi(ge+0,127)],Te.Eb[0]=2*zd[pi(ge+Q,127)],Te.Eb[1]=101581*fh[pi(ge+de,127)]>>16,8>Te.Eb[1]&&(Te.Eb[1]=8),Te.Qc[0]=zd[pi(ge+me,117)],Te.Qc[1]=fh[pi(ge+fe,127)],Te.lc=ge+fe}if(!ce.Rb)return mi(C,4,"Not a key frame.");for(re(oe),ce=C.Pa,W=0;4>W;++W){for(ae=0;8>ae;++ae)for(Q=0;3>Q;++Q)for(de=0;11>de;++de)me=he(oe,l_[W][ae][Q][de])?Z(oe,8):U0[W][ae][Q][de],ce.Wc[W][ae].Yb[Q][de]=me;for(ae=0;17>ae;++ae)ce.Xc[W][ae]=ce.Wc[W][Fv[ae]]}return C.kc=re(oe),C.kc&&(C.Bd=Z(oe,8)),C.cb=1}function Bo(C,L,W,Q,ae,oe,ce){var de=L[ae].Yb[W];for(W=0;16>ae;++ae){if(!he(C,de[W+0]))return ae;for(;!he(C,de[W+1]);)if(de=L[++ae].Yb[0],W=0,ae==16)return 16;var fe=L[ae+1].Yb;if(he(C,de[W+2])){var me=C,ke=0;if(he(me,(ge=de)[(qe=W)+3]))if(he(me,ge[qe+6])){for(de=0,qe=2*(ke=he(me,ge[qe+8]))+(ge=he(me,ge[qe+9+ke])),ke=0,ge=Mv[qe];ge[de];++de)ke+=ke+he(me,ge[de]);ke+=3+(8<<qe)}else he(me,ge[qe+7])?(ke=7+2*he(me,165),ke+=he(me,145)):ke=5+he(me,159);else ke=he(me,ge[qe+4])?3+he(me,ge[qe+5]):2;de=fe[2]}else ke=1,de=fe[1];fe=ce+Dv[ae],0>(me=C).b&&le(me);var qe,ge=me.b,Te=(qe=me.Ca>>1)-(me.I>>ge)>>31;--me.b,me.Ca+=Te,me.Ca|=1,me.I-=(qe+1&Te)<<ge,oe[fe]=((ke^Te)-Te)*Q[(0<ae)+0]}return 16}function dc(C){var L=C.rb[C.sb-1];L.la=0,L.Na=0,i(C.zc,0,0,C.zc.length),C.ja=0}function ms(C,L,W,Q,ae){ae=C[L+W+32*Q]+(ae>>3),C[L+W+32*Q]=-256&ae?0>ae?0:255:ae}function Ad(C,L,W,Q,ae,oe){ms(C,L,0,W,Q+ae),ms(C,L,1,W,Q+oe),ms(C,L,2,W,Q-oe),ms(C,L,3,W,Q-ae)}function oo(C){return(20091*C>>16)+C}function Fi(C,L,W,Q){var ae,oe=0,ce=s(16);for(ae=0;4>ae;++ae){var de=C[L+0]+C[L+8],fe=C[L+0]-C[L+8],me=(35468*C[L+4]>>16)-oo(C[L+12]),ke=oo(C[L+4])+(35468*C[L+12]>>16);ce[oe+0]=de+ke,ce[oe+1]=fe+me,ce[oe+2]=fe-me,ce[oe+3]=de-ke,oe+=4,L++}for(ae=oe=0;4>ae;++ae)de=(C=ce[oe+0]+4)+ce[oe+8],fe=C-ce[oe+8],me=(35468*ce[oe+4]>>16)-oo(ce[oe+12]),ms(W,Q,0,0,de+(ke=oo(ce[oe+4])+(35468*ce[oe+12]>>16))),ms(W,Q,1,0,fe+me),ms(W,Q,2,0,fe-me),ms(W,Q,3,0,de-ke),oe++,Q+=32}
vendor: 5,899 bytes, line 1044
1044function kd(C,L,W,Q){var ae=C[L+0]+4,oe=35468*C[L+4]>>16,ce=oo(C[L+4]),de=35468*C[L+1]>>16;Ad(W,Q,0,ae+ce,C=oo(C[L+1]),de),Ad(W,Q,1,ae+oe,C,de),Ad(W,Q,2,ae-oe,C,de),Ad(W,Q,3,ae-ce,C,de)}function lu(C,L,W,Q,ae){Fi(C,L,W,Q),ae&&Fi(C,L+16,W,Q+4)}function _v(C,L,W,Q){Sl(C,L+0,W,Q,1),Sl(C,L+32,W,Q+128,1)}function Zf(C,L,W,Q){var ae;for(C=C[L+0]+4,ae=0;4>ae;++ae)for(L=0;4>L;++L)ms(W,Q,L,ae,C)}function Ln(C,L,W,Q){C[L+0]&&Qi(C,L+0,W,Q),C[L+16]&&Qi(C,L+16,W,Q+4),C[L+32]&&Qi(C,L+32,W,Q+128),C[L+48]&&Qi(C,L+48,W,Q+128+4)}function Jf(C,L,W,Q){var ae,oe=s(16);for(ae=0;4>ae;++ae){var ce=C[L+0+ae]+C[L+12+ae],de=C[L+4+ae]+C[L+8+ae],fe=C[L+4+ae]-C[L+8+ae],me=C[L+0+ae]-C[L+12+ae];oe[0+ae]=ce+de,oe[8+ae]=ce-de,oe[4+ae]=me+fe,oe[12+ae]=me-fe}for(ae=0;4>ae;++ae)ce=(C=oe[0+4*ae]+3)+oe[3+4*ae],de=oe[1+4*ae]+oe[2+4*ae],fe=oe[1+4*ae]-oe[2+4*ae],me=C-oe[3+4*ae],W[Q+0]=ce+de>>3,W[Q+16]=me+fe>>3,W[Q+32]=ce-de>>3,W[Q+48]=me-fe>>3,Q+=64}function cu(C,L,W){var Q,ae=L-32,oe=Pa,ce=255-C[ae-1];for(Q=0;Q<W;++Q){var de,fe=oe,me=ce+C[L-1];for(de=0;de<W;++de)C[L+de]=fe[me+C[ae+de]];L+=32}}function fc(C,L){cu(C,L,4)}function Pd(C,L){cu(C,L,8)}function Gp(C,L){cu(C,L,16)}function Vp(C,L){var W;for(W=0;16>W;++W)r(C,L+32*W,C,L-32,16)}function eh(C,L){var W;for(W=16;0<W;--W)i(C,L,C[L-1],16),L+=32}function lo(C,L,W){var Q;for(Q=0;16>Q;++Q)i(L,W+32*Q,C,16)}function co(C,L){var W,Q=16;for(W=0;16>W;++W)Q+=C[L-1+32*W]+C[L+W-32];lo(Q>>5,C,L)}function Na(C,L){var W,Q=8;for(W=0;16>W;++W)Q+=C[L-1+32*W];lo(Q>>4,C,L)}function qo(C,L){var W,Q=8;for(W=0;16>W;++W)Q+=C[L+W-32];lo(Q>>4,C,L)}function uo(C,L){lo(128,C,L)}function an(C,L,W){return C+2*L+W+2>>2}function zo(C,L){var W,Q=L-32;for(Q=new Uint8Array([an(C[Q-1],C[Q+0],C[Q+1]),an(C[Q+0],C[Q+1],C[Q+2]),an(C[Q+1],C[Q+2],C[Q+3]),an(C[Q+2],C[Q+3],C[Q+4])]),W=0;4>W;++W)r(C,L+32*W,Q,0,Q.length)}function Nv(C,L){var W=C[L-1],Q=C[L-1+32],ae=C[L-1+64],oe=C[L-1+96];be(C,L+0,16843009*an(C[L-1-32],W,Q)),be(C,L+32,16843009*an(W,Q,ae)),be(C,L+64,16843009*an(Q,ae,oe)),be(C,L+96,16843009*an(ae,oe,oe))}function Wp(C,L){var W,Q=4;for(W=0;4>W;++W)Q+=C[L+W-32]+C[L-1+32*W];for(Q>>=3,W=0;4>W;++W)i(C,L+32*W,Q,4)}function uu(C,L){var W=C[L-1+0],Q=C[L-1+32],ae=C[L-1+64],oe=C[L-1-32],ce=C[L+0-32],de=C[L+1-32],fe=C[L+2-32],me=C[L+3-32];C[L+0+96]=an(Q,ae,C[L-1+96]),C[L+1+96]=C[L+0+64]=an(W,Q,ae),C[L+2+96]=C[L+1+64]=C[L+0+32]=an(oe,W,Q),C[L+3+96]=C[L+2+64]=C[L+1+32]=C[L+0+0]=an(ce,oe,W),C[L+3+64]=C[L+2+32]=C[L+1+0]=an(de,ce,oe),C[L+3+32]=C[L+2+0]=an(fe,de,ce),C[L+3+0]=an(me,fe,de)}function Sv(C,L){var W=C[L+1-32],Q=C[L+2-32],ae=C[L+3-32],oe=C[L+4-32],ce=C[L+5-32],de=C[L+6-32],fe=C[L+7-32];C[L+0+0]=an(C[L+0-32],W,Q),C[L+1+0]=C[L+0+32]=an(W,Q,ae),C[L+2+0]=C[L+1+32]=C[L+0+64]=an(Q,ae,oe),C[L+3+0]=C[L+2+32]=C[L+1+64]=C[L+0+96]=an(ae,oe,ce),C[L+3+32]=C[L+2+64]=C[L+1+96]=an(oe,ce,de),C[L+3+64]=C[L+2+96]=an(ce,de,fe),C[L+3+96]=an(de,fe,fe)}function $o(C,L){var W=C[L-1+0],Q=C[L-1+32],ae=C[L-1+64],oe=C[L-1-32],ce=C[L+0-32],de=C[L+1-32],fe=C[L+2-32],me=C[L+3-32];C[L+0+0]=C[L+1+64]=oe+ce+1>>1,C[L+1+0]=C[L+2+64]=ce+de+1>>1,C[L+2+0]=C[L+3+64]=de+fe+1>>1,C[L+3+0]=fe+me+1>>1,C[L+0+96]=an(ae,Q,W),C[L+0+64]=an(Q,W,oe),C[L+0+32]=C[L+1+96]=an(W,oe,ce),C[L+1+32]=C[L+2+96]=an(oe,ce,de),C[L+2+32]=C[L+3+96]=an(ce,de,fe),C[L+3+32]=an(de,fe,me)}function Rs(C,L){var W=C[L+0-32],Q=C[L+1-32],ae=C[L+2-32],oe=C[L+3-32],ce=C[L+4-32],de=C[L+5-32],fe=C[L+6-32],me=C[L+7-32];C[L+0+0]=W+Q+1>>1,C[L+1+0]=C[L+0+64]=Q+ae+1>>1,C[L+2+0]=C[L+1+64]=ae+oe+1>>1,C[L+3+0]=C[L+2+64]=oe+ce+1>>1,C[L+0+32]=an(W,Q,ae),C[L+1+32]=C[L+0+96]=an(Q,ae,oe),C[L+2+32]=C[L+1+96]=an(ae,oe,ce),C[L+3+32]=C[L+2+96]=an(oe,ce,de),C[L+3+64]=an(ce,de,fe),C[L+3+96]=an(de,fe,me)}function Hp(C,L){var W=C[L-1+0],Q=C[L-1+32],ae=C[L-1+64],oe=C[L-1+96];C[L+0+0]=W+Q+1>>1,C[L+2+0]=C[L+0+32]=Q+ae+1>>1,C[L+2+32]=C[L+0+64]=ae+oe+1>>1,C[L+1+0]=an(W,Q,ae),C[L+3+0]=C[L+1+32]=an(Q,ae,oe),C[L+3+32]=C[L+1+64]=an(ae,oe,oe),C[L+3+64]=C[L+2+64]=C[L+0+96]=C[L+1+96]=C[L+2+96]=C[L+3+96]=oe}function Av(C,L){var W=C[L-1+0],Q=C[L-1+32],ae=C[L-1+64],oe=C[L-1+96],ce=C[L-1-32],de=C[L+0-32],fe=C[L+1-32],me=C[L+2-32];C[L+0+0]=C[L+2+32]=W+ce+1>>1,C[L+0+32]=C[L+2+64]=Q+W+1>>1,C[L+0+64]=C[L+2+96]=ae+Q+1>>1,C[L+0+96]=oe+ae+1>>1,C[L+3+0]=an(de,fe,me),C[L+2+0]=an(ce,de,fe),C[L+1+0]=C[L+3+32]=an(W,ce,de),C[L+1+32]=C[L+3+64]=an(Q,W,ce),C[L+1+64]=C[L+3+96]=an(ae,Q,W),C[L+1+96]=an(oe,ae,Q)}function Uo(C,L){var W;for(W=0;8>W;++W)r(C,L+32*W,C,L-32,8)}function jl(C,L){var W;for(W=0;8>W;++W)i(C,L,C[L-1],8),L+=32}function Sa(C,L,W){var Q;for(Q=0;8>Q;++Q)i(L,W+32*Q,C,8)}function Cd(C,L){var W,Q=8;for(W=0;8>W;++W)Q+=C[L+W-32]+C[L-1+32*W];Sa(Q>>4,C,L)}function Ed(C,L){var W,Q=4;for(W=0;8>W;++W)Q+=C[L+W-32];Sa(Q>>3,C,L)}function kv(C,L){var W,Q=4;for(W=0;8>W;++W)Q+=C[L-1+32*W];Sa(Q>>3,C,L)}function du(C,L){Sa(128,C,L)}function fo(C,L,W){var Q=C[L-W],ae=C[L+0],oe=3*(ae-Q)+Ko[1020+C[L-2*W]-C[L+W]],ce=Bd[112+(oe+4>>3)];C[L-W]=Pa[255+Q+Bd[112+(oe+3>>3)]],C[L+0]=Pa[255+ae-ce]}function fu(C,L,W,Q){var ae=C[L+0],oe=C[L+W];return qs[255+C[L-2*W]-C[L-W]]>Q||qs[255+oe-ae]>Q}function hc(C,L,W,Q){return 4*qs[255+C[L-W]-C[L+0]]+qs[255+C[L-2*W]-C[L+W]]<=Q}function Is(C,L,W,Q,ae){var oe=C[L-3*W],ce=C[L-2*W],de=C[L-W],fe=C[L+0],me=C[L+W],ke=C[L+2*W],qe=C[L+3*W];return 4*qs[255+de-fe]+qs[255+ce-me]>Q?0:qs[255+C[L-4*W]-oe]<=ae&&qs[255+oe-ce]<=ae&&qs[255+ce-de]<=ae&&qs[255+qe-ke]<=ae&&qs[255+ke-me]<=ae&&qs[255+me-fe]<=ae}function pc(C,L,W,Q){var ae=2*Q+1;for(Q=0;16>Q;++Q)hc(C,L+Q,W,ae)&&fo(C,L+Q,W)}function mc(C,L,W,Q){var ae=2*Q+1;for(Q=0;16>Q;++Q)hc(C,L+Q*W,1,ae)&&fo(C,L+Q*W,1)}function hu(C,L,W,Q){var ae;for(ae=3;0<ae;--ae)pc(C,L+=4*W,W,Q)}function pu(C,L,W,Q){var ae;for(ae=3;0<ae;--ae)mc(C,L+=4,W,Q)}function Ls(C,L,W,Q,ae,oe,ce,de){for(oe=2*oe+1;0<ae--;){if(Is(C,L,W,oe,ce))if(fu(C,L,W,de))fo(C,L,W);else{var fe=C,me=L,ke=W,qe=fe[me-2*ke],ge=fe[me-ke],Te=fe[me+0],Fe=fe[me+ke],Je=fe[me+2*ke],Ge=27*(Ze=Ko[1020+3*(Te-ge)+Ko[1020+qe-Fe]])+63>>7,Xe=18*Ze+63>>
vendor: 17,591 bytes, line 1044
10447,Ze=9*Ze+63>>7;fe[me-3*ke]=Pa[255+fe[me-3*ke]+Ze],fe[me-2*ke]=Pa[255+qe+Xe],fe[me-ke]=Pa[255+ge+Ge],fe[me+0]=Pa[255+Te-Ge],fe[me+ke]=Pa[255+Fe-Xe],fe[me+2*ke]=Pa[255+Je-Ze]}L+=Q}}function Go(C,L,W,Q,ae,oe,ce,de){for(oe=2*oe+1;0<ae--;){if(Is(C,L,W,oe,ce))if(fu(C,L,W,de))fo(C,L,W);else{var fe=C,me=L,ke=W,qe=fe[me-ke],ge=fe[me+0],Te=fe[me+ke],Fe=Bd[112+(4+(Je=3*(ge-qe))>>3)],Je=Bd[112+(Je+3>>3)],Ge=Fe+1>>1;fe[me-2*ke]=Pa[255+fe[me-2*ke]+Ge],fe[me-ke]=Pa[255+qe+Je],fe[me+0]=Pa[255+ge-Fe],fe[me+ke]=Pa[255+Te-Ge]}L+=Q}}function ca(C,L,W,Q,ae,oe){Ls(C,L,W,1,16,Q,ae,oe)}function _l(C,L,W,Q,ae,oe){Ls(C,L,1,W,16,Q,ae,oe)}function Td(C,L,W,Q,ae,oe){var ce;for(ce=3;0<ce;--ce)Go(C,L+=4*W,W,1,16,Q,ae,oe)}function ho(C,L,W,Q,ae,oe){var ce;for(ce=3;0<ce;--ce)Go(C,L+=4,1,W,16,Q,ae,oe)}function Kp(C,L,W,Q,ae,oe,ce,de){Ls(C,L,ae,1,8,oe,ce,de),Ls(W,Q,ae,1,8,oe,ce,de)}function U(C,L,W,Q,ae,oe,ce,de){Ls(C,L,1,ae,8,oe,ce,de),Ls(W,Q,1,ae,8,oe,ce,de)}function ie(C,L,W,Q,ae,oe,ce,de){Go(C,L+4*ae,ae,1,8,oe,ce,de),Go(W,Q+4*ae,ae,1,8,oe,ce,de)}function pe(C,L,W,Q,ae,oe,ce,de){Go(C,L+4,1,ae,8,oe,ce,de),Go(W,Q+4,1,ae,8,oe,ce,de)}function je(){this.ba=new Sn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Jn,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Me(){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 tt(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function st(){this.ua=0,this.Wa=new ut,this.vb=new ut,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new V,this.yc=new q}function $t(){this.xb=this.a=0,this.l=new Sd,this.ca=new Sn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new z,this.Pb=0,this.wd=new z,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new st,this.ab=0,this.gc=o(4,tt),this.Oc=0}function Lt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Sd,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function gn(C,L,W,Q,ae,oe,ce){for(C=C==null?0:C[L+0],L=0;L<ce;++L)ae[oe+L]=C+W[Q+L]&255,C=ae[oe+L]}function An(C,L,W,Q,ae,oe,ce){var de;if(C==null)gn(null,null,W,Q,ae,oe,ce);else for(de=0;de<ce;++de)ae[oe+de]=C[L+de]+W[Q+de]&255}function Hn(C,L,W,Q,ae,oe,ce){if(C==null)gn(null,null,W,Q,ae,oe,ce);else{var de,fe=C[L+0],me=fe,ke=fe;for(de=0;de<ce;++de)me=ke+(fe=C[L+de])-me,ke=W[Q+de]+(-256&me?0>me?0:255:me)&255,me=fe,ae[oe+de]=ke}}function gi(C,L,W,Q){var ae=L.width,oe=L.o;if(t(C!=null&&L!=null),0>W||0>=Q||W+Q>oe)return null;if(!C.Cc){if(C.ga==null){var ce;if(C.ga=new Lt,(ce=C.ga==null)||(ce=L.width*L.o,t(C.Gb.length==0),C.Gb=s(ce),C.Uc=0,C.Gb==null?ce=0:(C.mb=C.Gb,C.nb=C.Uc,C.rc=null,ce=1),ce=!ce),!ce){ce=C.ga;var de=C.Fa,fe=C.P,me=C.qc,ke=C.mb,qe=C.nb,ge=fe+1,Te=me-1,Fe=ce.l;if(t(de!=null&&ke!=null&&L!=null),fa[0]=null,fa[1]=gn,fa[2]=An,fa[3]=Hn,ce.ca=ke,ce.tb=qe,ce.c=L.width,ce.i=L.height,t(0<ce.c&&0<ce.i),1>=me)L=0;else if(ce.$a=3&de[fe+0],ce.Z=de[fe+0]>>2&3,ce.Lc=de[fe+0]>>4&3,fe=de[fe+0]>>6&3,0>ce.$a||1<ce.$a||4<=ce.Z||1<ce.Lc||fe)L=0;else if(Fe.put=rn,Fe.ac=Es,Fe.bc=us,Fe.ma=ce,Fe.width=L.width,Fe.height=L.height,Fe.Da=L.Da,Fe.v=L.v,Fe.va=L.va,Fe.j=L.j,Fe.o=L.o,ce.$a)e:{t(ce.$a==1),L=ru();t:for(;;){if(L==null){L=0;break e}if(t(ce!=null),ce.mc=L,L.c=ce.c,L.i=ce.i,L.l=ce.l,L.l.ma=ce,L.l.width=ce.c,L.l.height=ce.i,L.a=0,K(L.m,de,ge,Te),!so(ce.c,ce.i,1,L,null)||(L.ab==1&&L.gc[0].hc==3&&ao(L.s)?(ce.ic=1,de=L.c*L.i,L.Ta=null,L.Ua=0,L.V=s(de),L.Ba=0,L.V==null?(L.a=1,L=0):L=1):(ce.ic=0,L=cc(L,ce.c)),!L))break t;L=1;break e}ce.mc=null,L=0}else L=Te>=ce.c*ce.i;ce=!L}if(ce)return null;C.ga.Lc!=1?C.Ga=0:Q=oe-W}t(C.ga!=null),t(W+Q<=oe);e:{if(L=(de=C.ga).c,oe=de.l.o,de.$a==0){if(ge=C.rc,Te=C.Vc,Fe=C.Fa,fe=C.P+1+W*L,me=C.mb,ke=C.nb+W*L,t(fe<=C.P+C.qc),de.Z!=0)for(t(fa[de.Z]!=null),ce=0;ce<Q;++ce)fa[de.Z](ge,Te,Fe,fe,me,ke,L),ge=me,Te=ke,ke+=L,fe+=L;else for(ce=0;ce<Q;++ce)r(me,ke,Fe,fe,L),ge=me,Te=ke,ke+=L,fe+=L;C.rc=ge,C.Vc=Te}else{if(t(de.mc!=null),L=W+Q,t((ce=de.mc)!=null),t(L<=ce.i),ce.C>=L)L=1;else if(de.ic||Vr(),de.ic){de=ce.V,ge=ce.Ba,Te=ce.c;var Je=ce.i,Ge=(Fe=1,fe=ce.$/Te,me=ce.$%Te,ke=ce.m,qe=ce.s,ce.$),Xe=Te*Je,Ze=Te*L,rt=qe.wc,it=Ge<Ze?hi(qe,me,fe):null;t(Ge<=Xe),t(L<=Je),t(ao(qe));t:for(;;){for(;!ke.h&&Ge<Ze;){if(me&rt||(it=hi(qe,me,fe)),t(it!=null),ne(ke),256>(Je=kr(it.G[0],it.H[0],ke)))de[ge+Ge]=Je,++Ge,++me>=Te&&(me=0,++fe<=L&&!(fe%16)&&Xi(ce,fe));else{if(!(280>Je)){Fe=0;break t}Je=la(Je-256,ke);var Kt,Rt=kr(it.G[4],it.H[4],ke);if(ne(ke),!(Ge>=(Rt=Ts(Te,Rt=la(Rt,ke)))&&Xe-Ge>=Je)){Fe=0;break t}for(Kt=0;Kt<Je;++Kt)de[ge+Ge+Kt]=de[ge+Ge+Kt-Rt];for(Ge+=Je,me+=Je;me>=Te;)me-=Te,++fe<=L&&!(fe%16)&&Xi(ce,fe);Ge<Ze&&me&rt&&(it=hi(qe,me,fe))}t(ke.h==te(ke))}Xi(ce,fe>L?L:fe);break t}!Fe||ke.h&&Ge<Xe?(Fe=0,ce.a=ke.h?5:3):ce.$=Ge,L=Fe}else L=Os(ce,ce.V,ce.Ba,ce.c,ce.i,L,iu);if(!L){Q=0;break e}}W+Q>=oe&&(C.Cc=1),Q=1}if(!Q)return null;if(C.Cc&&((Q=C.ga)!=null&&(Q.mc=null),C.ga=null,0<C.Ga))return alert("todo:WebPDequantizeLevels"),null}return C.nb+W*ae}function vr(C,L,W,Q,ae,oe){for(;0<ae--;){var ce,de=C,fe=L+(W?1:0),me=C,ke=L+(W?0:3);for(ce=0;ce<Q;++ce){var qe=me[ke+4*ce];qe!=255&&(qe*=32897,de[fe+4*ce+0]=de[fe+4*ce+0]*qe>>23,de[fe+4*ce+1]=de[fe+4*ce+1]*qe>>23,de[fe+4*ce+2]=de[fe+4*ce+2]*qe>>23)}L+=oe}}function or(C,L,W,Q,ae){for(;0<Q--;){var oe;for(oe=0;oe<W;++oe){var ce=C[L+2*oe+0],de=15&(me=C[L+2*oe+1]),fe=4369*de,me=(240&me|me>>4)*fe>>16;C[L+2*oe+0]=(240&ce|ce>>4)*fe>>16&240|(15&ce|ce<<4)*fe>>16>>4&15,C[L+2*oe+1]=240&me|de}L+=ae}}function Tr(C,L,W,Q,ae,oe,ce,de){var fe,me,ke=255;for(me=0;me<ae;++me){for(fe=0;fe<Q;++fe){var qe=C[L+fe];oe[ce+4*fe]=qe,ke&=qe}L+=W,ce+=de}return ke!=255}function Gr(C,L,W,Q,ae){var oe;for(oe=0;oe<ae;++oe)W[Q+oe]=C[L+oe]>>8}function Vr(){Au=vr,Cv=or,sh=Tr,Ev=Gr}function ua(C,L,W){T[C]=function(Q,ae,oe,ce,de,fe,me,ke,qe,ge,Te,Fe,Je,Ge,Xe,Ze,rt){var it,Kt=rt-1>>1,Rt=de[fe+0]|me[ke+0]<<16,kn=qe[ge+0]|Te[Fe+0]<<16;t(Q!=null);var Bt=3*Rt+kn+131074>>2;for(L(Q[ae+0],255&Bt,Bt>>16,Je,Ge),oe!=null&&(Bt=3*kn+Rt+131074>>2,L(oe[ce+0],255&Bt,Bt>>16,Xe,Ze)),it=1;it<=Kt;++it){var Bn=de[fe+it]|me[ke+it]<<16,Zr=qe[ge+it]|Te[Fe+it]<<16,Cn=Rt+Bn+kn+Zr+524296,It=Cn+2*(Bn+kn)>>3;Bt=It+Rt>>1,Rt=(Cn=Cn+2*(Rt+Zr)>>3)+Bn>>1,L(Q[ae+2*it-1],255&Bt,Bt>>16,Je,Ge+(2*it-1)*W),L(Q[ae+2*it-0],255&Rt,Rt>>16,Je,Ge+(2*it-0)*W),oe!=null&&(Bt=Cn+kn>>1,Rt=It+Zr>>1,L(oe[ce+2*it-1],255&Bt,Bt>>16,Xe,Ze+(2*it-1)*W),L(oe[ce+2*it+0],255&Rt,Rt>>16,Xe,Ze+(2*it+0)*W)),Rt=Bn,kn=Zr}1&rt||(Bt=3*Rt+kn+131074>>2,L(Q[ae+rt-1],255&Bt,Bt>>16,Je,Ge+(rt-1)*W),oe!=null&&(Bt=3*kn+Rt+131074>>2,L(oe[ce+rt-1],255&Bt,Bt>>16,Xe,Ze+(rt-1)*W)))}}function po(){Da[Zp]=c_,Da[wc]=jc,Da[B0]=u_,Da[oh]=Ud,Da[lh]=Eu,Da[br]=hh,Da[Jp]=Bv,Da[qd]=jc,Da[ku]=Ud,Da[ch]=Eu,Da[uh]=hh}function th(C){return C&-16384?0>C?0:255:C>>_c}function mu(C,L){return th((19077*C>>8)+(26149*L>>8)-14234)}function gu(C,L,W){return th((19077*C>>8)-(6419*L>>8)-(13320*W>>8)+8708)}function Nl(C,L){return th((19077*C>>8)+(33050*L>>8)-17685)}function vu(C,L,W,Q,ae){Q[ae+0]=mu(C,W),Q[ae+1]=gu(C,L,W),Q[ae+2]=Nl(C,L)}function Od(C,L,W,Q,ae){Q[ae+0]=Nl(C,L),Q[ae+1]=gu(C,L,W),Q[ae+2]=mu(C,W)}function Rd(C,L,W,Q,ae){var oe=gu(C,L,W);L=oe<<3&224|Nl(C,L)>>3,Q[ae+0]=248&mu(C,W)|oe>>5,Q[ae+1]=L}function da(C,L,W,Q,ae){var oe=240&Nl(C,L)|15;Q[ae+0]=240&mu(C,W)|gu(C,L,W)>>4,Q[ae+1]=oe}function yu(C,L,W,Q,ae){Q[ae+0]=255,vu(C,L,W,Q,ae+1)}function xu(C,L,W,Q,ae){Od(C,L,W,Q,ae),Q[ae+3]=255}function nh(C,L,W,Q,ae){vu(C,L,W,Q,ae),Q[ae+3]=255}function Ms(C,L,W){T[C]=function(Q,ae,oe,ce,de,fe,me,ke,qe){for(var ge=ke+(-2&qe)*W;ke!=ge;)L(Q[ae+0],oe[ce+0],de[fe+0],me,ke),L(Q[ae+1],oe[ce+0],de[fe+0],me,ke+W),ae+=2,++ce,++fe,ke+=2*W;1&qe&&L(Q[ae+0],oe[ce+0],de[fe+0],me,ke)}}function Ai(C,L,W){return W==0?C==0?L==0?6:5:L==0?4:0:W}function Yp(C,L,W,Q,ae){switch(C>>>30){case 3:Sl(L,W,Q,ae,0);break;case 2:Bi(L,W,Q,ae);break;case 1:Qi(L,W,Q,ae)}}function bu(C,L){var W,Q,ae=L.M,oe=L.Nb,ce=C.oc,de=C.pc+40,fe=C.oc,me=C.pc+584,ke=C.oc,qe=C.pc+600;for(W=0;16>W;++W)ce[de+32*W-1]=129;for(W=0;8>W;++W)fe[me+32*W-1]=129,ke[qe+32*W-1]=129;for(0<ae?ce[de-1-32]=fe[me-1-32]=ke[qe-1-32]=129:(i(ce,de-32-1,127,21),i(fe,me-32-1,127,9),i(ke,qe-32-1,127,9)),Q=0;Q<C.za;++Q){var ge=L.ya[L.aa+Q];if(0<Q){for(W=-1;16>W;++W)r(ce,de+32*W-4,ce,de+32*W+12,4);for(W=-1;8>W;++W)r(fe,me+32*W-4,fe,me+32*W+4,4),r(ke,qe+32*W-4,ke,qe+32*W+4,4)}var Te=C.Gd,Fe=C.Hd+Q,Je=ge.ad,Ge=ge.Hc;if(0<ae&&(r(ce,de-32,Te[Fe].y,0,16),r(fe,me-32,Te[Fe].f,0,8),r(ke,qe-32,Te[Fe].ea,0,8)),ge.Za){var Xe=ce,Ze=de-32+16;for(0<ae&&(Q>=C.za-1?i(Xe,Ze,Te[Fe].y[15],4):r(Xe,Ze,Te[Fe+1].y,0,4)),W=0;4>W;W++)Xe[Ze+128+W]=Xe[Ze+256+W]=Xe[Ze+384+W]=Xe[Ze+0+W];for(W=0;16>W;++W,Ge<<=2)Xe=ce,Ze=de+qv[W],zs[ge.Ob[W]](Xe,Ze),Yp(Ge,Je,16*+W,Xe,Ze)}else if(Xe=Ai(Q,ae,ge.Ob[0]),Ca[Xe](ce,de),Ge!=0)for(W=0;16>W;++W,Ge<<=2)Yp(Ge,Je,16*+W,ce,de+qv[W]);for(W=ge.Gc,Xe=Ai(Q,ae,ge.Dd),Ma[Xe](fe,me),Ma[Xe](ke,qe),Ge=Je,Xe=fe,Ze=me,255&(ge=0|W)&&(170&ge?Wo(Ge,256,Xe,Ze):go(Ge,256,Xe,Ze)),ge=ke,Ge=qe,255&(W>>=8)&&(170&W?Wo(Je,320,ge,Ge):go(Je,320,ge,Ge)),ae<C.Ub-1&&(r(Te[Fe].y,0,ce,de+480,16),r(Te[Fe].f,0,fe,me+224,8),r(Te[Fe].ea,0,ke,qe+224,8)),W=8*oe*C.B,Te=C.sa,Fe=C.ta+16*Q+16*oe*C.R,Je=C.qa,ge=C.ra+8*Q+W,Ge=C.Ha,Xe=C.Ia+8*Q+W,W=0;16>W;++W)r(Te,Fe+W*C.R,ce,de+32*W,16);for(W=0;8>W;++W)r(Je,ge+W*C.B,fe,me+32*W,8),r(Ge,Xe+W*C.B,ke,qe+32*W,8)}}function rh(C,L,W,Q,ae,oe,ce,de,fe){var me=[0],ke=[0],qe=0,ge=fe!=null?fe.kd:0,Te=fe??new Me;if(C==null||12>W)return 7;Te.data=C,Te.w=L,Te.ha=W,L=[L],W=[W],Te.gb=[Te.gb];e:{var Fe=L,Je=W,Ge=Te.gb;if(t(C!=null),t(Je!=null),t(Ge!=null),Ge[0]=0,12<=Je[0]&&!n(C,Fe[0],"RIFF")){if(n(C,Fe[0]+8,"WEBP")){Ge=3;break e}var Xe=He(C,Fe[0]+4);if(12>Xe||4294967286<Xe){Ge=3;break e}if(ge&&Xe>Je[0]-8){Ge=7;break e}Ge[0]=Xe,Fe[0]+=12,Je[0]-=12}Ge=0}if(Ge!=0)return Ge;for(Xe=0<Te.gb[0],W=W[0];;){e:{var Ze=C;Je=L,Ge=W;var rt=me,it=ke,Kt=Fe=[0];if((Bt=qe=[qe])[0]=0,8>Ge[0])Ge=7;else{if(!n(Ze,Je[0],"VP8X")){if(He(Ze,Je[0]+4)!=10){Ge=3;break e}if(18>Ge[0]){Ge=7;break e}var Rt=He(Ze,Je[0]+8),kn=1+ze(Ze,Je[0]+12);if(2147483648<=kn*(Ze=1+ze(Ze,Je[0]+15))){Ge=3;break e}Kt!=null&&(Kt[0]=Rt),rt!=null&&(rt[0]=kn),it!=null&&(it[0]=Ze),Je[0]+=18,Ge[0]-=18,Bt[0]=1}Ge=0}}if(qe=qe[0],Fe=Fe[0],Ge!=0)return Ge;if(Je=!!(2&Fe),!Xe&&qe)return 3;if(oe!=null&&(oe[0]=!!(16&Fe)),ce!=null&&(ce[0]=Je),de!=null&&(de[0]=0),ce=me[0],Fe=ke[0],qe&&Je&&fe==null){Ge=0;break}if(4>W){Ge=7;break}if(Xe&&qe||!Xe&&!qe&&!n(C,L[0],"ALPH")){W=[W],Te.na=[Te.na],Te.P=[Te.P],Te.Sa=[Te.Sa];e:{Rt=C,Ge=L,Xe=W;var Bt=Te.gb;rt=Te.na,it=Te.P,Kt=Te.Sa,kn=22,t(Rt!=null),t(Xe!=null),Ze=Ge[0];var Bn=Xe[0];for(t(rt!=null),t(Kt!=null),rt[0]=null,it[0]=null,Kt[0]=0;;){if(Ge[0]=Ze,Xe[0]=Bn,8>Bn){Ge=7;break e}var Zr=He(Rt,Ze+4);if(4294967286<Zr){Ge=3;break e}var Cn=8+Zr+1&-2;if(kn+=Cn,0<Bt&&kn>Bt){Ge=3;break e}if(!n(Rt,Ze,"VP8 ")||!n(Rt,Ze,"VP8L")){Ge=0;break e}if(Bn[0]<Cn){Ge=7;break e}n(Rt,Ze,"ALPH")||(rt[0]=Rt,it[0]=Ze+8,Kt[0]=Zr),Ze+=Cn,Bn-=Cn}}if(W=W[0],Te.na=Te.na[0],Te.P=Te.P[0],Te.Sa=Te.Sa[0],Ge!=0)break}W=[W],Te.Ja=[Te.Ja],Te.xa=[Te.xa];e:if(Bt=C,Ge=L,Xe=W,rt=Te.gb[0],it=Te.Ja,Kt=Te.xa,Rt=Ge[0],Ze=!n(Bt,Rt,"VP8 "),kn=!n(Bt,Rt,"VP8L"),t(Bt!=null),t(Xe!=null),t(it!=null),t(Kt!=null),8>Xe[0])Ge=7;else{if(Ze||kn){if(Bt=He(Bt,Rt+4),12<=rt&&Bt>rt-12){Ge=3;break e}if(ge&&Bt>Xe[0]-8){Ge=7;break e}it[0]=Bt,Ge[0]+=8,Xe[0]-=8,Kt[0]=kn}else Kt[0]=5<=Xe[0]&&Bt[Rt+0]==47&&!(Bt[Rt+4]>>5),it[0]=Xe[0];Ge=0}if(W=W[0],Te.Ja=Te.Ja[0],Te.xa=Te.xa[0],L=L[0],Ge!=0)break;if(4294967286<Te.Ja)return 3;if(de==null||Je||(de[0]=Te.xa?2:1),ce=[ce],Fe=[Fe],Te.xa){if(5>W){Ge=7;break}de=ce,ge=Fe,Je=oe,C==null||5>W?C=0:5<=W&&C[L+0]==47&&!(C[L+4]>>5)?(Xe=[0],Bt=[0],rt=[0],K(it=new z,C,L,W),io(it,Xe,Bt,rt)?(de!=null&&(de[0]=Xe[0]),ge!=null&&(ge[0]=Bt[0]),Je!=null&&(Je[0]=rt[0]),C=1):C=0):C=0}else{if(10>W){Ge=7;break}de=Fe,C==null||10>W||!ou(C,L+3,W-3)?C=0:(ge=C[L+0]|C[L+1]<<8|C[L+2]<<16,Je=16383&(C[L+7]<<8|C[L+6]),C=16383&(C[L+9]<<8|C[L+8]),1&ge||3<(ge>>1&7)||!(ge>>4&1)||ge>>5>=Te.Ja||!Je||!C?C=0:(ce&&(ce[0]=Je),de&&(de[0]=C),C=1))}if(!C||(ce=ce[0],Fe=Fe[0],qe&&(me[0]!=ce||ke[0]!=Fe)))return 3;fe!=null&&(fe[0]=Te,fe.offset=L-fe.w,t(4294967286>L-fe.w),t(fe.offset==fe.ha-W));break}return Ge==0||Ge==7&&qe&&fe==null?(oe!=null&&(oe[0]|=Te.na!=null&&0<Te.na.length),Q!=null&&(Q[0]=ce),ae!=null&&(ae[0]=Fe),0):Ge}function gs(C,L,W){var Q=L.width,ae=L.height,oe=0,ce=0,de=Q,fe=ae;if(L.Da=C!=null&&0<C.Da,L.Da&&(de=C.cd,fe=C.bd,oe=C.v,ce=C.j,11>W||(oe&=-2,ce&=-2),0>oe||0>ce||0>=de||0>=fe||oe+de>Q||ce+fe>ae))return 0;if(L.v=oe,L.j=ce,L.va=oe+de,L.o=ce+fe,L.U=de,L.T=fe,L.da=C!=null&&0<C.da,L.da){if(!Ee(de,fe,W=[C.ib],oe=[C.hb]))return 0;L.ib=W[0],L.hb=oe[0]}return L.ob=C!=null&&C.ob,L.Kb=C==null||!C.Sd,L.da&&(L.ob=L.ib<3*Q/4&&L.hb<3*ae/4,L.Kb=0),1}function gc(C){if(C==null)return 2;if(11>C.S){var L=C.f.RGBA;L.fb+=(C.height-1)*L.A,L.A=-L.A}else L=C.f.kb,C=C.height,L.O+=(C-1)*L.fa,L.fa=-L.fa,L.N+=(C-1>>1)*L.Ab,L.Ab=-L.Ab,L.W+=(C-1>>1)*L.Db,L.Db=-L.Db,L.F!=null&&(L.J+=(C-1)*L.lb,L.lb=-L.lb);return 0}function Id(C,L,W,Q){if(Q==null||0>=C||0>=L)return 2;if(W!=null){if(W.Da){var ae=W.cd,oe=W.bd,ce=-2&W.v,de=-2&W.j;if(0>ce||0>de||0>=ae||0>=oe||ce+ae>C||de+oe>L)return 2;C=ae,L=oe}if(W.da){if(!Ee(C,L,ae=[W.ib],oe=[W.hb]))return 2;C=ae[0],L=oe[0]}}Q.width=C,Q.height=L;e:{var fe=Q.width,me=Q.height;if(C=Q.S,0>=fe||0>=me||!(C>=Zp&&13>C))C=2;else{if(0>=Q.Rd&&Q.sd==null){ce=oe=ae=L=0;var ke=(de=fe*ph[C])*me;if(11>C||(oe=(me+1)/2*(L=(fe+1)/2),C==12&&(ce=(ae=fe)*me)),(me=s(ke+2*oe+ce))==null){C=1;break e}Q.sd=me,11>C?((fe=Q.f.RGBA).eb=me,fe.fb=0,fe.A=de,fe.size=ke):((fe=Q.f.kb).y=me,fe.O=0,fe.fa=de,fe.Fd=ke,fe.f=me,fe.N=0+ke,fe.Ab=L,fe.Cd=oe,fe.ea=me,fe.W=0+ke+oe,fe.Db=L,fe.Ed=oe,C==12&&(fe.F=me,fe.J=0+ke+2*oe),fe.Tc=ce,fe.lb=ae)}if(L=1,ae=Q.S,oe=Q.width,ce=Q.height,ae>=Zp&&13>ae)if(11>ae)C=Q.f.RGBA,L&=(de=Math.abs(C.A))*(ce-1)+oe<=C.size,L&=de>=oe*ph[ae],L&=C.eb!=null;else{C=Q.f.kb,de=(oe+1)/2,ke=(ce+1)/2,fe=Math.abs(C.fa),me=Math.abs(C.Ab);var qe=Math.abs(C.Db),ge=Math.abs(C.lb),Te=ge*(ce-1)+oe;L&=fe*(ce-1)+oe<=C.Fd,L&=me*(ke-1)+de<=C.Cd,L=(L&=qe*(ke-1)+de<=C.Ed)&fe>=oe&me>=de&qe>=de,L&=C.y!=null,L&=C.f!=null,L&=C.ea!=null,ae==12&&(L&=ge>=oe,L&=Te<=C.Tc,L&=C.F!=null)}else L=0;C=L?0:2}}return C!=0||W!=null&&W.fd&&(C=gc(Q)),C}var mo=64,wu=[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],ih=24,Aa=32,ka=8,ju=[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,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,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];We("Predictor0","PredictorAdd0"),T.Predictor0=function(){return 4278190080},T.Predictor1=function(C){return C},T.Predictor2=function(C,L,W){return L[W+0]},T.Predictor3=function(C,L,W){return L[W+1]},T.Predictor4=function(C,L,W){return L[W-1]},T.Predictor5=function(C,L,W){return dt(dt(C,L[W+1]),L[W+0])},T.Predictor6=function(C,L,W){return dt(C,L[W-1])},T.Predictor7=function(C,L,W){return dt(C,L[W+0])},T.Predictor8=function(C,L,W){return dt(L[W-1],L[W+0])},T.Predictor9=function(C,L,W){return dt(L[W+0],L[W+1])},T.Predictor10=function(C,L,W){return dt(dt(C,L[W-1]),dt(L[W+0],L[W+1]))},T.Predictor11=function(C,L,W){var Q=L[W+0];return 0>=De(Q>>24&255,C>>24&255,(L=L[W-1])>>24&255)+De(Q>>16&255,C>>16&255,L>>16&255)+De(Q>>8&255,C>>8&255,L>>8&255)+De(255&Q,255&C,255&L)?Q:C},T.Predictor12=function(C,L,W){var Q=L[W+0];return(St((C>>24&255)+(Q>>24&255)-((L=L[W-1])>>24&255))<<24|St((C>>16&255)+(Q>>16&255)-(L>>16&255))<<16|St((C>>8&255)+(Q>>8&255)-(L>>8&255))<<8|St((255&C)+(255&Q)-(255&L)))>>>0},T.Predictor13=function(C,L,W){var Q=L[W-1];return(Nt((C=dt(C,L[W+0]))>>24&255,Q>>24&255)<<24|Nt(C>>16&255,Q>>16&255)<<16|Nt(C>>8&255,Q>>8&255)<<8|Nt(255&C,255&Q))>>>0};var Ds=T.PredictorAdd0;T.PredictorAdd1=et,We("Predictor2","PredictorAdd2"),We("Predictor3","PredictorAdd3"),We("Predictor4","PredictorAdd4"),We("Predictor5","PredictorAdd5"),We("Predictor6","PredictorAdd6"),We("Predictor7","PredictorAdd7"),We("Predictor8","PredictorAdd8"),We("Predictor9","PredictorAdd9"),We("Predictor10","PredictorAdd10"),We("Predictor11","PredictorAdd11"),We("Predictor12","PredictorAdd12"),We("Predictor13","PredictorAdd13");var Fs=T.PredictorAdd2;jt("ColorIndexInverseTransform","MapARGB","32b",function(C){return C>>8&255},function(C){return C}),jt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(C){return C},function(C){return C>>8&255});var Ld,Vo=T.ColorIndexInverseTransform,vi=T.MapARGB,Xp=T.VP8LColorIndexInverseTransformAlpha,Bs=T.MapAlpha,vs=T.VP8LPredictorsAdd=[];vs.length=16,(T.VP8LPredictors=[]).length=16,(T.VP8LPredictorsAdd_C=[]).length=16,(T.VP8LPredictors_C=[]).length=16;var vc,Md,Dd,Fd,_u,Nu,yc,Sl,Bi,Wo,Qi,go,yr,xr,Wr,ki,Al,Ho,xc,bc,Qp,Pv,ah,Su,Au,Cv,sh,Ev,Tv=s(511),Ov=s(2041),Rv=s(225),Iv=s(767),Lv=0,Ko=Ov,Bd=Rv,Pa=Iv,qs=Tv,Zp=0,wc=1,B0=2,oh=3,lh=4,br=5,Jp=6,qd=7,ku=8,ch=9,uh=10,dh=[2,3,7],em=[3,3,11],Pu=[280,256,256,256,40],q0=[0,1,1,1,0],a_=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],s_=[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,
vendor: 4,135 bytes, line 1044
104464,114,126,97,111,80,113,127,96,112],z0=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],tm=8,zd=[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],fh=[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],Cu=null,Mv=[[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]],Dv=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],$0=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],U0=[[[[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
10445,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]]]],o_=[[[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,
10441,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]]],l_=[[[[255,255,255,255,255,255,255,255,255,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: 26,070 bytes, lines 1044-1068
10445,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]]]],Fv=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ca=[],zs=[],Ma=[],Yo=1,$d=2,fa=[],Da=[];ua("UpsampleRgbLinePair",vu,3),ua("UpsampleBgrLinePair",Od,3),ua("UpsampleRgbaLinePair",nh,4),ua("UpsampleBgraLinePair",xu,4),ua("UpsampleArgbLinePair",yu,4),ua("UpsampleRgba4444LinePair",da,2),ua("UpsampleRgb565LinePair",Rd,2);var c_=T.UpsampleRgbLinePair,u_=T.UpsampleBgrLinePair,jc=T.UpsampleRgbaLinePair,Ud=T.UpsampleBgraLinePair,Eu=T.UpsampleArgbLinePair,hh=T.UpsampleRgba4444LinePair,Bv=T.UpsampleRgb565LinePair,kl=16,vo=1<<kl-1,lr=-227,dr=482,_c=6,Zi=0,Fa=s(256),Tu=s(256),Gd=s(256),Ba=s(256),nm=s(dr-lr),G0=s(dr-lr);Ms("YuvToRgbRow",vu,3),Ms("YuvToBgrRow",Od,3),Ms("YuvToRgbaRow",nh,4),Ms("YuvToBgraRow",xu,4),Ms("YuvToArgbRow",yu,4),Ms("YuvToRgba4444Row",da,2),Ms("YuvToRgb565Row",Rd,2);var qv=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ou=[0,2,8],V0=[8,7,6,4,4,2,2,2,1,1,1,1],Pl=1;this.WebPDecodeRGBA=function(C,L,W,Q,ae){var oe=wc,ce=new je,de=new Sn;ce.ba=de,de.S=oe,de.width=[de.width],de.height=[de.height];var fe=de.width,me=de.height,ke=new nn;if(ke==null||C==null)var qe=2;else t(ke!=null),qe=rh(C,L,W,ke.width,ke.height,ke.Pd,ke.Qd,ke.format,null);if(qe!=0?fe=0:(fe!=null&&(fe[0]=ke.width[0]),me!=null&&(me[0]=ke.height[0]),fe=1),fe){de.width=de.width[0],de.height=de.height[0],Q!=null&&(Q[0]=de.width),ae!=null&&(ae[0]=de.height);e:{if(Q=new Sd,(ae=new Me).data=C,ae.w=L,ae.ha=W,ae.kd=1,L=[0],t(ae!=null),((C=rh(ae.data,ae.w,ae.ha,null,null,null,L,null,ae))==0||C==7)&&L[0]&&(C=4),(L=C)==0){if(t(ce!=null),Q.data=ae.data,Q.w=ae.w+ae.offset,Q.ha=ae.ha-ae.offset,Q.put=rn,Q.ac=Es,Q.bc=us,Q.ma=ce,ae.xa){if((C=ru())==null){ce=1;break e}if((function(ge,Te){var Fe=[0],Je=[0],Ge=[0];t:for(;;){if(ge==null)return 0;if(Te==null)return ge.a=2,0;if(ge.l=Te,ge.a=0,K(ge.m,Te.data,Te.w,Te.ha),!io(ge.m,Fe,Je,Ge)){ge.a=3;break t}if(ge.xb=$d,Te.width=Fe[0],Te.height=Je[0],!so(Fe[0],Je[0],1,ge,null))break t;return 1}return t(ge.a!=0),0})(C,Q)){if(Q=(L=Id(Q.width,Q.height,ce.Oa,ce.ba))==0){t:{Q=C;n:for(;;){if(Q==null){Q=0;break t}if(t(Q.s.yc!=null),t(Q.s.Ya!=null),t(0<Q.s.Wb),t((W=Q.l)!=null),t((ae=W.ma)!=null),Q.xb!=0){if(Q.ca=ae.ba,Q.tb=ae.tb,t(Q.ca!=null),!gs(ae.Oa,W,oh)){Q.a=2;break n}if(!cc(Q,W.width)||W.da)break n;if((W.da||tn(Q.ca.S))&&Vr(),11>Q.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Q.ca.f.kb.F!=null&&Vr()),Q.Pb&&0<Q.s.ua&&Q.s.vb.X==null&&!ue(Q.s.vb,Q.s.Wa.Xa)){Q.a=1;break n}Q.xb=0}if(!Os(Q,Q.V,Q.Ba,Q.c,Q.i,W.o,lc))break n;ae.Dc=Q.Ma,Q=1;break t}t(Q.a!=0),Q=0}Q=!Q}Q&&(L=C.a)}else L=C.a}else{if((C=new jv)==null){ce=1;break e}if(C.Fa=ae.na,C.P=ae.P,C.qc=ae.Sa,ps(C,Q)){if((L=Id(Q.width,Q.height,ce.Oa,ce.ba))==0){if(C.Aa=0,W=ce.Oa,t((ae=C)!=null),W!=null){if(0<(fe=0>(fe=W.Md)?0:100<fe?255:255*fe/100)){for(me=ke=0;4>me;++me)12>(qe=ae.pb[me]).lc&&(qe.ia=fe*V0[0>qe.lc?0:qe.lc]>>3),ke|=qe.ia;ke&&(alert("todo:VP8InitRandom"),ae.ia=1)}ae.Ga=W.Id,100<ae.Ga?ae.Ga=100:0>ae.Ga&&(ae.Ga=0)}(function(ge,Te){if(ge==null)return 0;if(Te==null)return mi(ge,2,"NULL VP8Io parameter in VP8Decode().");if(!ge.cb&&!ps(ge,Te))return 0;if(t(ge.cb),Te.ac==null||Te.ac(Te)){Te.ob&&(ge.L=0);var Fe=Ou[ge.L];if(ge.L==2?(ge.yb=0,ge.zb=0):(ge.yb=Te.v-Fe>>4,ge.zb=Te.j-Fe>>4,0>ge.yb&&(ge.yb=0),0>ge.zb&&(ge.zb=0)),ge.Va=Te.o+15+Fe>>4,ge.Hb=Te.va+15+Fe>>4,ge.Hb>ge.za&&(ge.Hb=ge.za),ge.Va>ge.Ub&&(ge.Va=ge.Ub),0<ge.L){var Je=ge.ed;for(Fe=0;4>Fe;++Fe){var Ge;if(ge.Qa.Cb){var Xe=ge.Qa.Lb[Fe];ge.Qa.Fb||(Xe+=Je.Tb)}else Xe=Je.Tb;for(Ge=0;1>=Ge;++Ge){var Ze=ge.gd[Fe][Ge],rt=Xe;if(Je.Pc&&(rt+=Je.vd[0],Ge&&(rt+=Je.od[0])),0<(rt=0>rt?0:63<rt?63:rt)){var it=rt;0<Je.wb&&(it=4<Je.wb?it>>2:it>>1)>9-Je.wb&&(it=9-Je.wb),1>it&&(it=1),Ze.dd=it,Ze.tc=2*rt+it,Ze.ld=40<=rt?2:15<=rt?1:0}else Ze.tc=0;Ze.La=Ge}}}Fe=0}else mi(ge,6,"Frame setup failed"),Fe=ge.a;if(Fe=Fe==0){if(Fe){ge.$c=0,0<ge.Aa||(ge.Ic=Pl);t:{Fe=ge.Ic,Je=4*(it=ge.za);var Kt=32*it,Rt=it+1,kn=0<ge.L?it*(0<ge.Aa?2:1):0,Bt=(ge.Aa==2?2:1)*it;if((Ze=Je+832+(Ge=3*(16*Fe+Ou[ge.L])/2*Kt)+(Xe=ge.Fa!=null&&0<ge.Fa.length?ge.Kc.c*ge.Kc.i:0))!=Ze)Fe=0;else{if(Ze>ge.Vb){if(ge.Vb=0,ge.Ec=s(Ze),ge.Fc=0,ge.Ec==null){Fe=mi(ge,1,"no memory during frame initialization.");break t}ge.Vb=Ze}Ze=ge.Ec,rt=ge.Fc,ge.Ac=Ze,ge.Bc=rt,rt+=Je,ge.Gd=o(Kt,hs),ge.Hd=0,ge.rb=o(Rt+1,uc),ge.sb=1,ge.wa=kn?o(kn,fs):null,ge.Y=0,ge.D.Nb=0,ge.D.wa=ge.wa,ge.D.Y=ge.Y,0<ge.Aa&&(ge.D.Y+=it),t(!0),ge.oc=Ze,ge.pc=rt,rt+=832,ge.ya=o(Bt,Nd),ge.aa=0,ge.D.ya=ge.ya,ge.D.aa=ge.aa,ge.Aa==2&&(ge.D.aa+=it),ge.R=16*it,ge.B=8*it,it=(Kt=Ou[ge.L])*ge.R,Kt=Kt/2*ge.B,ge.sa=Ze,ge.ta=rt+it,ge.qa=ge.sa,ge.ra=ge.ta+16*Fe*ge.R+Kt,ge.Ha=ge.qa,ge.Ia=ge.ra+8*Fe*ge.B+Kt,ge.$c=0,rt+=Ge,ge.mb=Xe?Ze:null,ge.nb=Xe?rt:null,t(rt+Xe<=ge.Fc+ge.Vb),dc(ge),i(ge.Ac,ge.Bc,0,Je),Fe=1}}if(Fe){if(Te.ka=0,Te.y=ge.sa,Te.O=ge.ta,Te.f=ge.qa,Te.N=ge.ra,Te.ea=ge.Ha,Te.Vd=ge.Ia,Te.fa=ge.R,Te.Rc=ge.B,Te.F=null,Te.J=0,!Lv){for(Fe=-255;255>=Fe;++Fe)Tv[255+Fe]=0>Fe?-Fe:Fe;for(Fe=-1020;1020>=Fe;++Fe)Ov[1020+Fe]=-128>Fe?-128:127<Fe?127:Fe;for(Fe=-112;112>=Fe;++Fe)Rv[112+Fe]=-16>Fe?-16:15<Fe?15:Fe;for(Fe=-255;510>=Fe;++Fe)Iv[255+Fe]=0>Fe?0:255<Fe?255:Fe;Lv=1}yc=Jf,Sl=lu,Wo=_v,Qi=Zf,go=Ln,Bi=kd,yr=ca,xr=_l,Wr=Kp,ki=U,Al=Td,Ho=ho,xc=ie,bc=pe,Qp=pc,Pv=mc,ah=hu,Su=pu,zs[0]=Wp,zs[1]=fc,zs[2]=zo,zs[3]=Nv,zs[4]=uu,zs[5]=$o,zs[6]=Sv,zs[7]=Rs,zs[8]=Av,zs[9]=Hp,Ca[0]=co,Ca[1]=Gp,Ca[2]=Vp,Ca[3]=eh,Ca[4]=Na,Ca[5]=qo,Ca[6]=uo,Ma[0]=Cd,Ma[1]=Pd,Ma[2]=Uo,Ma[3]=jl,Ma[4]=kv,Ma[5]=Ed,Ma[6]=du,Fe=1}else Fe=0}Fe&&(Fe=(function(Bn,Zr){for(Bn.M=0;Bn.M<Bn.Va;++Bn.M){var Cn,It=Bn.Jc[Bn.M&Bn.Xb],_t=Bn.m,si=Bn;for(Cn=0;Cn<si.za;++Cn){var dn=_t,Dn=si,Pr=Dn.Ac,qi=Dn.Bc+4*Cn,yi=Dn.zc,Hr=Dn.ya[Dn.aa+Cn];if(Dn.Qa.Bb?Hr.$b=he(dn,Dn.Pa.jb[0])?2+he(dn,Dn.Pa.jb[2]):he(dn,Dn.Pa.jb[1]):Hr.$b=0,Dn.kc&&(Hr.Ad=he(dn,Dn.Bd)),Hr.Za=!he(dn,145)+0,Hr.Za){var Pi=Hr.Ob,zi=0;for(Dn=0;4>Dn;++Dn){var Lr,Un=yi[0+Dn];for(Lr=0;4>Lr;++Lr){Un=o_[Pr[qi+Lr]][Un];for(var er=$0[he(dn,Un[0])];0<er;)er=$0[2*er+he(dn,Un[er])];Un=-er,Pr[qi+Lr]=Un}r(Pi,zi,Pr,qi,4),zi+=4,yi[0+Dn]=Un}}else Un=he(dn,156)?he(dn,128)?1:3:he(dn,163)?2:0,Hr.Ob[0]=Un,i(Pr,qi,Un,4),i(yi,0,Un,4);Hr.Dd=he(dn,142)?he(dn,114)?he(dn,183)?1:3:2:0}if(si.m.Ka)return mi(Bn,7,"Premature end-of-partition0 encountered.");for(;Bn.ja<Bn.za;++Bn.ja){if(si=It,dn=(_t=Bn).rb[_t.sb-1],Pr=_t.rb[_t.sb+_t.ja],Cn=_t.ya[_t.aa+_t.ja],qi=_t.kc?Cn.Ad:0)dn.la=Pr.la=0,Cn.Za||(dn.Na=Pr.Na=0),Cn.Hc=0,Cn.Gc=0,Cn.ia=0;else{var Mr,tr;if(dn=Pr,Pr=si,qi=_t.Pa.Xc,yi=_t.ya[_t.aa+_t.ja],Hr=_t.pb[yi.$b],Dn=yi.ad,Pi=0,zi=_t.rb[_t.sb-1],Un=Lr=0,i(Dn,Pi,0,384),yi.Za)var Jr=0,ei=qi[3];else{er=s(16);var wr=dn.Na+zi.Na;if(wr=Cu(Pr,qi[1],wr,Hr.Eb,0,er,0),dn.Na=zi.Na=(0<wr)+0,1<wr)yc(er,0,Dn,Pi);else{var ha=er[0]+3>>3;for(er=0;256>er;er+=16)Dn[Pi+er]=ha}Jr=1,ei=qi[0]}var fr=15&dn.la,jr=15&zi.la;for(er=0;4>er;++er){var xi=1&jr;for(ha=tr=0;4>ha;++ha)fr=fr>>1|(xi=(wr=Cu(Pr,ei,wr=xi+(1&fr),Hr.Sc,Jr,Dn,Pi))>Jr)<<7,tr=tr<<2|(3<wr?3:1<wr?2:Dn[Pi+0]!=0),Pi+=16;fr>>=4,jr=jr>>1|xi<<7,Lr=(Lr<<8|tr)>>>0}for(ei=fr,Jr=jr>>4,Mr=0;4>Mr;Mr+=2){for(tr=0,fr=dn.la>>4+Mr,jr=zi.la>>4+Mr,er=0;2>er;++er){for(xi=1&jr,ha=0;2>ha;++ha)wr=xi+(1&fr),fr=fr>>1|(xi=0<(wr=Cu(Pr,qi[2],wr,Hr.Qc,0,Dn,Pi)))<<3,tr=tr<<2|(3<wr?3:1<wr?2:Dn[Pi+0]!=0),Pi+=16;fr>>=2,jr=jr>>1|xi<<5}Un|=tr<<4*Mr,ei|=fr<<4<<Mr,Jr|=(240&jr)<<Mr}dn.la=ei,zi.la=Jr,yi.Hc=Lr,yi.Gc=Un,yi.ia=43690&Un?0:Hr.ia,qi=!(Lr|Un)}if(0<_t.L&&(_t.wa[_t.Y+_t.ja]=_t.gd[Cn.$b][Cn.Za],_t.wa[_t.Y+_t.ja].La|=!qi),si.Ka)return mi(Bn,7,"Premature end-of-file encountered.")}if(dc(Bn),_t=Zr,si=1,Cn=(It=Bn).D,dn=0<It.L&&It.M>=It.zb&&It.M<=It.Va,It.Aa==0)t:{if(Cn.M=It.M,Cn.uc=dn,bu(It,Cn),si=1,Cn=(tr=It.D).Nb,dn=(Un=Ou[It.L])*It.R,Pr=Un/2*It.B,er=16*Cn*It.R,ha=8*Cn*It.B,qi=It.sa,yi=It.ta-dn+er,Hr=It.qa,Dn=It.ra-Pr+ha,Pi=It.Ha,zi=It.Ia-Pr+ha,jr=(fr=tr.M)==0,Lr=fr>=It.Va-1,It.Aa==2&&bu(It,tr),tr.uc)for(xi=(wr=It).D.M,t(wr.D.uc),tr=wr.yb;tr<wr.Hb;++tr){Jr=tr,ei=xi;var Ji=(qa=(ci=wr).D).Nb;Mr=ci.R;var qa=qa.wa[qa.Y+Jr],oi=ci.sa,li=ci.ta+16*Ji*Mr+16*Jr,pa=qa.dd,_r=qa.tc;if(_r!=0)if(t(3<=_r),ci.L==1)0<Jr&&Pv(oi,li,Mr,_r+4),qa.La&&Su(oi,li,Mr,_r),0<ei&&Qp(oi,li,Mr,_r+4),qa.La&&ah(oi,li,Mr,_r);else{var ma=ci.B,$s=ci.qa,yo=ci.ra+8*Ji*ma+8*Jr,$i=ci.Ha,ci=ci.Ia+8*Ji*ma+8*Jr;Ji=qa.ld,0<Jr&&(xr(oi,li,Mr,_r+4,pa,Ji),ki($s,yo,$i,ci,ma,_r+4,pa,Ji)),qa.La&&(Ho(oi,li,Mr,_r,pa,Ji),bc($s,yo,$i,ci,ma,_r,pa,Ji)),0<ei&&(yr(oi,li,Mr,_r+4,pa,Ji),Wr($s,yo,$i,ci,ma,_r+4,pa,Ji)),qa.La&&(Al(oi,li,Mr,_r,pa,Ji),xc($s,yo,$i,ci,ma,_r,pa,Ji))}}if(It.ia&&alert("todo:DitherRow"),_t.put!=null){if(tr=16*fr,fr=16*(fr+1),jr?(_t.y=It.sa,_t.O=It.ta+er,_t.f=It.qa,_t.N=It.ra+ha,_t.ea=It.Ha,_t.W=It.Ia+ha):(tr-=Un,_t.y=qi,_t.O=yi,_t.f=Hr,_t.N=Dn,_t.ea=Pi,_t.W=zi),Lr||(fr-=Un),fr>_t.o&&(fr=_t.o),_t.F=null,_t.J=null,It.Fa!=null&&0<It.Fa.length&&tr<fr&&(_t.J=gi(It,_t,tr,fr-tr),_t.F=It.mb,_t.F==null&&_t.F.length==0)){si=mi(It,3,"Could not decode alpha data.");break t}tr<_t.j&&(Un=_t.j-tr,tr=_t.j,t(!(1&Un)),_t.O+=It.R*Un,_t.N+=It.B*(Un>>1),_t.W+=It.B*(Un>>1),_t.F!=null&&(_t.J+=_t.width*Un)),tr<fr&&(_t.O+=_t.v,_t.N+=_t.v>>1,_t.W+=_t.v>>1,_t.F!=null&&(_t.J+=_t.v),_t.ka=tr-_t.j,_t.U=_t.va-_t.v,_t.T=fr-tr,si=_t.put(_t))}Cn+1!=It.Ic||Lr||(r(It.sa,It.ta-dn,qi,yi+16*It.R,dn),r(It.qa,It.ra-Pr,Hr,Dn+8*It.B,Pr),r(It.Ha,It.Ia-Pr,Pi,zi+8*It.B,Pr))}if(!si)return mi(Bn,6,"Output aborted.")}return 1})(ge,Te)),Te.bc!=null&&Te.bc(Te),Fe&=1}return Fe?(ge.cb=0,Fe):0})(C,Q)||(L=C.a)}}else L=C.a}L==0&&ce.Oa!=null&&ce.Oa.fd&&(L=gc(ce.ba))}ce=L}oe=ce!=0?null:11>oe?de.f.RGBA.eb:de.f.kb.y}else oe=null;return oe};var ph=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(T,D){for(var P="",R=0;R<4;R++)P+=String.fromCharCode(T[D++]);return P}function d(T,D){return T[D+0]|T[D+1]<<8}function f(T,D){return(T[D+0]|T[D+1]<<8|T[D+2]<<16)>>>0}function p(T,D){return(T[D+0]|T[D+1]<<8|T[D+2]<<16|T[D+3]<<24)>>>0}new c;var h=[0],x=[0],v=[],g=new c,y=e,w=(function(T,D){var P={},R=0,q=!1,M=0,V=0;if(P.frames=[],!(function(B,z){for(var ee=0;ee<4;ee++)if(B[z+ee]!="RIFF".charCodeAt(ee))return!0;return!1})(T,D)){for(p(T,D+=4),D+=8;D<T.length;){var H=u(T,D),Z=p(T,D+=4);D+=4;var J=Z+(1&Z);switch(H){case"VP8 ":case"VP8L":P.frames[R]===void 0&&(P.frames[R]={}),($=P.frames[R]).src_off=q?V:D-8,$.src_size=M+Z+8,R++,q&&(q=!1,M=0,V=0);break;case"VP8X":($=P.header={}).feature_flags=T[D];var K=D+4;$.canvas_width=1+f(T,K),K+=3,$.canvas_height=1+f(T,K),K+=3;break;case"ALPH":q=!0,M=J+8,V=D-8;break;case"ANIM":($=P.header).bgcolor=p(T,D),K=D+4,$.loop_count=d(T,K),K+=2;break;case"ANMF":var F,$;($=P.frames[R]={}).offset_x=2*f(T,D),D+=3,$.offset_y=2*f(T,D),D+=3,$.width=1+f(T,D),D+=3,$.height=1+f(T,D),D+=3,$.duration=f(T,D),D+=3,F=T[D++],$.dispose=1&F,$.blend=F>>1&1}H!="ANMF"&&(D+=J)}return P}})(y,0);w.response=y,w.rgbaoutput=!0,w.dataurl=!1;var j=w.header?w.header:null,_=w.frames?w.frames:null;if(j){j.loop_counter=j.loop_count,h=[j.canvas_height],x=[j.canvas_width];for(var N=0;N<_.length&&_[N].blend!=0;N++);}var A=_[0],E=g.WebPDecodeRGBA(y,A.src_off,A.src_size,x,h);A.rgba=E,A.imgwidth=x[0],A.imgheight=h[0];for(var k=0;k<x[0]*h[0]*4;k++)v[k]=E[k];return this.width=x,this.height=h,this.data=v,this}/** ==================================================================== 1045 * @license 1046 * jsPDF XMP metadata plugin 1047 * Copyright (c) 2016 Jussi Utunen, [email protected] 1048 * 1049 * Permission is hereby granted, free of charge, to any person obtaining 1050 * a copy of this software and associated documentation files (the 1051 * "Software"), to deal in the Software without restriction, including 1052 * without limitation the rights to use, copy, modify, merge, publish, 1053 * distribute, sublicense, and/or sell copies of the Software, and to 1054 * permit persons to whom the Software is furnished to do so, subject to 1055 * the following conditions: 1056 * 1057 * The above copyright notice and this permission notice shall be 1058 * included in all copies or substantial portions of the Software. 1059 * 1060 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 1061 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 1062 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 1063 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 1064 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 1065 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 1066 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 1067 * ==================================================================== 1068 */function hke(){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 pke(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var t,n,r,i,s,o,l,c,u,d=function(B){return B=B||{},this.isStrokeTransparent=B.isStrokeTransparent||!1,this.strokeOpacity=B.strokeOpacity||1,this.strokeStyle=B.strokeStyle||"#000000",this.fillStyle=B.fillStyle||"#000000",this.isFillTransparent=B.isFillTransparent||!1,this.fillOpacity=B.fillOpacity||1,this.font=B.font||"10px sans-serif",this.textBaseline=B.textBaseline||"alphabetic",this.textAlign=B.textAlign||"left",this.lineWidth=B.lineWidth||1,this.lineJoin=B.lineJoin||"miter",this.lineCap=B.lineCap||"butt",this.path=B.path||[],this.transform=B.transform!==void 0?B.transform.clone():new c,this.globalCompositeOperation=B.globalCompositeOperation||"normal",this.globalAlpha=B.globalAlpha||1,this.clip_path=B.clip_path||[],this.currentPoint=B.currentPoint||new o,this.miterLimit=B.miterLimit||10,this.lastPoint=B.lastPoint||new o,this.lineDashOffset=B.lineDashOffset||0,this.lineDash=B.lineDash||[],this.margin=B.margin||[0,0,0,0],this.prevPageLastElemOffset=B.prevPageLastElemOffset||0,this.ignoreClearRect=typeof B.ignoreClearRect!="boolean"||B.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new f(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,l=this.internal.Rectangle,c=this.internal.Matrix,u=new d}]);var f=function(B){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var z=B;Object.defineProperty(this,"pdf",{get:function(){return z}});var ee=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return ee},set:function(ue){ee=!!ue}});var te=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return te},set:function(ue){te=!!ue}});var X=0;Object.defineProperty(this,"posX",{get:function(){return X},set:function(ue){isNaN(ue)||(X=ue)}});var ne=0;Object.defineProperty(this,"posY",{get:function(){return ne},set:function(ue){isNaN(ue)||(ne=ue)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(ue){var Ue;typeof ue=="number"?Ue=[ue,ue,ue,ue]:((Ue=new Array(4))[0]=ue[0],Ue[1]=ue.length>=2?ue[1]:Ue[0],Ue[2]=ue.length>=3?ue[2]:Ue[0],Ue[3]=ue.length>=4?ue[3]:Ue[1]),u.margin=Ue}});var le=!1;Object.defineProperty(this,"autoPaging",{get:function(){return le},set:function(ue){le=ue}});var re=0;Object.defineProperty(this,"lastBreak",{get:function(){return re},set:function(ue){re=ue}});var he=[];Object.defineProperty(this,"pageBreaks",{get:function(){return he},set:function(ue){he=ue}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(ue){ue instanceof d&&(u=ue)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(ue){u.path=ue}});var be=[];Object.defineProperty(this,"ctxStack",{get:function(){return be},set:function(ue){be=ue}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ue){var Ue;Ue=p(ue),this.ctx.fillStyle=Ue.style,this.ctx.isFillTransparent=Ue.a===0,this.ctx.fillOpacity=Ue.a,this.pdf.setFillColor(Ue.r,Ue.g,Ue.b,{a:Ue.a}),this.pdf.setTextColor(Ue.r,Ue.g,Ue.b,{a:Ue.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ue){var Ue=p(ue);this.ctx.strokeStyle=Ue.style,this.ctx.isStrokeTransparent=Ue.a===0,this.ctx.strokeOpacity=Ue.a,Ue.a===0?this.pdf.setDrawColor(255,255,255):(Ue.a,this.pdf.setDrawColor(Ue.r,Ue.g,Ue.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ue){["butt","round","square"].indexOf(ue)!==-1&&(this.ctx.lineCap=ue,this.pdf.setLineCap(ue))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ue){isNaN(ue)||(this.ctx.lineWidth=ue,this.pdf.setLineWidth(ue))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ue){["bevel","round","miter"].indexOf(ue)!==-1&&(this.ctx.lineJoin=ue,this.pdf.setLineJoin(ue))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ue){isNaN(ue)||(this.ctx.miterLimit=ue,this.pdf.setMiterLimit(ue))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ue){this.ctx.textBaseline=ue}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ue){["right","end","center","left","start"].indexOf(ue)!==-1&&(this.ctx.textAlign=ue)}});var ve=null,ze=null,He=null;Object.defineProperty(this,"fontFaces",{get:function(){return He},set:function(ue){ve=null,ze=null,He=ue}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ue){var Ue;if(this.ctx.font=ue,(Ue=/^\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(ue))!==null){var ut=Ue[1];Ue[2];var Ee=Ue[3],we=Ue[4];Ue[5];var Ye=Ue[6],We=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(we)[2];we=Math.floor(We==="px"?parseFloat(we)*this.pdf.internal.scaleFactor:We==="em"?parseFloat(we)*this.pdf.getFontSize():parseFloat(we)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(we);var Be=(function(jt){var ar,jn,fn=[],pn=jt.trim();if(pn==="")return dS;if(pn in $D)return[$D[pn]];for(;pn!=="";){switch(jn=null,ar=(pn=GD(pn)).charAt(0)){case'"':case"'":jn=oke(pn.substring(1),ar);break;default:jn=lke(pn)}if(jn===null||(fn.push(jn[0]),(pn=GD(jn[1]))!==""&&pn.charAt(0)!==","))return dS;pn=pn.replace(/^,/,"")}return fn})(Ye);if(this.fontFaces){var dt=(function(jt,ar){var jn=jt.getFontList(),fn=JSON.stringify(jn);if(ve===null||ze!==fn){var pn=(function(Tn){var zt=[];return Object.keys(Tn).forEach(function(In){Tn[In].forEach(function(tn){var mn=null;switch(tn){case"bold":mn={family:In,weight:"bold"};break;case"italic":mn={family:In,style:"italic"};break;case"bolditalic":mn={family:In,weight:"bold",style:"italic"};break;case"":case"normal":mn={family:In}}mn!==null&&(mn.ref={name:In,style:tn},zt.push(mn))})}),zt})(jn);ve=(function(Tn){for(var zt={},In=0;In<Tn.length;++In){var tn=uS(Tn[In]),mn=tn.family,sr=tn.stretch,Sn=tn.style,nn=tn.weight;zt[mn]=zt[mn]||{},zt[mn][sr]=zt[mn][sr]||{},zt[mn][sr][Sn]=zt[mn][sr][Sn]||{},zt[mn][sr][Sn][nn]=tn}return zt})(pn.concat(ar)),ze=fn}return ve})(this.pdf,this.fontFaces),St=Be.map(function(jt){return{family:jt,stretch:"normal",weight:Ee,style:ut}}),Nt=(function(jt,ar,jn){for(var fn=(jn=jn||{}).defaultFontFamily||"times",pn=Object.assign({},ske,jn.genericFontFamilies||{}),Tn=null,zt=null,In=0;In<ar.length;++In)if(pn[(Tn=uS(ar[In])).family]&&(Tn.family=pn[Tn.family]),jt.hasOwnProperty(Tn.family)){zt=jt[Tn.family];break}if(!(zt=zt||jt[fn]))throw new Error("Could not find a font-family for the rule '"+UD(Tn)+"' and default family '"+fn+"'.");if(zt=(function(tn,mn){if(mn[tn])return mn[tn];var sr=QC[tn],Sn=sr<=QC.normal?-1:1,nn=zD(mn,WX,sr,Sn);if(!nn)throw new Error("Could not find a matching font-stretch value for "+tn);return nn})(Tn.stretch,zt),zt=(function(tn,mn){if(mn[tn])return mn[tn];for(var sr=VX[tn],Sn=0;Sn<sr.length;++Sn)if(mn[sr[Sn]])return mn[sr[Sn]];throw new Error("Could not find a matching font-style for "+tn)})(Tn.style,zt),!(zt=(function(tn,mn){if(mn[tn])return mn[tn];if(tn===400&&mn[500])return mn[500];if(tn===500&&mn[400])return mn[400];var sr=ake[tn],Sn=zD(mn,HX,sr,tn<400?-1:1);if(!Sn)throw new Error("Could not find a matching font-weight for value "+tn);return Sn})(Tn.weight,zt)))throw new Error("Failed to resolve a font for the rule '"+UD(Tn)+"'.");return zt})(dt,St);this.pdf.setFont(Nt.ref.name,Nt.ref.style)}else{var De="";(Ee==="bold"||parseInt(Ee,10)>=700||ut==="bold")&&(De="bold"),ut==="italic"&&(De+="italic"),De.length===0&&(De="normal");for(var et="",ot={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"},ht=0;ht<Be.length;ht++){if(this.pdf.internal.getFont(Be[ht],De,{noFallback:!0,disableWarning:!0})!==void 0){et=Be[ht];break}if(De==="bolditalic"&&this.pdf.internal.getFont(Be[ht],"bold",{noFallback:!0,disableWarning:!0})!==void 0)et=Be[ht],De="bold";else if(this.pdf.internal.getFont(Be[ht],"normal",{noFallback:!0,disableWarning:!0})!==void 0){et=Be[ht],De="normal";break}}if(et===""){for(var mt=0;mt<Be.length;mt++)if(ot[Be[mt]]){et=ot[Be[mt]];break}}et=et===""?"Times":et,this.pdf.setFont(et,De)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ue){this.ctx.globalCompositeOperation=ue}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ue){this.ctx.globalAlpha=ue}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ue){this.ctx.lineDashOffset=ue,$.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ue){this.ctx.lineDash=ue,$.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ue){this.ctx.ignoreClearRect=!!ue}})};f.prototype.setLineDash=function(B){this.lineDash=B},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){_.call(this,"fill",!1)},f.prototype.stroke=function(){_.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(B,z){if(isNaN(B)||isNaN(z))throw Rr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var ee=this.ctx.transform.applyToPoint(new o(B,z));this.path.push({type:"mt",x:ee.x,y:ee.y}),this.ctx.lastPoint=new o(B,z)},f.prototype.closePath=function(){var B=new o(0,0),z=0;for(z=this.path.length-1;z!==-1;z--)if(this.path[z].type==="begin"&&Sr(this.path[z+1])==="object"&&typeof this.path[z+1].x=="number"){B=new o(this.path[z+1].x,this.path[z+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(B.x,B.y)},f.prototype.lineTo=function(B,z){if(isNaN(B)||isNaN(z))throw Rr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var ee=this.ctx.transform.applyToPoint(new o(B,z));this.path.push({type:"lt",x:ee.x,y:ee.y}),this.ctx.lastPoint=new o(ee.x,ee.y)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),_.call(this,null,!0)},f.prototype.quadraticCurveTo=function(B,z,ee,te){if(isNaN(ee)||isNaN(te)||isNaN(B)||isNaN(z))throw Rr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var X=this.ctx.transform.applyToPoint(new o(ee,te)),ne=this.ctx.transform.applyToPoint(new o(B,z));this.path.push({type:"qct",x1:ne.x,y1:ne.y,x:X.x,y:X.y}),this.ctx.lastPoint=new o(X.x,X.y)},f.prototype.bezierCurveTo=function(B,z,ee,te,X,ne){if(isNaN(X)||isNaN(ne)||isNaN(B)||isNaN(z)||isNaN(ee)||isNaN(te))throw Rr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var le=this.ctx.transform.applyToPoint(new o(X,ne)),re=this.ctx.transform.applyToPoint(new o(B,z)),he=this.ctx.transform.applyToPoint(new o(ee,te));this.path.push({type:"bct",x1:re.x,y1:re.y,x2:he.x,y2:he.y,x:le.x,y:le.y}),this.ctx.lastPoint=new o(le.x,le.y)},f.prototype.arc=function(B,z,ee,te,X,ne){if(isNaN(B)||isNaN(z)||isNaN(ee)||isNaN(te)||isNaN(X))throw Rr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to
1068jsPDF.context2d.arc");if(ne=!!ne,!this.ctx.transform.isIdentity){var le=this.ctx.transform.applyToPoint(new o(B,z));B=le.x,z=le.y;var re=this.ctx.transform.applyToPoint(new o(0,ee)),he=this.ctx.transform.applyToPoint(new o(0,0));ee=Math.sqrt(Math.pow(re.x-he.x,2)+Math.pow(re.y-he.y,2))}Math.abs(X-te)>=2*Math.PI&&(te=0,X=2*Math.PI),this.path.push({type:"arc",x:B,y:z,radius:ee,startAngle:te,endAngle:X,counterclockwise:ne})},f.prototype.arcTo=function(B,z,ee,te,X){throw new Error("arcTo not implemented.")},f.prototype.rect=function(B,z,ee,te){if(isNaN(B)||isNaN(z)||isNaN(ee)||isNaN(te))throw Rr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(B,z),this.lineTo(B+ee,z),this.lineTo(B+ee,z+te),this.lineTo(B,z+te),this.lineTo(B,z),this.lineTo(B+ee,z),this.lineTo(B,z)},f.prototype.fillRect=function(B,z,ee,te){if(isNaN(B)||isNaN(z)||isNaN(ee)||isNaN(te))throw Rr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var X={};this.lineCap!=="butt"&&(X.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(X.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(B,z,ee,te),this.fill(),X.hasOwnProperty("lineCap")&&(this.lineCap=X.lineCap),X.hasOwnProperty("lineJoin")&&(this.lineJoin=X.lineJoin)}},f.prototype.strokeRect=function(B,z,ee,te){if(isNaN(B)||isNaN(z)||isNaN(ee)||isNaN(te))throw Rr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");x.call(this)||(this.beginPath(),this.rect(B,z,ee,te),this.stroke())},f.prototype.clearRect=function(B,z,ee,te){if(isNaN(B)||isNaN(z)||isNaN(ee)||isNaN(te))throw Rr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(B,z,ee,te))},f.prototype.save=function(B){B=typeof B!="boolean"||B;for(var z=this.pdf.internal.getCurrentPageInfo().pageNumber,ee=0;ee<this.pdf.internal.getNumberOfPages();ee++)this.pdf.setPage(ee+1),this.pdf.internal.out("q");if(this.pdf.setPage(z),B){this.ctx.fontSize=this.pdf.internal.getFontSize();var te=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=te}},f.prototype.restore=function(B){B=typeof B!="boolean"||B;for(var z=this.pdf.internal.getCurrentPageInfo().pageNumber,ee=0;ee<this.pdf.internal.getNumberOfPages();ee++)this.pdf.setPage(ee+1),this.pdf.internal.out("Q");this.pdf.setPage(z),B&&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)},f.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var p=function(B){var z,ee,te,X;if(B.isCanvasGradient===!0&&(B=B.getColor()),!B)return{r:0,g:0,b:0,a:0,style:B};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(B))z=0,ee=0,te=0,X=0;else{var ne=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(B);if(ne!==null)z=parseInt(ne[1]),ee=parseInt(ne[2]),te=parseInt(ne[3]),X=1;else if((ne=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(B))!==null)z=parseInt(ne[1]),ee=parseInt(ne[2]),te=parseInt(ne[3]),X=parseFloat(ne[4]);else{if(X=1,typeof B=="string"&&B.charAt(0)!=="#"){var le=new FX(B);B=le.ok?le.toHex():"#000000"}B.length===4?(z=B.substring(1,2),z+=z,ee=B.substring(2,3),ee+=ee,te=B.substring(3,4),te+=te):(z=B.substring(1,3),ee=B.substring(3,5),te=B.substring(5,7)),z=parseInt(z,16),ee=parseInt(ee,16),te=parseInt(te,16)}}return{r:z,g:ee,b:te,a:X,style:B}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},x=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};f.prototype.fillText=function(B,z,ee,te){if(isNaN(z)||isNaN(ee)||typeof B!="string")throw Rr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to
1068jsPDF.context2d.fillText");if(te=isNaN(te)?void 0:te,!h.call(this)){var X=J(this.ctx.transform.rotation),ne=this.ctx.transform.scaleX;R.call(this,{text:B,x:z,y:ee,scale:ne,angle:X,align:this.textAlign,maxWidth:te})}},f.prototype.strokeText=function(B,z,ee,te){if(isNaN(z)||isNaN(ee)||typeof B!="string")throw Rr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!x.call(this)){te=isNaN(te)?void 0:te;var X=J(this.ctx.transform.rotation),ne=this.ctx.transform.scaleX;R.call(this,{text:B,x:z,y:ee,scale:ne,renderingMode:"stroke",angle:X,align:this.textAlign,maxWidth:te})}},f.prototype.measureText=function(B){if(typeof B!="string")throw Rr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var z=this.pdf,ee=this.pdf.internal.scaleFactor,te=z.internal.getFontSize(),X=z.getStringUnitWidth(B)*te/z.internal.scaleFactor;return new function(ne){var le=(ne=ne||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return le}}),this}({width:X*=Math.round(96*ee/72*1e4)/1e4})},f.prototype.scale=function(B,z){if(isNaN(B)||isNaN(z))throw Rr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var ee=new c(B,0,0,z,0,0);this.ctx.transform=this.ctx.transform.multiply(ee)},f.prototype.rotate=function(B){if(isNaN(B))throw Rr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var z=new c(Math.cos(B),Math.sin(B),-Math.sin(B),Math.cos(B),0,0);this.ctx.transform=this.ctx.transform.multiply(z)},f.prototype.translate=function(B,z){if(isNaN(B)||isNaN(z))throw Rr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var ee=new c(1,0,0,1,B,z);this.ctx.transform=this.ctx.transform.multiply(ee)},f.prototype.transform=function(B,z,ee,te,X,ne){if(isNaN(B)||isNaN(z)||isNaN(ee)||isNaN(te)||isNaN(X)||isNaN(ne))throw Rr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var le=new c(B,z,ee,te,X,ne);this.ctx.transform=this.ctx.transform.multiply(le)},f.prototype.setTransform=function(B,z,ee,te,X,ne){B=isNaN(B)?1:B,z=isNaN(z)?0:z,ee=isNaN(ee)?0:ee,te=isNaN(te)?1:te,X=isNaN(X)?0:X,ne=isNaN(ne)?0:ne,this.ctx.transform=new c(B,z,ee,te,X,ne)};var v=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(B,z,ee,te,X,ne,le,re,he){var be=this.pdf.getImageProperties(B),ve=1,ze=1,He=1,ue=1;te!==void 0&&re!==void 0&&(He=re/te,ue=he/X,ve=be.width/te*re/te,ze=be.height/X*he/X),ne===void 0&&(ne=z,le=ee,z=0,ee=0),te!==void 0&&re===void 0&&(re=te,he=X),te===void 0&&re===void 0&&(re=be.width,he=be.height);var Ue=this.ctx.transform.decompose(),ut=J(Ue.rotate.shx),Ee=new c,we=(Ee=(Ee=(Ee=Ee.multiply(Ue.translate)).multiply(Ue.skew)).multiply(Ue.scale)).applyToRectangle(new l(ne-z*He,le-ee*ue,te*ve,X*ze));if(this.autoPaging){for(var Ye,We=g.call(this,we),Be=[],dt=0;dt<We.length;dt+=1)Be.indexOf(We[dt])===-1&&Be.push(We[dt]);j(Be);for(var St=Be[0],Nt=Be[Be.length-1],De=St;De<Nt+1;De++){this.pdf.setPage(De);var et=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ot=De===1?this.posY+this.margin[0]:this.margin[0],ht=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],mt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],jt=De===1?0:ht+(De-2)*mt;if(this.ctx.clip_path.length!==0){var ar=this.path;Ye=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(Ye,this.posX+this.margin[3],-jt+ot+this.ctx.prevPageLastElemOffset),N.call(this,"fill",!0),this.path=ar}var jn=JSON.parse(JSON.stringify(we));jn=w([jn],this.posX+this.margin[3],-jt+ot+this.ctx.prevPageLastElemOffset)[0];var fn=(De>St||De<Nt)&&v.call(this);fn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],et,mt,null).clip().discardPath()),this.pdf.addImage(B,"JPEG",jn.x,jn.y,jn.w,jn.h,null,null,ut),fn&&this.pdf.restoreGraphicsState()}}
vendor: 12,655 bytes, line 1068
1068else this.pdf.addImage(B,"JPEG",we.x,we.y,we.w,we.h,null,null,ut)};var g=function(B,z,ee){var te=[];z=z||this.pdf.internal.pageSize.width,ee=ee||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var X=this.posY+this.ctx.prevPageLastElemOffset;switch(B.type){default:case"mt":case"lt":te.push(Math.floor((B.y+X)/ee)+1);break;case"arc":te.push(Math.floor((B.y+X-B.radius)/ee)+1),te.push(Math.floor((B.y+X+B.radius)/ee)+1);break;case"qct":var ne=K(this.ctx.lastPoint.x,this.ctx.lastPoint.y,B.x1,B.y1,B.x,B.y);te.push(Math.floor((ne.y+X)/ee)+1),te.push(Math.floor((ne.y+ne.h+X)/ee)+1);break;case"bct":var le=F(this.ctx.lastPoint.x,this.ctx.lastPoint.y,B.x1,B.y1,B.x2,B.y2,B.x,B.y);te.push(Math.floor((le.y+X)/ee)+1),te.push(Math.floor((le.y+le.h+X)/ee)+1);break;case"rect":te.push(Math.floor((B.y+X)/ee)+1),te.push(Math.floor((B.y+B.h+X)/ee)+1)}for(var re=0;re<te.length;re+=1)for(;this.pdf.internal.getNumberOfPages()<te[re];)y.call(this);return te},y=function(){var B=this.fillStyle,z=this.strokeStyle,ee=this.font,te=this.lineCap,X=this.lineWidth,ne=this.lineJoin;this.pdf.addPage(),this.fillStyle=B,this.strokeStyle=z,this.font=ee,this.lineCap=te,this.lineWidth=X,this.lineJoin=ne},w=function(B,z,ee){for(var te=0;te<B.length;te++)switch(B[te].type){case"bct":B[te].x2+=z,B[te].y2+=ee;case"qct":B[te].x1+=z,B[te].y1+=ee;default:B[te].x+=z,B[te].y+=ee}return B},j=function(B){return B.sort(function(z,ee){return z-ee})},_=function(B,z){var ee=this.fillStyle,te=this.strokeStyle,X=this.lineCap,ne=this.lineWidth,le=Math.abs(ne*this.ctx.transform.scaleX),re=this.lineJoin;if(this.autoPaging){for(var he,be,ve=JSON.parse(JSON.stringify(this.path)),ze=JSON.parse(JSON.stringify(this.path)),He=[],ue=0;ue<ze.length;ue++)if(ze[ue].x!==void 0)for(var Ue=g.call(this,ze[ue]),ut=0;ut<Ue.length;ut+=1)He.indexOf(Ue[ut])===-1&&He.push(Ue[ut]);for(var Ee=0;Ee<He.length;Ee++)for(;this.pdf.internal.getNumberOfPages()<He[Ee];)y.call(this);j(He);for(var we=He[0],Ye=He[He.length-1],We=we;We<Ye+1;We++){this.pdf.setPage(We),this.fillStyle=ee,this.strokeStyle=te,this.lineCap=X,this.lineWidth=le,this.lineJoin=re;var Be=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],dt=We===1?this.posY+this.margin[0]:this.margin[0],St=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Nt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],De=We===1?0:St+(We-2)*Nt;if(this.ctx.clip_path.length!==0){var et=this.path;he=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(he,this.posX+this.margin[3],-De+dt+this.ctx.prevPageLastElemOffset),N.call(this,B,!0),this.path=et}if(be=JSON.parse(JSON.stringify(ve)),this.path=w(be,this.posX+this.margin[3],-De+dt+this.ctx.prevPageLastElemOffset),z===!1||We===0){var ot=(We>we||We<Ye)&&v.call(this);ot&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Be,Nt,null).clip().discardPath()),N.call(this,B,z),ot&&this.pdf.restoreGraphicsState()}this.lineWidth=ne}this.path=ve}else this.lineWidth=le,N.call(this,B,z),this.lineWidth=ne},N=function(B,z){if((B!=="stroke"||z||!x.call(this))&&(B==="stroke"||z||!h.call(this))){for(var ee,te,X=[],ne=this.path,le=0;le<ne.length;le++){var re=ne[le];switch(re.type){case"begin":X.push({begin:!0});break;case"close":X.push({close:!0});break;case"mt":X.push({start:re,deltas:[],abs:[]});break;case"lt":var he=X.length;if(ne[le-1]&&!isNaN(ne[le-1].x)&&(ee=[re.x-ne[le-1].x,re.y-ne[le-1].y],he>0)){for(;he>=0;he--)if(X[he-1].close!==!0&&X[he-1].begin!==!0){X[he-1].deltas.push(ee),X[he-1].abs.push(re);break}}break;case"bct":ee=[re.x1-ne[le-1].x,re.y1-ne[le-1].y,re.x2-ne[le-1].x,re.y2-ne[le-1].y,re.x-ne[le-1].x,re.y-ne[le-1].y],X[X.length-1].deltas.push(ee);break;case"qct":var be=ne[le-1].x+2/3*(re.x1-ne[le-1].x),ve=ne[le-1].y+2/3*(re.y1-ne[le-1].y),ze=re.x+2/3*(re.x1-re.x),He=re.y+2/3*(re.y1-re.y),ue=re.x,Ue=re.y;ee=[be-ne[le-1].x,ve-ne[le-1].y,ze-ne[le-1].x,He-ne[le-1].y,ue-ne[le-1].x,Ue-ne[le-1].y],X[X.length-1].deltas.push(ee);break;case"arc":X.push({deltas:[],abs:[],arc:!0}),Array.isArray(X[X.length-1].abs)&&X[X.length-1].abs.push(re)}}te=z?null:B==="stroke"?"stroke":"fill";for(var ut=!1,Ee=0;Ee<X.length;Ee++)if(X[Ee].arc)for(var we=X[Ee].abs,Ye=0;Ye<we.length;Ye++){var We=we[Ye];We.type==="arc"?k.call(this,We.x,We.y,We.radius,We.startAngle,We.endAngle,We.counterclockwise,void 0,z,!ut):q.call(this,We.x,We.y),ut=!0}else if(X[Ee].close===!0)this.pdf.internal.out("h"),ut=!1;else if(X[Ee].begin!==!0){var Be=X[Ee].start.x,dt=X[Ee].start.y;M.call(this,X[Ee].deltas,Be,dt),ut=!0}te&&T.call(this,te),z&&D.call(this)}},A=function(B){var z=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,ee=z*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return B-ee;case"top":return B+z-ee;case"hanging":return B+z-2*ee;case"middle":return B+z/2-ee;default:return B}},E=function(B){return B+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.prototype.createLinearGradient=function(){var B=function(){};return B.colorStops=[],B.addColorStop=function(z,ee){this.colorStops.push([z,ee])},B.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},B.isCanvasGradient=!0,B},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var k=function(B,z,ee,te,X,ne,le,re,he){for(var be=H.call(this,ee,te,X,ne),ve=0;ve<be.length;ve++){var ze=be[ve];ve===0&&(he?P.call(this,ze.x1+B,ze.y1+z):q.call(this,ze.x1+B,ze.y1+z)),V.call(this,B,z,ze.x2,ze.y2,ze.x3,ze.y3,ze.x4,ze.y4)}re?D.call(this):T.call(this,le)},T=function(B){switch(B){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},D=function(){this.pdf.clip(),this.pdf.discardPath()},P=function(B,z){this.pdf.internal.out(n(B)+" "+r(z)+" m")},R=function(B){var z;switch(B.align){case"right":case"end":z="right";break;case"center":z="center";break;default:z="left"}var ee,te,X,ne=this.pdf.getTextDimensions(B.text),le=A.call(this,B.y),re=E.call(this,le)-ne.h,he=this.ctx.transform.applyToPoint(new o(B.x,le));if(this.autoPaging){var be=this.ctx.transform.decompose(),ve=new c;ve=(ve=(ve=ve.multiply(be.translate)).multiply(be.skew)).multiply(be.scale);for(var ze=this.ctx.transform.applyToRectangle(new l(B.x,le,ne.w,ne.h)),He=ve.applyToRectangle(new l(B.x,re,ne.w,ne.h)),ue=g.call(this,He),Ue=[],ut=0;ut<ue.length;ut+=1)Ue.indexOf(ue[ut])===-1&&Ue.push(ue[ut]);j(Ue);for(var Ee=Ue[0],we=Ue[Ue.length-1],Ye=Ee;Ye<we+1;Ye++){this.pdf.setPage(Ye);var We=Ye===1?this.posY+this.margin[0]:this.margin[0],Be=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],dt=this.pdf.internal.pageSize.height-this.margin[2],St=dt-this.margin[0],Nt=this.pdf.internal.pageSize.width-this.margin[1],De=Nt-this.margin[3],et=Ye===1?0:Be+(Ye-2)*St;if(this.ctx.clip_path.length!==0){var ot=this.path;ee=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(ee,this.posX+this.margin[3],-1*et+We),N.call(this,"fill",!0),this.path=ot}var ht=w([JSON.parse(JSON.stringify(He))],this.posX+this.margin[3],-et+We+this.ctx.prevPageLastElemOffset)[0];B.scale>=.01&&(te=this.pdf.internal.getFontSize(),this.pdf.setFontSize(te*B.scale),X=this.lineWidth,this.lineWidth=X*B.scale);var mt=this.autoPaging!=="text";if(mt||ht.y+ht.h<=dt){if(mt||ht.y>=We&&ht.x<=Nt){var jt=mt?B.text:this.pdf.splitTextToSize(B.text,B.maxWidth||Nt-ht.x)[0],ar=w([JSON.parse(JSON.stringify(ze))],this.posX+this.margin[3],-et+We+this.ctx.prevPageLastElemOffset)[0],jn=mt&&(Ye>Ee||Ye<we)&&v.call(this);jn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],De,St,null).clip().discardPath()),this.pdf.text(jt,ar.x,ar.y,{angle:B.angle,align:z,renderingMode:B.renderingMode}),jn&&this.pdf.restoreGraphicsState()}}else ht.y<dt&&(this.ctx.prevPageLastElemOffset+=dt-ht.y);B.scale>=.01&&(this.pdf.setFontSize(te),this.lineWidth=X)}}else B.scale>=.01&&(te=this.pdf.internal.getFontSize(),this.pdf.setFontSize(te*B.scale),X=this.lineWidth,this.lineWidth=X*B.scale),this.pdf.text(B.text,he.x+this.posX,he.y+this.posY,{angle:B.angle,align:z,renderingMode:B.renderingMode,maxWidth:B.maxWidth}),B.scale>=.01&&(this.pdf.setFontSize(te),this.lineWidth=X)},q=function(B,z,ee,te){ee=ee||0,te=te||0,this.pdf.internal.out(n(B+ee)+" "+r(z+te)+" l")},M=function(B,z,ee){return this.pdf.lines(B,z,ee,null,null)},V=function(B,z,ee,te,X,ne,le,re){this.pdf.internal.out([t(i(ee+B)),t(s(te+z)),t(i(X+B)),t(s(ne+z)),t(i(le+B)),t(s(re+z)),"c"].join(" "))},H=function(B,z,ee,te){for(var X=2*Math.PI,ne=Math.PI/2;z>ee;)z-=X;var le=Math.abs(ee-z);le<X&&te&&(le=X-le);for(var re=[],he=te?-1:1,be=z;le>1e-5;){var ve=be+he*Math.min(le,ne);re.push(Z.call(this,B,be,ve)),le-=Math.abs(ve-be),be=ve}return re},Z=function(B,z,ee){var te=(ee-z)/2,X=B*Math.cos(te),ne=B*Math.sin(te),le=X,re=-ne,he=le*le+re*re,be=he+le*X+re*ne,ve=4/3*(Math.sqrt(2*he*be)-be)/(le*ne-re*X),ze=le-ve*re,He=re+ve*le,ue=ze,Ue=-He,ut=te+z,Ee=Math.cos(ut),we=Math.sin(ut);return{x1:B*Math.cos(z),y1:B*Math.sin(z),x2:ze*Ee-He*we,y2:ze*we+He*Ee,x3:ue*Ee-Ue*we,y3:ue*we+Ue*Ee,x4:B*Math.cos(ee),y4:B*Math.sin(ee)}},J=function(B){return 180*B/Math.PI},K=function(B,z,ee,te,X,ne){var le=B+.5*(ee-B),re=z+.5*(te-z),he=X+.5*(ee-X),be=ne+.5*(te-ne),ve=Math.min(B,X,le,he),ze=Math.max(B,X,le,he),He=Math.min(z,ne,re,be),ue=Math.max(z,ne,re,be);return new l(ve,He,ze-ve,ue-He)},F=function(B,z,ee,te,X,ne,le,re){var he,be,ve,ze,He,ue,Ue,ut,Ee,we,Ye,We,Be,dt,St=ee-B,Nt=te-z,De=X-ee,et=ne-te,ot=le-X,ht=re-ne;for(be=0;be<41;be++)Ee=(Ue=(ve=B+(he=be/40)*St)+he*((He=ee+he*De)-ve))+he*(He+he*(X+he*ot-He)-Ue),we=(ut=(ze=z+he*Nt)+he*((ue=te+he*et)-ze))+he*(ue+he*(ne+he*ht-ue)-ut),be==0?(Ye=Ee,We=we,Be=Ee,dt=we):(Ye=Math.min(Ye,Ee),We=Math.min(We,we),Be=Math.max(Be,Ee),dt=Math.max(dt,we));return new l(Math.round(Ye),Math.round(We),Math.round(Be-Ye),Math.round(dt-We))},$=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var B,z,ee=(B=this.ctx.lineDash,z=this.ctx.lineDashOffset,JSON.stringify({lineDash:B,lineDashOffset:z}));this.prevLineDash!==ee&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=ee)}}})(Xt.API),(function(e){var t=function(o){var l,c,u,d,f,p,h,x,v,g;for(c=[],u=0,d=(o+=l="\0\0\0\0".slice(o.length%4||4)).length;d>u;u+=4)(f=(o.charCodeAt(u)<<24)+(o.charCodeAt(u+1)<<16)+(o.charCodeAt(u+2)<<8)+o.charCodeAt(u+3))!==0?(p=(f=((f=((f=((f=(f-(g=f%85))/85)-(v=f%85))/85)-(x=f%85))/85)-(h=f%85))/85)%85,c.push(p+33,h+33,x+33,v+33,g+33)):c.push(122);return(function(y,w){for(var j=w;j>0;j--)y.pop()})(c,l.length),String.fromCharCode.apply(String,c)+"~>"},n=function(o){var l,c,u,d,f,p=String,h="length",x=255,v="charCodeAt",g="slice",y="replace";for(o[g](-2),o=o[g](0,-2)[y](/\s/g,"")[y]("z","!!!!!"),u=[],d=0,f=(o+=l="uuuuu"[g](o[h]%5||5))[h];f>d;d+=5)c=52200625*(o[v](d)-33)+614125*(o[v](d+1)-33)+7225*(o[v](d+2)-33)+85*(o[v](d+3)-33)+(o[v](d+4)-33),u.push(x&c>>24,x&c>>16,x&c>>8,x&c);return(function(w,j){for(var _=j;_>0;_--)w.pop()})(u,l[h]),p.fromCharCode.apply(p,u)},r=function(o){return o.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(o){var l=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"),l.test(o)===!1)return"";for(var c="",u=0;u<o.length;u+=2)c+=String.fromCharCode("0x"+(o[u]+o[u+1]));return c},s=function(o){for(var l=new Uint8Array(o.length),c=o.length;c--;)l[c]=o.charCodeAt(c);return(l=GC(l)).reduce(function(u,d){return u+String.fromCharCode(d)},"")};e.processDataByFilters=function(o,l){var c=0,u=o||"",d=[];for(typeof(l=l||[])=="string"&&(l=[l]),c=0;c<l.length;c+=1)switch(l[c]){case"ASCII85Decode":case"/ASCII85Decode":u=n(u),d.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=t(u),d.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=i(u),d.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=r(u),d.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=s(u),d.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[c]+'" is not implemented')}return{data:u,reverseChain:d.reverse().join(" ")}}})(Xt.API),(function(e){e.loadFile=function(t,n,r){return(function(i,s,o){s=s!==!1,o=typeof o=="function"?o:function(){};var l=void 0;try{l=(function(c,u,d){var f=new XMLHttpRequest,p=0,h=function(x){var v=x.length,g=[],y=String.fromCharCode;for(p=0;p<v;p+=1)g.push(y(255&x.charCodeAt(p)));return g.join("")};if(f.open("GET",c,!u),f.overrideMimeType("text/plain;
1068 charset=x-user-defined"),u===!1&&(f.onload=function(){f.status===200?d(h(this.responseText)):d(void 0)}),f.send(null),u&&f.status===200)return h(f.responseText)})(i,s,o)}catch{}return l})(t,n,r)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile})(Xt.API),(function(e){function t(){return(xn.html2canvas?Promise.resolve(xn.html2canvas):A1(()=>import("./html2canvas.esm-QH1iLAAe.js"),[])).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function n(){return(xn.DOMPurify?Promise.resolve(xn.DOMPurify):A1(()=>import("./purify.es-B9ZVCkUG.js"),[])).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var r=function(l){var c=Sr(l);return c==="undefined"?"undefined":c==="string"||l instanceof String?"string":c==="number"||l instanceof Number?"number":c==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":c==="object"?"object":"unknown"},i=function(l,c){var u=document.createElement(l);for(var d in c.className&&(u.className=c.className),c.innerHTML&&c.dompurify&&(u.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)u.style[d]=c.style[d];return u},s=function l(c,u){for(var d=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),f=c.firstChild;f;f=f.nextSibling)u!==!0&&f.nodeType===1&&f.nodeName==="SCRIPT"||d.appendChild(l(f,u));return c.nodeType===1&&(c.nodeName==="CANVAS"?(d.width=c.width,d.height=c.height,d.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(d.value=c.value),d.addEventListener("load",function(){d.scrollTop=c.scrollTop,d.scrollLeft=c.scrollLeft},!0)),d},o=function l(c){var u=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),d=l.convert(Promise.resolve(),u);return(d=d.setProgress(1,l,1,[l])).set(c)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(l,c){return l.__proto__=c||o.prototype,l},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(l,c){return this.then(function(){switch(c=c||(function(u){switch(r(u)){case"string":return"string";case"element":return u.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(l),c){case"string":return this.then(n).then(function(u){return this.set({src:i("div",{innerHTML:l,dompurify:u})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},o.prototype.to=function(l){switch(l){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 l={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},c=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(l.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:l}),this.prop.container.appendChild(c),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 l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(c){var u=Object.assign({},this.opt.html2canvas);return delete u.onrendered,c(this.prop.container,u)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(c){var u=this.opt.jsPDF,d=this.opt.fontFaces,f=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,p=Object.assign({async:!0,allowTaint:!0,scale:f,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete p.onrendered,u.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,u.context2d.posX=this.opt.x,u.context2d.posY=this.opt.y,u.context2d.margin=this.opt.margin,u.context2d.fontFaces=d,d)for(var h=0;h<d.length;++h){var x=d[h],v=x.src.find(function(g){return g.format==="truetype"});v&&u.addFont(v.url,x.ref.name,x.ref.style)}
vendor: 23,343 bytes, lines 1068-1074
1068return p.windowHeight=p.windowHeight||0,p.windowHeight=p.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):p.windowHeight,u.context2d.save(!0),c(this.prop.container,p)}).then(function(c){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},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(l,c,u){return(u=u||"pdf").toLowerCase()==="img"||u.toLowerCase()==="image"?this.outputImg(l,c):this.outputPdf(l,c)},o.prototype.outputPdf=function(l,c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,c)})},o.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){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 "'+l+'" is not supported.'}})},o.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}: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(l){if(r(l)!=="object")return this;var c=Object.keys(l||{}).map(function(u){if(u in o.template.prop)return function(){this.prop[u]=l[u]};switch(u){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[u]=l[u]}}},this);return this.then(function(){return this.thenList(c)})},o.prototype.get=function(l,c){return this.then(function(){var u=l in o.template.prop?this.prop[l]:this.opt[l];return c?c(u):u})},o.prototype.setMargin=function(l){return this.then(function(){switch(r(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},o.prototype.setPageSize=function(l){function c(u,d){return Math.floor(u*d/72*96)}return this.then(function(){(l=l||Xt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:c(l.inner.width,l.k),height:c(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},o.prototype.setProgress=function(l,c,u,d){return l!=null&&(this.progress.val=l),c!=null&&(this.progress.state=c),u!=null&&(this.progress.n=u),d!=null&&(this.progress.stack=d),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(l,c,u,d){return this.setProgress(l?this.progress.val+l:null,c||null,u?this.progress.n+u:null,d?this.progress.stack.concat(d):null)},o.prototype.then=function(l,c){var u=this;return this.thenCore(l,c,function(d,f){return u.updateProgress(null,null,1,[d]),Promise.prototype.then.call(this,function(p){return u.updateProgress(null,d),p}).then(d,f).then(function(p){return u.updateProgress(1),p})})},o.prototype.thenCore=function(l,c,u){u=u||Promise.prototype.then;var d=this;l&&(l=l.bind(d)),c&&(c=c.bind(d));var f=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?d:o.convert(Object.assign({},d),Promise.prototype),p=u.call(f,l,c);return o.convert(p,d.__proto__)},o.prototype.thenExternal=function(l,c){return Promise.prototype.then.call(this,l,c)},o.prototype.thenList=function(l){var c=this;return l.forEach(function(u){c=c.thenCore(u)}),c},o.prototype.catch=function(l){l&&(l=l.bind(this));var c=Promise.prototype.catch.call(this,l);return o.convert(c,this)},o.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},o.prototype.error=function(l){return this.then(function(){throw new Error(l)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,Xt.getPageSize=function(l,c,u){if(Sr(l)==="object"){var d=l;l=d.orientation,c=d.unit||c,u=d.format||u}c=c||"mm",u=u||"a4",l=(""+(l||"P")).toLowerCase();var f,p=(""+u).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(c){case"pt":f=1;break;case"mm":f=72/25.4;break;case"cm":f=72/2.54;break;case"in":f=72;break;case"px":f=.75;break;case"pc":case"em":f=12;break;case"ex":f=6;break;default:throw"Invalid unit: "+c}var x,v=0,g=0;if(h.hasOwnProperty(p))v=h[p][1]/f,g=h[p][0]/f;else try{v=u[1],g=u[0]}catch{throw new Error("Invalid format: "+u)}if(l==="p"||l==="portrait")l="p",g>v&&(x=g,g=v,v=x);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",v>g&&(x=g,g=v,v=x)}return{width:g,height:v,unit:c,k:f,orientation:l}},e.html=function(l,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(uS):null;var u=new o(c);return c.worker?u:u.from(l).doCallback()}})(Xt.API),Xt.API.addJS=function(e){var t,n,r=(function(i){for(var s="",o=0;o<i.length;o++){var l=i[o];if(l==="("||l===")"){for(var c=0,u=o-1;u>=0&&i[u]==="\\";u--)c++;s+=c%2==0?"\\"+l:l}else s+=l}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],l=r.exec(o);if(l!=null){var c=l[1];n.internal.newObjectDeferredBegin(c,!1)}n.internal.write(o)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,d=[];for(s=0;s<u;s++){var f=n.internal.newObject();d.push(f);var p=n.internal.getPageInfo(s+1);n.internal.write("<< /D["+p.objId+" 0 R /XYZ null null null]>> endobj")}var h=n.internal.newObject();for(n.internal.write("<< /Names [ "),s=0;s<d.length;s++)n.internal.write("(page_"+(s+1)+")"+d[s]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+h+" 0 R"),n.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var n=this;n.outline.root.children.length>0&&(n.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&n.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(r,i,s){var o={title:i,options:s,children:[]};return r==null&&(r=this.root),r.children.push(o),o},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(r){r.id=n.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},n.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},n.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s<r.children.length;s++){var o=r.children[s];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(r)),s>0&&this.line("/Prev "+this.makeRef(r.children[s-1])),s<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[s+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var l=this.count=this.count_r({count:0},o);if(l>0&&this.line("/Count "+l),o.options&&o.options.pageNumber){var c=n.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var u=0;u<r.children.length;u++)this.renderItems(r.children[u])},n.outline.line=function(r){this.ctx.val+=r+`\r 1069`},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 1070`+r.id+` 0 obj\r 1071<<\r 1072`},n.outline.objEnd=function(){this.ctx.val+=`>> \r 1073endobj\r 1074`},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}}])})(Xt.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,r,i,s,o,l){var c,u=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,c=(function(f){for(var p,h=256*f.charCodeAt(4)+f.charCodeAt(5),x=f.length,v={width:0,height:0,numcomponents:1},g=4;g<x;g+=2){if(g+=h,t.indexOf(f.charCodeAt(g+1))!==-1){p=256*f.charCodeAt(g+5)+f.charCodeAt(g+6),v={width:256*f.charCodeAt(g+7)+f.charCodeAt(g+8),height:p,numcomponents:f.charCodeAt(g+9)};break}h=256*f.charCodeAt(g+2)+f.charCodeAt(g+3)}return v})(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),c.numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}d={data:n,width:c.width,height:c.height,colorSpace:l,bitsPerComponent:8,filter:u,index:r,alias:i}}return d}})(Xt.API),Xt.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,s=VAe(e,{checkCrc:!0}),o=s.width,l=s.height,c=s.channels,u=s.palette,d=s.depth;i=u&&c===1?(function(k){for(var T=k.width,D=k.height,P=k.data,R=k.palette,q=k.depth,M=!1,V=[],H=[],Z=void 0,J=!1,K=0,F=0;F<R.length;F++){var $=X6(R[F],4),B=$[0],z=$[1],ee=$[2],te=$[3];V.push(B,z,ee),te!=null&&(te===0?(K++,H.length<1&&H.push(F)):te<255&&(J=!0))}if(J||K>1){M=!0,H=void 0;var X=T*D;Z=new Uint8Array(X);for(var ne=new DataView(P.buffer),le=0;le<X;le++){var re=fS(ne,le,q),he=X6(R[re],4)[3];Z[le]=he}}else K===0&&(H=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:M?8:void 0,colorBytes:P,alphaBytes:Z,needSMask:M,palette:V,mask:H}})(s):c===2||c===4?(function(k){for(var T=k.data,D=k.width,P=k.height,R=k.channels,q=k.depth,M=R===2?"DeviceGray":"DeviceRGB",V=R-1,H=D*P,Z=V,J=H*Z,K=1*H,F=Math.ceil(J*q/8),$=Math.ceil(K*q/8),B=new Uint8Array(F),z=new Uint8Array($),ee=new DataView(T.buffer),te=new DataView(B.buffer),X=new DataView(z.buffer),ne=!1,le=0;le<H;le++){for(var re=le*R,he=0;he<Z;he++)JD(te,fS(ee,re+he,q),le*Z+he,q);var be=fS(ee,re+Z,q);be<(1<<q)-1&&(ne=!0),JD(X,be,1*le,q)}return{colorSpace:M,colorsPerPixel:V,sMaskBitsPerComponent:ne?q:void 0,colorBytes:B,alphaBytes:z,needSMask:ne}})(s):(function(k){var T=k.data,D=k.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:D,colorsPerPixel:D==="DeviceGray"?1:3,colorBytes:T instanceof Uint16Array?(function(P){for(var R=P.length,q=new Uint8Array(2*R),M=new DataView(q.buffer,q.byteOffset,q.byteLength),V=0;V<R;V++)M.setUint16(2*V,P[V],!1);return q})(T):T,needSMask:!1}})(s);var f,p,h,x=i,v=x.colorSpace,g=x.colorsPerPixel,y=x.sMaskBitsPerComponent,w=x.colorBytes,j=x.alphaBytes,_=x.needSMask,N=x.palette,A=x.mask,E=null;return r!==Xt.API.image_compression.NONE&&typeof GC=="function"?(E=(function(k){var T;switch(k){case Xt.API.image_compression.FAST:T=11;break;case Xt.API.image_compression.MEDIUM:T=13;break;case Xt.API.image_compression.SLOW:T=14;break;default:T=12}return T})(r),f=this.decode.FLATE_DECODE,p="/Predictor ".concat(E," /Colors ").concat(g," /BitsPerComponent ").concat(d," /Columns ").concat(o),e=KD(w,Math.ceil(o*g*d/8),g,d,r),_&&(h=KD(j,Math.ceil(o*y/8),1,y,r))):(f=void 0,p=void 0,e=w,_&&(h=j)),(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:f,decodeParameters:p,transparency:A,palette:N,sMask:h,predictor:E,width:o,height:l,bitsPerComponent:d,sMaskBitsPerComponent:y,colorSpace:v}}},(function(e){e.processGIF89A=function(t,n,r,i){var s=new fke(t),o=s.width,l=s.height,c=[];s.decodeAndBlitFrameRGBA(0,c);var u={data:c,width:o,height:l},d=new hS(100).encode(u,100);return e.processJPEG.call(this,d,n,r,i)},e.processGIF87A=e.processGIF89A})(Xt.API),Dl.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)},Dl.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){Rr.log("bit decode error:"+n)}},Dl.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,l=0;l<8&&8*i+l<this.width;l++){var c=this.palette[s>>7-l&1];this.data[o+4*l]=c.blue,this.data[o+4*l+1]=c.green,this.data[o+4*l+2]=c.red,this.data[o+4*l+3]=255}n!==0&&(this.pos+=4-n)}},Dl.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,l=s>>4,c=15&s,u=this.palette[l];if(this.data[o]=u.blue,this.data[o+1]=u.green,this.data[o+2]=u.red,this.data[o+3]=255,2*i+1>=this.width)break;u=this.palette[c],this.data[o+4]=u.blue,this.data[o+4+1]=u.green,this.data[o+4+2]=u.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},Dl.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)}},Dl.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,l=(s>>5&t)/t*255|0,c=(s>>10&t)/t*255|0,u=s>>15?255:0,d=r*this.width*4+4*i;this.data[d]=c,this.data[d+1]=l,this.data[d+2]=o,this.data[d+3]=u}this.pos+=e}},Dl.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 l=(o&t)/t*255|0,c=(o>>5&n)/n*255|0,u=(o>>11)/t*255|0,d=i*this.width*4+4*s;this.data[d]=u,this.data[d+1]=c,this.data[d+2]=l,this.data[d+3]=255}this.pos+=e}},Dl.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}},Dl.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),l=t*this.width*4+4*n;this.data[l]=s,this.data[l+1]=i,this.data[l+2]=r,this.data[l+3]=o}},Dl.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,n,r,i){var s=new Dl(t,!1),o=s.width,l=s.height,c={data:s.getData(),width:o,height:l},u=new hS(100).encode(c,100);return e.processJPEG.call(this,u,n,r,i)}})(Xt.API),t8.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,n,r,i){var s=new t8(t),o=s.width,l=s.height,c={data:s.getData(),width:o,height:l},u=new hS(100).encode(c,100);return e.processJPEG.call(this,u,n,r,i)}})(Xt.API),Xt.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),l=0,c=0,u=0;u<i;u+=4){var d=r[u],f=r[u+1],p=r[u+2],h=r[u+3];s[l++]=d,s[l++]=f,s[l++]=p,o[c++]=h}var x=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:x,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Xt.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Sp
1074ain)","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},Pm=Xt.API,Qb=Pm.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(),l=t.widths?t.widths:i.metadata.Unicode.widths,c=l.fof?l.fof:1,u=t.kerning?t.kerning:i.metadata.Unicode.kerning,d=u.fof?u.fof:1,f=t.doKerning!==!1,p=0,h=e.length,x=0,v=l[0]||c,g=[];for(n=0;n<h;n++)r=e.charCodeAt(n),typeof i.metadata.widthOfString=="function"?g.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+o*(1e3/s)||0)/1e3):(p=f&&Sr(u[r])==="object"&&!isNaN(parseInt(u[r][x],10))?u[r][x]/d:0,g.push((l[r]||v)/c+p)),x=r;return g},VD=Pm.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 Pm.processArabic&&(e=Pm.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,n,i)/n:Qb.apply(this,arguments).reduce(function(s,o){return s+o},0)},WD=function(e,t,n,r){for(var i=[],s=0,o=e.length,l=0;s!==o&&l+t[s]<n;)l+=t[s],s++;i.push(e.slice(0,s));var c=s;for(l=0;s!==o;)l+t[s]>r&&(i.push(e.slice(c,s)),l=0,c=s),l+=t[s],s++;return c!==s&&i.push(e.slice(c,s)),i},HD=function(e,t,n){n||(n={});var r,i,s,o,l,c,u,d=[],f=[d],p=n.textIndent||0,h=0,x=0,v=e.split(" "),g=Qb.apply(this,[" ",n])[0];if(c=n.lineIndent===-1?v[0].length+2:n.lineIndent||0){var y=Array(c).join(" "),w=[];v.map(function(_){(_=_.split(/\s*\n/)).length>1?w=w.concat(_.map(function(N,A){return(A&&N.length?` 1075`:"")+N})):w.push(_[0])}),v=w,c=VD.apply(this,[y,n])}for(s=0,o=v.length;s<o;s++){var j=0;if(r=v[s],c&&r[0]==` 1076`&&(r=r.substr(1),j=1),p+h+(x=(i=Qb.apply(this,[r,n])).reduce(function(_,N){return _+N},0))>t||j){if(x>t){for(l=WD.apply(this,[r,i,t-(p+h),t]),d.push(l.shift()),d=[l.pop()];l.length;)f.push([l.shift()]);x=i.slice(r.length-(d[0]?d[0].length:0)).reduce(function(_,N){return _+N},0)}else d=[r];f.push(d),p=x+c,h=g}else d.push(r),p+=h+x,h=g}return u=c?function(_,N){return(N?y:"")+_.join(" ")}:function(_){return _.join(" ")},f.map(u)},Pm.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 f=this.internal.getFont(d.fontName,d.fontStyle),p="Unicode";return f.metadata[p]?{widths:f.metadata[p].widths||{0:1},kerning:f.metadata[p].kerning||{}}:{font:f.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 l,c,u=[];for(l=0,c=r.length;l<c;l++)u=u.concat(HD.apply(this,[r[l],o,s]));return u},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},s=0;s<16;s++)r[n[s]]=t[s],i[t[s]]=n[s];var o=function(p){return"0x"+parseInt(p,10).toString(16)},l=e.__fontmetrics__.compress=function(p){var h,x,v,g,y=["{"];for(var w in p){if(h=p[w],isNaN(parseInt(w,10))?x="'"+w+"'":(w=parseInt(w,10),x=(x=o(w).slice(2)).slice(0,-1)+i[x.slice(-1)]),typeof h=="number")h<0?(v=o(h).slice(3),g="-"):(v=o(h).slice(2),g=""),v=g+v.slice(0,-1)+i[v.slice(-1)];else{if(Sr(h)!=="object")throw new Error("Don't know what to do with value type "+Sr(h)+".");v=l(h)}y.push(x+v)}return y.push("}"),y.join("")},c=e.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var h,x,v,g,y={},w=1,j=y,_=[],N="",A="",E=p.length-1,k=1;k<E;k+=1)(g=p[k])=="'"?h?(v=h.join(""),h=void 0):h=[]:h?h.push(g):g=="{"?(_.push([j,v]),j={},v=void 0):g=="}"?((x=_.pop())[0][x[1]]=j,v=void 0,j=x[0]):g=="-"?w=-1:v===void 0?r.hasOwnProperty(g)?(N+=r[g],v=parseInt(N,16)*w,w=1,N=""):N+=g:r.hasOwnProperty(g)?(A+=r[g],j[v]=
1076parseInt(A,16)*w,w=1,v=void 0,A=""):A+=g;return y},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},f
vendor: 14,727 bytes, line 1076
1076={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'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":c("{'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:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'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:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'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":c("{'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:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'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":c("{'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":c("{'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,904 bytes, lines 1076-1104
1076p){var h=p.font,x=f.Unicode[h.postScriptName];x&&(h.metadata.Unicode={},h.metadata.Unicode.widths=x.widths,h.metadata.Unicode.kerning=x.kerning);var v=d.Unicode[h.postScriptName];v&&(h.metadata.Unicode.encoding=v,h.encoding=v.codePages[0])}])})(Xt.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,l){l=/^\x00\x01\x00\x00/.test(l)?t(l):t(I1(l)),o.metadata=e.API.TTFFont.open(l),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,r)}}])})(Xt),Xt.API.addSvgAsImage=function(e,t,n,r,i,s,o,l){if(isNaN(t)||isNaN(n))throw Rr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw Rr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=i;var u=c.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return(xn.canvg?Promise.resolve(xn.canvg):A1(()=>import("./index.es-Ci4mhz4p.js"),[])).catch(function(p){return Promise.reject(new Error("Could not load canvg: "+p))}).then(function(p){return p.default?p.default:p}).then(function(p){return p.fromString(u,e,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(p){return p.render(d)}).then(function(){f.addImage(c.toDataURL("image/jpeg",1),t,n,r,i,o,l)})},Xt.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},Xt.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}},l=Object.keys(o),c=[],u=0,d=0,f=0;function p(x,v){var g,y=!1;for(g=0;g<x.length;g+=1)x[g]===v&&(y=!0);return y}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=l.length;for(f=0;f<h;f+=1)n[l[f]].value=n[l[f]].defaultValue,n[l[f]].explicitSet=!1}if(Sr(e)==="object"){for(i in e)if(s=e[i],p(l,i)&&s!==void 0){if(n[i].type==="boolean"&&typeof s=="boolean")n[i].value=s;else if(n[i].type==="name"&&p(n[i].valueSet,s))n[i].value=s;else if(n[i].type==="integer"&&Number.isInteger(s))n[i].value=s;else if(n[i].type==="array"){for(u=0;u<s.length;u+=1)if(r=!0,s[u].length===1&&typeof s[u][0]=="number")c.push(String(s[u]-1));else if(s[u].length>1){for(d=0;d<s[u].length;d+=1)typeof s[u][d]!="number"&&(r=!1);r===!0&&c.push([s[u][0]-1,s[u][1]-1].join(" "))}n[i].value="["+c.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 x,v=[];for(x in n)n[x].explicitSet===!0&&(n[x].type==="name"?v.push("/"+x+" /"+n[x].value):v.push("/"+x+" "+n[x].value));v.length!==0&&this.internal.write(`/ViewerPreferences 1077<< 1078`+v.join(` 1079`)+` 1080>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},Xt.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",pke),this.internal.events.subscribe("postPutResources",hke)),this},(function(e){var t=e.API,n=t.pdfEscape16=function(s,o){for(var l,c=o.metadata.Unicode.widths,u=["","0","00","000","0000"],d=[""],f=0,p=s.length;f<p;++f){if(l=o.metadata.characterToGlyph(s.charCodeAt(f)),o.metadata.glyIdsUsed.push(l),o.metadata.toUnicode[l]=s.charCodeAt(f),c.indexOf(l)==-1&&(c.push(l),c.push([parseInt(o.metadata.widthOfGlyph(l),10)])),l=="0")return d.join("");l=l.toString(16),d.push(u[4-l.length],l)}return d.join("")},r=function(s){var o,l,c,u,d,f,p;for(d=`/CIDInit /ProcSet findresource begin 108112 dict begin 1082begincmap 1083/CIDSystemInfo << 1084 /Registry (Adobe) 1085 /Ordering (UCS) 1086 /Supplement 0 1087>> def 1088/CMapName /Adobe-Identity-UCS def 1089/CMapType 2 def 10901 begincodespacerange 1091<0000><ffff> 1092endcodespacerange`,c=[],f=0,p=(l=Object.keys(s).sort(function(h,x){return h-x})).length;f<p;f++)o=l[f],c.length>=100&&(d+=` 1093`+c.length+` beginbfchar 1094`+c.join(` 1095`)+` 1096endbfchar`,c=[]),s[o]!==void 0&&s[o]!==null&&typeof s[o].toString=="function"&&(u=("0000"+s[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),c.push("<"+o+"><"+u+">"));return c.length&&(d+=` 1097`+c.length+` beginbfchar 1098`+c.join(` 1099`)+` 1100endbfchar 1101`),d+`endcmap 1102CMapName currentdict /CMap defineresource pop 1103end 1104end`};t.events.push(["putFont",function(s){(function(o){var l=o.font,c=o.out,u=o.newObject,d=o.putStream;if(l.metadata instanceof e.API.TTFFont&&l.encoding==="Identity-H"){for(var f=l.metadata.Unicode.widths,p=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),h="",x=0;x<p.length;x++)h+=String.fromCharCode(p[x]);var v=u();d({data:h,addLength1:!0,objectId:v}),c("endobj");var g=u();d({data:r(l.metadata.toUnicode),addLength1:!0,objectId:g}),c("endobj");var y=u();c("<<"),c("/Type /FontDescriptor"),c("/FontName /"+Im(l.fontName)),c("/FontFile2 "+v+" 0 R"),c("/FontBBox "+e.API.PDFObject.convert(l.metadata.bbox)),c("/Flags "+l.metadata.flags),c("/StemV "+l.metadata.stemV),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c(">>"),c("endobj");var w=u();c("<<"),c("/Type /Font"),c("/BaseFont /"+Im(l.fontName)),c("/FontDescriptor "+y+" 0 R"),c("/W "+e.API.PDFObject.convert(f)),c("/CIDToGIDMap /Identity"),c("/DW 1000"),c("/Subtype /CIDFontType2"),c("/CIDSystemInfo"),c("<<"),c("/Supplement 0"),c("/Registry (Adobe)"),c("/Ordering ("+l.encoding+")"),c(">>"),c(">>"),c("endobj"),l.objectNumber=u(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+g+" 0 R"),c("/BaseFont /"+Im(l.fontName)),c("/Encoding /"+l.encoding),c("/DescendantFonts ["+w+" 0 R]"),c(">>"),c("endobj"),l.isAlreadyPutted=!0}})(s)}]),t.events.push(["putFont",function(s){(function(o){var l=o.font,c=o.out,u=o.newObject,d=o.putStream;if(l.metadata instanceof e.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var f=l.metadata.rawData,p="",h=0;h<f.length;h++)p+=String.fromCharCode(f[h]);var x=u();d({data:p,addLength1:!0,objectId:x}),c("endobj");var v=u();d({data:r(l.metadata.toUnicode),addLength1:!0,objectId:v}),c("endobj");var g=u();c("<<"),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c("/StemV "+l.metadata.stemV),c("/Type /FontDescriptor"),c("/FontFile2 "+x+" 0 R"),c("/Flags 96"),c("/FontBBox "+e.API.PDFObject.convert(l.metadata.bbox)),c("/FontName /"+Im(l.fontName)),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c(">>"),c("endobj"),l.objectNumber=u();for(var y=0;y<l.metadata.hmtx.widths.length;y++)l.metadata.hmtx.widths[y]=parseInt(l.metadata.hmtx.widths[y]*(1e3/l.metadata.head.unitsPerEm));c("<</Subtype/TrueType/Type/Font/ToUnicode "+v+" 0 R/BaseFont/"+Im(l.fontName)+"/FontDescriptor "+g+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),c("endobj"),l.isAlreadyPutted=!0}})(s)}]);var i=function(s){var o,l=s.text||"",c=s.x,u=s.y,d=s.options||{},f=s.mutex||{},p=f.pdfEscape,h=f.activeFontKey,x=f.fonts,v=h,g="",y=0,w="",j=x[v].encoding;if(x[v].encoding!=="Identity-H")return{text:l,x:c,y:u,options:d,mutex:f};for(w=l,v=h,Array.isArray(l)&&(w=l[0]),y=0;y<w.length;y+=1)x[v].metadata.hasOwnProperty("cmap")&&(o=x[v].metadata.cmap.unicode.codeMap[w[y].charCodeAt(0)]),o||w[y].charCodeAt(0)<256&&x[v].metadata.hasOwnProperty("Unicode")?g+=w[y]:g+="";var _="";return parseInt(v.slice(1))<14||j==="WinAnsiEncoding"?_=p(g,v).split("").map(function(N){return N.charCodeAt(0).toString(16)}).join(""):j==="Identity-H"&&(_=n(g,x[v])),f.isHex=!0,{text:_,x:c,y:u,options:d,mutex:f}};t.events.push(["postProcessText",function(s){var o=s.text||"",l=[],c={text:o,x:s.x,y:s.y,options:s.options,mutex:s.mutex};if(Array.isArray(o)){var u=0;for(u=0;u<o.length;u+=1)Array.isArray(o[u])&&o[u].length===3?l.push([i(Object.assign({},c,{text:o[u][0]})).text,o[u][1],o[u][2]]):l.push(i(Object.assign({},c,{text:o[u]})).text);s.text=l}else s.text=i(Object.assign({},c,{text:o})).text}])})(Xt),(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}})(Xt.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var i,s,o,l,c,u,d,f=t,p=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],x={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},v={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},g=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","â¹","âº","â¹","â ","â","â ","â½","â¾","â½","â","â","â","â¤","â¥","â¤","â©","âª","â©","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","﹤","ï¹¥","﹤"],y=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)$/),w=!1,j=0;this.__bidiEngine__={};var _=function(P){var R=P.charCodeAt(),q=R>>8,M=v[q];return M!==void 0?f[256*M+(255&R)]:q===252||q===253?"AL":y.test(q)?"L":q===8?"R":"N"},N=function(P){for(var R,q=0;q<P.length;q++){if((R=_(P.charAt(q)))==="L")return!1;if(R==="R")return!0}return!1},A=function(P,R,q,M){var V,H,Z,J,K=R[M];switch(K){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":w=!1;break;case"N":case"AN":break;case"EN":w&&(K="AN");break;case"AL":w=!0,K="R";break;case"WS":case"BN":K="N";break;case"CS":M<1||M+1>=R.length||(V=q[M-1])!=="EN"&&V!=="AN"||(H=R[M+1])!=="EN"&&H!=="AN"?K="N":w&&(H="AN"),K=H===V?H:"N";break;case"ES":K=(V=M>0?q[M-1]:"B")==="EN"&&M+1<R.length&&R[M+1]==="EN"?"EN":"N";break;case"ET":if(M>0&&q[M-1]==="EN"){K="EN";break}if(w){K="N";break}for(Z=M+1,J=R.length;Z<J&&R[Z]==="ET";)Z++;K=Z<J&&R[Z]==="EN"?"EN":"N";break;case"NSM":if(o&&!l){for(J=R.length,Z=M+1;Z<J&&R[Z]==="NSM";)Z++;if(Z<J){var F=P[M],$=F>=1425&&F<=2303||F===64286;if(V=R[Z],$&&(V==="R"||V==="AL")){K="R";break}}}K=M<1||(V=R[M-1])==="B"?"N":q[M-1];break;case"B":w=!1,i=!0,K=j;break;case"S":s=!0,K="N"}return K},E=function(P,R,q){var M=P.split("");return q&&k(M,q,{hiLevel:j}),M.reverse(),R&&R.reverse(),M.join("")},k=function(P,R,q){var M,V,H,Z,J,K=-1,F=P.length,$=0,B=[],z=j?h:p,ee=[];for(w=!1,i=!1,s=!1,V=0;V<F;V++)ee[V]=_(P[V]);for(H=0;H<F;H++){if(J=$,B[H]=A(P,ee,B,H),M=240&($=z[J][x[B[H]]]),$&=15,R[H]=Z=z[$][5],M>0)if(M===16){for(V=K;V<H;V++)R[V]=1;K=-1}else K=-1;if(z[$][6])K===-1&&(K=H);else if(K>-1){for(V=K;V<H;V++)R[V]=Z;K=-1}ee[H]==="B"&&(R[H]=0),q.hiLevel|=Z}s&&(function(te,X,ne){for(var le=0;le<ne;le++)if(te[le]==="S"){X[le]=j;for(var re=le-1;re>=0&&te[re]==="WS";re--)X[re]=j}})(ee,R,F)},T=function(P,R,q,M,V){if(!(V.hiLevel<P)){if(P===1&&j===1&&!i)return R.reverse(),void(q&&q.reverse());for(var H,Z,J,K,F=R.length,$=0;$<F;){if(M[$]>=P){for(J=$+1;J<F&&M[J]>=P;)J++;for(K=$,Z=J-1;K<Z;K++,Z--)H=R[K],R[K]=R[Z],R[Z]=H,q&&(H=q[K],q[K]=q[Z],q[Z]=H);$=J}$++}}},D=function(P,R,q){var M=P.split(""),V={hiLevel:j};return q||(q=[]),k(M,q,V),(function(H,Z,J){if(J.hiLevel!==0&&d)for(var K,F=0;F<H.length;F++)Z[F]===1&&(K=g.indexOf(H[F]))>=0&&(H[F]=g[K+1])})(M,q,V),T(2,M,R,q,V),T(1,M,R,q,V),M.join("")};return this.__bidiEngine__.doBidiReorder=function(P,R,q){if((function(V,H){if(H)for(var Z=0;Z<V.length;Z++)H[Z]=Z;l===void 0&&(l=N(V)),u===void 0&&(u=N(V))})(P,R),o||!c||u)if(o&&c&&l^u)j=l?1:0,P=E(P,R,q);else if(!o&&c&&u)j=l?1:0,P=D(P,R,q),P=E(P,R);else if(!o||l||c||u){if(o&&!c&&l^u)P=E(P,R),l?(j=0,P=D(P,R,q)):(j=1,P=D(P,R,q),P=E(P,R));else if(o&&l&&!c&&u)j=1,P=D(P,R,q),P=E(P,R);else if(!o&&!c&&l^u){var M=d;l?(j=1,P=D(P,R,q),j=0,d=!1,P=D(P,R,q),d=M):(j=0,P=D(P,R,q),P=E(P,R),j=1,d=!1,P=D(P,R,q),d=M,P=E(P,R))}}else j=0,P=D(P,R,q);else j=l?1:0,P=D(P,R,q);return P},this.__bidiEngine__.setOptions=function(P){P&&(o=P.isInputVisual,c=P.isOutputVisual,l=P.isInputRtl,u=P.isOutputRtl,d=P.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 l=0;for(o=[],l=0;l<i.length;l+=1)Object.prototype.toString.call(i[l])==="[object Array]"?o.push([n.doBidiReorder(i[l][0]),i[l][1],i[l][2]]):o.push([n.doBidiReorder(i[l])]);r.text=o}else r.text=n.doBidiReorder(i);n.setOptions({isInputVisual:!0})}])})(Xt),Xt.API.TTFFont=(function(){function e(t){var n;if(this.rawData=t,n=this.contents=new zf(t),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new Cke(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new mke(this.contents),this.head=new vke(this),this.name=new jke(this),this.cmap=new YX(this),this.toUnicode={},this.hhea=new yke(this),this.maxp=new _ke(this),this.hmtx=new Nke(this),this.post=new bke(this),this.os2=new xke(this),this.loca=new Pke(this),this.glyf=new Ske(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,l,c,u;for(u=[],o=0,l=(c=this.bbox).length;o<l;o++)t=c[o],u.push(Math.round(t*this.scaleFactor));return u}).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,l;for(o=0,s=0,l=(t=""+t).length;0<=l?s<l:s>l;s=0<=l?++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 ac,zf=(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,l,c;return t=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),s=this.readByte(),o=this.readByte(),l=this.readByte(),c=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^l)+(255^c)+1):72057594037927940*t+281474976710656*n+1099511627776*r+4294967296*i+16777216*s+65536*o+256*l+c},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})(),mke=(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,l,c,u,d,f,p,h,x,v;for(v in h=Object.keys(n).length,c=Math.log(2),f=16*Math.floor(Math.log(h)/c),o=Math.floor(f/c),d=16*h-f,(i=new zf).writeInt(this.scalarType),i.writeShort(h),i.writeShort(f),i.writeShort(o),i.writeShort(d),s=16*h,u=i.pos+s,l=null,x=[],n)for(p=n[v],i.writeString(v),i.writeInt(e(p)),i.writeInt(u),i.writeInt(p.length),x=x.concat(p),v==="head"&&(l=u),u+=p.length;u%4;)x.push(0),u++;return i.write(x),r=2981146554-e(i.data),i.pos=l+8,i.writeUInt32(r),i.data},e=function(n){var r,i,s,o;for(n=XX.call(n);n.length%4;)n.push(0);for(s=new zf(n),i=0,r=0,o=n.length;r<o;r=r+=4)i+=s.readUInt32();return 4294967295&i},t})(),gke={}.hasOwnProperty,Jc=function(e,t){for(var n in t)gke.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};ac=(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 vke=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Jc(e,ac),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 zf).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})(),n8=(function(){function e(t,n){var r,i,s,o,l,c,u,d,f,p,h,x,v,g,y,w,j;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=n+t.readInt(),f=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(c=0;c<256;++c)this.codeMap[c]=t.readByte();break;case 4:for(h=t.readUInt16(),p=h/2,t.pos+=6,s=(function(){var _,N;for(N=[],c=_=0;0<=p?_<p:_>p;c=0<=p?++_:--_)N.push(t.readUInt16());return N})(),t.pos+=2,v=(function(){var _,N;for(N=[],c=_=0;0<=p?_<p:_>p;c=0<=p?++_:--_)N.push(t.readUInt16());return N})(),u=(function(){var _,N;for(N=[],c=_=0;0<=p?_<p:_>p;c=0<=p?++_:--_)N.push(t.readUInt16());return N})(),d=(function(){var _,N;for(N=[],c=_=0;0<=p?_<p:_>p;c=0<=p?++_:--_)N.push(t.readUInt16());return N})(),i=(this.length-t.pos+this.offset)/2,l=(function(){var _,N;for(N=[],c=_=0;0<=i?_<i:_>i;c=0<=i?++_:--_)N.push(t.readUInt16());return N})(),c=y=0,j=s.length;y<j;c=++y)for(g=s[c],r=w=x=v[c];x<=g?w<=g:w>=g;r=x<=g?++w:--w)d[c]===0?o=r+u[c]:(o=l[d[c]/2+(r-x)-(p-c)]||0)!==0&&(o+=u[c]),this.codeMap[r]=65535&o}t.pos=f}return e.encode=function(t,n){var r,i,s,o,l,c,u,d,f,p,h,x,v,g,y,w,j,_,N,A,E,k,T,D,P,R,q,M,V,H,Z,J,K,F,$,B,z,ee,te,X,ne,le,re,he,be,ve;switch(M=new zf,o=Object.keys(t).sort(function(ze,He){return ze-He}),n){case"macroman":for(v=0,g=(function(){var ze=[];for(x=0;x<256;++x)ze.push(0);return ze})(),w={0:0},s={},V=0,K=o.length;V<K;V++)w[re=t[i=o[V]]]==null&&(w[re]=++v),s[i]={old:t[i],new:w[t[i]]},g[i]=w[t[i]];return M.writeUInt16(1),M.writeUInt16(0),M.writeUInt32(12),M.writeUInt16(0),M.writeUInt16(262),M.writeUInt16(0),M.write(g),{charMap:s,subtable:M.data,maxGlyphID:v+1};case"unicode":for(R=[],f=[],j=0,w={},r={},y=u=null,H=0,F=o.length;H<F;H++)w[N=t[i=o[H]]]==null&&(w[N]=++j),r[i]={old:N,new:w[N]},l=w[N]-i,y!=null&&l===u||(y&&f.push(y),R.push(i),u=l),y=i;for(y&&f.push(y),f.push(65535),R.push(65535),D=2*(T=R.length),k=2*Math.pow(Math.log(T)/Math.LN2,2),p=Math.log(k/2)/Math.LN2,E=2*T-k,c=[],A=[],h=[],x=Z=0,$=R.length;Z<$;x=++Z){if(P=R[x],d=f[x],P===65535){c.push(0),A.push(0);break}if(P-(q=r[P].new)>=32768)for(c.push(0),A.push(2*(h.length+T-x)),i=J=P;P<=d?J<=d:J>=d;i=P<=d?++J:--J)h.push(r[i].new);else c.push(q-P),A.push(0)}for(M.writeUInt16(3),M.writeUInt16(1),M.writeUInt32(12),M.writeUInt16(4),M.writeUInt16(16+8*T+2*h.length),M.writeUInt16(0),M.writeUInt16(D),M.writeUInt16(k),M.writeUInt16(p),M.writeUInt16(E),ne=0,B=f.length;ne<B;ne++)i=f[ne],M.writeUInt16(i);for(M.writeUInt16(0),le=0,z=R.length;le<z;le++)i=R[le],M.writeUInt16(i);for(he=0,ee=c.length;he<ee;he++)l=c[he],M.writeUInt16(l);for(be=0,te=A.length;be<te;be++)_=A[be],M.writeUInt16(_);for(ve=0,X=h.length;ve<X;ve++)v=h[ve],M.writeUInt16(v);return{charMap:r,subtable:M.data,maxGlyphID:j+1}}},e})(),YX=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Jc(e,ac),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 n8(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=n8.encode(t,n),(i=new zf).writeUInt16(0),i.writeUInt16(1),r.table=i.data.concat(r.subtable),r},e})(),yke=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Jc(e,ac),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})(),xke=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Jc(e,ac),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})(),bke=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Jc(e,ac),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,l,c;for(c=[],s=o=0,l=this.file.maxp.numGlyphs;0<=l?o<l:o>l;s=0<=l?++o:--o)c.push(t.readUInt32());return c}).call(this)}},e})(),wke=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},jke=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Jc(e,ac),e.prototype.tag="name",e.prototype.parse=function(t){var n,r,i,s,o,l,c,u,d,f,p;for(t.pos=this.offset,t.readShort(),n=t.readShort(),l=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+l+t.readShort()});for(c={},s=d=0,f=r.length;d<f;s=++d)i=r[s],t.pos=i.offset,u=t.readString(i.length),o=new wke(u,i),c[p=i.nameID]==null&&(c[p]=[]),c[i.nameID].push(o);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},e})(),_ke=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Jc(e,ac),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})(),Nke=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Jc(e,ac),e.prototype.tag="hmtx",e.prototype.parse=function(t){var n,r,i,s,o,l,c;for(t.pos=this.offset,this.metrics=[],n=0,l=this.file.hhea.numberOfMetrics;0<=l?n<l:n>l;n=0<=l?++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 u,d;for(d=[],n=u=0;0<=i?u<i:u>i;n=0<=i?++u:--u)d.push(t.readInt16());return d})(),this.widths=(function(){var u,d,f,p;for(p=[],u=0,d=(f=this.metrics).length;u<d;u++)s=f[u],p.push(s.advance);return p}).call(this),r=this.widths[this.widths.length-1],c=[],n=o=0;0<=i?o<i:o>i;n=0<=i?++o:--o)c.push(this.widths.push(r));return c},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})(),XX=[].slice,Ske=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Jc(e,ac),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,r,i,s,o,l,c,u,d,f;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=(l=new zf(n.read(i))).readShort(),u=l.readShort(),f=l.readShort(),c=l.readShort(),d=l.readShort(),this.cache[t]=o===-1?new kke(l,u,f,c,d):new Ake(l,o,u,f,c,d),this.cache[t]))},e.prototype.encode=function(t,n,r){var i,s,o,l,c;for(o=[],s=[],l=0,c=n.length;l<c;l++)i=t[n[l]],s.push(o.length),i&&(o=o.concat(i.encode(r)));return s.push(o.length),{table:o,offsets:s}},e})(),Ake=(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})(),kke=(function(){function e(t,n,r,i,s){var o,l;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;l=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&l;)o.pos+=1&l?4:2,128&l?o.pos+=8:64&l?o.pos+=4:8&l&&(o.pos+=2)}return e.prototype.encode=function(){var t,n,r;for(n=new zf(XX.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)n.pos=this.glyphOffsets[t];return n.data},e})(),Pke=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Jc(e,ac),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]}
1104,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 l=this.offsets[o],c=this.offsets[o+1]-l;c>0&&(i+=c)}for(var u=new Array(4*r.length),d=0;d<r.length;++d)u[4*d+3]=255&r[d],u[4*d+2]=(65280&r[d])>>8,u[4*d+1]=(16711680&r[d])>>16,u[4*d]=(4278190080&r[d])>>24;return u},e})(),Cke=(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,l,c;for(i={},o=0,l=t.length;o<l;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 c=this.glyphsFor(n))r=c[s],i[s]=r;return i},e.prototype.encode=function(t,n){var r,i,s,o,l,c,u,d,f,p,h,x,v,g,y;for(i in r=YX.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),h={0:0},y=r.charMap)h[(c=y[i]).old]=c.new;for(x in p=r.maxGlyphID,o)x in h||(h[x]=p++);return d=(function(w){var j,_;for(j in _={},w)_[w[j]]=j;return _})(h),f=Object.keys(d).sort(function(w,j){return w-j}),v=(function(){var w,j,_;for(_=[],w=0,j=f.length;w<j;w++)l=f[w],_.push(d[l]);return _})(),s=this.font.glyf.encode(o,v,h),u=this.font.loca.encode(s.offsets,v),g={cmap:this.font.cmap.raw(),glyf:s.table,loca:u,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&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},e})();Xt.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 l,c,u;for(u=[],l=0,c=n.length;l<c;l++)r=n[l],u.push(t.convert(r));return u})().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(` 1105`)}return""+n},t})();const Eke={health_check:ns,risk_analysis:ja,policy_generation:Xn,decision_engine:Io},Tke={policy:Xn,framework:Xn,charter:Xn,template:Xn,procedure:Xn,plan:Xn,checklist:Xn,scorecard:ja};function Oke({item:e,type:t,open:n,onOpenChange:r}){if(!e)return null;const i=t==="assessment"?Eke[e.type]||ns:Tke[e.doc_type]||Xn,s=()=>{var u;let c="";return t==="document"?(c=`DOCUMENT: ${e.title} 1106`,c+=`Type: ${e.doc_type} 1107`,c+=`Category: ${e.category||"N/A"} 1108`,e.company_name&&(c+=`Company: ${e.company_name} 1109`),e.industry&&(c+=`Industry: ${e.industry} 1110`),e.company_size&&(c+=`Company Size: ${e.company_size} 1111`),c+=`Generated: ${e.created_date?new Date(e.created_date).toLocaleDateString():"N/A"} 1112`,c+=` 1113${"=".repeat(50)} 1114 1115`,c+=e.content):(c=`ASSESSMENT REPORT: ${e.title} 1116`,c+=`Type: ${e.type} 1117`,c+=`Company: ${e.company_name||"N/A"} 1118`,c+=`Industry: ${e.industry||"N/A"} 1119`,c+=`Company Size: ${e.company_size||"N/A"} 1120`,c+=`Date: ${e.created_date?new Date(e.created_date).toLocaleDateString():"N/A"} 1121`,e.overall_score!==void 0&&(c+=`Overall Score: ${e.overall_score}% 1122`),(u=e.results)!=null&&u.category_scores&&(c+=` 1123Category Scores: 1124`,Object.entries(e.results.category_scores).forEach(([d,f])=>{c+=` - ${d.replace(/_/g," ")}: ${f}% 1125`})),c+=` 1126--- 1127 1128`,e.results&&(e.results.executive_summary&&(c+=`EXECUTIVE SUMMARY: 1129${e.results.executive_summary} 1130 1131`),e.results.strengths&&Array.isArray(e.results.strengths)&&(c+=`STRENGTHS: 1132`,e.results.strengths.forEach((d,f)=>{c+=` ${f+1}. ${d} 1133`}),c+=` 1134`),e.results.critical_gaps&&Array.isArray(e.results.critical_gaps)&&(c+=`CRITICAL GAPS: 1135`,e.results.critical_gaps.forEach((d,f)=>{var p;c+=` ${f+1}. [${(p=d.severity)==null?void 0:p.toUpperCase()}] ${d.description} 1136`,d.impact&&(c+=` Impact: ${d.impact} 1137`)}),c+=` 1138`),e.results.risks&&Array.isArray(e.results.risks)&&(c+=`IDENTIFIED RISKS: 1139`,e.results.risks.forEach((d,f)=>{var p;c+=` ${f+1}. [${(p=d.severity)==null?void 0:p.toUpperCase()}] ${d.description} 1140`,d.impact&&(c+=` Impact: ${d.impact} 1141`),d.mitigation&&(c+=` Mitigation: ${d.mitigation} 1142`)}),c+=` 1143`),e.results.recommendations&&Array.isArray(e.results.recommendations)&&(c+=`RECOMMENDATIONS: 1144`,e.results.recommendations.forEach((d,f)=>{c+=` ${f+1}. ${d} 1145`}),c+=` 1146`),e.results.action_items&&Array.isArray(e.results.action_items)&&(c+=`ACTION ITEMS:
1147`,e.results.action_items.forEach((d,f)=>{c+=` ${f+1}. ${d} 1148`}),c+=` 1149`),typeof e.results=="string"&&(c+=`DETAILED ANALYSIS: 1150${e.results.replace(/[#*`]/g,"")} 1151 1152`)),e.answers&&(c+=` 1153--- 1154 1155YOUR RESPONSES: 1156 1157`,Object.entries(e.answers).forEach(([d,f])=>{const p=d.replace(/_/g," ").replace(/\b\w/g,h=>h.toUpperCase());c+=`${p}: ${typeof f=="boolean"?f?"Yes":"No":f} 1158`}))),c},o=()=>{var w;const u=s().split(` 1159`);let d=` 1160 <html xmlns:o="urn:schemas-microsoft-com:office:office" 1161 xmlns:w="urn:schemas-microsoft-com:office:word" 1162 xmlns="http://www.w3.org/TR/REC-html40"> 1163 <head> 1164 <meta charset="utf-8"> 1165 <title>${e.title}</title> 1166 <style> 1167 body { font-family: 'Segoe UI', Arial, sans-serif; line-height: 1.6; color: #1e293b; } 1168 h1 { color: #1e293b; font-size: 24px; margin-bottom: 10px; } 1169 h2 { color: #2563eb; font-size: 16px; margin-top: 20px; margin-bottom: 10px; font-weight: bold; } 1170 .metadata { color: #64748b; font-size: 11px; margin-bottom: 20px; } 1171 .section { margin-top: 25px; } 1172 .divider { height: 2px; background: #e2e8f0; margin: 20px 0; } 1173 ul { list-style-type: disc; margin-left: 20px; } 1174 ol { margin-left: 20px; } 1175 li { margin-bottom: 8px; } 1176 .score { font-weight: bold; color: #2563eb; } 1177 </style> 1178 </head> 1179 <body> 1180 <h1>${e.title}</h1> 1181 <div class="metadata"> 1182 `;t==="assessment"?(d+=`<p>Type: ${e.type} | Company: ${e.company_name||"N/A"} | Industry: ${e.industry||"N/A"}`,e.company_size&&(d+=` | Size: ${e.company_size}`),e.overall_score!==void 0&&(d+=` | <span class="score">Score: ${e.overall_score}%</span>`),d+="</p>",(w=e.results)!=null&&w.category_scores&&(d+="<p><strong>Category Scores:</strong><br/>",Object.entries(e.results.category_scores).forEach(([j,_],N)=>{d+=` ${N>0?" ⢠":""}${j.replace(/_/g," ")}: ${_}%`}),d+="</p>")):d+=`<p>Type: ${e.doc_type} | Category: ${e.category||"N/A"} | Company: ${e.company_name||"N/A"}</p>`,d+=`<p>Generated: ${new Date().toLocaleDateString()}</p></div>`;let f=!1,p="ul",h=[];const x=()=>{h.length>0&&(d+=`<${p}>`,h.forEach(j=>{d+=`<li>${j}</li>`}),d+=`</${p}>`,h=[],f=!1)};u.forEach(j=>{const _=j.trim();if(!_){x(),d+="<br/>";return}if(_==="---"){x(),d+='<div class="divider"></div>';return}if(_.endsWith(":")&&_===_.toUpperCase()){x();const k=_.slice(0,-1);d+=`<h2 class="section">${k}</h2>`;return}const N=_.match(/^(\d+)\.\s+(.*)$/),A=_.match(/^[-â¢]\s+(.*)$/),E=_.startsWith(" ")||_.startsWith(" ");if(N||A||E){f||(f=!0,p=N?"ol":"ul");const k=N?N[2]:A?A[1]:_.trim();h.push(k)}else x(),_.includes(":")&&!_.includes(" ")?d+=`<p><strong>${_}</strong></p>`:d+=`<p>${_}</p>`}),x(),d+="</body></html>";const v=new Blob([d],{type:"application/msword"}),g=URL.createObjectURL(v),y=document.createElement("a");y.href=g,y.download=`${e.title.replace(/\s+/g,"_")}.doc`,y.click(),URL.revokeObjectURL(g),pt.success("Document downloaded successfully")},l=()=>{const c=new Xt,d=s().split(` 1183`),f=c.internal.pageSize.getWidth(),p=15,h=f-2*p;c.setFont("helvetica","bold"),c.setFontSize(18),c.setTextColor(30,41,59);const x=c.splitTextToSize(e.title,h);c.text(x,p,20),c.setFont("helvetica","normal"),c.setFontSize(10),c.setTextColor(100,116,139);let v=30+x.length*5;t==="assessment"?(c.text(`Type: ${e.type}`,p,v),v+=6,e.company_name&&(c.text(`Company: ${e.company_name}`,p,v),v+=6),e.industry&&(c.text(`Industry: ${e.industry}`,p,v),v+=6),e.company_size&&(c.text(`Size: ${e.company_size}`,p,v),v+=6),e.overall_score!==void 0&&(c.text(`Score: ${e.overall_score}%`,p,v),v+=6)):(c.text(`Type: ${e.doc_type}`,p,v),v+=6,e.category&&(c.text(`Category: ${e.category}`,p,v),v+=6),e.company_name&&(c.text(`Company: ${e.company_name}`,p,v),v+=6),e.industry&&(c.text(`Industry: ${e.industry}`,p,v),v+=6)),c.text(`Generated: ${new Date().toLocaleDateString()}`,p,v),v+=10,c.setDrawColor(226,232,240),c.line(p,v,f-p,v),v+=10,c.setFontSize(11),c.setTextColor(30,41,59);let g=!1,y=0;d.forEach(w=>{const j=w.trim();if(!j||j==="---"||j==="***"||j.startsWith("![")){v+=5;return}const _=j.match(/^(#+)\s+(.*)$/);if(_){const k=_[1].length,T=_[2];c.setFont("helvetica","bold"),c.setFontSize(k===1?14:k===2?13:12),c.setTextColor(k===1?37:k===2?59:71,k===1?99:k===2?104:116,k===1?235:k===2?132:160),c.splitTextToSize(T,h-y).forEac
1183h(P=>{v>270&&(c.addPage(),v=20),c.text(P,p+y,v),v+=k===1?8:7}),c.setFont("helvetica","normal"),c.setFontSize(11),c.setTextColor(30,41,59),v+=2;return}const N=j.match(/^([-*â¢]|\d+\.)\s+(.*)$/);if(N){g||(g=!0,y=5);const k=N[2];c.splitTextToSize(k,h-y).forEach(D=>{v>270&&(c.addPage(),v=20),c.text(`⢠${D}`,p+y,v),v+=5});return}else g=!1,y=0;let A=j.replace(/\*\*(.*?)\*\*/g,"$1");c.splitTextToSize(A,h).forEach(k=>{v>270&&(c.addPage(),v=20),c.text(k,p+y,v),v+=5})}),c.save(`${e.title.replace(/\s+/g,"_")}.pdf`),pt.success("PDF downloaded successfully")};return a.jsx(Gn,{open:n,onOpenChange:r,children:a.jsxs(zn,{className:"max-w-3xl max-h-[80vh] overflow-y-auto",children:[a.jsxs("div",{className:"flex items-start justify-between mb-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center",children:a.jsx(i,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-heading font-bold",children:e.title}),a.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground mt-1",children:[a.jsx(at,{variant:"outline",className:"text-xs",children:t==="assessment"?e.type:e.doc_type}),e.overall_score&&a.jsxs(at,{variant:"outline",className:"font-mono",children:[e.overall_score,"%"]}),a.jsx("span",{children:e.created_date?gj(new Date(e.created_date),"MMM d, yyyy"):""})]})]})]}),a.jsx(xe,{variant:"ghost",size:"icon",onClick:()=>r(!1),children:a.jsx(ss,{className:"w-4 h-4"})})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx(pj,{item:e,type:t}),a.jsxs("div",{className:"flex gap-2 pt-4 border-t",children:[a.jsxs(xe,{onClick:l,className:"flex-1",children:[a.jsx(Fne,{className:"w-4 h-4 mr-2"})," PDF"]}),a.jsxs(xe,{onClick:o,variant:"secondary",className:"flex-1",children:[a.jsx(Une,{className:"w-4 h-4 mr-2"})," DOC"]}),a.jsx(xe,{variant:"outline",onClick:()=>r(!1),className:"flex-1",children:"Close"})]})]})]})})}const Rke=e=>e?e.role==="super_admin":!1,Ike={health_check:ns,risk_analysis:ja,policy_generation:Xn,decision_engine:Io},Lke={health_check:"bg-teal-500/10 text-teal-600",risk_analysis:"bg-amber-500/10 text-amber-600",policy_generation:"bg-blue-500/10 text-blue-600",decision_engine:"bg-purple-500/10 text-purple-600"};function Mke({item:e,type:t,onDelete:n}){const{user:r}=jG(),[i,s]=O.useState(!1),[o,l]=O.useState(!1),[c,u]=O.useState(!1),d=Rke(r),f=t==="assessment"?Ike[e.type]||ns:Xn,p=t==="assessment"?Lke[e.type]||"bg-muted text-muted-foreground":"bg-blue-500/10 text-blue-600",h=async()=>{const E=window.location.origin,k=`Check out my ${t==="assessment"?"governance assessment":"document"}: ${e.title}`;try{if(navigator.share){await navigator.share({title:e.title,text:k,url:E});return}}catch{console.log("Share failed, showing dialog")}s(!0)},x=window.location.origin,v=`Check out my ${t==="assessment"?"governance assessment":"document"}: ${e.title}`,g=()=>{navigator.clipboard.writeText(`${v} - ${x}`),pt.success("Link copied to clipboard!"),s(!1)},y=()=>{const E=encodeURIComponent(v),k=encodeURIComponent(x);window.open(`https://twitter.com/intent/tweet?text=${E}&url=${k}`,"_blank"),s(!1)},w=()=>{const E=encodeURIComponent(x);window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${E}`,"_blank"),s(!1)},j=()=>{const E=encodeURIComponent(x);window.open(`https://www.facebook.com/sharer/sharer.php?u=${E}`,"_blank"),s(!1)},_=()=>{const E=encodeURIComponent(v),k=encodeURIComponent(`Check this out: ${x}`);window.open(`mailto:?subject=${E}&body=${k}`,"_blank"),s(!1)},N=()=>{const E=encodeURIComponent(x);window.open(`https://getpocket.com/save?url=${E}`,"_blank"),s(!1)},A=async()=>{try{const E=t==="assessment"?"Assessment":"GeneratedDocument";await Ne.entities[E].delete(e.id),pt.success("Item deleted successfully"),n(e.id),l(!1)}catch{pt.error("Failed to delete item")}};return a.jsxs(a.Fragment,{children:[a.jsxs(ur.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,x:-100},transition:{duration:.2},className:"group flex items-center justify-between p-4 rounded-xl border bg-card hover:shadow-md transition-all",children:[a.jsxs("div",{className:"flex items-center gap-4 flex-1",children:[a.jsx("div",{className:`w-10 h-10 rounded-xl flex items-center justify-center ${p.split(" ")[0]}`,children:a.jsx(f,{className:`w-5 h-5 ${p.split(" ")[1]}`})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("p",{className:"font-semibold text-sm truncate",children:e.title}),e.overall_score!=null&&a.jsxs(at,{variant:"outline",className:"font-mono text-xs",children:[e.overall_score,"%"]}),e.doc_type&&a.jsx(at,{variant:"outline",className:"text-[10px]",children:e.doc_type})]}),a.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground mt-1",children:[a.jsx("span",{className:"capitalize",children:e.type||e.doc_type}),a.jsx("span",{children:"â¢"}),a.jsx("span",{children:e.created_date?gj(new Date(e.created_date),"MMM d, yyyy"):"Unknown"})]})]})]}),a.jsxs("div",{className:"flex items-center gap-2 opacity-0 group-hover:opacity-100 transition-opacity",children:[a.jsx(xe,{variant:"ghost",size:"icon",className:"w-8 h-8 hover:bg-primary/10",onClick:h,title:"Share",children:a.jsx(N4,{className:"w-4 h-4"})}),a.jsx(xe,{variant:"ghost",size:"icon",className:"w-8 h-8 hover:bg-destructive/10",onClick:()=>l(!0),title:"Delete",children:a.jsx(Ps,{className:"w-4 h-4 text-destructive"})}),d&&a.jsx(xe,{variant:"ghost",size:"icon",className:"w-8 h-8 hover:bg-amber-500/10",onClick:()=>u(!0),title:"Admin: Edit",children:a.jsx(md,{className:"w-4 h-4 text-amber-600"})}),a.jsx(xe,{variant:"ghost",size:"icon",className:"w-8 h-8 hover:bg-accent",onClick:()=>u(!0),title:"View details",children:a.jsx(S2,{className:"w-4 h-4"})})]})]}),a.jsx(Gn,{open:i,onOpenChange:s,children:a.jsxs(zn,{children:[a.jsxs(Vn,{children:[a.jsxs(Wn,{children:["Share ",e.title]}),a.jsxs(Mc,{children:["Share this ",t," with your team or on social media"]})]}),a.jsx("div",{className:"space-y-4",children:a.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[a.jsxs(xe,{variant:"outline",onClick:y,className:"flex flex-col items-center gap-1 h-auto py-3",children:[a.jsx(die,{className:"w-5 h-5 text-sky-500"}),a.jsx("span",{className:"text-[10px]",children:"Twitter"})]}),a.jsxs(xe,{variant:"outline",onClick:w,className:"flex flex-col items-center gap-1 h-auto py-3",children:[a.jsx(pre,{className:"w-5 h-5 text-blue-700"}),a.jsx("span",{className:"text-[10px]",children:"LinkedIn"})]}),a.jsxs(xe,{variant:"outline",onClick:j,className:"flex flex-col items-center gap-1 h-auto py-3",children:[a.jsx(Ine,{className:"w-5 h-5 text-blue-600"}),a.jsx("span",{className:"text-[10px]",children:"Facebook"})]}),a.jsxs(xe,{variant:"outline",onClick:_,className:"flex flex-col items-center gap-1 h-auto py-3",children:[a.jsx(M9,{className:"w-5 h-5 text-gray-600"}),a.jsx("span",{className:"text-[10px]",children:"Email"})]}),a.jsxs(xe,{variant:"outline",onClick:N,className:"flex flex-col items-center gap-1 h-auto py-3",children:[a.jsx(Dre,{className:"w-5 h-5 text-red-500"}),a.jsx("span",{className:"text-[10px]",children:"Pocket"})]}),a.jsxs(xe,{variant:"outline",onClick:g,className:"flex flex-col items-center gap-1 h-auto py-3",children:[a.jsx(ad,{
1183className:"w-5 h-5 text-gray-500"}),a.jsx("span",{className:"text-[10px]",children:"Copy Link"})]})]})})]})}),a.jsx(Gn,{open:o,onOpenChange:l,children:a.jsxs(zn,{children:[a.jsxs(Vn,{children:[a.jsxs(Wn,{children:["Delete ",t,"?"]}),a.jsxs(Mc,{children:['Are you sure you want to delete "',e.title,'"? This action cannot be undone.']})]}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx(xe,{variant:"outline",onClick:()=>l(!1),children:"Cancel"}),a.jsx(xe,{variant:"destructive",onClick:A,children:"Delete"})]})]})}),a.jsx(Oke,{item:e,type:t,open:c,onOpenChange:u})]})}function Dke(){const{tierKey:e,tier:t,credits:n,usageToday:r,isPremium:i,isVisitor:s}=Rp(),{t:o}=Zt();Ur();const[l,c]=O.useState("all"),u=[{label:o("dashboard.qaHealthCheck"),href:"/health-check",icon:ns,color:"bg-teal-500/10 text-teal-600"},{label:o("dashboard.qaPolicy"),href:"/policy-generator",icon:Xn,color:"bg-blue-500/10 text-blue-600"},{label:o("dashboard.qaRisks"),href:"/risk-analyzer",icon:ja,color:"bg-amber-500/10 text-amber-600"},{label:o("dashboard.qaDecision"),href:"/decision-engine",icon:Io,color:"bg-purple-500/10 text-purple-600"},{label:o("dashboard.qaMicroTools"),href:"/micro-tools",icon:Fy,color:"bg-emerald-500/10 text-emerald-600"},{label:o("dashboard.qaIntelligence"),href:"/intelligence",icon:Yl,color:"bg-rose-500/10 text-rose-600"}],{data:d=[],refetch:f}=Qt({queryKey:["assessments"],queryFn:()=>Ne.entities.Assessment.list("-created_date",50),initialData:[]}),{data:p=[],refetch:h}=Qt({queryKey:["documents"],queryFn:()=>Ne.entities.GeneratedDocument.list("-created_date",50),initialData:[]}),x=d.filter(j=>j.status==="completed"),v=x.length?Math.round(x.reduce((j,_)=>j+(_.overall_score||0),0)/x.length):0;p.filter(j=>j.category==="intelligence"),p.filter(j=>j.category!=="intelligence"&&j.category!=="micro_tools"),p.filter(j=>j.category==="micro_tools");const g=[...d.map(j=>({...j,_type:"assessment"})),...p.map(j=>({...j,_type:"document"}))].sort((j,_)=>new Date(_.created_date)-new Date(j.created_date)),y=l==="all"?g:l==="intelligence"?g.filter(j=>j._type==="document"&&j.category==="intelligence"):l==="micro_tools"?g.filter(j=>j._type==="document"&&j.category==="micro_tools"):g.filter(j=>j._type==="document"&&j.category!=="intelligence"&&j.category!=="micro_tools"),w=(j,_)=>{_==="assessment"?f():h()};return a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[a.jsxs(ur.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 mb-8",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"font-heading text-3xl font-bold bg-gradient-to-r from-primary to-blue-600 bg-clip-text text-transparent",children:o("dashboard.title")}),a.jsx("p",{className:"text-muted-foreground mt-1",children:o("dashboard.subtitle")})]}),a.jsx(xe,{className:"gap-2 bg-gradient-to-r from-primary to-blue-600 hover:from-primary/90 hover:to-blue-600/90 shadow-lg",asChild:!0,children:a.jsxs(Dt,{to:"/health-check",children:[a.jsx(sa,{className:"w-4 h-4"})," ",o("dashboard.newAssessment")]})})]}),!i&&a.jsxs(ur.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{delay:.1},className:"mb-8 p-5 rounded-2xl border bg-gradient-to-r from-card to-accent/30 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 shadow-sm",children:[a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx("div",{className:`w-12 h-12 rounded-xl flex items-center justify-center ${s?"bg-muted":"bg-primary/10"} shadow-sm`,children:s?a.jsx(A2,{className:"w-5 h-5 text-muted-foreground"}):a.jsx(Zu,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-base font-bold",children:o(s?"dashboard.visitorFree":"dashboard.freeTier")}),a.jsxs("p",{className:"text-sm text-muted-foreground mt-0.5",children:[n," ",o("dashboard.creditsRemaining")," · ",Math.max(0,t.assessmentsPerDay-(r.assessments||0))," ",o("dashboard.assessmentsLeft")]})]})]}),a.jsx(xe,{size:"sm",className:"gap-2 bg-primary hover:bg-primary/90 shadow-md",children:a.jsxs(Dt,{to:"/pricing",className:"flex items-center gap-1.5",children:[a.jsx(Wc,{className:"w-4 h-4"})," ",o("dashboard.upgradeToPremium")]})})]}),a.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[a.jsx(Ub,{icon:ns,value:d.length,label:o("dashboard.totalAssessments"),color:"bg-teal-500",delay:.1}),a.jsx(Ub,{icon:Xn,value:p.length,label:o("dashboard.documentsGenerated"),color:"bg-blue-500",delay:.15}),a.jsx(Ub,{icon:fi,value:v>0?`${v}%`:"â",label:o("dashboard.averageScore"),color:"bg-emerald-500",delay:.2}),a.jsx(Ub,{icon:i?Wc:ls,value:o(i?"dashboard.premium":"dashboard.free"),label:i?`${n} ${o("dashboard.credits")}`:o("dashboard.plan"),color:i?"bg-amber-500":"bg-primary",delay:.25})]}),a.jsx(ur.div,{initial:{opacity:0,y:20}
1183,animate:{opacity:1,y:0},transition:{delay:.3},className:"mb-8",children:a.jsx(tX,{compact:!0})}),a.jsxs(ur.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.35},className:"mb-8",children:[a.jsx("h2",{className:"font-heading font-semibold text-lg mb-4",children:o("dashboard.quickActions")}),a.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3",children:u.map((j,_)=>a.jsx(ur.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.4+_*.05},children:a.jsx(Dt,{to:j.href,children:a.jsx(Oe,{className:"hover:border-primary/30 hover:shadow-lg hover:-translate-y-1 transition-all cursor-pointer h-full group",children:a.jsxs(Le,{className:"p-4 flex flex-col items-center gap-3 text-center",children:[a.jsx("div",{className:`w-12 h-12 rounded-xl ${j.color.split(" ")[0]} group-hover:scale-110 transition-transform flex items-center justify-center`,children:a.jsx(j.icon,{className:`w-6 h-6 ${j.color.split(" ")[1]}`})}),a.jsx("span",{className:"text-xs font-semibold",children:j.label})]})})})},j.href))})]}),a.jsxs(ur.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsx("h2",{className:"font-heading font-semibold text-lg",children:o("dashboard.recentActivity")}),a.jsx("div",{className:"flex gap-2 flex-wrap",children:[{value:"all",label:o("dashboard.tabAll")},{value:"assessment",label:o("dashboard.tabAITools")},{value:"micro_tools",label:o("dashboard.tabMicroTools")},{value:"intelligence",label:o("dashboard.tabIntelligence")}].map(j=>a.jsx(xe,{variant:l===j.value?"default":"outline",size:"sm",onClick:()=>c(j.value),className:"text-xs",children:j.label},j.value))})]}),a.jsx(Oe,{className:"border-2 shadow-lg",children:a.jsx(Le,{className:"p-6",children:y.length===0?a.jsxs("div",{className:"text-center py-12",children:[a.jsx("div",{className:"w-16 h-16 rounded-2xl bg-muted/50 flex items-center justify-center mx-auto mb-4",children:l==="document"?a.jsx(Xn,{className:"w-8 h-8 text-muted-foreground"}):a.jsx(ns,{className:"w-8 h-8 text-muted-foreground"})}),a.jsx("p",{className:"text-muted-foreground font-medium",children:o("dashboard.noActivities")}),a.jsx(xe,{size:"sm",variant:"outline",asChild:!0,className:"mt-4",children:a.jsx(Dt,{to:l==="document"?"/policy-generator":"/health-check",children:o("dashboard.getStarted")})})]}):a.jsx("div",{className:"space-y-3",children:a.jsx(nK,{children:y.slice(0,10).map(j=>a.jsx(Mke,{item:j,type:j._type,onDelete:_=>w(_,j._type)},j.id))})})})})]})]})}function Fke({item:e,itemType:t,onSuccess:n,onClose:r,user:i}){return O.useEffect(()=>{if(!window.paypal||!e||!i)return;let s=!0;return(async()=>{try{if(!s)return;window.paypal.Buttons({createOrder:async()=>{try{return(await Ne.functions.invoke("createPayPalOrder",{amount:e.price,item_type:t,item_name:e.name,credits_amount:e.credits_amount,report_type:e.report_type,plan_slug:e.plan_slug})).data.orderID}catch(l){throw console.error("Failed to create order:",l),pt.error("Failed to create payment order"),l}},onApprove:async l=>{var c,u;try{const d=await Ne.functions.invoke("capturePayPalOrder",{orderID:l.orderID,item_type:t,item_name:e.name,amount:e.price,credits_amount:e.credits_amount,report_type:e.report_type,plan_slug:e.plan_slug});d.data.success?(pt.success("Payment successful!"),setTimeout(()=>{s&&(n==null||n())},500)):pt.error(d.data.error||"Payment processing failed")}catch(d){console.error("Payment capture failed:",d),pt.error(((u=(c=d.response)==null?void 0:c.data)==null?void 0:u.error)||"Payment capture failed")}},onError:l=>{console.error("PayPal error:",l),pt.error("Payment failed. Please try again.")},onCancel:()=>{pt.info("Payment cancelled")}}).render("#paypal-button-container")}catch(l){console.error("Failed to render PayPal buttons:",l),pt.error("Failed to initialize payment")}})(),()=>{s=!1;const l=document.getElementById("paypal-button-container");l&&(l.innerHTML="")}},[e,t,n,r,i]),a.jsx("div",{id:"paypal-button-container",className:"w-full"})}function QX({open:e,onClose:t,item:n,itemType:r,onSuccess:i}){const[s,o]=O.useState(!1),[l,c]=O.useState(null),[u,d]=O.useState(null),[f,p]=O.useState(!1),[h,x]=O.useState(!0),[v,g]=O.useState(!1),[y,w]=O.useState(!1);O.useEffect(()=>{if(!e){o(!1),c(null),x(!0);return}(async()=>{try{const E=await Ne.auth.me();d(E),p(!0)}catch{p(!1)}finally{x(!1)}})()},[e]),O.useEffect(()=>{if(!e||!f||h){o(!1),c(null),g(!1);return}let A=!0,E=null,k=null,T=null;return(async()=>{var P;try{if(window.paypal){A&&(o(!0),g(!1),w(!1));return}k=setTimeout(()=>{A&&g(!0)},3e3),T=setTimeout(()=>{A&&!window.paypal&&(w(!0),E&&E.parentNode&&E.parentNode.removeChild(E))},1e4);const q=(P=(await Ne.functions.invoke("getPayPalClientId",{})).data)==null?void 0:P.clientId;if(!q)throw new Error("PayPal client ID not available");E=document.createElement("script"),E.src=`https://www.paypal.com/sdk/js?client-id=${q}¤cy=USD`,E.async=!0,E.onload=()=>{k&&clearTimeout(k),T&&clearTimeout(T),A&&window.paypal&&(o(!0),g(!1),w(!1))},E.onerror=()=>{k&&clearTimeout(k),T&&clearTimeout(T),A&&(c("Failed to load PayPal SDK"),pt.error("Payment system unavailable. Please try again."))},document.head.appendChild(E)}catch(R){console.error("PayPal initialization error:",R),k&&clearTimeout(k),T&&clearTimeout(T),A&&(c(R.message),pt.error("Failed to initialize payment"))}})(),()=>{A=!1,k&&clearTimeout(k),T&&clearTimeout(T);const P=document.getElementById("paypal-button-container");P&&(P.innerHTML="")}},[e,f,h]);const j=()=>{o(!1),c(null),x(!0),t()},_=()=>{o(!1),c(null),x(!0),i==null||i(),t()},N=()=>{Ne.auth.redirectToLogin()};return h?a.jsx(Gn,{open:e,onOpenChange:j,children:a.jsxs(zn,{className:"sm:max-w-md","aria-describedby":"payment-description",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:"Complete Your Purchase"})}),a.jsx("div",{id:"payment-description",className:"sr-only",children:"Loading authentication status"}),a.jsxs("div",{className:"flex flex-col items-center justify-center py-8 gap-2",children:[a.jsx("div",{className:"w-6 h-6 border-2 border-primary border-t-transparent roun
1183ded-full animate-spin"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Checking authentication..."})]})]})}):f?a.jsx(Gn,{open:e,onOpenChange:j,children:a.jsxs(zn,{className:"sm:max-w-md","aria-describedby":"payment-description",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:"Complete Your Purchase"})}),a.jsx("div",{id:"payment-description",className:"sr-only",children:"Payment checkout dialog"}),a.jsxs("div",{className:"py-4",children:[n&&a.jsxs("div",{className:"mb-4 p-3 bg-secondary rounded-lg",children:[a.jsx("p",{className:"font-medium",children:n.name}),a.jsxs("p",{className:"text-sm text-muted-foreground",children:["$",n.price]})]}),l?a.jsx("div",{className:"text-center py-8",children:a.jsx("p",{className:"text-destructive text-sm",children:l})}):s&&n?a.jsx(Fke,{item:n,itemType:r,onSuccess:_,onClose:t,user:u}):y?a.jsxs("div",{className:"flex flex-col items-center justify-center py-8 gap-4",children:[a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("p",{className:"text-sm font-medium text-destructive",children:"Payment system unavailable"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"The payment service took too long to load."})]}),a.jsx(xe,{onClick:()=>{w(!1),o(!1),window.location.reload()},className:"text-xs",children:"Try Again"})]}):a.jsxs("div",{className:"flex flex-col items-center justify-center py-8 gap-2",children:[a.jsx("div",{className:"w-6 h-6 border-2 border-primary border-t-transparent rounded-full animate-spin"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:v?"Still loading... this may take a moment":"Loading payment system..."})]})]})]})}):a.jsx(Gn,{open:e,onOpenChange:j,children:a.jsxs(zn,{className:"sm:max-w-md","aria-describedby":"payment-description",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:"Create Account to Purchase"})}),a.jsxs("div",{className:"py-6 space-y-4 text-center",id:"payment-description",children:[n&&a.jsxs("div",{className:"p-3 bg-secondary rounded-lg",children:[a.jsx("p",{className:"font-medium",children:n.name}),a.jsxs("p",{className:"text-sm text-muted-foreground",children:["$",n.price]})]}),a.jsx("div",{className:"space-y-2",children:a.jsx("p",{className:"text-sm text-muted-foreground",children:"You need a free account to complete this purchase. Sign up in seconds and get started."})}),a.jsx(xe,{onClick:N,className:"w-full bg-primary hover:bg-primary/90",children:"Create Free Account & Continue"}),a.jsx(xe,{variant:"outline",onClick:j,className:"w-full",children:"Cancel"})]})]})})}const ZC={USD:{symbol:"$",rate:1,label:"USD â US Dollar"},EUR:{symbol:"â¬",rate:.92,label:"EUR â Euro"},GBP:{symbol:"£",rate:.79,label:"GBP â British Pound"},JPY:{symbol:"Â¥",rate:150,label:"JPY â Japanese Yen"},CAD:{symbol:"C$",rate:1.36,label:"CAD â Canadian Dollar"}
1183,AUD:{symbol:"A$",rate:1.52,label:"AUD â Australian Dollar"},CHF:{symbol:"CHF",rate:.88,label:"CHF â Swiss Franc"},INR:{symbol:"â¹",rate:83,label:"INR â Indian Rupee"}};function Zb(e,t){const n=ZC[t]||ZC.USD,r=e*n.rate;return t==="JPY"||t==="INR"?`${n.symbol}${Math.round(r)}`:`${n.symbol}${r.toFixed(0)}`}function Bke({currency:e,onChange:t}){return a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-muted/60 border border-border",children:[a.jsx(Sp,{className:"w-3.5 h-3.5 text-muted-foreground"}),a.jsxs(Et,{value:e,onValueChange:t,children:[a.jsx(Pt,{className:"h-7 w-auto border-0 bg-transparent px-1 py-0 text-xs font-medium shadow-none focus:ring-0",children:a.jsx(Tt,{})}),a.jsx(Ct,{children:Object.entries(ZC).map(([n,r])=>a.jsx(Ce,{value:n,className:"text-xs",children:r.label},n))})]})]})}function qke(){const{t:e}=Zt(),[t,n]=O.useState("monthly"),[r,i]=O.useState("USD"),s=Uf(),[o,l]=O.useState(null),[c,u]=O.useState(!1),[d,f]=O.useState(null),[p,h]=O.useState("credits"),[x,v]=O.useState(!1),g=[{key:"free",name:e("pricing.freeName"),price:"$0",period:e("pricing.forever"),description:e("pricing.freeDesc"),badge:null,cta:e("pricing.freeCta"),ctaVariant:"outline",href:"/health-check",features:[e("pricing.freeF1"),e("pricing.freeF2"),e("pricing.freeF3"),e("pricing.freeF4"),e("pricing.freeF5"),e("pricing.freeF6")],locked:[e("pricing.freeL1"),e("pricing.freeL2"),e("pricing.freeL3"),e("pricing.freeL4"),e("pricing.freeL5")]},{key:"premium",name:e("pricing.premiumName"),price:"$49",period:e("pricing.perMonth"),description:e("pricing.premiumDesc"),badge:e("pricing.premiumBadge"),trialBadge:e("pricing.trialBadge"),cta:e("pricing.premiumCta"),ctaVariant:"default",href:"/health-check",features:[e("pricing.premF1"),e("pricing.premF2"),e("pricing.premF3"),e("pricing.premF4"),e("pricing.premF5"),e("pricing.premF6"),e("pricing.premF7"),e("pricing.premF8"),e("pricing.premF9")],locked:[]},{key:"enterprise",name:e("pricing.enterpriseName"),price:"$149",period:e("pricing.perMonth"),description:e("pricing.enterpriseDesc"),badge:null,cta:e("pricing.enterpriseCta"),ctaVariant:"outline",href:"/health-check",features:[e("pricing.entF1"),e("pricing.entF2"),e("pricing.entF3"),e("pricing.entF4"),e("pricing.entF5"),e("pricing.entF6")],locked:[]}],y=[{amount:"50",price:"$9",label:e("pricing.starterPack"),desc:e("pricing.starterDesc")},{amount:"200",price:"$29",label:e("pricing.growthPack"),desc:e("pricing.growthDesc"),popular:!0},{amount:"500",price:"$59",label:e("pricing.powerPack"),desc:e("pricing.powerDesc")},{amount:"1,500",price:"$149",label:e("pricing.enterprisePack"),desc:e("pricing.enterprisePackDesc")}],w=[{icon:ja,name:e("pricing.r1Name"),price:"$29",desc:e("pricing.r1Desc"),key:"maturity_assessment"},{icon:ls,name:e("pricing.r2Name"),price:"$49",desc:e("pricing.r2Desc"),key:"risk_review"},{icon:Xn,name:e("pricing.r3Name"),price:"$39",desc:e("pricing.r3Desc"),key:"policy_framework"},{icon:Io,name:e("pricing.r4Name"),price:"$59",desc:e("pricing.r4Desc"),key:"ai_governance"},{icon:Sp,name:e("pricing.r5Name"),price:"$49",desc:e("pricing.r5Desc"),key:"compliance_audit"},{icon:Yg,name:e("pricing.r6Name"),price:"$99",desc:e("pricing.r6Desc"),key:"executive_pack"}];Ae.useEffect(()=>{(async()=>{try{const N=await Ne.auth.me();l(N)}catch(N){console.error("Failed to fetch user:",N)}})()},[]);const j=async()=>{try{if(!await Ne.auth.isAuthenticated()){Ne.auth.redirectToLogin("/pricing");return}v(!0);const N=await Ne.auth.me();if((N==null?void 0:N.tier)==="premium"){pt.success(e("trial.alreadyPremium")),s("/dashboard");return}const A=new Date,E=new Date(A.getTime()+720*60*60*1e3);await Ne.auth.updateMe({tier:"premium",trial_started_at:A.toISOString(),trial_ends_at:E.toISOString()}),pt.success(e("trial.trialActivated")),s("/dashboard")}catch(_){console.error("Trial activation failed:",_),pt.error(e("trial.trialFailed"))}finally{v(!1)}};return a.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-primary/10 border border-primary/20 mb-4",children:[a.jsx(Wc,{className:"w-3.5 h-3.5 text-primary"}),a.jsx("span",{className:"text-xs font-medium text-primary",children:e("pricing.badge")})]}),a.jsx("h1",{className:"font-heading text-3xl sm:text-4xl font-bold mb-3",children:e("pricing.title")}),a.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto",children:e("pricing.subtitle")}),a.jsxs("div",{className:"mt-5 flex flex-col items-center gap-1.5",children:[a.jsx(Bke,{currency:r,onChange:i}),r!=="USD"&&a.jsx("p",{className:"text-[11px] text-muted-foreground",children:e("pricing.approxConversion")})]})]}),a.jsx("div",{className:"grid md:grid-cols-3 gap-6 mb-16",children:g.map((_,N)=>a.jsx(ur.div,{initial:{opacity:0,y:20}
1183,animate:{opacity:1,y:0},transition:{delay:N*.1},children:a.jsxs(Oe,{className:`h-full relative ${_.key==="premium"?"border-primary shadow-lg shadow-primary/10":""}`,children:[_.badge&&a.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2",children:a.jsx(at,{className:_.key==="enterprise"?"bg-slate-700":"bg-primary",children:_.badge})}),a.jsxs(vt,{className:"pb-4",children:[a.jsxs("div",{className:"mb-3",children:[a.jsx("p",{className:"font-heading font-bold text-lg",children:_.name}),a.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:_.description})]}),a.jsxs("div",{children:[a.jsx("span",{className:"font-heading text-4xl font-bold",children:_.key==="free"?Zb(0,r):Zb(parseFloat(_.price.replace("$","")),r)}),a.jsxs("span",{className:"text-sm text-muted-foreground ml-1",children:["/",_.period]})]}),_.trialBadge&&a.jsxs("div",{className:"mt-3 inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-primary/10 border border-primary/20 w-fit",children:[a.jsx(vg,{className:"w-3 h-3 text-primary"}),a.jsx("span",{className:"text-[11px] font-semibold text-primary",children:_.trialBadge})]})]}),a.jsxs(Le,{className:"space-y-4",children:[a.jsx(xe,{className:`w-full gap-2 ${_.ctaVariant==="default"?"bg-primary hover:bg-primary/90":""}`,variant:_.ctaVariant,disabled:_.key==="premium"&&x,onClick:()=>{_.key==="free"?s("/health-check"):_.key==="premium"?j():s("/billing")},children:_.key==="premium"&&x?a.jsxs(a.Fragment,{children:[a.jsx(Mf,{className:"w-4 h-4 animate-spin"})," ",e("pricing.activating")]}):a.jsxs(a.Fragment,{children:[_.cta," ",a.jsx(rs,{className:"w-4 h-4"})]})}),a.jsxs("div",{className:"space-y-2 pt-2",children:[_.features.map(A=>a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx(Oi,{className:"w-3.5 h-3.5 text-primary mt-0.5 flex-shrink-0"}),a.jsx("span",{className:"text-xs",children:A})]},A)),_.locked.map(A=>a.jsxs("div",{className:"flex items-start gap-2 opacity-40",children:[a.jsx(Oi,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0"}),a.jsx("span",{className:"text-xs line-through",children:A})]},A))]})]})]})},_.key))}),a.jsxs("div",{className:"mb-16",children:[a.jsxs("div",{className:"text-center mb-8",children:[a.jsx("h2",{className:"font-heading text-2xl font-bold mb-2",children:e("pricing.creditPacksTitle")}),a.jsx("p",{className:"text-muted-foreground text-sm max-w-md mx-auto",children:e("pricing.creditPacksDesc")})]}),a.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-4",children:y.map((_,N)=>a.jsx(ur.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{delay:.3+N*.08},children:a.jsxs(Oe,{className:`relative ${_.popular?"border-primary":""}`,children:[_.popular&&a.jsx("div",{className:"absolute -top-2.5 left-1/2 -translate-x-1/2",children:a.jsx(at,{className:"bg-primary text-[10px]",children:e("pricing.popular")})}),a.jsxs(Le,{className:"p-5 text-center space-y-2",children:[a.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center mx-auto",children:a.jsx(Zu,{className:"w-5 h-5 text-primary"})}),a.jsx("p",{className:"font-heading font-bold text-2xl",children:_.amount}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("pricing.aiCredits")}),a.jsx("p",{className:"font-heading text-xl font-bold text-primary",children:Zb(parseFloat(_.price.replace("$","")),r)}),a.jsx("p",{className:"text-[10px] text-muted-foreground",children:_.label}),a.jsx("p",{className:"text-[10px] text-muted-foreground",children:_.desc}),a.jsx(xe,{size:"sm",className:"w-full text-xs mt-2 bg-primary hover:bg-primary/90",onClick:()=>{f({name:`${_.amount} ${e("pricing.aiCredits")}`,price:parseFloat(_.price.replace("$","")),credits_amount:parseInt(_.amount.replace(",",""))}),h("credits"),u(!0)},children:e("pricing.buyCredits")})]})]})},_.label))})]}),a.jsxs("div",{className:"mb-12",children:[a.jsxs("div",{className:"text-center mb-8",children:[a.jsx("h2",{className:"font-heading text-2xl font-bold mb-2",children:e("pricing.reportsTitle")}),a.jsx("p",{className:"text-muted-foreground text-sm",children:e("pricing.reportsDesc")})]}),a.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4",children:w.map(_=>a.jsx(Oe,{className:"hover:border-primary/30 transition-all",children:a.jsxs(Le,{className:"p-5 flex items-start gap-4",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:a.jsx(_.icon,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{className:"flex-1",children:[a.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1",children:[a.jsx("p",{className:"font-semibold text-sm",children:_.name}),a.jsx("span",{className:"font-heading font-bold text-primary text-sm flex-shrink-0",children:Zb(parseFloat(_.price.replace("$","")),r)})]}),a.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:_.desc}),a.jsxs(xe,{size:"sm",variant:"outline",className:"text-xs h-7 border-primary/30 text-primary",onClick:()=>
1183{f({name:_.name,price:parseFloat(_.price.replace("$","")),report_type:_.key}),h("one_time_report"),u(!0)},children:[e("pricing.purchase")," ",a.jsx(rs,{className:"w-3 h-3"})]})]})]})},_.name))})]}),a.jsx(Oe,{className:"bg-gradient-to-r from-primary/10 via-accent to-primary/5 border-primary/20",children:a.jsxs(Le,{className:"p-8 text-center",children:[a.jsx("div",{className:"w-12 h-12 rounded-2xl bg-primary/10 flex items-center justify-center mx-auto mb-4",children:a.jsx(Xr,{className:"w-6 h-6 text-primary"})}),a.jsx("h3",{className:"font-heading text-xl font-bold mb-2",children:e("pricing.ctaTitle")}),a.jsx("p",{className:"text-muted-foreground text-sm mb-6 max-w-md mx-auto",children:e("pricing.ctaDesc")}),a.jsxs("div",{className:"flex items-center justify-center gap-3",children:[a.jsx(xe,{className:"gap-2 bg-primary hover:bg-primary/90",asChild:!0,children:a.jsxs(Dt,{to:"/health-check",children:[e("pricing.startFree")," ",a.jsx(rs,{className:"w-4 h-4"})]})}),a.jsx(xe,{variant:"outline",asChild:!0,children:a.jsx(Dt,{to:"/micro-tools",children:e("pricing.exploreTools")})})]})]})}),a.jsx(QX,{open:c,onClose:()=>u(!1),item:d,itemType:p,onSuccess:()=>{u(!1),s("/billing")}})]})}function zke(){const{t:e}=Zt(),[t,n]=O.useState(null),[r,i]=O.useState(!0);return O.useEffect(()=>{(async()=>{try{const o=await Ne.functions.invoke("getAdminDashboardData",{});n(o.data)}catch(o){console.error("Failed to fetch admin data:",o)}finally{i(!1)}})()},[]),r?a.jsx("div",{className:"p-8",children:e("admin.loadingMsg")}):a.jsx("div",{className:"min-h-screen bg-background p-8",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsx("div",{className:"flex justify-between items-center mb-8",children:a.jsx("h1",{className:"text-3xl font-heading font-bold",children:e("admin.commandCenter")})}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 mb-8",children:[a.jsxs(Oe,{children:[a.jsxs(vt,{className:"flex flex-row items-center justify-between pb-2",children:[a.jsx(yt,{className:"text-sm font-medium",children:e("admin.totalUsers")}),a.jsx(Mi,{className:"h-4 w-4 text-muted-foreground"})]}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold",children:(t==null?void 0:t.total_users)||0})})]}),a.jsxs(Oe,{children:[a.jsxs(vt,{className:"flex flex-row items-center justify-between pb-2",children:[a.jsx(yt,{className:"text-sm font-medium",children:e("admin.activeSessions")}),a.jsx(Zu,{className:"h-4 w-4 text-muted-foreground"})]}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold",children:(t==null?void 0:t.active_sessions)||0})})]}),a.jsxs(Oe,{children:[a.jsxs(vt,{className:"flex flex-row items-center justify-between pb-2",children:[a.jsx(yt,{className:"text-sm font-medium",children:e("admin.openTickets")}),a.jsx(Kl,{className:"h-4 w-4 text-muted-foreground"})]}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold",children:(t==null?void 0:t.open_tickets)||0})})]}),a.jsxs(Oe,{children:[a.jsxs(vt,{className:"flex flex-row items-center justify-between pb-2",children:[a.jsx(yt,{className:"text-sm font-medium",children:e("admin.revenueMTD")}),a.jsx(ja,{className:"h-4 w-4 text-muted-foreground"})]}),a.jsx(Le,{children:a.jsxs("div",{className:"text-2xl font-bold",children:["$",(t==null?void 0:t.revenue)||0]})})]})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{children:e("admin.management")})}),a.jsxs(Le,{className:"space-y-3",children:[a.jsx(Dt,{to:"/admin/users",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(Mi,{className:"mr-2 h-4 w-4"}),e("admin.manageAdminUsers")]})}),a.jsx(Dt,{to:"/admin/support",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(Kl,{className:"mr-2 h-4 w-4"}),e("admin.supportTickets")]})}),a.jsx(Dt,{to:"/admin/analytics",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(ja,{className:"mr-2 h-4 w-4"}),e("admin.analytics")]})}),a.jsx(Dt,{to:"/admin/issues",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(ene,{className:"mr-2 h-4 w-4"}),e("admin.issueTracker")]})}),a.jsx(Dt,{to:"/admin/policies",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(_4,{className:"mr-2 h-4 w-4"}),e("admin.legalPolicyMgmt")]})}),a.jsx(Dt,{to:"/admin/social-media",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(N4,{className:"mr-2 h-4 w-4"}),e("admin.socialMediaMgmt")]})}),a.jsx(Dt,{to:"/admin/promo",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(Qg,{className:"mr-2 h-4 w-4"}
1183),e("admin.promoAmbassadorCenter")]})}),a.jsx(Dt,{to:"/admin/partners",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(Mi,{className:"mr-2 h-4 w-4"}),e("admin.partnerGrowthHub")]})}),a.jsx(Dt,{to:"/admin/partner-leads",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(z1,{className:"mr-2 h-4 w-4"}),e("admin.partnerLeadReview")]})}),a.jsx(Dt,{to:"/admin/marketing-resources",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(s0,{className:"mr-2 h-4 w-4"}),e("admin.marketingResourcesBtn")]})}),a.jsx(Dt,{to:"/admin/payouts",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(g1,{className:"mr-2 h-4 w-4"}),e("admin.payoutMgmt")]})}),a.jsx(Dt,{to:"/admin/training",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(Xg,{className:"mr-2 h-4 w-4"}),e("admin.trainingModules")]})}),a.jsx(Dt,{to:"/admin/partner-support",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(ure,{className:"mr-2 h-4 w-4"}),e("admin.partnerSupportBtn")]})}),a.jsx(Dt,{to:"/admin/announcements",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(yg,{className:"mr-2 h-4 w-4"}),e("admin.partnerAnnouncements")]})}),a.jsx(Dt,{to:"/admin/partner-analytics",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(Yl,{className:"mr-2 h-4 w-4"}),e("admin.partnerAnalyticsBtn")]})}),a.jsx(Dt,{to:"/admin/content-creators",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(Qu,{className:"mr-2 h-4 w-4"}),e("admin.contentCreatorMgmt")]})}),a.jsx(Dt,{to:"/admin/encyclopedia",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(as,{className:"mr-2 h-4 w-4"}),e("encyclopedia.adminTitle")]})}),a.jsx(Dt,{to:"/admin/glossary",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(Qte,{className:"mr-2 h-4 w-4"}),e("glossary.adminTitle")]})}),a.jsx(Dt,{to:"/admin/translations",className:"block",children:a.jsxs(xe,{variant:"outline",className:"w-full justify-start",children:[a.jsx(Sp,{className:"mr-2 h-4 w-4"}),e("translationCenter.adminTitle")]})})]})]})})]})})}function $ke(){const{t:e}=Zt(),[t,n]=O.useState([]),[r,i]=O.useState(!0),[s,o]=O.useState(""),[l,c]=O.useState("user"),[u,d]=O.useState(null),[f,p]=O.useState(""),[h,x]=O.useState(!1),[v,g]=O.useState(!1),[y,w]=O.useState(!1),[j,_]=O.useState(!1),[N,A]=O.useState(""),[E,k]=O.useState("");O.useEffect(()=>{T()},[]);const T=async()=>{try{const F=await Ne.entities.User.list();n(F||[])}catch(F){console.error("Failed to fetch users:",F)}finally{i(!1)}},D=async()=>{if(s)try{await Ne.users.inviteUser(s,l),o(""),c("user"),x(!1),T()}catch(F){console.error("Failed to invite user:",F)}},P=F=>{d(F),p(F.role||"user"),g(!0)},R=async()=>{try{await Ne.functions.invoke("adminUserManagement",{action:"updateRole",targetEmail:u.email,role:f}),g(!1),T()}catch(F){console.error("Failed to update role:",F)}},q=F=>{d(F),A(""),w(!0)},M=async()=>{try{const F=parseInt(N);if(!F||F<=0)return;await Ne.functions.invoke("adminUserManagement",{action:"addCredits",targetEmail:u.email,credits:F}),w(!1),T()}catch(F){console.error("Failed to add credits:",F)}},V=F=>{var $;d(F),k((($=F.metadata)==null?void 0:$.membership_plan)||"free"),_(!0)},H=async()=>{try{await Ne.functions.invoke("adminUserManagement",{action:"upgradeMembership",targetEmail:u.email,membershipPlan:E}),_(!1),T()}catch(F){console.error("Failed to upgrade membership:",F)}},Z=async F=>{var $;try{const B=(($=F.metadata)==null?void 0:$.suspended)||!1;await Ne.asServiceRole.entities.User.update(F.id,{metadata:{...F.metadata,suspended:!B}}),T()}catch(B){console.error("Failed to toggle suspend:",B)}},J=async F=>{if(window.confirm(`${e("admin.confirmDeleteUser")} ${F.email}?`))try{console.log(`Delete user: ${F.email}`),T()}catch($){console.error("Failed to delete user:",$)}};if(r)return a.jsx(nc,{message:e("admin.loadingUsers")});const K={total:t.length,admins:t.filter(F=>F.role==="admin"||F.role==="super_admin").length,superAdmins:t.filter(F=>F.role==="super_admin").length,active:t.filter(F=>{var $;return!(($=F.metadata)!=null&&$.suspended)}).length,suspended:t.filter(F=>{var $;return($=F.metadata)==null?void 0:$.suspended}).length};return a.jsx("div",{className:"min-h-screen bg-background p-8",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"flex items-center justify-between mb-8",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-3xl font-heading font-bold",children:e("admin.userAdmin")}),a.jsx("p",{className:"text-muted-foreground mt-1",children:e("admin.userAdminSubtitle")})]}),a.jsxs(Gn,{open:h,onOpenChange:x,children:[a.jsx(Cy,{asChild:!0,children:a.jsxs(xe,{children:[a.jsx(sa,{className:"w-4 h-4 mr-2"})," ",e("admin.invite")]})}),a.jsxs(zn,{children:[a.jsxs(Vn,{children:[a.jsx(Wn,{children:e("admin.inviteNewUser")}),a.jsx(Mc,{children:e("admin.inviteDesc")})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx(Qe,{type:"email",placeholder:"[email protected]",value:s,onChange:F=>o(F.target.value)}),a.jsxs(Et,{value:l,onValueChange:c,children:[a.jsx(Pt,{children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"user",children:"User"}),a.jsx(Ce,{value:"admin",children:"Admin"}),a.jsx(Ce,{value:"super_admin",children:e("admin.superAdmin")})]})]}),a.jsx(xe,{onClick:D,className:"w-full",children:e("admin.sendInvite")})]})]})]})]}),a.jsxs("div",{className:"grid grid-cols-4 gap-4 mb-8",children:[a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium",children:e("admin.totalUsers")})}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold",children:K.total})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium",children:e("admin.admins")})}),a.jsxs(Le,{children:[a.jsx("div",{className:"text-2xl font-bold",children:K.admins}),K.superAdmins>0&&a.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[K.superAdmins," ",e("admin.superAdmins")]})]})]}),a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium",children:e("admin.active")})}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold text-green-600",children:K.active})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium",children:e("admin.suspended")})}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold text-destructive",children:K.suspended})})]})]}),a.jsxs(Oe,{children:[a.jsxs(vt,{children:[a.jsx(yt,{children:e("admin.platformUsers")}),a.jsx(Ja,{children:e("admin.platformUsersDesc")})]}),a.jsx(Le,{children:a.jsx("div",{className:"space-y-2 max-h-96 overflow-y-auto",children:t.length===0?a.jsx("p",{className:"text-muted-foreground py-8",children:e("admin.noUsers")}):t.map(F=>{var B,z,ee,te;
1183const $=((B=F.metadata)==null?void 0:B.suspended)||!1;return a.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg hover:bg-muted/50",children:[a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"font-semibold",children:F.full_name||F.email}),a.jsx("p",{className:"text-sm text-muted-foreground",children:F.email}),a.jsxs("div",{className:"flex gap-2 mt-2 flex-wrap",children:[a.jsx(at,{variant:F.role==="admin"||F.role==="super_admin"?"default":"secondary",children:F.role==="super_admin"?e("admin.superAdmin"):F.role||"user"}),$&&a.jsx(at,{variant:"destructive",children:e("admin.suspended")}),((z=F.metadata)==null?void 0:z.membership_plan)&&a.jsx(at,{variant:"outline",className:"capitalize",children:F.metadata.membership_plan}),((ee=F.metadata)==null?void 0:ee.ai_credits)!==void 0&&a.jsxs(at,{variant:"outline",className:"flex items-center gap-1",children:[a.jsx(Lo,{className:"w-3 h-3"}),F.metadata.ai_credits]}),((te=F.metadata)==null?void 0:te.deleted)&&a.jsx(at,{variant:"outline",children:e("admin.deleted")})]})]}),a.jsxs("div",{className:"flex gap-1",children:[a.jsxs(Gn,{open:v&&(u==null?void 0:u.id)===F.id,onOpenChange:g,children:[a.jsx(Cy,{asChild:!0,children:a.jsx(xe,{variant:"ghost",size:"icon",className:"w-8 h-8",onClick:()=>P(F),title:e("admin.changeRole"),children:a.jsx(F9,{className:"w-4 h-4"})})}),a.jsxs(zn,{children:[a.jsxs(Vn,{children:[a.jsx(Wn,{children:e("admin.changeUserRole")}),a.jsxs(Mc,{children:[e("admin.updateRole")," ",F.email]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs(Et,{value:f,onValueChange:p,children:[a.jsx(Pt,{children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"user",children:"User"}),a.jsx(Ce,{value:"admin",children:"Admin"}),a.jsx(Ce,{value:"super_admin",children:e("admin.superAdmin")})]})]}),a.jsx(xe,{onClick:R,className:"w-full",children:e("admin.updateRole")})]})]})]}),a.jsxs(Gn,{open:y&&(u==null?void 0:u.id)===F.id,onOpenChange:w,children:[a.jsx(Cy,{asChild:!0,children:a.jsx(xe,{variant:"ghost",size:"icon",className:"w-8 h-8",onClick:()=>q(F),title:e("admin.addCredits"),children:a.jsx(vg,{className:"w-4 h-4"})})}),a.jsxs(zn,{children:[a.jsxs(Vn,{children:[a.jsx(Wn,{children:e("admin.addAICredits")}),a.jsxs(Mc,{children:[e("admin.addCredits")," ",F.email]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx(Qe,{type:"number",placeholder:e("admin.creditsAmountPlaceholder"),value:N,onChange:X=>A(X.target.value)}),a.jsxs(xe,{onClick:M,className:"w-full",children:[a.jsx(vg,{className:"w-4 h-4 mr-2"})," ",e("admin.addCredits")]})]})]})]}),a.jsxs(Gn,{open:j&&(u==null?void 0:u.id)===F.id,onOpenChange:_,children:[a.jsx(Cy,{asChild:!0,children:a.jsx(xe,{variant:"ghost",size:"icon",className:"w-8 h-8",onClick:()=>V(F),title:e("admin.upgradeMembership"),children:a.jsx(Wc,{className:"w-4 h-4"})})}),a.jsxs(zn,{children:[a.jsxs(Vn,{children:[a.jsx(Wn,{children:e("admin.upgradeMembershipTitle")}),a.jsxs(Mc,{children:[e("admin.upgradeMembership")," ",F.email]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs(Et,{value:E,onValueChange:k,children:[a.jsx(Pt,{children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"free",children:e("admin.free")}),a.jsx(Ce,{value:"professional",children:e("admin.professional")}),a.jsx(Ce,{value:"enterprise",children:e("admin.enterprise")})]})]}),a.jsxs(xe,{onClick:H,className:"w-full",children:[a.jsx(Wc,{className:"w-4 h-4 mr-2"})," ",e("admin.upgrade")]})]})]})]}),a.jsx(xe,{variant:"ghost",size:"icon",className:"w-8 h-8",onClick:()=>Z(F),title:e($?"admin.unsuspend":"admin.suspend"),children:$?a.jsx(vre,{className:"w-4 h-4 text-green-600"}):a.jsx(A2,{className:"w-4 h-4 text-yellow-600"})}),a.jsx(xe,{variant:"ghost",size:"icon",className:"w-8 h-8",onClick:()=>J(F),title:e("admin.deleteUser"),children:a.jsx(Ps,{className:"w-4 h-4 text-destructive"})})]})]},F.id)})})})]})]})})}function Uke(){const{t:e}=Zt(),[t,n]=O.useState([]),[r,i]=O.useState(!0),[s,o]=O.useState(null);O.useEffect(()=>{l()},[]);const l=async()=>{try{const u=await Ne.entities.SupportTicket.list();n(u||[])}catch(u){console.error("Failed to fetch tickets:",u)}finally{i(!1)}},c=async(u,d)=>{try{await Ne.entities.SupportTicket.update(u,{status:d}),n(t.map(f=>f.id===u?{...f,status:d}:f))}catch(f){console.error("Failed to update ticket:",f)}};return r?a.jsx("div",{className:"p-8",children:e("admin.loadingTickets")}):a.jsx("div",{className:"min-h-screen bg-background p-8",children:a.jsxs("div",{className:"max-w-5xl mx-auto",children:[a.jsx("h1",{className:"text-3xl font-heading font-bold mb-8",children:e("admin.support")}),a.jsx("div",{className:"space-y-4",children:t.length===0?a.jsx(Oe,{children:a.jsx(Le,{className:"p-8 text-center text-muted-foreground",children:e("admin.noTickets")})}):t.map(u=>a.jsx(Oe,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>o(u),children:a.jsx(Le,{className:"p-6",children:a.jsxs("div",{className:"flex items-start justify-between",children:[a.jsxs("div",{className:"flex-1",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[a.jsx("h3",{className:"font-semibold",children:u.subject}),a.jsx(at,{variant:u.priority==="urgent"?"destructive":"default",children:u.priority})]}),a.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:u.user_email}),a.jsx("p",{className:"text-sm line-clamp-2",children:u.description})]}),a.jsxs("div",{className:"ml-4 flex items-center gap-2",children:[a.jsx(at,{variant:u.status==="resolved"?"default":"secondary",children:u.status}),a.jsx(xe,{variant:"ghost",size:"sm",onClick:d=>{d.stopPropagation(),c(u.id,"resolved")},children:a.jsx(Oi,{className:"h-4 w-4"})})]})]})})},u.id))}),s&&a.jsxs(Oe,{className:"mt-8",children:[a.jsx(vt,{children:a.jsx(yt,{children:s.subject})}),a.jsxs(Le,{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm text-muted-foreground",children:e("admin.from")}),a.jsx("p",{className:"font-medium",children:s.user_email})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm text-muted-foreground",children:e("admin.descriptionLabel")}),a.jsx("p",{children:s.description})]}),a.jsx("div",{className:"flex gap-2 pt-4",children:a.jsx(xe,{variant:"outline",onClick:()=>o(null),children:e("admin.close")})})]})]})]})})}var pS,r8;function ro(){if(r8)return pS;r8=1;var e=Array.isArray;return pS=e,pS}var mS,i8;function ZX(){if(i8)return mS;i8=1;var e=typeof bb=="object"&&bb&&bb.Object===Object&&bb;return mS=e,mS}var gS,a8;function eu(){if(a8)return gS;a8=1;var e=ZX(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return gS=n,gS}var vS,s8;function C0(){if(s8)return vS;s8=1;var e=eu(),t=e.Symbol;return vS=t,vS}var yS,o8;
vendor: 6,406 bytes, line 1183
1183function Gke(){if(o8)return yS;o8=1;var e=C0(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function s(o){var l=n.call(o,i),c=o[i];try{o[i]=void 0;var u=!0}catch{}var d=r.call(o);return u&&(l?o[i]=c:delete o[i]),d}return yS=s,yS}var xS,l8;function Vke(){if(l8)return xS;l8=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return xS=n,xS}var bS,c8;function xd(){if(c8)return bS;c8=1;var e=C0(),t=Gke(),n=Vke(),r="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?i:r:s&&s in Object(l)?t(l):n(l)}return bS=o,bS}var wS,u8;function bd(){if(u8)return wS;u8=1;function e(t){return t!=null&&typeof t=="object"}return wS=e,wS}var jS,d8;function fv(){if(d8)return jS;d8=1;var e=xd(),t=bd(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return jS=r,jS}var _S,f8;function _3(){if(f8)return _S;f8=1;var e=ro(),t=fv(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(s,o){if(e(s))return!1;var l=typeof s;return l=="number"||l=="symbol"||l=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||o!=null&&s in Object(o)}return _S=i,_S}var NS,h8;function Kf(){if(h8)return NS;h8=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return NS=e,NS}var SS,p8;function N3(){if(p8)return SS;p8=1;var e=xd(),t=Kf(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function o(l){if(!t(l))return!1;var c=e(l);return c==r||c==i||c==n||c==s}return SS=o,SS}var AS,m8;function Wke(){if(m8)return AS;m8=1;var e=eu(),t=e["__core-js_shared__"];return AS=t,AS}var kS,g8;function Hke(){if(g8)return kS;g8=1;var e=Wke(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return kS=n,kS}var PS,v8;function JX(){if(v8)return PS;v8=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return PS=n,PS}var CS,y8;function Kke(){if(y8)return CS;y8=1;var e=N3(),t=Hke(),n=Kf(),r=JX(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,c=o.toString,u=l.hasOwnProperty,d=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(p){if(!n(p)||t(p))return!1;var h=e(p)?d:s;return h.test(r(p))}return CS=f,CS}var ES,x8;function Yke(){if(x8)return ES;x8=1;function e(t,n){return t==null?void 0:t[n]}return ES=e,ES}var TS,b8;function Dp(){if(b8)return TS;b8=1;var e=Kke(),t=Yke();function n(r,i){var s=t(r,i);return e(s)?s:void 0}return TS=n,TS}var OS,w8;function xj(){if(w8)return OS;w8=1;var e=Dp(),t=e(Object,"create");return OS=t,OS}var RS,j8;function Xke(){if(j8)return RS;j8=1;var e=xj();function t(){this.__data__=e?e(null):{},this.size=0}return RS=t,RS}var IS,_8;function Qke(){if(_8)return IS;_8=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return IS=e,IS}var LS,N8;function Zke(){if(N8)return LS;N8=1;var e=xj(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(s){var o=this.__data__;if(e){var l=o[s];return l===t?void 0:l}return r.call(o,s)?o[s]:void 0}return LS=i,LS}var MS,S8;function Jke(){if(S8)return MS;S8=1;var e=xj(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var s=this.__data__;return e?s[i]!==void 0:n.call(s,i)}return MS=r,MS}var DS,A8;function ePe(){if(A8)return DS;A8=1;var e=xj(),t="__lodash_hash_undefined__";function n(r,i){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&i===void 0?t:i,this}return DS=n,DS}var FS,k8;function tPe(){if(k8)return FS;k8=1;var e=Xke(),t=Qke(),n=Zke(),r=Jke(),i=ePe();function s(o){var l=-1,c=o==null?0:o.length;for(this.clear();++l<c;){var u=o[l];this.set(u[0],u[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,FS=s,FS}var BS,P8;function nPe(){if(P8)return BS;P8=1;function e(){this.__data__=[],this.size=0}return BS=e,BS}var qS,C8;function S3(){if(C8)return qS;C8=1;function e(t,n){return t===n||t!==t&&n!==n}return qS=e,qS}var zS,E8;function bj(){if(E8)return zS;E8=1;var e=S3();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return zS=t,zS}var $S,T8;function rPe(){if(T8)return $S;T8=1;var e=bj(),t=Array.prototype,n=t.splice;function r(i){var s=this.__data__,o=e(s,i);if(o<0)return!1;var l=s.length-1;return o==l?s.pop():n.call(s,o,1),--this.size,!0}return $S=r,$S}var US,O8;function iPe(){if(O8)return US;O8=1;var e=bj();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return US=t,US}var GS,R8;function aPe(){if(R8)return GS;R8=1;var e=bj();function t(n){return e(this.__data__,n)>-1}return GS=t,GS}var VS,I8;function sPe(){if(I8)return VS;I8=1;var e=bj();function t(n,r){var i=this.__data__,s=e(i,n);return s<0?(++this.size,i.push([n,r])):i[s][1]=r,this}return VS=t,VS}var WS,L8;function wj(){if(L8)return WS;L8=1;var e=nPe(),t=rPe(),n=iPe(),r=aPe(),i=sPe();function s(o){var l=-1,c=o==null?0:o.length;for(this.clear();++l<c;){var u=o[l];this.set(u[0],u[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,WS=s,WS}var HS,M8;function A3(){if(M8)return HS;M8=1;var e=Dp(),t=eu(),n=e(t,"Map");return HS=n,HS}var KS,D8;function oPe(){if(D8)return KS;D8=1;var e=tPe(),t=wj(),n=A3();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return KS=r,KS}var YS,F8;function lPe(){if(F8)return YS;F8=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return YS=e,YS}var XS,B8;function jj(){if(B8)return XS;B8=1;var e=lPe();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return XS=t,XS}var QS,q8;function cPe(){if(q8)return QS;q8=1;var e=jj();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return QS=t,QS}var ZS,z8;function uPe(){if(z8)return ZS;z8=1;var e=jj();function t(n){return e(this,n).get(n)}return ZS=t,ZS}var JS,$8;function dPe(){if($8)return JS;$8=1;var e=jj();function t(n){return e(this,n).has(n)}return JS=t,JS}var e5,U8;function fPe(){if(U8)return e5;U8=1;var e=jj();function t(n,r){var i=e(this,n),s=i.size;return i.set(n,r),this.size+=i.size==s?0:1,this}return e5=t,e5}var t5,G8;
vendor: 11,126 bytes, lines 1183-1191
1183function k3(){if(G8)return t5;G8=1;var e=oPe(),t=cPe(),n=uPe(),r=dPe(),i=fPe();function s(o){var l=-1,c=o==null?0:o.length;for(this.clear();++l<c;){var u=o[l];this.set(u[0],u[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,t5=s,t5}var n5,V8;function eQ(){if(V8)return n5;V8=1;var e=k3(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var s=function(){var o=arguments,l=i?i.apply(this,o):o[0],c=s.cache;if(c.has(l))return c.get(l);var u=r.apply(this,o);return s.cache=c.set(l,u)||c,u};return s.cache=new(n.Cache||e),s}return n.Cache=e,n5=n,n5}var r5,W8;function hPe(){if(W8)return r5;W8=1;var e=eQ(),t=500;function n(r){var i=e(r,function(o){return s.size===t&&s.clear(),o}),s=i.cache;return i}return r5=n,r5}var i5,H8;function pPe(){if(H8)return i5;H8=1;var e=hPe(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(o,l,c,u){s.push(c?u.replace(n,"$1"):l||o)}),s});return i5=r,i5}var a5,K8;function P3(){if(K8)return a5;K8=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=Array(i);++r<i;)s[r]=n(t[r],r,t);return s}return a5=e,a5}var s5,Y8;function mPe(){if(Y8)return s5;Y8=1;var e=C0(),t=P3(),n=ro(),r=fv(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function o(l){if(typeof l=="string")return l;if(n(l))return t(l,o)+"";if(r(l))return s?s.call(l):"";var c=l+"";return c=="0"&&1/l==-1/0?"-0":c}return s5=o,s5}var o5,X8;function tQ(){if(X8)return o5;X8=1;var e=mPe();function t(n){return n==null?"":e(n)}return o5=t,o5}var l5,Q8;function nQ(){if(Q8)return l5;Q8=1;var e=ro(),t=_3(),n=pPe(),r=tQ();function i(s,o){return e(s)?s:t(s,o)?[s]:n(r(s))}return l5=i,l5}var c5,Z8;function _j(){if(Z8)return c5;Z8=1;var e=fv();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return c5=t,c5}var u5,J8;function C3(){if(J8)return u5;J8=1;var e=nQ(),t=_j();function n(r,i){i=e(i,r);for(var s=0,o=i.length;r!=null&&s<o;)r=r[t(i[s++])];return s&&s==o?r:void 0}return u5=n,u5}var d5,eF;function rQ(){if(eF)return d5;eF=1;var e=C3();function t(n,r,i){var s=n==null?void 0:e(n,r);return s===void 0?i:s}return d5=t,d5}var gPe=rQ();const Ro=Zn(gPe);var f5,tF;function vPe(){if(tF)return f5;tF=1;function e(t){return t==null}return f5=e,f5}var yPe=vPe();const $n=Zn(yPe);var h5,nF;function xPe(){if(nF)return h5;nF=1;var e=xd(),t=ro(),n=bd(),r="[object String]";function i(s){return typeof s=="string"||!t(s)&&n(s)&&e(s)==r}return h5=i,h5}var bPe=xPe();const yp=Zn(bPe);var wPe=N3();const _n=Zn(wPe);var jPe=Kf();const hv=Zn(jPe);var p5={exports:{}},hr={};/** 1184 * @license React 1185 * react-is.production.min.js 1186 * 1187 * Copyright (c) Facebook, Inc. and its affiliates. 1188 * 1189 * This source code is licensed under the MIT license found in the 1190 * LICENSE file in the root directory of this source tree. 1191 */var rF;function _Pe(){if(rF)return hr;rF=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function v(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case e:switch(g=g.type,g){case n:case i:case r:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case l:case o:case c:case p:case f:case s:return g;default:return y}}case t:return y}}}return hr.ContextConsumer=o,hr.ContextProvider=s,hr.Element=e,hr.ForwardRef=c,hr.Fragment=n,hr.Lazy=p,hr.Memo=f,hr.Portal=t,hr.Profiler=i,hr.StrictMode=r,hr.Suspense=u,hr.SuspenseList=d,hr.isAsyncMode=function(){return!1},hr.isConcurrentMode=function(){return!1},hr.isContextConsumer=function(g){return v(g)===o},hr.isContextProvider=function(g){return v(g)===s},hr.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},hr.isForwardRef=function(g){return v(g)===c},hr.isFragment=function(g){return v(g)===n},hr.isLazy=function(g){return v(g)===p},hr.isMemo=function(g){return v(g)===f},hr.isPortal=function(g){return v(g)===t},hr.isProfiler=function(g){return v(g)===i},hr.isStrictMode=function(g){return v(g)===r},hr.isSuspense=function(g){return v(g)===u},hr.isSuspenseList=function(g){return v(g)===d},hr.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===i||g===r||g===u||g===d||g===h||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===f||g.$$typeof===s||g.$$typeof===o||g.$$typeof===c||g.$$typeof===x||g.getModuleId!==void 0)},hr.typeOf=v,hr}var iF;function NPe(){return iF||(iF=1,p5.exports=_Pe()),p5.exports}var SPe=NPe(),m5,aF;function iQ(){if(aF)return m5;aF=1;var e=xd(),t=bd(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return m5=r,m5}var g5,sF;function APe(){if(sF)return g5;sF=1;var e=iQ();function t(n){return e(n)&&n!=+n}return g5=t,g5}var kPe=APe();const E0=Zn(kPe);var PPe=iQ();const CPe=Zn(PPe);var Ns=function(t){return t===0?0:t>0?1:-1},zh=function(t){return yp(t)&&t.indexOf("%")===t.length-1},wt=function(t){return CPe(t)&&!E0(t)},EPe=function(t){return $n(t)},aa=function(t){return wt(t)||yp(t)},TPe=0,T0=function(t){var n=++TPe;return"".concat(t||"").concat(n)},Ss=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!wt(t)&&!yp(t))return r;var s;if(zh(t)){var o=t.indexOf("%");s=n*parseFloat(t.slice(0,o))/100}else s=+t;return E0(s)&&(s=r),i&&s>n&&(s=n),s},pf=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},OPe=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},ff=function(t,n){return wt(t)&&wt(n)?function(r){return t+r*(n-t)}:function(){return n}};function JC(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Ro(r,t))===n})}var RPe=function(t,n){return wt(t)&&wt(n)?t-n:yp(t)&&yp(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function eg(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function eE(e){"@babel/helpers - typeof";return eE=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},eE(e)}var IPe=["viewBox","children"],LPe=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],oF=["points","pathLength"],v5={svg:IPe,polygon:oF,polyline:oF},E3=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
1191ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],_w=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(O.isValidElement(t)&&(r=t.props),!hv(r))return null;var i={};return Object.keys(r).forEach(function(s){E3.includes(s)&&(i[s]=n||function(o){return r[s](r,o)})}),i},MPe=function(t,n,r){return function(i){return t(n,r,i),null}},xp=function(t,n,r){if(!hv(t)||eE(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(s){var o=t[s];E3.includes(s)&&typeof o=="function"&&(i||(i={}),i[s]=MPe(o,n,r))}),i},DPe=["children"],FPe=["children"];function lF(e,t){if(e==null)return{};var n=BPe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BPe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var cF={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},td=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},uF=null,y5=null,T3=function e(t){if(t===uF&&Array.isArray(y5))return y5;var n=[];return O.Children.forEach(t,function(r){$n(r)||(SPe.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),y5=n,uF=t,n};function pl(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return td(i)}):r=[td(t)],T3(e).forEach(function(i){var s=Ro(i,"type.displayName")||Ro(i,"type.n
1191ame");r.indexOf(s)!==-1&&n.push(i)}),n}function Ao(e,t){var n=pl(e,t);return n&&n[0]}var dF=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!wt(r)||r<=0||!wt(i)||i<=0)},qPe=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],zPe=function(t){return t&&t.type&&yp(t.type)&&qPe.indexOf(t.type)>=0},$Pe=function(t,n,r,i){var s,o=(s=v5==null?void 0:v5[i])!==null&&s!==void 0?s:[];return n.startsWith("data-")||!_n(t)&&(i&&o.includes(n)||LPe.includes(n))||r&&E3.includes(n)},hn=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!hv(i))return null;var s={};
vendor: 4,243 bytes, line 1191
1191return Object.keys(i).forEach(function(o){var l;$Pe((l=i)===null||l===void 0?void 0:l[o],o,n,r)&&(s[o]=i[o])}),s},tE=function e(t,n){if(t===n)return!0;var r=O.Children.count(t);if(r!==O.Children.count(n))return!1;if(r===0)return!0;if(r===1)return fF(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var s=t[i],o=n[i];if(Array.isArray(s)||Array.isArray(o)){if(!e(s,o))return!1}else if(!fF(s,o))return!1}return!0},fF=function(t,n){if($n(t)&&$n(n))return!0;if(!$n(t)&&!$n(n)){var r=t.props||{},i=r.children,s=lF(r,DPe),o=n.props||{},l=o.children,c=lF(o,FPe);return i&&l?eg(s,c)&&tE(i,l):!i&&!l?eg(s,c):!1}return!1},hF=function(t,n){var r=[],i={};return T3(t).forEach(function(s,o){if(zPe(s))r.push(s);else if(s){var l=td(s.type),c=n[l]||{},u=c.handler,d=c.once;if(u&&(!d||!i[l])){var f=u(s,l,o);r.push(f),i[l]=!0}}}),r},UPe=function(t){var n=t&&t.type;return n&&cF[n]?cF[n]:null},GPe=function(t,n){return T3(n).indexOf(t)},VPe=["children","width","height","viewBox","className","style","title","desc"];function nE(){return nE=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},nE.apply(this,arguments)}function WPe(e,t){if(e==null)return{};var n=HPe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HPe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rE(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,s=e.className,o=e.style,l=e.title,c=e.desc,u=WPe(e,VPe),d=i||{width:n,height:r,x:0,y:0},f=Rn("recharts-surface",s);return Ae.createElement("svg",nE({},hn(u,!0,"svg"),{className:f,width:n,height:r,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),Ae.createElement("title",null,l),Ae.createElement("desc",null,c),t)}var KPe=["children","className"];function iE(){return iE=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},iE.apply(this,arguments)}function YPe(e,t){if(e==null)return{};var n=XPe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function XPe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Ar=Ae.forwardRef(function(e,t){var n=e.children,r=e.className,i=YPe(e,KPe),s=Rn("recharts-layer",r);return Ae.createElement("g",iE({className:s},hn(i,!0),{ref:t}),n)}),Hl=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s]},x5,pF;function QPe(){if(pF)return x5;pF=1;function e(t,n,r){var i=-1,s=t.length;n<0&&(n=-n>s?0:s+n),r=r>s?s:r,r<0&&(r+=s),s=n>r?0:r-n>>>0,n>>>=0;for(var o=Array(s);++i<s;)o[i]=t[i+n];return o}return x5=e,x5}var b5,mF;function ZPe(){if(mF)return b5;mF=1;var e=QPe();function t(n,r,i){var s=n.length;return i=i===void 0?s:i,!r&&i>=s?n:e(n,r,i)}return b5=t,b5}var w5,gF;function aQ(){if(gF)return w5;gF=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,s="\\ufe0e\\ufe0f",o="\\u200d",l=RegExp("["+o+e+i+s+"]");function c(u){return l.test(u)}return w5=c,w5}var j5,vF;function JPe(){if(vF)return j5;vF=1;function e(t){return t.split("")}return j5=e,j5}var _5,yF;function eCe(){if(yF)return _5;yF=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,s="\\ufe0e\\ufe0f",o="["+e+"]",l="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+l+"|"+c+")",d="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",x=u+"?",v="["+s+"]?",g="(?:"+h+"(?:"+[d,f,p].join("|")+")"+v+x+")*",y=v+x+g,w="(?:"+[d+l+"?",l,f,p,o].join("|")+")",j=RegExp(c+"(?="+c+")|"+w+y,"g");function _(N){return N.match(j)||[]}return _5=_,_5}var N5,xF;
vendor: 5,990 bytes, line 1191
1191function tCe(){if(xF)return N5;xF=1;var e=JPe(),t=aQ(),n=eCe();function r(i){return t(i)?n(i):e(i)}return N5=r,N5}var S5,bF;function nCe(){if(bF)return S5;bF=1;var e=ZPe(),t=aQ(),n=tCe(),r=tQ();function i(s){return function(o){o=r(o);var l=t(o)?n(o):void 0,c=l?l[0]:o.charAt(0),u=l?e(l,1).join(""):o.slice(1);return c[s]()+u}}return S5=i,S5}var A5,wF;function rCe(){if(wF)return A5;wF=1;var e=nCe(),t=e("toUpperCase");return A5=t,A5}var iCe=rCe();const Nj=Zn(iCe);function qr(e){return function(){return e}}const sQ=Math.cos,Nw=Math.sin,sc=Math.sqrt,Sw=Math.PI,Sj=2*Sw,aE=Math.PI,sE=2*aE,Ih=1e-6,aCe=sE-Ih;function oQ(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function sCe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return oQ;const n=10**t;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class oCe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?oQ:sCe(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,s,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+s},${this._y1=+o}`}arcTo(t,n,r,i,s){if(t=+t,n=+n,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,l=this._y1,c=r-t,u=i-n,d=o-t,f=l-n,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>Ih)if(!(Math.abs(f*c-u*d)>Ih)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,x=i-l,v=c*c+u*u,g=h*h+x*x,y=Math.sqrt(v),w=Math.sqrt(p),j=s*Math.tan((aE-Math.acos((v+p-g)/(2*y*w)))/2),_=j/w,N=j/y;Math.abs(_-1)>Ih&&this._append`L${t+_*d},${n+_*f}`,this._append`A${s},${s},0,0,${+(f*h>d*x)},${this._x1=t+N*c},${this._y1=n+N*u}`}}arc(t,n,r,i,s,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),c=r*Math.sin(i),u=t+l,d=n+c,f=1^o,p=o?i-s:s-i;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>Ih||Math.abs(this._y1-d)>Ih)&&this._append`L${u},${d}`,r&&(p<0&&(p=p%sE+sE),p>aCe?this._append`A${r},${r},0,1,${f},${t-l},${n-c}A${r},${r},0,1,${f},${this._x1=u},${this._y1=d}`:p>Ih&&this._append`A${r},${r},0,${+(p>=aE)},${f},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function O3(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new oCe(t)}function R3(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function lQ(e){this._context=e}lQ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Aj(e){return new lQ(e)}function cQ(e){return e[0]}function uQ(e){return e[1]}function dQ(e,t){var n=qr(!0),r=null,i=Aj,s=null,o=O3(l);e=typeof e=="function"?e:e===void 0?cQ:qr(e),t=typeof t=="function"?t:t===void 0?uQ:qr(t);function l(c){var u,d=(c=R3(c)).length,f,p=!1,h;for(r==null&&(s=i(h=o())),u=0;u<=d;++u)!(u<d&&n(f=c[u],u,c))===p&&((p=!p)?s.lineStart():s.lineEnd()),p&&s.point(+e(f,u,c),+t(f,u,c));if(h)return s=null,h+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:qr(+c),l):e},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:qr(+c),l):t},l.defined=function(c){return arguments.length?(n=typeof c=="function"?c:qr(!!c),l):n},l.curve=function(c){return arguments.length?(i=c,r!=null&&(s=i(r)),l):i},l.context=function(c){return arguments.length?(c==null?r=s=null:s=i(r=c),l):r},l}function Jb(e,t,n){var r=null,i=qr(!0),s=null,o=Aj,l=null,c=O3(u);e=typeof e=="function"?e:e===void 0?cQ:qr(+e),t=typeof t=="function"?t:qr(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?uQ:qr(+n);function u(f){var p,h,x,v=(f=R3(f)).length,g,y=!1,w,j=new Array(v),_=new Array(v);for(s==null&&(l=o(w=c())),p=0;p<=v;++p){if(!(p<v&&i(g=f[p],p,f))===y)if(y=!y)h=p,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),x=p-1;x>=h;--x)l.point(j[x],_[x]);l.lineEnd(),l.areaEnd()}y&&(j[p]=+e(g,p,f),_[p]=+t(g,p,f),l.point(r?+r(g,p,f):j[p],n?+n(g,p,f):_[p]))}if(w)return l=null,w+""||null}function d(){return dQ().defined(i).curve(o).context(s)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:qr(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:qr(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:qr(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:qr(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:qr(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:qr(+f),u):n},u.lineX0=u.lineY0=function(){return d().x(e).y(t)},u.lineY1=function(){return d().x(e).y(n)},u.lineX1=function(){return d().x(r).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:qr(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,s!=null&&(l=o(s)),u):o},u.context=function(f){return arguments.length?(f==null?s=l=null:l=o(s=f),u):s},u}class fQ{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}
vendor: 8,443 bytes, line 1191
1191point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function lCe(e){return new fQ(e,!0)}function cCe(e){return new fQ(e,!1)}const I3={draw(e,t){const n=sc(t/Sw);e.moveTo(n,0),e.arc(0,0,n,0,Sj)}},uCe={draw(e,t){const n=sc(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},hQ=sc(1/3),dCe=hQ*2,fCe={draw(e,t){const n=sc(t/dCe),r=n*hQ;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},hCe={draw(e,t){const n=sc(t),r=-n/2;e.rect(r,r,n,n)}},pCe=.8908130915292852,pQ=Nw(Sw/10)/Nw(7*Sw/10),mCe=Nw(Sj/10)*pQ,gCe=-sQ(Sj/10)*pQ,vCe={draw(e,t){const n=sc(t*pCe),r=mCe*n,i=gCe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let s=1;s<5;++s){const o=Sj*s/5,l=sQ(o),c=Nw(o);e.lineTo(c*n,-l*n),e.lineTo(l*r-c*i,c*r+l*i)}e.closePath()}},k5=sc(3),yCe={draw(e,t){const n=-sc(t/(k5*3));e.moveTo(0,n*2),e.lineTo(-k5*n,-n),e.lineTo(k5*n,-n),e.closePath()}},nl=-.5,rl=sc(3)/2,oE=1/sc(12),xCe=(oE/2+1)*3,bCe={draw(e,t){const n=sc(t/xCe),r=n/2,i=n*oE,s=r,o=n*oE+n,l=-s,c=o;e.moveTo(r,i),e.lineTo(s,o),e.lineTo(l,c),e.lineTo(nl*r-rl*i,rl*r+nl*i),e.lineTo(nl*s-rl*o,rl*s+nl*o),e.lineTo(nl*l-rl*c,rl*l+nl*c),e.lineTo(nl*r+rl*i,nl*i-rl*r),e.lineTo(nl*s+rl*o,nl*o-rl*s),e.lineTo(nl*l+rl*c,nl*c-rl*l),e.closePath()}};function wCe(e,t){let n=null,r=O3(i);e=typeof e=="function"?e:qr(e||I3),t=typeof t=="function"?t:qr(t===void 0?64:+t);function i(){let s;if(n||(n=s=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),s)return n=null,s+""||null}return i.type=function(s){return arguments.length?(e=typeof s=="function"?s:qr(s),i):e},i.size=function(s){return arguments.length?(t=typeof s=="function"?s:qr(+s),i):t},i.context=function(s){return arguments.length?(n=s??null,i):n},i}function Aw(){}function kw(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function mQ(e){this._context=e}mQ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:kw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:kw(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jCe(e){return new mQ(e)}function gQ(e){this._context=e}gQ.prototype={areaStart:Aw,areaEnd:Aw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:kw(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _Ce(e){return new gQ(e)}function vQ(e){this._context=e}vQ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:kw(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function NCe(e){return new vQ(e)}function yQ(e){this._context=e}yQ.prototype={areaStart:Aw,areaEnd:Aw,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function SCe(e){return new yQ(e)}function jF(e){return e<0?-1:1}function _F(e,t,n){var r=e._x1-e._x0,i=t-e._x1,s=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),l=(s*i+o*r)/(r+i);return(jF(s)+jF(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(l))||0}function NF(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function P5(e,t,n){var r=e._x0,i=e._y0,s=e._x1,o=e._y1,l=(s-r)/3;e._context.bezierCurveTo(r+l,i+l*t,s-l,o-l*n,s,o)}function Pw(e){this._context=e}Pw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:P5(this,this._t0,NF(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,P5(this,NF(this,n=_F(this,e,t)),n);break;default:P5(this,this._t0,n=_F(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function xQ(e){this._context=new bQ(e)}(xQ.prototype=Object.create(Pw.prototype)).point=function(e,t){Pw.prototype.point.call(this,t,e)};function bQ(e){this._context=e}bQ.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,s){this._context.bezierCurveTo(t,e,r,n,s,i)}};function ACe(e){return new Pw(e)}function kCe(e){return new xQ(e)}function wQ(e){this._context=e}wQ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=SF(e),i=SF(t),s=0,o=1;o<n;++s,++o)this._context.bezierCurveTo(r[0][s],i[0][s],r[1][s],i[1][s],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function SF(e){var t,n=e.length-1,r,i=new Array(n),s=new Array(n),o=new Array(n);for(i[0]=0,s[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,s[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,s[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/s[t-1],s[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/s[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/s[t];for(s[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-i[t+1];return[i,s]}function PCe(e){return new wQ(e)}function kj(e,t){this._context=e,this._t=t}kj.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 17,560 bytes, lines 1191-1194
1191default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function CCe(e){return new kj(e,.5)}function ECe(e){return new kj(e,0)}function TCe(e){return new kj(e,1)}function Sg(e,t){if((o=e.length)>1)for(var n=1,r,i,s=e[t[0]],o,l=s.length;n<o;++n)for(i=s,s=e[t[n]],r=0;r<l;++r)s[r][1]+=s[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function lE(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function OCe(e,t){return e[t]}function RCe(e){const t=[];return t.key=e,t}function ICe(){var e=qr([]),t=lE,n=Sg,r=OCe;function i(s){var o=Array.from(e.apply(this,arguments),RCe),l,c=o.length,u=-1,d;for(const f of s)for(l=0,++u;l<c;++l)(o[l][u]=[0,+r(f,o[l].key,u,s)]).data=f;for(l=0,d=R3(t(o));l<c;++l)o[d[l]].index=l;return n(o,d),o}return i.keys=function(s){return arguments.length?(e=typeof s=="function"?s:qr(Array.from(s)),i):e},i.value=function(s){return arguments.length?(r=typeof s=="function"?s:qr(+s),i):r},i.order=function(s){return arguments.length?(t=s==null?lE:typeof s=="function"?s:qr(Array.from(s)),i):t},i.offset=function(s){return arguments.length?(n=s??Sg,i):n},i}function LCe(e,t){if((r=e.length)>0){for(var n,r,i=0,s=e[0].length,o;i<s;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Sg(e,t)}}function MCe(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,s=r.length;n<s;++n){for(var o=0,l=0;o<i;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}Sg(e,t)}}function DCe(e,t){if(!(!((o=e.length)>0)||!((s=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,s,o;r<s;++r){for(var l=0,c=0,u=0;l<o;++l){for(var d=e[t[l]],f=d[r][1]||0,p=d[r-1][1]||0,h=(f-p)/2,x=0;x<l;++x){var v=e[t[x]],g=v[r][1]||0,y=v[r-1][1]||0;h+=g-y}c+=f,u+=h*f}i[r-1][1]+=i[r-1][0]=n,c&&(n-=u/c)}i[r-1][1]+=i[r-1][0]=n,Sg(e,t)}}function xx(e){"@babel/helpers - typeof";return xx=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},xx(e)}var FCe=["type","size","sizeType"];function cE(){return cE=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},cE.apply(this,arguments)}function AF(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 kF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AF(Object(n),!0).forEach(function(r){BCe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BCe(e,t,n){return t=qCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qCe(e){var t=zCe(e,"string");return xx(t)=="symbol"?t:t+""}function zCe(e,t){if(xx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $Ce(e,t){if(e==null)return{};var n=UCe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UCe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var jQ={symbolCircle:I3,symbolCross:uCe,symbolDiamond:fCe,symbolSquare:hCe,symbolStar:vCe,symbolTriangle:yCe,symbolWye:bCe},GCe=Math.PI/180,VCe=function(t){var n="symbol".concat(Nj(t));return jQ[n]||I3},WCe=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*GCe;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},HCe=function(t,n){jQ["symbol".concat(Nj(t))]=n},L3=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,s=i===void 0?64:i,o=t.sizeType,l=o===void 0?"area":o,c=$Ce(t,FCe),u=kF(kF({},c),{},{type:r,size:s,sizeType:l}),d=function(){var g=VCe(r),y=wCe().type(g).size(WCe(s,l,r));return y()},f=u.className,p=u.cx,h=u.cy,x=hn(u,!0);return p===+p&&h===+h&&s===+s?Ae.createElement("path",cE({},x,{className:Rn("recharts-symbols",f),transform:"translate(".concat(p,", ").concat(h,")"),d:d()})):null};L3.registerSymbol=HCe;function Ag(e){"@babel/helpers - typeof";return Ag=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},Ag(e)}function uE(){return uE=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},uE.apply(this,arguments)}function PF(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 KCe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PF(Object(n),!0).forEach(function(r){bx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XCe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,NQ(r.key),r)}}function QCe(e,t,n){return t&&XCe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZCe(e,t,n){return t=Cw(t),JCe(e,_Q()?Reflect.construct(t,n||[],Cw(e).constructor):t.apply(e,n))}function JCe(e,t){if(t&&(Ag(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eEe(e)}function eEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _Q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_Q=function(){return!!e})()}function Cw(e){return Cw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cw(e)}function tEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dE(e,t)}function dE(e,t){return dE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},dE(e,t)}function bx(e,t,n){return t=NQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NQ(e){var t=nEe(e,"string");return Ag(t)=="symbol"?t:t+""}function nEe(e,t){if(Ag(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ag(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var il=32,M3=(function(e){function t(){return YCe(this,t),ZCe(this,t,arguments)}return tEe(t,e),QCe(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,s=il/2,o=il/6,l=il/3,c=r.inactive?i:r.color;if(r.type==="plainline")return Ae.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:s,x2:il,y2:s,className:"recharts-legend-icon"});if(r.type==="line")return Ae.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(s,"h").concat(l,` 1192 A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(s,` 1193 H`).concat(il,"M").concat(2*l,",").concat(s,` 1194 A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(s),className:"recharts-legend-icon"});if(r.type==="rect")return Ae.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(il/8,"h").concat(il,"v").concat(il*3/4,"h").concat(-il,"z"),className:"recharts-legend-icon"});if(Ae.isValidElement(r.legendIcon)){var u=KCe({},r);return delete u.legendIcon,Ae.cloneElement(r.legendIcon,u)}return Ae.createElement(L3,{fill:c,cx:s,cy:s,size:il,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,s=i.payload,o=i.iconSize,l=i.layout,c=i.formatter,u=i.inactiveColor,d={x:0,y:0,width:il,height:il},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return s.map(function(h,x){var v=h.formatter||c,g=Rn(bx(bx({"recharts-legend-item":!0},"legend-item-".concat(x),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=_n(h.value)?null:h.value;Hl(!_n(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=h.inactive?u:h.color;return Ae.createElement("li",uE({className:g,style:f,key:"legend-item-".concat(x)},xp(r.props,h,x)),Ae.createElement(rE,{width:o,height:o,viewBox:d,style:p},r.renderIcon(h)),Ae.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},v?v(y,h,x):y))})}},{key:"render",value:function(){var r=this.props,i=r.payload,s=r.layout,o=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:s==="horizontal"?o:"left"};return Ae.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])})(O.PureComponent);bx(M3,"displayName","Legend");bx(M3,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var C5,CF;function rEe(){if(CF)return C5;CF=1;var e=wj();function t(){this.__data__=new e,this.size=0}return C5=t,C5}var E5,EF;function iEe(){if(EF)return E5;EF=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return E5=e,E5}var T5,TF;function aEe(){if(TF)return T5;TF=1;function e(t){return this.__data__.get(t)}return T5=e,T5}var O5,OF;function sEe(){if(OF)return O5;OF=1;function e(t){return this.__data__.has(t)}return O5=e,O5}var R5,RF;function oEe(){if(RF)return R5;RF=1;var e=wj(),t=A3(),n=k3(),r=200;function i(s,o){var l=this.__data__;if(l instanceof e){var c=l.__data__;if(!t||c.length<r-1)return c.push([s,o]),this.size=++l.size,this;l=this.__data__=new n(c)}return l.set(s,o),this.size=l.size,this}return R5=i,R5}var I5,IF;function SQ(){if(IF)return I5;IF=1;var e=wj(),t=rEe(),n=iEe(),r=aEe(),i=sEe(),s=oEe();function o(l){var c=this.__data__=new e(l);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=i,o.prototype.set=s,I5=o,I5}var L5,LF;function lEe(){if(LF)return L5;LF=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return L5=t,L5}var M5,MF;function cEe(){if(MF)return M5;MF=1;function e(t){return this.__data__.has(t)}return M5=e,M5}var D5,DF;function AQ(){if(DF)return D5;DF=1;var e=k3(),t=lEe(),n=cEe();function r(i){var s=-1,o=i==null?0:i.length;for(this.__data__=new e;++s<o;)this.add(i[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,D5=r,D5}var F5,FF;function kQ(){if(FF)return F5;FF=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return F5=e,F5}var B5,BF;function PQ(){if(BF)return B5;BF=1;function e(t,n){return t.has(n)}return B5=e,B5}var q5,qF;function CQ(){if(qF)return q5;qF=1;var e=AQ(),t=kQ(),n=PQ(),r=1,i=2;function s(o,l,c,u,d,f){var p=c&r,h=o.length,x=l.length;if(h!=x&&!(p&&x>h))return!1;var v=f.get(o),g=f.get(l);if(v&&g)return v==l&&g==o;var y=-1,w=!0,j=c&i?new e:void 0;for(f.set(o,l),f.set(l,o);++y<h;){var _=o[y],N=l[y];if(u)var A=p?u(N,_,y,l,o,f):u(_,N,y,o,l,f);if(A!==void 0){if(A)continue;w=!1;break}if(j){if(!t(l,function(E,k){if(!n(j,k)&&(_===E||d(_,E,c,u,f)))return j.push(k)})){w=!1;break}}else if(!(_===N||d(_,N,c,u,f))){w=!1;break}}return f.delete(o),f.delete(l),w}return q5=s,q5}var z5,zF;function uEe(){if(zF)return z5;zF=1;var e=eu(),t=e.Uint8Array;return z5=t,z5}var $5,$F;function dEe(){if($F)return $5;$F=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,s){r[++n]=[s,i]}),r}return $5=e,$5}var U5,UF;function D3(){if(UF)return U5;UF=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return U5=e,U5}var G5,GF;function fEe(){if(GF)return G5;GF=1;var e=C0(),t=uEe(),n=S3(),r=CQ(),i=dEe(),s=D3(),o=1,l=2,c="[object Boolean]",u="[object Date]",d="[object Error]",f="[object Map]",p="[object Number]",h="[object RegExp]",x="[object Set]",v="[object String]",g="[object Symbol]",y="[object ArrayBuffer]",w="[object DataView]",j=e?e.prototype:void 0,_=j?j.valueOf:void 0;function N(A,E,k,T,D,P,R){switch(k){case w:if(A.byteLength!=E.byteLength||A.byteOffset!=E.byteOffset)return!1;A=A.buffer,E=E.buffer;case y:return!(A.byteLength!=E.byteLength||!P(new t(A),new t(E)));case c:case u:case p:return n(+A,+E);case d:return A.name==E.name&&A.message==E.message;case h:case v:return A==E+"";case f:var q=i;case x:var M=T&o;if(q||(q=s),A.size!=E.size&&!M)return!1;var V=R.get(A);if(V)return V==E;T|=l,R.set(A,E);var H=r(q(A),q(E),T,D,P,R);return R.delete(A),H;case g:if(_)return _.call(A)==_.call(E)}return!1}return G5=N,G5}var V5,VF;function EQ(){if(VF)return V5;VF=1;function e(t,n){for(var r=-1,i=n.length,s=t.length;++r<i;)t[s+r]=n[r];return t}return V5=e,V5}var W5,WF;function hEe(){if(WF)return W5;WF=1;var e=EQ(),t=ro();function n(r,i,s){var o=i(r);return t(r)?o:e(o,s(r))}return W5=n,W5}var H5,HF;function pEe(){if(HF)return H5;HF=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=0,o=[];++r<i;){var l=t[r];n(l,r,t)&&(o[s++]=l)}return o}return H5=e,H5}var K5,KF;function mEe(){if(KF)return K5;KF=1;function e(){return[]}return K5=e,K5}var Y5,YF;function gEe(){if(YF)return Y5;YF=1;var e=pEe(),t=mEe(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(l){return r.call(o,l)}))}:t;return Y5=s,Y5}var X5,XF;function vEe(){if(XF)return X5;XF=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return X5=e,X5}var Q5,QF;function yEe(){if(QF)return Q5;QF=1;var e=xd(),t=bd(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return Q5=r,Q5}var Z5,ZF;function F3(){if(ZF)return Z5;ZF=1;var e=yEe(),t=bd(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(o){return t(o)&&r.call(o,"callee")&&!i.call(o,"callee")};return Z5=s,Z5}var Iy={exports:{}},J5,JF;function xEe(){if(JF)return J5;JF=1;function e(){return!1}return J5=e,J5}Iy.exports;var e7;function TQ(){return e7||(e7=1,(function(e,t){var n=eu(),r=xEe(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===i,l=o?n.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||r;e.exports=u})(Iy,Iy.exports)),Iy.exports}var eA,t7;function B3(){if(t7)return eA;t7=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var s=typeof r;return i=i??e,!!i&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return eA=n,eA}var tA,n7;function q3(){if(n7)return tA;n7=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return tA=t,tA}var nA,r7;function bEe(){if(r7)return nA;r7=1;var e=xd(),t=q3(),n=bd(),r="[object Arguments]",i="[object Array]",s="[object Boolean]",o="[object Date]",l="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",f="[object Object]",p="[object RegExp]",h="[object Set]",x="[object String]",v="[object WeakMap]",g="[object ArrayBuffer]",y="[object DataView]",w="[object Float32Array]",j="[object Float64Array]",_="[object Int8Array]",N="[object Int16Array]",A="[object Int32Array]",E="[object Uint8Array]",k="[object Uint8ClampedArray]",T="[object Uint16Array]",D="[object Uint32Array]",P={};P[w]=P[j]=P[_]=P[N]=P[A]=P[E]=P[k]=P[T]=P[D]=!0,P[r]=P[i]=P[g]=P[s]=P[y]=P[o]=P[l]=P[c]=P[u]=P[d]=P[f]=P[p]=P[h]=P[x]=P[v]=!1;function R(q){return n(q)&&t(q.length)&&!!P[e(q)]}return nA=R,nA}var rA,i7;function OQ(){if(i7)return rA;i7=1;function e(t){return function(n){return t(n)}}return rA=e,rA}var Ly={exports:{}};Ly.exports;var a7;function wEe(){return a7||(a7=1,(function(e,t){var n=ZX(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===r,o=s&&n.process,l=(function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();e.exports=l})(Ly,Ly.exports)),Ly.exports}var iA,s7;function RQ(){if(s7)return iA;s7=1;var e=bEe(),t=OQ(),n=wEe(),r=n&&n.isTypedArray,i=r?t(r):e;return iA=i,iA}var aA,o7;function jEe(){if(o7)return aA;o7=1;var e=vEe(),t=F3(),n=ro(),r=TQ(),i=B3(),s=RQ(),o=Object.prototype,l=o.hasOwnProperty;function c(u,d){var f=n(u),p=!f&&t(u),h=!f&&!p&&r(u),x=!f&&!p&&!h&&s(u),v=f||p||h||x,g=v?e(u.length,String):[],y=g.length;
vendor: 2,528 bytes, line 1194
1194for(var w in u)(d||l.call(u,w))&&!(v&&(w=="length"||h&&(w=="offset"||w=="parent")||x&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||i(w,y)))&&g.push(w);return g}return aA=c,aA}var sA,l7;function _Ee(){if(l7)return sA;l7=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return sA=t,sA}var oA,c7;function IQ(){if(c7)return oA;c7=1;function e(t,n){return function(r){return t(n(r))}}return oA=e,oA}var lA,u7;function NEe(){if(u7)return lA;u7=1;var e=IQ(),t=e(Object.keys,Object);return lA=t,lA}var cA,d7;function SEe(){if(d7)return cA;d7=1;var e=_Ee(),t=NEe(),n=Object.prototype,r=n.hasOwnProperty;function i(s){if(!e(s))return t(s);var o=[];for(var l in Object(s))r.call(s,l)&&l!="constructor"&&o.push(l);return o}return cA=i,cA}var uA,f7;function O0(){if(f7)return uA;f7=1;var e=N3(),t=q3();function n(r){return r!=null&&t(r.length)&&!e(r)}return uA=n,uA}var dA,h7;function Pj(){if(h7)return dA;h7=1;var e=jEe(),t=SEe(),n=O0();function r(i){return n(i)?e(i):t(i)}return dA=r,dA}var fA,p7;function AEe(){if(p7)return fA;p7=1;var e=hEe(),t=gEe(),n=Pj();function r(i){return e(i,n,t)}return fA=r,fA}var hA,m7;function kEe(){if(m7)return hA;m7=1;var e=AEe(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(s,o,l,c,u,d){var f=l&t,p=e(s),h=p.length,x=e(o),v=x.length;if(h!=v&&!f)return!1;for(var g=h;g--;){var y=p[g];if(!(f?y in o:r.call(o,y)))return!1}var w=d.get(s),j=d.get(o);if(w&&j)return w==o&&j==s;var _=!0;d.set(s,o),d.set(o,s);for(var N=f;++g<h;){y=p[g];var A=s[y],E=o[y];if(c)var k=f?c(E,A,y,o,s,d):c(A,E,y,s,o,d);if(!(k===void 0?A===E||u(A,E,l,c,d):k)){_=!1;break}N||(N=y=="constructor")}if(_&&!N){var T=s.constructor,D=o.constructor;T!=D&&"constructor"in s&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof D=="function"&&D instanceof D)&&(_=!1)}return d.delete(s),d.delete(o),_}return hA=i,hA}var pA,g7;function PEe(){if(g7)return pA;g7=1;var e=Dp(),t=eu(),n=e(t,"DataView");return pA=n,pA}var mA,v7;function CEe(){if(v7)return mA;v7=1;var e=Dp(),t=eu(),n=e(t,"Promise");return mA=n,mA}var gA,y7;function LQ(){if(y7)return gA;y7=1;var e=Dp(),t=eu(),n=e(t,"Set");return gA=n,gA}var vA,x7;function EEe(){if(x7)return vA;x7=1;var e=Dp(),t=eu(),n=e(t,"WeakMap");return vA=n,vA}var yA,b7;function TEe(){if(b7)return yA;b7=1;var e=PEe(),t=A3(),n=CEe(),r=LQ(),i=EEe(),s=xd(),o=JX(),l="[object Map]",c="[object Object]",u="[object Promise]",d="[object Set]",f="[object WeakMap]",p="[object DataView]",h=o(e),x=o(t),v=o(n),g=o(r),y=o(i),w=s;
vendor: 48,786 bytes, lines 1194-1202
1194return(e&&w(new e(new ArrayBuffer(1)))!=p||t&&w(new t)!=l||n&&w(n.resolve())!=u||r&&w(new r)!=d||i&&w(new i)!=f)&&(w=function(j){var _=s(j),N=_==c?j.constructor:void 0,A=N?o(N):"";if(A)switch(A){case h:return p;case x:return l;case v:return u;case g:return d;case y:return f}return _}),yA=w,yA}var xA,w7;function OEe(){if(w7)return xA;w7=1;var e=SQ(),t=CQ(),n=fEe(),r=kEe(),i=TEe(),s=ro(),o=TQ(),l=RQ(),c=1,u="[object Arguments]",d="[object Array]",f="[object Object]",p=Object.prototype,h=p.hasOwnProperty;function x(v,g,y,w,j,_){var N=s(v),A=s(g),E=N?d:i(v),k=A?d:i(g);E=E==u?f:E,k=k==u?f:k;var T=E==f,D=k==f,P=E==k;if(P&&o(v)){if(!o(g))return!1;N=!0,T=!1}if(P&&!T)return _||(_=new e),N||l(v)?t(v,g,y,w,j,_):n(v,g,E,y,w,j,_);if(!(y&c)){var R=T&&h.call(v,"__wrapped__"),q=D&&h.call(g,"__wrapped__");if(R||q){var M=R?v.value():v,V=q?g.value():g;return _||(_=new e),j(M,V,y,w,_)}}return P?(_||(_=new e),r(v,g,y,w,j,_)):!1}return xA=x,xA}var bA,j7;function z3(){if(j7)return bA;j7=1;var e=OEe(),t=bd();function n(r,i,s,o,l){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,s,o,n,l)}return bA=n,bA}var wA,_7;function REe(){if(_7)return wA;_7=1;var e=SQ(),t=z3(),n=1,r=2;function i(s,o,l,c){var u=l.length,d=u,f=!c;if(s==null)return!d;for(s=Object(s);u--;){var p=l[u];if(f&&p[2]?p[1]!==s[p[0]]:!(p[0]in s))return!1}for(;++u<d;){p=l[u];var h=p[0],x=s[h],v=p[1];if(f&&p[2]){if(x===void 0&&!(h in s))return!1}else{var g=new e;if(c)var y=c(x,v,h,s,o,g);if(!(y===void 0?t(v,x,n|r,c,g):y))return!1}}return!0}return wA=i,wA}var jA,N7;function MQ(){if(N7)return jA;N7=1;var e=Kf();function t(n){return n===n&&!e(n)}return jA=t,jA}var _A,S7;function IEe(){if(S7)return _A;S7=1;var e=MQ(),t=Pj();function n(r){for(var i=t(r),s=i.length;s--;){var o=i[s],l=r[o];i[s]=[o,l,e(l)]}return i}return _A=n,_A}var NA,A7;function DQ(){if(A7)return NA;A7=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return NA=e,NA}var SA,k7;function LEe(){if(k7)return SA;k7=1;var e=REe(),t=IEe(),n=DQ();function r(i){var s=t(i);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(o){return o===i||e(o,i,s)}}return SA=r,SA}var AA,P7;function MEe(){if(P7)return AA;P7=1;function e(t,n){return t!=null&&n in Object(t)}return AA=e,AA}var kA,C7;function DEe(){if(C7)return kA;C7=1;var e=nQ(),t=F3(),n=ro(),r=B3(),i=q3(),s=_j();function o(l,c,u){c=e(c,l);for(var d=-1,f=c.length,p=!1;++d<f;){var h=s(c[d]);if(!(p=l!=null&&u(l,h)))break;l=l[h]}return p||++d!=f?p:(f=l==null?0:l.length,!!f&&i(f)&&r(h,f)&&(n(l)||t(l)))}return kA=o,kA}var PA,E7;function FEe(){if(E7)return PA;E7=1;var e=MEe(),t=DEe();function n(r,i){return r!=null&&t(r,i,e)}return PA=n,PA}var CA,T7;function BEe(){if(T7)return CA;T7=1;var e=z3(),t=rQ(),n=FEe(),r=_3(),i=MQ(),s=DQ(),o=_j(),l=1,c=2;function u(d,f){return r(d)&&i(f)?s(o(d),f):function(p){var h=t(p,d);return h===void 0&&h===f?n(p,d):e(f,h,l|c)}}return CA=u,CA}var EA,O7;function pv(){if(O7)return EA;O7=1;function e(t){return t}return EA=e,EA}var TA,R7;function qEe(){if(R7)return TA;R7=1;function e(t){return function(n){return n==null?void 0:n[t]}}return TA=e,TA}var OA,I7;function zEe(){if(I7)return OA;I7=1;var e=C3();function t(n){return function(r){return e(r,n)}}return OA=t,OA}var RA,L7;function $Ee(){if(L7)return RA;L7=1;var e=qEe(),t=zEe(),n=_3(),r=_j();function i(s){return n(s)?e(r(s)):t(s)}return RA=i,RA}var IA,M7;function tu(){if(M7)return IA;M7=1;var e=LEe(),t=BEe(),n=pv(),r=ro(),i=$Ee();function s(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):i(o)}return IA=s,IA}var LA,D7;function FQ(){if(D7)return LA;D7=1;function e(t,n,r,i){for(var s=t.length,o=r+(i?1:-1);i?o--:++o<s;)if(n(t[o],o,t))return o;return-1}return LA=e,LA}var MA,F7;function UEe(){if(F7)return MA;F7=1;function e(t){return t!==t}return MA=e,MA}var DA,B7;function GEe(){if(B7)return DA;B7=1;function e(t,n,r){for(var i=r-1,s=t.length;++i<s;)if(t[i]===n)return i;return-1}return DA=e,DA}var FA,q7;function VEe(){if(q7)return FA;q7=1;var e=FQ(),t=UEe(),n=GEe();function r(i,s,o){return s===s?n(i,s,o):e(i,t,o)}return FA=r,FA}var BA,z7;function WEe(){if(z7)return BA;z7=1;var e=VEe();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return BA=t,BA}var qA,$7;function HEe(){if($7)return qA;$7=1;function e(t,n,r){for(var i=-1,s=t==null?0:t.length;++i<s;)if(r(n,t[i]))return!0;return!1}return qA=e,qA}var zA,U7;function KEe(){if(U7)return zA;U7=1;function e(){}return zA=e,zA}var $A,G7;function YEe(){if(G7)return $A;G7=1;var e=LQ(),t=KEe(),n=D3(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(s){return new e(s)}:t;return $A=i,$A}var UA,V7;function XEe(){if(V7)return UA;V7=1;var e=AQ(),t=WEe(),n=HEe(),r=PQ(),i=YEe(),s=D3(),o=200;function l(c,u,d){var f=-1,p=t,h=c.length,x=!0,v=[],g=v;if(d)x=!1,p=n;else if(h>=o){var y=u?null:i(c);if(y)return s(y);x=!1,p=r,g=new e}else g=u?[]:v;e:for(;++f<h;){var w=c[f],j=u?u(w):w;if(w=d||w!==0?w:0,x&&j===j){for(var _=g.length;_--;)if(g[_]===j)continue e;u&&g.push(j),v.push(w)}else p(g,j,d)||(g!==v&&g.push(j),v.push(w))}return v}return UA=l,UA}var GA,W7;function QEe(){if(W7)return GA;W7=1;var e=tu(),t=XEe();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return GA=n,GA}var ZEe=QEe();const H7=Zn(ZEe);function BQ(e,t,n){return t===!0?H7(e,n):_n(t)?H7(e,t):e}function kg(e){"@babel/helpers - typeof";return kg=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},kg(e)}var JEe=["ref"];function K7(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 Bu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K7(Object(n),!0).forEach(function(r){Cj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zQ(r.key),r)}}function t4e(e,t,n){return t&&Y7(e.prototype,t),n&&Y7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function n4e(e,t,n){return t=Ew(t),r4e(e,qQ()?Reflect.construct(t,n||[],Ew(e).constructor):t.apply(e,n))}function r4e(e,t){if(t&&(kg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return i4e(e)}function i4e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qQ=function(){return!!e})()}function Ew(e){return Ew=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ew(e)}function a4e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fE(e,t)}function fE(e,t){return fE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},fE(e,t)}function Cj(e,t,n){return t=zQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zQ(e){var t=s4e(e,"string");return kg(t)=="symbol"?t:t+""}function s4e(e,t){if(kg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function o4e(e,t){if(e==null)return{};var n=l4e(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function l4e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function c4e(e){return e.value}function u4e(e,t){if(Ae.isValidElement(e))return Ae.cloneElement(e,t);if(typeof e=="function")return Ae.createElement(e,t);t.ref;var n=o4e(t,JEe);return Ae.createElement(M3,n)}var X7=1,nd=(function(e){function t(){var n;e4e(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=n4e(this,t,[].concat(i)),Cj(n,"lastBoundingBox",{width:-1,height:-1}),n}return a4e(t,e),t4e(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>X7||Math.abs(i.height-this.lastBoundingBox.height)>X7)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Bu({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,s=i.layout,o=i.align,l=i.verticalAlign,c=i.margin,u=i.chartWidth,d=i.chartHeight,f,p;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&s==="vertical"){var h=this.getBBoxSnapshot();f={left:((u||0)-h.width)/2}}else f=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var x=this.getBBoxSnapshot();p={top:((d||0)-x.height)/2}}else p=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Bu(Bu({},f),p)}},{key:"render",value:function(){var r=this,i=this.props,s=i.content,o=i.width,l=i.height,c=i.wrapperStyle,u=i.payloadUniqBy,d=i.payload,f=Bu(Bu({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return Ae.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){r.wrapperNode=h}},u4e(s,Bu(Bu({},this.props),{},{payload:BQ(d,u,c4e)})))}}],[{key:"getWithHeight",value:function(r,i){var s=Bu(Bu({},this.defaultProps),r.props),o=s.layout;return o==="vertical"&&wt(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||i}:null}}])})(O.PureComponent);Cj(nd,"displayName","Legend");Cj(nd,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var VA,Q7;function d4e(){if(Q7)return VA;Q7=1;var e=C0(),t=F3(),n=ro(),r=e?e.isConcatSpreadable:void 0;function i(s){return n(s)||t(s)||!!(r&&s&&s[r])}return VA=i,VA}var WA,Z7;function $Q(){if(Z7)return WA;Z7=1;var e=EQ(),t=d4e();function n(r,i,s,o,l){var c=-1,u=r.length;for(s||(s=t),l||(l=[]);++c<u;){var d=r[c];i>0&&s(d)?i>1?n(d,i-1,s,o,l):e(l,d):o||(l[l.length]=d)}return l}return WA=n,WA}var HA,J7;function f4e(){if(J7)return HA;J7=1;function e(t){return function(n,r,i){for(var s=-1,o=Object(n),l=i(n),c=l.length;c--;){var u=l[t?c:++s];if(r(o[u],u,o)===!1)break}return n}}return HA=e,HA}var KA,eB;function h4e(){if(eB)return KA;eB=1;var e=f4e(),t=e();return KA=t,KA}var YA,tB;function UQ(){if(tB)return YA;tB=1;var e=h4e(),t=Pj();function n(r,i){return r&&e(r,i,t)}return YA=n,YA}var XA,nB;function p4e(){if(nB)return XA;nB=1;var e=O0();function t(n,r){return function(i,s){if(i==null)return i;if(!e(i))return n(i,s);for(var o=i.length,l=r?o:-1,c=Object(i);(r?l--:++l<o)&&s(c[l],l,c)!==!1;);return i}}return XA=t,XA}var QA,rB;function $3(){if(rB)return QA;rB=1;var e=UQ(),t=p4e(),n=t(e);return QA=n,QA}var ZA,iB;function GQ(){if(iB)return ZA;iB=1;var e=$3(),t=O0();function n(r,i){var s=-1,o=t(r)?Array(r.length):[];return e(r,function(l,c,u){o[++s]=i(l,c,u)}),o}return ZA=n,ZA}var JA,aB;function m4e(){if(aB)return JA;aB=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return JA=e,JA}var ek,sB;function g4e(){if(sB)return ek;sB=1;var e=fv();function t(n,r){if(n!==r){var i=n!==void 0,s=n===null,o=n===n,l=e(n),c=r!==void 0,u=r===null,d=r===r,f=e(r);if(!u&&!f&&!l&&n>r||l&&c&&d&&!u&&!f||s&&c&&d||!i&&d||!o)return 1;if(!s&&!l&&!f&&n<r||f&&i&&o&&!s&&!l||u&&i&&o||!c&&o||!d)return-1}return 0}return ek=t,ek}var tk,oB;function v4e(){if(oB)return tk;oB=1;var e=g4e();function t(n,r,i){for(var s=-1,o=n.criteria,l=r.criteria,c=o.length,u=i.length;++s<c;){var d=e(o[s],l[s]);if(d){if(s>=u)return d;var f=i[s];return d*(f=="desc"?-1:1)}}return n.index-r.index}return tk=t,tk}var nk,lB;function y4e(){if(lB)return nk;lB=1;var e=P3(),t=C3(),n=tu(),r=GQ(),i=m4e(),s=OQ(),o=v4e(),l=pv(),c=ro();function u(d,f,p){f.length?f=e(f,function(v){return c(v)?function(g){return t(g,v.length===1?v[0]:v)}:v}):f=[l];var h=-1;f=e(f,s(n));var x=r(d,function(v,g,y){var w=e(f,function(j){return j(v)});return{criteria:w,index:++h,value:v}});return i(x,function(v,g){return o(v,g,p)})}return nk=u,nk}var rk,cB;function x4e(){if(cB)return rk;cB=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return rk=e,rk}var ik,uB;function b4e(){if(uB)return ik;uB=1;var e=x4e(),t=Math.max;function n(r,i,s){return i=t(i===void 0?r.length-1:i,0),function(){for(var o=arguments,l=-1,c=t(o.length-i,0),u=Array(c);++l<c;)u[l]=o[i+l];l=-1;for(var d=Array(i+1);++l<i;)d[l]=o[l];return d[i]=s(u),e(r,this,d)}}return ik=n,ik}var ak,dB;function w4e(){if(dB)return ak;dB=1;function e(t){return function(){return t}}return ak=e,ak}var sk,fB;function VQ(){if(fB)return sk;fB=1;var e=Dp(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return sk=t,sk}var ok,hB;function j4e(){if(hB)return ok;hB=1;var e=w4e(),t=VQ(),n=pv(),r=t?function(i,s){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return ok=r,ok}var lk,pB;function _4e(){if(pB)return lk;pB=1;var e=800,t=16,n=Date.now;function r(i){var s=0,o=0;return function(){var l=n(),c=t-(l-o);if(o=l,c>0){if(++s>=e)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}return lk=r,lk}var ck,mB;function N4e(){if(mB)return ck;mB=1;var e=j4e(),t=_4e(),n=t(e);return ck=n,ck}var uk,gB;function S4e(){if(gB)return uk;gB=1;var e=pv(),t=b4e(),n=N4e();function r(i,s){return n(t(i,s,e),i+"")}return uk=r,uk}var dk,vB;function Ej(){if(vB)return dk;vB=1;var e=S3(),t=O0(),n=B3(),r=Kf();function i(s,o,l){if(!r(l))return!1;var c=typeof o;return(c=="number"?t(l)&&n(o,l.length):c=="string"&&o in l)?e(l[o],s):!1}return dk=i,dk}var fk,yB;function A4e(){if(yB)return fk;yB=1;var e=$Q(),t=y4e(),n=S4e(),r=Ej(),i=n(function(s,o){if(s==null)return[];var l=o.length;return l>1&&r(s,o[0],o[1])?o=[]:l>2&&r(o[0],o[1],o[2])&&(o=[o[0]]),t(s,e(o,1),[])});return fk=i,fk}var k4e=A4e();const U3=Zn(k4e);function wx(e){"@babel/helpers - typeof";return wx=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},wx(e)}function hE(){return hE=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},hE.apply(this,arguments)}function P4e(e,t){return O4e(e)||T4e(e,t)||E4e(e,t)||C4e()}function C4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1195In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E4e(e,t){if(e){if(typeof e=="string")return xB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xB(e,t)}}function xB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function T4e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function O4e(e){if(Array.isArray(e))return e}function bB(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 hk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bB(Object(n),!0).forEach(function(r){R4e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function R4e(e,t,n){return t=I4e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I4e(e){var t=L4e(e,"string");return wx(t)=="symbol"?t:t+""}function L4e(e,t){if(wx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M4e(e){return Array.isArray(e)&&aa(e[0])&&aa(e[1])?e.join(" ~ "):e}var D4e=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,s=i===void 0?{}:i,o=t.itemStyle,l=o===void 0?{}:o,c=t.labelStyle,u=c===void 0?{}:c,d=t.payload,f=t.formatter,p=t.itemSorter,h=t.wrapperClassName,x=t.labelClassName,v=t.label,g=t.labelFormatter,y=t.accessibilityLayer,w=y===void 0?!1:y,j=function(){if(d&&d.length){var R={padding:0,margin:0},q=(p?U3(d,p):d).map(function(M,V){if(M.type==="none")return null;var H=hk({display:"block",paddingTop:4,paddingBottom:4,color:M.color||"#000"},l),Z=M.formatter||f||M4e,J=M.value,K=M.name,F=J,$=K;if(Z&&F!=null&&$!=null){var B=Z(J,K,M,V,d);if(Array.isArray(B)){var z=P4e(B,2);F=z[0],$=z[1]}else F=B}return Ae.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(V),style:H},aa($)?Ae.createElement("span",{className:"recharts-tooltip-item-name"},$):null,aa($)?Ae.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,Ae.createElement("span",{className:"recharts-tooltip-item-value"},F),Ae.createElement("span",{className:"recharts-tooltip-item-unit"},M.unit||""))});return Ae.createElement("ul",{className:"recharts-tooltip-item-list",style:R},q)}return null},_=hk({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),N=hk({margin:0},u),A=!$n(v),E=A?v:"",k=Rn("recharts-default-tooltip",h),T=Rn("recharts-tooltip-label",x);A&&g&&d!==void 0&&d!==null&&(E=g(v,d));var D=w?{role:"status","aria-live":"assertive"}:{};return Ae.createElement("div",hE({className:k,style:_},D),Ae.createElement("p",{className:T,style:N},Ae.isValidElement(E)?E:"".concat(E)),j())};function jx(e){"@babel/helpers - typeof";return jx=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},jx(e)}function e1(e,t,n){return t=F4e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F4e(e){var t=B4e(e,"string");return jx(t)=="symbol"?t:t+""}function B4e(e,t){if(jx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hy="recharts-tooltip-wrapper",q4e={visibility:"hidden"};function z4e(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Rn(hy,e1(e1(e1(e1({},"".concat(hy,"-right"),wt(n)&&t&&wt(t.x)&&n>=t.x),"".concat(hy,"-left"),wt(n)&&t&&wt(t.x)&&n<t.x),"".concat(hy,"-bottom"),wt(r)&&t&&wt(t.y)&&r>=t.y),"".concat(hy,"-top"),wt(r)&&t&&wt(t.y)&&r<t.y))}function wB(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,s=e.position,o=e.reverseDirection,l=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(s&&wt(s[r]))return s[r];var d=n[r]-l-i,f=n[r]+i;if(t[r])return o[r]?d:f;if(o[r]){var p=d,h=c[r];return p<h?Math.max(f,c[r]):Math.max(d,c[r])}var x=f+l,v=c[r]+u;return x>v?Math.max(d,c[r]):Math.max(f,c[r])}function $4e(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function U4e(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,s=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,c=e.viewBox,u,d,f;return o.height>0&&o.width>0&&n?(d=wB({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:s,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),f=wB({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:s,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),u=$4e({translateX:d,translateY:f,useTranslate3d:l})):u=q4e,{cssProperties:u,cssClasses:z4e({translateX:d,translateY:f,coordinate:n})}}function Pg(e){"@babel/helpers - typeof";return Pg=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},Pg(e)}function jB(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 _B(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jB(Object(n),!0).forEach(function(r){mE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function G4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V4e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HQ(r.key),r)}}function W4e(e,t,n){return t&&V4e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function H4e(e,t,n){return t=Tw(t),K4e(e,WQ()?Reflect.construct(t,n||[],Tw(e).constructor):t.apply(e,n))}function K4e(e,t){if(t&&(Pg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Y4e(e)}function Y4e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WQ=function(){return!!e})()}function Tw(e){return Tw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tw(e)}function X4e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pE(e,t)}function pE(e,t){return pE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},pE(e,t)}function mE(e,t,n){return t=HQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HQ(e){var t=Q4e(e,"string");return Pg(t)=="symbol"?t:t+""}function Q4e(e,t){if(Pg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var NB=1,Z4e=(function(e){function t(){var n;G4e(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=H4e(this,t,[].concat(i)),mE(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),mE(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,c,u,d;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&l!==void 0?l:0,y:(u=(d=n.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&u!==void 0?u:0}})}}),n}return X4e(t,e),W4e(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>NB||Math.abs(r.height-this.state.lastBoundingBox.height)>NB)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,s=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,c=i.animationEasing,u=i.children,d=i.coordinate,f=i.hasPayload,p=i.isAnimationActive,h=i.offset,x=i.position,v=i.reverseDirection,g=i.useTranslate3d,y=i.viewBox,w=i.wrapperStyle,j=U4e({allowEscapeViewBox:o,coordinate:d,offsetTopLeft:h,position:x,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:y}),_=j.cssClasses,N=j.cssProperties,A=_B(_B({transition:p&&s?"transform ".concat(l,"ms ").concat(c):void 0},N),{},{pointerEvents:"none",visibility:!this.state.dismissed&&s&&f?"visible":"hidden",position:"absolute",top:0,left:0},w);return Ae.createElement("div",{tabIndex:-1,className:_,style:A,ref:function(k){r.wrapperNode=k}},u)}}])})(O.PureComponent),J4e=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},mv={isSsr:J4e()};function Cg(e){"@babel/helpers - typeof";return Cg=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},Cg(e)}function SB(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 AB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SB(Object(n),!0).forEach(function(r){G3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tTe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YQ(r.key),r)}}function nTe(e,t,n){return t&&tTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rTe(e,t,n){return t=Ow(t),iTe(e,KQ()?Reflect.construct(t,n||[],Ow(e).constructor):t.apply(e,n))}function iTe(e,t){if(t&&(Cg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aTe(e)}function aTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KQ=function(){return!!e})()}function Ow(e){return Ow=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ow(e)}function sTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gE(e,t)}function gE(e,t){return gE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gE(e,t)}function G3(e,t,n){return t=YQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YQ(e){var t=oTe(e,"string");return Cg(t)=="symbol"?t:t+""}function oTe(e,t){if(Cg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function lTe(e){return e.dataKey}function cTe(e,t){return Ae.isValidElement(e)?Ae.cloneElement(e,t):typeof e=="function"?Ae.createElement(e,t):Ae.createElement(D4e,t)}var Qa=(function(e){function t(){return eTe(this,t),rTe(this,t,arguments)}return sTe(t,e),nTe(t,[{key:"render",value:function(){var r=this,i=this.props,s=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,c=i.animationEasing,u=i.content,d=i.coordinate,f=i.filterNull,p=i.isAnimationActive,h=i.offset,x=i.payload,v=i.payloadUniqBy,g=i.position,y=i.reverseDirection,w=i.useTranslate3d,j=i.viewBox,_=i.wrapperStyle,N=x??[];f&&N.length&&(N=BQ(x.filter(function(E){return E.value!=null&&(E.hide!==!0||r.props.includeHidden)}),v,lTe));var A=N.length>0;return Ae.createElement(Z4e,{allowEscapeViewBox:o,animationDuration:l,animationEasing:c,isAnimationActive:p,active:s,coordinate:d,hasPayload:A,offset:h,position:g,reverseDirection:y,useTranslate3d:w,viewBox:j,wrapperStyle:_},cTe(u,AB(AB({},this.props),{},{payload:N})))}}])})(O.PureComponent);G3(Qa,"displayName","Tooltip");G3(Qa,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!mv.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var pk,kB;function uTe(){if(kB)return pk;kB=1;var e=eu(),t=function(){return e.Date.now()};return pk=t,pk}var mk,PB;function dTe(){if(PB)return mk;PB=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return mk=t,mk}var gk,CB;function fTe(){if(CB)return gk;CB=1;var e=dTe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return gk=n,gk}var vk,EB;function XQ(){if(EB)return vk;EB=1;var e=fTe(),t=Kf(),n=fv(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function c(u){if(typeof u=="number")return u;if(n(u))return r;if(t(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=t(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=s.test(u);return f||o.test(u)?l(u.slice(2),f?2:8):i.test(u)?r:+u}return vk=c,vk}var yk,TB;function hTe(){if(TB)return yk;TB=1;var e=Kf(),t=uTe(),n=XQ(),r="Expected a function",i=Math.max,s=Math.min;function o(l,c,u){var d,f,p,h,x,v,g=0,y=!1,w=!1,j=!0;if(typeof l!="function")throw new TypeError(r);c=n(c)||0,e(u)&&(y=!!u.leading,w="maxWait"in u,p=w?i(n(u.maxWait)||0,c):p,j="trailing"in u?!!u.trailing:j);function _(q){var M=d,V=f;return d=f=void 0,g=q,h=l.apply(V,M),h}function N(q){return g=q,x=setTimeout(k,c),y?_(q):h}function A(q){var M=q-v,V=q-g,H=c-M;return w?s(H,p-V):H}function E(q){var M=q-v,V=q-g;return v===void 0||M>=c||M<0||w&&V>=p}function k(){var q=t();if(E(q))return T(q);x=setTimeout(k,A(q))}function T(q){return x=void 0,j&&d?_(q):(d=f=void 0,h)}function D(){x!==void 0&&clearTimeout(x),g=0,d=v=f=x=void 0}function P(){return x===void 0?h:T(t())}function R(){var q=t(),M=E(q);if(d=arguments,f=this,v=q,M){if(x===void 0)return N(v);if(w)return clearTimeout(x),x=setTimeout(k,c),_(v)}return x===void 0&&(x=setTimeout(k,c)),h}return R.cancel=D,R.flush=P,R}return yk=o,yk}var xk,OB;function pTe(){if(OB)return xk;OB=1;var e=hTe(),t=Kf(),n="Expected a function";function r(i,s,o){var l=!0,c=!0;if(typeof i!="function")throw new TypeError(n);return t(o)&&(l="leading"in o?!!o.leading:l,c="trailing"in o?!!o.trailing:c),e(i,s,{leading:l,maxWait:s,trailing:c})}return xk=r,xk}var mTe=pTe();const QQ=Zn(mTe);function _x(e){"@babel/helpers - typeof";return _x=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},_x(e)}function RB(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 t1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RB(Object(n),!0).forEach(function(r){gTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gTe(e,t,n){return t=vTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vTe(e){var t=yTe(e,"string");return _x(t)=="symbol"?t:t+""}function yTe(e,t){if(_x(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_x(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xTe(e,t){return _Te(e)||jTe(e,t)||wTe(e,t)||bTe()}function bTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1196In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wTe(e,t){if(e){if(typeof e=="string")return IB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IB(e,t)}}function IB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function _Te(e){if(Array.isArray(e))return e}var $h=O.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,s=e.width,o=s===void 0?"100%":s,l=e.height,c=l===void 0?"100%":l,u=e.minWidth,d=u===void 0?0:u,f=e.minHeight,p=e.maxHeight,h=e.children,x=e.debounce,v=x===void 0?0:x,g=e.id,y=e.className,w=e.onResize,j=e.style,_=j===void 0?{}:j,N=O.useRef(null),A=O.useRef();A.current=w,O.useImperativeHandle(t,function(){return Object.defineProperty(N.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),N.current},configurable:!0})});var E=O.useState({containerWidth:i.width,containerHeight:i.height}),k=xTe(E,2),T=k[0],D=k[1],P=O.useCallback(function(q,M){D(function(V){var H=Math.round(q),Z=Math.round(M);return V.containerWidth===H&&V.containerHeight===Z?V:{containerWidth:H,containerHeight:Z}})},[]);O.useEffect(function(){var q=function(K){var F,$=K[0].contentRect,B=$.width,z=$.height;P(B,z),(F=A.current)===null||F===void 0||F.call(A,B,z)};v>0&&(q=QQ(q,v,{trailing:!0,leading:!1}));var M=new ResizeObserver(q),V=N.current.getBoundingClientRect(),H=V.width,Z=V.height;return P(H,Z),M.observe(N.current),function(){M.disconnect()}},[P,v]);var R=O.useMemo(function(){var q=T.containerWidth,M=T.containerHeight;if(q<0||M<0)return null;Hl(zh(o)||zh(c),`The width(%s) and height(%s) are both fixed numbers, 1197 maybe you don't need to use a ResponsiveContainer.`,o,c),Hl(!n||n>0,"The aspect(%s) must be greater than zero.",n);var V=zh(o)?q:o,H=zh(c)?M:c;n&&n>0&&(V?H=V/n:H&&(V=H*n),p&&H>p&&(H=p)),Hl(V>0||H>0,`The width(%s) and height(%s) of chart should be greater than 0, 1198 please check the style of container, or the props width(%s) and height(%s), 1199 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 1200 height and width.`,V,H,o,c,d,f,n);var Z=!Array.isArray(h)&&td(h.type).endsWith("Chart");return Ae.Children.map(h,function(J){return Ae.isValidElement(J)?O.cloneElement(J,t1({width:V,height:H},Z?{style:t1({height:"100%",width:"100%",maxHeight:H,maxWidth:V},J.props.style)}:{})):J})},[n,h,c,p,f,d,T,o]);return Ae.createElement("div",{id:g?"".concat(g):void 0,className:Rn("recharts-responsive-container",y),style:t1(t1({},_),{},{width:o,height:c,minWidth:d,minHeight:f,maxHeight:p}),ref:N},R)}),R0=function(t){return null};R0.displayName="Cell";function Nx(e){"@babel/helpers - typeof";return Nx=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},Nx(e)}function LB(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 vE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LB(Object(n),!0).forEach(function(r){NTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NTe(e,t,n){return t=STe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function STe(e){var t=ATe(e,"string");return Nx(t)=="symbol"?t:t+""}function ATe(e,t){if(Nx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cm={widthCache:{},cacheCount:0},kTe=2e3,PTe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},MB="recharts_measurement_span";function CTe(e){var t=vE({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Yy=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||mv.isSsr)return{width:0,height:0};var r=CTe(n),i=JSON.stringify({text:t,copyStyle:r});if(Cm.widthCache[i])return Cm.widthCache[i];try{var s=document.getElementById(MB);s||(s=document.createElement("span"),s.setAttribute("id",MB),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var o=vE(vE({},PTe),r);Object.assign(s.style,o),s.textContent="".concat(t);var l=s.getBoundingClientRect(),c={width:l.width,height:l.height};return Cm.widthCache[i]=c,++Cm.cacheCount>kTe&&(Cm.cacheCount=0,Cm.widthCache={}),c}catch{return{width:0,height:0}}},ETe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Sx(e){"@babel/helpers - typeof";return Sx=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},Sx(e)}function Rw(e,t){return ITe(e)||RTe(e,t)||OTe(e,t)||TTe()}function TTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1201In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OTe(e,t){if(e){if(typeof e=="string")return DB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DB(e,t)}}function DB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function RTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function ITe(e){if(Array.isArray(e))return e}function LTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DTe(r.key),r)}}function MTe(e,t,n){return t&&FB(e.prototype,t),n&&FB(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function DTe(e){var t=FTe(e,"string");return Sx(t)=="symbol"?t:t+""}function FTe(e,t){if(Sx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var BB=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,qB=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,BTe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,qTe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,ZQ={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},zTe=Object.keys(ZQ),zm="NaN";function $Te(e,t){return e*ZQ[t]}var n1=(function(){function e(t,n){LTe(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!BTe.test(n)&&(this.num=NaN,this.unit=""),zTe.includes(n)&&(this.num=$Te(t,n),this.unit="px")}return MTe(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=qTe.exec(n))!==null&&r!==void 0?r:[],s=Rw(i,3),o=s[1],l=s[2];return new e(parseFloat(o),l??"")}}])})();function JQ(e){if(e.includes(zm))return zm;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=BB.exec(t))!==null&&n!==void 0?n:[],i=Rw(r,4),s=i[1],o=i[2],l=i[3],c=n1.parse(s??""),u=n1.parse(l??""),d=o==="*"?c.multiply(u):c.divide(u);if(d.isNaN())return zm;t=t.replace(BB,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,p=(f=qB.exec(t))!==null&&f!==void 0?f:[],h=Rw(p,4),x=h[1],v=h[2],g=h[3],y=n1.parse(x??""),w=n1.parse(g??""),j=v==="+"?y.add(w):y.subtract(w);if(j.isNaN())return zm;t=t.replace(qB,j.toString())}return t}var zB=/\(([^()]*)\)/;function UTe(e){for(var t=e;t.includes("(");){var n=zB.exec(t),r=Rw(n,2),i=r[1];t=t.replace(zB,JQ(i))}return t}function GTe(e){var t=e.replace(/\s+/g,"");return t=UTe(t),t=JQ(t),t}function VTe(e){try{return GTe(e)}catch{return zm}}function bk(e){var t=VTe(e.slice(5,-1));return t===zm?"":t}var WTe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],HTe=["dx","dy","angle","className","breakAll"];function yE(){return yE=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},yE.apply(this,arguments)}function $B(e,t){if(e==null)return{};var n=KTe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KTe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function UB(e,t){return ZTe(e)||QTe(e,t)||XTe(e,t)||YTe()}function YTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1202In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XTe(e,t){if(e){if(typeof e=="string")return GB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GB(e,t)}}function GB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function QTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function ZTe(e){if(Array.isArray(e))return e}var eZ=/[ \f\n\r\t\v\u2028\u2029]+/,tZ=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var s=[];$n(n)||(r?s=n.toString().split(""):s=n.toString().split(eZ));var o=s.map(function(c){return{word:c,width:Yy(c,i).width}}),l=r?0:Yy(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},JTe=function(t,n,r,i,s){var o=t.maxLines,l=t.children,c=t.style,u=t.breakAll,d=wt(o),f=l,p=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return V.reduce(function(H,Z){var J=Z.word,K=Z.width,F=H[H.length-1];if(F&&(i==null||s||F.width+K+r<Number(i)))F.words.push(J),F.width+=K+r;else{var $={words:[J],width:K};H.push($)}return H},[])},h=p(n),x=function(V){return V.reduce(function(H,Z){return H.width>Z.width?H:Z})};if(!d)return h;for(var v="â¦",g=function(V){var H=f.slice(0,V),Z=tZ({breakAll:u,style:c,children:H+v}).wordsWithComputedWidth,J=p(Z),K=J.length>o||x(J).width>Number(i);return[K,J]},y=0,w=f.length-1,j=0,_;y<=w&&j<=f.length-1;){var N=Math.floor((y+w)/2),A=N-1,E=g(A),k=UB(E,2),T=k[0],D=k[1],P=g(N),R=UB(P,1),q=R[0];if(!T&&!q&&(y=N+1),T&&q&&(w=N-1),!T&&q){_=D;break}j++}return _||h},VB=function(t){var n=$n(t)?[]:t.toString().split(eZ);return[{words:n}]},e3e=function(t){var n=t.width,r=t.scaleToFit,i=t.children,s=t.style,o=t.breakAll,l=t.maxLines;if((n||r)&&!mv.isSsr){var c,u,d=tZ({breakAll:o,children:i,style:s});if(d){var f=d.wordsWithComputedWidth,p=d.spaceWidth;c=f,u=p}else return VB(i);return JTe({breakAll:o,children:i,maxLines:l,style:s},c,u,n,r)}return VB(i)},WB="#808080",bp=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,s=i===void 0?0:i,o=t.lineHeight,l=o===void 0?"1em":o,c=t.capHeight,u=c===void 0?"0.71em":c,d=t.scaleToFit,f=d===void 0?!1:d,p=t.textAnchor,h=p===void 0?"start":p,x=t.verticalAnchor,v=x===void 0?"end":x,g=t.fill,y=g===void 0?WB:g,w=$B(t,WTe),j=O.useMemo(function(){return e3e({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:f,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,f,w.style,w.width]),_=w.dx,N=w.dy,A=w.angle,E=w.className,k=w.breakAll,T=$B(w,HTe);if(!aa(r)||!aa(s))return null;var D=r+(wt(_)?_:0),P=s+(wt(N)?N:0),R;
1202switch(v){case"start":R=bk("calc(".concat(u,")"));break;case"middle":R=bk("calc(".concat((j.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:R=bk("calc(".concat(j.length-1," * -").concat(l,")"));break}var q=[];if(f){var M=j[0].width,V=w.width;q.push("scale(".concat((wt(V)?V/M:1)/M,")"))}return A&&q.push("rotate(".concat(A,", ").concat(D,", ").concat(P,")")),q.length&&(T.transform=q.join(" ")),Ae.createElement("text",yE({},hn(T,!0),{x:D,y:P,className:Rn("recharts-text",E),textAnchor:h,fill:y.includes("url")?WB:y}),j.map(function(H,Z){var J=H.words.join(k?"":" ");return Ae.createElement("tspan",{x:D,dy:Z===0?R:l,key:"".concat(J,"-").concat(Z)},J)}))};function Tf(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function t3e(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function V3(e){let t,n,r;e.length!==2?(t=Tf,n=(l,c)=>Tf(e(l),c),r=(l,c)=>e(l)-c):(t=e===Tf||e===t3e?e:n3e,n=e,r=e);function i(l,c,u=0,d=l.length){if(u<d){if(t(c,c)!==0)return d;do{const f=u+d>>>1;n(l[f],c)<0?u=f+1:d=f}while(u<d)}return u}function s(l,c,u=0,d=l.length){if(u<d){if(t(c,c)!==0)return d;do{const f=u+d>>>1;n(l[f],c)<=0?u=f+1:d=f}while(u<d)}return u}function o(l,c,u=0,d=l.length){const f=i(l,c,u,d-1);return f>u&&r(l[f-1],c)>-r(l[f],c)?f-1:f}return{left:i,center:o,right:s}}function n3e(){return 0}function nZ(e){return e===null?NaN:+e}function*r3e(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const i3e=V3(Tf),I0=i3e.right;V3(nZ).center;class HB extends Map{constructor(t,n=o3e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(KB(this,t))}has(t){return super.has(KB(this,t))}set(t,n){return super.set(a3e(this,t),n)}delete(t){return super.delete(s3e(this,t))}}function KB({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function a3e({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function s3e({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function o3e(e){return e!==null&&typeof e=="object"?e.valueOf():e}function l3e(e=Tf){if(e===Tf)return rZ;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function rZ(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const c3e=Math.sqrt(50),u3e=Math.sqrt(10),d3e=Math.sqrt(2);function Iw(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),o=s>=c3e?10:s>=u3e?5:s>=d3e?2:1;let l,c,u;return i<0?(u=Math.pow(10,-i)/o,l=Math.round(e*u),c=Math.round(t*u),l/u<e&&++l,c/u>t&&--c,u=-u):(u=Math.pow(10,i)*o,l=Math.round(e/u),c=Math.round(t/u),l*u<e&&++l,c*u>t&&--c),c<l&&.5<=n&&n<2?Iw(e,t,n*2):[l,c,u]}function xE(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,s,o]=r?Iw(t,e,n):Iw(e,t,n);if(!(s>=i))return[];const l=s-i+1,c=new Array(l);if(r)if(o<0)for(let u=0;u<l;++u)c[u]=(s-u)/-o;else for(let u=0;u<l;++u)c[u]=(s-u)*o;else if(o<0)for(let u=0;u<l;++u)c[u]=(i+u)/-o;else for(let u=0;u<l;++u)c[u]=(i+u)*o;return c}function bE(e,t,n){return t=+t,e=+e,n=+n,Iw(e,t,n)[2]}function wE(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?bE(t,e,n):bE(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function YB(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function XB(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function iZ(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?rZ:l3e(i);r>n;){if(r-n>600){const c=r-n+1,u=t-n+1,d=Math.log(c),f=.5*Math.exp(2*d/3),p=.5*Math.sqrt(d*f*(c-f)/c)*(u-c/2<0?-1:1),h=Math.max(n,Math.floor(t-u*f/c+p)),x=Math.min(r,Math.floor(t+(c-u)*f/c+p));iZ(e,t,h,x,i)}const s=e[t];let o=n,l=r;for(py(e,n,t),i(e[r],s)>0&&py(e,n,r);o<l;){for(py(e,o,l),++o,--l;i(e[o],s)<0;)++o;for(;i(e[l],s)>0;)--l}i(e[n],s)===0?py(e,n,l):(++l,py(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function py(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function f3e(e,t,n){if(e=Float64Array.from(r3e(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return XB(e);if(t>=1)return YB(e);
1202var r,i=(r-1)*t,s=Math.floor(i),o=YB(iZ(e,s).subarray(0,s+1)),l=XB(e.subarray(s+1));return o+(l-o)*(i-s)}}function h3e(e,t,n=nZ){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,s=Math.floor(i),o=+n(e[s],s,e),l=+n(e[s+1],s+1,e);return o+(l-o)*(i-s)}}function p3e(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,s=new Array(i);++r<i;)s[r]=e+r*n;return s}function bl(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function wd(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const jE=Symbol("implicit");function W3(){var e=new HB,t=[],n=[],r=jE;function i(s){let o=e.get(s);if(o===void 0){if(r!==jE)return r;e.set(s,o=t.push(s)-1)}return n[o%n.length]}return i.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new HB;for(const o of s)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return W3(t,n).unknown(r)},bl.apply(i,arguments),i}function Ax(){var e=W3().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,s,o,l=!1,c=0,u=0,d=.5;delete e.unknown;function f(){var p=t().length,h=i<r,x=h?i:r,v=h?r:i;s=(v-x)/Math.max(1,p-c+u*2),l&&(s=Math.floor(s)),x+=(v-x-s*(p-c))*d,o=s*(1-c),l&&(x=Math.round(x),o=Math.round(o));var g=p3e(p).map(function(y){return x+s*y});return n(h?g.reverse():g)}return e.domain=function(p){return arguments.length?(t(p),f()):t()},e.range=function(p){return arguments.length?([r,i]=p,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(p){return[r,i]=p,r=+r,i=+i,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return s},e.round=function(p){return arguments.length?(l=!!p,f()):l},e.padding=function(p){return arguments.length?(c=Math.min(1,u=+p),f()):c},e.paddingInner=function(p){return arguments.length?(c=Math.min(1,p),f()):c},e.paddingOuter=function(p){return arguments.length?(u=+p,f()):u},e.align=function(p){return arguments.length?(d=Math.max(0,Math.min(1,p)),f()):d},e.copy=function(){return Ax(t(),[r,i]).round(l).paddingInner(c).paddingOuter(u).align(d)},bl.apply(f(),arguments)}function aZ(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return aZ(t())},e}function Xy(){return aZ(Ax.apply(null,arguments).paddingInner(1))}function H3(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function sZ(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function L0(){}var kx=.7,Lw=1/kx,tg="\\s*([+-]?\\d+)\\s*",Px="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",m3e=/^#([0-9a-f]{3,8})$/,g3e=new RegExp(`^rgb\\(${tg},${tg},${tg}\\)$`),v3e=new RegExp(`^rgb\\(${Gc},${Gc},${Gc}\\)$`),y3e=new RegExp(`^rgba\\(${tg},${tg},${tg},${Px}\\)$`),x3e=new RegExp(`^rgba\\(${Gc},${Gc},${Gc},${Px}\\)$`),b3e=new RegExp(`^hsl\\(${Px},${Gc},${Gc}\\)$`),w3e=new RegExp(`^hsla\\(${Px},${Gc},${Gc},${Px}\\)$`),QB={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};
vendor: 10,421 bytes, line 1202
1202H3(L0,Cx,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ZB,formatHex:ZB,formatHex8:j3e,formatHsl:_3e,formatRgb:JB,toString:JB});function ZB(){return this.rgb().formatHex()}function j3e(){return this.rgb().formatHex8()}function _3e(){return oZ(this).formatHsl()}function JB(){return this.rgb().formatRgb()}function Cx(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=m3e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?eq(t):n===3?new Xs(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?r1(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?r1(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=g3e.exec(e))?new Xs(t[1],t[2],t[3],1):(t=v3e.exec(e))?new Xs(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=y3e.exec(e))?r1(t[1],t[2],t[3],t[4]):(t=x3e.exec(e))?r1(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=b3e.exec(e))?rq(t[1],t[2]/100,t[3]/100,1):(t=w3e.exec(e))?rq(t[1],t[2]/100,t[3]/100,t[4]):QB.hasOwnProperty(e)?eq(QB[e]):e==="transparent"?new Xs(NaN,NaN,NaN,0):null}function eq(e){return new Xs(e>>16&255,e>>8&255,e&255,1)}function r1(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xs(e,t,n,r)}function N3e(e){return e instanceof L0||(e=Cx(e)),e?(e=e.rgb(),new Xs(e.r,e.g,e.b,e.opacity)):new Xs}function _E(e,t,n,r){return arguments.length===1?N3e(e):new Xs(e,t,n,r??1)}function Xs(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}H3(Xs,_E,sZ(L0,{brighter(e){return e=e==null?Lw:Math.pow(Lw,e),new Xs(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?kx:Math.pow(kx,e),new Xs(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xs(ip(this.r),ip(this.g),ip(this.b),Mw(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tq,formatHex:tq,formatHex8:S3e,formatRgb:nq,toString:nq}));function tq(){return`#${Uh(this.r)}${Uh(this.g)}${Uh(this.b)}`}function S3e(){return`#${Uh(this.r)}${Uh(this.g)}${Uh(this.b)}${Uh((isNaN(this.opacity)?1:this.opacity)*255)}`}function nq(){const e=Mw(this.opacity);return`${e===1?"rgb(":"rgba("}${ip(this.r)}, ${ip(this.g)}, ${ip(this.b)}${e===1?")":`, ${e})`}`}function Mw(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ip(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Uh(e){return e=ip(e),(e<16?"0":"")+e.toString(16)}function rq(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Wl(e,t,n,r)}function oZ(e){if(e instanceof Wl)return new Wl(e.h,e.s,e.l,e.opacity);if(e instanceof L0||(e=Cx(e)),!e)return new Wl;if(e instanceof Wl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),s=Math.max(t,n,r),o=NaN,l=s-i,c=(s+i)/2;return l?(t===s?o=(n-r)/l+(n<r)*6:n===s?o=(r-t)/l+2:o=(t-n)/l+4,l/=c<.5?s+i:2-s-i,o*=60):l=c>0&&c<1?0:o,new Wl(o,l,c,e.opacity)}function A3e(e,t,n,r){return arguments.length===1?oZ(e):new Wl(e,t,n,r??1)}function Wl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}H3(Wl,A3e,sZ(L0,{brighter(e){return e=e==null?Lw:Math.pow(Lw,e),new Wl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?kx:Math.pow(kx,e),new Wl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Xs(wk(e>=240?e-240:e+120,i,r),wk(e,i,r),wk(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Wl(iq(this.h),i1(this.s),i1(this.l),Mw(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Mw(this.opacity);return`${e===1?"hsl(":"hsla("}${iq(this.h)}, ${i1(this.s)*100}%, ${i1(this.l)*100}%${e===1?")":`, ${e})`}`}}));function iq(e){return e=(e||0)%360,e<0?e+360:e}function i1(e){return Math.max(0,Math.min(1,e||0))}function wk(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const K3=e=>()=>e;function k3e(e,t){return function(n){return e+n*t}}function P3e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function C3e(e){return(e=+e)==1?lZ:function(t,n){return n-t?P3e(t,n,e):K3(isNaN(t)?n:t)}}function lZ(e,t){var n=t-e;return n?k3e(e,n):K3(isNaN(e)?t:e)}const aq=(function e(t){var n=C3e(t);function r(i,s){var o=n((i=_E(i)).r,(s=_E(s)).r),l=n(i.g,s.g),c=n(i.b,s.b),u=lZ(i.opacity,s.opacity);return function(d){return i.r=o(d),i.g=l(d),i.b=c(d),i.opacity=u(d),i+""}}return r.gamma=e,r})(1);function E3e(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=e[i]*(1-s)+t[i]*s;return r}}function T3e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function O3e(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),s=new Array(n),o;for(o=0;o<r;++o)i[o]=gv(e[o],t[o]);for(;o<n;++o)s[o]=t[o];return function(l){for(o=0;o<r;++o)s[o]=i[o](l);return s}}function R3e(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Dw(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function I3e(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=gv(e[i],t[i]):r[i]=t[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var NE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jk=new RegExp(NE.source,"g");function L3e(e){return function(){return e}}function M3e(e){return function(t){return e(t)+""}}function D3e(e,t){var n=NE.lastIndex=jk.lastIndex=0,r,i,s,o=-1,l=[],c=[];for(e=e+"",t=t+"";(r=NE.exec(e))&&(i=jk.exec(t));)(s=i.index)>n&&(s=t.slice(n,s),l[o]?l[o]+=s:l[++o]=s),(r=r[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,c.push({i:o,x:Dw(r,i)})),n=jk.lastIndex;return n<t.length&&(s=t.slice(n),l[o]?l[o]+=s:l[++o]=s),l.length<2?c[0]?M3e(c[0].x):L3e(t):(t=c.length,function(u){for(var d=0,f;d<t;++d)l[(f=c[d]).i]=f.x(u);return l.join("")})}function gv(e,t){var n=typeof t,r;return t==null||n==="boolean"?K3(t):(n==="number"?Dw:n==="string"?(r=Cx(t))?(t=r,aq):D3e:t instanceof Cx?aq:t instanceof Date?R3e:T3e(t)?E3e:Array.isArray(t)?O3e:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?I3e:Dw)(e,t)}function Y3(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function F3e(e,t){t===void 0&&(t=e,e=gv);for(var n=0,r=t.length-1,i=t[0],s=new Array(r<0?0:r);n<r;)s[n]=e(i,i=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return s[l](o-l)}}function B3e(e){return function(){return e}}function Fw(e){return+e}var sq=[0,1];function As(e){return e}function SE(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:B3e(isNaN(t)?NaN:.5)}function q3e(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function z3e(e,t,n){var r=e[0],i=e[1],s=t[0],o=t[1];return i<r?(r=SE(i,r),s=n(o,s)):(r=SE(r,i),s=n(s,o)),function(l){return s(r(l))}}function $3e(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),s=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=SE(e[o],e[o+1]),s[o]=n(t[o],t[o+1]);return function(l){var c=I0(e,l,1,r)-1;return s[c](i[c](l))}}function M0(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Tj(){var e=sq,t=sq,n=gv,r,i,s,o=As,l,c,u;function d(){var p=Math.min(e.length,t.length);return o!==As&&(o=q3e(e[0],e[p-1])),l=p>2?$3e:z3e,c=u=null,f}function f(p){return p==null||isNaN(p=+p)?s:(c||(c=l(e.map(r),t,n)))(r(o(p)))}return f.invert=function(p){return o(i((u||(u=l(t,e.map(r),Dw)))(p)))},f.domain=function(p){return arguments.length?(e=Array.from(p,Fw),d()):e.slice()},f.range=function(p){return arguments.length?(t=Array.from(p),d()):t.slice()},f.rangeRound=function(p){return t=Array.from(p),n=Y3,d()},f.clamp=function(p){return arguments.length?(o=p?!0:As,d()):o!==As},f.interpolate=function(p){return arguments.length?(n=p,d()):n},f.unknown=function(p){return arguments.length?(s=p,f):s},function(p,h){return r=p,i=h,d()}}function X3(){return Tj()(As,As)}function U3e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Bw(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Eg(e){return e=Bw(Math.abs(e)),e?e[1]:NaN}function G3e(e,t){return function(n,r){for(var i=n.length,s=[],o=0,l=e[0],c=0;i>0&&l>0&&(c+l+1>r&&(l=Math.max(1,r-c)),s.push(n.substring(i-=l,i+l)),!((c+=l+1)>r));)l=e[o=(o+1)%e.length];return s.reverse().join(t)}}function V3e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var W3e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ex(e){if(!(t=W3e.exec(e)))throw new Error("invalid format: "+e);var t;return new Q3({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ex.prototype=Q3.prototype;function Q3(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Q3.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function H3e(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var qw;function K3e(e,t){var n=Bw(e,t);if(!n)return qw=void 0,e.toPrecision(t);var r=n[0],i=n[1],s=i-(qw=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return s===o?r:s>o?r+new Array(s-o+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+Bw(e,Math.max(0,t+s-1))[0]}function oq(e,t){var n=Bw(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const lq={"%":(e,t)=>
vendor: 5,713 bytes, line 1202
1202(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:U3e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>oq(e*100,t),r:oq,s:K3e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function cq(e){return e}var uq=Array.prototype.map,dq=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Y3e(e){var t=e.grouping===void 0||e.thousands===void 0?cq:G3e(uq.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?cq:V3e(uq.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"â":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(f,p){f=Ex(f);var h=f.fill,x=f.align,v=f.sign,g=f.symbol,y=f.zero,w=f.width,j=f.comma,_=f.precision,N=f.trim,A=f.type;A==="n"?(j=!0,A="g"):lq[A]||(_===void 0&&(_=12),N=!0,A="g"),(y||h==="0"&&x==="=")&&(y=!0,h="0",x="=");var E=(p&&p.prefix!==void 0?p.prefix:"")+(g==="$"?n:g==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():""),k=(g==="$"?r:/[%p]/.test(A)?o:"")+(p&&p.suffix!==void 0?p.suffix:""),T=lq[A],D=/[defgprs%]/.test(A);_=_===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function P(R){var q=E,M=k,V,H,Z;if(A==="c")M=T(R)+M,R="";else{R=+R;var J=R<0||1/R<0;if(R=isNaN(R)?c:T(Math.abs(R),_),N&&(R=H3e(R)),J&&+R==0&&v!=="+"&&(J=!1),q=(J?v==="("?v:l:v==="-"||v==="("?"":v)+q,M=(A==="s"&&!isNaN(R)&&qw!==void 0?dq[8+qw/3]:"")+M+(J&&v==="("?")":""),D){for(V=-1,H=R.length;++V<H;)if(Z=R.charCodeAt(V),48>Z||Z>57){M=(Z===46?i+R.slice(V+1):R.slice(V))+M,R=R.slice(0,V);break}}}j&&!y&&(R=t(R,1/0));var K=q.length+R.length+M.length,F=K<w?new Array(w-K+1).join(h):"";switch(j&&y&&(R=t(F+R,F.length?w-M.length:1/0),F=""),x){case"<":R=q+R+M+F;break;case"=":R=q+F+R+M;break;case"^":R=F.slice(0,K=F.length>>1)+q+R+M+F.slice(K);break;default:R=F+q+R+M;break}return s(R)}return P.toString=function(){return f+""},P}function d(f,p){var h=Math.max(-8,Math.min(8,Math.floor(Eg(p)/3)))*3,x=Math.pow(10,-h),v=u((f=Ex(f),f.type="f",f),{suffix:dq[8+h/3]});return function(g){return v(x*g)}}return{format:u,formatPrefix:d}}var a1,Z3,cZ;X3e({thousands:",",grouping:[3],currency:["$",""]});function X3e(e){return a1=Y3e(e),Z3=a1.format,cZ=a1.formatPrefix,a1}function Q3e(e){return Math.max(0,-Eg(Math.abs(e)))}function Z3e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Eg(t)/3)))*3-Eg(Math.abs(e)))}function J3e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Eg(t)-Eg(e))+1}function uZ(e,t,n,r){var i=wE(e,t,n),s;switch(r=Ex(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=Z3e(i,o))&&(r.precision=s),cZ(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=J3e(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=Q3e(i))&&(r.precision=s-(r.type==="%")*2);break}}return Z3(r)}function Yf(e){var t=e.domain;return e.ticks=function(n){var r=t();return xE(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return uZ(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,s=r.length-1,o=r[i],l=r[s],c,u,d=10;for(l<o&&(u=o,o=l,l=u,u=i,i=s,s=u);d-- >0;){if(u=bE(o,l,n),u===c)return r[i]=o,r[s]=l,t(r);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;c=u}return e},e}function zw(){var e=X3();return e.copy=function(){return M0(e,zw())},bl.apply(e,arguments),Yf(e)}function dZ(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Fw),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return dZ(e).unknown(t)},e=arguments.length?Array.from(e,Fw):[0,1],Yf(n)}function fZ(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],s=e[r],o;return s<i&&(o=n,n=r,r=o,o=i,i=s,s=o),e[n]=t.floor(i),e[r]=t.ceil(s),e}function fq(e){return Math.log(e)}function hq(e){return Math.exp(e)}function eOe(e){return-Math.log(-e)}function tOe(e){return-Math.exp(-e)}function nOe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function rOe(e){return e===10?nOe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function iOe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function pq(e){return(t,n)=>-e(-t,n)}function J3(e){const t=e(fq,hq),n=t.domain;let r=10,i,s;function o(){return i=iOe(r),s=rOe(r),n()[0]<0?(i=pq(i),s=pq(s),e(eOe,tOe)):e(fq,hq),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const c=n();let u=c[0],d=c[c.length-1];const f=d<u;f&&([u,d]=[d,u]);let p=i(u),h=i(d),x,v;const g=l==null?10:+l;let y=[];if(!(r%1)&&h-p<g){if(p=Math.floor(p),h=Math.ceil(h),u>0){for(;p<=h;++p)for(x=1;x<r;++x)if(v=p<0?x/s(-p):x*s(p),!(v<u)){if(v>d)break;y.push(v)}}else for(;p<=h;++p)for(x=r-1;x>=1;--x)if(v=p>0?x/s(-p):x*s(p),!(v<u)){if(v>d)break;y.push(v)}y.length*2<g&&(y=xE(u,d,g))}else y=xE(p,h,Math.min(h-p,g)).map(s);return f?y.reverse():y},t.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=Ex(c)).precision==null&&(c.trim=!0),c=Z3(c)),l===1/0)return c;const u=Math.max(1,r*l/t.ticks().length);return d=>{let f=d/s(Math.round(i(d)));return f*r<r-.5&&(f*=r),f<=u?c(d):""}},t.nice=()=>n(fZ(n(),{floor:l=>s(Math.floor(i(l))),ceil:l=>s(Math.ceil(i(l)))})),t}function hZ(){const e=J3(Tj()).domain([1,10]);return e.copy=()=>M0(e,hZ()).base(e.base()),bl.apply(e,arguments),e}
1202function mq(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function gq(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function eO(e){var t=1,n=e(mq(t),gq(t));return n.constant=function(r){return arguments.length?e(mq(t=+r),gq(t)):t},Yf(n)}function pZ(){var e=eO(Tj());return e.copy=function(){return M0(e,pZ()).constant(e.constant())},bl.apply(e,arguments)}function vq(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function aOe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function sOe(e){return e<0?-e*e:e*e}function tO(e){var t=e(As,As),n=1;function r(){return n===1?e(As,As):n===.5?e(aOe,sOe):e(vq(n),vq(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Yf(t)}function nO(){var e=tO(Tj());return e.copy=function(){return M0(e,nO()).exponent(e.exponent())},bl.apply(e,arguments),e}function oOe(){return nO.apply(null,arguments).exponent(.5)}function yq(e){return Math.sign(e)*e*e}function lOe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function mZ(){var e=X3(),t=[0,1],n=!1,r;function i(s){var o=lOe(e(s));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(s){return e.invert(yq(s))},i.domain=function(s){return arguments.length?(e.domain(s),i):e.domain()},i.range=function(s){return arguments.length?(e.range((t=Array.from(s,Fw)).map(yq)),i):t.slice()},i.rangeRound=function(s){return i.range(s).round(!0)},i.round=function(s){return arguments.length?(n=!!s,i):n},i.clamp=function(s){return arguments.length?(e.clamp(s),i):e.clamp()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return mZ(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},bl.apply(i,arguments),Yf(i)}function gZ(){var e=[],t=[],n=[],r;function i(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=h3e(e,o/l);return s}function s(o){return o==null||isNaN(o=+o)?r:t[I0(n,o)]}return s.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},s.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Tf),i()},s.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},s.unknown=function(o){return arguments.length?(r=o,s):r},s.quantiles=function(){return n.slice()},s.copy=function(){return gZ().domain(e).range(t).unknown(r)},bl.apply(s,arguments)}function vZ(){var e=0,t=1,n=1,r=[.5],i=[0,1],s;function o(c){return c!=null&&c<=c?i[I0(r,c,0,n)]:s}function l(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,l()):[e,t]},o.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,l()):i.slice()},o.invertExtent=function(c){var u=i.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(c){return arguments.length&&(s=c),o},o.thresholds=function(){return r.slice()},o.copy=function(){return vZ().domain([e,t]).range(i).unknown(s)},bl.apply(Yf(o),arguments)}function yZ(){var e=[.5],t=[0,1],n,r=1;function i(s){return s!=null&&s<=s?t[I0(e,s,0,r)]:n}return i.domain=function(s){return arguments.length?(e=Array.from(s),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(s){var o=t.indexOf(s);return[e[o-1],e[o]]},i.unknown=function(s){return arguments.length?(n=s,i):n},i.copy=function(){return yZ().domain(e).range(t).unknown(n)},bl.apply(i,arguments)}const _k=new Date,Nk=new Date;function oa(e,t,n,r){function i(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(e(s=new Date(+s)),s),i.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),i.round=s=>{const o=i(s),l=i.ceil(s);return s-o<l-s?o:l},i.offset=(s,o)=>(t(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,l)=>{const c=[];if(s=i.ceil(s),l=l==null?1:Math.floor(l),!(s<o)||!(l>0))return c;let u;do c.push(u=new Date(+s)),t(s,l),e(s);while(u<s&&s<o);return c},i.filter=s=>oa(o=>{if(o>=o)for(;e(o),!s(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!s(o););else for(;--l>=0;)for(;t(o,1),!s(o););}),n&&(i.count=(s,o)=>(_k.setTime(+s),Nk.setTime(+o),e(_k),e(Nk),Math.floor(n(_k,Nk))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?o=>r(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const $w=oa(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);$w.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?oa(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):$w);$w.range;const Ku=1e3,fl=Ku*60,Yu=fl*60,dd=Yu*24,rO=dd*7,xq=dd*30,Sk=dd*365,Gh=oa(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ku)},(e,t)=>(t-e)/Ku,e=>e.getUTCSeconds());Gh.range;const iO=oa(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ku)},(e,t)=>{e.setTime(+e+t*fl)},(e,t)=>(t-e)/fl,e=>e.getMinutes());iO.range;const aO=oa(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*fl)},(e,t)=>(t-e)/fl,e=>e.getUTCMinutes());aO.range;const sO=oa(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ku-e.getMinutes()*fl)},(e,t)=>{e.setTime(+e+t*Yu)},(e,t)=>(t-e)/Yu,e=>e.getHours());sO.range;const oO=oa(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Yu)},(e,t)=>(t-e)/Yu,e=>e.getUTCHours());oO.range;const D0=oa(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fl)/dd,e=>e.getDate()-1);D0.range;const Oj=oa(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dd,e=>e.getUTCDate()-1);Oj.range;const xZ=oa(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dd,e=>Math.floor(e/dd));xZ.range;function Fp(e){return oa(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*fl)/rO)}const Rj=Fp(0),Uw=Fp(1),cOe=Fp(2),uOe=Fp(3),Tg=Fp(4),dOe=Fp(5),fOe=Fp(6);Rj.range;Uw.range;cOe.range;uOe.range;Tg.range;dOe.range;fOe.range;function Bp(e){return oa(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/rO)}const Ij=Bp(0),Gw=Bp(1),hOe=Bp(2),pOe=Bp(3),Og=Bp(4),mOe=Bp(5),gOe=Bp(6);Ij.range;Gw.range;hOe.range;pOe.range;Og.range;mOe.range;gOe.range;const lO=oa(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());lO.range;
vendor: 6,570 bytes, line 1202
1202const cO=oa(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());cO.range;const fd=oa(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());fd.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:oa(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});fd.range;const hd=oa(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());hd.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:oa(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});hd.range;function bZ(e,t,n,r,i,s){const o=[[Gh,1,Ku],[Gh,5,5*Ku],[Gh,15,15*Ku],[Gh,30,30*Ku],[s,1,fl],[s,5,5*fl],[s,15,15*fl],[s,30,30*fl],[i,1,Yu],[i,3,3*Yu],[i,6,6*Yu],[i,12,12*Yu],[r,1,dd],[r,2,2*dd],[n,1,rO],[t,1,xq],[t,3,3*xq],[e,1,Sk]];function l(u,d,f){const p=d<u;p&&([u,d]=[d,u]);const h=f&&typeof f.range=="function"?f:c(u,d,f),x=h?h.range(u,+d+1):[];return p?x.reverse():x}function c(u,d,f){const p=Math.abs(d-u)/f,h=V3(([,,g])=>g).right(o,p);if(h===o.length)return e.every(wE(u/Sk,d/Sk,f));if(h===0)return $w.every(Math.max(wE(u,d,f),1));const[x,v]=o[p/o[h-1][2]<o[h][2]/p?h-1:h];return x.every(v)}return[l,c]}const[vOe,yOe]=bZ(hd,cO,Ij,xZ,oO,aO),[xOe,bOe]=bZ(fd,lO,Rj,D0,sO,iO);function Ak(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function kk(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function my(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function wOe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,s=e.days,o=e.shortDays,l=e.months,c=e.shortMonths,u=gy(i),d=vy(i),f=gy(s),p=vy(s),h=gy(o),x=vy(o),v=gy(l),g=vy(l),y=gy(c),w=vy(c),j={a:Z,A:J,b:K,B:F,c:null,d:Sq,e:Sq,f:GOe,g:eRe,G:nRe,H:zOe,I:$Oe,j:UOe,L:wZ,m:VOe,M:WOe,p:$,q:B,Q:Pq,s:Cq,S:HOe,u:KOe,U:YOe,V:XOe,w:QOe,W:ZOe,x:null,X:null,y:JOe,Y:tRe,Z:rRe,"%":kq},_={a:z,A:ee,b:te,B:X,c:null,d:Aq,e:Aq,f:oRe,g:vRe,G:xRe,H:iRe,I:aRe,j:sRe,L:_Z,m:lRe,M:cRe,p:ne,q:le,Q:Pq,s:Cq,S:uRe,u:dRe,U:fRe,V:hRe,w:pRe,W:mRe,x:null,X:null,y:gRe,Y:yRe,Z:bRe,"%":kq},N={a:D,A:P,b:R,B:q,c:M,d:_q,e:_q,f:DOe,g:jq,G:wq,H:Nq,I:Nq,j:ROe,L:MOe,m:OOe,M:IOe,p:T,q:TOe,Q:BOe,s:qOe,S:LOe,u:AOe,U:kOe,V:POe,w:SOe,W:COe,x:V,X:H,y:jq,Y:wq,Z:EOe,"%":FOe};j.x=A(n,j),j.X=A(r,j),j.c=A(t,j),_.x=A(n,_),_.X=A(r,_),_.c=A(t,_);function A(re,he){return function(be){var ve=[],ze=-1,He=0,ue=re.length,Ue,ut,Ee;for(be instanceof Date||(be=new Date(+be));++ze<ue;)re.charCodeAt(ze)===37&&(ve.push(re.slice(He,ze)),(ut=bq[Ue=re.charAt(++ze)])!=null?Ue=re.charAt(++ze):ut=Ue==="e"?" ":"0",(Ee=he[Ue])&&(Ue=Ee(be,ut)),ve.push(Ue),He=ze+1);return ve.push(re.slice(He,ze)),ve.join("")}}function E(re,he){return function(be){var ve=my(1900,void 0,1),ze=k(ve,re,be+="",0),He,ue;if(ze!=be.length)return null;if("Q"in ve)return new Date(ve.Q);if("s"in ve)return new Date(ve.s*1e3+("L"in ve?ve.L:0));if(he&&!("Z"in ve)&&(ve.Z=0),"p"in ve&&(ve.H=ve.H%12+ve.p*12),ve.m===void 0&&(ve.m="q"in ve?ve.q:0),"V"in ve){if(ve.V<1||ve.V>53)return null;"w"in ve||(ve.w=1),"Z"in ve?(He=kk(my(ve.y,0,1)),ue=He.getUTCDay(),He=ue>4||ue===0?Gw.ceil(He):Gw(He),He=Oj.offset(He,(ve.V-1)*7),ve.y=He.getUTCFullYear(),ve.m=He.getUTCMonth(),ve.d=He.getUTCDate()+(ve.w+6)%7):(He=Ak(my(ve.y,0,1)),ue=He.getDay(),He=ue>4||ue===0?Uw.ceil(He):Uw(He),He=D0.offset(He,(ve.V-1)*7),ve.y=He.getFullYear(),ve.m=He.getMonth(),ve.d=He.getDate()+(ve.w+6)%7)}else("W"in ve||"U"in ve)&&("w"in ve||(ve.w="u"in ve?ve.u%7:"W"in ve?1:0),ue="Z"in ve?kk(my(ve.y,0,1)).getUTCDay():Ak(my(ve.y,0,1)).getDay(),ve.m=0,ve.d="W"in ve?(ve.w+6)%7+ve.W*7-(ue+5)%7:ve.w+ve.U*7-(ue+6)%7);return"Z"in ve?(ve.H+=ve.Z/100|0,ve.M+=ve.Z%100,kk(ve)):Ak(ve)}}function k(re,he,be,ve){for(var ze=0,He=he.length,ue=be.length,Ue,ut;ze<He;){if(ve>=ue)return-1;if(Ue=he.charCodeAt(ze++),Ue===37){if(Ue=he.charAt(ze++),ut=N[Ue in bq?he.charAt(ze++):Ue],!ut||(ve=ut(re,be,ve))<0)return-1}else if(Ue!=be.charCodeAt(ve++))return-1}return ve}function T(re,he,be){var ve=u.exec(he.slice(be));return ve?(re.p=d.get(ve[0].toLowerCase()),be+ve[0].length):-1}function D(re,he,be){var ve=h.exec(he.slice(be));return ve?(re.w=x.get(ve[0].toLowerCase()),be+ve[0].length):-1}function P(re,he,be){var ve=f.exec(he.slice(be));return ve?(re.w=p.get(ve[0].toLowerCase()),be+ve[0].length):-1}function R(re,he,be){var ve=y.exec(he.slice(be));return ve?(re.m=w.get(ve[0].toLowerCase()),be+ve[0].length):-1}function q(re,he,be){var ve=v.exec(he.slice(be));return ve?(re.m=g.get(ve[0].toLowerCase()),be+ve[0].length):-1}function M(re,he,be){return k(re,t,he,be)}function V(re,he,be){return k(re,n,he,be)}function H(re,he,be){return k(re,r,he,be)}function Z(re){return o[re.getDay()]}function J(re){return s[re.getDay()]}function K(re){return c[re.getMonth()]}function F(re){return l[re.getMonth()]}function $(re){return i[+(re.getHours()>=12)]}function B(re){return 1+~~(re.getMonth()/3)}function z(re){return o[re.getUTCDay()]}function ee(re){return s[re.getUTCDay()]}function te(re){return c[re.getUTCMonth()]}function X(re){return l[re.getUTCMonth()]}function ne(re){return i[+(re.getUTCHours()>=12)]}function le(re){return 1+~~(re.getUTCMonth()/3)}return{format:function(re){var he=A(re+="",j);return he.toString=function(){return re},he},parse:function(re){var he=E(re+="",!1);return he.toString=function(){return re},he},utcFormat:function(re){var he=A(re+="",_);return he.toString=function(){return re},he},utcParse:function(re){var he=E(re+="",!0);return he.toString=function(){return re},he}}}var bq={"-":"",_:" ",0:"0"},_a=/^\s*\d+/,jOe=/^%/,_Oe=/[\\^$*+?|[\]().{}]/g;function ir(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(t)+i:i)}function NOe(e){return e.replace(_Oe,"\\$&")}function gy(e){return new RegExp("^(?:"+e.map(NOe).join("|")+")","i")}function vy(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function SOe(e,t,n){var r=_a.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function AOe(e,t,n){var r=_a.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function kOe(e,t,n){var r=_a.exec(t.slice(n,n+2));
vendor: 4,106 bytes, line 1202
1202return r?(e.U=+r[0],n+r[0].length):-1}function POe(e,t,n){var r=_a.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function COe(e,t,n){var r=_a.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function wq(e,t,n){var r=_a.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function jq(e,t,n){var r=_a.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function EOe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function TOe(e,t,n){var r=_a.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function OOe(e,t,n){var r=_a.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function _q(e,t,n){var r=_a.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ROe(e,t,n){var r=_a.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Nq(e,t,n){var r=_a.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function IOe(e,t,n){var r=_a.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function LOe(e,t,n){var r=_a.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function MOe(e,t,n){var r=_a.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function DOe(e,t,n){var r=_a.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function FOe(e,t,n){var r=jOe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function BOe(e,t,n){var r=_a.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function qOe(e,t,n){var r=_a.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Sq(e,t){return ir(e.getDate(),t,2)}function zOe(e,t){return ir(e.getHours(),t,2)}function $Oe(e,t){return ir(e.getHours()%12||12,t,2)}function UOe(e,t){return ir(1+D0.count(fd(e),e),t,3)}function wZ(e,t){return ir(e.getMilliseconds(),t,3)}function GOe(e,t){return wZ(e,t)+"000"}function VOe(e,t){return ir(e.getMonth()+1,t,2)}function WOe(e,t){return ir(e.getMinutes(),t,2)}function HOe(e,t){return ir(e.getSeconds(),t,2)}function KOe(e){var t=e.getDay();return t===0?7:t}function YOe(e,t){return ir(Rj.count(fd(e)-1,e),t,2)}function jZ(e){var t=e.getDay();return t>=4||t===0?Tg(e):Tg.ceil(e)}function XOe(e,t){return e=jZ(e),ir(Tg.count(fd(e),e)+(fd(e).getDay()===4),t,2)}function QOe(e){return e.getDay()}function ZOe(e,t){return ir(Uw.count(fd(e)-1,e),t,2)}function JOe(e,t){return ir(e.getFullYear()%100,t,2)}function eRe(e,t){return e=jZ(e),ir(e.getFullYear()%100,t,2)}function tRe(e,t){return ir(e.getFullYear()%1e4,t,4)}function nRe(e,t){var n=e.getDay();return e=n>=4||n===0?Tg(e):Tg.ceil(e),ir(e.getFullYear()%1e4,t,4)}function rRe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ir(t/60|0,"0",2)+ir(t%60,"0",2)}function Aq(e,t){return ir(e.getUTCDate(),t,2)}function iRe(e,t){return ir(e.getUTCHours(),t,2)}function aRe(e,t){return ir(e.getUTCHours()%12||12,t,2)}function sRe(e,t){return ir(1+Oj.count(hd(e),e),t,3)}function _Z(e,t){return ir(e.getUTCMilliseconds(),t,3)}function oRe(e,t){return _Z(e,t)+"000"}function lRe(e,t){return ir(e.getUTCMonth()+1,t,2)}function cRe(e,t){return ir(e.getUTCMinutes(),t,2)}function uRe(e,t){return ir(e.getUTCSeconds(),t,2)}function dRe(e){var t=e.getUTCDay();return t===0?7:t}function fRe(e,t){return ir(Ij.count(hd(e)-1,e),t,2)}function NZ(e){var t=e.getUTCDay();return t>=4||t===0?Og(e):Og.ceil(e)}function hRe(e,t){return e=NZ(e),ir(Og.count(hd(e),e)+(hd(e).getUTCDay()===4),t,2)}function pRe(e){return e.getUTCDay()}function mRe(e,t){return ir(Gw.count(hd(e)-1,e),t,2)}function gRe(e,t){return ir(e.getUTCFullYear()%100,t,2)}function vRe(e,t){return e=NZ(e),ir(e.getUTCFullYear()%100,t,2)}function yRe(e,t){return ir(e.getUTCFullYear()%1e4,t,4)}function xRe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Og(e):Og.ceil(e),ir(e.getUTCFullYear()%1e4,t,4)}function bRe(){return"+0000"}function kq(){return"%"}function Pq(e){return+e}function Cq(e){return Math.floor(+e/1e3)}var Em,SZ,AZ;wRe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1202ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function wRe(e){return Em=wOe(e),SZ=Em.format,Em.parse,AZ=Em.utcFormat,Em.utcParse,Em}function jRe(e){return new Date(e)}function _Re(e){return e instanceof Date?+e:+new Date(+e)}function uO(e,t,n,r,i,s,o,l,c,u){var d=X3(),f=d.invert,p=d.domain,h=u(".%L"),x=u(":%S"),v=u("%I:%M"),g=u("%I %p"),y=u("%a %d"),w=u("%b %d"),j=u("%B"),_=u("%Y");function N(A){return(c(A)<A?h:l(A)<A?x:o(A)<A?v:s(A)<A?g:r(A)<A?i(A)<A?y:w:n(A)<A?j:_)(A)}return d.invert=function(A){return new Date(f(A))},d.domain=function(A){return arguments.length?p(Array.from(A,_Re)):p().map(jRe)},d.ticks=function(A){var E=p();return e(E[0],E[E.length-1],A??10)},d.tickFormat=function(A,E){return E==null?N:u(E)},d.nice=function(A){var E=p();return(!A||typeof A.range!="function")&&(A=t(E[0],E[E.length-1],A??10)),A?p(fZ(E,A)):d},d.copy=function(){return M0(d,uO(e,t,n,r,i,s,o,l,c,u))},d}function NRe(){return bl.apply(uO(xOe,bOe,fd,lO,Rj,D0,sO,iO,Gh,SZ).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function SRe(){return bl.apply(uO(vOe,yOe,hd,cO,Ij,Oj,oO,aO,Gh,AZ).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Lj(){var e=0,t=1,n,r,i,s,o=As,l=!1,c;function u(f){return f==null||isNaN(f=+f)?c:o(i===0?.5:(f=(s(f)-n)*i,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,n=s(e=+e),r=s(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function d(f){return function(p){var h,x;return arguments.length?([h,x]=p,o=f(h,x),u):[o(0),o(1)]}}return u.range=d(gv),u.rangeRound=d(Y3),u.unknown=function(f){return arguments.length?(c=f,u):c},function(f){return s=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),u}}function Xf(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function kZ(){var e=Yf(Lj()(As));return e.copy=function(){return Xf(e,kZ())},wd.apply(e,arguments)}function PZ(){var e=J3(Lj()).domain([1,10]);return e.copy=function(){return Xf(e,PZ()).base(e.base())},wd.apply(e,arguments)}function CZ(){var e=eO(Lj());return e.copy=function(){return Xf(e,CZ()).constant(e.constant())},wd.apply(e,arguments)}function dO(){var e=tO(Lj());return e.copy=function(){return Xf(e,dO()).exponent(e.exponent())},wd.apply(e,arguments)}function ARe(){return dO.apply(null,arguments).exponent(.5)}function EZ(){var e=[],t=As;function n(r){if(r!=null&&!isNaN(r=+r))return t((I0(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Tf),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,s)=>f3e(e,s/r))},n.copy=function(){return EZ(t).domain(e)},wd.apply(n,arguments)}function Mj(){var e=0,t=.5,n=1,r=1,i,s,o,l,c,u=As,d,f=!1,p;function h(v){return isNaN(v=+v)?p:(v=.5+((v=+d(v))-s)*(r*v<r*s?l:c),u(f?Math.max(0,Math.min(1,v)):v))}h.domain=function(v){return arguments.length?([e,t,n]=v,i=d(e=+e),s=d(t=+t),o=d(n=+n),l=i===s?0:.5/(s-i),c=s===o?0:.5/(o-s),r=s<i?-1:1,h):[e,t,n]},h.clamp=function(v){return arguments.length?(f=!!v,h):f},h.interpolator=function(v){return arguments.length?(u=v,h):u};function x(v){return function(g){var y,w,j;return arguments.length?([y,w,j]=g,u=F3e(v,[y,w,j]),h):[u(0),u(.5),u(1)]}}return h.range=x(gv),h.rangeRound=x(Y3),h.unknown=function(v){return arguments.length?(p=v,h):p},function(v){return d=v,i=v(e),s=v(t),o=v(n),l=i===s?0:.5/(s-i),c=s===o?0:.5/(o-s),r=s<i?-1:1,h}}function TZ(){var e=Yf(Mj()(As));return e.copy=function(){return Xf(e,TZ())},wd.apply(e,arguments)}function OZ(){var e=J3(Mj()).domain([.1,1,10]);return e.copy=function(){return Xf(e,OZ()).base(e.base())},wd.apply(e,arguments)}function RZ(){var e=eO(Mj());return e.copy=function(){return Xf(e,RZ()).constant(e.constant())},wd.apply(e,arguments)}function fO(){var e=tO(Mj());return e.copy=function(){return Xf(e,fO()).exponent(e.exponent())},wd.apply(e,arguments)}function kRe(){return fO.apply(null,arguments).exponent(.5)}const Eq=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ax,scaleDiverging:TZ,scaleDivergingLog:OZ,scaleDivergingPow:fO,scaleDivergingSqrt:kRe,scaleDivergingSymlog:RZ,scaleIdentity:dZ,scaleImplicit:jE,scaleLinear:zw,scaleLog:hZ,scaleOrdinal:W3,scalePoint:Xy,scalePow:nO,scaleQuantile:gZ,scaleQuantize:vZ,scaleRadial:mZ,scaleSequential:kZ,scaleSequentialLog:PZ,scaleSequentialPow:dO,scaleSequentialQuantile:EZ,scaleSequentialSqrt:ARe,scaleSequentialSymlog:CZ,scaleSqrt:oOe,scaleSymlog:pZ,scaleThreshold:yZ,scaleTime:NRe,scaleUtc:SRe,tickFormat:uZ},Symbol.toStringTag,{value:"Module"}));var Pk,Tq;function Dj(){if(Tq)return Pk;Tq=1;var e=fv();function t(n,r,i){for(var s=-1,o=n.length;++s<o;){var l=n[s],c=r(l);
vendor: 69,764 bytes, lines 1202-1229
1202if(c!=null&&(u===void 0?c===c&&!e(c):i(c,u)))var u=c,d=l}return d}return Pk=t,Pk}var Ck,Oq;function IZ(){if(Oq)return Ck;Oq=1;function e(t,n){return t>n}return Ck=e,Ck}var Ek,Rq;function PRe(){if(Rq)return Ek;Rq=1;var e=Dj(),t=IZ(),n=pv();function r(i){return i&&i.length?e(i,n,t):void 0}return Ek=r,Ek}var CRe=PRe();const Fj=Zn(CRe);var Tk,Iq;function LZ(){if(Iq)return Tk;Iq=1;function e(t,n){return t<n}return Tk=e,Tk}var Ok,Lq;function ERe(){if(Lq)return Ok;Lq=1;var e=Dj(),t=LZ(),n=pv();function r(i){return i&&i.length?e(i,n,t):void 0}return Ok=r,Ok}var TRe=ERe();const Bj=Zn(TRe);var Rk,Mq;function ORe(){if(Mq)return Rk;Mq=1;var e=P3(),t=tu(),n=GQ(),r=ro();function i(s,o){var l=r(s)?e:n;return l(s,t(o,3))}return Rk=i,Rk}var Ik,Dq;function RRe(){if(Dq)return Ik;Dq=1;var e=$Q(),t=ORe();function n(r,i){return e(t(r,i),1)}return Ik=n,Ik}var IRe=RRe();const LRe=Zn(IRe);var Lk,Fq;function MZ(){if(Fq)return Lk;Fq=1;var e=z3();function t(n,r){return e(n,r)}return Lk=t,Lk}var MRe=MZ();const qj=Zn(MRe);var vv=1e9,DRe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},pO,ii=!0,yl="[DecimalError] ",ap=yl+"Invalid argument: ",hO=yl+"Exponent out of range: ",yv=Math.floor,Lh=Math.pow,FRe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Po,xa=1e7,Kr=7,DZ=9007199254740991,Vw=yv(DZ/Kr),Ft={};Ft.absoluteValue=Ft.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ft.comparedTo=Ft.cmp=function(e){var t,n,r,i,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===i?0:r>i^s.s<0?1:-1};Ft.decimalPlaces=Ft.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Kr;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Ft.dividedBy=Ft.div=function(e){return rd(this,new this.constructor(e))};Ft.dividedToIntegerBy=Ft.idiv=function(e){var t=this,n=t.constructor;return Ir(rd(t,new n(e),0,1),n.precision)};Ft.equals=Ft.eq=function(e){return!this.cmp(e)};Ft.exponent=function(){return Ki(this)};Ft.greaterThan=Ft.gt=function(e){return this.cmp(e)>0};Ft.greaterThanOrEqualTo=Ft.gte=function(e){return this.cmp(e)>=0};Ft.isInteger=Ft.isint=function(){return this.e>this.d.length-2};Ft.isNegative=Ft.isneg=function(){return this.s<0};Ft.isPositive=Ft.ispos=function(){return this.s>0};Ft.isZero=function(){return this.s===0};Ft.lessThan=Ft.lt=function(e){return this.cmp(e)<0};Ft.lessThanOrEqualTo=Ft.lte=function(e){return this.cmp(e)<1};Ft.logarithm=Ft.log=function(e){var t,n=this,r=n.constructor,i=r.precision,s=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Po))throw Error(yl+"NaN");if(n.s<1)throw Error(yl+(n.s?"NaN":"-Infinity"));return n.eq(Po)?new r(0):(ii=!1,t=rd(Tx(n,s),Tx(e,s),s),ii=!0,Ir(t,i))};Ft.minus=Ft.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?qZ(t,e):FZ(t,(e.s=-e.s,e))};Ft.modulo=Ft.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(yl+"NaN");return n.s?(ii=!1,t=rd(n,e,0,1).times(e),ii=!0,n.minus(t)):Ir(new r(n),i)};Ft.naturalExponential=Ft.exp=function(){return BZ(this)};Ft.naturalLogarithm=Ft.ln=function(){return Tx(this)};Ft.negated=Ft.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ft.plus=Ft.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?FZ(t,e):qZ(t,(e.s=-e.s,e))};Ft.precision=Ft.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ap+e);if(t=Ki(i)+1,r=i.d.length-1,n=r*Kr+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Ft.squareRoot=Ft.sqrt=function(){var e,t,n,r,i,s,o,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(yl+"NaN")}for(e=Ki(l),ii=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Fc(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=yv((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new c(t)):r=new c(i.toString()),n=c.precision,i=o=n+3;;)if(s=r,r=s.plus(rd(l,s,o+2)).times(.5),Fc(s.d).slice(0,o)===(t=Fc(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Ir(s,n+1,0),s.times(s).eq(l)){r=s;break}}else if(t!="9999")break;o+=4}return ii=!0,Ir(r,n)};Ft.times=Ft.mul=function(e){var t,n,r,i,s,o,l,c,u,d=this,f=d.constructor,p=d.d,h=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,n=d.e+e.e,c=p.length,u=h.length,c<u&&(s=p,p=h,h=s,o=c,c=u,u=o),s=[],o=c+u,r=o;r--;)s.push(0);for(r=u;--r>=0;){for(t=0,i=c+r;i>r;)l=s[i]+h[r]*p[i-r-1]+t,s[i--]=l%xa|0,t=l/xa|0;s[i]=(s[i]+t)%xa|0}for(;!s[--o];)s.pop();return t?++n:s.shift(),e.d=s,e.e=n,ii?Ir(e,f.precision):e};Ft.toDecimalPlaces=Ft.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Qc(e,0,vv),t===void 0?t=r.rounding:Qc(t,0,8),Ir(n,e+Ki(n)+1,t))};Ft.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=wp(r,!0):(Qc(e,0,vv),t===void 0?t=i.rounding:Qc(t,0,8),r=Ir(new i(r),e+1,t),n=wp(r,!0,e+1)),n};Ft.toFixed=function(e,t){var n,r,i=this,s=i.constructor;return e===void 0?wp(i):(Qc(e,0,vv),t===void 0?t=s.rounding:Qc(t,0,8),r=Ir(new s(i),e+Ki(i)+1,t),n=wp(r.abs(),!1,e+Ki(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Ft.toInteger=Ft.toint=function(){var e=this,t=e.constructor;return Ir(new t(e),Ki(e)+1,t.rounding)};Ft.toNumber=function(){return+this};Ft.toPower=Ft.pow=function(e){var t,n,r,i,s,o,l=this,c=l.constructor,u=12,d=+(e=new c(e));if(!e.s)return new c(Po);if(l=new c(l),!l.s){if(e.s<1)throw Error(yl+"Infinity");return l}if(l.eq(Po))return l;if(r=c.precision,e.eq(Po))return Ir(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,s=l.s,o){if((n=d<0?-d:d)<=DZ){for(i=new c(Po),t=Math.ceil(r/Kr+4),ii=!1;n%2&&(i=i.times(l),qq(i.d,t)),n=yv(n/2),n!==0;)l=l.times(l),qq(l.d,t);return ii=!0,e.s<0?new c(Po).div(i):Ir(i,r)}}else if(s<0)throw Error(yl+"NaN");return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,ii=!1,i=e.times(Tx(l,r+u)),ii=!0,i=BZ(i),i.s=s,i};Ft.toPrecision=function(e,t){var n,r,i=this,s=i.constructor;return e===void 0?(n=Ki(i),r=wp(i,n<=s.toExpNeg||n>=s.toExpPos)):(Qc(e,1,vv),t===void 0?t=s.rounding:Qc(t,0,8),i=Ir(new s(i),e,t),n=Ki(i),r=wp(i,e<=n||n<=s.toExpNeg,e)),r};Ft.toSignificantDigits=Ft.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Qc(e,1,vv),t===void 0?t=r.rounding:Qc(t,0,8)),Ir(new r(n),e,t)};Ft.toString=Ft.valueOf=Ft.val=Ft.toJSON=Ft[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ki(e),n=e.constructor;return wp(e,t<=n.toExpNeg||t>=n.toExpPos)};function FZ(e,t){var n,r,i,s,o,l,c,u,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),ii?Ir(t,f):t;if(c=e.d,u=t.d,o=e.e,i=t.e,c=c.slice(),s=o-i,s){for(s<0?(r=c,s=-s,l=u.length):(r=u,i=o,l=c.length),o=Math.ceil(f/Kr),l=o>l?o+1:l+1,s>l&&(s=l,r.length=1),r.reverse();s--;)r.push(0);r.reverse()}for(l=c.length,s=u.length,l-s<0&&(s=l,r=u,u=c,c=r),n=0;s;)n=(c[--s]=c[s]+u[s]+n)/xa|0,c[s]%=xa;for(n&&(c.unshift(n),++i),l=c.length;c[--l]==0;)c.pop();return t.d=c,t.e=i,ii?Ir(t,f):t}function Qc(e,t,n){if(e!==~~e||e<t||e>n)throw Error(ap+e)}function Fc(e){var t,n,r,i=e.length-1,s="",o=e[0];if(i>0){for(s+=o,t=1;t<i;t++)r=e[t]+"",n=Kr-r.length,n&&(s+=hf(n)),s+=r;o=e[t],r=o+"",n=Kr-r.length,n&&(s+=hf(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return s+o}var rd=(function(){function e(r,i){var s,o=0,l=r.length;for(r=r.slice();l--;)s=r[l]*i+o,r[l]=s%xa|0,o=s/xa|0;return o&&r.unshift(o),r}function t(r,i,s,o){var l,c;if(s!=o)c=s>o?1:-1;else for(l=c=0;l<s;l++)if(r[l]!=i[l]){c=r[l]>i[l]?1:-1;break}return c}function n(r,i,s){for(var o=0;s--;)r[s]-=o,o=r[s]<i[s]?1:0,r[s]=o*xa+r[s]-i[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,s,o){var l,c,u,d,f,p,h,x,v,g,y,w,j,_,N,A,E,k,T=r.constructor,D=r.s==i.s?1:-1,P=r.d,R=i.d;if(!r.s)return new T(r);if(!i.s)throw Error(yl+"Division by zero");for(c=r.e-i.e,E=R.length,N=P.length,h=new T(D),x=h.d=[],u=0;R[u]==(P[u]||0);)++u;if(R[u]>(P[u]||0)&&--c,s==null?w=s=T.precision:o?w=s+(Ki(r)-Ki(i))+1:w=s,w<0)return new T(0);if(w=w/Kr+2|0,u=0,E==1)for(d=0,R=R[0],w++;(u<N||d)&&w--;u++)j=d*xa+(P[u]||0),x[u]=j/R|0,d=j%R|0;else{for(d=xa/(R[0]+1)|0,d>1&&(R=e(R,d),P=e(P,d),E=R.length,N=P.length),_=E,v=P.slice(0,E),g=v.length;g<E;)v[g++]=0;k=R.slice(),k.unshift(0),A=R[0],R[1]>=xa/2&&++A;do d=0,l=t(R,v,E,g),l<0?(y=v[0],E!=g&&(y=y*xa+(v[1]||0)),d=y/A|0,d>1?(d>=xa&&(d=xa-1),f=e(R,d),p=f.length,g=v.length,l=t(f,v,p,g),l==1&&(d--,n(f,E<p?k:R,p))):(d==0&&(l=d=1),f=R.slice()),p=f.length,p<g&&f.unshift(0),n(v,f,g),l==-1&&(g=v.length,l=t(R,v,E,g),l<1&&(d++,n(v,E<g?k:R,g))),g=v.length):l===0&&(d++,v=[0]),x[u++]=d,l&&v[0]?v[g++]=P[_]||0:(v=[P[_]],g=1);while((_++<N||v[0]!==void 0)&&w--)}return x[0]||x.shift(),h.e=c,Ir(h,o?s+Ki(h)+1:s)}})();function BZ(e,t){var n,r,i,s,o,l,c=0,u=0,d=e.constructor,f=d.precision;if(Ki(e)>16)throw Error(hO+Ki(e));if(!e.s)return new d(Po);for(ii=!1,l=f,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(Lh(2,u))/Math.LN10*2+5|0,l+=r,n=i=s=new d(Po),d.precision=l;;){if(i=Ir(i.times(e),l),n=n.times(++c),o=s.plus(rd(i,n,l)),Fc(o.d).slice(0,l)===Fc(s.d).slice(0,l)){for(;u--;)s=Ir(s.times(s),l);return d.precision=f,t==null?(ii=!0,Ir(s,f)):s}s=o}}function Ki(e){for(var t=e.e*Kr,n=e.d[0];n>=10;n/=10)t++;return t}function Mk(e,t,n){if(t>e.LN10.sd())throw ii=!0,n&&(e.precision=n),Error(yl+"LN10 precision limit exceeded");return Ir(new e(e.LN10),t)}function hf(e){for(var t="";e--;)t+="0";return t}function Tx(e,t){var n,r,i,s,o,l,c,u,d,f=1,p=10,h=e,x=h.d,v=h.constructor,g=v.precision;if(h.s<1)throw Error(yl+(h.s?"NaN":"-Infinity"));if(h.eq(Po))return new v(0);if(t==null?(ii=!1,u=g):u=t,h.eq(10))return t==null&&(ii=!0),Mk(v,u);if(u+=p,v.precision=u,n=Fc(x),r=n.charAt(0),s=Ki(h),Math.abs(s)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=Fc(h.d),r=n.charAt(0),f++;s=Ki(h),r>1?(h=new v("0."+n),s++):h=new v(r+"."+n.slice(1))}else return c=Mk(v,u+2,g).times(s+""),h=Tx(new v(r+"."+n.slice(1)),u-p).plus(c),v.precision=g,t==null?(ii=!0,Ir(h,g)):h;for(l=o=h=rd(h.minus(Po),h.plus(Po),u),d=Ir(h.times(h),u),i=3;;){if(o=Ir(o.times(d),u),c=l.plus(rd(o,new v(i),u)),Fc(c.d).slice(0,u)===Fc(l.d).slice(0,u))return l=l.times(2),s!==0&&(l=l.plus(Mk(v,u+2,g).times(s+""))),l=rd(l,new v(f),u),v.precision=g,t==null?(ii=!0,Ir(l,g)):l;l=c,i+=2}}function Bq(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=yv(n/Kr),e.d=[],r=(n+1)%Kr,n<0&&(r+=Kr),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Kr;r<i;)e.d.push(+t.slice(r,r+=Kr));t=t.slice(r),r=Kr-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),ii&&(e.e>Vw||e.e<-Vw))throw Error(hO+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ir(e,t,n){var r,i,s,o,l,c,u,d,f=e.d;for(o=1,s=f[0];s>=10;s/=10)o++;if(r=t-o,r<0)r+=Kr,i=t,u=f[d=0];else{if(d=Math.ceil((r+1)/Kr),s=f.length,d>=s)return e;for(u=s=f[d],o=1;s>=10;s/=10)o++;r%=Kr,i=r-Kr+o}if(n!==void 0&&(s=Lh(10,o-i-1),l=u/s%10|0,c=t<0||f[d+1]!==void 0||u%s,c=n<4?(l||c)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||c||n==6&&(r>0?i>0?u/Lh(10,o-i):0:f[d-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(s=Ki(e),f.length=1,t=t-s-1,f[0]=Lh(10,(Kr-t%Kr)%Kr),e.e=yv(-t/Kr)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=d,s=1,d--):(f.length=d+1,s=Lh(10,Kr-r),f[d]=i>0?(u/Lh(10,o-i)%Lh(10,i)|0)*s:0),c)for(;;)if(d==0){(f[0]+=s)==xa&&(f[0]=1,++e.e);break}else{if(f[d]+=s,f[d]!=xa)break;f[d--]=0,s=1}for(r=f.length;f[--r]===0;)f.pop();if(ii&&(e.e>Vw||e.e<-Vw))throw Error(hO+Ki(e));return e}function qZ(e,t){var n,r,i,s,o,l,c,u,d,f,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),ii?Ir(t,h):t;if(c=e.d,f=t.d,r=t.e,u=e.e,c=c.slice(),o=u-r,o){for(d=o<0,d?(n=c,o=-o,l=f.length):(n=f,r=u,l=c.length),i=Math.max(Math.ceil(h/Kr),l)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=c.length,l=f.length,d=i<l,d&&(l=i),i=0;i<l;i++)if(c[i]!=f[i]){d=c[i]<f[i];break}o=0}for(d&&(n=c,c=f,f=n,t.s=-t.s),l=c.length,i=f.length-l;i>0;--i)c[l++]=0;for(i=f.length;i>o;){if(c[--i]<f[i]){for(s=i;s&&c[--s]===0;)c[s]=xa-1;--c[s],c[i]+=xa}c[i]-=f[i]}for(;c[--l]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,ii?Ir(t,h):t):new p(0)}function wp(e,t,n){var r,i=Ki(e),s=Fc(e.d),o=s.length;return t?(n&&(r=n-o)>0?s=s.charAt(0)+"."+s.slice(1)+hf(r):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(i<0?"e":"e+")+i):i<0?(s="0."+hf(-i-1)+s,n&&(r=n-o)>0&&(s+=hf(r))):i>=o?(s+=hf(i+1-o),n&&(r=n-i-1)>0&&(s=s+"."+hf(r))):((r=i+1)<o&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(s+="."),s+=hf(r))),e.s<0?"-"+s:s}function qq(e,t){if(e.length>t)return e.length=t,!0}function zZ(e){var t,n,r;function i(s){var o=this;if(!(o instanceof i))return new i(s);if(o.constructor=i,s instanceof i){o.s=s.s,o.e=s.e,o.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(ap+s);if(s>0)o.s=1;else if(s<0)s=-s,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(s===~~s&&s<1e7){o.e=0,o.d=[s];return}return Bq(o,s.toString())}else if(typeof s!="string")throw Error(ap+s);if(s.charCodeAt(0)===45?(s=s.slice(1),o.s=-1):o.s=1,FRe.test(s))Bq(o,s);else throw Error(ap+s)}if(i.prototype=Ft,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=zZ,i.config=i.set=BRe,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function BRe(e){if(!e||typeof e!="object")throw Error(yl+"Object expected");var t,n,r,i=["precision",1,vv,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(yv(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(ap+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ap+n+": "+r);return this}var pO=zZ(DRe);Po=new pO(1);const Cr=pO;function qRe(e){return GRe(e)||URe(e)||$Re(e)||zRe()}function zRe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1203In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $Re(e,t){if(e){if(typeof e=="string")return AE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AE(e,t)}}function URe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function GRe(e){if(Array.isArray(e))return AE(e)}function AE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var VRe=function(t){return t},$Z={},UZ=function(t){return t===$Z},zq=function(t){return function n(){return arguments.length===0||arguments.length===1&&UZ(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},WRe=function e(t,n){return t===1?n:zq(function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var o=i.filter(function(l){return l!==$Z}).length;return o>=t?n.apply(void 0,i):e(t-o,zq(function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=i.map(function(f){return UZ(f)?c.shift():f});return n.apply(void 0,qRe(d).concat(c))}))})},zj=function(t){return WRe(t.length,t)},kE=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},HRe=zj(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),KRe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return VRe;var i=n.reverse(),s=i[0],o=i.slice(1);return function(){return o.reduce(function(l,c){return c(l)},s.apply(void 0,arguments))}},PE=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},GZ=function(t){var n=null,r=null;return function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return n&&s.every(function(l,c){return l===n[c]})||(n=s,r=t.apply(void 0,s)),r}};function YRe(e){var t;return e===0?t=1:t=Math.floor(new Cr(e).abs().log(10).toNumber())+1,t}function XRe(e,t,n){for(var r=new Cr(e),i=0,s=[];r.lt(t)&&i<1e5;)s.push(r.toNumber()),r=r.add(n),i++;return s}var QRe=zj(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),ZRe=zj(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),JRe=zj(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const $j={rangeStep:XRe,getDigitCount:YRe,interpolateNumber:QRe,uninterpolateNumber:ZRe,uninterpolateTruncation:JRe};function CE(e){return nIe(e)||tIe(e)||VZ(e)||eIe()}function eIe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1204In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tIe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function nIe(e){if(Array.isArray(e))return EE(e)}function Ox(e,t){return aIe(e)||iIe(e,t)||VZ(e,t)||rIe()}function rIe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1205In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VZ(e,t){if(e){if(typeof e=="string")return EE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EE(e,t)}}function EE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iIe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,s=void 0;try{for(var o=e[Symbol.iterator](),l;!(r=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,s=c}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw s}}return n}}function aIe(e){if(Array.isArray(e))return e}function WZ(e){var t=Ox(e,2),n=t[0],r=t[1],i=n,s=r;return n>r&&(i=r,s=n),[i,s]}function HZ(e,t,n){if(e.lte(0))return new Cr(0);var r=$j.getDigitCount(e.toNumber()),i=new Cr(10).pow(r),s=e.div(i),o=r!==1?.05:.1,l=new Cr(Math.ceil(s.div(o).toNumber())).add(n).mul(o),c=l.mul(i);return t?c:new Cr(Math.ceil(c))}function sIe(e,t,n){var r=1,i=new Cr(e);if(!i.isint()&&n){var s=Math.abs(e);s<1?(r=new Cr(10).pow($j.getDigitCount(e)-1),i=new Cr(Math.floor(i.div(r).toNumber())).mul(r)):s>1&&(i=new Cr(Math.floor(e)))}else e===0?i=new Cr(Math.floor((t-1)/2)):n||(i=new Cr(Math.floor(e)));var o=Math.floor((t-1)/2),l=KRe(HRe(function(c){return i.add(new Cr(c-o).mul(r)).toNumber()}),kE);return l(0,t)}function KZ(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Cr(0),tickMin:new Cr(0),tickMax:new Cr(0)};var s=HZ(new Cr(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new Cr(0):(o=new Cr(e).add(t).div(2),o=o.sub(new Cr(o).mod(s)));var l=Math.ceil(o.sub(e).div(s).toNumber()),c=Math.ceil(new Cr(t).sub(o).div(s).toNumber()),u=l+c+1;return u>n?KZ(e,t,n,r,i+1):(u<n&&(c=t>0?c+(n-u):c,l=t>0?l:l+(n-u)),{step:s,tickMin:o.sub(new Cr(l).mul(s)),tickMax:o.add(new Cr(c).mul(s))})}function oIe(e){var t=Ox(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),l=WZ([n,r]),c=Ox(l,2),u=c[0],d=c[1];if(u===-1/0||d===1/0){var f=d===1/0?[u].concat(CE(kE(0,i-1).map(function(){return 1/0}))):[].concat(CE(kE(0,i-1).map(function(){return-1/0})),[d]);return n>r?PE(f):f}if(u===d)return sIe(u,i,s);var p=KZ(u,d,o,s),h=p.step,x=p.tickMin,v=p.tickMax,g=$j.rangeStep(x,v.add(new Cr(.1).mul(h)),h);return n>r?PE(g):g}function lIe(e,t){var n=Ox(e,2),r=n[0],i=n[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=WZ([r,i]),l=Ox(o,2),c=l[0],u=l[1];if(c===-1/0||u===1/0)return[r,i];if(c===u)return[c];var d=Math.max(t,2),f=HZ(new Cr(u).sub(c).div(d-1),s,0),p=[].concat(CE($j.rangeStep(new Cr(c),new Cr(u).sub(new Cr(.99).mul(f)),f)),[u]);return r>i?PE(p):p}var cIe=GZ(oIe),uIe=GZ(lIe),dIe="Invariant failed";function jp(e,t){throw new Error(dIe)}var fIe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Rg(e){"@babel/helpers - typeof";return Rg=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},Rg(e)}function Ww(){return Ww=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},Ww.apply(this,arguments)}function hIe(e,t){return vIe(e)||gIe(e,t)||mIe(e,t)||pIe()}function pIe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1206In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mIe(e,t){if(e){if(typeof e=="string")return $q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $q(e,t)}}function $q(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gIe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function vIe(e){if(Array.isArray(e))return e}function yIe(e,t){if(e==null)return{};var n=xIe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xIe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function bIe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wIe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QZ(r.key),r)}}function jIe(e,t,n){return t&&wIe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Ie(e,t,n){return t=Hw(t),NIe(e,YZ()?Reflect.construct(t,n||[],Hw(e).constructor):t.apply(e,n))}function NIe(e,t){if(t&&(Rg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SIe(e)}function SIe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YZ=function(){return!!e})()}function Hw(e){return Hw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hw(e)}function AIe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TE(e,t)}function TE(e,t){return TE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},TE(e,t)}function XZ(e,t,n){return t=QZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QZ(e){var t=kIe(e,"string");return Rg(t)=="symbol"?t:t+""}function kIe(e,t){if(Rg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Uj=(function(e){function t(){return bIe(this,t),_Ie(this,t,arguments)}return AIe(t,e),jIe(t,[{key:"render",value:function(){var r=this.props,i=r.offset,s=r.layout,o=r.width,l=r.dataKey,c=r.data,u=r.dataPointFormatter,d=r.xAxis,f=r.yAxis,p=yIe(r,fIe),h=hn(p,!1);this.props.direction==="x"&&d.type!=="number"&&jp();var x=c.map(function(v){var g=u(v,l),y=g.x,w=g.y,j=g.value,_=g.errorVal;if(!_)return null;var N=[],A,E;if(Array.isArray(_)){var k=hIe(_,2);A=k[0],E=k[1]}else A=E=_;if(s==="vertical"){var T=d.scale,D=w+i,P=D+o,R=D-o,q=T(j-A),M=T(j+E);N.push({x1:M,y1:P,x2:M,y2:R}),N.push({x1:q,y1:D,x2:M,y2:D}),N.push({x1:q,y1:P,x2:q,y2:R})}else if(s==="horizontal"){var V=f.scale,H=y+i,Z=H-o,J=H+o,K=V(j-A),F=V(j+E);N.push({x1:Z,y1:F,x2:J,y2:F}),N.push({x1:H,y1:K,x2:H,y2:F}),N.push({x1:Z,y1:K,x2:J,y2:K})}return Ae.createElement(Ar,Ww({className:"recharts-errorBar",key:"bar-".concat(N.map(function($){return"".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))},h),N.map(function($){return Ae.createElement("line",Ww({},$,{key:"line-".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))}))});return Ae.createElement(Ar,{className:"recharts-errorBars"},x)}}])})(Ae.Component);XZ(Uj,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});XZ(Uj,"displayName","ErrorBar");function Rx(e){"@babel/helpers - typeof";return Rx=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},Rx(e)}function Uq(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 Ah(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uq(Object(n),!0).forEach(function(r){PIe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PIe(e,t,n){return t=CIe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CIe(e){var t=EIe(e,"string");return Rx(t)=="symbol"?t:t+""}function EIe(e,t){if(Rx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZZ=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,s=t.legendContent,o=Ao(n,nd);if(!o)return null;var l=nd.defaultProps,c=l!==void 0?Ah(Ah({},l),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:s==="children"?u=(r||[]).reduce(function(d,f){var p=f.item,h=f.props,x=h.sectors||h.data||[];return d.concat(x.map(function(v){return{type:o.props.iconType||p.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):u=(r||[]).map(function(d){var f=d.item,p=f.type.defaultProps,h=p!==void 0?Ah(Ah({},p),f.props):{},x=h.dataKey,v=h.name,g=h.legendType,y=h.hide;return{inactive:y,dataKey:x,type:c.iconType||g||"square",color:mO(f),value:v||x,payload:h}}),Ah(Ah(Ah({},c),nd.getWithHeight(o,i)),{},{payload:u,item:o})};function Ix(e){"@babel/helpers - typeof";return Ix=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},Ix(e)}function Gq(e){return IIe(e)||RIe(e)||OIe(e)||TIe()}function TIe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1207In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OIe(e,t){if(e){if(typeof e=="string")return OE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OE(e,t)}}function RIe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function IIe(e){if(Array.isArray(e))return OE(e)}function OE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vq(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 Si(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vq(Object(n),!0).forEach(function(r){ng(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ng(e,t,n){return t=LIe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LIe(e){var t=MIe(e,"string");return Ix(t)=="symbol"?t:t+""}function MIe(e,t){if(Ix(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ix(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function es(e,t,n){return $n(e)||$n(t)?n:aa(t)?Ro(e,t,n):_n(t)?t(e):n}function Qy(e,t,n,r){var i=LRe(e,function(l){return es(l,t)});if(n==="number"){var s=i.filter(function(l){return wt(l)||parseFloat(l)});return s.length?[Bj(s),Fj(s)]:[1/0,-1/0]}var o=r?i.filter(function(l){return!$n(l)}):i;return o.map(function(l){return aa(l)||l instanceof Date?l:""})}var DIe=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,o=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(s&&s.axisType==="angleAxis"&&Math.abs(Math.abs(s.range[1]-s.range[0])-360)<=1e-6)for(var c=s.range,u=0;u<l;u++){var d=u>0?i[u-1].coordinate:i[l-1].coordinate,f=i[u].coordinate,p=u>=l-1?i[0].coordinate:i[u+1].coordinate,h=void 0;if(Ns(f-d)!==Ns(p-f)){var x=[];if(Ns(p-f)===Ns(c[1]-c[0])){h=p;var v=f+c[1]-c[0];x[0]=Math.min(v,(v+d)/2),x[1]=Math.max(v,(v+d)/2)}else{h=d;var g=p+c[1]-c[0];x[0]=Math.min(f,(g+f)/2),x[1]=Math.max(f,(g+f)/2)}var y=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>y[0]&&t<=y[1]||t>=x[0]&&t<=x[1]){o=i[u].index;break}}else{var w=Math.min(d,p),j=Math.max(d,p);if(t>(w+f)/2&&t<=(j+f)/2){o=i[u].index;break}}}else for(var _=0;_<l;_++)if(_===0&&t<=(r[_].coordinate+r[_+1].coordinate)/2||_>0&&_<l-1&&t>(r[_].coordinate+r[_-1].coordinate)/2&&t<=(r[_].coordinate+r[_+1].coordinate)/2||_===l-1&&t>(r[_].coordinate+r[_-1].coordinate)/2){o=r[_].index;break}return o},mO=function(t){var n,r=t,i=r.type.displayName,s=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Si(Si({},t.type.defaultProps),t.props):t.props,o=s.stroke,l=s.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:l;break;default:c=l;break}return c},FIe=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,s=i===void 0?{}:i;if(!s)return{};for(var o={},l=Object.keys(s),c=0,u=l.length;c<u;c++)for(var d=s[l[c]].stackGroups,f=Object.keys(d),p=0,h=f.length;p<h;p++){var x=d[f[p]],v=x.items,g=x.cateAxisId,y=v.filter(function(E){return td(E.type).indexOf("Bar")>=0});if(y&&y.length){var w=y[0].type.defaultProps,j=w!==void 0?Si(Si({},w),y[0].props):y[0].props,_=j.barSize,N=j[g];o[N]||(o[N]=[]);var A=$n(_)?n:_;o[N].push({item:y[0],stackList:y.slice(1),barSize:$n(A)?void 0:Ss(A,r,0)})}}return o},BIe=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,s=t.sizeList,o=s===void 0?[]:s,l=t.maxBarSize,c=o.length;if(c<1)return null;var u=Ss(n,i,0,!0),d,f=[];if(o[0].barSize===+o[0].barSize){var p=!1,h=i/c,x=o.reduce(function(_,N){return _+N.barSize||0},0);x+=(c-1)*u,x>=i&&(x-=(c-1)*u,u=0),x>=i&&h>0&&(p=!0,h*=.9,x=c*h);var v=(i-x)/2>>0,g={offset:v-u,size:0};d=o.reduce(function(_,N){var A={item:N.item,position:{offset:g.offset+g.size+u,size:p?h:N.barSize}},E=[].concat(Gq(_),[A]);return g=E[E.length-1].position,N.stackList&&N.stackList.length&&N.stackList.forEach(function(k){E.push({item:k,position:g})}),E},f)}else{var y=Ss(r,i,0,!0);i-2*y-(c-1)*u<=0&&(u=0);var w=(i-2*y-(c-1)*u)/c;w>1&&(w>>=0);var j=l===+l?Math.min(w,l):w;d=o.reduce(function(_,N,A){var E=[].concat(Gq(_),[{item:N.item,position:{offset:y+(w+u)*A+(w-j)/2,size:j}}]);return N.stackList&&N.stackList.length&&N.stackList.forEach(function(k){E.push({item:k,position:E[E.length-1].position})}),E},f)}return d},qIe=function(t,n,r,i){var s=r.children,o=r.width,l=r.margin,c=o-(l.left||0)-(l.right||0),u=ZZ({children:s,legendWidth:c});if(u){var d=i||{},f=d.width,p=d.height,h=u.align,x=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&x==="middle")&&h!=="center"&&wt(t[h]))return Si(Si({},t),{},ng({},h,t[h]+(f||0)));if((v==="horizontal"||v==="vertical"&&h==="center")&&x!=="middle"&&wt(t[x]))return Si(Si({},t),{},ng({},x,t[x]+(p||0)))}return t},zIe=function(t,n,r){return $n(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},JZ=function(t,n,r,i,s){var o=n.props.children,l=pl(o,Uj).filter(function(u){return zIe(i,s,u.props.direction)});if(l&&l.length){var c=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,d){var f=es(d,r);if($n(f))return u;var p=Array.isArray(f)?[Bj(f),Fj(f)]:[f,f],h=c.reduce(function(x,v){var g=es(d,v,0),y=p[0]-Math.abs(Array.isArray(g)?g[0]:g),w=p[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(y,x[0]),Math.max(w,x[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},$Ie=function(t,n,r,i,s){var o=n.map(function(l){return JZ(t,l,r,s,i)}).filter(function(l){return!$n(l)});return o&&o.length?o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]):null},eJ=function(t,n,r,i,s){var o=n.map(function(c){var u=c.props.dataKey;return r==="number"&&u&&JZ(t,c,u,i)||Qy(t,u,r,s)});if(r==="number")return o.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(c,u){for(var d=0,f=u.length;d<f;d++)l[u[d]]||(l[u[d]]=!0,c.push(u[d]));return c},[])},tJ=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},nJ=function(t,n,r,i){if(i)return t.map(function(c){return c.coordinate});var s,o,l=t.map(function(c){return c.coordinate===n&&(s=!0),c.coordinate===r&&(o=!0),c.coordinate});return s||l.push(n),o||l.push(r),l},Xu=function(t,n,r){if(!t)return null;var i=t.scale,s=t.duplicateDomain,o=t.type,l=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(n||r)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Ns(l[0]-l[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(f){var p=s?s.indexOf(f):f;return{coordinate:i(p)+u,value:f,offset:u}});return d.filter(function(f){return!E0(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,p){return{coordinate:i(f)+u,value:f,index:p,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,p){return{coordinate:i(f)+u,value:s?s[f]:f,index:p,offset:u}})},Dk=new WeakMap,s1=function(t,n){if(typeof n!="function")return t;Dk.has(t)||Dk.set(t,new WeakMap);var r=Dk.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},rJ=function(t,n,r){var i=t.scale,s=t.type,o=t.layout,l=t.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Ax(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:zw(),realScaleType:"linear"}:s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Xy(),realScaleType:"point"}:s==="category"?{scale:Ax(),realScaleType:"band"}:{scale:zw(),realScaleType:"linear"};if(yp(i)){var c="scale".concat(Nj(i));return{scale:(Eq[c]||Xy)(),realScaleType:Eq[c]?c:"point"}}return _n(i)?{scale:i}:{scale:Xy(),realScaleType:"point"}},Wq=1e-4,iJ=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),s=Math.min(i[0],i[1])-Wq,o=Math.max(i[0],i[1])+Wq,l=t(n[0]),c=t(n[r-1]);(l<s||l>o||c<s||c>o)&&t.domain([n[0],n[r-1]])}},UIe=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},GIe=function(t,n){if(!n||n.length!==2||!wt(n[0])||!wt(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),s=[t[0],t[1]];return(!wt(t[0])||t[0]<r)&&(s[0]=r),(!wt(t[1])||t[1]>i)&&(s[1]=i),s[0]>i&&(s[0]=i),s[1]<r&&(s[1]=r),s},VIe=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var s=0,o=0,l=0;l<n;++l){var c=E0(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=s,t[l][r][1]=s+c,s=t[l][r][1]):(t[l][r][0]=o,t[l][r][1]=o+c,o=t[l][r][1])}},WIe=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var s=0,o=0;o<n;++o){var l=E0(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=s,t[o][r][1]=s+l,s=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},HIe={sign:VIe,expand:LCe,none:Sg,silhouette:MCe,wiggle:DCe,positive:WIe},KIe=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),s=HIe[r],o=ICe().keys(i).value(function(l,c){return+es(l,c,0)}).order(lE).offset(s);return o(t)},YIe=function(t,n,r,i,s,o){if(!t)return null;var l=o?n.reverse():n,c={},u=l.reduce(function(f,p){var h,x=(h=p.type)!==null&&h!==void 0&&h.defaultProps?Si(Si({},p.type.defaultProps),p.props):p.props,v=x.stackId,g=x.hide;if(g)return f;var y=x[r],w=f[y]||{hasStack:!1,stackGroups:{}};if(aa(v)){var j=w.stackGroups[v]||{numericAxisId:r,cateAxisId:i,items:[]};j.items.push(p),w.hasStack=!0,w.stackGroups[v]=j}else w.stackGroups[T0("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[p]};return Si(Si({},f),{},ng({},y,w))},c),d={};return Object.keys(u).reduce(function(f,p){var h=u[p];if(h.hasStack){var x={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(v,g){var y=h.stackGroups[g];return Si(Si({},v),{},ng({},g,{numericAxisId:r,cateAxisId:i,items:y.items,stackedData:KIe(t,y.items,s)}))},x)}return Si(Si({},f),{},ng({},p,h))},d)},aJ=function(t,n){var r=n.realScaleType,i=n.type,s=n.tickCount,o=n.originalDomain,l=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(s&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var d=cIe(u,s,l);return t.domain([Bj(d),Fj(d)]),{niceTicks:d}}if(s&&i==="number"){var f=t.domain(),p=uIe(f,s,l);return{niceTicks:p}}return null},Hq=function(t){var n=t.axis,r=t.ticks,i=t.offset,s=t.bandSize,o=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+i:null;var c=es(o,n.dataKey,n.domain[l]);return $n(c)?null:n.scale(c)-s/2+i},XIe=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);return i<=0&&s>=0?0:s<0?s:i}return r[0]},QIe=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Si(Si({},t.type.defaultProps),t.props):t.props,s=i.stackId;if(aa(s)){var o=n[s];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},ZIe=function(t){return t.reduce(function(n,r){return[Bj(r.concat([n[0]]).filter(wt)),Fj(r.concat([n[1]]).filter(wt))]},[1/0,-1/0])},sJ=function(t,n,r){return Object.keys(t).reduce(function(i,s){var o=t[s],l=o.stackedData,c=l.reduce(function(u,d){var f=ZIe(d.slice(n,r+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Kq=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Yq=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,RE=function(t,n,r){if(_n(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(wt(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(Kq.test(t[0])){var s=+Kq.exec(t[0])[1];i[0]=n[0]-s}else _n(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(wt(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(Yq.test(t[1])){var o=+Yq.exec(t[1])[1];i[1]=n[1]+o}else _n(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Kw=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var s=U3(n,function(f){return f.coordinate}),o=1/0,l=1,c=s.length;l<c;l++){var u=s[l],d=s[l-1];o=Math.min((u.coordinate||0)-(d.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},Xq=function(t,n,r){return!t||!t.length||qj(t,Ro(r,"type.defaultProps.domain"))?n:t},oJ=function(t,n){var r=t.type.defaultProps?Si(Si({},t.type.defaultProps),t.props):t.props,i=r.dataKey,s=r.name,o=r.unit,l=r.formatter,c=r.tooltipType,u=r.chartType,d=r.hide;return Si(Si({},hn(t,!1)),{},{dataKey:i,unit:o,formatter:l,name:s||i,color:mO(t),value:es(n,i),type:c,payload:n,chartType:u,hide:d})};function Lx(e){"@babel/helpers - typeof";return Lx=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},Lx(e)}function Qq(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 zu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qq(Object(n),!0).forEach(function(r){lJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lJ(e,t,n){return t=JIe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JIe(e){var t=eLe(e,"string");return Lx(t)=="symbol"?t:t+""}function eLe(e,t){if(Lx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tLe(e,t){return aLe(e)||iLe(e,t)||rLe(e,t)||nLe()}function nLe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1208In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rLe(e,t){if(e){if(typeof e=="string")return Zq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zq(e,t)}}function Zq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iLe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function aLe(e){if(Array.isArray(e))return e}var Yw=Math.PI/180,sLe=function(t){return t*180/Math.PI},$r=function(t,n,r,i){return{x:t+Math.cos(-Yw*i)*r,y:n+Math.sin(-Yw*i)*r}},cJ=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},oLe=function(t,n,r,i,s){var o=t.width,l=t.height,c=t.startAngle,u=t.endAngle,d=Ss(t.cx,o,o/2),f=Ss(t.cy,l,l/2),p=cJ(o,l,r),h=Ss(t.innerRadius,p,0),x=Ss(t.outerRadius,p,p*.8),v=Object.keys(n);return v.reduce(function(g,y){var w=n[y],j=w.domain,_=w.reversed,N;if($n(w.range))i==="angleAxis"?N=[c,u]:i==="radiusAxis"&&(N=[h,x]),_&&(N=[N[1],N[0]]);else{N=w.range;var A=N,E=tLe(A,2);c=E[0],u=E[1]}var k=rJ(w,s),T=k.realScaleType,D=k.scale;D.domain(j).range(N),iJ(D);var P=aJ(D,zu(zu({},w),{},{realScaleType:T})),R=zu(zu(zu({},w),P),{},{range:N,radius:x,realScaleType:T,scale:D,cx:d,cy:f,innerRadius:h,outerRadius:x,startAngle:c,endAngle:u});return zu(zu({},g),{},lJ({},y,R))},{})},lLe=function(t,n){var r=t.x,i=t.y,s=n.x,o=n.y;return Math.sqrt(Math.pow(r-s,2)+Math.pow(i-o,2))},cLe=function(t,n){var r=t.x,i=t.y,s=n.cx,o=n.cy,l=lLe({x:r,y:i},{x:s,y:o});if(l<=0)return{radius:l};var c=(r-s)/l,u=Math.acos(c);return i>o&&(u=2*Math.PI-u),{radius:l,angle:sLe(u),angleInRadian:u}},uLe=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),s=Math.floor(r/360),o=Math.min(i,s);return{startAngle:n-o*360,endAngle:r-o*360}},dLe=function(t,n){var r=n.startAngle,i=n.endAngle,s=Math.floor(r/360),o=Math.floor(i/360),l=Math.min(s,o);return t+l*360},Jq=function(t,n){var r=t.x,i=t.y,s=cLe({x:r,y:i},n),o=s.radius,l=s.angle,c=n.innerRadius,u=n.outerRadius;if(o<c||o>u)return!1;if(o===0)return!0;var d=uLe(n),f=d.startAngle,p=d.endAngle,h=l,x;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;x=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;x=h>=p&&h<=f}return x?zu(zu({},n),{},{radius:o,angle:dLe(h,n)}):null},uJ=function(t){return!O.isValidElement(t)&&!_n(t)&&typeof t!="boolean"?t.className:""};function Mx(e){"@babel/helpers - typeof";return Mx=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},Mx(e)}var fLe=["offset"];function hLe(e){return vLe(e)||gLe(e)||mLe(e)||pLe()}function pLe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1209In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mLe(e,t){if(e){if(typeof e=="string")return IE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IE(e,t)}}function gLe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vLe(e){if(Array.isArray(e))return IE(e)}function IE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yLe(e,t){if(e==null)return{};var n=xLe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xLe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ez(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 ra(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ez(Object(n),!0).forEach(function(r){bLe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ez(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bLe(e,t,n){return t=wLe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wLe(e){var t=jLe(e,"string");return Mx(t)=="symbol"?t:t+""}function jLe(e,t){if(Mx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dx(){return Dx=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},Dx.apply(this,arguments)}var _Le=function(t){var n=t.value,r=t.formatter,i=$n(t.children)?n:t.children;return _n(r)?r(i):i},NLe=function(t,n){var r=Ns(n-t),i=Math.min(Math.abs(n-t),360);return r*i},SLe=function(t,n,r){var i=t.position,s=t.viewBox,o=t.offset,l=t.className,c=s,u=c.cx,d=c.cy,f=c.innerRadius,p=c.outerRadius,h=c.startAngle,x=c.endAngle,v=c.clockWise,g=(f+p)/2,y=NLe(h,x),w=y>=0?1:-1,j,_;i==="insideStart"?(j=h+w*o,_=v):i==="insideEnd"?(j=x-w*o,_=!v):i==="end"&&(j=x+w*o,_=v),_=y<=0?_:!_;var N=$r(u,d,g,j),A=$r(u,d,g,j+(_?1:-1)*359),E="M".concat(N.x,",").concat(N.y,` 1210 A`).concat(g,",").concat(g,",0,1,").concat(_?0:1,`, 1211 `).concat(A.x,",").concat(A.y),k=$n(t.id)?T0("recharts-radial-line-"):t.id;return Ae.createElement("text",Dx({},r,{dominantBaseline:"central",className:Rn("recharts-radial-bar-label",l)}),Ae.createElement("defs",null,Ae.createElement("path",{id:k,d:E})),Ae.createElement("textPath",{xlinkHref:"#".concat(k)},n))},ALe=function(t){var n=t.viewBox,r=t.offset,i=t.position,s=n,o=s.cx,l=s.cy,c=s.innerRadius,u=s.outerRadius,d=s.startAngle,f=s.endAngle,p=(d+f)/2;if(i==="outside"){var h=$r(o,l,u+r,p),x=h.x,v=h.y;return{x,y:v,textAnchor:x>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var g=(c+u)/2,y=$r(o,l,g,p),w=y.x,j=y.y;return{x:w,y:j,textAnchor:"middle",verticalAnchor:"middle"}},kLe=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,s=t.position,o=n,l=o.x,c=o.y,u=o.width,d=o.height,f=d>=0?1:-1,p=f*i,h=f>0?"end":"start",x=f>0?"start":"end",v=u>=0?1:-1,g=v*i,y=v>0?"end":"start",w=v>0?"start":"end";if(s==="top"){var j={x:l+u/2,y:c-f*i,textAnchor:"middle",verticalAnchor:h};return ra(ra({},j),r?{height:Math.max(c-r.y,0),width:u}:{})}if(s==="bottom"){var _={x:l+u/2,y:c+d+p,textAnchor:"middle",verticalAnchor:x};return ra(ra({},_),r?{height:Math.max(r.y+r.height-(c+d),0),width:u}:{})}if(s==="left"){var N={x:l-g,y:c+d/2,textAnchor:y,verticalAnchor:"middle"};return ra(ra({},N),r?{width:Math.max(N.x-r.x,0),height:d}:{})}if(s==="right"){var A={x:l+u+g,y:c+d/2,textAnchor:w,verticalAnchor:"middle"};return ra(ra({},A),r?{width:Math.max(r.x+r.width-A.x,0),height:d}:{})}var E=r?{width:u,height:d}:{};return s==="insideLeft"?ra({x:l+g,y:c+d/2,textAnchor:w,verticalAnchor:"middle"},E):s==="insideRight"?ra({x:l+u-g,y:c+d/2,textAnchor:y,verticalAnchor:"middle"},E):s==="insideTop"?ra({x:l+u/2,y:c+p,textAnchor:"middle",verticalAnchor:x},E):s==="insideBottom"?ra({x:l+u/2,y:c+d-p,textAnchor:"middle",verticalAnchor:h},E):s==="insideTopLeft"?ra({x:l+g,y:c+p,textAnchor:w,verticalAnchor:x},E):s==="insideTopRight"?ra({x:l+u-g,y:c+p,textAnchor:y,verticalAnchor:x},E):s==="insideBottomLeft"?ra({x:l+g,y:c+d-p,textAnchor:w,verticalAnchor:h},E):s==="insideBottomRight"?ra({x:l+u-g,y:c+d-p,textAnchor:y,verticalAnchor:h},E):hv(s)&&(wt(s.x)||zh(s.x))&&(wt(s.y)||zh(s.y))?ra({x:l+Ss(s.x,u),y:c+Ss(s.y,d),textAnchor:"end",verticalAnchor:"end"},E):ra({x:l+u/2,y:c+d/2,textAnchor:"middle",verticalAnchor:"middle"},E)},PLe=function(t){return"cx"in t&&wt(t.cx)};function wa(e){var t=e.offset,n=t===void 0?5:t,r=yLe(e,fLe),i=ra({offset:n},r),s=i.viewBox,o=i.position,l=i.value,c=i.children,u=i.content,d=i.className,f=d===void 0?"":d,p=i.textBreakAll;if(!s||$n(l)&&$n(c)&&!O.isValidElement(u)&&!_n(u))return null;if(O.isValidElement(u))return O.cloneElement(u,i);var h;if(_n(u)){if(h=O.createElement(u,i),O.isValidElement(h))return h}else h=_Le(i);var x=PLe(s),v=hn(i,!0);if(x&&(o==="insideStart"||o==="insideEnd"||o==="end"))return SLe(i,h,v);var g=x?ALe(i):kLe(i);return Ae.createElement(bp,Dx({className:Rn("recharts-label",f)},v,g,{breakAll:p}),h)}wa.displayName="Label";var dJ=function(t){var n=t.cx,r=t.cy,i=t.angle,s=t.startAngle,o=t.endAngle,l=t.r,c=t.radius,u=t.innerRadius,d=t.outerRadius,f=t.x,p=t.y,h=t.top,x=t.left,v=t.width,g=t.height,y=t.clockWise,w=t.labelViewBox;if(w)return w;if(wt(v)&&wt(g)){if(wt(f)&&wt(p))return{x:f,y:p,width:v,height:g};if(wt(h)&&wt(x))return{x:h,y:x,width:v,height:g}}return wt(f)&&wt(p)?{x:f,y:p,width:0,height:0}:wt(n)&&wt(r)?{cx:n,cy:r,startAngle:s||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:d||c||l||0,clockWise:y}:t.viewBox?t.viewBox:{}},CLe=function(t,n){return t?t===!0?Ae.createElement(wa,{key:"label-implicit",viewBox:n}):aa(t)?Ae.createElement(wa,{key:"label-implicit",viewBox:n,value:t}):O.isValidElement(t)?t.type===wa?O.cloneElement(t,{key:"label-implicit",viewBox:n}):Ae.createElement(wa,{key:"label-implicit",content:t,viewBox:n}):_n(t)?Ae.createElement(wa,{key:"label-implicit",content:t,viewBox:n}):hv(t)?Ae.createElement(wa,Dx({viewBox:n},t,{key:"label-implicit"})):null:null},ELe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,s=dJ(t),o=pl(i,wa).map(function(c,u){return O.cloneElement(c,{viewBox:n||s,key:"label-".concat(u)})});if(!r)return o;var l=CLe(t.label,n||s);return[l].concat(hLe(o))};wa.parseViewBox=dJ;wa.renderCallByParent=ELe;var Fk,tz;function TLe(){if(tz)return Fk;tz=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Fk=e,Fk}var OLe=TLe();const RLe=Zn(OLe);function Fx(e){"@babel/helpers - typeof";return Fx=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},Fx(e)}var ILe=["valueAccessor"],LLe=["data","dataKey","clockWise","id","textBreakAll"];function MLe(e){return qLe(e)||BLe(e)||FLe(e)||DLe()}function DLe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1212In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FLe(e,t){if(e){if(typeof e=="string")return LE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LE(e,t)}}function BLe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qLe(e){if(Array.isArray(e))return LE(e)}function LE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xw(){return Xw=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},Xw.apply(this,arguments)}function nz(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 rz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nz(Object(n),!0).forEach(function(r){zLe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zLe(e,t,n){return t=$Le(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Le(e){var t=ULe(e,"string");return Fx(t)=="symbol"?t:t+""}function ULe(e,t){if(Fx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iz(e,t){if(e==null)return{};var n=GLe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GLe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var VLe=function(t){return Array.isArray(t.value)?RLe(t.value):t.value};function Of(e){var t=e.valueAccessor,n=t===void 0?VLe:t,r=iz(e,ILe),i=r.data,s=r.dataKey,o=r.clockWise,l=r.id,c=r.textBreakAll,u=iz(r,LLe);return!i||!i.length?null:Ae.createElement(Ar,{className:"recharts-label-list"},i.map(function(d,f){var p=$n(s)?n(d,f):es(d&&d.payload,s),h=$n(l)?{}:{id:"".concat(l,"-").concat(f)};return Ae.createElement(wa,Xw({},hn(d,!0),u,h,{parentViewBox:d.parentViewBox,value:p,textBreakAll:c,viewBox:wa.parseViewBox($n(o)?d:rz(rz({},d),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}Of.displayName="LabelList";function WLe(e,t){return e?e===!0?Ae.createElement(Of,{key:"labelList-implicit",data:t}):Ae.isValidElement(e)||_n(e)?Ae.createElement(Of,{key:"labelList-implicit",data:t,content:e}):hv(e)?Ae.createElement(Of,Xw({data:t},e,{key:"labelList-implicit"})):null:null}function HLe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=pl(r,Of).map(function(o,l){return O.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var s=WLe(e.label,t);return[s].concat(MLe(i))}Of.renderCallByParent=HLe;function Bx(e){"@babel/helpers - typeof";return Bx=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},Bx(e)}function ME(){return ME=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},ME.apply(this,arguments)}function az(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 sz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?az(Object(n),!0).forEach(function(r){KLe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):az(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KLe(e,t,n){return t=YLe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YLe(e){var t=XLe(e,"string");return Bx(t)=="symbol"?t:t+""}function XLe(e,t){if(Bx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QLe=function(t,n){var r=Ns(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},o1=function(t){var n=t.cx,r=t.cy,i=t.radius,s=t.angle,o=t.sign,l=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,d=c*(l?1:-1)+i,f=Math.asin(c/d)/Yw,p=u?s:s+o*f,h=$r(n,r,d,p),x=$r(n,r,i,p),v=u?s-o*f:s,g=$r(n,r,d*Math.cos(f*Yw),v);return{center:h,circleTangency:x,lineTangency:g,theta:f}},fJ=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,s=t.outerRadius,o=t.startAngle,l=t.endAngle,c=QLe(o,l),u=o+c,d=$r(n,r,s,o),f=$r(n,r,s,u),p="M ".concat(d.x,",").concat(d.y,` 1213 A `).concat(s,",").concat(s,`,0, 1214 `).concat(+(Math.abs(c)>180),",").concat(+(o>u),`, 1215 `).concat(f.x,",").concat(f.y,` 1216 `);if(i>0){var h=$r(n,r,i,o),x=$r(n,r,i,u);p+="L ".concat(x.x,",").concat(x.y,` 1217 A `).concat(i,",").concat(i,`,0, 1218 `).concat(+(Math.abs(c)>180),",").concat(+(o<=u),`, 1219 `).concat(h.x,",").concat(h.y," Z")}else p+="L ".concat(n,",").concat(r," Z");return p},ZLe=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,s=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,d=t.endAngle,f=Ns(d-u),p=o1({cx:n,cy:r,radius:s,angle:u,sign:f,cornerRadius:o,cornerIsExternal:c}),h=p.circleTangency,x=p.lineTangency,v=p.theta,g=o1({cx:n,cy:r,radius:s,angle:d,sign:-f,cornerRadius:o,cornerIsExternal:c}),y=g.circleTangency,w=g.lineTangency,j=g.theta,_=c?Math.abs(u-d):Math.abs(u-d)-v-j;if(_<0)return l?"M ".concat(x.x,",").concat(x.y,` 1220 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 1221 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 1222 `):fJ({cx:n,cy:r,innerRadius:i,outerRadius:s,startAngle:u,endAngle:d});var N="M ".concat(x.x,",").concat(x.y,` 1223 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,` 1224 A`).concat(s,",").concat(s,",0,").concat(+(_>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,` 1225 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(w.x,",").concat(w.y,` 1226 `);if(i>0){var A=o1({cx:n,cy:r,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),E=A.circleTangency,k=A.lineTangency,T=A.theta,D=o1({cx:n,cy:r,radius:i,angle:d,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),P=D.circleTangency,R=D.lineTangency,q=D.theta,M=c?Math.abs(u-d):Math.abs(u-d)-T-q;if(M<0&&o===0)return"".concat(N,"L").concat(n,",").concat(r,"Z");N+="L".concat(R.x,",").concat(R.y,` 1227 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,` 1228 A`).concat(i,",").concat(i,",0,").concat(+(M>180),",").concat(+(f>0),",").concat(E.x,",").concat(E.y,` 1229 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,"Z")}else N+="L".concat(n,",").concat(r,"Z");return N},JLe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},hJ=function(t){var n=sz(sz({},JLe),t),r=n.cx,i=n.cy,s=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,c=n.forceCornerRadius,u=n.cornerIsExternal,d=n.startAngle,f=n.endAngle,p=n.className;if(o<s||d===f)return null;var h=Rn("recharts-sector",p),x=o-s,v=Ss(l,x,0,!0),g;return v>0&&Math.abs(d-f)<360?g=ZLe({cx:r,cy:i,innerRadius:s,outerRadius:o,cornerRadius:Math.min(v,x/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:d,endAngle:f}):g=fJ({cx:r,cy:i,innerRadius:s,outerRadius:o,startAngle:d,endAngle:f}),Ae.createElement("path",ME({},hn(n,!0),{className:h,d:g,role:"img"}))};function qx(e){"@babel/helpers - typeof";return qx=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},qx(e)}function DE(){return DE=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},DE.apply(this,arguments)}function oz(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 lz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oz(Object(n),!0).forEach(function(r){eMe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eMe(e,t,n){return t=tMe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tMe(e){var t=nMe(e,"string");return qx(t)=="symbol"?t:t+""}function nMe(e,t){if(qx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cz={curveBasisClosed:_Ce,curveBasisOpen:NCe,curveBasis:jCe,curveBumpX:lCe,curveBumpY:cCe,curveLinearClosed:SCe,curveLinear:Aj,curveMonotoneX:ACe,curveMonotoneY:kCe,curveNatural:PCe,curveStep:CCe,curveStepAfter:TCe,curveStepBefore:ECe},l1=function(t){return t.x===+t.x&&t.y===+t.y},yy=function(t){return t.x},xy=function(t){return t.y},rMe=function(t,n){if(_n(t))return t;var r="curve".concat(Nj(t));return(r==="curveMonotone"||r==="curveBump")&&n?cz["".concat(r).concat(n==="vertical"?"Y":"X")]:cz[r]||Aj},iMe=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,s=i===void 0?[]:i,o=t.baseLine,l=t.layout,c=t.connectNulls,u=c===void 0?!1:c,d=rMe(r,l),f=u?s.filter(function(v){return l1(v)}):s,p;if(Array.isArray(o)){var h=u?o.filter(function(v){return l1(v)}):o,x=f.map(function(v,g){return lz(lz({},v),{},{base:h[g]})});return l==="vertical"?p=Jb().y(xy).x1(yy).x0(function(v){return v.base.x}):p=Jb().x(yy).y1(xy).y0(function(v){return v.base.y}),p.defined(l1).curve(d),p(x)}return l==="vertical"&&wt(o)?p=Jb().y(xy).x1(yy).x0(o):wt(o)?p=Jb().x(yy).y1(xy).y0(o):p=dQ().x(yy).y(xy),p.defined(l1).curve(d),p(f)},FE=function(t){var n=t.className,r=t.points,i=t.path,s=t.pathRef;if((!r||!r.length)&&!i)return null;var o=r&&r.length?iMe(t):i;return O.createElement("path",DE({},hn(t,!1),_w(t),{className:Rn("recharts-curve",n),d:o,ref:s}))},Bk={exports:{}},qk,uz;function aMe(){if(uz)return qk;uz=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qk=e,qk}var zk,dz;function sMe(){if(dz)return zk;dz=1;var e=aMe();function t(){}function n(){}return n.resetWarningCache=t,zk=function(){function r(o,l,c,u,d,f){if(f!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},zk}var fz;function oMe(){return fz||(fz=1,Bk.exports=sMe()()),Bk.exports}var lMe=oMe();const pr=Zn(lMe),{getOwnPropertyNames:cMe,getOwnPropertySymbols:uMe}=Object,{hasOwnProperty:dMe}=Object.prototype;function $k(e,t){return function(r,i,s){return e(r,i,s)&&t(r,i,s)}}function c1(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);const{cache:s}=i,o=s.get(n),l=s.get(r);if(o&&l)return o===r&&l===n;s.set(n,r),s.set(r,n);const c=e(n,r,i);return s.delete(n),s.delete(r),c}}function fMe(e){return e!=null?e[Symbol.toStringTag]:void 0}function hz(e){return cMe(e).concat(uMe(e))}const hMe=Object.hasOwn||((e,t)=>dMe.call(e,t));function qp(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const pMe="__v",mMe="__o",gMe="_owner",{getOwnPropertyDescriptor:pz,keys:mz}=Object;function vMe(e,t){return e.byteLength===t.byteLength&&Qw(new Uint8Array(e),new Uint8Array(t))}function yMe(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function xMe(e,t){return e.byteLength===t.byteLength&&Qw(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function bMe(e,t){return qp(e.getTime(),t.getTime())}function wMe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function jMe(e,t){return e===t}function gz(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),s=e.entries();let o,l,c=0;for(;(o=s.next())&&!o.done;){const u=t.entries();let d=!1,f=0;for(;(l=u.next())&&!l.done;){if(i[f]){f++;continue}const p=o.value,h=l.value;if(n.equals(p[0],h[0],c,f,e,t,n)&&n.equals(p[1],h[1],p[0],h[0],e,t,n)){d=i[f]=!0;break}f++}if(!d)return!1;c++}return!0}const _Me=qp;function NMe(e,t,n){const r=mz(e);let i=r.length;if(mz(t).length!==i)return!1;for(;i-- >0;)if(!pJ(e,t,n,r[i]))return!1;return!0}function by(e,t,n){const r=hz(e);let i=r.length;if(hz(t).length!==i)return!1;let s,o,l;for(;i-- >0;)if(s=r[i],!pJ(e,t,n,s)||(o=pz(e,s),l=pz(t,s),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function SMe(e,t){return qp(e.valueOf(),t.valueOf())}function AMe(e,t){return e.source===t.source&&e.flags===t.flags}function vz(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),s=e.values();let o,l;for(;(o=s.next())&&!o.done;){const c=t.values();let u=!1,d=0;for(;(l=c.next())&&!l.done;){if(!i[d]&&n.equals(o.value,l.value,o.value,l.value,e,t,n)){u=i[d]=!0;break}d++}if(!u)return!1}return!0}function Qw(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function kMe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function pJ(e,t,n,r){return(r===gMe||r===mMe||r===pMe)&&(e.$$typeof||t.$$typeof)?!0:hMe(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const PMe="[object ArrayBuffer]",CMe="[object Arguments]",EMe="[object Boolean]",TMe="[object DataView]",OMe="[object Date]",RMe="[object Error]",IMe="[object Map]",LMe="[object Number]",MMe="[object Object]",DMe="[object RegExp]",FMe="[object Set]",BMe="[object String]",qMe={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array
1229]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},zMe="[object URL]",$Me=Object.prototype.toString;function UMe({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:s,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:c,arePrimitiveWrappersEqual:u,areRegExpsEqual:d,areSetsEqual:f,areTypedArraysEqual:p,areUrlsEqual:h,unknownTagComparators:x}){return function(g,y,w){if(g===y)return!0;if(g==null||y==null)return!1;const j=typeof g;if(j!==typeof y)return!1;if(j!=="object")return j==="number"?l(g,y,w):j==="function"?s(g,y,w):!1;const _=g.constructor;if(_!==y.constructor)return!1;if(_===Object)return c(g,y,w);if(Array.isArray(g))return t(g,y,w);if(_===Date)return r(g,y,w);if(_===RegExp)return d(g,y,w);if(_===Map)return o(g,y,w);if(_===Set)return f(g,y,w);const N=$Me.call(g);if(N===OMe)return r(g,y,w);if(N===DMe)return d(g,y,w);if(N===IMe)return o(g,y,w);if(N===FMe)return f(g,y,w);if(N===MMe)return typeof g.then!="function"&&typeof y.then!="function"&&c(g,y,w);if(N===zMe)return h(g,y,w);if(N===RMe)return i(g,y,w);if(N===CMe)return c(g,y,w);if(qMe[N])return p(g,y,w);if(N===PMe)return e(g,y,w);if(N===TMe)return n(g,y,w);if(N===EMe||N===LMe||N===BMe)return u(g,y,w);if(x){let A=x[N];if(!A){const E=fMe(g);E&&(A=x[E])}if(A)return A(g,y,w)}return!1}}function GMe({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:vMe,areArraysEqual:n?by:yMe,areDataViewsEqual:xMe,areDatesEqual:bMe,areErrorsEqual:wMe,areFunctionsEqual:jMe,areMapsEqual:n?$k(gz,by):gz,areNumbersEqual:_Me,areObjectsEqual:n?by:NMe,arePrimitiveWrappersEqual:SMe,areRegExpsEqual:AMe,areSetsEqual:n?$k(vz,by):vz,areTypedArraysEqual:n?$k(Qw,by):Qw,areUrlsEqual:kMe,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=c1(r.areArraysEqual),s=c1(r.areMapsEqual),o=c1(r.areObjectsEqual),l=c1(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:o,areSetsEqual:l})}return r}function VMe(e){return function(t,n,r,i,s,o,l){return e(t,n,l)}}function WMe({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(l,c){const{cache:u=e?new WeakMap:void 0,meta:d}=n();return t(l,c,{cache:u,equals:r,meta:d,strict:i})};if(e)return function(l,c){return t(l,c,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const s={cache:void 0,equals:r,meta:void 0,strict:i};return function(l,c){return t(l,c,s)}}const HMe=Qf();Qf({strict:!0});Qf({circular:!0});Qf({circular:!0,strict:!0});Qf({createInternalComparator:()=>qp});Qf({strict:!0,createInternalComparator:()=>qp});Qf({circular:!0,createInternalComparator:()=>qp});Qf({circular:!0,createInternalComparator:()=>qp,strict:!0});function Qf(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,s=GMe(e),o=UMe(s),l=n?n(o):VMe(o);return WMe({circular:t,comparator:o,createState:r,equals:l,strict:i})}function KMe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function yz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(s){n<0&&(n=s),s-n>t?(e(s),n=-1):KMe(i)};requestAnimationFrame(r)}function BE(e){"@babel/helpers - typeof";return BE=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},BE(e)}function YMe(e){return JMe(e)||ZMe(e)||QMe(e)||XMe()}function XMe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1230In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QMe(e,t){if(e){if(typeof e=="string")return xz(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xz(e,t)}}function xz(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZMe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JMe(e){if(Array.isArray(e))return e}function e6e(){var e={},t=function(){return null}
vendor: 52,718 bytes, lines 1230-1248
1230,n=!1,r=function i(s){if(!n){if(Array.isArray(s)){if(!s.length)return;var o=s,l=YMe(o),c=l[0],u=l.slice(1);if(typeof c=="number"){yz(i.bind(null,u),c);return}i(c),yz(i.bind(null,u));return}BE(s)==="object"&&(e=s,t(e)),typeof s=="function"&&s()}};return{stop:function(){n=!0},start:function(s){n=!1,r(s)},subscribe:function(s){return t=s,function(){t=function(){return null}}}}}function zx(e){"@babel/helpers - typeof";return zx=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},zx(e)}function bz(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 wz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bz(Object(n),!0).forEach(function(r){mJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mJ(e,t,n){return t=t6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t6e(e){var t=n6e(e,"string");return zx(t)==="symbol"?t:String(t)}function n6e(e,t){if(zx(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zx(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var r6e=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(s){return i.includes(s)})})},i6e=function(t){return t},a6e=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Zy=function(t,n){return Object.keys(n).reduce(function(r,i){return wz(wz({},r),{},mJ({},i,t(i,n[i])))},{})},jz=function(t,n,r){return t.map(function(i){return"".concat(a6e(i)," ").concat(n,"ms ").concat(r)}).join(",")};function s6e(e,t){return c6e(e)||l6e(e,t)||gJ(e,t)||o6e()}function o6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1231In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l6e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function c6e(e){if(Array.isArray(e))return e}function u6e(e){return h6e(e)||f6e(e)||gJ(e)||d6e()}function d6e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1232In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gJ(e,t){if(e){if(typeof e=="string")return qE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qE(e,t)}}function f6e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function h6e(e){if(Array.isArray(e))return qE(e)}function qE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Zw=1e-4,vJ=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},yJ=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},_z=function(t,n){return function(r){var i=vJ(t,n);return yJ(i,r)}},p6e=function(t,n){return function(r){var i=vJ(t,n),s=[].concat(u6e(i.map(function(o,l){return o*l}).slice(1)),[0]);return yJ(s,r)}},Nz=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],s=n[1],o=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,s=0,o=1,l=1;break;case"ease":i=.25,s=.1,o=.25,l=1;break;case"ease-in":i=.42,s=0,o=1,l=1;break;case"ease-out":i=.42,s=0,o=.58,l=1;break;case"ease-in-out":i=0,s=0,o=.58,l=1;break;default:{var c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(g){return parseFloat(g)}),d=s6e(u,4);i=d[0],s=d[1],o=d[2],l=d[3]}}}var f=_z(i,o),p=_z(s,l),h=p6e(i,o),x=function(y){return y>1?1:y<0?0:y},v=function(y){for(var w=y>1?1:y,j=w,_=0;_<8;++_){var N=f(j)-w,A=h(j);if(Math.abs(N-w)<Zw||A<Zw)return p(j);j=x(j-N/A)}return p(j)};return v.isStepper=!1,v},m6e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,s=i===void 0?8:i,o=t.dt,l=o===void 0?17:o,c=function(d,f,p){var h=-(d-f)*r,x=p*s,v=p+(h-x)*l/1e3,g=p*l/1e3+d;return Math.abs(g-f)<Zw&&Math.abs(v)<Zw?[f,0]:[g,v]};return c.isStepper=!0,c.dt=l,c},g6e=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Nz(i);case"spring":return m6e();default:if(i.split("(")[0]==="cubic-bezier")return Nz(i)}return typeof i=="function"?i:null};function $x(e){"@babel/helpers - typeof";return $x=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},$x(e)}function Sz(e){return x6e(e)||y6e(e)||xJ(e)||v6e()}function v6e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1233In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y6e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function x6e(e){if(Array.isArray(e))return $E(e)}function Az(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 Ra(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Az(Object(n),!0).forEach(function(r){zE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Az(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zE(e,t,n){return t=b6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b6e(e){var t=w6e(e,"string");return $x(t)==="symbol"?t:String(t)}function w6e(e,t){if($x(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($x(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function j6e(e,t){return S6e(e)||N6e(e,t)||xJ(e,t)||_6e()}function _6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1234In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xJ(e,t){if(e){if(typeof e=="string")return $E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $E(e,t)}}function $E(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function N6e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function S6e(e){if(Array.isArray(e))return e}var Jw=function(t,n,r){return t+(n-t)*r},UE=function(t){var n=t.from,r=t.to;return n!==r},A6e=function e(t,n,r){var i=Zy(function(s,o){if(UE(o)){var l=t(o.from,o.to,o.velocity),c=j6e(l,2),u=c[0],d=c[1];return Ra(Ra({},o),{},{from:u,velocity:d})}return o},n);return r<1?Zy(function(s,o){return UE(o)?Ra(Ra({},o),{},{velocity:Jw(o.velocity,i[s].velocity,r),from:Jw(o.from,i[s].from,r)}):o},n):e(t,i,r-1)};const k6e=(function(e,t,n,r,i){var s=r6e(e,t),o=s.reduce(function(g,y){return Ra(Ra({},g),{},zE({},y,[e[y],t[y]]))},{}),l=s.reduce(function(g,y){return Ra(Ra({},g),{},zE({},y,{from:e[y],velocity:0,to:t[y]}))},{}),c=-1,u,d,f=function(){return null},p=function(){return Zy(function(y,w){return w.from},l)},h=function(){return!Object.values(l).filter(UE).length},x=function(y){u||(u=y);var w=y-u,j=w/n.dt;l=A6e(n,l,j),i(Ra(Ra(Ra({},e),t),p())),u=y,h()||(c=requestAnimationFrame(f))},v=function(y){d||(d=y);var w=(y-d)/r,j=Zy(function(N,A){return Jw.apply(void 0,Sz(A).concat([n(w)]))},o);if(i(Ra(Ra(Ra({},e),t),j)),w<1)c=requestAnimationFrame(f);else{var _=Zy(function(N,A){return Jw.apply(void 0,Sz(A).concat([n(1)]))},o);i(Ra(Ra(Ra({},e),t),_))}};return f=n.isStepper?x:v,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}});function Ig(e){"@babel/helpers - typeof";return Ig=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},Ig(e)}var P6e=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function C6e(e,t){if(e==null)return{};var n=E6e(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function E6e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Uk(e){return I6e(e)||R6e(e)||O6e(e)||T6e()}function T6e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1235In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O6e(e,t){if(e){if(typeof e=="string")return GE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GE(e,t)}}function R6e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function I6e(e){if(Array.isArray(e))return GE(e)}function GE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kz(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 Fl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kz(Object(n),!0).forEach(function(r){My(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function My(e,t,n){return t=bJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L6e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M6e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bJ(r.key),r)}}function D6e(e,t,n){return t&&M6e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bJ(e){var t=F6e(e,"string");return Ig(t)==="symbol"?t:String(t)}function F6e(e,t){if(Ig(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ig(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B6e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VE(e,t)}function VE(e,t){return VE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},VE(e,t)}function q6e(e){var t=z6e();return function(){var r=e2(e),i;if(t){var s=e2(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return WE(this,i)}}function WE(e,t){if(t&&(Ig(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HE(e)}function HE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z6e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function e2(e){return e2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},e2(e)}var pd=(function(e){B6e(n,e);var t=q6e(n);function n(r,i){var s;L6e(this,n),s=t.call(this,r,i);var o=s.props,l=o.isActive,c=o.attributeName,u=o.from,d=o.to,f=o.steps,p=o.children,h=o.duration;if(s.handleStyleChange=s.handleStyleChange.bind(HE(s)),s.changeStyle=s.changeStyle.bind(HE(s)),!l||h<=0)return s.state={style:{}},typeof p=="function"&&(s.state={style:d}),WE(s);if(f&&f.length)s.state={style:f[0].style};else if(u){if(typeof p=="function")return s.state={style:u},WE(s);s.state={style:c?My({},c,u):u}}else s.state={style:{}};return s}return D6e(n,[{key:"componentDidMount",value:function(){var i=this.props,s=i.isActive,o=i.canBegin;this.mounted=!0,!(!s||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var s=this.props,o=s.isActive,l=s.canBegin,c=s.attributeName,u=s.shouldReAnimate,d=s.to,f=s.from,p=this.state.style;if(l){if(!o){var h={style:c?My({},c,d):d};this.state&&p&&(c&&p[c]!==d||!c&&p!==d)&&this.setState(h);return}if(!(HMe(i.to,d)&&i.canBegin&&i.isActive)){var x=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=x||u?f:i.to;if(this.state&&p){var g={style:c?My({},c,v):v};(c&&p[c]!==v||!c&&p!==v)&&this.setState(g)}this.runAnimation(Fl(Fl({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var s=this,o=i.from,l=i.to,c=i.duration,u=i.easing,d=i.begin,f=i.onAnimationEnd,p=i.onAnimationStart,h=k6e(o,l,g6e(u),c,this.changeStyle),x=function(){s.stopJSAnimation=h()};this.manager.start([p,d,x,c,f])}},{key:"runStepAnimation",value:function(i){var s=this,o=i.steps,l=i.begin,c=i.onAnimationStart,u=o[0],d=u.style,f=u.duration,p=f===void 0?0:f,h=function(v,g,y){if(y===0)return v;var w=g.duration,j=g.easing,_=j===void 0?"ease":j,N=g.style,A=g.properties,E=g.onAnimationEnd,k=y>0?o[y-1]:g,T=A||Object.keys(N);if(typeof _=="function"||_==="spring")return[].concat(Uk(v),[s.runJSAnimation.bind(s,{from:k.style,to:N,duration:w,easing:_}),w]);var D=jz(T,w,_),P=Fl(Fl(Fl({},k.style),N),{},{transition:D});return[].concat(Uk(v),[P,w,E]).filter(i6e)};return this.manager.start([c].concat(Uk(o.reduce(h,[d,Math.max(p,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=e6e());var s=i.begin,o=i.duration,l=i.attributeName,c=i.to,u=i.easing,d=i.onAnimationStart,f=i.onAnimationEnd,p=i.steps,h=i.children,x=this.manager;if(this.unSubscribe=x.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(i);return}if(p.length>1){this.runStepAnimation(i);return}var v=l?My({},l,c):c,g=jz(Object.keys(v),o,u);x.start([d,s,Fl(Fl({},v),{},{transition:g}),o,f])}},{key:"render",value:function(){var i=this.props,s=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=C6e(i,P6e),u=O.Children.count(s),d=this.state.style;if(typeof s=="function")return s(d);if(!l||u===0||o<=0)return s;var f=function(h){var x=h.props,v=x.style,g=v===void 0?{}:v,y=x.className,w=O.cloneElement(h,Fl(Fl({},c),{},{style:Fl(Fl({},g),d),className:y}));return w};return u===1?f(O.Children.only(s)):Ae.createElement("div",null,O.Children.map(s,function(p){return f(p)}))}}]),n})(O.PureComponent);pd.displayName="Animate";pd.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};pd.propTypes={from:pr.oneOfType([pr.object,pr.string]),to:pr.oneOfType([pr.object,pr.string]),attributeName:pr.string,duration:pr.number,begin:pr.number,easing:pr.oneOfType([pr.string,pr.func]),steps:pr.arrayOf(pr.shape({duration:pr.number.isRequired,style:pr.object.isRequired,easing:pr.oneOfType([pr.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),pr.func]),properties:pr.arrayOf("string"),onAnimationEnd:pr.func})),children:pr.oneOfType([pr.node,pr.func]),isActive:pr.bool,canBegin:pr.bool,onAnimationEnd:pr.func,shouldReAnimate:pr.bool,onAnimationStart:pr.func,onAnimationReStart:pr.func};function Ux(e){"@babel/helpers - typeof";return Ux=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},Ux(e)}function t2(){return t2=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},t2.apply(this,arguments)}function $6e(e,t){return W6e(e)||V6e(e,t)||G6e(e,t)||U6e()}function U6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1236In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G6e(e,t){if(e){if(typeof e=="string")return Pz(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pz(e,t)}}function Pz(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function V6e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function W6e(e){if(Array.isArray(e))return e}function Cz(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 Ez(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cz(Object(n),!0).forEach(function(r){H6e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function H6e(e,t,n){return t=K6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K6e(e){var t=Y6e(e,"string");return Ux(t)=="symbol"?t:t+""}function Y6e(e,t){if(Ux(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ux(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tz=function(t,n,r,i,s){var o=Math.min(Math.abs(r)/2,Math.abs(i)/2),l=i>=0?1:-1,c=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,d;if(o>0&&s instanceof Array){for(var f=[0,0,0,0],p=0,h=4;p<h;p++)f[p]=s[p]>o?o:s[p];d="M".concat(t,",").concat(n+l*f[0]),f[0]>0&&(d+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+c*f[0],",").concat(n)),d+="L ".concat(t+r-c*f[1],",").concat(n),f[1]>0&&(d+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`, 1237 `).concat(t+r,",").concat(n+l*f[1])),d+="L ".concat(t+r,",").concat(n+i-l*f[2]),f[2]>0&&(d+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`, 1238 `).concat(t+r-c*f[2],",").concat(n+i)),d+="L ".concat(t+c*f[3],",").concat(n+i),f[3]>0&&(d+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`, 1239 `).concat(t,",").concat(n+i-l*f[3])),d+="Z"}else if(o>0&&s===+s&&s>0){var x=Math.min(o,s);d="M ".concat(t,",").concat(n+l*x,` 1240 A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+c*x,",").concat(n,` 1241 L `).concat(t+r-c*x,",").concat(n,` 1242 A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+r,",").concat(n+l*x,` 1243 L `).concat(t+r,",").concat(n+i-l*x,` 1244 A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+r-c*x,",").concat(n+i,` 1245 L `).concat(t+c*x,",").concat(n+i,` 1246 A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t,",").concat(n+i-l*x," Z")}else d="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return d},X6e=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,s=n.x,o=n.y,l=n.width,c=n.height;if(Math.abs(l)>0&&Math.abs(c)>0){var u=Math.min(s,s+l),d=Math.max(s,s+l),f=Math.min(o,o+c),p=Math.max(o,o+c);return r>=u&&r<=d&&i>=f&&i<=p}return!1},Q6e={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gO=function(t){var n=Ez(Ez({},Q6e),t),r=O.useRef(),i=O.useState(-1),s=$6e(i,2),o=s[0],l=s[1];O.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var _=r.current.getTotalLength();_&&l(_)}catch{}},[]);var c=n.x,u=n.y,d=n.width,f=n.height,p=n.radius,h=n.className,x=n.animationEasing,v=n.animationDuration,g=n.animationBegin,y=n.isAnimationActive,w=n.isUpdateAnimationActive;if(c!==+c||u!==+u||d!==+d||f!==+f||d===0||f===0)return null;var j=Rn("recharts-rectangle",h);return w?Ae.createElement(pd,{canBegin:o>0,from:{width:d,height:f,x:c,y:u},to:{width:d,height:f,x:c,y:u},duration:v,animationEasing:x,isActive:w},function(_){var N=_.width,A=_.height,E=_.x,k=_.y;return Ae.createElement(pd,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:v,isActive:y,easing:x},Ae.createElement("path",t2({},hn(n,!0),{className:j,d:Tz(E,k,N,A,p),ref:r})))}):Ae.createElement("path",t2({},hn(n,!0),{className:j,d:Tz(c,u,d,f,p)}))},Z6e=["points","className","baseLinePoints","connectNulls"];function $m(){return $m=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},$m.apply(this,arguments)}function J6e(e,t){if(e==null)return{};var n=eDe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eDe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Oz(e){return iDe(e)||rDe(e)||nDe(e)||tDe()}function tDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1247In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nDe(e,t){if(e){if(typeof e=="string")return KE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KE(e,t)}}function rDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iDe(e){if(Array.isArray(e))return KE(e)}function KE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Rz=function(t){return t&&t.x===+t.x&&t.y===+t.y},aDe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){Rz(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),Rz(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Jy=function(t,n){var r=aDe(t);n&&(r=[r.reduce(function(s,o){return[].concat(Oz(s),Oz(o))},[])]);var i=r.map(function(s){return s.reduce(function(o,l,c){return"".concat(o).concat(c===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},sDe=function(t,n,r){var i=Jy(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Jy(n.reverse(),r).slice(1))},oDe=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,s=t.connectNulls,o=J6e(t,Z6e);if(!n||!n.length)return null;var l=Rn("recharts-polygon",r);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",u=sDe(n,i,s);return Ae.createElement("g",{className:l},Ae.createElement("path",$m({},hn(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),c?Ae.createElement("path",$m({},hn(o,!0),{fill:"none",d:Jy(n,s)})):null,c?Ae.createElement("path",$m({},hn(o,!0),{fill:"none",d:Jy(i,s)})):null)}var d=Jy(n,s);return Ae.createElement("path",$m({},hn(o,!0),{fill:d.slice(-1)==="Z"?o.fill:"none",className:l,d}))};function YE(){return YE=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},YE.apply(this,arguments)}var vO=function(t){var n=t.cx,r=t.cy,i=t.r,s=t.className,o=Rn("recharts-dot",s);return n===+n&&r===+r&&i===+i?O.createElement("circle",YE({},hn(t,!1),_w(t),{className:o,cx:n,cy:r,r:i})):null};function Gx(e){"@babel/helpers - typeof";return Gx=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},Gx(e)}var lDe=["x","y","top","left","width","height","className"];function XE(){return XE=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},XE.apply(this,arguments)}function Iz(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 cDe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Iz(Object(n),!0).forEach(function(r){uDe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uDe(e,t,n){return t=dDe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dDe(e){var t=fDe(e,"string");return Gx(t)=="symbol"?t:t+""}function fDe(e,t){if(Gx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hDe(e,t){if(e==null)return{};var n=pDe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pDe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var mDe=function(t,n,r,i,s,o){return"M".concat(t,",").concat(s,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},gDe=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,s=i===void 0?0:i,o=t.top,l=o===void 0?0:o,c=t.left,u=c===void 0?0:c,d=t.width,f=d===void 0?0:d,p=t.height,h=p===void 0?0:p,x=t.className,v=hDe(t,lDe),g=cDe({x:r,y:s,top:l,left:u,width:f,height:h},v);return!wt(r)||!wt(s)||!wt(f)||!wt(h)||!wt(l)||!wt(u)?null:Ae.createElement("path",XE({},hn(g,!0),{className:Rn("recharts-cross",x),d:mDe(r,s,f,h,l,u)}))},Gk,Lz;function vDe(){if(Lz)return Gk;Lz=1;var e=Dj(),t=IZ(),n=tu();function r(i,s){return i&&i.length?e(i,n(s,2),t):void 0}return Gk=r,Gk}var yDe=vDe();const xDe=Zn(yDe);var Vk,Mz;function bDe(){if(Mz)return Vk;Mz=1;var e=Dj(),t=tu(),n=LZ();function r(i,s){return i&&i.length?e(i,t(s,2),n):void 0}return Vk=r,Vk}var wDe=bDe();const jDe=Zn(wDe);var _De=["cx","cy","angle","ticks","axisLine"],NDe=["ticks","tick","angle","tickFormatter","stroke"];function Lg(e){"@babel/helpers - typeof";return Lg=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},Lg(e)}function ex(){return ex=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},ex.apply(this,arguments)}function Dz(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 kh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dz(Object(n),!0).forEach(function(r){Gj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fz(e,t){if(e==null)return{};var n=SDe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SDe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ADe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jJ(r.key),r)}}function kDe(e,t,n){return t&&Bz(e.prototype,t),n&&Bz(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function PDe(e,t,n){return t=n2(t),CDe(e,wJ()?Reflect.construct(t,n||[],n2(e).constructor):t.apply(e,n))}function CDe(e,t){if(t&&(Lg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EDe(e)}function EDe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wJ=function(){return!!e})()}function n2(e){return n2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},n2(e)}function TDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&QE(e,t)}function QE(e,t){return QE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},QE(e,t)}function Gj(e,t,n){return t=jJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jJ(e){var t=ODe(e,"string");return Lg(t)=="symbol"?t:t+""}function ODe(e,t){if(Lg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vj=(function(e){function t(){return ADe(this,t),PDe(this,t,arguments)}return TDe(t,e),kDe(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,s=this.props,o=s.angle,l=s.cx,c=s.cy;return $r(l,c,i,o)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,s=r.cy,o=r.angle,l=r.ticks,c=xDe(l,function(d){return d.coordinate||0}),u=jDe(l,function(d){return d.coordinate||0});return{cx:i,cy:s,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,s=r.cy,o=r.angle,l=r.ticks,c=r.axisLine,u=Fz(r,_De),d=l.reduce(function(x,v){return[Math.min(x[0],v.coordinate),Math.max(x[1],v.coordinate)]},[1/0,-1/0]),f=$r(i,s,d[0],o),p=$r(i,s,d[1],o),h=kh(kh(kh({},hn(u,!1)),{},{fill:"none"},hn(c,!1)),{},{x1:f.x,y1:f.y,x2:p.x,y2:p.y});return Ae.createElement("line",ex({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var r=this,i=this.props,s=i.ticks,o=i.tick,l=i.angle,c=i.tickFormatter,u=i.stroke,d=Fz(i,NDe),f=this.getTickTextAnchor(),p=hn(d,!1),h=hn(o,!1),x=s.map(function(v,g){var y=r.getTickValueCoord(v),w=kh(kh(kh(kh({textAnchor:f,transform:"rotate(".concat(90-l,", ").concat(y.x,", ").concat(y.y,")")},p),{},{stroke:"none",fill:u},h),{},{index:g},y),{},{payload:v});return Ae.createElement(Ar,ex({className:Rn("recharts-polar-radius-axis-tick",uJ(o)),key:"tick-".concat(v.coordinate)},xp(r.props,v,g)),t.renderTickItem(o,w,c?c(v.value,g):v.value))});return Ae.createElement(Ar,{className:"recharts-polar-radius-axis-ticks"},x)}},{key:"render",value:function(){var r=this.props,i=r.ticks,s=r.axisLine,o=r.tick;return!i||!i.length?null:Ae.createElement(Ar,{className:Rn("recharts-polar-radius-axis",this.props.className)},s&&this.renderAxisLine(),o&&this.renderTicks(),wa.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,s){var o;return Ae.isValidElement(r)?o=Ae.cloneElement(r,i):_n(r)?o=r(i):o=Ae.createElement(bp,ex({},i,{className:"recharts-polar-radius-axis-tick-value"}),s),o}}])})(O.PureComponent);Gj(Vj,"displayName","PolarRadiusAxis");Gj(Vj,"axisType","radiusAxis");Gj(Vj,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Mg(e){"@babel/helpers - typeof";return Mg=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},Mg(e)}function Dh(){return Dh=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},Dh.apply(this,arguments)}function qz(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 Ph(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qz(Object(n),!0).forEach(function(r){Wj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function RDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,NJ(r.key),r)}}function IDe(e,t,n){return t&&zz(e.prototype,t),n&&zz(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function LDe(e,t,n){return t=r2(t),MDe(e,_J()?Reflect.construct(t,n||[],r2(e).constructor):t.apply(e,n))}function MDe(e,t){if(t&&(Mg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DDe(e)}function DDe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_J=function(){return!!e})()}function r2(e){return r2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},r2(e)}function FDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ZE(e,t)}function ZE(e,t){return ZE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ZE(e,t)}function Wj(e,t,n){return t=NJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NJ(e){var t=BDe(e,"string");return Mg(t)=="symbol"?t:t+""}function BDe(e,t){if(Mg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qDe=Math.PI/180,$z=1e-5,Hj=(function(e){function t(){return RDe(this,t),LDe(this,t,arguments)}return FDe(t,e),IDe(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,s=i.cx,o=i.cy,l=i.radius,c=i.orientation,u=i.tickSize,d=u||8,f=$r(s,o,l,r.coordinate),p=$r(s,o,l+(c==="inner"?-1:1)*d,r.coordinate);return{x1:f.x,y1:f.y,x2:p.x,y2:p.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,s=Math.cos(-r.coordinate*qDe),o;return s>$z?o=i==="outer"?"start":"end":s<-$z?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,s=r.cy,o=r.radius,l=r.axisLine,c=r.axisLineType,u=Ph(Ph({},hn(this.props,!1)),{},{fill:"none"},hn(l,!1));if(c==="circle")return Ae.createElement(vO,Dh({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:s,r:o}));var d=this.props.ticks,f=d.map(function(p){return $r(i,s,o,p.coordinate)});return Ae.createElement(oDe,Dh({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,s=i.ticks,o=i.tick,l=i.tickLine,c=i.tickFormatter,u=i.stroke,d=hn(this.props,!1),f=hn(o,!1),p=Ph(Ph({},d),{},{fill:"none"},hn(l,!1)),h=s.map(function(x,v){var g=r.getTickLineCoord(x),y=r.getTickTextAnchor(x),w=Ph(Ph(Ph({textAnchor:y},d),{},{stroke:"none",fill:u},f),{},{index:v,payload:x,x:g.x2,y:g.y2});return Ae.createElement(Ar,Dh({className:Rn("recharts-polar-angle-axis-tick",uJ(o)),key:"tick-".concat(x.coordinate)},xp(r.props,x,v)),l&&Ae.createElement("line",Dh({className:"recharts-polar-angle-axis-tick-line"},p,g)),o&&t.renderTickItem(o,w,c?c(x.value,v):x.value))});return Ae.createElement(Ar,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var r=this.props,i=r.ticks,s=r.radius,o=r.axisLine;return s<=0||!i||!i.length?null:Ae.createElement(Ar,{className:Rn("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,s){var o;return Ae.isValidElement(r)?o=Ae.cloneElement(r,i):_n(r)?o=r(i):o=Ae.createElement(bp,Dh({},i,{className:"recharts-polar-angle-axis-tick-value"}),s),o}}])})(O.PureComponent);Wj(Hj,"displayName","PolarAngleAxis");Wj(Hj,"axisType","angleAxis");Wj(Hj,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Wk,Uz;function zDe(){if(Uz)return Wk;Uz=1;var e=IQ(),t=e(Object.getPrototypeOf,Object);return Wk=t,Wk}var Hk,Gz;function $De(){if(Gz)return Hk;Gz=1;var e=xd(),t=zDe(),n=bd(),r="[object Object]",i=Function.prototype,s=Object.prototype,o=i.toString,l=s.hasOwnProperty,c=o.call(Object);function u(d){if(!n(d)||e(d)!=r)return!1;var f=t(d);if(f===null)return!0;var p=l.call(f,"constructor")&&f.constructor;return typeof p=="function"&&p instanceof p&&o.call(p)==c}return Hk=u,Hk}var UDe=$De();const GDe=Zn(UDe);var Kk,Vz;function VDe(){if(Vz)return Kk;Vz=1;var e=xd(),t=bd(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return Kk=r,Kk}var WDe=VDe();const HDe=Zn(WDe);function Vx(e){"@babel/helpers - typeof";return Vx=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},Vx(e)}function i2(){return i2=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},i2.apply(this,arguments)}function KDe(e,t){return ZDe(e)||QDe(e,t)||XDe(e,t)||YDe()}function YDe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1248In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XDe(e,t){if(e){if(typeof e=="string")return Wz(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wz(e,t)}}function Wz(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function QDe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function ZDe(e){if(Array.isArray(e))return e}function Hz(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 Kz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hz(Object(n),!0).forEach(function(r){JDe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JDe(e,t,n){return t=e8e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e8e(e){var t=t8e(e,"string");return Vx(t)=="symbol"?t:t+""}function t8e(e,t){if(Vx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yz=function(t,n,r,i,s){var o=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-o/2,",").concat(n+s),l+="L ".concat(t+r-o/2-i,",").concat(n+s),l+="L ".concat(t,",").concat(n," Z"),l},n8e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},r8e=function(t){var n=Kz(Kz({},n8e),t),r=O.useRef(),i=O.useState(-1),s=KDe(i,2),o=s[0],l=s[1];O.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var j=r.current.getTotalLength();j&&l(j)}catch{}},[]);var c=n.x,u=n.y,d=n.upperWidth,f=n.lowerWidth,p=n.height,h=n.className,x=n.animationEasing,v=n.animationDuration,g=n.animationBegin,y=n.isUpdateAnimationActive;if(c!==+c||u!==+u||d!==+d||f!==+f||p!==+p||d===0&&f===0||p===0)return null;var w=Rn("recharts-trapezoid",h);return y?Ae.createElement(pd,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:u},to:{upperWidth:d,lowerWidth:f,height:p,x:c,y:u},duration:v,animationEasing:x,isActive:y},function(j){var _=j.upperWidth,N=j.lowerWidth,A=j.height,E=j.x,k=j.y;return Ae.createElement(pd,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:v,easing:x},Ae.createElement("path",i2({},hn(n,!0),{className:w,d:Yz(E,k,_,N,A),ref:r})))}):Ae.createElement("g",null,Ae.createElement("path",i2({},hn(n,!0),{className:w,d:Yz(c,u,d,f,p)})))},i8e=["option","shapeType","propTransformer","activeClassName","isActive"];function Wx(e){"@babel/helpers - typeof";return Wx=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},Wx(e)}function a8e(e,t){if(e==null)return{};var n=s8e(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function s8e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Xz(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 a2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xz(Object(n),!0).forEach(function(r){o8e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function o8e(e,t,n){return t=l8e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l8e(e){var t=c8e(e,"string");return Wx(t)=="symbol"?t:t+""}function c8e(e,t){if(Wx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function u8e(e,t){return a2(a2({},t),e)}function d8e(e,t){return e==="symbols"}function Qz(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return Ae.createElement(gO,n);case"trapezoid":return Ae.createElement(r8e,n);case"sector":return Ae.createElement(hJ,n);case"symbols":if(d8e(t))return Ae.createElement(L3,n);break;default:return null}}function f8e(e){return O.isValidElement(e)?e.props:e}function SJ(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?u8e:r,s=e.activeClassName,o=s===void 0?"recharts-active-shape":s,l=e.isActive,c=a8e(e,i8e),u;if(O.isValidElement(t))u=O.cloneElement(t,a2(a2({},c),f8e(t)));else if(_n(t))u=t(c);else if(GDe(t)&&!HDe(t)){var d=i(t,c);u=Ae.createElement(Qz,{shapeType:n,elementProps:d})}else{var f=c;u=Ae.createElement(Qz,{shapeType:n,elementProps:f})}return l?Ae.createElement(Ar,{className:o},u):u}function Kj(e,t){return t!=null&&"trapezoids"in e.props}function Yj(e,t){return t!=null&&"sectors"in e.props}function Hx(e,t){return t!=null&&"points"in e.props}function h8e(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,s=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&s}function p8e(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function m8e(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function g8e(e,t){var n;return Kj(e,t)?n=h8e:Yj(e,t)?n=p8e:Hx(e,t)&&(n=m8e),n}function v8e(e,t){var n;return Kj(e,t)?n="trapezoids":Yj(e,t)?n="sectors":Hx(e,t)&&(n="points"),n}function y8e(e,t){if(Kj(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Yj(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return Hx(e,t)?t.payload:{}}function x8e(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=v8e(n,t),s=y8e(n,t),o=r.filter(function(c,u){var d=qj(s,c),f=n.props[i].filter(function(x){var v=g8e(n,t);return v(x,t)}),p=n.props[i].indexOf(f[f.length-1]),h=u===p;return d&&h}),l=r.indexOf(o[o.length-1]);return l}var B1;function Dg(e){"@babel/helpers - typeof";return Dg=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},Dg(e)}function Um(){return Um=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},Um.apply(this,arguments)}function Zz(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 Br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zz(Object(n),!0).forEach(function(r){dl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kJ(r.key),r)}}function w8e(e,t,n){return t&&Jz(e.prototype,t),n&&Jz(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function j8e(e,t,n){return t=s2(t),_8e(e,AJ()?Reflect.construct(t,n||[],s2(e).constructor):t.apply(e,n))}function _8e(e,t){if(t&&(Dg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N8e(e)}function N8e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AJ=function(){return!!e})()}function s2(e){return s2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},s2(e)}function S8e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&JE(e,t)}function JE(e,t){return JE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},JE(e,t)}function dl(e,t,n){return t=kJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kJ(e){var t=A8e(e,"string");return Dg(t)=="symbol"?t:t+""}function A8e(e,t){if(Dg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nu=(function(e){function t(n){var r;return b8e(this,t),r=j8e(this,t,[n]),dl(r,"pieRef",null),dl(r,"sectorRefs",[]),dl(r,"i
1248d",T0("recharts-pie-")),dl(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),_n(i)&&i()}),dl(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),_n(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return S8e(t,e),w8e(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var s=this.props,o=s.label,l=s.labelLine,c=s.dataKey,u=s.valueKey,d=hn(this.props,!1),f=hn(o,!1),p=hn(l,!1),h=o&&o.offsetRadius||20,x=r.map(function(v,g){var y=(v.startAngle+v.endAngle)/2,w=$r(v.cx,v.cy,v.outerRadius+h,y),j=Br(Br(Br(Br({},d),v),{},{stroke:"none"},f),{},{index:g,textAnchor:t.getTextAnchor(w.x,v.cx)},w),_=Br(Br(Br(Br({},d),v),{},{fill:"none",stroke:v.fill},p),{},{index:g,points:[$r(v.cx,v.cy,v.outerRadius,y),w]}),N=c;return $n(c)&&$n(u)?N="value":$n(c)&&(N=u),Ae.createElement(Ar,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(g)},l&&t.renderLabelLineItem(l,_,"line"),t.renderLabelItem(o,j,es(v,N)))});return Ae.createElement(Ar,{className:"recharts-pie-labels"},x)}},{key:"renderSectorsStatically",value:function(r){var i=this,s=this.props,o=s.activeShape,l=s.blendStroke,c=s.inactiveShape;return r.map(function(u,d){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var f=i.isActiveIndex(d),p=c&&i.hasActiveIndex()?c:null,h=f?o:p,x=Br(Br({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return Ae.createElement(Ar,Um({ref:function(g){g&&!i.sectorRefs.includes(g)&&i.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},xp(i.props,u,d),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(d)}),Ae.createElement(SJ,Um({option:h,isActive:f,shapeType:"sector"},x)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,s=i.sectors,o=i.isAnimationActive,l=i.animationBegin,c=i.animationDuration,u=i.animationEasing,d=i.animationId,f=this.state,p=f.prevSectors,h=f.prevIsAnimationActive;return Ae.createElement(pd,{begin:l,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(d,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(x){var v=x.t,g=[],y=s&&s[0],w=y.startAngle;return s.forEach(function(j,_){var N=p&&p[_],A=_>0?Ro(j,"paddingAngle",0):0;if(N){var E=ff(N.endAngle-N.startAngle,j.endAngle-j.startAngle),k=Br(Br({},j),{},{startAngle:w+A,endAngle:w+E(v)+A});g.push(k),w=k.endAngle}else{var T=j.endAngle,D=j.startAngle,P=ff(0,T-D),R=P(v),q=Br(Br({},j),{},{startAngle:w+A,endAngle:w+R+A});g.push(q),w=q.endAngle}}),Ae.createElement(Ar,null,r.renderSectorsStatically(g))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(s){if(!s.altKey)switch(s.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,s=r.isAnimationActive,o=this.state.prevSectors;return s&&i&&i.length&&(!o||!qj(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,s=i.hide,o=i.sectors,l=i.className,c=i.label,u=i.cx,d=i.cy,f=i.innerRadius,p=i.outerRadius,h=i.isAnimationActive,x=this.state.isAnimationFinished;if(s||!o||!o.length||!wt(u)||!wt(d)||!wt(f)||!wt(p))return null;var v=Rn("recharts-pie",l);return Ae.createElement(Ar,{tabIndex:this.props.rootTabIndex,className:v,ref:function(y){r.pieRef=y}},this.renderSectors(),c&&this.renderLabels(o),wa.renderCallByParent(this.props,null,!1),(!h||x)&&Of.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,s){if(Ae.isValidElement(r))return Ae.cloneElement(r,i);if(_n(r))return r(i);var o=Rn("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return Ae.createElement(FE,Um({},i,{key:s,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,i,s){if(Ae.isValidElement(r))return Ae.cloneElement(r,i);var o=s;if(_n(r)&&(o=r(i),Ae.isValidElement(o)))return o;var l=Rn("recharts-pie-label-text",typeof r!="boolean"&&!_n(r)?r.className:"");return Ae.createElement(bp,Um({},i,{alignmentBaseline:"middle",className:l}),o)}}])})(O.PureComponent);B1=nu;dl(nu,"displayName","Pie");dl(nu,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minA
vendor: 1,237 bytes, line 1248
1248ngle:0,isAnimationActive:!mv.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});dl(nu,"parseDeltaAngle",function(e,t){var n=Ns(t-e),r=Math.min(Math.abs(t-e),360);return n*r});dl(nu,"getRealPieData",function(e){var t=e.data,n=e.children,r=hn(e,!1),i=pl(n,R0);return t&&t.length?t.map(function(s,o){return Br(Br(Br({payload:s},r),s),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(s){return Br(Br({},r),s.props)}):[]});dl(nu,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,s=t.height,o=cJ(i,s),l=r+Ss(e.cx,i,i/2),c=n+Ss(e.cy,s,s/2),u=Ss(e.innerRadius,o,0),d=Ss(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(i*i+s*s)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:d,maxRadius:f}});dl(nu,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?Br(Br({},t.type.defaultProps),t.props):t.props,i=B1.getRealPieData(r);if(!i||!i.length)return null;var s=r.cornerRadius,o=r.startAngle,l=r.endAngle,c=r.paddingAngle,u=r.dataKey,d=r.nameKey,f=r.valueKey,p=r.tooltipType,h=Math.abs(r.minAngle),x=B1.parseCoordinateOfPie(r,n),v=B1.parseDeltaAngle(o,l),g=Math.abs(v),y=u;$n(u)&&$n(f)?(Hl(!1,`Use "dataKey" to specify the value of pie,
1249 the props "valueKey" will be deprecated in 1.1.0`),y="value"):$n(u)&&(Hl(!1,`Use "dataKey" to specify the value of pie, 1250 the props "valueKey" will be deprecated in 1.1.0`),y=f);var w=i.filter(function(k){return es(k,y,0)!==0}).length,j=(g>=360?w:w-1)*c,_=g-w*h-j,N=i.reduce(function(k,T){var D=es(T,y,0);return k+(wt(D)?D:0)},0),A;if(N>0){var E;A=i.map(function(k,T){var D=es(k,y,0),P=es(k,d,T),R=(wt(D)?D:0)/N,q;T?q=E.endAngle+Ns(v)*c*(D!==0?1:0):q=o;var M=q+Ns(v)*((D!==0?h:0)+R*_),V=(q+M)/2,H=(x.innerRadius+x.outerRadius)/2,Z=[{name:P,value:D,payload:k,dataKey:y,type:p}],J=$r(x.cx,x.cy,H,V);return E=Br(Br(Br({percent:R,cornerRadius:s,name:P,tooltipPayload:Z,midAngle:V,middleRadius:H,tooltipPosition:J},k),x),{},{value:es(k,y),startAngle:q,endAngle:M,payload:k,paddingAngle:Ns(v)*c}),E})}return Br(Br({},x),{},{sectors:A,data:i})});var Yk,e$;function k8e(){if(e$)return Yk;e$=1;var e=Math.ceil,t=Math.max;function n(r,i,s,o){for(var l=-1,c=t(e((i-r)/(s||1)),0),u=Array(c);c--;)u[o?c:++l]=r,r+=s;return u}return Yk=n,Yk}var Xk,t$;function PJ(){if(t$)return Xk;t$=1;var e=XQ(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var s=i<0?-1:1;return s*n}return i===i?i:0}return Xk=r,Xk}var Qk,n$;function P8e(){if(n$)return Qk;n$=1;var e=k8e(),t=Ej(),n=PJ();function r(i){return function(s,o,l){return l&&typeof l!="number"&&t(s,o,l)&&(o=l=void 0),s=n(s),o===void 0?(o=s,s=0):o=n(o),l=l===void 0?s<o?1:-1:n(l),e(s,o,l,i)}}return Qk=r,Qk}var Zk,r$;function C8e(){if(r$)return Zk;r$=1;var e=P8e(),t=e();return Zk=t,Zk}var E8e=C8e();const o2=Zn(E8e);function Kx(e){"@babel/helpers - typeof";return Kx=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},Kx(e)}function i$(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 a$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i$(Object(n),!0).forEach(function(r){CJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CJ(e,t,n){return t=T8e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T8e(e){var t=O8e(e,"string");return Kx(t)=="symbol"?t:t+""}function O8e(e,t){if(Kx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var R8e=["Webkit","Moz","O","ms"],I8e=function(t,n){var r=t.replace(/(\w)/,function(s){return s.toUpperCase()}),i=R8e.reduce(function(s,o){return a$(a$({},s),{},CJ({},o+r,n))},{});return i[t]=n,i};function Fg(e){"@babel/helpers - typeof";return Fg=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},Fg(e)}function l2(){return l2=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},l2.apply(this,arguments)}function s$(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 Jk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s$(Object(n),!0).forEach(function(r){So(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,TJ(r.key),r)}}function M8e(e,t,n){return t&&o$(e.prototype,t),n&&o$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function D8e(e,t,n){return t=c2(t),F8e(e,EJ()?Reflect.construct(t,n||[],c2(e).constructor):t.apply(e,n))}function F8e(e,t){if(t&&(Fg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B8e(e)}function B8e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EJ=function(){return!!e})()}function c2(e){return c2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},c2(e)}function q8e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&e4(e,t)}function e4(e,t){return e4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},e4(e,t)}function So(e,t,n){return t=TJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TJ(e){var t=z8e(e,"string");return Fg(t)=="symbol"?t:t+""}function z8e(e,t){if(Fg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $8e=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,s=t.x,o=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var c=n.length,u=Xy().domain(o2(0,c)).range([s,s+o-l]),d=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:d}},l$=function(t){return t.changedTouches&&!!t.changedTouches.length},Bg=(function(e){function t(n){var r;return L8e(this,t),r=D8e(this,t,[n]),So(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),So(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),So(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,s=i.endIndex,o=i.onDragEnd,l=i.startIndex;o==null||o({endIndex:s,startIndex:l})}),r.detachDragEndListener()}),So(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),So(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),So(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),So(r,"handleSlideDragStart",function(i){var s=l$(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:s.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}
vendor: 106,775 bytes, lines 1250-1254
1250return q8e(t,e),M8e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,s=r.endX,o=this.state.scaleValues,l=this.props,c=l.gap,u=l.data,d=u.length-1,f=Math.min(i,s),p=Math.max(i,s),h=t.getIndexInRange(o,f),x=t.getIndexInRange(o,p);return{startIndex:h-h%c,endIndex:x===d?d:x-x%c}}},{key:"getTextOfTick",value:function(r){var i=this.props,s=i.data,o=i.tickFormatter,l=i.dataKey,c=es(s[r],l,r);return _n(o)?o(c,r):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,s=i.slideMoveStartX,o=i.startX,l=i.endX,c=this.props,u=c.x,d=c.width,f=c.travellerWidth,p=c.startIndex,h=c.endIndex,x=c.onChange,v=r.pageX-s;v>0?v=Math.min(v,u+d-f-l,u+d-f-o):v<0&&(v=Math.max(v,u-o,u-l));var g=this.getIndex({startX:o+v,endX:l+v});(g.startIndex!==p||g.endIndex!==h)&&x&&x(g),this.setState({startX:o+v,endX:l+v,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var s=l$(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:s.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,s=i.brushMoveStartX,o=i.movingTravellerId,l=i.endX,c=i.startX,u=this.state[o],d=this.props,f=d.x,p=d.width,h=d.travellerWidth,x=d.onChange,v=d.gap,g=d.data,y={startX:this.state.startX,endX:this.state.endX},w=r.pageX-s;w>0?w=Math.min(w,f+p-h-u):w<0&&(w=Math.max(w,f-u)),y[o]=u+w;var j=this.getIndex(y),_=j.startIndex,N=j.endIndex,A=function(){var k=g.length-1;return o==="startX"&&(l>c?_%v===0:N%v===0)||l<c&&N===k||o==="endX"&&(l>c?N%v===0:_%v===0)||l>c&&N===k};this.setState(So(So({},o,u+w),"brushMoveStartX",r.pageX),function(){x&&A()&&x(j)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var s=this,o=this.state,l=o.scaleValues,c=o.startX,u=o.endX,d=this.state[i],f=l.indexOf(d);if(f!==-1){var p=f+r;if(!(p===-1||p>=l.length)){var h=l[p];i==="startX"&&h>=u||i==="endX"&&h<=c||this.setState(So({},i,h),function(){s.props.onChange(s.getIndex({startX:s.state.startX,endX:s.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,s=r.y,o=r.width,l=r.height,c=r.fill,u=r.stroke;return Ae.createElement("rect",{stroke:u,fill:c,x:i,y:s,width:o,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,s=r.y,o=r.width,l=r.height,c=r.data,u=r.children,d=r.padding,f=O.Children.only(u);return f?Ae.cloneElement(f,{x:i,y:s,width:o,height:l,margin:d,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,i){var s,o,l=this,c=this.props,u=c.y,d=c.travellerWidth,f=c.height,p=c.traveller,h=c.ariaLabel,x=c.data,v=c.startIndex,g=c.endIndex,y=Math.max(r,this.props.x),w=Jk(Jk({},hn(this.props,!1)),{},{x:y,y:u,width:d,height:f}),j=h||"Min value: ".concat((s=x[v])===null||s===void 0?void 0:s.name,", Max value: ").concat((o=x[g])===null||o===void 0?void 0:o.name);return Ae.createElement(Ar,{tabIndex:0,role:"slider","aria-label":j,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(N){["ArrowLeft","ArrowRight"].includes(N.key)&&(N.preventDefault(),N.stopPropagation(),l.handleTravellerMoveKeyboard(N.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(p,w))}},{key:"renderSlide",value:function(r,i){var s=this.props,o=s.y,l=s.height,c=s.stroke,u=s.travellerWidth,d=Math.min(r,i)+u,f=Math.max(Math.abs(i-r)-u,0);return Ae.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:d,y:o,width:f,height:l})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,s=r.endIndex,o=r.y,l=r.height,c=r.travellerWidth,u=r.stroke,d=this.state,f=d.startX,p=d.endX,h=5,x={pointerEvents:"none",fill:u};return Ae.createElement(Ar,{className:"recharts-brush-texts"},Ae.createElement(bp,l2({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,p)-h,y:o+l/2},x),this.getTextOfTick(i)),Ae.createElement(bp,l2({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,p)+c+h,y:o+l/2},x),this.getTextOfTick(s)))}},{key:"render",value:function(){var r=this.props,i=r.data,s=r.className,o=r.children,l=r.x,c=r.y,u=r.width,d=r.height,f=r.alwaysShowText,p=this.state,h=p.startX,x=p.endX,v=p.isTextActive,g=p.isSlideMoving,y=p.isTravellerMoving,w=p.isTravellerFocused;if(!i||!i.length||!wt(l)||!wt(c)||!wt(u)||!wt(d)||u<=0||d<=0)return null;var j=Rn("recharts-brush",s),_=Ae.Children.count(o)===1,N=I8e("userSelect","none");return Ae.createElement(Ar,{className:j,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:N},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(h,x),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(x,"endX"),(v||g||y||w||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,s=r.y,o=r.width,l=r.height,c=r.stroke,u=Math.floor(s+l/2)-1;return Ae.createElement(Ae.Fragment,null,Ae.createElement("rect",{x:i,y:s,width:o,height:l,fill:c,stroke:"none"}),Ae.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),Ae.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var s;return Ae.isValidElement(r)?s=Ae.cloneElement(r,i):_n(r)?s=r(i):s=t.renderDefaultTraveller(i),s}},{key:"getDerivedStateFromProps",value:function(r,i){var s=r.data,o=r.width,l=r.x,c=r.travellerWidth,u=r.updateId,d=r.startIndex,f=r.endIndex;if(s!==i.prevData||u!==i.prevUpdateId)return Jk({prevData:s,prevTravellerWidth:c,prevUpdateId:u,prevX:l,prevWidth:o},s&&s.length?$8e({data:s,width:o,x:l,travellerWidth:c,startIndex:d,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||l!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([l,l+o-c]);var p=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:s,prevTravellerWidth:c,prevUpdateId:u,prevX:l,prevWidth:o,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(r,i){for(var s=r.length,o=0,l=s-1;l-o>1;){var c=Math.floor((o+l)/2);r[c]>i?l=c:o=c}return i>=r[l]?l:o}}])})(O.PureComponent);So(Bg,"displayName","Brush");So(Bg,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var eP,c$;function U8e(){if(c$)return eP;c$=1;var e=$3();function t(n,r){var i;return e(n,function(s,o,l){return i=r(s,o,l),!i}),!!i}return eP=t,eP}var tP,u$;function G8e(){if(u$)return tP;u$=1;var e=kQ(),t=tu(),n=U8e(),r=ro(),i=Ej();function s(o,l,c){var u=r(o)?e:n;return c&&i(o,l,c)&&(l=void 0),u(o,t(l,3))}return tP=s,tP}var V8e=G8e();const W8e=Zn(V8e);var Vc=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},nP,d$;function H8e(){if(d$)return nP;d$=1;var e=VQ();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return nP=t,nP}var rP,f$;function K8e(){if(f$)return rP;f$=1;var e=H8e(),t=UQ(),n=tu();function r(i,s){var o={};return s=n(s,3),t(i,function(l,c,u){e(o,c,s(l,c,u))}),o}return rP=r,rP}var Y8e=K8e();const X8e=Zn(Y8e);var iP,h$;function Q8e(){if(h$)return iP;h$=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!n(t[r],r,t))return!1;return!0}return iP=e,iP}var aP,p$;function Z8e(){if(p$)return aP;p$=1;var e=$3();function t(n,r){var i=!0;return e(n,function(s,o,l){return i=!!r(s,o,l),i}),i}return aP=t,aP}var sP,m$;function J8e(){if(m$)return sP;m$=1;var e=Q8e(),t=Z8e(),n=tu(),r=ro(),i=Ej();function s(o,l,c){var u=r(o)?e:t;return c&&i(o,l,c)&&(l=void 0),u(o,n(l,3))}return sP=s,sP}var eFe=J8e();const OJ=Zn(eFe);var tFe=["x","y"];function Yx(e){"@babel/helpers - typeof";return Yx=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},Yx(e)}function t4(){return t4=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},t4.apply(this,arguments)}function g$(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 wy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g$(Object(n),!0).forEach(function(r){nFe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nFe(e,t,n){return t=rFe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rFe(e){var t=iFe(e,"string");return Yx(t)=="symbol"?t:t+""}function iFe(e,t){if(Yx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aFe(e,t){if(e==null)return{};var n=sFe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sFe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function oFe(e,t){var n=e.x,r=e.y,i=aFe(e,tFe),s="".concat(n),o=parseInt(s,10),l="".concat(r),c=parseInt(l,10),u="".concat(t.height||i.height),d=parseInt(u,10),f="".concat(t.width||i.width),p=parseInt(f,10);return wy(wy(wy(wy(wy({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:d,width:p,name:t.name,radius:t.radius})}function v$(e){return Ae.createElement(SJ,t4({shapeType:"rectangle",propTransformer:oFe,activeClassName:"recharts-active-bar"},e))}var lFe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var s=wt(r)||EPe(r);return s?t(r,i):(s||jp(),n)}},cFe=["value","background"],RJ;function qg(e){"@babel/helpers - typeof";return qg=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},qg(e)}function uFe(e,t){if(e==null)return{};var n=dFe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dFe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function u2(){return u2=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},u2.apply(this,arguments)}function y$(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 Vi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y$(Object(n),!0).forEach(function(r){kf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,LJ(r.key),r)}}function hFe(e,t,n){return t&&x$(e.prototype,t),n&&x$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pFe(e,t,n){return t=d2(t),mFe(e,IJ()?Reflect.construct(t,n||[],d2(e).constructor):t.apply(e,n))}function mFe(e,t){if(t&&(qg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gFe(e)}function gFe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IJ=function(){return!!e})()}function d2(e){return d2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},d2(e)}function vFe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n4(e,t)}function n4(e,t){return n4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},n4(e,t)}function kf(e,t,n){return t=LJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LJ(e){var t=yFe(e,"string");return qg(t)=="symbol"?t:t+""}function yFe(e,t){if(qg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qs=(function(e){function t(){var n;fFe(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=pFe(this,t,[].concat(i)),kf(n,"state",{isAnimationFinished:!1}),kf(n,"id",T0("recharts-bar-")),kf(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),kf(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return vFe(t,e),hFe(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,s=this.props,o=s.shape,l=s.dataKey,c=s.activeIndex,u=s.activeBar,d=hn(this.props,!1);return r&&r.map(function(f,p){var h=p===c,x=h?u:o,v=Vi(Vi(Vi({},d),f),{},{isActive:h,option:x,index:p,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return Ae.createElement(Ar,u2({className:"recharts-bar-rectangle"},xp(i.props,f,p),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(p)}),Ae.createElement(v$,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,s=i.data,o=i.layout,l=i.isAnimationActive,c=i.animationBegin,u=i.animationDuration,d=i.animationEasing,f=i.animationId,p=this.state.prevData;return Ae.createElement(pd,{begin:c,duration:u,isActive:l,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var x=h.t,v=s.map(function(g,y){var w=p&&p[y];if(w){var j=ff(w.x,g.x),_=ff(w.y,g.y),N=ff(w.width,g.width),A=ff(w.height,g.height);return Vi(Vi({},g),{},{x:j(x),y:_(x),width:N(x),height:A(x)})}if(o==="horizontal"){var E=ff(0,g.height),k=E(x);return Vi(Vi({},g),{},{y:g.y+g.height-k,height:k})}var T=ff(0,g.width),D=T(x);return Vi(Vi({},g),{},{width:D})});return Ae.createElement(Ar,null,r.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,s=r.isAnimationActive,o=this.state.prevData;return s&&i&&i.length&&(!o||!qj(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,s=i.data,o=i.dataKey,l=i.activeIndex,c=hn(this.props.background,!1);return s.map(function(u,d){u.value;var f=u.background,p=uFe(u,cFe);if(!f)return null;var h=Vi(Vi(Vi(Vi(Vi({},p),{},{fill:"#eee"},f),c),xp(r.props,u,d)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:o,index:d,className:"recharts-bar-background-rectangle"});return Ae.createElement(v$,u2({key:"background-bar-".concat(d),option:r.props.background,isActive:d===l},h))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var s=this.props,o=s.data,l=s.xAxis,c=s.yAxis,u=s.layout,d=s.children,f=pl(d,Uj);if(!f)return null;var p=u==="vertical"?o[0].height/2:o[0].width/2,h=function(g,y){var w=Array.isArray(g.value)?g.value[1]:g.value;return{x:g.x,y:g.y,value:w,errorVal:es(g,y)}},x={clipPath:r?"url(#clipPath-".concat(i,")"):null};return Ae.createElement(Ar,x,f.map(function(v){return Ae.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:l,yAxis:c,layout:u,offset:p,dataPointFormatter:h})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,s=r.data,o=r.className,l=r.xAxis,c=r.yAxis,u=r.left,d=r.top,f=r.width,p=r.height,h=r.isAnimationActive,x=r.background,v=r.id;if(i||!s||!s.length)return null;var g=this.state.isAnimationFinished,y=Rn("recharts-bar",o),w=l&&l.allowDataOverflow,j=c&&c.allowDataOverflow,_=w||j,N=$n(v)?this.id:v;return Ae.createElement(Ar,{className:y},w||j?Ae.createElement("defs",null,Ae.createElement("clipPath",{id:"clipPath-".concat(N)},Ae.createElement("rect",{x:w?u:u-f/2,y:j?d:d-p/2,width:w?f:f*2,height:j?p:p*2}))):null,Ae.createElement(Ar,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(N,")"):null},x?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(_,N),(!h||g)&&Of.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])})(O.PureComponent);RJ=Qs;kf(Qs,"displayName","Bar");kf(Qs,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!mv.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});kf(Qs,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,s=e.xAxis,o=e.yAxis,l=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,d=e.dataStartIndex,f=e.displayedData,p=e.offset,h=UIe(r,n);if(!h)return null;var x=t.layout,v=n.type.defaultProps,g=v!==void 0?Vi(Vi({},v),n.props):n.props,y=g.dataKey,w=g.children,j=g.minPointSize,_=x==="horizontal"?o:s,N=u?_.scale.domain():null,A=XIe({numericAxis:_}),E=pl(w,R0),k=f.map(function(T,D){var P,R,q,M,V,H;u?P=GIe(u[d+D],N):(P=es(T,y),Array.isArray(P)||(P=[A,P]));var Z=lFe(j,RJ.defaultProps.minPointSize)(P[1],D);if(x==="horizontal"){var J,K=[o.scale(P[0]),o.scale(P[1])],F=K[0],$=K[1];R=Hq({axis:s,ticks:l,bandSize:i,offset:h.offset,entry:T,index:D}),q=(J=$??F)!==null&&J!==void 0?J:void 0,M=h.size;var B=F-$;if(V=Number.isNaN(B)?0:B,H={x:R,y:o.y,width:M,height:o.height},Math.abs(Z)>0&&Math.abs(V)<Math.abs(Z)){var z=Ns(V||Z)*(Math.abs(Z)-Math.abs(V));q-=z,V+=z}}else{var ee=[s.scale(P[0]),s.scale(P[1])],te=ee[0],X=ee[1];if(R=te,q=Hq({axis:o,ticks:c,bandSize:i,offset:h.offset,entry:T,index:D}),M=X-te,V=h.size,H={x:s.x,y:q,width:s.width,height:V},Math.abs(Z)>0&&Math.abs(M)<Math.abs(Z)){var ne=Ns(M||Z)*(Math.abs(Z)-Math.abs(M));M+=ne}}return Vi(Vi(Vi({},T),{},{x:R,y:q,width:M,height:V,value:u?P:P[1],payload:T,background:H},E&&E[D]&&E[D].props),{},{tooltipPayload:[oJ(n,T)],tooltipPosition:{x:R+M/2,y:q+V/2}})});return Vi({data:k,layout:x},p)});function Xx(e){"@babel/helpers - typeof";return Xx=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},Xx(e)}function xFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,MJ(r.key),r)}}function bFe(e,t,n){return t&&b$(e.prototype,t),n&&b$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function w$(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 Vl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w$(Object(n),!0).forEach(function(r){Xj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xj(e,t,n){return t=MJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MJ(e){var t=wFe(e,"string");return Xx(t)=="symbol"?t:t+""}function wFe(e,t){if(Xx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jFe=function(t,n,r,i,s){var o=t.width,l=t.height,c=t.layout,u=t.children,d=Object.keys(n),f={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},p=!!Ao(u,Qs);return d.reduce(function(h,x){var v=n[x],g=v.orientation,y=v.domain,w=v.padding,j=w===void 0?{}:w,_=v.mirror,N=v.reversed,A="".concat(g).concat(_?"Mirror":""),E,k,T,D,P;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var R=y[1]-y[0],q=1/0,M=v.categoricalDomain.sort(RPe);if(M.forEach(function(ee,te){te>0&&(q=Math.min((ee||0)-(M[te-1]||0),q))}),Number.isFinite(q)){var V=q/R,H=v.layout==="vertical"?r.height:r.width;if(v.padding==="gap"&&(E=V*H/2),v.padding==="no-gap"){var Z=Ss(t.barCategoryGap,V*H),J=V*H/2;E=J-Z-(J-Z)/H*Z}}}i==="xAxis"?k=[r.left+(j.left||0)+(E||0),r.left+r.width-(j.right||0)-(E||0)]:i==="yAxis"?k=c==="horizontal"?[r.top+r.height-(j.bottom||0),r.top+(j.top||0)]:[r.top+(j.top||0)+(E||0),r.top+r.height-(j.bottom||0)-(E||0)]:k=v.range,N&&(k=[k[1],k[0]]);var K=rJ(v,s,p),F=K.scale,$=K.realScaleType;F.domain(y).range(k),iJ(F);var B=aJ(F,Vl(Vl({},v),{},{realScaleType:$}));i==="xAxis"?(P=g==="top"&&!_||g==="bottom"&&_,T=r.left,D=f[A]-P*v.height):i==="yAxis"&&(P=g==="left"&&!_||g==="right"&&_,T=f[A]-P*v.width,D=r.top);var z=Vl(Vl(Vl({},v),B),{},{realScaleType:$,x:T,y:D,scale:F,width:i==="xAxis"?r.width:v.width,height:i==="yAxis"?r.height:v.height});return z.bandSize=Kw(z,B),!v.hide&&i==="xAxis"?f[A]+=(P?-1:1)*z.height:v.hide||(f[A]+=(P?-1:1)*z.width),Vl(Vl({},h),{},Xj({},x,z))},{})},DJ=function(t,n){var r=t.x,i=t.y,s=n.x,o=n.y;return{x:Math.min(r,s),y:Math.min(i,o),width:Math.abs(s-r),height:Math.abs(o-i)}},_Fe=function(t){var n=t.x1,r=t.y1,i=t.x2,s=t.y2;return DJ({x:n,y:r},{x:i,y:s})},FJ=(function(){function e(t){xFe(this,e),this.scale=t}return bFe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,s=r.position;if(n!==void 0){if(s)switch(s){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],s=r[r.length-1];return i<=s?n>=i&&n<=s:n>=s&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])})();Xj(FJ,"EPS",1e-4);var yO=function(t){var n=Object.keys(t).reduce(function(r,i){return Vl(Vl({},r),{},Xj({},i,FJ.create(t[i])))},{});return Vl(Vl({},n),{},{apply:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=s.bandAware,l=s.position;return X8e(i,function(c,u){return n[u].apply(c,{bandAware:o,position:l})})},isInRange:function(i){return OJ(i,function(s,o){return n[o].isInRange(s)})}})};function NFe(e){return(e%180+180)%180}var SFe=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=NFe(i),o=s*Math.PI/180,l=Math.atan(r/n),c=o>l&&o<Math.PI-l?r/Math.sin(o):n/Math.cos(o);return Math.abs(c)},oP,j$;function AFe(){if(j$)return oP;j$=1;var e=tu(),t=O0(),n=Pj();function r(i){return function(s,o,l){var c=Object(s);if(!t(s)){var u=e(o,3);s=n(s),o=function(f){return u(c[f],f,c)}}var d=i(s,o,l);return d>-1?c[u?s[d]:d]:void 0}}return oP=r,oP}var lP,_$;function kFe(){if(_$)return lP;_$=1;var e=PJ();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return lP=t,lP}var cP,N$;function PFe(){if(N$)return cP;N$=1;var e=FQ(),t=tu(),n=kFe(),r=Math.max;function i(s,o,l){var c=s==null?0:s.length;if(!c)return-1;var u=l==null?0:n(l);return u<0&&(u=r(c+u,0)),e(s,t(o,3),u)}return cP=i,cP}var uP,S$;function CFe(){if(S$)return uP;S$=1;var e=AFe(),t=PFe(),n=e(t);return uP=n,uP}var EFe=CFe();const TFe=Zn(EFe);var OFe=eQ();const RFe=Zn(OFe);var IFe=RFe(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),xO=O.createContext(void 0),bO=O.createContext(void 0),BJ=O.createContext(void 0),qJ=O.createContext({}),zJ=O.createContext(void 0),$J=O.createContext(0),UJ=O.createContext(0),A$=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,s=n.offset,o=t.clipPathId,l=t.children,c=t.width,u=t.height,d=IFe(s);return Ae.createElement(xO.Provider,{value:r},Ae.createElement(bO.Provider,{value:i},Ae.createElement(qJ.Provider,{value:s},Ae.createElement(BJ.Provider,{value:d},Ae.createElement(zJ.Provider,{value:o},Ae.createElement($J.Provider,{value:u},Ae.createElement(UJ.Provider,{value:c},l)))))))},LFe=function(){return O.useContext(zJ)},GJ=function(t){var n=O.useContext(xO);n==null&&jp();var r=n[t];return r==null&&jp(),r},MFe=function(){var t=O.useContext(xO);return pf(t)},DFe=function(){var t=O.useContext(bO),n=TFe(t,function(r){return OJ(r.domain,Number.isFinite)});return n||pf(t)},VJ=function(t){var n=O.useContext(bO);n==null&&jp();var r=n[t];return r==null&&jp(),r},FFe=function(){var t=O.useContext(BJ);return t},BFe=function(){return O.useContext(qJ)},wO=function(){return O.useContext(UJ)},jO=function(){return O.useContext($J)};function zg(e){"@babel/helpers - typeof";return zg=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},zg(e)}function qFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zFe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HJ(r.key),r)}}function $Fe(e,t,n){return t&&zFe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UFe(e,t,n){return t=f2(t),GFe(e,WJ()?Reflect.construct(t,n||[],f2(e).constructor):t.apply(e,n))}function GFe(e,t){if(t&&(zg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VFe(e)}function VFe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WJ=function(){return!!e})()}function f2(e){return f2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},f2(e)}function WFe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r4(e,t)}function r4(e,t){return r4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},r4(e,t)}function k$(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 P$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k$(Object(n),!0).forEach(function(r){_O(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _O(e,t,n){return t=HJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HJ(e){var t=HFe(e,"string");return zg(t)=="symbol"?t:t+""}function HFe(e,t){if(zg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function KFe(e,t){return ZFe(e)||QFe(e,t)||XFe(e,t)||YFe()}function YFe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1251In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XFe(e,t){if(e){if(typeof e=="string")return C$(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C$(e,t)}}function C$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function QFe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function ZFe(e){if(Array.isArray(e))return e}function i4(){return i4=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},i4.apply(this,arguments)}var JFe=function(t,n){var r;return Ae.isValidElement(t)?r=Ae.cloneElement(t,n):_n(t)?r=t(n):r=Ae.createElement("line",i4({},n,{className:"recharts-reference-line-line"})),r},e7e=function(t,n,r,i,s,o,l,c,u){var d=s.x,f=s.y,p=s.width,h=s.height;if(r){var x=u.y,v=t.y.apply(x,{position:o});if(Vc(u,"discard")&&!t.y.isInRange(v))return null;var g=[{x:d+p,y:v},{x:d,y:v}];return c==="left"?g.reverse():g}if(n){var y=u.x,w=t.x.apply(y,{position:o});if(Vc(u,"discard")&&!t.x.isInRange(w))return null;var j=[{x:w,y:f+h},{x:w,y:f}];return l==="top"?j.reverse():j}if(i){var _=u.segment,N=_.map(function(A){return t.apply(A,{position:o})});return Vc(u,"discard")&&W8e(N,function(A){return!t.isInRange(A)})?null:N}return null};function t7e(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,s=e.yAxisId,o=e.shape,l=e.className,c=e.alwaysShow,u=LFe(),d=GJ(i),f=VJ(s),p=FFe();if(!u||!p)return null;Hl(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=yO({x:d.scale,y:f.scale}),x=aa(t),v=aa(n),g=r&&r.length===2,y=e7e(h,x,v,g,p,e.position,d.orientation,f.orientation,e);if(!y)return null;var w=KFe(y,2),j=w[0],_=j.x,N=j.y,A=w[1],E=A.x,k=A.y,T=Vc(e,"hidden")?"url(#".concat(u,")"):void 0,D=P$(P$({clipPath:T},hn(e,!0)),{},{x1:_,y1:N,x2:E,y2:k});return Ae.createElement(Ar,{className:Rn("recharts-reference-line",l)},JFe(o,D),wa.renderCallByParent(e,_Fe({x1:_,y1:N,x2:E,y2:k})))}var NO=(function(e){function t(){return qFe(this,t),UFe(this,t,arguments)}return WFe(t,e),$Fe(t,[{key:"render",value:function(){return Ae.createElement(t7e,this.props)}}])})(Ae.Component);_O(NO,"displayName","ReferenceLine");_O(NO,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function a4(){return a4=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},a4.apply(this,arguments)}function $g(e){"@babel/helpers - typeof";return $g=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},$g(e)}function E$(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 T$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E$(Object(n),!0).forEach(function(r){Qj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function n7e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r7e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YJ(r.key),r)}}function i7e(e,t,n){return t&&r7e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function a7e(e,t,n){return t=h2(t),s7e(e,KJ()?Reflect.construct(t,n||[],h2(e).constructor):t.apply(e,n))}function s7e(e,t){if(t&&($g(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return o7e(e)}function o7e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KJ=function(){return!!e})()}function h2(e){return h2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},h2(e)}function l7e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s4(e,t)}function s4(e,t){return s4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},s4(e,t)}function Qj(e,t,n){return t=YJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YJ(e){var t=c7e(e,"string");return $g(t)=="symbol"?t:t+""}function c7e(e,t){if($g(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($g(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var u7e=function(t){var n=t.x,r=t.y,i=t.xAxis,s=t.yAxis,o=yO({x:i.scale,y:s.scale}),l=o.apply({x:n,y:r},{bandAware:!0});return Vc(t,"discard")&&!o.isInRange(l)?null:l},Zj=(function(e){function t(){return n7e(this,t),a7e(this,t,arguments)}return l7e(t,e),i7e(t,[{key:"render",value:function(){var r=this.props,i=r.x,s=r.y,o=r.r,l=r.alwaysShow,c=r.clipPathId,u=aa(i),d=aa(s);if(Hl(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!d)return null;var f=u7e(this.props);if(!f)return null;var p=f.x,h=f.y,x=this.props,v=x.shape,g=x.className,y=Vc(this.props,"hidden")?"url(#".concat(c,")"):void 0,w=T$(T$({clipPath:y},hn(this.props,!0)),{},{cx:p,cy:h});return Ae.createElement(Ar,{className:Rn("recharts-reference-dot",g)},t.renderDot(v,w),wa.renderCallByParent(this.props,{x:p-o,y:h-o,width:2*o,height:2*o}))}}])})(Ae.Component);Qj(Zj,"displayName","ReferenceDot");Qj(Zj,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Qj(Zj,"renderDot",function(e,t){var n;return Ae.isValidElement(e)?n=Ae.cloneElement(e,t):_n(e)?n=e(t):n=Ae.createElement(vO,a4({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function o4(){return o4=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},o4.apply(this,arguments)}function Ug(e){"@babel/helpers - typeof";return Ug=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},Ug(e)}function O$(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 R$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O$(Object(n),!0).forEach(function(r){Jj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d7e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f7e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QJ(r.key),r)}}function h7e(e,t,n){return t&&f7e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function p7e(e,t,n){return t=p2(t),m7e(e,XJ()?Reflect.construct(t,n||[],p2(e).constructor):t.apply(e,n))}function m7e(e,t){if(t&&(Ug(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g7e(e)}function g7e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XJ=function(){return!!e})()}function p2(e){return p2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},p2(e)}function v7e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l4(e,t)}function l4(e,t){return l4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},l4(e,t)}function Jj(e,t,n){return t=QJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QJ(e){var t=y7e(e,"string");return Ug(t)=="symbol"?t:t+""}function y7e(e,t){if(Ug(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ug(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var x7e=function(t,n,r,i,s){var o=s.x1,l=s.x2,c=s.y1,u=s.y2,d=s.xAxis,f=s.yAxis;if(!d||!f)return null;var p=yO({x:d.scale,y:f.scale}),h={x:t?p.x.apply(o,{position:"start"}):p.x.rangeMin,y:r?p.y.apply(c,{position:"start"}):p.y.rangeMin},x={x:n?p.x.apply(l,{position:"end"}):p.x.rangeMax,y:i?p.y.apply(u,{position:"end"}):p.y.rangeMax};return Vc(s,"discard")&&(!p.isInRange(h)||!p.isInRange(x))?null:DJ(h,x)},e_=(function(e){function t(){return d7e(this,t),p7e(this,t,arguments)}return v7e(t,e),h7e(t,[{key:"render",value:function(){var r=this.props,i=r.x1,s=r.x2,o=r.y1,l=r.y2,c=r.className,u=r.alwaysShow,d=r.clipPathId;Hl(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=aa(i),p=aa(s),h=aa(o),x=aa(l),v=this.props.shape;if(!f&&!p&&!h&&!x&&!v)return null;var g=x7e(f,p,h,x,this.props);if(!g&&!v)return null;var y=Vc(this.props,"hidden")?"url(#".concat(d,")"):void 0;return Ae.createElement(Ar,{className:Rn("recharts-reference-area",c)},t.renderRect(v,R$(R$({clipPath:y},hn(this.props,!0)),g)),wa.renderCallByParent(this.props,g))}}])})(Ae.Component);Jj(e_,"displayName","ReferenceArea");Jj(e_,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Jj(e_,"renderRect",function(e,t){var n;return Ae.isValidElement(e)?n=Ae.cloneElement(e,t):_n(e)?n=e(t):n=Ae.createElement(gO,o4({},t,{className:"recharts-reference-area-rect"})),n});function ZJ(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function b7e(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return SFe(r,n)}function w7e(e,t,n){var r=n==="width",i=e.x,s=e.y,o=e.width,l=e.height;return t===1?{start:r?i:s,end:r?i+o:s+l}:{start:r?i+o:s+l,end:r?i:s}}function m2(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var s=n();return e*(t-e*s/2-r)>=0&&e*(t+e*s/2-i)<=0}function j7e(e,t){return ZJ(e,t+1)}function _7e(e,t,n,r,i){for(var s=(r||[]).slice(),o=t.start,l=t.end,c=0,u=1,d=o,f=function(){var x=r==null?void 0:r[c];if(x===void 0)return{v:ZJ(r,u)};var v=c,g,y=function(){return g===void 0&&(g=n(x,v)),g},w=x.coordinate,j=c===0||m2(e,w,y,d,l);j||(c=0,d=o,u+=1),j&&(d=w+e*(y()/2+i),c+=u)},p;u<=s.length;)if(p=f(),p)return p.v;return[]}function Qx(e){"@babel/helpers - typeof";return Qx=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},Qx(e)}function I$(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 Xa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I$(Object(n),!0).forEach(function(r){N7e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N7e(e,t,n){return t=S7e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S7e(e){var t=A7e(e,"string");return Qx(t)=="symbol"?t:t+""}function A7e(e,t){if(Qx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k7e(e,t,n,r,i){for(var s=(r||[]).slice(),o=s.length,l=t.start,c=t.end,u=function(p){var h=s[p],x,v=function(){return x===void 0&&(x=n(h,p)),x};if(p===o-1){var g=e*(h.coordinate+e*v()/2-c);s[p]=h=Xa(Xa({},h),{},{tickCoord:g>0?h.coordinate-g*e:h.coordinate})}else s[p]=h=Xa(Xa({},h),{},{tickCoord:h.coordinate});var y=m2(e,h.tickCoord,v,l,c);y&&(c=h.tickCoord-e*(v()/2+i),s[p]=Xa(Xa({},h),{},{isShow:!0}))},d=o-1;d>=0;d--)u(d);return s}function P7e(e,t,n,r,i,s){var o=(r||[]).slice(),l=o.length,c=t.start,u=t.end;if(s){var d=r[l-1],f=n(d,l-1),p=e*(d.coordinate+e*f/2-u);o[l-1]=d=Xa(Xa({},d),{},{tickCoord:p>0?d.coordinate-p*e:d.coordinate});var h=m2(e,d.tickCoord,function(){return f},c,u);h&&(u=d.tickCoord-e*(f/2+i),o[l-1]=Xa(Xa({},d),{},{isShow:!0}))}for(var x=s?l-1:l,v=function(w){var j=o[w],_,N=function(){return _===void 0&&(_=n(j,w)),_};if(w===0){var A=e*(j.coordinate-e*N()/2-c);o[w]=j=Xa(Xa({},j),{},{tickCoord:A<0?j.coordinate-A*e:j.coordinate})}else o[w]=j=Xa(Xa({},j),{},{tickCoord:j.coordinate});var E=m2(e,j.tickCoord,N,c,u);E&&(c=j.tickCoord+e*(N()/2+i),o[w]=Xa(Xa({},j),{},{isShow:!0}))},g=0;g<x;g++)v(g);return o}function SO(e,t,n){var r=e.tick,i=e.ticks,s=e.viewBox,o=e.minTickGap,l=e.orientation,c=e.interval,u=e.tickFormatter,d=e.unit,f=e.angle;if(!i||!i.length||!r)return[];if(wt(c)||mv.isSsr)return j7e(i,typeof c=="number"&&wt(c)?c:0);var p=[],h=l==="top"||l==="bottom"?"width":"height",x=d&&h==="width"?Yy(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},v=function(j,_){var N=_n(u)?u(j.value,_):j.value;return h==="width"?b7e(Yy(N,{fontSize:t,letterSpacing:n}),x,f):Yy(N,{fontSize:t,letterSpacing:n})[h]},g=i.length>=2?Ns(i[1].coordinate-i[0].coordinate):1,y=w7e(s,g,h);return c==="equidistantPreserveStart"?_7e(g,y,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?p=P7e(g,y,v,i,o,c==="preserveStartEnd"):p=k7e(g,y,v,i,o),p.filter(function(w){return w.isShow}))}var C7e=["viewBox"],E7e=["viewBox"],T7e=["ticks"];function Gg(e){"@babel/helpers - typeof";return Gg=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},Gg(e)}function Gm(){return Gm=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},Gm.apply(this,arguments)}function L$(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 na(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L$(Object(n),!0).forEach(function(r){AO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dP(e,t){if(e==null)return{};var n=O7e(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function O7e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function R7e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eee(r.key),r)}}function I7e(e,t,n){return t&&M$(e.prototype,t),n&&M$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function L7e(e,t,n){return t=g2(t),M7e(e,JJ()?Reflect.construct(t,n||[],g2(e).constructor):t.apply(e,n))}function M7e(e,t){if(t&&(Gg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D7e(e)}function D7e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JJ=function(){return!!e})()}function g2(e){return g2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},g2(e)}function F7e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c4(e,t)}function c4(e,t){return c4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},c4(e,t)}function AO(e,t,n){return t=eee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eee(e){var t=B7e(e,"string");return Gg(t)=="symbol"?t:t+""}function B7e(e,t){if(Gg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xv=(function(e){function t(n){var r;return R7e(this,t),r=L7e(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return F7e(t,e),I7e(t,[{key:"shouldComponentUpdate",value:function(r,i){var s=r.viewBox,o=dP(r,C7e),l=this.props,c=l.viewBox,u=dP(l,E7e);return!eg(s,c)||!eg(o,u)||!eg(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,s=i.x,o=i.y,l=i.width,c=i.height,u=i.orientation,d=i.tickSize,f=i.mirror,p=i.tickMargin,h,x,v,g,y,w,j=f?-1:1,_=r.tickSize||d,N=wt(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":h=x=r.coordinate,g=o+ +!f*c,v=g-j*_,w=v-j*p,y=N;break;case"left":v=g=r.coordinate,x=s+ +!f*l,h=x-j*_,y=h-j*p,w=N;break;case"right":v=g=r.coordinate,x=s+ +f*l,h=x+j*_,y=h+j*p,w=N;break;default:h=x=r.coordinate,g=o+ +f*c,v=g+j*_,w=v+j*p,y=N;break}return{line:{x1:h,y1:v,x2:x,y2:g},tick:{x:y,y:w}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,s=r.mirror,o;switch(i){case"left":o=s?"start":"end";break;case"right":o=s?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,s=r.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=s?"start":"end";break;default:o=s?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,s=r.y,o=r.width,l=r.height,c=r.orientation,u=r.mirror,d=r.axisLine,f=na(na(na({},hn(this.props,!1)),hn(d,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var p=+(c==="top"&&!u||c==="bottom"&&u);f=na(na({},f),{},{x1:i,y1:s+p*l,x2:i+o,y2:s+p*l})}else{var h=+(c==="left"&&!u||c==="right"&&u);f=na(na({},f),{},{x1:i+h*o,y1:s,x2:i+h*o,y2:s+l})}return Ae.createElement("line",Gm({},f,{className:Rn("recharts-cartesian-axis-line",Ro(d,"className"))}))}},{key:"renderTicks",value:function(r,i,s){var o=this,l=this.props,c=l.tickLine,u=l.stroke,d=l.tick,f=l.tickFormatter,p=l.unit,h=SO(na(na({},this.props),{},{ticks:r}),i,s),x=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),g=hn(this.props,!1),y=hn(d,!1),w=na(na({},g),{},{fill:"none"},hn(c,!1)),j=h.map(function(_,N){var A=o.getTickLineCoord(_),E=A.line,k=A.tick,T=na(na(na(na({textAnchor:x,verticalAnchor:v},g),{},{stroke:"none",fill:u},y),k),{},{index:N,payload:_,visibleTicksCount:h.length,tickFormatter:f});return Ae.createElement(Ar,Gm({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},xp(o.props,_,N)),c&&Ae.createElement("line",Gm({},w,E,{className:Rn("recharts-cartesian-axis-tick-line",Ro(c,"className"))})),d&&t.renderTickItem(d,T,"".concat(_n(f)?f(_.value,N):_.value).concat(p||"")))});return Ae.createElement("g",{className:"recharts-cartesian-axis-ticks"},j)}},{key:"render",value:function(){var r=this,i=this.props,s=i.axisLine,o=i.width,l=i.height,c=i.ticksGenerator,u=i.className,d=i.hide;if(d)return null;var f=this.props,p=f.ticks,h=dP(f,T7e),x=p;return _n(c)&&(x=p&&p.length>0?c(this.props):c(h)),o<=0||l<=0||!x||!x.length?null:Ae.createElement(Ar,{className:Rn("recharts-cartesian-axis",u),ref:function(g){r.layerReference=g}},s&&this.renderAxisLine(),this.renderTicks(x,this.state.fontSize,this.state.letterSpacing),wa.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,s){var o,l=Rn(i.className,"recharts-cartesian-axis-tick-value");return Ae.isValidElement(r)?o=Ae.cloneElement(r,na(na({},i),{},{className:l})):_n(r)?o=r(na(na({},i),{},{className:l})):o=Ae.createElement(bp,Gm({},i,{className:"recharts-cartesian-axis-tick-value"}),s),o}}])})(O.Component);AO(xv,"displayName","CartesianAxis");AO(xv,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var q7e=["x1","y1","x2","y2","key"],z7e=["offset"];function _p(e){"@babel/helpers - typeof";return _p=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},_p(e)}function D$(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 Za(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D$(Object(n),!0).forEach(function(r){$7e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $7e(e,t,n){return t=U7e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U7e(e){var t=G7e(e,"string");return _p(t)=="symbol"?t:t+""}function G7e(e,t){if(_p(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_p(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vh(){return Vh=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},Vh.apply(this,arguments)}function F$(e,t){if(e==null)return{};var n=V7e(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function V7e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var W7e=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,s=t.y,o=t.width,l=t.height,c=t.ry;return Ae.createElement("rect",{x:i,y:s,ry:c,width:o,height:l,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function tee(e,t){var n;if(Ae.isValidElement(e))n=Ae.cloneElement(e,t);else if(_n(e))n=e(t);else{var r=t.x1,i=t.y1,s=t.x2,o=t.y2,l=t.key,c=F$(t,q7e),u=hn(c,!1);u.offset;var d=F$(u,z7e);n=Ae.createElement("line",Vh({},d,{x1:r,y1:i,x2:s,y2:o,fill:"none",key:l}))}return n}function H7e(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,s=e.horizontalPoints;if(!i||!s||!s.length)return null;var o=s.map(function(l,c){var u=Za(Za({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(c),index:c});return tee(i,u)});return Ae.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function K7e(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,s=e.verticalPoints;if(!i||!s||!s.length)return null;var o=s.map(function(l,c){var u=Za(Za({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(c),index:c});return tee(i,u)});return Ae.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Y7e(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,s=e.width,o=e.height,l=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var d=l.map(function(p){return Math.round(p+i-i)}).sort(function(p,h){return p-h});i!==d[0]&&d.unshift(0);var f=d.map(function(p,h){var x=!d[h+1],v=x?i+o-p:d[h+1]-p;if(v<=0)return null;var g=h%t.length;return Ae.createElement("rect",{key:"react-".concat(h),y:p,x:r,height:v,width:s,stroke:"none",fill:t[g],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return Ae.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function X7e(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,s=e.x,o=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var d=u.map(function(p){return Math.round(p+s-s)}).sort(function(p,h){return p-h});s!==d[0]&&d.unshift(0);var f=d.map(function(p,h){var x=!d[h+1],v=x?s+l-p:d[h+1]-p;if(v<=0)return null;var g=h%r.length;return Ae.createElement("rect",{key:"react-".concat(h),x:p,y:o,width:v,height:c,stroke:"none",fill:r[g],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return Ae.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var Q7e=function(t,n){var r=t.xAxis,i=t.width,s=t.height,o=t.offset;return nJ(SO(Za(Za(Za({},xv.defaultProps),r),{},{ticks:Xu(r,!0),viewBox:{x:0,y:0,width:i,height:s}})),o.left,o.left+o.width,n)},Z7e=function(t,n){var r=t.yAxis,i=t.width,s=t.height,o=t.offset;return nJ(SO(Za(Za(Za({},xv.defaultProps),r),{},{ticks:Xu(r,!0),viewBox:{x:0,y:0,width:i,height:s}})),o.top,o.top+o.height,n)},Tm={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function rg(e){var t,n,r,i,s,o,l=wO(),c=jO(),u=BFe(),d=Za(Za({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Tm.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Tm.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Tm.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Tm.horizontalFill,vertical:(s=e.vertical)!==null&&s!==void 0?s:Tm.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Tm.verticalFill,x:wt(e.x)?e.x:u.left,y:wt(e.y)?e.y:u.top,width:wt(e.width)?e.width:u.width,height:wt(e.height)?e.height:u.height}),f=d.x,p=d.y,h=d.width,x=d.height,v=d.syncWithTicks,g=d.horizontalValues,y=d.verticalValues,w=MFe(),j=DFe();if(!wt(h)||h<=0||!wt(x)||x<=0||!wt(f)||f!==+f||!wt(p)||p!==+p)return null;var _=d.verticalCoordinatesGenerator||Q7e,N=d.horizontalCoordinatesGenerator||Z7e,A=d.horizontalPoints,E=d.verticalPoints;if((!A||!A.length)&&_n(N)){var k=g&&g.length,T=N({yAxis:j?Za(Za({},j),{},{ticks:k?g:j.ticks}):void 0,width:l,height:c,offset:u},k?!0:v);Hl(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(_p(T),"]")),Array.isArray(T)&&(A=T)}if((!E||!E.length)&&_n(_)){var D=y&&y.length,P=_({xAxis:w?Za(Za({},w),{},{ticks:D?y:w.ticks}):void 0,width:l,height:c,offset:u},D?!0:v);Hl(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(_p(P),"]")),Array.isArray(P)&&(E=P)}return Ae.createElement("g",{className:"recharts-cartesian-grid"},Ae.createElement(W7e,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),Ae.createElement(H7e,Vh({},d,{offset:u,horizontalPoints:A,xAxis:w,yAxis:j})),Ae.createElement(K7e,Vh({},d,{offset:u,verticalPoints:E,xAxis:w,yAxis:j})),Ae.createElement(Y7e,Vh({},d,{horizontalPoints:A})),Ae.createElement(X7e,Vh({},d,{verticalPoints:E})))}rg.displayName="CartesianGrid";function Vg(e){"@babel/helpers - typeof";return Vg=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},Vg(e)}function J7e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eBe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iee(r.key),r)}}function tBe(e,t,n){return t&&eBe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nBe(e,t,n){return t=v2(t),rBe(e,nee()?Reflect.construct(t,n||[],v2(e).constructor):t.apply(e,n))}function rBe(e,t){if(t&&(Vg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iBe(e)}function iBe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nee=function(){return!!e})()}function v2(e){return v2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},v2(e)}function aBe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u4(e,t)}function u4(e,t){return u4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},u4(e,t)}function ree(e,t,n){return t=iee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iee(e){var t=sBe(e,"string");return Vg(t)=="symbol"?t:t+""}function sBe(e,t){if(Vg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function d4(){return d4=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},d4.apply(this,arguments)}function oBe(e){var t=e.xAxisId,n=wO(),r=jO(),i=GJ(t);return i==null?null:O.createElement(xv,d4({},i,{className:Rn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(o){return Xu(o,!0)}}))}var Rf=(function(e){function t(){return J7e(this,t),nBe(this,t,arguments)}return aBe(t,e),tBe(t,[{key:"render",value:function(){return O.createElement(oBe,this.props)}}])})(O.Component);ree(Rf,"displayName","XAxis");ree(Rf,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Wg(e){"@babel/helpers - typeof";return Wg=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},Wg(e)}function lBe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cBe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oee(r.key),r)}}function uBe(e,t,n){return t&&cBe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dBe(e,t,n){return t=y2(t),fBe(e,aee()?Reflect.construct(t,n||[],y2(e).constructor):t.apply(e,n))}function fBe(e,t){if(t&&(Wg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hBe(e)}function hBe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aee=function(){return!!e})()}function y2(e){return y2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},y2(e)}function pBe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f4(e,t)}function f4(e,t){return f4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},f4(e,t)}function see(e,t,n){return t=oee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oee(e){var t=mBe(e,"string");return Wg(t)=="symbol"?t:t+""}function mBe(e,t){if(Wg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function h4(){return h4=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},h4.apply(this,arguments)}var gBe=function(t){var n=t.yAxisId,r=wO(),i=jO(),s=VJ(n);return s==null?null:O.createElement(xv,h4({},s,{className:Rn("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(l){return Xu(l,!0)}}))},If=(function(e){function t(){return lBe(this,t),dBe(this,t,arguments)}return pBe(t,e),uBe(t,[{key:"render",value:function(){return O.createElement(gBe,this.props)}}])})(O.Component);see(If,"displayName","YAxis");see(If,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function B$(e){return bBe(e)||xBe(e)||yBe(e)||vBe()}function vBe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1252In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yBe(e,t){if(e){if(typeof e=="string")return p4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p4(e,t)}}function xBe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bBe(e){if(Array.isArray(e))return p4(e)}function p4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m4=function(t,n,r,i,s){var o=pl(t,NO),l=pl(t,Zj),c=[].concat(B$(o),B$(l)),u=pl(t,e_),d="".concat(i,"Id"),f=i[0],p=n;if(c.length&&(p=c.reduce(function(v,g){if(g.props[d]===r&&Vc(g.props,"extendDomain")&&wt(g.props[f])){var y=g.props[f];return[Math.min(v[0],y),Math.max(v[1],y)]}return v},p)),u.length){var h="".concat(f,"1"),x="".concat(f,"2");p=u.reduce(function(v,g){if(g.props[d]===r&&Vc(g.props,"extendDomain")&&wt(g.props[h])&&wt(g.props[x])){var y=g.props[h],w=g.props[x];return[Math.min(v[0],y,w),Math.max(v[1],y,w)]}return v},p)}return s&&s.length&&(p=s.reduce(function(v,g){return wt(g)?[Math.min(v[0],g),Math.max(v[1],g)]:v},p)),p},fP={exports:{}},q$;function wBe(){return q$||(q$=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function s(c,u,d,f,p){if(typeof d!="function")throw new TypeError("The listener must be a function");var h=new i(d,f||c,p),x=n?n+u:u;return c._events[x]?c._events[x].fn?c._events[x]=[c._events[x],h]:c._events[x].push(h):(c._events[x]=h,c._eventsCount++),c}function o(c,u){--c._eventsCount===0?c._events=new r:delete c._events[u]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],d,f;if(this._eventsCount===0)return u;for(f in d=this._events)t.call(d,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},l.prototype.listeners=function(u){var d=n?n+u:u,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var p=0,h=f.length,x=new Array(h);p<h;p++)x[p]=f[p].fn;return x},l.prototype.listenerCount=function(u){var d=n?n+u:u,f=this._events[d];return f?f.fn?1:f.length:0},l.prototype.emit=function(u,d,f,p,h,x){var v=n?n+u:u;if(!this._events[v])return!1;var g=this._events[v],y=arguments.length,w,j;if(g.fn){switch(g.once&&this.removeListener(u,g.fn,void 0,!0),y){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,d),!0;case 3:return g.fn.call(g.context,d,f),!0;case 4:return g.fn.call(g.context,d,f,p),!0;case 5:return g.fn.call(g.context,d,f,p,h),!0;case 6:return g.fn.call(g.context,d,f,p,h,x),!0}for(j=1,w=new Array(y-1);j<y;j++)w[j-1]=arguments[j];g.fn.apply(g.context,w)}else{var _=g.length,N;for(j=0;j<_;j++)switch(g[j].once&&this.removeListener(u,g[j].fn,void 0,!0),y){case 1:g[j].fn.call(g[j].context);break;case 2:g[j].fn.call(g[j].context,d);break;case 3:g[j].fn.call(g[j].context,d,f);break;case 4:g[j].fn.call(g[j].context,d,f,p);break;default:if(!w)for(N=1,w=new Array(y-1);N<y;N++)w[N-1]=arguments[N];g[j].fn.apply(g[j].context,w)}}return!0},l.prototype.on=function(u,d,f){return s(this,u,d,f,!1)},l.prototype.once=function(u,d,f){return s(this,u,d,f,!0)},l.prototype.removeListener=function(u,d,f,p){var h=n?n+u:u;if(!this._events[h])return this;if(!d)return o(this,h),this;var x=this._events[h];if(x.fn)x.fn===d&&(!p||x.once)&&(!f||x.context===f)&&o(this,h);else{for(var v=0,g=[],y=x.length;v<y;v++)(x[v].fn!==d||p&&!x[v].once||f&&x[v].context!==f)&&g.push(x[v]);g.length?this._events[h]=g.length===1?g[0]:g:o(this,h)}return this},l.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&o(this,d)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(fP)),fP.exports}var jBe=wBe();const _Be=Zn(jBe);var hP=new _Be,pP="recharts.syncMouseEvents";function Zx(e){"@babel/helpers - typeof";return Zx=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},Zx(e)}function NBe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SBe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lee(r.key),r)}}function ABe(e,t,n){return t&&SBe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mP(e,t,n){return t=lee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lee(e){var t=kBe(e,"string");return Zx(t)=="symbol"?t:t+""}function kBe(e,t){if(Zx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var PBe=(function(){function e(){NBe(this,e),mP(this,"activeIndex",0),mP(this,"coordinateList",[]),mP(this,"layout","horizontal")}return ABe(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,s=i===void 0?null:i,o=n.container,l=o===void 0?null:o,c=n.layout,u=c===void 0?null:c,d=n.offset,f=d===void 0?null:d,p=n.mouseHandlerCallback,h=p===void 0?null:p;this.coordinateList=(r=s??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),s=i.x,o=i.y,l=i.height,c=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,d=((r=window)===null||r===void 0?void 0:r.scrollY)||0,f=s+c+u,p=o+this.offset.top+l/2+d;this.mouseHandlerCallback({pageX:f,pageY:p})}}}])})();function CBe(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&wt(r)&&wt(i))return!0}return!1}function EBe(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function cee(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,s=e.endAngle,o=$r(t,n,r,i),l=$r(t,n,r,s);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:s}}function TBe(e,t,n){var r,i,s,o;if(e==="horizontal")r=t.x,s=r,i=n.top,o=n.top+n.height;else if(e==="vertical")i=t.y,o=i,r=n.left,s=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,c=t.cy,u=t.innerRadius,d=t.outerRadius,f=t.angle,p=$r(l,c,u,f),h=$r(l,c,d,f);r=p.x,i=p.y,s=h.x,o=h.y}else return cee(t);return[{x:r,y:i},{x:s,y:o}]}function Jx(e){"@babel/helpers - typeof";return Jx=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},Jx(e)}function z$(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 u1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z$(Object(n),!0).forEach(function(r){OBe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OBe(e,t,n){return t=RBe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RBe(e){var t=IBe(e,"string");return Jx(t)=="symbol"?t:t+""}function IBe(e,t){if(Jx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LBe(e){var t,n,r=e.element,i=e.tooltipEventType,s=e.isActive,o=e.activeCoordinate,l=e.activePayload,c=e.offset,u=e.activeTooltipIndex,d=e.tooltipAxisBandSize,f=e.layout,p=e.chartName,h=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!h||!s||!o||p!=="ScatterChart"&&i!=="axis")return null;var x,v=FE;if(p==="ScatterChart")x=o,v=gDe;else if(p==="BarChart")x=EBe(f,o,c,d),v=gO;else if(f==="radial"){var g=cee(o),y=g.cx,w=g.cy,j=g.radius,_=g.startAngle,N=g.endAngle;x={cx:y,cy:w,startAngle:_,endAngle:N,innerRadius:j,outerRadius:j},v=hJ}else x={points:TBe(f,o,c)},v=FE;var A=u1(u1(u1(u1({stroke:"#ccc",pointerEvents:"none"},c),x),hn(h,!1)),{},{payload:l,payloadIndex:u,className:Rn("recharts-tooltip-cursor",h.className)});return O.isValidElement(h)?O.cloneElement(h,A):O.createElement(v,A)}var MBe=["item"],DBe=["children","className","width","height","style","compact","title","desc"];function Hg(e){"@babel/helpers - typeof";return Hg=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},Hg(e)}function Vm(){return Vm=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},Vm.apply(this,arguments)}function $$(e,t){return qBe(e)||BBe(e,t)||dee(e,t)||FBe()}function FBe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1253In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BBe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function qBe(e){if(Array.isArray(e))return e}function U$(e,t){if(e==null)return{};var n=zBe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zBe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function $Be(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UBe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fee(r.key),r)}}function GBe(e,t,n){return t&&UBe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VBe(e,t,n){return t=x2(t),WBe(e,uee()?Reflect.construct(t,n||[],x2(e).constructor):t.apply(e,n))}function WBe(e,t){if(t&&(Hg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HBe(e)}function HBe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uee=function(){return!!e})()}function x2(e){return x2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},x2(e)}function KBe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g4(e,t)}function g4(e,t){return g4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},g4(e,t)}function Kg(e){return QBe(e)||XBe(e)||dee(e)||YBe()}function YBe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1254In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dee(e,t){if(e){if(typeof e=="string")return v4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v4(e,t)}}function XBe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QBe(e){if(Array.isArray(e))return v4(e)}function v4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function G$(e,t){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 nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G$(Object(n),!0).forEach(function(r){cn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cn(e,t,n){return t=fee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fee(e){var t=ZBe(e,"string");return Hg(t)=="symbol"?t:t+""}function ZBe(e,t){if(Hg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JBe={xAxis:["bottom","top"],yAxis:["left","right"]},eqe={width:"100%",height:"100%"},hee={x:0,y:0};function d1(e){return e}var tqe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},nqe=function(t,n,r,i){var s=n.find(function(d){return d&&d.index===r});if(s){if(t==="horizontal")return{x:s.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:s.coordinate};if(t==="centric"){var o=s.coordinate,l=i.radius;return nt(nt(nt({},i),$r(i.cx,i.cy,l,o)),{},{angle:o,radius:l})}var c=s.coordinate,u=i.angle;return nt(nt(nt({},i),$r(i.cx,i.cy,c,u)),{},{angle:u,radius:c})}return hee},t_=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,s=n.dataEndIndex,o=(r??[]).reduce(function(l,c){var u=c.props.data;return u&&u.length?[].concat(Kg(l),Kg(u)):l},[]);return o.length>0?o:t&&t.length&&wt(i)&&wt(s)?t.slice(i,s+1):[]};function pee(e){return e==="number"?[0,"auto"]:void 0}var y4=function(t,n,r,i){var s=t.graphicalItems,o=t.tooltipAxis,l=t_(n,t);return r<0||!s||!s.length||r>=l.length?null:s.reduce(function(c,u){var d,f=(d=u.props.data)!==null&&d!==void 0?d:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var h=f===void 0?l:f;p=JC(h,o.dataKey,i)}else p=f&&f[r]||l[r];return p?[].concat(Kg(c),[oJ(u,p)]):c},[])},V$=function(t,n,r,i){var s=i||{x:t.chartX,y:t.chartY},o=tqe(s,r),l=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,d=DIe(o,l,u,c);if(d>=0&&u){var f=u[d]&&u[d].value,p=y4(t,n,d,f),h=nqe(r,l,d,s);return{activeTooltipIndex:d,activeLabel:f,activePayload:p,activeCoordinate:h}}return null},rqe=function(t,n){var r=n.axes,i=n.graphicalItems,s=n.axisType,o=n.axisIdKey,l=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,d=t.layout,f=t.children,p=t.stackOffset,h=tJ(d,s);return r.reduce(function(x,v){var g,y=v.type.defaultProps!==void 0?nt(nt({},v.type.defaultProps),v.props):v.props,w=y.type,j=y.dataKey,_=y.allowDataOverflow,N=y.allowDuplicatedCategory,A=y.scale,E=y.ticks,k=y.includeHidden,T=y[o];if(x[T])return x;var D=t_(t.data,{graphicalItems:i.filter(function(B){var z,ee=o in B.props?B.props[o]:(z=B.type.defaultProps)===null||z===void 0?void 0:z[o];return ee===T}),dataStartIndex:c,dataEndIndex:u}),P=D.length,R,q,M;CBe(y.domain,_,w)&&(R=RE(y.domain,null,_),h&&(w==="number"||A!=="auto")&&(M=Qy(D,j,"category")));var V=pee(w);if(!R||R.length===0){var H,Z=(H=y.domain)!==null&&H!==void 0?H:V;if(j){if(R=Qy(D,j,w),w==="category"&&h){var J=OPe(R);N&&J?(q=R,R=o2(0,P)):N||(R=Xq(Z,R,v).reduce(function(B,z){return B.indexOf(z)>=0?B:[].concat(Kg(B),[z])},[]))}else if(w==="category")N?R=R.filter(function(B){return B!==""&&!$n(B)}):R=Xq(Z,R,v).reduce(function(B,z){return B.indexOf(z)>=0||z===""||$n(z)?B:[].concat(Kg(B),[z])},[]);else if(w==="number"){var K=$Ie(D,i.filter(function(B){var z,ee,te=o in B.props?B.props[o]:(z=B.type.defaultProps)===null||z===void 0?void 0:z[o],X="hide"in B.props?B.props.hide:(ee=B.type.defaultProps)===null||ee===void 0?void 0:ee.hide;return te===T&&(k||!X)}),j,s,d);K&&(R=K)}h&&(w==="number"||A!=="auto")&&(M=Qy(D,j,"category"))}else h?R=o2(0,P):l&&l[T]&&l[T].hasStack&&w==="number"?R=p==="expand"?[0,1]:sJ(l[T].stackGroups,c,u):R=eJ(D,i.filter(function(B){var z=o in B.props?B.props[o]:B.type.defaultProps[o],ee="hide"in B.props?B.props.hide:B.type.defaultProps.hide;return z===T&&(k||!ee)}),w,d,!0);if(w==="number")R=m4(f,R,T,s,E),Z&&(R=RE(Z,R,_));else if(w==="category"&&Z){var F=Z,$=R.every(function(B){return F.indexOf(B)>=0});$&&(R=F)}}return nt(nt({},x),{},cn({},T,nt(nt({},y),{},{axisType:s,domain:R,categoricalDomain:M,duplicateDomain:q,originalDomain:(g=y.domain)!==null&&g!==void 0?g:V,isCategorical:h,layout:d})))},{})},iqe=function(t,n){var r=n.graphicalItems,i=n.Axis,s=n.axisType,o=n.axisIdKey,l=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,d=t.layout,f=t.children,p=t_(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),h=p.length,x=tJ(d,s),v=-1;return r.reduce(function(g,y){var w=y.type.defaultProps!==void 0?nt(nt({},y.type.defaultProps),y.props):y.props,j=w[o],_=pee("number");if(!g[j]){v++;var N;return x?N=o2(0,h):l&&l[j]&&l[j].hasStack?(N=sJ(l[j].stackGroups,c,u),N=m4(f,N,j,s)):(N=RE(_,eJ(p,r.filter(function(A){var E,k,T=o in A.props?A.props[o]:(E=A.type.defaultProps)===null||E===void 0?void 0:E[o],D="hide"in A.props?A.props.hide:(k=A.type.defaultProps)===null||k===void 0?void 0:k.hide;return T===j&&!D}),"number",d),i.defaultProps.allowDataOverflow),N=m4(f,N,j,s)),nt(nt({},g),{},cn({},j,nt(nt({axisType:s},i.defaultProps),{},{hide:!0,orientation:Ro(JBe,"".concat(s,".").concat(v%2),null),domain:N,originalDomain:_,isCategorical:x,layout:d})))}return g},{})},aqe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,s=n.AxisComp,o=n.graphicalItems,l=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,d=t.children,f="".concat(i,"Id"),p=pl(d,s),h={};return p&&p.length?h=rqe(t,{axes:p,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(h=iqe(t,{Axis:s,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:c,dataEndIndex:u})),h},sqe=function(t){var n=pf(t),r=Xu(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:U3(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Kw(n,r)}},W$=function(t){var n=t.children,r=t.defaultShowTooltip,i=Ao(n,Bg),s=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(s=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},oqe=function(t){return!t||!t.length?!1:t.some(function(n){var r=td(n&&n.type);return r&&r.indexOf("Bar")>=0})},H$=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},lqe=function(t,n){var r=t.props,i=t.graphicalItems,s=t.xAxisMap,o=s===void 0?{}:s,l=t.yAxisMap,c=l===void 0?{}:l,u=r.width,d=r.height,f=r.children,p=r.margin||{},h=Ao(f,Bg),x=Ao(f,nd),v=Object.keys(c).reduce(function(N,A){var E=c[A],k=E.orientation;return!E.mirror&&!E.hide?nt(nt({},N),{},cn({},k,N[k]+E.width)):N},{left:p.left||0,right:p.right||0}),g=Object.keys(o).reduce(function(N,A){var E=o[A],k=E.orientation;return!E.mirror&&!E.hide?nt(nt({},N),{},cn({},k,Ro(N,"".concat(k))+E.height)):N},{top:p.top||0,bottom:p.bottom||0}),y=nt(nt({},g),v),w=y.bottom;h&&(y.bottom+=h.props.height||Bg.defaultProps.height),x&&n&&(y=qIe(y,i,r,n));var j=u-y.left-y.right,_=d-y.top-y.bottom;return nt(nt({brushBottom:w},y),{},{width:Math.max(j,0),height:Math.max(_,0)})},cqe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},mee=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,s=i===void 0?"axis":i,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,c=t.axisComponents,u=t.legendContent,d=t.formatAxisMap,f=t.defaultProps,p=function(y,w){var j=w.graphicalItems,_=w.stackGroups,N=w.offset,A=w.updateId,E=w.dataStartIndex,k=w.dataEndIndex,T=y.barSize,D=y.layout,P=y.barGap,R=y.barCategoryGap,q=y.maxBarSize,M=H$(D),V=M.numericAxisName,H=M.cateAxisName,Z=oqe(j),J=[];return j.forEach(function(K,F){var $=t_(y.data,{graphicalItems:[K],dataStartIndex:E,dataEndIndex:k}),B=K.type.defaultProps!==void 0?nt(nt({},K.type.defaultProps),K.props):K.props,z=B.dataKey,ee=B.maxBarSize,te=B["".concat(V,"Id")],X=B["".concat(H,"Id")],ne={},le=c.reduce(function(We,Be){var dt=w["".concat(Be.axisType,"Map")],St=B["".concat(Be.axisType,"Id")];dt&&dt[St]||Be.axisType==="zAxis"||jp();var Nt=dt[St];return nt(nt({},We),{},cn(cn({},Be.axisType,Nt),"".concat(Be.axisType,"Ticks"),Xu(Nt)))},ne),re=le[H],he=le["".concat(H,"Ticks")],be=_&&_[te]&&_[te].hasStack&&QIe(K,_[te].stackGroups),ve=td(K.type).indexOf("Bar")>=0,ze=Kw(re,he),He=[],ue=Z&&FIe({barSize:T,stackGroups:_,totalSize:cqe(le,H)});if(ve){var Ue,ut,Ee=$n(ee)?q:ee,we=(Ue=(ut=Kw(re,he,!0))!==null&&ut!==void 0?ut:Ee)!==null&&Ue!==void 0?Ue:0;He=BIe({barGap:P,barCategoryGap:R,bandSize:we!==ze?we:ze,sizeList:ue[X],maxBarSize:Ee}),we!==ze&&(He=He.map(function(We){return nt(nt({},We),{},{position:nt(nt({},We.position),{},{offset:We.position.offset-we/2})})}))}var Ye=K&&K.type&&K.type.getComposedData;Ye&&J.push({props:nt(nt({},Ye(nt(nt({},le),{},{displayedData:$,props:y,dataKey:z,item:K,bandSize:ze,barPosition:He,offset:N,stackedData:be,layout:D,dataStartIndex:E,dataEndIndex:k}))),{},cn(cn(cn({key:K.key||"item-".concat(F)},V,le[V]),H,le[H]),"animationId",A)),childIndex:GPe(K,y.children),item:K})}),J},h=function(y,w){var j=y.props,_=y.dataStartIndex,N=y.dataEndIndex,A=y.updateId;if(!dF({props:j}))return null;var E=j.children,k=j.layout,T=j.stackOffset,D=j.data,P=j.reverseStackOrder,R=H$(k),q=R.numericAxisName,M=R.cateAxisName,V=pl(E,r),H=YIe(D,V,"".concat(q,"Id"),"".concat(M,"Id"),T,P),Z=c.reduce(function(B,z){var ee="".concat(z.axisType,"Map");return nt(nt({},B),{},cn({},ee,aqe(j,nt(nt({},z),{},{graphicalItems:V,stackGroups:z.axisType===q&&H,dataStartIndex:_,dataEndIndex:N}))))},{}),J=lqe(nt(nt({},Z),{},{props:j,graphicalItems:V}),w==null?void 0:w.legendBBox);Object.keys(Z).forEach(function(B){Z[B]=d(j,Z[B],J,B.replace("Map",""),n)});var K=Z["".concat(M,"Map")],F=sqe(K),$=p(j,nt(nt({},Z),{},{dataStartIndex:_,dataEndIndex:N,updateId:A,graphicalItems:V,stackGroups:H,offset:J}));return nt(nt({formattedGraphicalItems:$,graphicalItems:V,offset:J,stackGroups:H},F),Z)},x=(function(g){function y(w){var j,_,N;return $Be(this,y),N=VBe(this,y,[w]),cn(N,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),cn(N,"accessibilityManager",new PBe),cn(N,"handleLegendBBoxUpdate",function(A){if(A){var E=N.state,k=E.dataStartIndex,T=E.dataEndIndex,D=E.updateId;N.setState(nt({legendBBox:A},h({props:N.props,dataStartIndex:k,dataEndIndex:T,updateId:D},nt(nt({},N.state),{},{legendBBox:A}))))}}),cn(N,"handleReceiveSyncEvent",function(A,E,k){if(N.props.syncId===A){if(k===N.eventEmitterSymbol&&typeof N.props.syncMethod!="function")return;N.applySyncEvent(E)}}),cn(N,"handleBrushChange",function(A){var E=A.startIndex,k=A.endIndex;if(E!==N.state.dataStartIndex||k!==N.state.dataEndIndex){var T=N.state.updateId;N.setState(function(){return nt({dataStartIndex:E,dataEndIndex:k},h({props:N.props,dataStartIndex:E,dataEndIndex:k,updateId:T},N.state))}),N.triggerSyncEvent({dataStartIndex:E,dataEndIndex:k})}}),cn(N,"handleMouseEnter",function(A){var E=N.getMouseInfo(A);if(E){var k=nt(nt({},E),{},{isTooltipActive:!0});N.setState(k),N.triggerSyncEvent(k);var T=N.props.onMouseEnter;_n(T)&&T(k,A)}}),cn(N,"triggeredAfterMouseMove",function(A){var E=N.getMouseInfo(A),k=E?nt(nt({},E),{},{isTooltipActive:!0}):{isTooltipActive:!1};N.setState(k),N.triggerSyncEvent(k);var T=N.props.onMouseMove;_n(T)&&T(k,A)}),cn(N,"handleItemMouseEnter",function(A){N.setState(function(){return{isTooltipActive:!0,activeItem:A,activePayload:A.tooltipPayload,activeCoordinate:A.tooltipPosition||{x:A.cx,y:A.cy}}})}),cn(N,"handleItemMouseLeave",function(){N.setState(function(){return{isTooltipActive:!1}})}),cn(N,"handleMouseMove",function(A){A.persist(),N.throttleTriggeredAfterMouseMove(A)}),cn(N,"handleMouseLeave",function(A){N.throttleTriggeredAfterMouseMove.cancel();var E={isTooltipActive:!1};N.setState(E),N.triggerSyncEvent(E);var k=N.props.onMouseLeave;_n(k)&&k(E,A)}),cn(N,"handleOuterEvent",function(A){var E=UPe(A),k=Ro(N.props,"".concat(E));if(E&&_n(k)){var T,D;/.*touch.*/i.test(E)?D=N.getMouseInfo(A.changedTouches[0]):D=N.getMouseInfo(A),k((T=D)!==null&&T!==void 0?T:{},A)}}),cn(N,"handleClick",function(A){var E=N.getMouseInfo(A);if(E){var k=nt(nt({},E),{},{isTooltipActive:!0});N.setState(k),N.triggerSyncEvent(k);var T=N.props.onClick;_n(T)&&T(k,A)}}),cn(N,"handleMouseDown",function(A){var E=N.props.onMouseDown;if(_n(E)){var k=N.getMouseInfo(A);E(k,A)}}),cn(N,"handleMouseUp",function(A){var E=N.props.onMouseUp;if(_n(E)){var k=N.getMouseInfo(A);E(k,A)}}),cn(N,"handleTouchMove",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&N.throttleTriggeredAfterMouseMove(A.changedTouches[0])}),cn(N,"handleTouchStart",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&N.handleMouseDown(A.changedTouches[0])}),cn(N,"handleTouchEnd",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&N.handleMouseUp(A.changedTouches[0])}),cn(N,"handleDoubleClick",function(A){var E=N.props.onDoubleClick;if(_n(E)){var k=N.getMouseInfo(A);E(k,A)}}),cn(N,"handleContextMenu",function(A){var E=N.props.onContextMenu;if(_n(E)){var k=N.getMouseInfo(A);E(k,A)}}),cn(N,"triggerSyncEvent",function(A){N.props.syncId!==void 0&&hP.emit(pP,N.props.syncId,A,N.eventEmitterSymbol)}),cn(N,"applySyncEvent",function(A){var E=N.props,k=E.layout,T=E.syncMethod,D=N.state.updateId,P=A.dataStartIndex,R=A.dataEndIndex;if(A.dataStartIndex!==void 0||A.dataEndIndex!==void 0)N.setState(nt({dataStartIndex:P,dataEndIndex:R},h({props:N.props,dataStartIndex:P,dataEndIndex:R,updateId:D},N.state)));else if(A.activeTooltipIndex!==void 0){var q=A.chartX,M=A.chartY,V=A.activeTooltipIndex,H=N.state,Z=H.offset,J=H.tooltipTicks;if(!Z)return;if(typeof T=="function")V=T(J,A);else if(T==="value"){V=-1;for(var K=0;K<J.length;K++)if(J[K].value===A.activeLabel){V=K;break}}var F=nt(nt({},Z),{},{x:Z.left,y:Z.top}),$=Math.min(q,F.x+F.width),B=Math.min(M,F.y+F.height),z=J[V]&&J[V].value,ee=y4(N.state,N.props.data,V),te=J[V]?{x:k==="horizontal"?J[V].coordinate:$,y:k==="horizontal"?B:J[V].coordinate}:hee;N.setState(nt(nt({},A),{},{activeLabel:z,activeCoordinate:te,activePayload:ee,activeTooltipIndex:V}))}else N.setState(A)}),cn(N,"renderCursor",function(A){var E,k=N.state,T=k.isTooltipActive,D=k.activeCoordinate,P=k.activePayload,R=k.offset,q=k.activeTooltipIndex,M=k.tooltipAxisBandSize,V=N.getTooltipEventType(),H=(E=A.props.active)!==null&&E!==void 0?E:T,Z=N.props.layout,J=A.key||"_recharts-cursor";return Ae.createElement(LBe,{key:J,activeCoordinate:D,activePayload:P,activeTooltipIndex:q,chartName:n,element:A,isActive:H,layout:Z,offset:R,tooltipAxisBandSize:M,tooltipEventType:V})}),cn(N,"renderPolarAxis",function(A,E,k){var T=Ro(A,"type.axisType"),D=Ro(N.state,"".concat(T,"Map")),P=A.type.defaultProps,R=P!==void 0?nt(nt({},P),A.props):A.props,q=D&&D[R["".concat(T,"Id")]];return O.cloneElement(A,nt(nt({},q),{},{className:Rn(T,q.className),key:A.key||"".concat(E,"-").concat(k),ticks:Xu(q,!0)}))}),cn(N,"renderPolarGrid",function(A){var E=A.props,k=E.radialLines,T=E.polarAngles,D=E.polarRadius,P=N.state,R=P.radiusAxisMap,q=P.angleAxisMap,M=pf(R),V=pf(q),H=V.cx,Z=V.cy,J=V.innerRadius,K=V.outerRadius;return O.cloneElement(A,{polarAngles:Array.isArray(T)?T:Xu(V,!0).map(function(F){return F.coordinate}),polarRadius:Array.isArray(D)?D:Xu(M,!0).map(function(F){return F.coordinate}),cx:H,cy:Z,innerRadius:J,outerRadius:K,key:A.key||"polar-grid",radialLines:k})}),cn(N,"renderLegend",function(){var A=N.state.formattedGraphicalItems,E=N.props,k=E.children,T=E.width,D=E.height,P=N.props.margin||{},R=T-(P.left||0)-(P.right||0),q=ZZ({children:k,formattedGraphicalItems:A,legendWidth:R,legendContent:u});if(!q)return null;var M=q.item,V=U$(q,MBe);return O.cloneElement(M,nt(nt({},V),{},{chartWidth:T,chartHeight:D,margin:P,onBBoxUpdate:N.handleLegendBBoxUpdate}))}),cn(N,"renderTooltip",function(){var A,E=N.props,k=E.children,T=E.accessibilityLayer,D=Ao(k,Qa);if(!D)return null;var P=N.state,R=P.isTooltipActive,q=P.activeCoordinate,M=P.activePayload,V=P.activeLabel,H=P.offset,Z=(A=D.props.active)!==null&&A!==void 0?A:R;return O.cloneElement(D,{viewBox:nt(nt({},H),{},{x:H.left,y:H.top}),active:Z,label:V,payload:Z?M:[],coordinate:q,accessibilityLayer:T})}),cn(N,"renderBrush",function(A){var E=N.props,k=E.margin,T=E.data,D=N.state,P=D.offset,R=D.dataStartIndex,q=D.dataEndIndex,M=D.updateId;return O.cloneElement(A,{key:A.key||"_recharts-brush",onChange:s1(N.handleBrushChange,A.props.onChange),data:T,x:wt(A.props.x)?A.props.x:P.left,y:wt(A.props.y)?A.props.y:P.top+P.height+P.brushBottom-(k.bottom||0),width:wt(A.props.width)?A.props.width:P.width,startIndex:R,endIndex:q,updateId:"brush-".concat(M)})}),cn(N,"renderReferenceElement",function(A,E,k){if(!A)return null;var T=N,D=T.clipPathId,P=N.state,R=P.xAxisMap,q=P.yAxisMap,M=P.offset,V=A.type.defaultProps||{},H=A.props,Z=H.xAxisId,J=Z===void 0?V.xAxisId:Z,K=H.yAxisId,F=K===void 0?V.yAxisId:K;return O.cloneElement(A,{key:A.key||"".concat(E,"-").concat(k),xAxis:R[J],yAxis:q[F],viewBox:{x:M.left,y:M.top,width:M.width,height:M.height},clipPathId:D})}),cn(N,"renderActivePoints",function(A){var E=A.item,k=A.activePoint,T=A.basePoint,D=A.childIndex,P=A.isRange,R=[],q=E.props.key,M=E.item.type.defaultProps!==void 0?nt(nt({},E.item.type.defaultProps),E.item.props):E.item.props,V=M.activeDot,H=M.dataKey,Z=nt(nt({index:D,dataKey:H,cx:k.x,cy:k.y,r:4,fill:mO(E.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},hn(V,!1)),_w(V));return R.push(y.renderActiveDot(V,Z,"".concat(q,"-activePoint-").concat(D))),T?R.push(y.renderActiveDot(V,nt(nt({},Z),{},{cx:T.x,cy:T.y}),"".concat(q,"-basePoint-").concat(D))):P&&R.push(null),R}),cn(N,"renderGraphicChild",function(A,E,k){var T=N.filterFormatItem(A,E,k);if(!T)return null;var D=N.getTooltipEventType(),P=N.state,R=P.isTooltipActive,q=P.tooltipAxis,M=P.activeTooltipIndex,V=P.activeLabel,H=N.props.children,Z=Ao(H,Qa),J=T.props,K=J.points,F=J.isRange,$=J.baseLine,B=T.item.type.defaultProps!==void 0?nt(nt({},T.item.type.defaultProps),T.item.props):T.item.props,z=B.activeDot,ee=B.hide,te=B.activeBar,X=B.activeShape,ne=!!(!ee&&R&&Z&&(z||te||X)),le={};D!=="axis"&&Z&&Z.props.trigger==="click"?le={onClick:s1(N.handleItemMouseEnter,A.props.onClick)}:D!=="axis"&&(le={onMouseLeave:s1(N.handleItemMouseLeave,A.props.onMouseLeave),onMouseEnter:s1(N.handleItemMouseEnter,A.props.onMouseEnter)});var re=O.cloneElement(A,nt(nt({},T.props),le));function he(Be){return typeof q.dataKey=="function"?q.dataKey(Be.payload):null}if(ne)if(M>=0){var be,ve;if(q.dataKey&&!q.allowDuplicatedCategory){var ze=typeof q.dataKey=="function"?he:"payload.".concat(q.dataKey.toString());be=JC(K,ze,V),ve=F&&$&&JC($,ze,V)}else be=K==null?void 0:K[M],ve=F&&$&&$[M];if(X||te){var He=A.props.activeIndex!==void 0?A.props.activeIndex:M;return[O.cloneElement(A,nt(nt(nt({},T.props),le),{},{activeIndex:He})),null,null]}if(!$n(be))return[re].concat(Kg(N.renderActivePoints({item:T,activePoint:be,basePoint:ve,childIndex:M,isRange:F})))}else{var ue,Ue=(ue=N.getItemByXY(N.state.activeCoordinate))!==null&&ue!==void 0?ue:{graphicalItem:re},ut=Ue.graphicalItem,Ee=ut.item,we=Ee===void 0?A:Ee,Ye=ut.childIndex,We=nt(nt(nt({},T.props),le),{},{activeIndex:Ye});return[O.cloneElement(we,We),null,null]}return F?[re,null,null]:[re,null]}),cn(N,"renderCustomized",function(A,E,k){return O.cloneElement(A,nt(nt({key:"recharts-customized-".concat(k)},N.props),N.state))}),cn(N,"renderMap",{CartesianGrid:{handler:d1,once:!0},ReferenceArea:{handler:N.renderReferenceElement},ReferenceLine:{handler:d1},ReferenceDot:{handler:N.renderReferenceElement},XAxis:{handler:d1},YAxis:{handler:d1},Brush:{handler:N.renderBrush,once:!0},Bar:{handler:N.renderGraphicChild},Line:{handler:N.renderGraphicChild},Area:{handler:N.renderGraphicChild},Radar:{handler:N.renderGraphicChild},RadialBar:{handler:N.renderGraphicChild},Scatter:{handler:N.renderGraphicChild},Pie:{handler:N.renderGraphicChild},Funnel:{handler:N.renderGraphicChild},Tooltip:{handler:N.renderCursor,once:!0},PolarGrid:{handler:N.renderPolarGrid,once:!0},PolarAngleAxis:{handler:N.renderPolarAxis},PolarRadiusAxis:{handler:N.renderPolarAxis},Customized:{handler:N.renderCustomized}}),N.clipPathId="".concat((j=w.id)!==null&&j!==void 0?j:T0("recharts"),"-clip"),N.throttleTriggeredAfterMouseMove=QQ(N.triggeredAfterMouseMove,(_=w.throttleDelay)!==null&&_!==void 0?_:1e3/60),N.state={},N}return KBe(y,g),GBe(y,[{key:"componentDidMount",value:function(){var j,_;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(j=this.props.margin.left)!==null&&j!==void 0?j:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var j=this.props,_=j.children,N=j.data,A=j.height,E=j.layout,k=Ao(_,Qa);if(k){var T=k.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var D=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,P=y4(this.state,N,T,D),R=this.state.tooltipTicks[T].coordinate,q=(this.state.offset.top+A)/2,M=E==="horizontal",V=M?{x:R,y:q}:{y:R,x:q},H=this.state.formattedGraphicalItems.find(function(J){var K=J.item;return K.type.name==="Scatter"});H&&(V=nt(nt({},V),H.props.points[T].tooltipPosition),P=H.props.points[T].tooltipPayload);var Z={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:D,activePayload:P,activeCoordinate:V};this.setState(Z),this.renderCursor(k),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(j,_){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==_.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==j.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==j.margin){var N,A;this.accessibilityManager.setDetails({offset:{left:(N=this.props.margin.left)!==null&&N!==void 0?N:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0}})}return null}},{key:"componentDidUpdate",value:function(j){tE([Ao(j.children,Qa)],[Ao(this.props.children,Qa)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var j=Ao(this.props.children,Qa);if(j&&typeof j.props.shared=="boolean"){var _=j.props.shared?"axis":"item";return l.indexOf(_)>=0?_:s}return s}},{key:"getMouseInfo",value:function(j){if(!this.container)return null;var _=this.container,N=_.getBoundingClientRect(),A=ETe(N),E={chartX:Math.round(j.pageX-A.left),chartY:Math.round(j.pageY-A.top)},k=N.width/_.offsetWidth||1,T=this.inRange(E.chartX,E.chartY,k);if(!T)return null;var D=this.state,P=D.xAxisMap,R=D.yAxisMap,q=this.getTooltipEventType(),M=V$(this.state,this.props.data,this.props.layout,T);if(q!=="axis"&&P&&R){var V=pf(P).scale,H=pf(R).scale,Z=V&&V.invert?V.invert(E.chartX):null,J=H&&H.invert?H.invert(E.chartY):null;return nt(nt({},E),{},{xValue:Z,yValue:J},M)}return M?nt(nt({},E),M):null}},{key:"inRange",value:function(j,_){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,A=this.props.layout,E=j/N,k=_/N;if(A==="horizontal"||A==="vertical"){var T=this.state.offset,D=E>=T.left&&E<=T.left+T.width&&k>=T.top&&k<=T.top+T.height;return D?{x:E,y:k}:null}var P=this.state,R=P.angleAxisMap,q=P.radiusAxisMap;if(R&&q){var M=pf(R);return Jq({x:E,y:k},M)}return null}},{key:"parseEventsOfWrapper",value:function(){var j=this.props.children,_=this.getTooltipEventType(),N=Ao(j,Qa),A={};N&&_==="axis"&&(N.props.trigger==="click"?A={onClick:this.handleClick}:A={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var E=_w(this.props,this.handleOuterEvent);return nt(nt({},E),A)}},{key:"addListener",value:function(){hP.on(pP,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){hP.removeListener(pP,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(j,_,N){for(var A=this.state.formattedGraphicalItems,E=0,k=A.length;E<k;E++){var T=A[E];if(T.item===j||T.props.key===j.key||_===td(T.item.type)&&N===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var j=this.clipPathId,_=this.state.offset,N=_.left,A=_.top,E=_.height,k=_.width;return Ae.createElement("defs",null,Ae.createElement("clipPath",{id:j},Ae.createElement("rect",{x:N,y:A,height:E,width:k})))}},{key:"getXScales",value:function(){var j=this.state.xAxisMap;return j?Object.entries(j).reduce(function(_,N){var A=$$(N,2),E=A[0],k=A[1];return nt(nt({},_),{},cn({},E,k.scale))},{}):null}},{key:"getYScales",value:function(){var j=this.state.yAxisMap;return j?Object.entries(j).reduce(function(_,N){var A=$$(N,2),E=A[0],k=A[1];return nt(nt({},_),{},cn({},E,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(j){var _;return(_=this.state.xAxisMap)===null||_===void 0||(_=_[j])===null||_===void 0?void 0:_.scale}},{key:"getYScaleByAxisId",value:function(j){var _;return(_=this.state.yAxisMap)===null||_===void 0||(_=_[j])===null||_===void 0?void 0:_.scale}},{key:"getItemByXY",value:function(j){var _=this.state,N=_.formattedGraphicalItems,A=_.activeItem;if(N&&N.length)for(var E=0,k=N.length;E<k;E++){var T=N[E],D=T.props,P=T.item,R=P.type.defaultProps!==void 0?nt(nt({},P.type.defaultProps),P.props):P.props,q=td(P.type);if(q==="Bar"){var M=(D.data||[]).find(function(J){return X6e(j,J)});if(M)return{graphicalItem:T,payload:M}}else if(q==="RadialBar"){var V=(D.data||[]).find(function(J){return Jq(j,J)});if(V)return{graphicalItem:T,payload:V}
1254}else if(Kj(T,A)||Yj(T,A)||Hx(T,A)){var H=x8e({graphicalItem:T,activeTooltipItem:A,itemData:R.data}),Z=R.activeIndex===void 0?H:R.activeIndex;return{graphicalItem:nt(nt({},T),{},{childIndex:Z}),payload:Hx(T,A)?R.data[H]:T.props.data[H]}}}return null}},{key:"render",value:function(){var j=this;if(!dF(this))return null;var _=this.props,N=_.children,A=_.className,E=_.width,k=_.height,T=_.style,D=_.compact,P=_.title,R=_.desc,q=U$(_,DBe),M=hn(q,!1);if(D)return Ae.createElement(A$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Ae.createElement(rE,Vm({},M,{width:E,height:k,title:P,desc:R}),this.renderClipPath(),hF(N,this.renderMap)));if(this.props.accessibilityLayer){var V,H;M.tabIndex=(V=this.props.tabIndex)!==null&&V!==void 0?V:0,M.role=(H=this.props.role)!==null&&H!==void 0?H:"application",M.onKeyDown=function(J){j.accessibilityManager.keyboardEvent(J)},M.onFocus=function(){j.accessibilityManager.focus()}}var Z=this.parseEventsOfWrapper();return Ae.createElement(A$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Ae.createElement("div",Vm({className:Rn("recharts-wrapper",A),style:nt({position:"relative",cursor:"default",width:E,height:k},T)},Z,{ref:function(K){j.container=K}}),Ae.createElement(rE,Vm({},M,{width:E,height:k,title:P,desc:R,style:eqe}),this.renderClipPath(),hF(N,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);cn(x,"displayName",n),cn(x,"defaultProps",nt({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),cn(x,"getDerivedStateFromProps",function(g,y){var w=g.dataKey,j=g.data,_=g.children,N=g.width,A=g.height,E=g.layout,k=g.stackOffset,T=g.margin,D=y.dataStartIndex,P=y.dataEndIndex;if(y.updateId===void 0){var R=W$(g);return nt(nt(nt({},R),{},{updateId:0},h(nt(nt({props:g},R),{},{updateId:0}),y)),{},{prevDataKey:w,prevData:j,prevWidth:N,prevHeight:A,prevLayout:E,prevStackOffset:k,prevMargin:T,prevChildren:_})}if(w!==y.prevDataKey||j!==y.prevData||N!==y.prevWidth||A!==y.prevHeight||E!==y.prevLayout||k!==y.prevStackOffset||!eg(T,y.prevMargin)){var q=W$(g),M={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},V=nt(nt({},V$(y,j,E)),{},{updateId:y.updateId+1}),H=nt(nt(nt({},q),M),V);return nt(nt(nt({},H),h(nt({props:g},H),y)),{},{prevDataKey:w,prevData:j,prevWidth:N,prevHeight:A,prevLayout:E,prevStackOffset:k,prevMargin:T,prevChildren:_})}if(!tE(_,y.prevChildren)){var Z,J,K,F,$=Ao(_,Bg),B=$&&(Z=(J=$.props)===null||J===void 0?void 0:J.startIndex)!==null&&Z!==void 0?Z:D,z=$&&(K=(F=$.props)===null||F===void 0?void 0:F.endIndex)!==null&&K!==void 0?K:P,ee=B!==D||z!==P,te=!$n(j),X=te&&!ee?y.updateId:y.updateId+1;return nt(nt({updateId:X},h(nt(nt({props:g},y),{},{updateId:X,dataStartIndex:B,dataEndIndex:z}),y)),{},{prevChildren:_,dataStartIndex:B,dataEndIndex:z})}return null}),cn(x,"renderActiveDot",function(g,y,w){var j;return O.isValidElement(g)?j=O.cloneElement(g,y):_n(g)?j=g(y):j=Ae.createElement(vO,y),Ae.createElement(Ar,{className:"recharts-active-dot",key:w},j)});var v=O.forwardRef(function(y,w){return Ae.createElement(x,Vm({},y,{ref:w}))});return v.displayName=x.displayName,v},tx=mee({chartName:"BarChart",GraphicalChild:Qs,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Rf},{axisType:"yAxis",AxisComp:If}],formatAxisMap:jFe}),gee=mee({chartName:"PieChart",GraphicalChild:nu,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Hj},{axisType:"radiusAxis",AxisComp:Vj}],formatAxisMap:oLe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function uqe(){var l;const{t:e}=Zt(),[t,n]=O.useState([]),[r,i]=O.useState(!0);O.useEffect(()=>{s()},[]);const s=async()=>{try{const c=await Ne.entities.PlatformAnalytics.list();n(c||[])}catch(c){console.error("Failed to fetch analytics:",c)}finally{i(!1)}};if(r)return a.jsx("div",{className:"p-8",children:e("admin.loadingMsg")});const o=t.slice(-7).map(c=>({date:c.date,users:c.total_users,revenue:c.revenue,tickets:c.support_tickets_created}));return a.jsx("div",{className:"min-h-screen bg-background p-8",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsx("h1",{className:"text-3xl font-heading font-bold mb-8",children:e("admin.platformAnalytics")}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-8",children:[a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium",children:e("admin.totalUsersLatest")})}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold",children:((l=t[t.length-1])==null?void 0:l.total_users)||0})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium",children:e("admin.totalRevenue")})}),a.jsx(Le,{children:a.jsxs("div",{className:"text-2xl font-bold",children:["$",t.reduce((c,u)=>c+(u.revenue||0),0).toFixed(0)]})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium",children:e("admin.ticketsResolved")})}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold",children:t.reduce((c,u)=>c+(u.support_tickets_resolved||0),0)})})]})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{children:e("admin.sevenDayTrend")})}),a.jsx(Le,{children:a.jsx($h,{width:"100%",height:300,children:a.jsxs(tx,{data:o,children:[a.jsx(rg,{strokeDasharray:"3 3"}),a.jsx(Rf,{dataKey:"date"}),a.jsx(If,{}),a.jsx(Qa,{}),a.jsx(nd,{}),a.jsx(Qs,{dataKey:"users",fill:"#3182ce",name:e("admin.usersLegend")}),a.jsx(Qs,{dataKey:"revenue",fill:"#38a169",name:e("admin.revenueLegend")}),a.jsx(Qs,{dataKey:"tickets",fill:"#ed8936",name:e("admin.ticketsLegend")})]})})})]})]})})}function dqe(){const{t:e}=Zt(),[t,n]=O.useState([]),[r,i]=O.useState(null),[s,o]=O.useState([]),[l,c]=O.useState(!0),[u,d]=O.useState(""),[f,p]=O.useState(null);O.useEffect(()=>{(async()=>{try{const y=await Ne.auth.me();p(y);const w=await Ne.entities.Organization.filter({owner_email:y.email});n(w),w.length>0&&(i(w[0]),await h(w[0].id))}finally{c(!1)}})()},[]);const h=async g=>{const y=await Ne.entities.Membership.filter({organization_id:g});o(y)},x=async()=>
1254{if(!(!u||!r))try{await Ne.functions.invoke("manageMembership",{action:"invite",organization_id:r.id,member_email:u}),d(""),await h(r.id)}catch(g){console.error("Failed to invite member:",g)}},v=async g=>{if(r)try{const y=s.find(w=>w.id===g);await Ne.functions.invoke("manageMembership",{action:"remove",organization_id:r.id,member_email:y.user_email}),await h(r.id)}catch(y){console.error("Failed to remove member:",y)}};return l?a.jsx(nc,{message:e("orgSettings.loadingMsg")}):a.jsx("div",{className:"min-h-screen bg-background p-6",children:a.jsxs("div",{className:"max-w-4xl mx-auto space-y-6",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-3xl font-bold mb-2",children:e("orgSettings.title")}),a.jsx("p",{className:"text-muted-foreground",children:e("orgSettings.subtitle")})]}),t.length===0?a.jsx(Oe,{children:a.jsx(Le,{className:"pt-6",children:a.jsx("p",{className:"text-muted-foreground",children:e("orgSettings.noOrgs")})})}):a.jsxs(a.Fragment,{children:[a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{children:e("orgSettings.selectOrg")})}),a.jsx(Le,{children:a.jsx("div",{className:"flex gap-2 flex-wrap",children:t.map(g=>a.jsx(xe,{variant:(r==null?void 0:r.id)===g.id?"default":"outline",onClick:()=>{i(g),h(g.id)},children:g.name},g.id))})})]}),r&&a.jsxs(a.Fragment,{children:[a.jsxs(Oe,{children:[a.jsxs(vt,{children:[a.jsx(yt,{children:r.name}),a.jsx(Ja,{children:r.description})]}),a.jsxs(Le,{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-medium",children:e("orgSettings.subPlan")}),a.jsx(at,{className:"mt-2",children:r.subscription_plan.toUpperCase()})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-medium",children:e("orgSettings.aiCredits")}),a.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:[r.ai_credits_used," / ",r.ai_credits_monthly," ",e("orgSettings.creditsUsed")]})]})]})]}),a.jsxs(Oe,{children:[a.jsxs(vt,{children:[a.jsxs(yt,{className:"flex items-center gap-2",children:[a.jsx(Mi,{className:"w-5 h-5"}),e("orgSettings.teamMembers")]}),a.jsxs(Ja,{children:[s.length," ",e("orgSettings.membersCount")," (",r.max_members," ",e("orgSettings.max"),")"]})]}),a.jsxs(Le,{className:"space-y-4",children:[a.jsxs("div",{className:"flex gap-2",children:[a.jsx(Qe,{type:"email",placeholder:e("orgSettings.invitePlaceholder"),value:u,onChange:g=>d(g.target.value)}),a.jsxs(xe,{onClick:x,className:"gap-2",children:[a.jsx(sa,{className:"w-4 h-4"}),e("orgSettings.invite")]})]}),a.jsx("div",{className:"space-y-2",children:s.map(g=>a.jsxs("div",{className:"flex items-center justify-between p-3 border rounded-lg",children:[a.jsxs("div",{className:"flex-1",children:[a.jsxs("p",{className:"font-medium flex items-center gap-2",children:[a.jsx(M9,{className:"w-4 h-4 text-muted-foreground"}),g.user_email]}),a.jsxs("div",{className:"flex gap-2 mt-1",children:[a.jsx(at,{variant:"secondary",children:g.role}),a.jsx(at,{variant:g.status==="active"?"default":"outline",children:g.status})]})]}),g.user_email!==f.email&&a.jsx(xe,{variant:"ghost",size:"icon",onClick:()=>v(g.id),className:"text-destructive hover:text-destructive",children:a.jsx(Ps,{className:"w-4 h-4"})})]},g.id))})]})]})]})]})]})})}function fqe(){const{t:e}=Zt(),[t,n]=O.useState([]),[r,i]=O.useState([]),[s,o]=O.useState([]),[l,c]=O.useState(!0),[u,d]=O.useState(null),[f,p]=O.useState(!1),[h,x]=O.useState(null),[v,g]=O.useState("credits");O.useEffect(()=>{(async()=>{try{const A=await Ne.auth.me();d(A);try{const E=await Ne.entities.Payment.filter({user_email:A.email},"-created_date",20);n(E)}catch(E){console.warn("Could not fetch payments:",E),n([])}try{const E=await Ne.entities.CreditPack.filter({user_email:A.email},"-purchased_date",10);i(E)}catch(E){console.warn("Could not fetch credit packs:",E),i([])}try{const E=await Ne.entities.OneTimeReport.filter({user_email:A.email},"-purchased_date",10);o(E)}catch(E){console.warn("Could not fetch one-time reports:",E),o([])}c(!1)}catch(A){console.error("Failed to fetch billing data:",A),pt.error(e("billing.loadFailed")),c(!1)}})()},[]);const y=(N,A)=>{u&&(x({name:`${N} ${e("billing.aiCredits")}`,price:A,credits_amount:N,user_email:u.email}),g("credits"),p(!0))},w=(N,A,E)=>{u&&(x({name:E||N,price:A,report_type:N,user_email:u.email}),g("one_time_report"),p(!0))};if(l||!u)return a.jsx(nc,{message:e("billing.loadingMsg")});const j={pending:"outline",completed:"default",failed:"destructive",refunded:"secondary"},_=[{type:"maturity_assessment",name:e("billing.reportMaturity"),price:29},{type:"risk_review",name:e("billing.reportRisk"),price:49},{type:"policy_framework",name:e("billing.reportPolicy"),price:39},{type:"ai_governance",name:e("billing.reportAIGov"),price:59},{type:"compliance_audit",name:e("billing.reportCompliance"),price:49},{type:"executive_pack",name:e("billing.reportExec"),price:99}];return a.jsx("div",{className:"min-h-screen bg-background p-6",children:a.jsxs("div",{className:"max-w-5xl mx-auto
1254space-y-6",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-3xl font-bold mb-2",children:e("billing.title")}),a.jsx("p",{className:"text-muted-foreground",children:e("billing.subtitle")})]}),(u==null?void 0:u.tier)==="premium"&&(u==null?void 0:u.trial_ends_at)&&a.jsxs(Oe,{className:"border-primary/30 bg-primary/5",children:[a.jsxs(vt,{children:[a.jsxs(yt,{className:"flex items-center gap-2",children:[a.jsx(vg,{className:"w-5 h-5 text-primary"}),e("billing.trialActive")]}),a.jsx(Ja,{children:e("billing.trialDesc")})]}),a.jsxs(Le,{children:[a.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg bg-card border border-primary/20",children:[a.jsx(ks,{className:"w-5 h-5 text-primary flex-shrink-0"}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium",children:e("billing.trialEnds")}),a.jsx("p",{className:"text-lg font-bold text-primary",children:new Date(u.trial_ends_at).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})})]})]}),a.jsx("p",{className:"text-xs text-muted-foreground mt-3",children:e("billing.trialHint")})]})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"flex items-center gap-2",children:[a.jsx(R9,{className:"w-5 h-5"}),e("billing.accountTitle")]})}),a.jsxs(Le,{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm text-muted-foreground",children:e("billing.accountEmail")}),a.jsx("p",{className:"text-lg font-semibold mt-1",children:u.email})]}),a.jsxs("div",{className:"pt-4 border-t",children:[a.jsx("p",{className:"text-sm font-medium mb-3",children:e("billing.needCredits")}),a.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[a.jsxs(xe,{variant:"outline",size:"sm",onClick:()=>y(50,9),className:"flex items-center gap-2",children:[a.jsx(Zu,{className:"w-3 h-3"})," ",e("billing.credits50")]}),a.jsxs(xe,{variant:"outline",size:"sm",onClick:()=>y(200,29),className:"flex items-center gap-2",children:[a.jsx(Zu,{className:"w-3 h-3"})," ",e("billing.credits200")]})]})]})]})]}),a.jsxs(Oe,{children:[a.jsxs(vt,{children:[a.jsxs(yt,{className:"flex items-center gap-2",children:[a.jsx(Jre,{className:"w-5 h-5"}),e("billing.reportsTitle")]}),a.jsx(Ja,{children:e("billing.reportsDesc")})]}),a.jsx(Le,{children:a.jsx("div",{className:"grid sm:grid-cols-2 gap-3",children:_.map(N=>a.jsxs("div",{className:"flex items-center justify-between p-3 border rounded-lg",children:[a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"font-medium text-sm",children:N.name}),a.jsxs("p",{className:"text-xs text-muted-foreground",children:["$",N.price]})]}),a.jsx(xe,{size:"sm",variant:"outline",onClick:()=>w(N.type,N.price,N.name),className:"text-xs",children:e("billing.purchase")})]},N.type))})})]}),a.jsxs(Oe,{children:[a.jsxs(vt,{children:[a.jsx(yt,{children:e("billing.paymentHistory")}),a.jsxs(Ja,{children:[t.length," ",e("billing.transactions")]})]}),a.jsx(Le,{children:t.length===0?a.jsx("p",{className:"text-sm text-muted-foreground py-6",children:e("billing.noPayments")}):a.jsx("div",{className:"space-y-2",children:t.map(N=>a.jsxs("div",{className:"flex items-center justify-between p-3 border rounded-lg",children:[a.jsxs("div",{children:[a.jsxs("p",{className:"font-medium",children:[N.subscription_plan," ",e("billing.subscription")]}),a.jsx("p",{className:"text-sm text-muted-foreground",children:new Date(N.created_date).toLocaleDateString()})]}),a.jsx("div",{className:"flex items-center gap-3",children:a.jsxs("div",{className:"text-right",children:[a.jsxs("p",{className:"font-semibold",children:["$",N.amount]}),a.jsx(at,{variant:j[N.status],children:N.status})]})})]},N.id))})})]}),a.jsxs(Oe,{children:[a.jsxs(vt,{children:[a.jsx(yt,{children:e("billing.creditPackHistory")}),a.jsxs(Ja,{children:[r.length," ",e("billing.creditPacksCount")]})]}),a.jsx(Le,{children:r.length===0?a.jsx("p",{className:"text-sm text-muted-foreground py-6",children:e("billing.noCreditPacks")}):a.jsx("div",{className:"space-y-2",children:r.map(N=>a.jsxs("div",{className:"flex items-center justify-between p-3 border rounded-lg",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(Zu,{className:"w-4 h-4 text-primary"}),a.jsxs("div",{children:[a.jsxs("p",{className:"font-medium",children:[N.credits_amount," ",e("billing.credits")]}),a.jsx("p",{className:"text-sm text-muted-foreground",children:new Date(N.purchased_date).toLocaleDateString()})]})]}),a.jsxs("div",{className:"text-right",children:[a.jsxs("p",{className:"font-semibold",children:["$",N.price_paid]}),a.jsx(at,{variant:N.status==="completed"?"default":"secondary",children:N.status})]})]},N.id))})})]}),a.jsxs(Oe,{children:[a.jsxs(vt,{children:[a.jsx(yt,{children:e("billing.reportHistory")}),a.jsxs(Ja,{children:[s.length," ",e("billing.reportsCount")]})]}),a.jsx(Le,{children:s.length===0?a.jsx("p",{className:"text-sm text-muted-foreground py-6",children:e("billing.noReports")}):a.jsx("div",{className:"space-y-2",children:s.map(N=>a.jsxs("div",{className:"flex items-center justify-between p-3 border rounded-lg",children:[a.jsxs("div",{children:[a.jsx("p",{className:"font-medium",children:N.report_name}),a.jsx("p",{className:"text-sm text-muted-foreground",children:new Date(N.purchased_date).toLocaleDateString()})]}),a.jsxs("div",{className:"text-right",children:[a.jsxs("p",{className:"font-semibold",children:["$",N.price_paid]}),a.jsx(at,{variant:N.status==="access_granted"?"default":"secondary",children:N.status.replace("_"," ")})]})]},N.id))})})]}),a.jsx(QX,{open:f,onClose:()=>p(!1),item:h,itemType:v,onSuccess:()=>{u&&(Ne.entities.Payment.filter({user_email:u.email},"-created_date",20).then(n),Ne.entities.CreditPack.filter({user_email:u.email},"-purchased_date",10).then(i),Ne.entities.OneTimeReport.filter({user_email:u.email},"-purchased_date",10).then(o))}})]})})}function hqe(){const{t:e}=Zt(),[t,n]=O.useState([]),[r,i]=O.useState([]),[s,o]=O.useState(!0);if(O.useEffect(()=>{(async()=>{try{const v=await Ne.auth.me();if((v==null?void 0:v.role)!=="admin")throw new Error("Admin access required");const g=await Ne.entities.Payment.list("-created_date",100),y=await Ne.entities.Invoice.list("-issued_date",100);n(g),i(y)}catch(v){console.error("Failed to fetch billing data:",v)}finally{o(!1)}})()},[]),s)return a.jsx(nc,{message:e("admin.loadingBilling")});const l=t.filter(x=>x.status==="completed").reduce((x,v)=>x+(v.amount||0),0),c=r.reduce((x,v)=>x+(v.total_amount||0),0),u=r.filter(x=>x.status==="paid").length;r.filter(x=>x.status==="sent"||x.status==="draft").length;const d=r.filter(x=>x.status==="overdue").length,f=[{name:e("admin.completed"),value:t.filter(x=>x.status==="completed").length,fill:"#10b981"},{name:e("admin.pending"),value:t.filter(x=>x.status==="pending").length,fill:"#f59e0b"},{name:e("admin.failed"),value:t.filter(x=>x.status==="failed").length,fill:"#ef4444"}],p={};t.filter(x=>x.status==="completed").forEach(x=>
1254{const v=x.subscription_plan||"unknown";p[v]=(p[v]||0)+x.amount});const h=Object.entries(p).map(([x,v])=>({name:x,revenue:v}));return a.jsx("div",{className:"min-h-screen bg-background p-8",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsx("h1",{className:"text-3xl font-heading font-bold mb-8",children:e("admin.billingRevenue")}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 mb-8",children:[a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsxs(yt,{className:"text-sm font-medium flex items-center gap-2",children:[a.jsx(Lo,{className:"w-4 h-4"}),e("admin.totalRevenue")]})}),a.jsx(Le,{children:a.jsxs("div",{className:"text-2xl font-bold",children:["$",l.toFixed(2)]})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium",children:e("admin.totalInvoiced")})}),a.jsx(Le,{children:a.jsxs("div",{className:"text-2xl font-bold",children:["$",c.toFixed(2)]})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium",children:e("admin.paidInvoices")})}),a.jsxs(Le,{children:[a.jsx("div",{className:"text-2xl font-bold",children:u}),a.jsxs("p",{className:"text-xs text-muted-foreground",children:[e("admin.ofTotal")," ",r.length," ",e("admin.total")]})]})]}),a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium text-destructive",children:e("admin.overdue")})}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold text-destructive",children:d})})]})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8",children:[a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{children:e("admin.paymentStatusDist")})}),a.jsx(Le,{children:a.jsx($h,{width:"100%",height:300,children:a.jsxs(gee,{children:[a.jsx(nu,{data:f,cx:"50%",cy:"50%",labelLine:!1,label:({name:x,value:v})=>`${x}: ${v}`,outerRadius:80,fill:"#8884d8",dataKey:"value",children:f.map((x,v)=>a.jsx(R0,{fill:x.fill},`cell-${v}`))}),a.jsx(Qa,{})]})})})]}),h.length>0&&a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{children:e("admin.revenueByPlan")})}),a.jsx(Le,{children:a.jsx($h,{width:"100%",height:300,children:a.jsxs(tx,{data:h,children:[a.jsx(rg,{strokeDasharray:"3 3"}),a.jsx(Rf,{dataKey:"name"}),a.jsx(If,{}),a.jsx(Qa,{formatter:x=>`$${x}`}),a.jsx(Qs,{dataKey:"revenue",fill:"#3b82f6"})]})})})]})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{children:e("admin.recentPayments")})}),a.jsx(Le,{children:a.jsx("div",{className:"space-y-2 max-h-96 overflow-y-auto",children:t.slice(0,10).map(x=>a.jsxs("div",{className:"flex items-center justify-between p-3 border rounded-lg",children:[a.jsxs("div",{children:[a.jsxs("p",{className:"font-medium",children:[x.subscription_plan," ",e("admin.plan")]}),a.jsx("p",{className:"text-sm text-muted-foreground",children:new Date(x.created_date).toLocaleDateString()})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs("span",{className:"font-semibold",children:["$",x.amount]}),a.jsx(at,{variant:x.status==="completed"?"default":"secondary",children:x.status})]})]},x.id))})})]})]})})}function pqe(){const{t:e}=Zt(),[t,n]=O.useState([]),[r,i]=O.useState(!0),[s,o]=O.useState(!1),[l,c]=O.useState(null),[u,d]=O.useState({title:"",description:"",image_url:"",click_url:"",placement:"sidebar",status:"draft",display_frequency:"always",target_roles:["user","visitor"]});O.useEffect(()=>{f()},[]);const f=async()=>{try{const g=await Ne.auth.me();if((g==null?void 0:g.role)!=="admin")throw new Error("Admin access required");const y=await Ne.entities.Advertisement.list("-created_date",100);n(y)}catch(g){console.error("Failed to fetch ads:",g)}finally{i(!1)}},p=async()=>{l?await Ne.entities.Advertisement.update(l.id,u):await Ne.entities.Advertisement.create(u),o(!1),c(null),d({title:"",description:"",image_url:"",click_url:"",placement:"sidebar",status:"draft",display_frequency:"always",target_roles:["user","visitor"]}),f()},h=g=>{c(g),d(g),o(!0)},x=async g=>{window.confirm(e("admin.confirmDeleteAd"))&&(await Ne.entities.Advertisement.delete(g),f())};if(r)return a.jsx(nc,{message:e("admin.loadingAds")});const v={draft:"secondary",active:"default",paused:"outline",expired:"destructive"};return a.jsx("div",{className:"min-h-screen bg-background p-8",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"flex items-center justify-between mb-8",children:[a.jsx("h1",{className:"text-3xl font-heading font-bold",children:e("admin.adMgmt")}),a.jsxs(Gn,{open:s,onOpenChange:o,children:[a.jsx(Cy,{asChild:!0,children:a.jsxs(xe,{onClick:()=>{c(null),d({title:"",description:"",image_url:"",click_url:"",placement:"sidebar",status:"draft",dis
1254play_frequency:"always",target_roles:["user","visitor"]})},children:[a.jsx(sa,{className:"w-4 h-4 mr-2"})," ",e("admin.newAd")]})}),a.jsxs(zn,{className:"max-w-2xl",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:e(l?"admin.editAd":"admin.createNewAd")})}),a.jsxs("div",{className:"space-y-4",children:[a.jsx(Qe,{placeholder:e("admin.adTitle"),value:u.title,onChange:g=>d({...u,title:g.target.value})}),a.jsx(Pn,{placeholder:e("admin.descriptionLabel"),value:u.description,onChange:g=>d({...u,description:g.target.value})}),a.jsx(Qe,{placeholder:e("admin.imageUrl"),value:u.image_url,onChange:g=>d({...u,image_url:g.target.value})}),a.jsx(Qe,{placeholder:e("admin.clickUrl"),value:u.click_url,onChange:g=>d({...u,click_url:g.target.value})}),a.jsxs(Et,{value:u.placement,onValueChange:g=>d({...u,placement:g}),children:[a.jsx(Pt,{children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"sidebar",children:e("admin.sidebar")}),a.jsx(Ce,{value:"banner",children:e("admin.banner")}),a.jsx(Ce,{value:"footer",children:e("admin.footer")}),a.jsx(Ce,{value:"modal",children:e("admin.modal")}),a.jsx(Ce,{value:"inline",children:e("admin.inline")})]})]}),a.jsxs(Et,{value:u.status,onValueChange:g=>d({...u,status:g}),children:[a.jsx(Pt,{children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"draft",children:e("admin.draft")}),a.jsx(Ce,{value:"active",children:e("admin.active")}),a.jsx(Ce,{value:"paused",children:e("admin.paused")}),a.jsx(Ce,{value:"expired",children:e("admin.expired")})]})]}),a.jsx(xe,{onClick:p,className:"w-full",children:e(l?"admin.updateAd":"admin.createAd")})]})]})]})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{children:e("admin.activeAds")})}),a.jsx(Le,{children:t.length===0?a.jsx("p",{className:"text-muted-foreground py-8",children:e("admin.noAds")}):a.jsx("div",{className:"space-y-2 max-h-96 overflow-y-auto",children:t.map(g=>a.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg hover:bg-muted/50",children:[a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"font-semibold",children:g.title}),a.jsxs("div",{className:"flex gap-2 mt-2",children:[a.jsx(at,{variant:"outline",className:"text-xs",children:g.placement}),a.jsx(at,{variant:v[g.status],children:g.status}),a.jsxs("span",{className:"text-xs text-muted-foreground",children:[g.impressions," ",e("admin.views")," ⢠",g.clicks," ",e("admin.clicks")]})]})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(xe,{variant:"ghost",size:"icon",onClick:()=>h(g),children:a.jsx(F9,{className:"w-4 h-4"})}),a.jsx(xe,{variant:"ghost",size:"icon",onClick:()=>x(g.id),children:a.jsx(Ps,{className:"w-4 h-4 text-destructive"})})]})]},g.id))})})]})]})})}const K$=["image/jpeg","image/png","image/gif","image/webp","application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/zip","application/x-zip-compressed"],x4=10,mqe=x4*1024*1024;function gqe(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Y$(e){return e==null?void 0:e.startsWith("image/")}function vee({attachments:e=[],onChange:t}){const n=O.useRef(null),[r,i]=O.useState(!1),[s,o]=O.useState(!1),[l,c]=O.useState(null),u=async h=>{const x=[];for(const y of h){if(!K$.includes(y.type)){pt.error(`${y.name}: unsupported file type`);continue}if(y.size>mqe){pt.error(`${y.name}: exceeds ${x4}MB limit`);continue}x.push(y)}if(!x.length)return;i(!0);const v=await Ne.auth.me().catch(()=>null),g=[...e];for(const y of x){const{file_url:w}=await Ne.integrations.Core.UploadFile({file:y});g.push({url:w,name:y.name,size:y.size,mime_type:y.type,uploaded_by:(v==null?void 0:v.email)||"unknown",uploaded_at:new Date().toISOString()})}i(!1),t(g)},d=h=>{u(Array.from(h.target.files)),h.target.value=""},f=h=>{h.preventDefault(),o(!1),u(Array.from(h.dataTransfer.files))},p=h=>{const x=e.filter((v,g)=>g!==h);t(x)};return a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{onDragOver:h=>{h.preventDefault(),o(!0)},onDragLeave:()=>o(!1),onDrop:f,onClick:()=>{var h;
1254return(h=n.current)==null?void 0:h.click()},className:`border-2 border-dashed rounded-lg p-4 text-center cursor-pointer transition-colors 1255 ${s?"border-primary bg-primary/5":"border-border hover:border-primary/50 hover:bg-muted/30"}`,children:[a.jsx("input",{ref:n,type:"file",multiple:!0,accept:K$.join(","),className:"hidden",onChange:d}),r?a.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-muted-foreground",children:[a.jsx(Mf,{className:"w-4 h-4 animate-spin"})," Uploading..."]}):a.jsxs("div",{className:"flex flex-col items-center gap-1",children:[a.jsx(hie,{className:"w-5 h-5 text-muted-foreground"}),a.jsxs("span",{className:"text-sm text-muted-foreground",children:["Drop files here or ",a.jsx("span",{className:"text-primary font-medium",children:"browse"})]}),a.jsxs("span",{className:"text-xs text-muted-foreground",children:["Images, PDF, DOCX, XLSX, PPTX, ZIP â max ",x4,"MB each"]})]})]}),e.length>0&&a.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2",children:e.map((h,x)=>a.jsxs("div",{className:"relative group border rounded-lg overflow-hidden bg-muted/20",children:[Y$(h.mime_type)?a.jsx("img",{src:h.url,alt:h.name,className:"w-full h-20 object-cover cursor-pointer hover:opacity-80 transition-opacity",onClick:()=>c(h.url)}):a.jsxs("div",{className:"flex items-center gap-2 p-2",children:[a.jsx(U1,{className:"w-4 h-4 text-muted-foreground flex-shrink-0"}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"text-xs font-medium truncate",children:h.name}),a.jsx("p",{className:"text-xs text-muted-foreground",children:gqe(h.size)})]})]}),a.jsx("button",{type:"button",onClick:()=>p(x),className:"absolute top-1 right-1 bg-background/80 rounded-full p-0.5 opacity-0 group-hover:opacity-100 transition-opacity",children:a.jsx(ss,{className:"w-3 h-3"})}),Y$(h.mime_type)&&a.jsx("p",{className:"text-[10px] text-muted-foreground px-1 pb-1 truncate",children:h.name})]},x))}),l&&a.jsxs("div",{className:"fixed inset-0 z-50 bg-black/80 flex items-center justify-center p-4",onClick:()=>c(null),children:[a.jsx("img",{src:l,alt:"Preview",className:"max-w-full max-h-full rounded-lg shadow-2xl"}),a.jsx("button",{className:"absolute top-4 right-4 text-white bg-black/50 rounded-full p-2 hover:bg-black/70",onClick:()=>c(null),children:a.jsx(ss,{className:"w-5 h-5"})})]})]})}function vqe(e){return e?e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`:""}function yqe(e){return e==null?void 0:e.startsWith("image/")}function X$({attachments:e=[]}){const[t,n]=O.useState(null);return e.length?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"space-y-2",children:e.map((r,i)=>a.jsxs("div",{className:"flex items-center gap-3 p-2 rounded-lg border bg-muted/20 hover:bg-muted/40 transition-colors group",children:[yqe(r.mime_type)?a.jsx("img",{src:r.url,alt:r.name,className:"w-10 h-10 object-cover rounded cursor-pointer flex-shrink-0",onClick:()=>n(r.url)}):a.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded flex items-center justify-center flex-shrink-0",children:a.jsx(Xn,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:r.name}),a.jsxs("p",{className:"text-xs text-muted-foreground",children:[vqe(r.size),r.uploaded_by&&` · ${r.uploaded_by}`,r.uploaded_at&&` · ${gj(new Date(r.uploaded_at),"MMM d, yyyy")}`]})]}),a.jsx("a",{href:r.url,download:r.name,target:"_blank",rel:"noopener noreferrer",className:"opacity-0 group-hover:opacity-100 p-1.5 hover:bg-primary/10 rounded transition-all",title:"Download",children:a.jsx(Yg,{className:"w-4 h-4 text-primary"})})]},i))}),t&&a.jsxs("div",{className:"fixed inset-0 z-50 bg-black/80 flex items-center justify-center p-4",onClick:()=>n(null),children:[a.jsx("img",{src:t,alt:"Preview",className:"max-w-full max-h-full rounded-lg shadow-2xl"}),a.jsx("button",{className:"absolute top-4 right-4 text-white bg-black/50 rounded-full p-2 hover:bg-black/70",onClick:()=>n(null),children:a.jsx(ss,{className:"w-5 h-5"})})]})]}):null}const xqe={created:"bg-slate-500/10 text-slate-600",in_progress:"bg-amber-500/10 text-amber-600",parked:"bg-blue-500/10 text-blue-600",closed:"bg-green-500/10 text-green-600"},bqe={low:"bg-green-500/10 text-green-600",medium:"bg-amber-500/10 text-amber-600",high:"bg-orange-500/10 text-orange-600",critical:"bg-red-500/10 text-red-600"};function wqe({issue:e,open:t,onClose:n,onUpdate:r}){var h;const[i,s]=O.useState(""),[o,l]=O.useState([]),[c,u]=O.useState(!1),[d,f]=O.useState(!1);if(!e)return null;const p=async()=>
1255{if(!i.trim()&&!o.length)return;f(!0);const x=await Ne.auth.me().catch(()=>null),v={author_email:(x==null?void 0:x.email)||"unknown",content:i.trim(),timestamp:new Date().toISOString(),attachments:o},g=await Ne.entities.Issue.update(e.id,{comments:[...e.comments||[],v]});s(""),l([]),u(!1),f(!1),pt.success("Comment added"),r(g)};return a.jsx(Gn,{open:t,onOpenChange:n,children:a.jsxs(zn,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[a.jsxs(Vn,{children:[a.jsx(Wn,{className:"text-lg leading-tight",children:e.title}),a.jsxs("div",{className:"flex flex-wrap gap-2 mt-2",children:[a.jsx(at,{variant:"outline",className:xqe[e.status],children:(h=e.status)==null?void 0:h.replace("_"," ")}),a.jsx(at,{variant:"outline",className:bqe[e.priority],children:e.priority}),a.jsx(at,{variant:"outline",className:"text-xs capitalize",children:e.type})]})]}),a.jsxs("div",{className:"space-y-6",children:[e.description&&a.jsxs("div",{children:[a.jsx("h4",{className:"text-sm font-semibold mb-1 text-muted-foreground",children:"Description"}),a.jsx("p",{className:"text-sm whitespace-pre-wrap",children:e.description})]}),(e.attachments||[]).length>0&&a.jsxs("div",{children:[a.jsxs("h4",{className:"text-sm font-semibold mb-2 flex items-center gap-1.5",children:[a.jsx(U1,{className:"w-4 h-4"})," Attachments (",e.attachments.length,")"]}),a.jsx(X$,{attachments:e.attachments})]}),a.jsxs("div",{children:[a.jsxs("h4",{className:"text-sm font-semibold mb-3 flex items-center gap-1.5",children:[a.jsx(o0,{className:"w-4 h-4"})," Comments (",(e.comments||[]).length,")"]}),a.jsx("div",{className:"space-y-3",children:(e.comments||[]).map((x,v)=>a.jsxs("div",{className:"border rounded-lg p-3 bg-muted/20",children:[a.jsxs("div",{className:"flex items-center justify-between mb-1",children:[a.jsx("span",{className:"text-xs font-medium",children:x.author_email}),a.jsx("span",{className:"text-xs text-muted-foreground",children:x.timestamp?gj(new Date(x.timestamp),"MMM d, yyyy HH:mm"):""})]}),x.content&&a.jsx("p",{className:"text-sm whitespace-pre-wrap mb-2",children:x.content}),(x.attachments||[]).length>0&&a.jsx(X$,{attachments:x.attachments})]},v))}),a.jsxs("div",{className:"mt-4 space-y-2",children:[a.jsx(Pn,{placeholder:"Add a comment...",value:i,onChange:x=>s(x.target.value),rows:3}),c&&a.jsx(vee,{attachments:o,onChange:l}),a.jsxs("div",{className:"flex items-center gap-2 justify-end",children:[a.jsxs(xe,{type:"button",variant:"outline",size:"sm",onClick:()=>u(!c),className:"gap-1.5",children:[a.jsx(U1,{className:"w-3.5 h-3.5"}),o.length>0?`${o.length} file(s)`:"Attach"]}),a.jsxs(xe,{size:"sm",onClick:p,disabled:d||!i.trim()&&!o.length,className:"gap-1.5",children:[a.jsx(l0,{className:"w-3.5 h-3.5"}),"Comment"]})]})]})]})]})]})})}const jqe={created:"bg-slate-500/10 text-slate-600",in_progress:"bg-amber-500/10 text-amber-600",parked:"bg-blue-500/10 text-blue-600",closed:"bg-green-500/10 text-green-600"},_qe={low:"bg-green-500/10 text-green-600",medium:"bg-amber-500/10 text-amber-600",high:"bg-orange-500/10 text-orange-600",critical:"bg-red-500/10 text-red-600"},Q$={bug:"ð",feature:"â¨",support:"ð"};function Nqe(){const{t:e}=Zt(),[t,n]=O.useState(""),[r,i]=O.useState("all"),[s,o]=O.useState("all"),[l,c]=O.useState("all"),[u,d]=O.useState(!1),[f,p]=O.useState(null),[h,x]=O.useState(null),[v,g]=O.useState(null),[y,w]=O.useState({title:"",description:"",type:"bug",status:"created",priority:"medium",attachments:[]}),j=Ur(),{data:_=[],isLoading:N}=Qt({queryKey:["issues"],queryFn:()=>Ne.entities.Issue.list("-created_date",100)}),A=()=>w({title:"",description:"",type:"bug",status:"created",priority:"medium",attachments:[]}),E=K=>e(K==="in_progress"?"admin.inProgress":K==="closed"?"admin.closedStatus":`admin.${K}`),k=K=>e(`admin.${K}`),T=K=>e(K==="bug"?"admin.bug":K==="feature"?"admin.feature":"admin.support"),D=Nn({mutationFn:K=>Ne.entities.Issue.create(K),onSuccess:()=>{j.invalidateQueries({queryKey:["issues"]}),pt.success(e("admin.issueCreated")),d(!1),A()}}),P=Nn({mutationFn:({id:K,data:F})=>Ne.entities.Issue.update(K,F),onSuccess:()=>{j.invalidateQueries({queryKey:["issues"]}),pt.success(e("admin.issueUpdated")),p(null),A()}}),R=Nn({mutationFn:K=>Ne.entities.Issue.delete(K),onSuccess:()=>{j.invalidateQueries({queryKey:["issues"]}),pt.success(e("admin.issueDeleted")),x(null)}}),q=()=>{p(null),A(),d(!0)},M=K=>
1255{p(K),w({title:K.title,description:K.description||"",type:K.type,status:K.status,priority:K.priority,attachments:K.attachments||[]}),d(!0)},V=K=>{j.invalidateQueries({queryKey:["issues"]}),g(K)},H=()=>{if(!y.title.trim()){pt.error(e("admin.issueTitleRequired"));return}f?P.mutate({id:f.id,data:y}):D.mutate(y)};_.filter(K=>{const F=K.title.toLowerCase().includes(t.toLowerCase()),$=r==="all"||K.type===r,B=s==="all"||K.status===s,z=l==="all"||K.priority===l;return F&&$&&B&&z});const Z={total:_.length,byType:{bug:_.filter(K=>K.type==="bug").length,feature:_.filter(K=>K.type==="feature").length,support:_.filter(K=>K.type==="support").length},byStatus:{created:_.filter(K=>K.status==="created").length,in_progress:_.filter(K=>K.status==="in_progress").length,parked:_.filter(K=>K.status==="parked").length,closed:_.filter(K=>K.status==="closed").length},critical:_.filter(K=>K.priority==="critical").length,completionRate:_.length>0?Math.round(_.filter(K=>K.status==="closed").length/_.length*100):0},J={created:_.filter(K=>K.status==="created"),in_progress:_.filter(K=>K.status==="in_progress"),parked:_.filter(K=>K.status==="parked"),closed:_.filter(K=>K.status==="closed")};return a.jsx("div",{className:"min-h-screen bg-background p-6",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"mb-8",children:[a.jsx("h1",{className:"text-3xl font-bold mb-2",children:e("admin.platformIssueTracker")}),a.jsx("p",{className:"text-muted-foreground",children:e("admin.issueTrackerDesc")})]}),a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4 mb-8",children:[a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium text-muted-foreground",children:e("admin.totalIssues")})}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold",children:Z.total})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium text-muted-foreground",children:e("admin.created")})}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold text-slate-600",children:Z.byStatus.created})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium text-muted-foreground",children:e("admin.inProgress")})}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold text-amber-600",children:Z.byStatus.in_progress})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium text-muted-foreground",children:e("admin.parked")})}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold text-blue-600",children:Z.byStatus.parked})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium text-muted-foreground",children:e("admin.closedStatus")})}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold text-green-600",children:Z.byStatus.closed})})]}),a.jsxs(Oe,{className:"border-destructive/50 bg-destructive/5",children:[a.jsx(vt,{className:"pb-2",children:a.jsx(yt,{className:"text-sm font-medium text-destructive",children:e("admin.criticalIssues")})}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold text-destructive",children:Z.critical})})]})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 mb-8",children:[a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"text-base",children:e("admin.issueTypes")})}),a.jsx(Le,{className:"space-y-3",children:Object.entries(Z.byType).map(([K,F])=>a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("span",{className:"text-sm capitalize",children:[Q$[K]," ",T(K)]}),a.jsx("span",{className:"font-semibold",children:F})]},K))})]}),a.jsxs(Oe,{className:"lg:col-span-3 bg-green-50 border-green-200",children:[a.jsx(vt,{children:a.jsx(yt,{className:"text-base",children:e("admin.overallProgress")})}),a.jsx(Le,{children:a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx("span",{className:"text-sm text-muted-foreground",children:e("admin.completionRate")}),a.jsxs("span",{className:"text-2xl font-bold text-green-600",children:[Z.completionRate,"%"]})]}),a.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:a.jsx("div",{className:"bg-green-600 h-2 rounded-full transition-all",style:{width:`${Z.completionRate}%`}})})]})})]})]}),a.jsx("div",{className:"flex flex-col gap-4 mb-6",children:a.jsxs("div",{className:"flex gap-4 items-center flex-wrap",children:[a.jsxs("div",{className:"flex-1 min-w-[200px] relative",children:[a.jsx(eo,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-muted-foreground"}),a.jsx(Qe,{placeholder:e("admin.searchIssues"),value:t,onChange:K=>n(K.target.value),className:"pl-10"})]}),a.jsxs(Et,{value:r,onValueChange:i,children:[a.jsx(Pt,{className:"w-[140px]",children:a.jsx(Tt,{placeholder:e("admin.allTypes")})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:e("admin.allTypes")}),a.jsx(Ce,{value:"bug",children:e("admin.bugs")}),a.jsx(Ce,{value:"feature",children:e("admin.features")}),a.jsx(Ce,{value:"support",children:e("admin.support")})]})]}),a.jsxs(Et,{value:s,onValueChange:o,children:[a.jsx(Pt,{className:"w-[140px]",children:a.jsx(Tt,{placeholder:e("admin.allStatus")})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:e("admin.allStatus")}),a.jsx(Ce,{value:"created",children:e("admin.created")}),a.jsx(Ce,{value:"in_progress",children:e("admin.inProgress")}),a.jsx(Ce,{value:"parked",children:e("admin.parked")}),a.jsx(Ce,{value:"closed",children:e("admin.closedStatus")})]})]}),a.jsxs(Et,{value:l,onValueChange:c,children:[a.jsx(Pt,{className:"w-[140px]",children:a.jsx(Tt,{placeholder:e("admin.allPriorities")})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:e("admin.allPriorities")}),a.jsx(Ce,{value:"low",children:e("admin.low")}),a.jsx(Ce,{value:"medium",children:e("admin.medium")}),a.jsx(Ce,{value:"high",children:e("admin.high")}),a.jsx(Ce,{value:"critical",children:e("admin.critical")})]})]}),a.jsxs(xe,{onClick:q,className:"gap-2",children:[a.jsx(sa,{className:"w-4 h-4"}),e("admin.newIssue")]})]})}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:Object.entries(J).map(([K,F])=>a.jsxs("div",{className:"bg-card rounded-lg border p-4",children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsx("h3",{className:"font-semibold capitalize text-sm",children:E(K)}),a.jsx(at,{variant:"outline",className:"text-xs",children:F.length})]}),a.jsx("div",{className:"space-y-2",children:F.length===0?a.jsx("p",{className:"text-xs text-muted-foreground py-4 text-center",children:e("admin.noIssues")}):F.map($=>a.jsx("div",{className:"p-3 bg-background rounded-lg border hover:shadow-sm transition-shadow",children:a.jsxs("div",{className:"flex items-start justify-between gap-2",children:[a.jsxs("div",{className:"flex-1 min-w-0 cursor-pointer",onClick:()=>g($),children:[a.jsxs("p",{className:"text-sm font-medium truncate",children:[Q$[$.type]," ",$.title]}),a.jsxs("div",{className:"flex gap-1 mt-2 flex-wrap",children:[a.jsx(at,{variant:"outline",className:`text-[10px] ${jqe[$.status]}`,children:E($.status)}),a.jsx(at,{variant:"outline",className:`text-[10px] ${_qe[$.priority]}`,children:k($.priority)}),($.attachments||[]).length>0&&a.jsxs(at,{variant:"outline",className:"text-[10px] text-muted-foreground",children:[a.jsx(U1,{className:"w-2.5 h-2.5 mr-0.5"}),$.attachments.length]})]})]}),a.jsxs("div",{className:"flex gap-1",children:[a.jsx("button",{onClick:()=>g($),className:"p-1 hover:bg-accent rounded transition-colors",title:e("admin.view"),children:a.jsx(S2,{className:"w-3 h-3"})}),a.jsx("button",{onClick:()=>M($),className:"p-1 hover:bg-accent rounded transition-colors",title:e("admin.edit"),children:a.jsx(md,{className:"w-3 h-3"})}),a.jsx("button",{onClick:()=>x($.id),className:"p-1 hover:bg-destructive/10 rounded transition-colors",title:e("admin.delete"),children:a.jsx(Ps,{className:"w-3 h-3 text-destructive"})})]})]})},$.id))})]},K))}),a.jsx(Gn,{open:u,onOpenChange:d,children:a.jsxs(zn,{children:[a.jsxs(Vn,{children:[a.jsx(Wn,{children:e(f?"admin.editIssue":"admin.createNewIssue")}),a.jsx(Mc,{children:e(f?"admin.editIssueDesc":"admin.createIssueDesc")})]}),a.jsxs("div",{className:"space-y-4 max-h-[70vh] overflow-y-auto pr-1",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-medium",children:e("admin.title")}),a.jsx(Qe,{value:y.title,onChange:K=>w({...y,title:K.target.value}),placeholder:e("admin.issueTitle"),className:"mt-1"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-medium",children:e("admin.description")}),a.jsx(Pn,{value:y.description,onChange:K=>w({...y,description:K.target.value}),placeholder:e("admin.issueDescription"),className:"mt-1",rows:4})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-medium",children:e("admin.type")}),a.jsxs(Et,{value:y.type,onValueChange:K=>w({...y,type:K}),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"bug",children:e("admin.bug")}),a.jsx(Ce,{value:"feature",children:e("admin.feature")}),a.jsx(Ce,{value:"support",children:e("admin.support")})]})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-medium",children:e("admin.status")}),a.jsxs(Et,{value:y.status,onValueChange:K=>w({...y,status:K}),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"created",children:e("admin.created")}),a.jsx(Ce,{value:"in_progress",children:e("admin.inProgress")}),a.jsx(Ce,{value:"parked",children:e("admin.parked")}),a.jsx(Ce,{value:"closed",children:e("admin.closedStatus")})]})]})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-medium",children:e("admin.priority")}),a.jsxs(Et,{value:y.priority,onValueChange:K=>w({...y,priority:K}),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"low",children:e("admin.low")}),a.jsx(Ce,{value:"medium",children:e("admin.medium")}),a.jsx(Ce,{value:"high",children:e("admin.high")}),a.jsx(Ce,{value:"critical",children:e("admin.critical")})]})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-medium mb-2 block",children:e("admin.attachments")}),a.jsx(vee,{attachments:y.attachments||[],onChange:K=>w({...y,attachments:K})})]}),a.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>d(!1),children:e("admin.cancel")}),a.jsx(xe,{onClick:H,children:e(f?"admin.update":"admin.create")})]})]})]})}),a.jsx(Gn,{open:!!h,onOpenChange:K=>!K&&x(null),children:a.jsxs(zn,{children:[a.jsxs(Vn,{children:[a.jsx(Wn,{children:e("admin.deleteIssue")}),a.jsx(Mc,{children:e("admin.deleteIssueDesc")})]}),a.jsxs("div",{className:"flex gap-2 justify-end",children:[a.jsx(xe,{variant:"outline",onClick:()=>x(null),children:e("admin.cancel")}),a.jsx(xe,{variant:"destructive",onClick:()=>R.mutate(h),children:e("admin.delete")})]})]})}),a.jsx(wqe,{issue:v,open:!!v,onClose:()=>g(null),onUpdate:V})]})})}var n_="Switch",[Sqe]=xl(n_),[Aqe,kqe]=Sqe(n_),yee=O.forwardRef((e,t)=>
vendor: 1,321 bytes, line 1255
1255{const{__scopeSwitch:n,name:r,checked:i,defaultChecked:s,required:o,disabled:l,value:c="on",onCheckedChange:u,form:d,...f}=e,[p,h]=O.useState(null),x=Qn(t,j=>h(j)),v=O.useRef(!1),g=p?d||!!p.closest("form"):!0,[y,w]=od({prop:i,defaultProp:s??!1,onChange:u,caller:n_});return a.jsxs(Aqe,{scope:n,checked:y,disabled:l,children:[a.jsx(wn.button,{type:"button",role:"switch","aria-checked":y,"aria-required":o,"data-state":jee(y),"data-disabled":l?"":void 0,disabled:l,value:c,...f,ref:x,onClick:qt(e.onClick,j=>{w(_=>!_),g&&(v.current=j.isPropagationStopped(),v.current||j.stopPropagation())})}),g&&a.jsx(wee,{control:p,bubbles:!v.current,name:r,value:c,checked:y,required:o,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});yee.displayName=n_;var xee="SwitchThumb",bee=O.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,i=kqe(xee,n);return a.jsx(wn.span,{"data-state":jee(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});bee.displayName=xee;var Pqe="SwitchBubbleInput",wee=O.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},s)=>{const o=O.useRef(null),l=Qn(o,s),c=rj(n),u=Z2(t);return O.useEffect(()=>{const d=o.current;if(!d)return;const f=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(f,"checked").set;if(c!==n&&h){const x=new Event("click",{bubbles:r});
1255h.call(d,n),d.dispatchEvent(x)}},[c,n,r]),a.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:l,style:{...i.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});wee.displayName=Pqe;function jee(e){return e?"checked":"unchecked"}var _ee=yee,Cqe=bee;const ig=O.forwardRef(({className:e,...t},n)=>a.jsx(_ee,{className:ln("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:a.jsx(Cqe,{className:ln("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));ig.displayName=_ee.displayName;var q1={exports:{}};/*! 1256 * Quill Editor v1.3.7 1257 * https://quilljs.com/ 1258 * Copyright (c) 2014, Jason Chen 1259 * Copyright (c) 2013, salesforce.com 1260 */var Eqe=q1.exports,Z$;function Tqe(){return Z$||(Z$=1,(function(e,t){(function(r,i){e.exports=i()})(typeof self<"u"?self:Eqe,function(){return(function(n){var r={};function i(s){if(r[s])return r[s].exports;var o=r[s]={i:s,l:!1,exports:{}};return n[s].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=n,i.c=r,i.d=function(s,o,l){i.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:l})},i.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(o,"a",o),o},i.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},i.p="",i(i.s=109)})([(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i(17),o=i(18),l=i(19),c=i(45),u=i(46),d=i(47),f=i(48),p=i(49),h=i(12),x=i(32),v=i(33),g=i(31),y=i(1),w={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:s.default,Format:o.default,Leaf:l.default,Embed:f.default,Scroll:c.default,Block:d.default,Inline:u.default,Text:p.default,Attributor:{Attribute:h.default,Class:x.default,Style:v.default,Store:g.default}};r.default=w}),(function(n,r,i){var s=this&&this.__extends||(function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,w){y.__proto__=w}||function(y,w){for(var j in w)w.hasOwnProperty(j)&&(y[j]=w[j])};return function(y,w){g(y,w);function j(){this.constructor=y}y.prototype=w===null?Object.create(w):(j.prototype=w.prototype,new j)}})();Object.defineProperty(r,"__esModule",{value:!0});var o=(function(g){s(y,g);function y(w){var j=this;return w="[Parchment] "+w,j=g.call(this,w)||this,j.message=w,j.name=j.constructor.name,j}return y})(Error);r.ParchmentError=o;var l={},c={},u={},d={};r.DATA_KEY="__blot";var f;(function(g){g[g.TYPE=3]="TYPE",g[g.LEVEL=12]="LEVEL",g[g.ATTRIBUTE=13]="ATTRIBUTE",g[g.BLOT=14]="BLOT",g[g.INLINE=7]="INLINE",g[g.BLOCK=11]="BLOCK",g[g.BLOCK_BLOT=10]="BLOCK_BLOT",g[g.INLINE_BLOT=6]="INLINE_BLOT",g[g.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",g[g.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",g[g.ANY=15]="ANY"})(f=r.Scope||(r.Scope={}));function p(g,y){var w=x(g);if(w==null)throw new o("Unable to create "+g+" blot");var j=w,_=g instanceof Node||g.nodeType===Node.TEXT_NODE?g:j.create(y);return new j(_,y)}r.create=p;function h(g,y){return y===void 0&&(y=!1),g==null?null:g[r.DATA_KEY]!=null?g[r.DATA_KEY].blot:y?h(g.parentNode,y):null}r.find=h;function x(g,y){y===void 0&&(y=f.ANY);var w;if(typeof g=="string")w=d[g]||l[g];else if(g instanceof Text||g.nodeType===Node.TEXT_NODE)w=d.text;else if(typeof g=="number")g&f.LEVEL&f.BLOCK?w=d.block:g&f.LEVEL&f.INLINE&&(w=d.inline);else if(g instanceof HTMLElement){var j=(g.getAttribute("class")||"").split(/\s+/);for(var _ in j)if(w=c[j[_]],w)break;w=w||u[g.tagName]}return w==null?null:y&f.LEVEL&w.scope&&y&f.TYPE&w.scope?w:null}r.query=x;function v(){for(var g=[],y=0;y<arguments.length;y++)g[y]=arguments[y];if(g.length>1)return g.map(function(_){return v(_)});var w=g[0];if(typeof w.blotName!="string"&&typeof w.attrName!="string")throw new o("Invalid definition");if(w.blotName==="abstract")throw new o("Cannot register abstract class");if(d[w.blotName||w.attrName]=w,typeof w.keyName=="string")l[w.keyName]=w;else if(w.className!=null&&(c[w.className]=w),w.tagName!=null){Array.isArray(w.tagName)?w.tagName=w.tagName.map(function(_){return _.toUpperCase()}):w.tagName=w.tagName.toUpperCase();var j=Array.isArray(w.tagName)?w.tagName:[w.tagName];
vendor: 195,230 bytes, lines 1260-1295
1260j.forEach(function(_){(u[_]==null||w.className==null)&&(u[_]=w)})}return w}r.register=v}),(function(n,r,i){var s=i(51),o=i(11),l=i(3),c=i(20),u="\0",d=function(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]};d.prototype.insert=function(f,p){var h={};return f.length===0?this:(h.insert=f,p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(h.attributes=p),this.push(h))},d.prototype.delete=function(f){return f<=0?this:this.push({delete:f})},d.prototype.retain=function(f,p){if(f<=0)return this;var h={retain:f};return p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(h.attributes=p),this.push(h)},d.prototype.push=function(f){var p=this.ops.length,h=this.ops[p-1];if(f=l(!0,{},f),typeof h=="object"){if(typeof f.delete=="number"&&typeof h.delete=="number")return this.ops[p-1]={delete:h.delete+f.delete},this;if(typeof h.delete=="number"&&f.insert!=null&&(p-=1,h=this.ops[p-1],typeof h!="object"))return this.ops.unshift(f),this;if(o(f.attributes,h.attributes)){if(typeof f.insert=="string"&&typeof h.insert=="string")return this.ops[p-1]={insert:h.insert+f.insert},typeof f.attributes=="object"&&(this.ops[p-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof h.retain=="number")return this.ops[p-1]={retain:h.retain+f.retain},typeof f.attributes=="object"&&(this.ops[p-1].attributes=f.attributes),this}}return p===this.ops.length?this.ops.push(f):this.ops.splice(p,0,f),this},d.prototype.chop=function(){var f=this.ops[this.ops.length-1];return f&&f.retain&&!f.attributes&&this.ops.pop(),this},d.prototype.filter=function(f){return this.ops.filter(f)},d.prototype.forEach=function(f){this.ops.forEach(f)},d.prototype.map=function(f){return this.ops.map(f)},d.prototype.partition=function(f){var p=[],h=[];return this.forEach(function(x){var v=f(x)?p:h;v.push(x)}),[p,h]},d.prototype.reduce=function(f,p){return this.ops.reduce(f,p)},d.prototype.changeLength=function(){return this.reduce(function(f,p){return p.insert?f+c.length(p):p.delete?f-p.delete:f},0)},d.prototype.length=function(){return this.reduce(function(f,p){return f+c.length(p)},0)},d.prototype.slice=function(f,p){f=f||0,typeof p!="number"&&(p=1/0);for(var h=[],x=c.iterator(this.ops),v=0;v<p&&x.hasNext();){var g;v<f?g=x.next(f-v):(g=x.next(p-v),h.push(g)),v+=c.length(g)}return new d(h)},d.prototype.compose=function(f){var p=c.iterator(this.ops),h=c.iterator(f.ops),x=[],v=h.peek();if(v!=null&&typeof v.retain=="number"&&v.attributes==null){for(var g=v.retain;p.peekType()==="insert"&&p.peekLength()<=g;)g-=p.peekLength(),x.push(p.next());v.retain-g>0&&h.next(v.retain-g)}for(var y=new d(x);p.hasNext()||h.hasNext();)if(h.peekType()==="insert")y.push(h.next());else if(p.peekType()==="delete")y.push(p.next());else{var w=Math.min(p.peekLength(),h.peekLength()),j=p.next(w),_=h.next(w);if(typeof _.retain=="number"){var N={};typeof j.retain=="number"?N.retain=w:N.insert=j.insert;var A=c.attributes.compose(j.attributes,_.attributes,typeof j.retain=="number");if(A&&(N.attributes=A),y.push(N),!h.hasNext()&&o(y.ops[y.ops.length-1],N)){var E=new d(p.rest());return y.concat(E).chop()}}else typeof _.delete=="number"&&typeof j.retain=="number"&&y.push(_)}return y.chop()},d.prototype.concat=function(f){var p=new d(this.ops.slice());return f.ops.length>0&&(p.push(f.ops[0]),p.ops=p.ops.concat(f.ops.slice(1))),p},d.prototype.diff=function(f,p){if(this.ops===f.ops)return new d;var h=[this,f].map(function(w){return w.map(function(j){if(j.insert!=null)return typeof j.insert=="string"?j.insert:u;var _=w===f?"on":"with";throw new Error("diff() called "+_+" non-document")}).join("")}),x=new d,v=s(h[0],h[1],p),g=c.iterator(this.ops),y=c.iterator(f.ops);return v.forEach(function(w){for(var j=w[1].length;j>0;){var _=0;switch(w[0]){case s.INSERT:_=Math.min(y.peekLength(),j),x.push(y.next(_));break;case s.DELETE:_=Math.min(j,g.peekLength()),g.next(_),x.delete(_);break;case s.EQUAL:_=Math.min(g.peekLength(),y.peekLength(),j);var N=g.next(_),A=y.next(_);o(N.insert,A.insert)?x.retain(_,c.attributes.diff(N.attributes,A.attributes)):x.push(A).delete(_);break}j-=_}}),x.chop()},d.prototype.eachLine=function(f,p){p=p||` 1261`;for(var h=c.iterator(this.ops),x=new d,v=0;h.hasNext();){if(h.peekType()!=="insert")return;var g=h.peek(),y=c.length(g)-h.peekLength(),w=typeof g.insert=="string"?g.insert.indexOf(p,y)-y:-1;if(w<0)x.push(h.next());else if(w>0)x.push(h.next(w));else{if(f(x,h.next(1).attributes||{},v)===!1)return;v+=1,x=new d}}x.length()>0&&f(x,{},v)},d.prototype.transform=function(f,p){if(p=!!p,typeof f=="number")return this.transformPosition(f,p);for(var h=c.iterator(this.ops),x=c.iterator(f.ops),v=new d;h.hasNext()||x.hasNext();)if(h.peekType()==="insert"&&(p||x.peekType()!=="insert"))v.retain(c.length(h.next()));else if(x.peekType()==="insert")v.push(x.next());else{var g=Math.min(h.peekLength(),x.peekLength()),y=h.next(g),w=x.next(g);if(y.delete)continue;w.delete?v.push(w):v.retain(g,c.attributes.transform(y.attributes,w.attributes,p))}return v.chop()},d.prototype.transformPosition=function(f,p){p=!!p;for(var h=c.iterator(this.ops),x=0;h.hasNext()&&x<=f;){var v=h.peekLength(),g=h.peekType();if(h.next(),g==="delete"){f-=Math.min(v,f-x);continue}else g==="insert"&&(x<f||!p)&&(f+=v);x+=v}return f},n.exports=d}),(function(n,r){var i=Object.prototype.hasOwnProperty,s=Object.prototype.toString,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=function(h){return typeof Array.isArray=="function"?Array.isArray(h):s.call(h)==="[object Array]"},u=function(h){if(!h||s.call(h)!=="[object Object]")return!1;var x=i.call(h,"constructor"),v=h.constructor&&h.constructor.prototype&&i.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!x&&!v)return!1;var g;for(g in h);return typeof g>"u"||i.call(h,g)},d=function(h,x){o&&x.name==="__proto__"?o(h,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):h[x.name]=x.newValue},f=function(h,x){if(x==="__proto__")if(i.call(h,x)){if(l)return l(h,x).value}else return;return h[x]};n.exports=function p(){var h,x,v,g,y,w,j=arguments[0],_=1,N=arguments.length,A=!1;for(typeof j=="boolean"&&(A=j,j=arguments[1]||{},_=2),(j==null||typeof j!="object"&&typeof j!="function")&&(j={});_<N;++_)if(h=arguments[_],h!=null)for(x in h)v=f(j,x),g=f(h,x),j!==g&&(A&&g&&(u(g)||(y=c(g)))?(y?(y=!1,w=v&&c(v)?v:[]):w=v&&u(v)?v:{},d(j,{name:x,newValue:p(A,w,g)})):typeof g<"u"&&d(j,{name:x,newValue:g}));return j}}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BlockEmbed=r.bubbleFormats=void 0;var s=(function(){function P(R,q){for(var M=0;M<q.length;M++){var V=q[M];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(R,V.key,V)}}return function(R,q,M){return q&&P(R.prototype,q),M&&P(R,M),R}})(),o=function P(R,q,M){R===null&&(R=Function.prototype);var V=Object.getOwnPropertyDescriptor(R,q);if(V===void 0){var H=Object.getPrototypeOf(R);return H===null?void 0:P(H,q,M)}else{if("value"in V)return V.value;var Z=V.get;return Z===void 0?void 0:Z.call(M)}},l=i(3),c=j(l),u=i(2),d=j(u),f=i(0),p=j(f),h=i(16),x=j(h),v=i(6),g=j(v),y=i(7),w=j(y);function j(P){return P&&P.__esModule?P:{default:P}}function _(P,R){if(!(P instanceof R))throw new TypeError("Cannot call a class as a function")}function N(P,R){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:P}function A(P,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);P.prototype=Object.create(R&&R.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(P,R):P.__proto__=R)}var E=1,k=(function(P){A(R,P);function R(){return _(this,R),N(this,(R.__proto__||Object.getPrototypeOf(R)).apply(this,arguments))}return s(R,[{key:"attach",value:function(){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"attach",this).call(this),this.attributes=new p.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new d.default().insert(this.value(),(0,c.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(M,V){var H=p.default.query(M,p.default.Scope.BLOCK_ATTRIBUTE);H!=null&&this.attributes.attribute(H,V)}},{key:"formatAt",value:function(M,V,H,Z){this.format(H,Z)}},{key:"insertAt",value:function(M,V,H){if(typeof V=="string"&&V.endsWith(` 1262`)){var Z=p.default.create(T.blotName);this.parent.insertBefore(Z,M===0?this:this.next),Z.insertAt(0,V.slice(0,-1))}else o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,M,V,H)}}]),R})(p.default.Embed);k.scope=p.default.Scope.BLOCK_BLOT;var T=(function(P){A(R,P);function R(q){_(this,R);var M=N(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,q));return M.cache={},M}return s(R,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(p.default.Leaf).reduce(function(M,V){return V.length()===0?M:M.insert(V.value(),D(V))},new d.default).insert(` 1263`,D(this))),this.cache.delta}},{key:"deleteAt",value:function(M,V){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"deleteAt",this).call(this,M,V),this.cache={}}},{key:"formatAt",value:function(M,V,H,Z){V<=0||(p.default.query(H,p.default.Scope.BLOCK)?M+V===this.length()&&this.format(H,Z):o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,M,Math.min(V,this.length()-M-1),H,Z),this.cache={})}},{key:"insertAt",value:function(M,V,H){if(H!=null)return o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,M,V,H);if(V.length!==0){var Z=V.split(` 1264`),J=Z.shift();J.length>0&&(M<this.length()-1||this.children.tail==null?o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,Math.min(M,this.length()-1),J):this.children.tail.insertAt(this.children.tail.length(),J),this.cache={});var K=this;Z.reduce(function(F,$){return K=K.split(F,!0),K.insertAt(0,$),$.length},M+J.length)}}},{key:"insertBefore",value:function(M,V){var H=this.children.head;o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,M,V),H instanceof x.default&&H.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function(M,V){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"moveChildren",this).call(this,M,V),this.cache={}}},{key:"optimize",value:function(M){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,M),this.cache={}}},{key:"path",value:function(M){return o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,M,!0)}},{key:"removeChild",value:function(M){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"removeChild",this).call(this,M),this.cache={}}},{key:"split",value:function(M){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(V&&(M===0||M>=this.length()-E)){var H=this.clone();return M===0?(this.parent.insertBefore(H,this),this):(this.parent.insertBefore(H,this.next),H)}else{var Z=o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"split",this).call(this,M,V);return this.cache={},Z}}}]),R})(p.default.Block);T.blotName="block",T.tagName="P",T.defaultChild="break",T.allowedChildren=[g.default,p.default.Embed,w.default];function D(P){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return P==null||(typeof P.formats=="function"&&(R=(0,c.default)(R,P.formats())),P.parent==null||P.parent.blotName=="scroll"||P.parent.statics.scope!==P.statics.scope)?R:D(P.parent,R)}r.bubbleFormats=D,r.BlockEmbed=k,r.default=T}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overload=r.expandConfig=void 0;var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},o=(function(){function K(F,$){var B=[],z=!0,ee=!1,te=void 0;try{for(var X=F[Symbol.iterator](),ne;!(z=(ne=X.next()).done)&&(B.push(ne.value),!($&&B.length===$));z=!0);}catch(le){ee=!0,te=le}finally{try{!z&&X.return&&X.return()}finally{if(ee)throw te}}return B}return function(F,$){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return K(F,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),l=(function(){function K(F,$){for(var B=0;B<$.length;B++){var z=$[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(F,z.key,z)}}return function(F,$,B){return $&&K(F.prototype,$),B&&K(F,B),F}})();i(50);var c=i(2),u=D(c),d=i(14),f=D(d),p=i(8),h=D(p),x=i(9),v=D(x),g=i(0),y=D(g),w=i(15),j=D(w),_=i(3),N=D(_),A=i(10),E=D(A),k=i(34),T=D(k);function D(K){return K&&K.__esModule?K:{default:K}}function P(K,F,$){return F in K?Object.defineProperty(K,F,{value:$,enumerable:!0,configurable:!0,writable:!0}):K[F]=$,K}function R(K,F){if(!(K instanceof F))throw new TypeError("Cannot call a class as a function")}var q=(0,E.default)("quill"),M=(function(){l(K,null,[{key:"debug",value:function($){$===!0&&($="log"),E.default.level($)}},{key:"find",value:function($){return $.__quill||y.default.find($)}},{key:"import",value:function($){return this.imports[$]==null&&q.error("Cannot import "+$+". Are you sure it was registered?"),this.imports[$]}},{key:"register",value:function($,B){var z=this,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof $!="string"){var te=$.attrName||$.blotName;typeof te=="string"?this.register("formats/"+te,$,B):Object.keys($).forEach(function(X){z.register(X,$[X],B)})}else this.imports[$]!=null&&!ee&&q.warn("Overwriting "+$+" with",B),this.imports[$]=B,($.startsWith("blots/")||$.startsWith("formats/"))&&B.blotName!=="abstract"?y.default.register(B):$.startsWith("modules")&&typeof B.register=="function"&&B.register()}}]);function K(F){var $=this,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(R(this,K),this.options=V(F,B),this.container=this.options.container,this.container==null)return q.error("Invalid Quill container",F);this.options.debug&&K.debug(this.options.debug);var z=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new f.default(this.scroll),this.selection=new j.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,function(te){te===h.default.events.TEXT_CHANGE&&$.root.classList.toggle("ql-blank",$.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(te,X){var ne=$.selection.lastRange,le=ne&&ne.length===0?ne.index:void 0;H.call($,function(){return $.editor.update(null,X,le)},te)});var ee=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+z+"<p><br></p></div>");this.setContents(ee),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return l(K,[{key:"addContainer",value:function($){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof $=="string"){var z=$;$=document.createElement("div"),$.classList.add(z)}return this.container.insertBefore($,B),$}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function($,B,z){var ee=this,te=Z($,B,z),X=o(te,4);return $=X[0],B=X[1],z=X[3],H.call(this,function(){return ee.editor.deleteText($,B)},z,$,-1*B)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable($),this.container.classList.toggle("ql-disabled",!$)}},{key:"focus",value:function(){var $=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=$,this.scrollIntoView()}},{key:"format",value:function($,B){var z=this,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;return H.call(this,function(){var te=z.getSelection(!0),X=new u.default;if(te==null)return X;if(y.default.query($,y.default.Scope.BLOCK))X=z.editor.formatLine(te.index,te.length,P({},$,B));else{if(te.length===0)return z.selection.format($,B),X;X=z.editor.formatText(te.index,te.length,P({},$,B))}return z.setSelection(te,h.default.sources.SILENT),X},ee)}},{key:"formatLine",value:function($,B,z,ee,te){var X=this,ne=void 0,le=Z($,B,z,ee,te),re=o(le,4);return $=re[0],B=re[1],ne=re[2],te=re[3],H.call(this,function(){return X.editor.formatLine($,B,ne)},te,$,0)}},{key:"formatText",value:function($,B,z,ee,te){var X=this,ne=void 0,le=Z($,B,z,ee,te),re=o(le,4);return $=re[0],B=re[1],ne=re[2],te=re[3],H.call(this,function(){return X.editor.formatText($,B,ne)},te,$,0)}},{key:"getBounds",value:function($){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,z=void 0;typeof $=="number"?z=this.selection.getBounds($,B):z=this.selection.getBounds($.index,$.length);var ee=this.container.getBoundingClientRect();return{bottom:z.bottom-ee.top,height:z.height,left:z.left-ee.left,right:z.right-ee.left,top:z.top-ee.top,width:z.width}}},{key:"getContents",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-$,z=Z($,B),ee=o(z,2);return $=ee[0],B=ee[1],this.editor.getContents($,B)}},{key:"getFormat",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof $=="number"?this.editor.getFormat($,B):this.editor.getFormat($.index,$.length)}},{key:"getIndex",value:function($){return $.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function($){return this.scroll.leaf($)}},{key:"getLine",value:function($){return this.scroll.line($)}},{key:"getLines",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof $!="number"?this.scroll.lines($.index,$.length):this.scroll.lines($,B)}},{key:"getModule",value:function($){return this.theme.modules[$]}},{key:"getSelection",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return $&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-$,z=Z($,B),ee=o(z,2);return $=ee[0],B=ee[1],this.editor.getText($,B)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function($,B,z){var ee=this,te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:K.sources.API;return H.call(this,function(){return ee.editor.insertEmbed($,B,z)},te,$)}},{key:"insertText",value:function($,B,z,ee,te){var X=this,ne=void 0,le=Z($,0,z,ee,te),re=o(le,4);return $=re[0],ne=re[2],te=re[3],H.call(this,function(){return X.editor.insertText($,B,ne)},te,$,B.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function($,B,z){this.clipboard.dangerouslyPasteHTML($,B,z)}},{key:"removeFormat",value:function($,B,z){var ee=this,te=Z($,B,z),X=o(te,4);return $=X[0],B=X[1],z=X[3],H.call(this,function(){return ee.editor.removeFormat($,B)},z,$)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function($){var B=this,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return H.call(this,function(){$=new u.default($);var ee=B.getLength(),te=B.editor.deleteText(0,ee),X=B.editor.applyDelta($),ne=X.ops[X.ops.length-1];ne!=null&&typeof ne.insert=="string"&&ne.insert[ne.insert.length-1]===` 1265`&&(B.editor.deleteText(B.getLength()-1,1),X.delete(1));var le=te.compose(X);return le},z)}},{key:"setSelection",value:function($,B,z){if($==null)this.selection.setRange(null,B||K.sources.API);else{var ee=Z($,B,z),te=o(ee,4);$=te[0],B=te[1],z=te[3],this.selection.setRange(new w.Range($,B),z),z!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function($){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API,z=new u.default().insert($);return this.setContents(z,B)}},{key:"update",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,B=this.scroll.update($);return this.selection.update($),B}},{key:"updateContents",value:function($){var B=this,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return H.call(this,function(){return $=new u.default($),B.editor.applyDelta($,z)},z,!0)}}]),K})();M.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},M.events=h.default.events,M.sources=h.default.sources,M.version="1.3.7",M.imports={delta:u.default,parchment:y.default,"core/module":v.default,"core/theme":T.default};function V(K,F){if(F=(0,N.default)(!0,{container:K,modules:{clipboard:!0,keyboard:!0,history:!0}},F),!F.theme||F.theme===M.DEFAULTS.theme)F.theme=T.default;else if(F.theme=M.import("themes/"+F.theme),F.theme==null)throw new Error("Invalid theme "+F.theme+". Did you register it?");var $=(0,N.default)(!0,{},F.theme.DEFAULTS);[$,F].forEach(function(ee){ee.modules=ee.modules||{},Object.keys(ee.modules).forEach(function(te){ee.modules[te]===!0&&(ee.modules[te]={})})});var B=Object.keys($.modules).concat(Object.keys(F.modules)),z=B.reduce(function(ee,te){var X=M.import("modules/"+te);return X==null?q.error("Cannot load "+te+" module. Are you sure you registered it?"):ee[te]=X.DEFAULTS||{},ee},{});return F.modules!=null&&F.modules.toolbar&&F.modules.toolbar.constructor!==Object&&(F.modules.toolbar={container:F.modules.toolbar}),F=(0,N.default)(!0,{},M.DEFAULTS,{modules:z},$,F),["bounds","container","scrollingContainer"].forEach(function(ee){typeof F[ee]=="string"&&(F[ee]=document.querySelector(F[ee]))}),F.modules=Object.keys(F.modules).reduce(function(ee,te){return F.modules[te]&&(ee[te]=F.modules[te]),ee},{}),F}function H(K,F,$,B){if(this.options.strict&&!this.isEnabled()&&F===h.default.sources.USER)return new u.default;var z=$==null?null:this.getSelection(),ee=this.editor.delta,te=K();if(z!=null&&($===!0&&($=z.index),B==null?z=J(z,te,F):B!==0&&(z=J(z,$,B,F)),this.setSelection(z,h.default.sources.SILENT)),te.length()>0){var X,ne=[h.default.events.TEXT_CHANGE,te,ee,F];if((X=this.emitter).emit.apply(X,[h.default.events.EDITOR_CHANGE].concat(ne)),F!==h.default.sources.SILENT){var le;(le=this.emitter).emit.apply(le,ne)}}return te}function Z(K,F,$,B,z){var ee={};return typeof K.index=="number"&&typeof K.length=="number"?typeof F!="number"?(z=B,B=$,$=F,F=K.length,K=K.index):(F=K.length,K=K.index):typeof F!="number"&&(z=B,B=$,$=F,F=0),(typeof $>"u"?"undefined":s($))==="object"?(ee=$,z=B):typeof $=="string"&&(B!=null?ee[$]=B:z=$),z=z||h.default.sources.API,[K,F,ee,z]}function J(K,F,$,B){if(K==null)return null;var z=void 0,ee=void 0;if(F instanceof u.default){var te=[K.index,K.index+K.length].map(function(re){return F.transformPosition(re,B!==h.default.sources.USER)}),X=o(te,2);z=X[0],ee=X[1]}else{var ne=[K.index,K.index+K.length].map(function(re){return re<F||re===F&&B===h.default.sources.USER?re:$>=0?re+$:Math.max(F,re+$)}),le=o(ne,2);z=le[0],ee=le[1]}return new w.Range(z,ee-z)}r.expandConfig=V,r.overload=Z,r.default=M}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function g(y,w){for(var j=0;j<w.length;j++){var _=w[j];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}return function(y,w,j){return w&&g(y.prototype,w),j&&g(y,j),y}})(),o=function g(y,w,j){y===null&&(y=Function.prototype);var _=Object.getOwnPropertyDescriptor(y,w);if(_===void 0){var N=Object.getPrototypeOf(y);return N===null?void 0:g(N,w,j)}else{if("value"in _)return _.value;var A=_.get;return A===void 0?void 0:A.call(j)}},l=i(7),c=f(l),u=i(0),d=f(u);function f(g){return g&&g.__esModule?g:{default:g}}function p(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function h(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function x(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var v=(function(g){x(y,g);function y(){return p(this,y),h(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return s(y,[{key:"formatAt",value:function(j,_,N,A){if(y.compare(this.statics.blotName,N)<0&&d.default.query(N,d.default.Scope.BLOT)){var E=this.isolate(j,_);A&&E.wrap(N,A)}else o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,j,_,N,A)}},{key:"optimize",value:function(j){if(o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,j),this.parent instanceof y&&y.compare(this.statics.blotName,this.parent.statics.blotName)>0){var _=this.parent.isolate(this.offset(),this.length());this.moveChildren(_),_.wrap(this)}}}],[{key:"compare",value:function(j,_){var N=y.order.indexOf(j),A=y.order.indexOf(_);return N>=0||A>=0?N-A:j===_?0:j<_?-1:1}}]),y})(d.default.Inline);v.allowedChildren=[v,d.default.Embed,c.default],v.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],r.default=v}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i(0),o=l(s);function l(p){return p&&p.__esModule?p:{default:p}}function c(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function u(p,h){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:p}function d(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(p,h):p.__proto__=h)}var f=(function(p){d(h,p);function h(){return c(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(o.default.Text);r.default=f}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function w(j,_){for(var N=0;N<_.length;N++){var A=_[N];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(j,A.key,A)}}return function(j,_,N){return _&&w(j.prototype,_),N&&w(j,N),j}})(),o=function w(j,_,N){j===null&&(j=Function.prototype);var A=Object.getOwnPropertyDescriptor(j,_);if(A===void 0){var E=Object.getPrototypeOf(j);return E===null?void 0:w(E,_,N)}else{if("value"in A)return A.value;var k=A.get;return k===void 0?void 0:k.call(N)}},l=i(54),c=f(l),u=i(10),d=f(u);function f(w){return w&&w.__esModule?w:{default:w}}function p(w,j){if(!(w instanceof j))throw new TypeError("Cannot call a class as a function")}function h(w,j){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:w}function x(w,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);w.prototype=Object.create(j&&j.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(w,j):w.__proto__=j)}var v=(0,d.default)("quill:events"),g=["selectionchange","mousedown","mouseup","click"];g.forEach(function(w){document.addEventListener(w,function(){for(var j=arguments.length,_=Array(j),N=0;N<j;N++)_[N]=arguments[N];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(A){if(A.__quill&&A.__quill.emitter){var E;(E=A.__quill.emitter).handleDOM.apply(E,_)}})})});var y=(function(w){x(j,w);function j(){p(this,j);var _=h(this,(j.__proto__||Object.getPrototypeOf(j)).call(this));return _.listeners={},_.on("error",v.error),_}return s(j,[{key:"emit",value:function(){v.log.apply(v,arguments),o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(N){for(var A=arguments.length,E=Array(A>1?A-1:0),k=1;k<A;k++)E[k-1]=arguments[k];(this.listeners[N.type]||[]).forEach(function(T){var D=T.node,P=T.handler;(N.target===D||D.contains(N.target))&&P.apply(void 0,[N].concat(E))})}},{key:"listenDOM",value:function(N,A,E){this.listeners[N]||(this.listeners[N]=[]),this.listeners[N].push({node:A,handler:E})}}]),j})(c.default);y.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},y.sources={API:"api",SILENT:"silent",USER:"user"},r.default=y}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});function s(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}var o=function l(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};s(this,l),this.quill=c,this.options=u};o.DEFAULTS={},r.default=o}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=["error","warn","log","info"],o="warn";function l(u){if(s.indexOf(u)<=s.indexOf(o)){for(var d,f=arguments.length,p=Array(f>1?f-1:0),h=1;h<f;h++)p[h-1]=arguments[h];(d=console)[u].apply(d,p)}}function c(u){return s.reduce(function(d,f){return d[f]=l.bind(console,f,u),d},{})}l.level=c.level=function(u){o=u},r.default=c}),(function(n,r,i){var s=Array.prototype.slice,o=i(52),l=i(53),c=n.exports=function(p,h,x){return x||(x={}),p===h?!0:p instanceof Date&&h instanceof Date?p.getTime()===h.getTime():!p||!h||typeof p!="object"&&typeof h!="object"?x.strict?p===h:p==h:f(p,h,x)};function u(p){return p==null}function d(p){return!(!p||typeof p!="object"||typeof p.length!="number"||typeof p.copy!="function"||typeof p.slice!="function"||p.length>0&&typeof p[0]!="number")}function f(p,h,x){var v,g;if(u(p)||u(h)||p.prototype!==h.prototype)return!1;if(l(p))return l(h)?(p=s.call(p),h=s.call(h),c(p,h,x)):!1;if(d(p)){if(!d(h)||p.length!==h.length)return!1;for(v=0;v<p.length;v++)if(p[v]!==h[v])return!1;return!0}try{var y=o(p),w=o(h)}catch{return!1}if(y.length!=w.length)return!1;for(y.sort(),w.sort(),v=y.length-1;v>=0;v--)if(y[v]!=w[v])return!1;for(v=y.length-1;v>=0;v--)if(g=y[v],!c(p[g],h[g],x))return!1;return typeof p==typeof h}}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i(1),o=(function(){function l(c,u,d){d===void 0&&(d={}),this.attrName=c,this.keyName=u;var f=s.Scope.TYPE&s.Scope.ATTRIBUTE;d.scope!=null?this.scope=d.scope&s.Scope.LEVEL|f:this.scope=s.Scope.ATTRIBUTE,d.whitelist!=null&&(this.whitelist=d.whitelist)}return l.keys=function(c){return[].map.call(c.attributes,function(u){return u.name})},l.prototype.add=function(c,u){return this.canAdd(c,u)?(c.setAttribute(this.keyName,u),!0):!1},l.prototype.canAdd=function(c,u){var d=s.query(c,s.Scope.BLOT&(this.scope|s.Scope.TYPE));return d==null?!1:this.whitelist==null?!0:typeof u=="string"?this.whitelist.indexOf(u.replace(/["']/g,""))>-1:this.whitelist.indexOf(u)>-1},l.prototype.remove=function(c){c.removeAttribute(this.keyName)},l.prototype.value=function(c){var u=c.getAttribute(this.keyName);return this.canAdd(c,u)&&u?u:""},l})();r.default=o}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Code=void 0;var s=(function(){function k(T,D){var P=[],R=!0,q=!1,M=void 0;try{for(var V=T[Symbol.iterator](),H;!(R=(H=V.next()).done)&&(P.push(H.value),!(D&&P.length===D));R=!0);}catch(Z){q=!0,M=Z}finally{try{!R&&V.return&&V.return()}finally{if(q)throw M}}return P}return function(T,D){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return k(T,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function k(T,D){for(var P=0;P<D.length;P++){var R=D[P];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(T,R.key,R)}}return function(T,D,P){return D&&k(T.prototype,D),P&&k(T,P),T}})(),l=function k(T,D,P){T===null&&(T=Function.prototype);var R=Object.getOwnPropertyDescriptor(T,D);if(R===void 0){var q=Object.getPrototypeOf(T);return q===null?void 0:k(q,D,P)}else{if("value"in R)return R.value;var M=R.get;return M===void 0?void 0:M.call(P)}},c=i(2),u=w(c),d=i(0),f=w(d),p=i(4),h=w(p),x=i(6),v=w(x),g=i(7),y=w(g);function w(k){return k&&k.__esModule?k:{default:k}}function j(k,T){if(!(k instanceof T))throw new TypeError("Cannot call a class as a function")}function _(k,T){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:k}function N(k,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);k.prototype=Object.create(T&&T.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(k,T):k.__proto__=T)}var A=(function(k){N(T,k);function T(){return j(this,T),_(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return T})(v.default);A.blotName="code",A.tagName="CODE";var E=(function(k){N(T,k);function T(){return j(this,T),_(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return o(T,[{key:"delta",value:function(){var P=this,R=this.domNode.textContent;return R.endsWith(` 1266`)&&(R=R.slice(0,-1)),R.split(` 1267`).reduce(function(q,M){return q.insert(M).insert(` 1268`,P.formats())},new u.default)}},{key:"format",value:function(P,R){if(!(P===this.statics.blotName&&R)){var q=this.descendant(y.default,this.length()-1),M=s(q,1),V=M[0];V!=null&&V.deleteAt(V.length()-1,1),l(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"format",this).call(this,P,R)}}},{key:"formatAt",value:function(P,R,q,M){if(R!==0&&!(f.default.query(q,f.default.Scope.BLOCK)==null||q===this.statics.blotName&&M===this.statics.formats(this.domNode))){var V=this.newlineIndex(P);if(!(V<0||V>=P+R)){var H=this.newlineIndex(P,!0)+1,Z=V-H+1,J=this.isolate(H,Z),K=J.next;J.format(q,M),K instanceof T&&K.formatAt(0,P-H+R-Z,q,M)}}}},{key:"insertAt",value:function(P,R,q){if(q==null){var M=this.descendant(y.default,P),V=s(M,2),H=V[0],Z=V[1];H.insertAt(Z,R)}}},{key:"length",value:function(){var P=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` 1269`)?P:P+1}},{key:"newlineIndex",value:function(P){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R)return this.domNode.textContent.slice(0,P).lastIndexOf(` 1270`);var q=this.domNode.textContent.slice(P).indexOf(` 1271`);return q>-1?P+q:-1}},{key:"optimize",value:function(P){this.domNode.textContent.endsWith(` 1272`)||this.appendChild(f.default.create("text",` 1273`)),l(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,P);var R=this.next;R!=null&&R.prev===this&&R.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===R.statics.formats(R.domNode)&&(R.optimize(P),R.moveChildren(this),R.remove())}},{key:"replace",value:function(P){l(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replace",this).call(this,P),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(R){var q=f.default.find(R);q==null?R.parentNode.removeChild(R):q instanceof f.default.Embed?q.remove():q.unwrap()})}}],[{key:"create",value:function(P){var R=l(T.__proto__||Object.getPrototypeOf(T),"create",this).call(this,P);return R.setAttribute("spellcheck",!1),R}},{key:"formats",value:function(){return!0}}]),T})(h.default);E.blotName="code-block",E.tagName="PRE",E.TAB=" ",r.Code=A,r.default=E}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},o=(function(){function K(F,$){var B=[],z=!0,ee=!1,te=void 0;try{for(var X=F[Symbol.iterator](),ne;!(z=(ne=X.next()).done)&&(B.push(ne.value),!($&&B.length===$));z=!0);}catch(le){ee=!0,te=le}finally{try{!z&&X.return&&X.return()}finally{if(ee)throw te}}return B}return function(F,$){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return K(F,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),l=(function(){function K(F,$){for(var B=0;B<$.length;B++){var z=$[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(F,z.key,z)}}return function(F,$,B){return $&&K(F.prototype,$),B&&K(F,B),F}})(),c=i(2),u=R(c),d=i(20),f=R(d),p=i(0),h=R(p),x=i(13),v=R(x),g=i(24),y=R(g),w=i(4),j=R(w),_=i(16),N=R(_),A=i(21),E=R(A),k=i(11),T=R(k),D=i(3),P=R(D);function R(K){return K&&K.__esModule?K:{default:K}}function q(K,F,$){return F in K?Object.defineProperty(K,F,{value:$,enumerable:!0,configurable:!0,writable:!0}):K[F]=$,K}function M(K,F){if(!(K instanceof F))throw new TypeError("Cannot call a class as a function")}var V=/^[ -~]*$/,H=(function(){function K(F){M(this,K),this.scroll=F,this.delta=this.getDelta()}return l(K,[{key:"applyDelta",value:function($){var B=this,z=!1;this.scroll.update();var ee=this.scroll.length();return this.scroll.batchStart(),$=J($),$.reduce(function(te,X){var ne=X.retain||X.delete||X.insert.length||1,le=X.attributes||{};if(X.insert!=null){if(typeof X.insert=="string"){var re=X.insert;re.endsWith(` 1274`)&&z&&(z=!1,re=re.slice(0,-1)),te>=ee&&!re.endsWith(` 1275`)&&(z=!0),B.scroll.insertAt(te,re);var he=B.scroll.line(te),be=o(he,2),ve=be[0],ze=be[1],He=(0,P.default)({},(0,w.bubbleFormats)(ve));if(ve instanceof j.default){var ue=ve.descendant(h.default.Leaf,ze),Ue=o(ue,1),ut=Ue[0];He=(0,P.default)(He,(0,w.bubbleFormats)(ut))}le=f.default.attributes.diff(He,le)||{}}else if(s(X.insert)==="object"){var Ee=Object.keys(X.insert)[0];if(Ee==null)return te;B.scroll.insertAt(te,Ee,X.insert[Ee])}ee+=ne}return Object.keys(le).forEach(function(we){B.scroll.formatAt(te,ne,we,le[we])}),te+ne},0),$.reduce(function(te,X){return typeof X.delete=="number"?(B.scroll.deleteAt(te,X.delete),te):te+(X.retain||X.insert.length||1)},0),this.scroll.batchEnd(),this.update($)}},{key:"deleteText",value:function($,B){return this.scroll.deleteAt($,B),this.update(new u.default().retain($).delete(B))}},{key:"formatLine",value:function($,B){var z=this,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(ee).forEach(function(te){if(!(z.scroll.whitelist!=null&&!z.scroll.whitelist[te])){var X=z.scroll.lines($,Math.max(B,1)),ne=B;X.forEach(function(le){var re=le.length();if(!(le instanceof v.default))le.format(te,ee[te]);else{var he=$-le.offset(z.scroll),be=le.newlineIndex(he+ne)-he+1;le.formatAt(he,be,te,ee[te])}ne-=re})}}),this.scroll.optimize(),this.update(new u.default().retain($).retain(B,(0,E.default)(ee)))}},{key:"formatText",value:function($,B){var z=this,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(ee).forEach(function(te){z.scroll.formatAt($,B,te,ee[te])}),this.update(new u.default().retain($).retain(B,(0,E.default)(ee)))}},{key:"getContents",value:function($,B){return this.delta.slice($,$+B)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function($,B){return $.concat(B.delta())},new u.default)}},{key:"getFormat",value:function($){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,z=[],ee=[];B===0?this.scroll.path($).forEach(function(X){var ne=o(X,1),le=ne[0];le instanceof j.default?z.push(le):le instanceof h.default.Leaf&&ee.push(le)}):(z=this.scroll.lines($,B),ee=this.scroll.descendants(h.default.Leaf,$,B));var te=[z,ee].map(function(X){if(X.length===0)return{};for(var ne=(0,w.bubbleFormats)(X.shift());Object.keys(ne).length>0;){var le=X.shift();if(le==null)return ne;ne=Z((0,w.bubbleFormats)(le),ne)}return ne});return P.default.apply(P.default,te)}},{key:"getText",value:function($,B){return this.getContents($,B).filter(function(z){return typeof z.insert=="string"}).map(function(z){return z.insert}).join("")}},{key:"insertEmbed",value:function($,B,z){return this.scroll.insertAt($,B,z),this.update(new u.default().retain($).insert(q({},B,z)))}},{key:"insertText",value:function($,B){var z=this,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return B=B.replace(/\r\n/g,` 1276`).replace(/\r/g,` 1277`),this.scroll.insertAt($,B),Object.keys(ee).forEach(function(te){z.scroll.formatAt($,B.length,te,ee[te])}),this.update(new u.default().retain($).insert(B,(0,E.default)(ee)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var $=this.scroll.children.head;return $.statics.blotName!==j.default.blotName||$.children.length>1?!1:$.children.head instanceof N.default}},{key:"removeFormat",value:function($,B){var z=this.getText($,B),ee=this.scroll.line($+B),te=o(ee,2),X=te[0],ne=te[1],le=0,re=new u.default;X!=null&&(X instanceof v.default?le=X.newlineIndex(ne)-ne+1:le=X.length()-ne,re=X.delta().slice(ne,ne+le-1).insert(` 1278`));var he=this.getContents($,B+le),be=he.diff(new u.default().insert(z).concat(re)),ve=new u.default().retain($).concat(be);return this.applyDelta(ve)}},{key:"update",value:function($){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,ee=this.delta;if(B.length===1&&B[0].type==="characterData"&&B[0].target.data.match(V)&&h.default.find(B[0].target)){var te=h.default.find(B[0].target),X=(0,w.bubbleFormats)(te),ne=te.offset(this.scroll),le=B[0].oldValue.replace(y.default.CONTENTS,""),re=new u.default().insert(le),he=new u.default().insert(te.value()),be=new u.default().retain(ne).concat(re.diff(he,z));$=be.reduce(function(ve,ze){return ze.insert?ve.insert(ze.insert,X):ve.push(ze)},new u.default),this.delta=ee.compose($)}else this.delta=this.getDelta(),(!$||!(0,T.default)(ee.compose($),this.delta))&&($=ee.diff(this.delta,z));return $}}]),K})();function Z(K,F){return Object.keys(F).reduce(function($,B){return K[B]==null||(F[B]===K[B]?$[B]=F[B]:Array.isArray(F[B])?F[B].indexOf(K[B])<0&&($[B]=F[B].concat([K[B]])):$[B]=[F[B],K[B]]),$},{})}function J(K){return K.reduce(function(F,$){if($.insert===1){var B=(0,E.default)($.attributes);return delete B.image,F.insert({image:$.attributes.image},B)}if($.attributes!=null&&($.attributes.list===!0||$.attributes.bullet===!0)&&($=(0,E.default)($),$.attributes.list?$.attributes.list="ordered":($.attributes.list="bullet",delete $.attributes.bullet)),typeof $.insert=="string"){var z=$.insert.replace(/\r\n/g,` 1279`).replace(/\r/g,` 1280`);return F.insert(z,$.attributes)}return F.push($)},new u.default)}r.default=H}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var s=(function(){function k(T,D){var P=[],R=!0,q=!1,M=void 0;try{for(var V=T[Symbol.iterator](),H;!(R=(H=V.next()).done)&&(P.push(H.value),!(D&&P.length===D));R=!0);}catch(Z){q=!0,M=Z}finally{try{!R&&V.return&&V.return()}finally{if(q)throw M}}return P}return function(T,D){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return k(T,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function k(T,D){for(var P=0;P<D.length;P++){var R=D[P];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(T,R.key,R)}}return function(T,D,P){return D&&k(T.prototype,D),P&&k(T,P),T}})(),l=i(0),c=y(l),u=i(21),d=y(u),f=i(11),p=y(f),h=i(8),x=y(h),v=i(10),g=y(v);function y(k){return k&&k.__esModule?k:{default:k}}function w(k){if(Array.isArray(k)){for(var T=0,D=Array(k.length);T<k.length;T++)D[T]=k[T];return D}else return Array.from(k)}function j(k,T){if(!(k instanceof T))throw new TypeError("Cannot call a class as a function")}var _=(0,g.default)("quill:selection"),N=function k(T){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;j(this,k),this.index=T,this.length=D},A=(function(){function k(T,D){var P=this;j(this,k),this.emitter=D,this.scroll=T,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new N(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){P.mouseDown||setTimeout(P.update.bind(P,x.default.sources.USER),1)}),this.emitter.on(x.default.events.EDITOR_CHANGE,function(R,q){R===x.default.events.TEXT_CHANGE&&q.length()>0&&P.update(x.default.sources.SILENT)}),this.emitter.on(x.default.events.SCROLL_BEFORE_UPDATE,function(){if(P.hasFocus()){var R=P.getNativeRange();R!=null&&R.start.node!==P.cursor.textNode&&P.emitter.once(x.default.events.SCROLL_UPDATE,function(){try{P.setNativeRange(R.start.node,R.start.offset,R.end.node,R.end.offset)}catch{}})}}),this.emitter.on(x.default.events.SCROLL_OPTIMIZE,function(R,q){if(q.range){var M=q.range,V=M.startNode,H=M.startOffset,Z=M.endNode,J=M.endOffset;P.setNativeRange(V,H,Z,J)}}),this.update(x.default.sources.SILENT)}return o(k,[{key:"handleComposition",value:function(){var D=this;this.root.addEventListener("compositionstart",function(){D.composing=!0}),this.root.addEventListener("compositionend",function(){if(D.composing=!1,D.cursor.parent){var P=D.cursor.restore();if(!P)return;setTimeout(function(){D.setNativeRange(P.startNode,P.startOffset,P.endNode,P.endOffset)},1)}})}},{key:"handleDragging",value:function(){var D=this;this.emitter.listenDOM("mousedown",document.body,function(){D.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){D.mouseDown=!1,D.update(x.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(D,P){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[D])){this.scroll.update();var R=this.getNativeRange();if(!(R==null||!R.native.collapsed||c.default.query(D,c.default.Scope.BLOCK))){if(R.start.node!==this.cursor.textNode){var q=c.default.find(R.start.node,!1);if(q==null)return;if(q instanceof c.default.Leaf){var M=q.split(R.start.offset);q.parent.insertBefore(this.cursor,M)}else q.insertBefore(this.cursor,R.start.node);this.cursor.attach()}this.cursor.format(D,P),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,R=this.scroll.length();D=Math.min(D,R-1),P=Math.min(D+P,R-1)-D;var q=void 0,M=this.scroll.leaf(D),V=s(M,2),H=V[0],Z=V[1];if(H==null)return null;var J=H.position(Z,!0),K=s(J,2);q=K[0],Z=K[1];var F=document.createRange();if(P>0){F.setStart(q,Z);var $=this.scroll.leaf(D+P),B=s($,2);if(H=B[0],Z=B[1],H==null)return null;var z=H.position(Z,!0),ee=s(z,2);return q=ee[0],Z=ee[1],F.setEnd(q,Z),F.getBoundingClientRect()}else{var te="left",X=void 0;return q instanceof Text?(Z<q.data.length?(F.setStart(q,Z),F.setEnd(q,Z+1)):(F.setStart(q,Z-1),F.setEnd(q,Z),te="right"),X=F.getBoundingClientRect()):(X=H.domNode.getBoundingClientRect(),Z>0&&(te="right")),{bottom:X.top+X.height,height:X.height,left:X[te],right:X[te],top:X.top,width:0}}}},{key:"getNativeRange",value:function(){var D=document.getSelection();if(D==null||D.rangeCount<=0)return null;var P=D.getRangeAt(0);if(P==null)return null;var R=this.normalizeNative(P);return _.info("getNativeRange",R),R}},{key:"getRange",value:function(){var D=this.getNativeRange();if(D==null)return[null,null];var P=this.normalizedToRange(D);return[P,D]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(D){var P=this,R=[[D.start.node,D.start.offset]];D.native.collapsed||R.push([D.end.node,D.end.offset]);var q=R.map(function(H){var Z=s(H,2),J=Z[0],K=Z[1],F=c.default.find(J,!0),$=F.offset(P.scroll);return K===0?$:F instanceof c.default.Container?$+F.length():$+F.index(J,K)}),M=Math.min(Math.max.apply(Math,w(q)),this.scroll.length()-1),V=Math.min.apply(Math,[M].concat(w(q)));return new N(V,M-V)}},{key:"normalizeNative",value:function(D){if(!E(this.root,D.startContainer)||!D.collapsed&&!E(this.root,D.endContainer))return null;var P={start:{node:D.startContainer,offset:D.startOffset},end:{node:D.endContainer,offset:D.endOffset},native:D};return[P.start,P.end].forEach(function(R){for(var q=R.node,M=R.offset;!(q instanceof Text)&&q.childNodes.length>0;)if(q.childNodes.length>M)q=q.childNodes[M],M=0;else if(q.childNodes.length===M)q=q.lastChild,M=q instanceof Text?q.data.length:q.childNodes.length+1;else break;R.node=q,R.offset=M}),P}},{key:"rangeToNative",value:function(D){var P=this,R=D.collapsed?[D.index]:[D.index,D.index+D.length],q=[],M=this.scroll.length();return R.forEach(function(V,H){V=Math.min(M-1,V);var Z=void 0,J=P.scroll.leaf(V),K=s(J,2),F=K[0],$=K[1],B=F.position($,H!==0),z=s(B,2);Z=z[0],$=z[1],q.push(Z,$)}),q.length<2&&(q=q.concat(q)),q}},{key:"scrollIntoView",value:function(D){var P=this.lastRange;if(P!=null){var R=this.getBounds(P.index,P.length);if(R!=null){var q=this.scroll.length()-1,M=this.scroll.line(Math.min(P.index,q)),V=s(M,1),H=V[0],Z=H;if(P.length>0){var J=this.scroll.line(Math.min(P.index+P.length,q)),K=s(J,1);Z=K[0]}if(!(H==null||Z==null)){var F=D.getBoundingClientRect();R.top<F.top?D.scrollTop-=F.top-R.top:R.bottom>F.bottom&&(D.scrollTop+=R.bottom-F.bottom)}}}}},{key:"setNativeRange",value:function(D,P){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:D,q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:P,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(_.info("setNativeRange",D,P,R,q),!(D!=null&&(this.root.parentNode==null||D.parentNode==null||R.parentNode==null))){var V=document.getSelection();if(V!=null)if(D!=null){this.hasFocus()||this.root.focus();var H=(this.getNativeRange()||{}).native;if(H==null||M||D!==H.startContainer||P!==H.startOffset||R!==H.endContainer||q!==H.endOffset){D.tagName=="BR"&&(P=[].indexOf.call(D.parentNode.childNodes,D),D=D.parentNode),R.tagName=="BR"&&(q=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode);var Z=document.createRange();Z.setStart(D,P),Z.setEnd(R,q),V.removeAllRanges(),V.addRange(Z)}}else V.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x.default.sources.API;if(typeof P=="string"&&(R=P,P=!1),_.info("setRange",D),D!=null){var q=this.rangeToNative(D);this.setNativeRange.apply(this,w(q).concat([P]))}else this.setNativeRange(null);this.update(R)}},{key:"update",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x.default.sources.USER,P=this.lastRange,R=this.getRange(),q=s(R,2),M=q[0],V=q[1];if(this.lastRange=M,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,p.default)(P,this.lastRange)){var H;!this.composing&&V!=null&&V.native.collapsed&&V.start.node!==this.cursor.textNode&&this.cursor.restore();var Z=[x.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(P),D];if((H=this.emitter).emit.apply(H,[x.default.events.EDITOR_CHANGE].concat(Z)),D!==x.default.sources.SILENT){var J;(J=this.emitter).emit.apply(J,Z)}}}}]),k})();function E(k,T){try{T.parentNode}catch{return!1}return T instanceof Text&&(T=T.parentNode),k.contains(T)}r.Range=N,r.default=A}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function x(v,g){for(var y=0;y<g.length;y++){var w=g[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,g,y){return g&&x(v.prototype,g),y&&x(v,y),v}})(),o=function x(v,g,y){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,g);if(w===void 0){var j=Object.getPrototypeOf(v);return j===null?void 0:x(j,g,y)}else{if("value"in w)return w.value;var _=w.get;return _===void 0?void 0:_.call(y)}},l=i(0),c=u(l);function u(x){return x&&x.__esModule?x:{default:x}}function d(x,v){if(!(x instanceof v))throw new TypeError("Cannot call a class as a function")}function f(x,v){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:x}function p(x,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);x.prototype=Object.create(v&&v.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(x,v):x.__proto__=v)}var h=(function(x){p(v,x);function v(){return d(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return s(v,[{key:"insertInto",value:function(y,w){y.children.length===0?o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertInto",this).call(this,y,w):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),v})(c.default.Embed);h.blotName="break",h.tagName="BR",r.default=h}),(function(n,r,i){var s=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var x in h)h.hasOwnProperty(x)&&(p[x]=h[x])};return function(p,h){f(p,h);function x(){this.constructor=p}p.prototype=h===null?Object.create(h):(x.prototype=h.prototype,new x)}})();Object.defineProperty(r,"__esModule",{value:!0});var o=i(44),l=i(30),c=i(1),u=(function(f){s(p,f);function p(h){var x=f.call(this,h)||this;return x.build(),x}return p.prototype.appendChild=function(h){this.insertBefore(h)},p.prototype.attach=function(){f.prototype.attach.call(this),this.children.forEach(function(h){h.attach()})},p.prototype.build=function(){var h=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(x){try{var v=d(x);h.insertBefore(v,h.children.head||void 0)}catch(g){if(g instanceof c.ParchmentError)return;throw g}})},p.prototype.deleteAt=function(h,x){if(h===0&&x===this.length())return this.remove();this.children.forEachAt(h,x,function(v,g,y){v.deleteAt(g,y)})},p.prototype.descendant=function(h,x){var v=this.children.find(x),g=v[0],y=v[1];return h.blotName==null&&h(g)||h.blotName!=null&&g instanceof h?[g,y]:g instanceof p?g.descendant(h,y):[null,-1]},p.prototype.descendants=function(h,x,v){x===void 0&&(x=0),v===void 0&&(v=Number.MAX_VALUE);var g=[],y=v;return this.children.forEachAt(x,v,function(w,j,_){(h.blotName==null&&h(w)||h.blotName!=null&&w instanceof h)&&g.push(w),w instanceof p&&(g=g.concat(w.descendants(h,j,y))),y-=_}),g},p.prototype.detach=function(){this.children.forEach(function(h){h.detach()}),f.prototype.detach.call(this)},p.prototype.formatAt=function(h,x,v,g){this.children.forEachAt(h,x,function(y,w,j){y.formatAt(w,j,v,g)})},p.prototype.insertAt=function(h,x,v){var g=this.children.find(h),y=g[0],w=g[1];if(y)y.insertAt(w,x,v);else{var j=v==null?c.create("text",x):c.create(x,v);this.appendChild(j)}},p.prototype.insertBefore=function(h,x){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(v){return h instanceof v}))throw new c.ParchmentError("Cannot insert "+h.statics.blotName+" into "+this.statics.blotName);h.insertInto(this,x)},p.prototype.length=function(){return this.children.reduce(function(h,x){return h+x.length()},0)},p.prototype.moveChildren=function(h,x){this.children.forEach(function(v){h.insertBefore(v,x)})},p.prototype.optimize=function(h){if(f.prototype.optimize.call(this,h),this.children.length===0)if(this.statics.defaultChild!=null){var x=c.create(this.statics.defaultChild);this.appendChild(x),x.optimize(h)}else this.remove()},p.prototype.path=function(h,x){x===void 0&&(x=!1);var v=this.children.find(h,x),g=v[0],y=v[1],w=[[this,h]];return g instanceof p?w.concat(g.path(y,x)):(g!=null&&w.push([g,y]),w)},p.prototype.removeChild=function(h){this.children.remove(h)},p.prototype.replace=function(h){h instanceof p&&h.moveChildren(this),f.prototype.replace.call(this,h)},p.prototype.split=function(h,x){if(x===void 0&&(x=!1),!x){if(h===0)return this;if(h===this.length())return this.next}var v=this.clone();return this.parent.insertBefore(v,this.next),this.children.forEachAt(h,this.length(),function(g,y,w){g=g.split(y,x),v.appendChild(g)}),v},p.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},p.prototype.update=function(h,x){var v=this,g=[],y=[];h.forEach(function(w){w.target===v.domNode&&w.type==="childList"&&(g.push.apply(g,w.addedNodes),y.push.apply(y,w.removedNodes))}),y.forEach(function(w){if(!(w.parentNode!=null&&w.tagName!=="IFRAME"&&document.body.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var j=c.find(w);j!=null&&(j.domNode.parentNode==null||j.domNode.parentNode===v.domNode)&&j.detach()}}),g.filter(function(w){return w.parentNode==v.domNode}).sort(function(w,j){return w===j?0:w.compareDocumentPosition(j)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(w){var j=null;w.nextSibling!=null&&(j=c.find(w.nextSibling));var _=d(w);(_.next!=j||_.next==null)&&(_.parent!=null&&_.parent.removeChild(v),v.insertBefore(_,j||void 0))})},p})(l.default);function d(f){var p=c.find(f);if(p==null)try{p=c.create(f)}catch{p=c.create(c.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(x){p.domNode.appendChild(x)}),f.parentNode&&f.parentNode.replaceChild(p.domNode,f),p.attach()}return p}r.default=u}),(function(n,r,i){var s=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var x in h)h.hasOwnProperty(x)&&(p[x]=h[x])};return function(p,h){f(p,h);function x(){this.constructor=p}p.prototype=h===null?Object.create(h):(x.prototype=h.prototype,new x)}})();Object.defineProperty(r,"__esModule",{value:!0});var o=i(12),l=i(31),c=i(17),u=i(1),d=(function(f){s(p,f);function p(h){var x=f.call(this,h)||this;return x.attributes=new l.default(x.domNode),x}return p.formats=function(h){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return h.tagName.toLowerCase()},p.prototype.format=function(h,x){var v=u.query(h);v instanceof o.default?this.attributes.attribute(v,x):x&&v!=null&&(h!==this.statics.blotName||this.formats()[h]!==x)&&this.replaceWith(h,x)},p.prototype.formats=function(){var h=this.attributes.values(),x=this.statics.formats(this.domNode);return x!=null&&(h[this.statics.blotName]=x),h},p.prototype.replaceWith=function(h,x){var v=f.prototype.replaceWith.call(this,h,x);return this.attributes.copy(v),v},p.prototype.update=function(h,x){var v=this;f.prototype.update.call(this,h,x),h.some(function(g){return g.target===v.domNode&&g.type==="attributes"})&&this.attributes.build()},p.prototype.wrap=function(h,x){var v=f.prototype.wrap.call(this,h,x);return v instanceof p&&v.statics.scope===this.statics.scope&&this.attributes.move(v),v},p})(c.default);r.default=d}),(function(n,r,i){var s=this&&this.__extends||(function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)f.hasOwnProperty(p)&&(d[p]=f[p])};return function(d,f){u(d,f);function p(){this.constructor=d}d.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}})();Object.defineProperty(r,"__esModule",{value:!0});var o=i(30),l=i(1),c=(function(u){s(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.value=function(f){return!0},d.prototype.index=function(f,p){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(p,1):-1},d.prototype.position=function(f,p){var h=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return f>0&&(h+=1),[this.parent.domNode,h]},d.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f},d.scope=l.Scope.INLINE_BLOT,d})(o.default);r.default=c}),(function(n,r,i){var s=i(11),o=i(3),l={attributes:{compose:function(u,d,f){typeof u!="object"&&(u={}),typeof d!="object"&&(d={});var p=o(!0,{},d);f||(p=Object.keys(p).reduce(function(x,v){return p[v]!=null&&(x[v]=p[v]),x},{}));for(var h in u)u[h]!==void 0&&d[h]===void 0&&(p[h]=u[h]);return Object.keys(p).length>0?p:void 0},diff:function(u,d){typeof u!="object"&&(u={}),typeof d!="object"&&(d={});var f=Object.keys(u).concat(Object.keys(d)).reduce(function(p,h){return s(u[h],d[h])||(p[h]=d[h]===void 0?null:d[h]),p},{});return Object.keys(f).length>0?f:void 0},transform:function(u,d,f){if(typeof u!="object")return d;if(typeof d=="object"){if(!f)return d;var p=Object.keys(d).reduce(function(h,x){return u[x]===void 0&&(h[x]=d[x]),h},{});return Object.keys(p).length>0?p:void 0}}},iterator:function(u){return new c(u)},length:function(u){return typeof u.delete=="number"?u.delete:typeof u.retain=="number"?u.retain:typeof u.insert=="string"?u.insert.length:1}};function c(u){this.ops=u,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(u){u||(u=1/0);var d=this.ops[this.index];if(d){var f=this.offset,p=l.length(d);if(u>=p-f?(u=p-f,this.index+=1,this.offset=0):this.offset+=u,typeof d.delete=="number")return{delete:u};var h={};return d.attributes&&(h.attributes=d.attributes),typeof d.retain=="number"?h.retain=u:typeof d.insert=="string"?h.insert=d.insert.substr(f,u):h.insert=d.insert,h}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},c.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var u=this.offset,d=this.index,f=this.next(),p=this.ops.slice(this.index);return this.offset=u,this.index=d,[f].concat(p)}else return[]},n.exports=l}),(function(n,r){var i=(function(){function s(v,g){return g!=null&&v instanceof g}var o;try{o=Map}catch{o=function(){}}var l;try{l=Set}catch{l=function(){}}var c;try{c=Promise}catch{c=function(){}}function u(v,g,y,w,j){typeof g=="object"&&(y=g.depth,w=g.prototype,j=g.includeNonEnumerable,g=g.circular);var _=[],N=[],A=typeof Buffer<"u";typeof g>"u"&&(g=!0),typeof y>"u"&&(y=1/0);function E(k,T){if(k===null)return null;if(T===0)return k;var D,P;if(typeof k!="object")return k;if(s(k,o))D=new o;else if(s(k,l))D=new l;else if(s(k,c))D=new c(function(F,$){k.then(function(B){F(E(B,T-1))},function(B){$(E(B,T-1))})});else if(u.__isArray(k))D=[];else if(u.__isRegExp(k))D=new RegExp(k.source,x(k)),k.lastIndex&&(D.lastIndex=k.lastIndex);else if(u.__isDate(k))D=new Date(k.getTime());else{if(A&&Buffer.isBuffer(k))return Buffer.allocUnsafe?D=Buffer.allocUnsafe(k.length):D=new Buffer(k.length),k.copy(D),D;s(k,Error)?D=Object.create(k):typeof w>"u"?(P=Object.getPrototypeOf(k),D=Object.create(P)):(D=Object.create(w),P=w)}if(g){var R=_.indexOf(k);if(R!=-1)return N[R];_.push(k),N.push(D)}s(k,o)&&k.forEach(function(F,$){var B=E($,T-1),z=E(F,T-1);D.set(B,z)}),s(k,l)&&k.forEach(function(F){var $=E(F,T-1);D.add($)});for(var q in k){var M;P&&(M=Object.getOwnPropertyDescriptor(P,q)),!(M&&M.set==null)&&(D[q]=E(k[q],T-1))}if(Object.getOwnPropertySymbols)for(var V=Object.getOwnPropertySymbols(k),q=0;q<V.length;q++){var H=V[q],Z=Object.getOwnPropertyDescriptor(k,H);Z&&!Z.enumerable&&!j||(D[H]=E(k[H],T-1),Z.enumerable||Object.defineProperty(D,H,{enumerable:!1}))}if(j)for(var J=Object.getOwnPropertyNames(k),q=0;q<J.length;q++){var K=J[q],Z=Object.getOwnPropertyDescriptor(k,K);Z&&Z.enumerable||(D[K]=E(k[K],T-1),Object.defineProperty(D,K,{enumerable:!1}))}return D}return E(v,y)}u.clonePrototype=function(g){if(g===null)return null;var y=function(){};return y.prototype=g,new y};function d(v){return Object.prototype.toString.call(v)}u.__objToStr=d;function f(v){return typeof v=="object"&&d(v)==="[object Date]"}u.__isDate=f;function p(v){return typeof v=="object"&&d(v)==="[object Array]"}u.__isArray=p;function h(v){return typeof v=="object"&&d(v)==="[object RegExp]"}u.__isRegExp=h;function x(v){var g="";return v.global&&(g+="g"),v.ignoreCase&&(g+="i"),v.multiline&&(g+="m"),g}return u.__getRegExpFlags=x,u})();typeof n=="object"&&n.exports&&(n.exports=i)}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function D(P,R){var q=[],M=!0,V=!1,H=void 0;try{for(var Z=P[Symbol.iterator](),J;!(M=(J=Z.next()).done)&&(q.push(J.value),!(R&&q.length===R));M=!0);}catch(K){V=!0,H=K}finally{try{!M&&Z.return&&Z.return()}finally{if(V)throw H}}return q}return function(P,R){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return D(P,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function D(P,R){for(var q=0;q<R.length;q++){var M=R[q];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(P,M.key,M)}}return function(P,R,q){return R&&D(P.prototype,R),q&&D(P,q),P}})(),l=function D(P,R,q){P===null&&(P=Function.prototype);var M=Object.getOwnPropertyDescriptor(P,R);if(M===void 0){var V=Object.getPrototypeOf(P);return V===null?void 0:D(V,R,q)}else{if("value"in M)return M.value;var H=M.get;return H===void 0?void 0:H.call(q)}},c=i(0),u=_(c),d=i(8),f=_(d),p=i(4),h=_(p),x=i(16),v=_(x),g=i(13),y=_(g),w=i(25),j=_(w);function _(D){return D&&D.__esModule?D:{default:D}}function N(D,P){if(!(D instanceof P))throw new TypeError("Cannot call a class as a function")}function A(D,P){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:D}function E(D,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);D.prototype=Object.create(P&&P.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(D,P):D.__proto__=P)}function k(D){return D instanceof h.default||D instanceof p.BlockEmbed}var T=(function(D){E(P,D);function P(R,q){N(this,P);var M=A(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,R));return M.emitter=q.emitter,Array.isArray(q.whitelist)&&(M.whitelist=q.whitelist.reduce(function(V,H){return V[H]=!0,V},{})),M.domNode.addEventListener("DOMNodeInserted",function(){}),M.optimize(),M.enable(),M}return o(P,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(q,M){var V=this.line(q),H=s(V,2),Z=H[0],J=H[1],K=this.line(q+M),F=s(K,1),$=F[0];if(l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"deleteAt",this).call(this,q,M),$!=null&&Z!==$&&J>0){if(Z instanceof p.BlockEmbed||$ instanceof p.BlockEmbed){this.optimize();return}if(Z instanceof y.default){var B=Z.newlineIndex(Z.length(),!0);if(B>-1&&(Z=Z.split(B+1),Z===$)){this.optimize();return}}else if($ instanceof y.default){var z=$.newlineIndex(0);z>-1&&$.split(z+1)}var ee=$.children.head instanceof v.default?null:$.children.head;Z.moveChildren($,ee),Z.remove()}this.optimize()}},{key:"enable",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",q)}},{key:"formatAt",value:function(q,M,V,H){this.whitelist!=null&&!this.whitelist[V]||(l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"formatAt",this).call(this,q,M,V,H),this.optimize())}},{key:"insertAt",value:function(q,M,V){if(!(V!=null&&this.whitelist!=null&&!this.whitelist[M])){if(q>=this.length())if(V==null||u.default.query(M,u.default.Scope.BLOCK)==null){var H=u.default.create(this.statics.defaultChild);this.appendChild(H),V==null&&M.endsWith(` 1281`)&&(M=M.slice(0,-1)),H.insertAt(0,M,V)}else{var Z=u.default.create(M,V);this.appendChild(Z)}else l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertAt",this).call(this,q,M,V);this.optimize()}}},{key:"insertBefore",value:function(q,M){if(q.statics.scope===u.default.Scope.INLINE_BLOT){var V=u.default.create(this.statics.defaultChild);V.appendChild(q),q=V}l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertBefore",this).call(this,q,M)}},{key:"leaf",value:function(q){return this.path(q).pop()||[null,-1]}},{key:"line",value:function(q){return q===this.length()?this.line(q-1):this.descendant(k,q)}},{key:"lines",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,V=function H(Z,J,K){var F=[],$=K;return Z.children.forEachAt(J,K,function(B,z,ee){k(B)?F.push(B):B instanceof u.default.Container&&(F=F.concat(H(B,z,$))),$-=ee}),F};return V(this,q,M)}},{key:"optimize",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,q,M),q.length>0&&this.emitter.emit(f.default.events.SCROLL_OPTIMIZE,q,M))}},{key:"path",value:function(q){return l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"path",this).call(this,q).slice(1)}},{key:"update",value:function(q){if(this.batch!==!0){var M=f.default.sources.USER;typeof q=="string"&&(M=q),Array.isArray(q)||(q=this.observer.takeRecords()),q.length>0&&this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE,M,q),l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"update",this).call(this,q.concat([])),q.length>0&&this.emitter.emit(f.default.events.SCROLL_UPDATE,M,q)}}}]),P})(u.default.Scroll);T.blotName="scroll",T.className="ql-editor",T.tagName="DIV",T.defaultChild="block",T.allowedChildren=[h.default,p.BlockEmbed,j.default],r.default=T}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SHORTKEY=r.default=void 0;var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},o=(function(){function X(ne,le){var re=[],he=!0,be=!1,ve=void 0;try{for(var ze=ne[Symbol.iterator](),He;!(he=(He=ze.next()).done)&&(re.push(He.value),!(le&&re.length===le));he=!0);}catch(ue){be=!0,ve=ue}finally{try{!he&&ze.return&&ze.return()}finally{if(be)throw ve}}return re}return function(ne,le){if(Array.isArray(ne))return ne;if(Symbol.iterator in Object(ne))return X(ne,le);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),l=(function(){function X(ne,le){for(var re=0;re<le.length;re++){var he=le[re];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(ne,he.key,he)}}return function(ne,le,re){return le&&X(ne.prototype,le),re&&X(ne,re),ne}})(),c=i(21),u=D(c),d=i(11),f=D(d),p=i(3),h=D(p),x=i(2),v=D(x),g=i(20),y=D(g),w=i(0),j=D(w),_=i(5),N=D(_),A=i(10),E=D(A),k=i(9),T=D(k);function D(X){return X&&X.__esModule?X:{default:X}}function P(X,ne,le){return ne in X?Object.defineProperty(X,ne,{value:le,enumerable:!0,configurable:!0,writable:!0}):X[ne]=le,X}function R(X,ne){if(!(X instanceof ne))throw new TypeError("Cannot call a class as a function")}function q(X,ne){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne&&(typeof ne=="object"||typeof ne=="function")?ne:X}function M(X,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ne);X.prototype=Object.create(ne&&ne.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),ne&&(Object.setPrototypeOf?Object.setPrototypeOf(X,ne):X.__proto__=ne)}var V=(0,E.default)("quill:keyboard"),H=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",Z=(function(X){M(ne,X),l(ne,null,[{key:"match",value:function(re,he){return he=te(he),["altKey","ctrlKey","metaKey","shiftKey"].some(function(be){return!!he[be]!==re[be]&&he[be]!==null})?!1:he.key===(re.which||re.keyCode)}}]);function ne(le,re){R(this,ne);var he=q(this,(ne.__proto__||Object.getPrototypeOf(ne)).call(this,le,re));return he.bindings={},Object.keys(he.options.bindings).forEach(function(be){be==="list autofill"&&le.scroll.whitelist!=null&&!le.scroll.whitelist.list||he.options.bindings[be]&&he.addBinding(he.options.bindings[be])}),he.addBinding({key:ne.keys.ENTER,shiftKey:null},B),he.addBinding({key:ne.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(he.addBinding({key:ne.keys.BACKSPACE},{collapsed:!0},K),he.addBinding({key:ne.keys.DELETE},{collapsed:!0},F)):(he.addBinding({key:ne.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},K),he.addBinding({key:ne.keys.DELETE},{collapsed:!0,suffix:/^.?$/},F)),he.addBinding({key:ne.keys.BACKSPACE},{collapsed:!1},$),he.addBinding({key:ne.keys.DELETE},{collapsed:!1},$),he.addBinding({key:ne.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},K),he.listen(),he}return l(ne,[{key:"addBinding",value:function(re){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ve=te(re);if(ve==null||ve.key==null)return V.warn("Attempted to add invalid keyboard binding",ve);typeof he=="function"&&(he={handler:he}),typeof be=="function"&&(be={handler:be}),ve=(0,h.default)(ve,he,be),this.bindings[ve.key]=this.bindings[ve.key]||[],this.bindings[ve.key].push(ve)}},{key:"listen",value:function(){var re=this;this.quill.root.addEventListener("keydown",function(he){if(!he.defaultPrevented){var be=he.which||he.keyCode,ve=(re.bindings[be]||[]).filter(function(mt){return ne.match(he,mt)});if(ve.length!==0){var ze=re.quill.getSelection();if(!(ze==null||!re.quill.hasFocus())){var He=re.quill.getLine(ze.index),ue=o(He,2),Ue=ue[0],ut=ue[1],Ee=re.quill.getLeaf(ze.index),we=o(Ee,2),Ye=we[0],We=we[1],Be=ze.length===0?[Ye,We]:re.quill.getLeaf(ze.index+ze.length),dt=o(Be,2),St=dt[0],Nt=dt[1],De=Ye instanceof j.default.Text?Ye.value().slice(0,We):"",et=St instanceof j.default.Text?St.value().slice(Nt):"",ot={collapsed:ze.length===0,empty:ze.length===0&&Ue.length()<=1,format:re.quill.getFormat(ze),offset:ut,prefix:De,suffix:et},ht=ve.some(function(mt){if(mt.collapsed!=null&&mt.collapsed!==ot.collapsed||mt.empty!=null&&mt.empty!==ot.empty||mt.offset!=null&&mt.offset!==ot.offset)return!1;if(Array.isArray(mt.format)){if(mt.format.every(function(jt){return ot.format[jt]==null}))return!1}else if(s(mt.format)==="object"&&!Object.keys(mt.format).every(function(jt){return mt.format[jt]===!0?ot.format[jt]!=null:mt.format[jt]===!1?ot.format[jt]==null:(0,f.default)(mt.format[jt],ot.format[jt])}))return!1;return mt.prefix!=null&&!mt.prefix.test(ot.prefix)||mt.suffix!=null&&!mt.suffix.test(ot.suffix)?!1:mt.handler.call(re,ze,ot)!==!0});ht&&he.preventDefault()}}}})}}]),ne})(T.default);Z.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},Z.DEFAULTS={bindings:{bold:ee("bold"),italic:ee("italic"),underline:ee("underline"),indent:{key:Z.keys.TAB,format:["blockquote","indent","list"],handler:function(ne,le){if(le.collapsed&&le.offset!==0)return!0;this.quill.format("indent","+1",N.default.sources.USER)}},outdent:{key:Z.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(ne,le){if(le.collapsed&&le.offset!==0)return!0;this.quill.format("indent","-1",N.default.sources.USER)}},"outdent backspace":{key:Z.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(ne,le){le.format.indent!=null?this.quill.format("indent","-1",N.default.sources.USER):le.format.list!=null&&this.quill.format("list",!1,N.default.sources.USER)}},"indent code-block":z(!0),"outdent code-block":z(!1),"remove tab":{key:Z.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(ne){this.quill.deleteText(ne.index-1,1,N.default.sources.USER)}},tab:{key:Z.keys.TAB,handler:function(ne){this.quill.history.cutoff();var le=new v.default().retain(ne.index).delete(ne.length).insert(" ");this.quill.updateContents(le,N.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(ne.index+1,N.default.sources.SILENT)}},"list empty enter":{key:Z.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(ne,le){this.quill.format("list",!1,N.default.sources.USER),le.format.indent&&this.quill.format("indent",!1,N.default.sources.USER)}},"checklist enter":{key:Z.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(ne){var le=this.quill.getLine(ne.index),re=o(le,2),he=re[0],be=re[1],ve=(0,h.default)({},he.formats(),{list:"checked"}),ze=new v.default().retain(ne.index).insert(` 1282`,ve).retain(he.length()-be-1).retain(1,{list:"unchecked"});this.quill.updateContents(ze,N.default.sources.USER),this.quill.setSelection(ne.index+1,N.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:Z.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(ne,le){var re=this.quill.getLine(ne.index),he=o(re,2),be=he[0],ve=he[1],ze=new v.default().retain(ne.index).insert(` 1283`,le.format).retain(be.length()-ve-1).retain(1,{header:null});this.quill.updateContents(ze,N.default.sources.USER),this.quill.setSelection(ne.index+1,N.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(ne,le){var re=le.prefix.length,he=this.quill.getLine(ne.index),be=o(he,2),ve=be[0],ze=be[1];if(ze>re)return!0;var He=void 0;switch(le.prefix.trim()){case"[]":case"[ ]":He="unchecked";break;case"[x]":He="checked";break;case"-":case"*":He="bullet";break;default:He="ordered"}this.quill.insertText(ne.index," ",N.default.sources.USER),this.quill.history.cutoff();var ue=new v.default().retain(ne.index-ze).delete(re+1).retain(ve.length()-2-ze).retain(1,{list:He});this.quill.updateContents(ue,N.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(ne.index-re,N.default.sources.SILENT)}},"code exit":{key:Z.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(ne){var le=this.quill.getLine(ne.index),re=o(le,2),he=re[0],be=re[1],ve=new v.default().retain(ne.index+he.length()-be-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ve,N.default.sources.USER)}},"embed left":J(Z.keys.LEFT,!1),"embed left shift":J(Z.keys.LEFT,!0),"embed right":J(Z.keys.RIGHT,!1),"embed right shift":J(Z.keys.RIGHT,!0)}};function J(X,ne){var le,re=X===Z.keys.LEFT?"prefix":"suffix";return le={key:X,shiftKey:ne,altKey:null},P(le,re,/^$/),P(le,"handler",function(be){var ve=be.index;X===Z.keys.RIGHT&&(ve+=be.length+1);var ze=this.quill.getLeaf(ve),He=o(ze,1),ue=He[0];return ue instanceof j.default.Embed?(X===Z.keys.LEFT?ne?this.quill.setSelection(be.index-1,be.length+1,N.default.sources.USER):this.quill.setSelection(be.index-1,N.default.sources.USER):ne?this.quill.setSelection(be.index,be.length+1,N.default.sources.USER):this.quill.setSelection(be.index+be.length+1,N.default.sources.USER),!1):!0}),le}function K(X,ne){if(!(X.index===0||this.quill.getLength()<=1)){var le=this.quill.getLine(X.index),re=o(le,1),he=re[0],be={};if(ne.offset===0){var ve=this.quill.getLine(X.index-1),ze=o(ve,1),He=ze[0];if(He!=null&&He.length()>1){var ue=he.formats(),Ue=this.quill.getFormat(X.index-1,1);be=y.default.attributes.diff(ue,Ue)||{}}}var ut=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(ne.prefix)?2:1;this.quill.deleteText(X.index-ut,ut,N.default.sources.USER),Object.keys(be).length>0&&this.quill.formatLine(X.index-ut,ut,be,N.default.sources.USER),this.quill.focus()}}function F(X,ne){var le=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(ne.suffix)?2:1;if(!(X.index>=this.quill.getLength()-le)){var re={},he=0,be=this.quill.getLine(X.index),ve=o(be,1),ze=ve[0];if(ne.offset>=ze.length()-1){var He=this.quill.getLine(X.index+1),ue=o(He,1),Ue=ue[0];if(Ue){var ut=ze.formats(),Ee=this.quill.getFormat(X.index,1);re=y.default.attributes.diff(ut,Ee)||{},he=Ue.length()}}this.quill.deleteText(X.index,le,N.default.sources.USER),Object.keys(re).length>0&&this.quill.formatLine(X.index+he-1,le,re,N.default.sources.USER)}}function $(X){var ne=this.quill.getLines(X),le={};if(ne.length>1){var re=ne[0].formats(),he=ne[ne.length-1].formats();le=y.default.attributes.diff(he,re)||{}}this.quill.deleteText(X,N.default.sources.USER),Object.keys(le).length>0&&this.quill.formatLine(X.index,1,le,N.default.sources.USER),this.quill.setSelection(X.index,N.default.sources.SILENT),this.quill.focus()}function B(X,ne){var le=this;X.length>0&&this.quill.scroll.deleteAt(X.index,X.length);var re=Object.keys(ne.format).reduce(function(he,be){return j.default.query(be,j.default.Scope.BLOCK)&&!Array.isArray(ne.format[be])&&(he[be]=ne.format[be]),he},{});this.quill.insertText(X.index,` 1284`,re,N.default.sources.USER),this.quill.setSelection(X.index+1,N.default.sources.SILENT),this.quill.focus(),Object.keys(ne.format).forEach(function(he){re[he]==null&&(Array.isArray(ne.format[he])||he!=="link"&&le.quill.format(he,ne.format[he],N.default.sources.USER))})}function z(X){return{key:Z.keys.TAB,shiftKey:!X,format:{"code-block":!0},handler:function(le){var re=j.default.query("code-block"),he=le.index,be=le.length,ve=this.quill.scroll.descendant(re,he),ze=o(ve,2),He=ze[0],ue=ze[1];if(He!=null){var Ue=this.quill.getIndex(He),ut=He.newlineIndex(ue,!0)+1,Ee=He.newlineIndex(Ue+ue+be),we=He.domNode.textContent.slice(ut,Ee).split(` 1285`);ue=0,we.forEach(function(Ye,We){X?(He.insertAt(ut+ue,re.TAB),ue+=re.TAB.length,We===0?he+=re.TAB.length:be+=re.TAB.length):Ye.startsWith(re.TAB)&&(He.deleteAt(ut+ue,re.TAB.length),ue-=re.TAB.length,We===0?he-=re.TAB.length:be-=re.TAB.length),ue+=Ye.length+1}),this.quill.update(N.default.sources.USER),this.quill.setSelection(he,be,N.default.sources.SILENT)}}}}function ee(X){return{key:X[0].toUpperCase(),shortKey:!0,handler:function(le,re){this.quill.format(X,!re.format[X],N.default.sources.USER)}}}function te(X){if(typeof X=="string"||typeof X=="number")return te({key:X});if((typeof X>"u"?"undefined":s(X))==="object"&&(X=(0,u.default)(X,!1)),typeof X.key=="string")if(Z.keys[X.key.toUpperCase()]!=null)X.key=Z.keys[X.key.toUpperCase()];else if(X.key.length===1)X.key=X.key.toUpperCase().charCodeAt(0);else return null;return X.shortKey&&(X[H]=X.shortKey,delete X.shortKey),X}r.default=Z,r.SHORTKEY=H}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function y(w,j){var _=[],N=!0,A=!1,E=void 0;try{for(var k=w[Symbol.iterator](),T;!(N=(T=k.next()).done)&&(_.push(T.value),!(j&&_.length===j));N=!0);}catch(D){A=!0,E=D}finally{try{!N&&k.return&&k.return()}finally{if(A)throw E}}return _}return function(w,j){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return y(w,j);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=function y(w,j,_){w===null&&(w=Function.prototype);var N=Object.getOwnPropertyDescriptor(w,j);if(N===void 0){var A=Object.getPrototypeOf(w);return A===null?void 0:y(A,j,_)}else{if("value"in N)return N.value;var E=N.get;return E===void 0?void 0:E.call(_)}},l=(function(){function y(w,j){for(var _=0;_<j.length;_++){var N=j[_];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(w,N.key,N)}}return function(w,j,_){return j&&y(w.prototype,j),_&&y(w,_),w}})(),c=i(0),u=p(c),d=i(7),f=p(d);function p(y){return y&&y.__esModule?y:{default:y}}function h(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function x(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function v(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var g=(function(y){v(w,y),l(w,null,[{key:"value",value:function(){}}]);function w(j,_){h(this,w);var N=x(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,j));return N.selection=_,N.textNode=document.createTextNode(w.CONTENTS),N.domNode.appendChild(N.textNode),N._length=0,N}return l(w,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(_,N){if(this._length!==0)return o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,_,N);for(var A=this,E=0;A!=null&&A.statics.scope!==u.default.Scope.BLOCK_BLOT;)E+=A.offset(A.parent),A=A.parent;A!=null&&(this._length=w.CONTENTS.length,A.optimize(),A.formatAt(E,w.CONTENTS.length,_,N),this._length=0)}},{key:"index",value:function(_,N){return _===this.textNode?0:o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"index",this).call(this,_,N)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var _=this.textNode,N=this.selection.getNativeRange(),A=void 0,E=void 0,k=void 0;if(N!=null&&N.start.node===_&&N.end.node===_){var T=[_,N.start.offset,N.end.offset];A=T[0],E=T[1],k=T[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==w.CONTENTS){var D=this.textNode.data.split(w.CONTENTS).join("");this.next instanceof f.default?(A=this.next.domNode,this.next.insertAt(0,D),this.textNode.data=w.CONTENTS):(this.textNode.data=D,this.parent.insertBefore(u.default.create(this.textNode),this),this.textNode=document.createTextNode(w.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),E!=null){var P=[E,k].map(function(q){return Math.max(0,Math.min(A.data.length,q-1))}),R=s(P,2);return E=R[0],k=R[1],{startNode:A,startOffset:E,endNode:A,endOffset:k}}}}},{key:"update",value:function(_,N){var A=this;if(_.some(function(k){return k.type==="characterData"&&k.target===A.textNode})){var E=this.restore();E&&(N.range=E)}}},{key:"value",value:function(){return""}}]),w})(u.default.Embed);g.blotName="cursor",g.className="ql-cursor",g.tagName="span",g.CONTENTS="\uFEFF",r.default=g}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i(0),o=u(s),l=i(4),c=u(l);function u(x){return x&&x.__esModule?x:{default:x}}function d(x,v){if(!(x instanceof v))throw new TypeError("Cannot call a class as a function")}function f(x,v){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:x}function p(x,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);x.prototype=Object.create(v&&v.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(x,v):x.__proto__=v)}var h=(function(x){p(v,x);function v(){return d(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v})(o.default.Container);h.allowedChildren=[c.default,l.BlockEmbed,h],r.default=h}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ColorStyle=r.ColorClass=r.ColorAttributor=void 0;var s=(function(){function g(y,w){for(var j=0;j<w.length;j++){var _=w[j];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}return function(y,w,j){return w&&g(y.prototype,w),j&&g(y,j),y}})(),o=function g(y,w,j){y===null&&(y=Function.prototype);var _=Object.getOwnPropertyDescriptor(y,w);if(_===void 0){var N=Object.getPrototypeOf(y);return N===null?void 0:g(N,w,j)}else{if("value"in _)return _.value;var A=_.get;return A===void 0?void 0:A.call(j)}},l=i(0),c=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function d(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function f(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function p(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var h=(function(g){p(y,g);function y(){return d(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return s(y,[{key:"value",value:function(j){var _=o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,j);return _.startsWith("rgb(")?(_=_.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+_.split(",").map(function(N){return("00"+parseInt(N).toString(16)).slice(-2)}).join("")):_}}]),y})(c.default.Attributor.Style),x=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),v=new h("color","color",{scope:c.default.Scope.INLINE});r.ColorAttributor=h,r.ColorClass=x,r.ColorStyle=v}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.sanitize=r.default=void 0;var s=(function(){function v(g,y){for(var w=0;w<y.length;w++){var j=y[w];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(g,j.key,j)}}return function(g,y,w){return y&&v(g.prototype,y),w&&v(g,w),g}})(),o=function v(g,y,w){g===null&&(g=Function.prototype);var j=Object.getOwnPropertyDescriptor(g,y);if(j===void 0){var _=Object.getPrototypeOf(g);return _===null?void 0:v(_,y,w)}else{if("value"in j)return j.value;var N=j.get;return N===void 0?void 0:N.call(w)}},l=i(6),c=u(l);function u(v){return v&&v.__esModule?v:{default:v}}function d(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function f(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function p(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var h=(function(v){p(g,v);function g(){return d(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return s(g,[{key:"format",value:function(w,j){if(w!==this.statics.blotName||!j)return o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,w,j);j=this.constructor.sanitize(j),this.domNode.setAttribute("href",j)}}],[{key:"create",value:function(w){var j=o(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,w);return w=this.sanitize(w),j.setAttribute("href",w),j.setAttribute("rel","noopener noreferrer"),j.setAttribute("target","_blank"),j}},{key:"formats",value:function(w){return w.getAttribute("href")}},{key:"sanitize",value:function(w){return x(w,this.PROTOCOL_WHITELIST)?w:this.SANITIZED_URL}}]),g})(c.default);h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function x(v,g){var y=document.createElement("a");y.href=v;var w=y.href.slice(0,y.href.indexOf(":"));return g.indexOf(w)>-1}r.default=h,r.sanitize=x}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},o=(function(){function g(y,w){for(var j=0;j<w.length;j++){var _=w[j];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}return function(y,w,j){return w&&g(y.prototype,w),j&&g(y,j),y}})(),l=i(23),c=f(l),u=i(107),d=f(u);function f(g){return g&&g.__esModule?g:{default:g}}function p(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}var h=0;function x(g,y){g.setAttribute(y,g.getAttribute(y)!=="true")}var v=(function(){function g(y){var w=this;p(this,g),this.select=y,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){w.togglePicker()}),this.label.addEventListener("keydown",function(j){switch(j.keyCode){case c.default.keys.ENTER:w.togglePicker();break;case c.default.keys.ESCAPE:w.escape(),j.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return o(g,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),x(this.label,"aria-expanded"),x(this.options,"aria-hidden")}},{key:"buildItem",value:function(w){var j=this,_=document.createElement("span");return _.tabIndex="0",_.setAttribute("role","button"),_.classList.add("ql-picker-item"),w.hasAttribute("value")&&_.setAttribute("data-value",w.getAttribute("value")),w.textContent&&_.setAttribute("data-label",w.textContent),_.addEventListener("click",function(){j.selectItem(_,!0)}),_.addEventListener("keydown",function(N){switch(N.keyCode){case c.default.keys.ENTER:j.selectItem(_,!0),N.preventDefault();break;case c.default.keys.ESCAPE:j.escape(),N.preventDefault();break}}),_}},{key:"buildLabel",value:function(){var w=document.createElement("span");return w.classList.add("ql-picker-label"),w.innerHTML=d.default,w.tabIndex="0",w.setAttribute("role","button"),w.setAttribute("aria-expanded","false"),this.container.appendChild(w),w}},{key:"buildOptions",value:function(){var w=this,j=document.createElement("span");j.classList.add("ql-picker-options"),j.setAttribute("aria-hidden","true"),j.tabIndex="-1",j.id="ql-picker-options-"+h,h+=1,this.label.setAttribute("aria-controls",j.id),this.options=j,[].slice.call(this.select.options).forEach(function(_){var N=w.buildItem(_);j.appendChild(N),_.selected===!0&&w.selectItem(N)}),this.container.appendChild(j)}},{key:"buildPicker",value:function(){var w=this;[].slice.call(this.select.attributes).forEach(function(j){w.container.setAttribute(j.name,j.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var w=this;this.close(),setTimeout(function(){return w.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(w){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_=this.container.querySelector(".ql-selected");if(w!==_&&(_!=null&&_.classList.remove("ql-selected"),w!=null&&(w.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(w.parentNode.children,w),w.hasAttribute("data-value")?this.label.setAttribute("data-value",w.getAttribute("data-value")):this.label.removeAttribute("data-value"),w.hasAttribute("data-label")?this.label.setAttribute("data-label",w.getAttribute("data-label")):this.label.removeAttribute("data-label"),j))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":s(Event))==="object"){var N=document.createEvent("Event");N.initEvent("change",!0,!0),this.select.dispatchEvent(N)}this.close()}}},{key:"update",value:function(){var w=void 0;if(this.select.selectedIndex>-1){var j=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];w=this.select.options[this.select.selectedIndex],this.selectItem(j)}else this.selectItem(null);var _=w!=null&&w!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",_)}}]),g})();r.default=v}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i(0),o=V(s),l=i(5),c=V(l),u=i(4),d=V(u),f=i(16),p=V(f),h=i(25),x=V(h),v=i(24),g=V(v),y=i(35),w=V(y),j=i(6),_=V(j),N=i(22),A=V(N),E=i(7),k=V(E),T=i(55),D=V(T),P=i(42),R=V(P),q=i(23),M=V(q);function V(H){return H&&H.__esModule?H:{default:H}}c.default.register({"blots/block":d.default,"blots/block/embed":u.BlockEmbed,"blots/break":p.default,"blots/container":x.default,"blots/cursor":g.default,"blots/embed":w.default,"blots/inline":_.default,"blots/scroll":A.default,"blots/text":k.default,"modules/clipboard":D.default,"modules/history":R.default,"modules/keyboard":M.default}),o.default.register(d.default,p.default,g.default,_.default,A.default,k.default),r.default=c.default}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i(1),o=(function(){function l(c){this.domNode=c,this.domNode[s.DATA_KEY]={blot:this}}return Object.defineProperty(l.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),l.create=function(c){if(this.tagName==null)throw new s.ParchmentError("Blot definition missing tagName");var u;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?u=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?u=document.createElement(c):u=document.createElement(this.tagName[0])):u=document.createElement(this.tagName),this.className&&u.classList.add(this.className),u},l.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},l.prototype.clone=function(){var c=this.domNode.cloneNode(!1);return s.create(c)},l.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[s.DATA_KEY]},l.prototype.deleteAt=function(c,u){var d=this.isolate(c,u);d.remove()},l.prototype.formatAt=function(c,u,d,f){var p=this.isolate(c,u);if(s.query(d,s.Scope.BLOT)!=null&&f)p.wrap(d,f);else if(s.query(d,s.Scope.ATTRIBUTE)!=null){var h=s.create(this.statics.scope);p.wrap(h),h.format(d,f)}},l.prototype.insertAt=function(c,u,d){var f=d==null?s.create("text",u):s.create(u,d),p=this.split(c);this.parent.insertBefore(f,p)},l.prototype.insertInto=function(c,u){u===void 0&&(u=null),this.parent!=null&&this.parent.children.remove(this);var d=null;c.children.insertBefore(this,u),u!=null&&(d=u.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=d)&&c.domNode.insertBefore(this.domNode,d),this.parent=c,this.attach()},l.prototype.isolate=function(c,u){var d=this.split(c);return d.split(u),d},l.prototype.length=function(){return 1},l.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},l.prototype.optimize=function(c){this.domNode[s.DATA_KEY]!=null&&delete this.domNode[s.DATA_KEY].mutations},l.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},l.prototype.replace=function(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},l.prototype.replaceWith=function(c,u){var d=typeof c=="string"?s.create(c,u):c;return d.replace(this),d},l.prototype.split=function(c,u){return c===0?this:this.next},l.prototype.update=function(c,u){},l.prototype.wrap=function(c,u){var d=typeof c=="string"?s.create(c,u):c;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},l.blotName="abstract",l})();r.default=o}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i(12),o=i(32),l=i(33),c=i(1),u=(function(){function d(f){this.attributes={},this.domNode=f,this.build()}return d.prototype.attribute=function(f,p){p?f.add(this.domNode,p)&&(f.value(this.domNode)!=null?this.attributes[f.attrName]=f:delete this.attributes[f.attrName]):(f.remove(this.domNode),delete this.attributes[f.attrName])},d.prototype.build=function(){var f=this;this.attributes={};var p=s.default.keys(this.domNode),h=o.default.keys(this.domNode),x=l.default.keys(this.domNode);p.concat(h).concat(x).forEach(function(v){var g=c.query(v,c.Scope.ATTRIBUTE);g instanceof s.default&&(f.attributes[g.attrName]=g)})},d.prototype.copy=function(f){var p=this;Object.keys(this.attributes).forEach(function(h){var x=p.attributes[h].value(p.domNode);f.format(h,x)})},d.prototype.move=function(f){var p=this;this.copy(f),Object.keys(this.attributes).forEach(function(h){p.attributes[h].remove(p.domNode)}),this.attributes={}},d.prototype.values=function(){var f=this;return Object.keys(this.attributes).reduce(function(p,h){return p[h]=f.attributes[h].value(f.domNode),p},{})},d})();r.default=u}),(function(n,r,i){var s=this&&this.__extends||(function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)f.hasOwnProperty(p)&&(d[p]=f[p])};return function(d,f){u(d,f);function p(){this.constructor=d}d.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}})();Object.defineProperty(r,"__esModule",{value:!0});var o=i(12);function l(u,d){var f=u.getAttribute("class")||"";return f.split(/\s+/).filter(function(p){return p.indexOf(d+"-")===0})}var c=(function(u){s(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(p){return p.split("-").slice(0,-1).join("-")})},d.prototype.add=function(f,p){return this.canAdd(f,p)?(this.remove(f),f.classList.add(this.keyName+"-"+p),!0):!1},d.prototype.remove=function(f){var p=l(f,this.keyName);p.forEach(function(h){f.classList.remove(h)}),f.classList.length===0&&f.removeAttribute("class")},d.prototype.value=function(f){var p=l(f,this.keyName)[0]||"",h=p.slice(this.keyName.length+1);return this.canAdd(f,h)?h:""},d})(o.default);r.default=c}),(function(n,r,i){var s=this&&this.__extends||(function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)f.hasOwnProperty(p)&&(d[p]=f[p])};return function(d,f){u(d,f);function p(){this.constructor=d}d.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}})();Object.defineProperty(r,"__esModule",{value:!0});var o=i(12);function l(u){var d=u.split("-"),f=d.slice(1).map(function(p){return p[0].toUpperCase()+p.slice(1)}).join("");return d[0]+f}var c=(function(u){s(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(p){var h=p.split(":");return h[0].trim()})},d.prototype.add=function(f,p){return this.canAdd(f,p)?(f.style[l(this.keyName)]=p,!0):!1},d.prototype.remove=function(f){f.style[l(this.keyName)]="",f.getAttribute("style")||f.removeAttribute("style")},d.prototype.value=function(f){var p=f.style[l(this.keyName)];return this.canAdd(f,p)?p:""},d})(o.default);r.default=c}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function c(u,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(u,p.key,p)}}return function(u,d,f){return d&&c(u.prototype,d),f&&c(u,f),u}})();function o(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}var l=(function(){function c(u,d){o(this,c),this.quill=u,this.options=d,this.modules={}}return s(c,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(f){d.modules[f]==null&&d.addModule(f)})}},{key:"addModule",value:function(d){var f=this.quill.constructor.import("modules/"+d);return this.modules[d]=new f(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),c})();l.DEFAULTS={modules:{}},l.themes={default:l},r.default=l}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function y(w,j){for(var _=0;_<j.length;_++){var N=j[_];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(w,N.key,N)}}return function(w,j,_){return j&&y(w.prototype,j),_&&y(w,_),w}})(),o=function y(w,j,_){w===null&&(w=Function.prototype);var N=Object.getOwnPropertyDescriptor(w,j);if(N===void 0){var A=Object.getPrototypeOf(w);return A===null?void 0:y(A,j,_)}else{if("value"in N)return N.value;var E=N.get;return E===void 0?void 0:E.call(_)}},l=i(0),c=f(l),u=i(7),d=f(u);function f(y){return y&&y.__esModule?y:{default:y}}function p(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function h(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function x(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var v="\uFEFF",g=(function(y){x(w,y);function w(j){p(this,w);var _=h(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,j));return _.contentNode=document.createElement("span"),_.contentNode.setAttribute("contenteditable",!1),[].slice.call(_.domNode.childNodes).forEach(function(N){_.contentNode.appendChild(N)}),_.leftGuard=document.createTextNode(v),_.rightGuard=document.createTextNode(v),_.domNode.appendChild(_.leftGuard),_.domNode.appendChild(_.contentNode),_.domNode.appendChild(_.rightGuard),_}return s(w,[{key:"index",value:function(_,N){return _===this.leftGuard?0:_===this.rightGuard?1:o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"index",this).call(this,_,N)}},{key:"restore",value:function(_){var N=void 0,A=void 0,E=_.data.split(v).join("");if(_===this.leftGuard)if(this.prev instanceof d.default){var k=this.prev.length();this.prev.insertAt(k,E),N={startNode:this.prev.domNode,startOffset:k+E.length}}else A=document.createTextNode(E),this.parent.insertBefore(c.default.create(A),this),N={startNode:A,startOffset:E.length};else _===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,E),N={startNode:this.next.domNode,startOffset:E.length}):(A=document.createTextNode(E),this.parent.insertBefore(c.default.create(A),this.next),N={startNode:A,startOffset:E.length}));return _.data=v,N}},{key:"update",value:function(_,N){var A=this;_.forEach(function(E){if(E.type==="characterData"&&(E.target===A.leftGuard||E.target===A.rightGuard)){var k=A.restore(E.target);k&&(N.range=k)}})}}]),w})(c.default.Embed);r.default=g}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AlignStyle=r.AlignClass=r.AlignAttribute=void 0;var s=i(0),o=l(s);function l(p){return p&&p.__esModule?p:{default:p}}var c={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},u=new o.default.Attributor.Attribute("align","align",c),d=new o.default.Attributor.Class("align","ql-align",c),f=new o.default.Attributor.Style("align","text-align",c);r.AlignAttribute=u,r.AlignClass=d,r.AlignStyle=f}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.BackgroundStyle=r.BackgroundClass=void 0;var s=i(0),o=c(s),l=i(26);function c(f){return f&&f.__esModule?f:{default:f}}var u=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),d=new l.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});r.BackgroundClass=u,r.BackgroundStyle=d}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.DirectionStyle=r.DirectionClass=r.DirectionAttribute=void 0;var s=i(0),o=l(s);function l(p){return p&&p.__esModule?p:{default:p}}var c={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},u=new o.default.Attributor.Attribute("direction","dir",c),d=new o.default.Attributor.Class("direction","ql-direction",c),f=new o.default.Attributor.Style("direction","direction",c);r.DirectionAttribute=u,r.DirectionClass=d,r.DirectionStyle=f}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.FontClass=r.FontStyle=void 0;var s=(function(){function y(w,j){for(var _=0;_<j.length;_++){var N=j[_];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(w,N.key,N)}}return function(w,j,_){return j&&y(w.prototype,j),_&&y(w,_),w}})(),o=function y(w,j,_){w===null&&(w=Function.prototype);var N=Object.getOwnPropertyDescriptor(w,j);if(N===void 0){var A=Object.getPrototypeOf(w);return A===null?void 0:y(A,j,_)}else{if("value"in N)return N.value;var E=N.get;return E===void 0?void 0:E.call(_)}},l=i(0),c=u(l);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function f(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function p(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var h={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},x=new c.default.Attributor.Class("font","ql-font",h),v=(function(y){p(w,y);function w(){return d(this,w),f(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return s(w,[{key:"value",value:function(_){return o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"value",this).call(this,_).replace(/["']/g,"")}}]),w})(c.default.Attributor.Style),g=new v("font","font-family",h);r.FontStyle=g,r.FontClass=x}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SizeStyle=r.SizeClass=void 0;var s=i(0),o=l(s);function l(d){return d&&d.__esModule?d:{default:d}}var c=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),u=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});r.SizeClass=c,r.SizeStyle=u}),(function(n,r,i){n.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.getLastChangeIndex=r.default=void 0;var s=(function(){function j(_,N){for(var A=0;A<N.length;A++){var E=N[A];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(_,E.key,E)}}return function(_,N,A){return N&&j(_.prototype,N),A&&j(_,A),_}})(),o=i(0),l=p(o),c=i(5),u=p(c),d=i(9),f=p(d);function p(j){return j&&j.__esModule?j:{default:j}}function h(j,_){if(!(j instanceof _))throw new TypeError("Cannot call a class as a function")}function x(j,_){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:j}function v(j,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);j.prototype=Object.create(_&&_.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(j,_):j.__proto__=_)}var g=(function(j){v(_,j);function _(N,A){h(this,_);var E=x(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,N,A));return E.lastRecorded=0,E.ignoreChange=!1,E.clear(),E.quill.on(u.default.events.EDITOR_CHANGE,function(k,T,D,P){k!==u.default.events.TEXT_CHANGE||E.ignoreChange||(!E.options.userOnly||P===u.default.sources.USER?E.record(T,D):E.transform(T))}),E.quill.keyboard.addBinding({key:"Z",shortKey:!0},E.undo.bind(E)),E.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},E.redo.bind(E)),/Win/i.test(navigator.platform)&&E.quill.keyboard.addBinding({key:"Y",shortKey:!0},E.redo.bind(E)),E}return s(_,[{key:"change",value:function(A,E){if(this.stack[A].length!==0){var k=this.stack[A].pop();this.stack[E].push(k),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(k[A],u.default.sources.USER),this.ignoreChange=!1;var T=w(k[A]);this.quill.setSelection(T)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(A,E){if(A.ops.length!==0){this.stack.redo=[];var k=this.quill.getContents().diff(E),T=Date.now();if(this.lastRecorded+this.options.delay>T&&this.stack.undo.length>0){var D=this.stack.undo.pop();k=k.compose(D.undo),A=D.redo.compose(A)}else this.lastRecorded=T;this.stack.undo.push({redo:A,undo:k}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(A){this.stack.undo.forEach(function(E){E.undo=A.transform(E.undo,!0),E.redo=A.transform(E.redo,!0)}),this.stack.redo.forEach(function(E){E.undo=A.transform(E.undo,!0),E.redo=A.transform(E.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),_})(f.default);g.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function y(j){var _=j.ops[j.ops.length-1];return _==null?!1:_.insert!=null?typeof _.insert=="string"&&_.insert.endsWith(` 1286`):_.attributes!=null?Object.keys(_.attributes).some(function(N){return l.default.query(N,l.default.Scope.BLOCK)!=null}):!1}function w(j){var _=j.reduce(function(A,E){return A+=E.delete||0,A},0),N=j.length()-_;return y(j)&&(N-=1),N}r.default=g,r.getLastChangeIndex=w}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BaseTooltip=void 0;var s=(function(){function B(z,ee){for(var te=0;te<ee.length;te++){var X=ee[te];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(z,X.key,X)}}return function(z,ee,te){return ee&&B(z.prototype,ee),te&&B(z,te),z}})(),o=function B(z,ee,te){z===null&&(z=Function.prototype);var X=Object.getOwnPropertyDescriptor(z,ee);if(X===void 0){var ne=Object.getPrototypeOf(z);return ne===null?void 0:B(ne,ee,te)}else{if("value"in X)return X.value;var le=X.get;return le===void 0?void 0:le.call(te)}},l=i(3),c=T(l),u=i(2),d=T(u),f=i(8),p=T(f),h=i(23),x=T(h),v=i(34),g=T(v),y=i(59),w=T(y),j=i(60),_=T(j),N=i(28),A=T(N),E=i(61),k=T(E);function T(B){return B&&B.__esModule?B:{default:B}}function D(B,z){if(!(B instanceof z))throw new TypeError("Cannot call a class as a function")}function P(B,z){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z&&(typeof z=="object"||typeof z=="function")?z:B}function R(B,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof z);B.prototype=Object.create(z&&z.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(B,z):B.__proto__=z)}var q=[!1,"center","right","justify"],M=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],V=[!1,"serif","monospace"],H=["1","2","3",!1],Z=["small",!1,"large","huge"],J=(function(B){R(z,B);function z(ee,te){D(this,z);var X=P(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,ee,te)),ne=function le(re){if(!document.body.contains(ee.root))return document.body.removeEventListener("click",le);X.tooltip!=null&&!X.tooltip.root.contains(re.target)&&document.activeElement!==X.tooltip.textbox&&!X.quill.hasFocus()&&X.tooltip.hide(),X.pickers!=null&&X.pickers.forEach(function(he){he.container.contains(re.target)||he.close()})};return ee.emitter.listenDOM("click",document.body,ne),X}return s(z,[{key:"addModule",value:function(te){var X=o(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"addModule",this).call(this,te);return te==="toolbar"&&this.extendToolbar(X),X}},{key:"buildButtons",value:function(te,X){te.forEach(function(ne){var le=ne.getAttribute("class")||"";le.split(/\s+/).forEach(function(re){if(re.startsWith("ql-")&&(re=re.slice(3),X[re]!=null))if(re==="direction")ne.innerHTML=X[re][""]+X[re].rtl;else if(typeof X[re]=="string")ne.innerHTML=X[re];else{var he=ne.value||"";he!=null&&X[re][he]&&(ne.innerHTML=X[re][he])}})})}},{key:"buildPickers",value:function(te,X){var ne=this;this.pickers=te.map(function(re){if(re.classList.contains("ql-align"))return re.querySelector("option")==null&&$(re,q),new _.default(re,X.align);if(re.classList.contains("ql-background")||re.classList.contains("ql-color")){var he=re.classList.contains("ql-background")?"background":"color";return re.querySelector("option")==null&&$(re,M,he==="background"?"#ffffff":"#000000"),new w.default(re,X[he])}else return re.querySelector("option")==null&&(re.classList.contains("ql-font")?$(re,V):re.classList.contains("ql-header")?$(re,H):re.classList.contains("ql-size")&&$(re,Z)),new A.default(re)});var le=function(){ne.pickers.forEach(function(he){he.update()})};this.quill.on(p.default.events.EDITOR_CHANGE,le)}}]),z})(g.default);J.DEFAULTS=(0,c.default)(!0,{},g.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var z=this,ee=this.container.querySelector("input.ql-image[type=file]");ee==null&&(ee=document.createElement("input"),ee.setAttribute("type","file"),ee.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),ee.classList.add("ql-image"),ee.addEventListener("change",function(){if(ee.files!=null&&ee.files[0]!=null){var te=new FileReader;te.onload=function(X){var ne=z.quill.getSelection(!0);z.quill.updateContents(new d.default().retain(ne.index).delete(ne.length).insert({image:X.target.result}),p.default.sources.USER),z.quill.setSelection(ne.index+1,p.default.sources.SILENT),ee.value=""},te.readAsDataURL(ee.files[0])}}),this.container.appendChild(ee)),ee.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var K=(function(B){R(z,B);function z(ee,te){D(this,z);var X=P(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,ee,te));return X.textbox=X.root.querySelector('input[type="text"]'),X.listen(),X}return s(z,[{key:"listen",value:function(){var te=this;this.textbox.addEventListener("keydown",function(X){x.default.match(X,"enter")?(te.save(),X.preventDefault()):x.default.match(X,"escape")&&(te.cancel(),X.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),X!=null?this.textbox.value=X:te!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+te)||""),this.root.setAttribute("data-mode",te)}},{key:"restoreFocus",value:function(){var te=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=te}},{key:"save",value:function(){var te=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var X=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",te,p.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",te,p.default.sources.USER)),this.quill.root.scrollTop=X;break}case"video":te=F(te);case"formula":{if(!te)break;var ne=this.quill.getSelection(!0);if(ne!=null){var le=ne.index+ne.length;this.quill.insertEmbed(le,this.root.getAttribute("data-mode"),te,p.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(le+1," ",p.default.sources.USER),this.quill.setSelection(le+2,p.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),z})(k.default);function F(B){var z=B.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||B.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return z?(z[1]||"https")+"://www.youtube.com/embed/"+z[2]+"?showinfo=0":(z=B.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(z[1]||"https")+"://player.vimeo.com/video/"+z[2]+"/":B}function $(B,z){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;z.forEach(function(te){var X=document.createElement("option");te===ee?X.setAttribute("selected","selected"):X.setAttribute("value",te),B.appendChild(X)})}r.BaseTooltip=K,r.default=J}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function o(){this.head=this.tail=null,this.length=0}return o.prototype.append=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];this.insertBefore(l[0],null),l.length>1&&this.append.apply(this,l.slice(1))},o.prototype.contains=function(l){for(var c,u=this.iterator();c=u();)if(c===l)return!0;return!1},o.prototype.insertBefore=function(l,c){l&&(l.next=c,c!=null?(l.prev=c.prev,c.prev!=null&&(c.prev.next=l),c.prev=l,c===this.head&&(this.head=l)):this.tail!=null?(this.tail.next=l,l.prev=this.tail,this.tail=l):(l.prev=null,this.head=this.tail=l),this.length+=1)},o.prototype.offset=function(l){for(var c=0,u=this.head;u!=null;){if(u===l)return c;c+=u.length(),u=u.next}return-1},o.prototype.remove=function(l){this.contains(l)&&(l.prev!=null&&(l.prev.next=l.next),l.next!=null&&(l.next.prev=l.prev),l===this.head&&(this.head=l.next),l===this.tail&&(this.tail=l.prev),this.length-=1)},o.prototype.iterator=function(l){return l===void 0&&(l=this.head),function(){var c=l;return l!=null&&(l=l.next),c}},o.prototype.find=function(l,c){c===void 0&&(c=!1);for(var u,d=this.iterator();u=d();){var f=u.length();if(l<f||c&&l===f&&(u.next==null||u.next.length()!==0))return[u,l];l-=f}return[null,0]},o.prototype.forEach=function(l){for(var c,u=this.iterator();c=u();)l(c)},o.prototype.forEachAt=function(l,c,u){if(!(c<=0))for(var d=this.find(l),f=d[0],p=d[1],h,x=l-p,v=this.iterator(f);(h=v())&&x<l+c;){var g=h.length();l>x?u(h,l-x,Math.min(c,x+g-l)):u(h,0,Math.min(g,l+c-x)),x+=g}},o.prototype.map=function(l){return this.reduce(function(c,u){return c.push(l(u)),c},[])},o.prototype.reduce=function(l,c){for(var u,d=this.iterator();u=d();)c=l(c,u);return c},o})();r.default=s}),(function(n,r,i){var s=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var x in h)h.hasOwnProperty(x)&&(p[x]=h[x])};return function(p,h){f(p,h);function x(){this.constructor=p}p.prototype=h===null?Object.create(h):(x.prototype=h.prototype,new x)}})();Object.defineProperty(r,"__esModule",{value:!0});var o=i(17),l=i(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=100,d=(function(f){s(p,f);function p(h){var x=f.call(this,h)||this;return x.scroll=x,x.observer=new MutationObserver(function(v){x.update(v)}),x.observer.observe(x.domNode,c),x.attach(),x}return p.prototype.detach=function(){f.prototype.detach.call(this),this.observer.disconnect()},p.prototype.deleteAt=function(h,x){this.update(),h===0&&x===this.length()?this.children.forEach(function(v){v.remove()}):f.prototype.deleteAt.call(this,h,x)},p.prototype.formatAt=function(h,x,v,g){this.update(),f.prototype.formatAt.call(this,h,x,v,g)},p.prototype.insertAt=function(h,x,v){this.update(),f.prototype.insertAt.call(this,h,x,v)},p.prototype.optimize=function(h,x){var v=this;h===void 0&&(h=[]),x===void 0&&(x={}),f.prototype.optimize.call(this,x);for(var g=[].slice.call(this.observer.takeRecords());g.length>0;)h.push(g.pop());for(var y=function(N,A){A===void 0&&(A=!0),!(N==null||N===v)&&N.domNode.parentNode!=null&&(N.domNode[l.DATA_KEY].mutations==null&&(N.domNode[l.DATA_KEY].mutations=[]),A&&y(N.parent))},w=function(N){N.domNode[l.DATA_KEY]==null||N.domNode[l.DATA_KEY].mutations==null||(N instanceof o.default&&N.children.forEach(w),N.optimize(x))},j=h,_=0;j.length>0;_+=1){if(_>=u)throw new Error("[Parchment] Maximum optimize iterations reached");for(j.forEach(function(N){var A=l.find(N.target,!0);A!=null&&(A.domNode===N.target&&(N.type==="childList"?(y(l.find(N.previousSibling,!1)),[].forEach.call(N.addedNodes,function(E){var k=l.find(E,!1);y(k,!1),k instanceof o.default&&k.children.forEach(function(T){y(T,!1)})})):N.type==="attributes"&&y(A.prev)),y(A))}),this.children.forEach(w),j=[].slice.call(this.observer.takeRecords()),g=j.slice();g.length>0;)h.push(g.pop())}},p.prototype.update=function(h,x){var v=this;x===void 0&&(x={}),h=h||this.observer.takeRecords(),h.map(function(g){var y=l.find(g.target,!0);return y==null?null:y.domNode[l.DATA_KEY].mutations==null?(y.domNode[l.DATA_KEY].mutations=[g],y):(y.domNode[l.DATA_KEY].mutations.push(g),null)}).forEach(function(g){g==null||g===v||g.domNode[l.DATA_KEY]==null||g.update(g.domNode[l.DATA_KEY].mutations||[],x)}),this.domNode[l.DATA_KEY].mutations!=null&&f.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,x),this.optimize(h,x)},p.blotName="scroll",p.defaultChild="block",p.scope=l.Scope.BLOCK_BLOT,p.tagName="DIV",p})(o.default);r.default=d}),(function(n,r,i){var s=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var h in p)p.hasOwnProperty(h)&&(f[h]=p[h])};return function(f,p){d(f,p);function h(){this.constructor=f}f.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}})();Object.defineProperty(r,"__esModule",{value:!0});var o=i(18),l=i(1);function c(d,f){if(Object.keys(d).length!==Object.keys(f).length)return!1;for(var p in d)if(d[p]!==f[p])return!1;return!0}var u=(function(d){s(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.formats=function(p){if(p.tagName!==f.tagName)return d.formats.call(this,p)},f.prototype.format=function(p,h){var x=this;p===this.statics.blotName&&!h?(this.children.forEach(function(v){v instanceof o.default||(v=v.wrap(f.blotName,!0)),x.attributes.copy(v)}),this.unwrap()):d.prototype.format.call(this,p,h)},f.prototype.formatAt=function(p,h,x,v){if(this.formats()[x]!=null||l.query(x,l.Scope.ATTRIBUTE)){var g=this.isolate(p,h);g.format(x,v)}else d.prototype.formatAt.call(this,p,h,x,v)},f.prototype.optimize=function(p){d.prototype.optimize.call(this,p);var h=this.formats();if(Object.keys(h).length===0)return this.unwrap();var x=this.next;x instanceof f&&x.prev===this&&c(h,x.formats())&&(x.moveChildren(this),x.remove())},f.blotName="inline",f.scope=l.Scope.INLINE_BLOT,f.tagName="SPAN",f})(o.default);r.default=u}),(function(n,r,i){var s=this&&this.__extends||(function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)f.hasOwnProperty(p)&&(d[p]=f[p])};return function(d,f){u(d,f);function p(){this.constructor=d}d.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}})();Object.defineProperty(r,"__esModule",{value:!0});var o=i(18),l=i(1),c=(function(u){s(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.formats=function(f){var p=l.query(d.blotName).tagName;if(f.tagName!==p)return u.formats.call(this,f)},d.prototype.format=function(f,p){l.query(f,l.Scope.BLOCK)!=null&&(f===this.statics.blotName&&!p?this.replaceWith(d.blotName):u.prototype.format.call(this,f,p))},d.prototype.formatAt=function(f,p,h,x){l.query(h,l.Scope.BLOCK)!=null?this.format(h,x):u.prototype.formatAt.call(this,f,p,h,x)},d.prototype.insertAt=function(f,p,h){if(h==null||l.query(p,l.Scope.INLINE)!=null)u.prototype.insertAt.call(this,f,p,h);else{var x=this.split(f),v=l.create(p,h);x.parent.insertBefore(v,x)}},d.prototype.update=function(f,p){navigator.userAgent.match(/Trident/)?this.build():u.prototype.update.call(this,f,p)},d.blotName="block",d.scope=l.Scope.BLOCK_BLOT,d.tagName="P",d})(o.default);r.default=c}),(function(n,r,i){var s=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var f in d)d.hasOwnProperty(f)&&(u[f]=d[f])};return function(u,d){c(u,d);function f(){this.constructor=u}u.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}})();Object.defineProperty(r,"__esModule",{value:!0});var o=i(19),l=(function(c){s(u,c);function u(){return c!==null&&c.apply(this,arguments)||this}return u.formats=function(d){},u.prototype.format=function(d,f){c.prototype.formatAt.call(this,0,this.length(),d,f)},u.prototype.formatAt=function(d,f,p,h){d===0&&f===this.length()?this.format(p,h):c.prototype.formatAt.call(this,d,f,p,h)},u.prototype.formats=function(){return this.statics.formats(this.domNode)},u})(o.default);r.default=l}),(function(n,r,i){var s=this&&this.__extends||(function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)f.hasOwnProperty(p)&&(d[p]=f[p])};return function(d,f){u(d,f);function p(){this.constructor=d}d.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}})();Object.defineProperty(r,"__esModule",{value:!0});var o=i(19),l=i(1),c=(function(u){s(d,u);function d(f){var p=u.call(this,f)||this;return p.text=p.statics.value(p.domNode),p}return d.create=function(f){return document.createTextNode(f)},d.value=function(f){var p=f.data;return p.normalize&&(p=p.normalize()),p},d.prototype.deleteAt=function(f,p){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+p)},d.prototype.index=function(f,p){return this.domNode===f?p:-1},d.prototype.insertAt=function(f,p,h){h==null?(this.text=this.text.slice(0,f)+p+this.text.slice(f),this.domNode.data=this.text):u.prototype.insertAt.call(this,f,p,h)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(f){u.prototype.optimize.call(this,f),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(f,p){return[this.domNode,f]},d.prototype.split=function(f,p){if(p===void 0&&(p=!1),!p){if(f===0)return this;if(f===this.length())return this.next}var h=l.create(this.domNode.splitText(f));return this.parent.insertBefore(h,this.next),this.text=this.statics.value(this.domNode),h},d.prototype.update=function(f,p){var h=this;f.some(function(x){return x.type==="characterData"&&x.target===h.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=l.Scope.INLINE_BLOT,d})(o.default);r.default=c}),(function(n,r,i){var s=document.createElement("div");if(s.classList.toggle("test-class",!1),s.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(l,c){return arguments.length>1&&!this.contains(l)==!c?c:o.call(this,l)}}String.prototype.startsWith||(String.prototype.startsWith=function(l,c){return c=c||0,this.substr(c,l.length)===l}),String.prototype.endsWith||(String.prototype.endsWith=function(l,c){var u=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>u.length)&&(c=u.length),c-=l.length;var d=u.indexOf(l,c);return d!==-1&&d===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var u=Object(this),d=u.length>>>0,f=arguments[1],p,h=0;h<d;h++)if(p=u[h],c.call(f,p,h,u))return p}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(n,r){var i=-1,s=1,o=0;function l(_,N,A){if(_==N)return _?[[o,_]]:[];(A<0||_.length<A)&&(A=null);var E=f(_,N),k=_.substring(0,E);_=_.substring(E),N=N.substring(E),E=p(_,N);var T=_.substring(_.length-E);_=_.substring(0,_.length-E),N=N.substring(0,N.length-E);var D=c(_,N);return k&&D.unshift([o,k]),T&&D.push([o,T]),x(D),A!=null&&(D=y(D,A)),D=w(D),D}function c(_,N){var A;if(!_)return[[s,N]];if(!N)return[[i,_]];var E=_.length>N.length?_:N,k=_.length>N.length?N:_,T=E.indexOf(k);if(T!=-1)return A=[[s,E.substring(0,T)],[o,k],[s,E.substring(T+k.length)]],_.length>N.length&&(A[0][0]=A[2][0]=i),A;if(k.length==1)return[[i,_],[s,N]];var D=h(_,N);if(D){var P=D[0],R=D[1],q=D[2],M=D[3],V=D[4],H=l(P,q),Z=l(R,M);return H.concat([[o,V]],Z)}return u(_,N)}function u(_,N){for(var A=_.length,E=N.length,k=Math.ceil((A+E)/2),T=k,D=2*k,P=new Array(D),R=new Array(D),q=0;q<D;q++)P[q]=-1,R[q]=-1;P[T+1]=0,R[T+1]=0;for(var M=A-E,V=M%2!=0,H=0,Z=0,J=0,K=0,F=0;F<k;F++){for(var $=-F+H;$<=F-Z;$+=2){var B=T+$,z;$==-F||$!=F&&P[B-1]<P[B+1]?z=P[B+1]:z=P[B-1]+1;for(var ee=z-$;z<A&&ee<E&&_.charAt(z)==N.charAt(ee);)z++,ee++;if(P[B]=z,z>A)Z+=2;else if(ee>E)H+=2;else if(V){var te=T+M-$;if(te>=0&&te<D&&R[te]!=-1){var X=A-R[te];if(z>=X)return d(_,N,z,ee)}}}for(var ne=-F+J;ne<=F-K;ne+=2){var te=T+ne,X;ne==-F||ne!=F&&R[te-1]<R[te+1]?X=R[te+1]:X=R[te-1]+1;for(var le=X-ne;X<A&&le<E&&_.charAt(A-X-1)==N.charAt(E-le-1);)X++,le++;if(R[te]=X,X>A)K+=2;else if(le>E)J+=2;else if(!V){var B=T+M-ne;if(B>=0&&B<D&&P[B]!=-1){var z=P[B],ee=T+z-B;if(X=A-X,z>=X)return d(_,N,z,ee)}}}}return[[i,_],[s,N]]}function d(_,N,A,E){var k=_.substring(0,A),T=N.substring(0,E),D=_.substring(A),P=N.substring(E),R=l(k,T),q=l(D,P);return R.concat(q)}function f(_,N){if(!_||!N||_.charAt(0)!=N.charAt(0))return 0;for(var A=0,E=Math.min(_.length,N.length),k=E,T=0;A<k;)_.substring(T,k)==N.substring(T,k)?(A=k,T=A):E=k,k=Math.floor((E-A)/2+A);return k}function p(_,N){if(!_||!N||_.charAt(_.length-1)!=N.charAt(N.length-1))return 0;for(var A=0,E=Math.min(_.length,N.length),k=E,T=0;A<k;)_.substring(_.length-k,_.length-T)==N.substring(N.length-k,N.length-T)?(A=k,T=A):E=k,k=Math.floor((E-A)/2+A);return k}function h(_,N){var A=_.length>N.length?_:N,E=_.length>N.length?N:_;if(A.length<4||E.length*2<A.length)return null;function k(Z,J,K){for(var F=Z.substring(K,K+Math.floor(Z.length/4)),$=-1,B="",z,ee,te,X;($=J.indexOf(F,$+1))!=-1;){var ne=f(Z.substring(K),J.substring($)),le=p(Z.substring(0,K),J.substring(0,$));B.length<le+ne&&(B=J.substring($-le,$)+J.substring($,$+ne),z=Z.substring(0,K-le),ee=Z.substring(K+ne),te=J.substring(0,$-le),X=J.substring($+ne))}return B.length*2>=Z.length?[z,ee,te,X,B]:null}var T=k(A,E,Math.ceil(A.length/4)),D=k(A,E,Math.ceil(A.length/2)),P;if(!T&&!D)return null;D?T?P=T[4].length>D[4].length?T:D:P=D:P=T;var R,q,M,V;_.length>N.length?(R=P[0],q=P[1],M=P[2],V=P[3]):(M=P[0],V=P[1],R=P[2],q=P[3]);var H=P[4];return[R,q,M,V,H]}function x(_){_.push([o,""]);for(var N=0,A=0,E=0,k="",T="",D;N<_.length;)switch(_[N][0]){case s:E++,T+=_[N][1],N++;break;case i:A++,k+=_[N][1],N++;break;case o:A+E>1?(A!==0&&E!==0&&(D=f(T,k),D!==0&&(N-A-E>0&&_[N-A-E-1][0]==o?_[N-A-E-1][1]+=T.substring(0,D):(_.splice(0,0,[o,T.substring(0,D)]),N++),T=T.substring(D),k=k.substring(D)),D=p(T,k),D!==0&&(_[N][1]=T.substring(T.length-D)+_[N][1],T=T.substring(0,T.length-D),k=k.substring(0,k.length-D))),A===0?_.splice(N-E,A+E,[s,T]):E===0?_.splice(N-A,A+E,[i,k]):_.splice(N-A-E,A+E,[i,k],[s,T]),N=N-A-E+(A?1:0)+(E?1:0)+1):N!==0&&_[N-1][0]==o?(_[N-1][1]+=_[N][1],_.splice(N,1)):N++,E=0,A=0,k="",T="";break}_[_.length-1][1]===""&&_.pop();var P=!1;for(N=1;N<_.length-1;)_[N-1][0]==o&&_[N+1][0]==o&&(_[N][1].substring(_[N][1].length-_[N-1][1].length)==_[N-1][1]?(_[N][1]=_[N-1][1]+_[N][1].substring(0,_[N][1].length-_[N-1][1].length),_[N+1][1]=_[N-1][1]+_[N+1][1],_.splice(N-1,1),P=!0):_[N][1].substring(0,_[N+1][1].length)==_[N+1][1]&&(_[N-1][1]+=_[N+1][1],_[N][1]=_[N][1].substring(_[N+1][1].length)+_[N+1][1],_.splice(N+1,1),P=!0)),N++;P&&x(_)}var v=l;v.INSERT=s,v.DELETE=i,v.EQUAL=o,n.exports=v;function g(_,N){if(N===0)return[o,_];for(var A=0,E=0;E<_.length;E++){var k=_[E];if(k[0]===i||k[0]===o){var T=A+k[1].length;if(N===T)return[E+1,_];if(N<T){_=_.slice();var D=N-A,P=[k[0],k[1].slice(0,D)],R=[k[0],k[1].slice(D)];return _.splice(E,1,P,R),[E+1,_]}else A=T}}throw new Error("cursor_pos is out of bounds!")}function y(_,N){var A=g(_,N),E=A[1],k=A[0],T=E[k],D=E[k+1];if(T==null)return _;if(T[0]!==o)return _;if(D!=null&&T[1]+D[1]===D[1]+T[1])return E.splice(k,2,D,T),j(E,k,2);if(D!=null&&D[1].indexOf(T[1])===0){E.splice(k,2,[D[0],T[1]],[0,T[1]]);var P=D[1].slice(T[1].length);return P.length>0&&E.splice(k+2,0,[D[0],P]),j(E,k,3)}else return _}function w(_){for(var N=!1,A=function(D){return D.charCodeAt(0)>=56320&&D.charCodeAt(0)<=57343},E=function(D){return D.charCodeAt(D.length-1)>=55296&&D.charCodeAt(D.length-1)<=56319},k=2;k<_.length;k+=1)_[k-2][0]===o&&E(_[k-2][1])&&_[k-1][0]===i&&A(_[k-1][1])&&_[k][0]===s&&A(_[k][1])&&(N=!0,_[k-1][1]=_[k-2][1].slice(-1)+_[k-1][1],_[k][1]=_[k-2][1].slice(-1)+_[k][1],_[k-2][1]=_[k-2][1].slice(0,-1));if(!N)return _;for(var T=[],k=0;k<_.length;k+=1)_[k][1].length>0&&T.push(_[k]);return T}function j(_,N,A){for(var E=N+A-1;E>=0&&E>=N-1;E--)if(E+1<_.length){var k=_[E],T=_[E+1];k[0]===T[1]&&_.splice(E,2,[k[0],k[1]+T[1]])}return _}}),(function(n,r){r=n.exports=typeof Object.keys=="function"?Object.keys:i,r.shim=i;function i(s){var o=[];for(var l in s)o.push(l);return o}}),(function(n,r){var i=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";r=n.exports=i?s:o,r.supported=s;function s(l){return Object.prototype.toString.call(l)=="[object Arguments]"}r.unsupported=o;function o(l){return l&&typeof l=="object"&&typeof l.length=="number"&&Object.prototype.hasOwnProperty.call(l,"callee")&&!Object.prototype.propertyIsEnumerable.call(l,"callee")||!1}}),(function(n,r){var i=Object.prototype.hasOwnProperty,s="~";function o(){}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(s=!1));function l(u,d,f){this.fn=u,this.context=d,this.once=f||!1}function c(){this._events=new o,this._eventsCount=0}c.prototype.eventNames=function(){var d=[],f,p;if(this._eventsCount===0)return d;for(p in f=this._events)i.call(f,p)&&d.push(s?p.slice(1):p);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(f)):d},c.prototype.listeners=function(d,f){var p=s?s+d:d,h=this._events[p];if(f)return!!h;if(!h)return[];if(h.fn)return[h.fn];for(var x=0,v=h.length,g=new Array(v);x<v;x++)g[x]=h[x].fn;return g},c.prototype.emit=function(d,f,p,h,x,v){var g=s?s+d:d;if(!this._events[g])return!1;var y=this._events[g],w=arguments.length,j,_;if(y.fn){switch(y.once&&this.removeListener(d,y.fn,void 0,!0),w){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,f),!0;case 3:return y.fn.call(y.context,f,p),!0;case 4:return y.fn.call(y.context,f,p,h),!0;case 5:return y.fn.call(y.context,f,p,h,x),!0;case 6:return y.fn.call(y.context,f,p,h,x,v),!0}for(_=1,j=new Array(w-1);_<w;_++)j[_-1]=arguments[_];y.fn.apply(y.context,j)}else{var N=y.length,A;for(_=0;_<N;_++)switch(y[_].once&&this.removeListener(d,y[_].fn,void 0,!0),w){case 1:y[_].fn.call(y[_].context);break;case 2:y[_].fn.call(y[_].context,f);break;case 3:y[_].fn.call(y[_].context,f,p);break;case 4:y[_].fn.call(y[_].context,f,p,h);break;default:if(!j)for(A=1,j=new Array(w-1);A<w;A++)j[A-1]=arguments[A];y[_].fn.apply(y[_].context,j)}}return!0},c.prototype.on=function(d,f,p){var h=new l(f,p||this),x=s?s+d:d;return this._events[x]?this._events[x].fn?this._events[x]=[this._events[x],h]:this._events[x].push(h):(this._events[x]=h,this._eventsCount++),this},c.prototype.once=function(d,f,p){var h=new l(f,p||this,!0),x=s?s+d:d;return this._events[x]?this._events[x].fn?this._events[x]=[this._events[x],h]:this._events[x].push(h):(this._events[x]=h,this._eventsCount++),this},c.prototype.removeListener=function(d,f,p,h){var x=s?s+d:d;if(!this._events[x])return this;if(!f)return--this._eventsCount===0?this._events=new o:delete this._events[x],this;var v=this._events[x];if(v.fn)v.fn===f&&(!h||v.once)&&(!p||v.context===p)&&(--this._eventsCount===0?this._events=new o:delete this._events[x]);else{for(var g=0,y=[],w=v.length;g<w;g++)(v[g].fn!==f||h&&!v[g].once||p&&v[g].context!==p)&&y.push(v[g]);y.length?this._events[x]=y.length===1?y[0]:y:--this._eventsCount===0?this._events=new o:delete this._events[x]}return this},c.prototype.removeAllListeners=function(d){var f;return d?(f=s?s+d:d,this._events[f]&&(--this._eventsCount===0?this._events=new o:delete this._events[f])):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=s,c.EventEmitter=c,typeof n<"u"&&(n.exports=c)}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.matchText=r.matchSpacing=r.matchNewline=r.matchBlot=r.matchAttributor=r.default=void 0;var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ee){return typeof Ee}:function(Ee){return Ee&&typeof Symbol=="function"&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee},o=(function(){function Ee(we,Ye){var We=[],Be=!0,dt=!1,St=void 0;try{for(var Nt=we[Symbol.iterator](),De;!(Be=(De=Nt.next()).done)&&(We.push(De.value),!(Ye&&We.length===Ye));Be=!0);}catch(et){dt=!0,St=et}finally{try{!Be&&Nt.return&&Nt.return()}finally{if(dt)throw St}}return We}return function(we,Ye){if(Array.isArray(we))return we;if(Symbol.iterator in Object(we))return Ee(we,Ye);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),l=(function(){function Ee(we,Ye){for(var We=0;We<Ye.length;We++){var Be=Ye[We];Be.enumerable=Be.enumerable||!1,Be.configurable=!0,"value"in Be&&(Be.writable=!0),Object.defineProperty(we,Be.key,Be)}}return function(we,Ye,We){return Ye&&Ee(we.prototype,Ye),We&&Ee(we,We),we}})(),c=i(3),u=R(c),d=i(2),f=R(d),p=i(0),h=R(p),x=i(5),v=R(x),g=i(10),y=R(g),w=i(9),j=R(w),_=i(36),N=i(37),A=i(13),E=R(A),k=i(26),T=i(38),D=i(39),P=i(40);function R(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}function q(Ee,we,Ye){return we in Ee?Object.defineProperty(Ee,we,{value:Ye,enumerable:!0,configurable:!0,writable:!0}):Ee[we]=Ye,Ee}function M(Ee,we){if(!(Ee instanceof we))throw new TypeError("Cannot call a class as a function")}function V(Ee,we){if(!Ee)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we&&(typeof we=="object"||typeof we=="function")?we:Ee}function H(Ee,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof we);Ee.prototype=Object.create(we&&we.prototype,{constructor:{value:Ee,enumerable:!1,writable:!0,configurable:!0}}),we&&(Object.setPrototypeOf?Object.setPrototypeOf(Ee,we):Ee.__proto__=we)}var Z=(0,y.default)("quill:clipboard"),J="__ql-matcher",K=[[Node.TEXT_NODE,ut],[Node.TEXT_NODE,He],["br",be],[Node.ELEMENT_NODE,He],[Node.ELEMENT_NODE,he],[Node.ELEMENT_NODE,ue],[Node.ELEMENT_NODE,re],[Node.ELEMENT_NODE,Ue],["li",ze],["b",le.bind(le,"bold")],["i",le.bind(le,"italic")],["style",ve]],F=[_.AlignAttribute,T.DirectionAttribute].reduce(function(Ee,we){return Ee[we.keyName]=we,Ee},{}),$=[_.AlignStyle,N.BackgroundStyle,k.ColorStyle,T.DirectionStyle,D.FontStyle,P.SizeStyle].reduce(function(Ee,we){return Ee[we.keyName]=we,Ee},{}),B=(function(Ee){H(we,Ee);function we(Ye,We){M(this,we);var Be=V(this,(we.__proto__||Object.getPrototypeOf(we)).call(this,Ye,We));return Be.quill.root.addEventListener("paste",Be.onPaste.bind(Be)),Be.container=Be.quill.addContainer("ql-clipboard"),Be.container.setAttribute("contenteditable",!0),Be.container.setAttribute("tabindex",-1),Be.matchers=[],K.concat(Be.options.matchers).forEach(function(dt){var St=o(dt,2),Nt=St[0],De=St[1];!We.matchVisual&&De===ue||Be.addMatcher(Nt,De)}),Be}return l(we,[{key:"addMatcher",value:function(We,Be){this.matchers.push([We,Be])}},{key:"convert",value:function(We){if(typeof We=="string")return this.container.innerHTML=We.replace(/\>\r?\n +\</g,"><"),this.convert();var Be=this.quill.getFormat(this.quill.selection.savedRange.index);if(Be[E.default.blotName]){var dt=this.container.innerText;return this.container.innerHTML="",new f.default().insert(dt,q({},E.default.blotName,Be[E.default.blotName]))}var St=this.prepareMatching(),Nt=o(St,2),De=Nt[0],et=Nt[1],ot=ne(this.container,De,et);return te(ot,` 1287`)&&ot.ops[ot.ops.length-1].attributes==null&&(ot=ot.compose(new f.default().retain(ot.length()-1).delete(1))),Z.log("convert",this.container.innerHTML,ot),this.container.innerHTML="",ot}},{key:"dangerouslyPasteHTML",value:function(We,Be){var dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof We=="string")this.quill.setContents(this.convert(We),Be),this.quill.setSelection(0,v.default.sources.SILENT);else{var St=this.convert(Be);this.quill.updateContents(new f.default().retain(We).concat(St),dt),this.quill.setSelection(We+St.length(),v.default.sources.SILENT)}}},{key:"onPaste",value:function(We){var Be=this;if(!(We.defaultPrevented||!this.quill.isEnabled())){var dt=this.quill.getSelection(),St=new f.default().retain(dt.index),Nt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(v.default.sources.SILENT),setTimeout(function(){St=St.concat(Be.convert()).delete(dt.length),Be.quill.updateContents(St,v.default.sources.USER),Be.quill.setSelection(St.length()-dt.length,v.default.sources.SILENT),Be.quill.scrollingContainer.scrollTop=Nt,Be.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var We=this,Be=[],dt=[];return this.matchers.forEach(function(St){var Nt=o(St,2),De=Nt[0],et=Nt[1];switch(De){case Node.TEXT_NODE:dt.push(et);break;case Node.ELEMENT_NODE:Be.push(et);break;default:[].forEach.call(We.container.querySelectorAll(De),function(ot){ot[J]=ot[J]||[],ot[J].push(et)});break}}),[Be,dt]}}]),we})(j.default);B.DEFAULTS={matchers:[],matchVisual:!0};function z(Ee,we,Ye){return(typeof we>"u"?"undefined":s(we))==="object"?Object.keys(we).reduce(function(We,Be){return z(We,Be,we[Be])},Ee):Ee.reduce(function(We,Be){return Be.attributes&&Be.attributes[we]?We.push(Be):We.insert(Be.insert,(0,u.default)({},q({},we,Ye),Be.attributes))},new f.default)}function ee(Ee){if(Ee.nodeType!==Node.ELEMENT_NODE)return{};var we="__ql-computed-style";return Ee[we]||(Ee[we]=window.getComputedStyle(Ee))}function te(Ee,we){for(var Ye="",We=Ee.ops.length-1;We>=0&&Ye.length<we.length;--We){var Be=Ee.ops[We];if(typeof Be.insert!="string")break;Ye=Be.insert+Ye}return Ye.slice(-1*we.length)===we}function X(Ee){if(Ee.childNodes.length===0)return!1;var we=ee(Ee);return["block","list-item"].indexOf(we.display)>-1}function ne(Ee,we,Ye){return Ee.nodeType===Ee.TEXT_NODE?Ye.reduce(function(We,Be){return Be(Ee,We)},new f.default):Ee.nodeType===Ee.ELEMENT_NODE?[].reduce.call(Ee.childNodes||[],function(We,Be){var dt=ne(Be,we,Ye);return Be.nodeType===Ee.ELEMENT_NODE&&(dt=we.reduce(function(St,Nt){return Nt(Be,St)},dt),dt=(Be[J]||[]).reduce(function(St,Nt){return Nt(Be,St)},dt)),We.concat(dt)},new f.default):new f.default}function le(Ee,we,Ye){return z(Ye,Ee,!0)}function re(Ee,we){var Ye=h.default.Attributor.Attribute.keys(Ee),We=h.default.Attributor.Class.keys(Ee),Be=h.default.Attributor.Style.keys(Ee),dt={};return Ye.concat(We).concat(Be).forEach(function(St){var Nt=h.default.query(St,h.default.Scope.ATTRIBUTE);Nt!=null&&(dt[Nt.attrName]=Nt.value(Ee),dt[Nt.attrName])||(Nt=F[St],Nt!=null&&(Nt.attrName===St||Nt.keyName===St)&&(dt[Nt.attrName]=Nt.value(Ee)||void 0),Nt=$[St],Nt!=null&&(Nt.attrName===St||Nt.keyName===St)&&(Nt=$[St],dt[Nt.attrName]=Nt.value(Ee)||void 0))}),Object.keys(dt).length>0&&(we=z(we,dt)),we}function he(Ee,we){var Ye=h.default.query(Ee);if(Ye==null)return we;if(Ye.prototype instanceof h.default.Embed){var We={},Be=Ye.value(Ee);Be!=null&&(We[Ye.blotName]=Be,we=new f.default().insert(We,Ye.formats(Ee)))}else typeof Ye.formats=="function"&&(we=z(we,Ye.blotName,Ye.formats(Ee)));return we}function be(Ee,we){return te(we,` 1288`)||we.insert(` 1289`),we}function ve(){return new f.default}function ze(Ee,we){var Ye=h.default.query(Ee);if(Ye==null||Ye.blotName!=="list-item"||!te(we,` 1290`))return we;for(var We=-1,Be=Ee.parentNode;!Be.classList.contains("ql-clipboard");)(h.default.query(Be)||{}).blotName==="list"&&(We+=1),Be=Be.parentNode;return We<=0?we:we.compose(new f.default().retain(we.length()-1).retain(1,{indent:We}))}function He(Ee,we){return te(we,` 1291`)||(X(Ee)||we.length()>0&&Ee.nextSibling&&X(Ee.nextSibling))&&we.insert(` 1292`),we}function ue(Ee,we){if(X(Ee)&&Ee.nextElementSibling!=null&&!te(we,` 1293 1294`)){var Ye=Ee.offsetHeight+parseFloat(ee(Ee).marginTop)+parseFloat(ee(Ee).marginBottom);Ee.nextElementSibling.offsetTop>Ee.offsetTop+Ye*1.5&&we.insert(` 1295`)}return we}function Ue(Ee,we){var Ye={},We=Ee.style||{};return We.fontStyle&&ee(Ee).fontStyle==="italic"&&(Ye.italic=!0),We.fontWeight&&(ee(Ee).fontWeight.startsWith("bold")||parseInt(ee(Ee).fontWeight)>=700)&&(Ye.bold=!0),Object.keys(Ye).length>0&&(we=z(we,Ye)),parseFloat(We.textIndent||0)>0&&(we=new f.default().insert(" ").concat(we)),we}function ut(Ee,we){var Ye=Ee.data;if(Ee.parentNode.tagName==="O:P")return we.insert(Ye.trim());if(Ye.trim().length===0&&Ee.parentNode.classList.contains("ql-clipboard"))return we;if(!ee(Ee.parentNode).whiteSpace.startsWith("pre")){var We=function(dt,St){return St=St.replace(/[^\u00a0]/g,""),St.length<1&&dt?" ":St};Ye=Ye.replace(/\r\n/g," ").replace(/\n/g," "),Ye=Ye.replace(/\s\s+/g,We.bind(We,!0)),(Ee.previousSibling==null&&X(Ee.parentNode)||Ee.previousSibling!=null&&X(Ee.previousSibling))&&(Ye=Ye.replace(/^\s+/,We.bind(We,!1))),(Ee.nextSibling==null&&X(Ee.parentNode)||Ee.nextSibling!=null&&X(Ee.nextSibling))&&(Ye=Ye.replace(/\s+$/,We.bind(We,!1)))}return we.insert(Ye)}r.default=B,r.matchAttributor=re,r.matchBlot=he,r.matchNewline=He,r.matchSpacing=ue,r.matchText=ut}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function x(v,g){for(var y=0;y<g.length;y++){var w=g[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,g,y){return g&&x(v.prototype,g),y&&x(v,y),v}})(),o=function x(v,g,y){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,g);if(w===void 0){var j=Object.getPrototypeOf(v);return j===null?void 0:x(j,g,y)}else{if("value"in w)return w.value;var _=w.get;return _===void 0?void 0:_.call(y)}},l=i(6),c=u(l);function u(x){return x&&x.__esModule?x:{default:x}}function d(x,v){if(!(x instanceof v))throw new TypeError("Cannot call a class as a function")}function f(x,v){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:x}function p(x,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);x.prototype=Object.create(v&&v.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(x,v):x.__proto__=v)}var h=(function(x){p(v,x);function v(){return d(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return s(v,[{key:"optimize",value:function(y){o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),v})(c.default);h.blotName="bold",h.tagName=["STRONG","B"],r.default=h}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.addControls=r.default=void 0;var s=(function(){function P(R,q){var M=[],V=!0,H=!1,Z=void 0;try{for(var J=R[Symbol.iterator](),K;!(V=(K=J.next()).done)&&(M.push(K.value),!(q&&M.length===q));V=!0);}catch(F){H=!0,Z=F}finally{try{!V&&J.return&&J.return()}finally{if(H)throw Z}}return M}return function(R,q){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return P(R,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function P(R,q){for(var M=0;M<q.length;M++){var V=q[M];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(R,V.key,V)}}return function(R,q,M){return q&&P(R.prototype,q),M&&P(R,M),R}})(),l=i(2),c=y(l),u=i(0),d=y(u),f=i(5),p=y(f),h=i(10),x=y(h),v=i(9),g=y(v);function y(P){return P&&P.__esModule?P:{default:P}}function w(P,R,q){return R in P?Object.defineProperty(P,R,{value:q,enumerable:!0,configurable:!0,writable:!0}):P[R]=q,P}function j(P,R){if(!(P instanceof R))throw new TypeError("Cannot call a class as a function")}function _(P,R){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:P}function N(P,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);P.prototype=Object.create(R&&R.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(P,R):P.__proto__=R)}var A=(0,x.default)("quill:toolbar"),E=(function(P){N(R,P);function R(q,M){j(this,R);var V=_(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,q,M));if(Array.isArray(V.options.container)){var H=document.createElement("div");T(H,V.options.container),q.container.parentNode.insertBefore(H,q.container),V.container=H}else typeof V.options.container=="string"?V.container=document.querySelector(V.options.container):V.container=V.options.container;if(!(V.container instanceof HTMLElement)){var Z;return Z=A.error("Container required for toolbar",V.options),_(V,Z)}return V.container.classList.add("ql-toolbar"),V.controls=[],V.handlers={},Object.keys(V.options.handlers).forEach(function(J){V.addHandler(J,V.options.handlers[J])}),[].forEach.call(V.container.querySelectorAll("button, select"),function(J){V.attach(J)}),V.quill.on(p.default.events.EDITOR_CHANGE,function(J,K){J===p.default.events.SELECTION_CHANGE&&V.update(K)}),V.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){var J=V.quill.selection.getRange(),K=s(J,1),F=K[0];V.update(F)}),V}return o(R,[{key:"addHandler",value:function(M,V){this.handlers[M]=V}},{key:"attach",value:function(M){var V=this,H=[].find.call(M.classList,function(J){return J.indexOf("ql-")===0});if(H){if(H=H.slice(3),M.tagName==="BUTTON"&&M.setAttribute("type","button"),this.handlers[H]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[H]==null){A.warn("ignoring attaching to disabled format",H,M);return}if(d.default.query(H)==null){A.warn("ignoring attaching to nonexistent format",H,M);return}}var Z=M.tagName==="SELECT"?"change":"click";M.addEventListener(Z,function(J){var K=void 0;if(M.tagName==="SELECT"){if(M.selectedIndex<0)return;var F=M.options[M.selectedIndex];F.hasAttribute("selected")?K=!1:K=F.value||!1}else M.classList.contains("ql-active")?K=!1:K=M.value||!M.hasAttribute("value"),J.preventDefault();V.quill.focus();var $=V.quill.selection.getRange(),B=s($,1),z=B[0];if(V.handlers[H]!=null)V.handlers[H].call(V,K);else if(d.default.query(H).prototype instanceof d.default.Embed){if(K=prompt("Enter "+H),!K)return;V.quill.updateContents(new c.default().retain(z.index).delete(z.length).insert(w({},H,K)),p.default.sources.USER)}else V.quill.format(H,K,p.default.sources.USER);V.update(z)}),this.controls.push([H,M])}}},{key:"update",value:function(M){var V=M==null?{}:this.quill.getFormat(M);this.controls.forEach(function(H){var Z=s(H,2),J=Z[0],K=Z[1];if(K.tagName==="SELECT"){var F=void 0;if(M==null)F=null;else if(V[J]==null)F=K.querySelector("option[selected]");else if(!Array.isArray(V[J])){var $=V[J];typeof $=="string"&&($=$.replace(/\"/g,'\\"')),F=K.querySelector('option[value="'+$+'"]')}F==null?(K.value="",K.selectedIndex=-1):F.selected=!0}else if(M==null)K.classList.remove("ql-active");else if(K.hasAttribute("value")){var B=V[J]===K.getAttribute("value")||V[J]!=null&&V[J].toString()===K.getAttribute("value")||V[J]==null&&!K.getAttribute("value");K.classList.toggle("ql-active",B)}else K.classList.toggle("ql-active",V[J]!=null)})}}]),R})(g.default);E.DEFAULTS={};function k(P,R,q){var M=document.createElement("button");M.setAttribute("type","button"),M.classList.add("ql-"+R),q!=null&&(M.value=q),P.appendChild(M)}function T(P,R){Array.isArray(R[0])||(R=[R]),R.forEach(function(q){var M=document.createElement("span");M.classList.add("ql-formats"),q.forEach(function(V){if(typeof V=="string")k(M,V);else{var H=Object.keys(V)[0],Z=V[H];Array.isArray(Z)?D(M,H,Z):k(M,H,Z)}}),P.appendChild(M)})}function D(P,R,q){var M=document.createElement("select");M.classList.add("ql-"+R),q.forEach(function(V){var H=document.createElement("option");V!==!1?H.setAttribute("value",V):H.setAttribute("selected","selected"),M.appendChild(H)}),P.appendChild(M)}E.DEFAULTS={container:null,handlers:{clean:function(){var R=this,q=this.quill.getSelection();if(q!=null)if(q.length==0){var M=this.quill.getFormat();Object.keys(M).forEach(function(V){d.default.query(V,d.default.Scope.INLINE)!=null&&R.quill.format(V,!1)})}else this.quill.removeFormat(q,p.default.sources.USER)},direction:function(R){var q=this.quill.getFormat().align;R==="rtl"&&q==null?this.quill.format("align","right",p.default.sources.USER):!R&&q==="right"&&this.quill.format("align",!1,p.default.sources.USER),this.quill.format("direction",R,p.default.sources.USER)},indent:function(R){var q=this.quill.getSelection(),M=this.quill.getFormat(q),V=parseInt(M.indent||0);if(R==="+1"||R==="-1"){var H=R==="+1"?1:-1;M.direction==="rtl"&&(H*=-1),this.quill.format("indent",V+H,p.default.sources.USER)}},link:function(R){R===!0&&(R=prompt("Enter link URL:")),this.quill.format("link",R,p.default.sources.USER)},list:function(R){var q=this.quill.getSelection(),M=this.quill.getFormat(q);R==="check"?M.list==="checked"||M.list==="unchecked"?this.quill.format("list",!1,p.default.sources.USER):this.quill.format("list","unchecked",p.default.sources.USER):this.quill.format("list",R,p.default.sources.USER)}}},r.default=E,r.addControls=T}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function x(v,g){for(var y=0;y<g.length;y++){var w=g[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,g,y){return g&&x(v.prototype,g),y&&x(v,y),v}})(),o=function x(v,g,y){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,g);if(w===void 0){var j=Object.getPrototypeOf(v);return j===null?void 0:x(j,g,y)}else{if("value"in w)return w.value;var _=w.get;return _===void 0?void 0:_.call(y)}},l=i(28),c=u(l);function u(x){return x&&x.__esModule?x:{default:x}}function d(x,v){if(!(x instanceof v))throw new TypeError("Cannot call a class as a function")}function f(x,v){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:x}function p(x,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);x.prototype=Object.create(v&&v.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(x,v):x.__proto__=v)}var h=(function(x){p(v,x);function v(g,y){d(this,v);var w=f(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,g));return w.label.innerHTML=y,w.container.classList.add("ql-color-picker"),[].slice.call(w.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(j){j.classList.add("ql-primary")}),w}return s(v,[{key:"buildItem",value:function(y){var w=o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"buildItem",this).call(this,y);return w.style.backgroundColor=y.getAttribute("value")||"",w}},{key:"selectItem",value:function(y,w){o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"selectItem",this).call(this,y,w);var j=this.label.querySelector(".ql-color-label"),_=y&&y.getAttribute("data-value")||"";j&&(j.tagName==="line"?j.style.stroke=_:j.style.fill=_)}}]),v})(c.default);r.default=h}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function x(v,g){for(var y=0;y<g.length;y++){var w=g[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,g,y){return g&&x(v.prototype,g),y&&x(v,y),v}})(),o=function x(v,g,y){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,g);if(w===void 0){var j=Object.getPrototypeOf(v);return j===null?void 0:x(j,g,y)}else{if("value"in w)return w.value;var _=w.get;return _===void 0?void 0:_.call(y)}},l=i(28),c=u(l);function u(x){return x&&x.__esModule?x:{default:x}}function d(x,v){if(!(x instanceof v))throw new TypeError("Cannot call a class as a function")}function f(x,v){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:x}function p(x,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);x.prototype=Object.create(v&&v.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(x,v):x.__proto__=v)}var h=(function(x){p(v,x);function v(g,y){d(this,v);var w=f(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,g));return w.container.classList.add("ql-icon-picker"),[].forEach.call(w.container.querySelectorAll(".ql-picker-item"),function(j){j.innerHTML=y[j.getAttribute("data-value")||""]}),w.defaultItem=w.container.querySelector(".ql-selected"),w.selectItem(w.defaultItem),w}return s(v,[{key:"selectItem",value:function(y,w){o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"selectItem",this).call(this,y,w),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),v})(c.default);r.default=h}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function c(u,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(u,p.key,p)}}return function(u,d,f){return d&&c(u.prototype,d),f&&c(u,f),u}})();function o(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}var l=(function(){function c(u,d){var f=this;o(this,c),this.quill=u,this.boundsContainer=d||document.body,this.root=u.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){f.root.style.marginTop=-1*f.quill.root.scrollTop+"px"}),this.hide()}return s(c,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var f=d.left+d.width/2-this.root.offsetWidth/2,p=d.bottom+this.quill.root.scrollTop;this.root.style.left=f+"px",this.root.style.top=p+"px",this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),x=this.root.getBoundingClientRect(),v=0;if(x.right>h.right&&(v=h.right-x.right,this.root.style.left=f+v+"px"),x.left<h.left&&(v=h.left-x.left,this.root.style.left=f+v+"px"),x.bottom>h.bottom){var g=x.bottom-x.top,y=d.bottom-d.top+g;this.root.style.top=p-y+"px",this.root.classList.add("ql-flip")}return v}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),c})();r.default=l}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function D(P,R){var q=[],M=!0,V=!1,H=void 0;try{for(var Z=P[Symbol.iterator](),J;!(M=(J=Z.next()).done)&&(q.push(J.value),!(R&&q.length===R));M=!0);}catch(K){V=!0,H=K}finally{try{!M&&Z.return&&Z.return()}finally{if(V)throw H}}return q}return function(P,R){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return D(P,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=function D(P,R,q){P===null&&(P=Function.prototype);var M=Object.getOwnPropertyDescriptor(P,R);if(M===void 0){var V=Object.getPrototypeOf(P);return V===null?void 0:D(V,R,q)}else{if("value"in M)return M.value;var H=M.get;return H===void 0?void 0:H.call(q)}},l=(function(){function D(P,R){for(var q=0;q<R.length;q++){var M=R[q];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(P,M.key,M)}}return function(P,R,q){return R&&D(P.prototype,R),q&&D(P,q),P}})(),c=i(3),u=j(c),d=i(8),f=j(d),p=i(43),h=j(p),x=i(27),v=j(x),g=i(15),y=i(41),w=j(y);function j(D){return D&&D.__esModule?D:{default:D}}function _(D,P){if(!(D instanceof P))throw new TypeError("Cannot call a class as a function")}function N(D,P){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:D}function A(D,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);D.prototype=Object.create(P&&P.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(D,P):D.__proto__=P)}var E=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],k=(function(D){A(P,D);function P(R,q){_(this,P),q.modules.toolbar!=null&&q.modules.toolbar.container==null&&(q.modules.toolbar.container=E);var M=N(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,R,q));return M.quill.container.classList.add("ql-snow"),M}return l(P,[{key:"extendToolbar",value:function(q){q.container.classList.add("ql-snow"),this.buildButtons([].slice.call(q.container.querySelectorAll("button")),w.default),this.buildPickers([].slice.call(q.container.querySelectorAll("select")),w.default),this.tooltip=new T(this.quill,this.options.bounds),q.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(M,V){q.handlers.link.call(q,!V.format.link)})}}]),P})(h.default);k.DEFAULTS=(0,u.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(P){if(P){var R=this.quill.getSelection();if(R==null||R.length==0)return;var q=this.quill.getText(R);/^\S+@\S+\.\S+$/.test(q)&&q.indexOf("mailto:")!==0&&(q="mailto:"+q);var M=this.quill.theme.tooltip;M.edit("link",q)}else this.quill.format("link",!1)}}}}});var T=(function(D){A(P,D);function P(R,q){_(this,P);var M=N(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,R,q));return M.preview=M.root.querySelector("a.ql-preview"),M}return l(P,[{key:"listen",value:function(){var q=this;o(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(M){q.root.classList.contains("ql-editing")?q.save():q.edit("link",q.preview.textContent),M.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(M){if(q.linkRange!=null){var V=q.linkRange;q.restoreFocus(),q.quill.formatText(V,"link",!1,f.default.sources.USER),delete q.linkRange}M.preventDefault(),q.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function(M,V,H){if(M!=null){if(M.length===0&&H===f.default.sources.USER){var Z=q.quill.scroll.descendant(v.default,M.index),J=s(Z,2),K=J[0],F=J[1];if(K!=null){q.linkRange=new g.Range(M.index-F,K.length());var $=v.default.formats(K.domNode);q.preview.textContent=$,q.preview.setAttribute("href",$),q.show(),q.position(q.quill.getBounds(q.linkRange));return}}else delete q.linkRange;q.hide()}})}},{key:"show",value:function(){o(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),P})(p.BaseTooltip);T.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),r.default=k}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i(29),o=Be(s),l=i(36),c=i(38),u=i(64),d=i(65),f=Be(d),p=i(66),h=Be(p),x=i(67),v=Be(x),g=i(37),y=i(26),w=i(39),j=i(40),_=i(56),N=Be(_),A=i(68),E=Be(A),k=i(27),T=Be(k),D=i(69),P=Be(D),R=i(70),q=Be(R),M=i(71),V=Be(M),H=i(72),Z=Be(H),J=i(73),K=Be(J),F=i(13),$=Be(F),B=i(74),z=Be(B),ee=i(75),te=Be(ee),X=i(57),ne=Be(X),le=i(41),re=Be(le),he=i(28),be=Be(he),ve=i(59),ze=Be(ve),He=i(60),ue=Be(He),Ue=i(61),ut=Be(Ue),Ee=i(108),we=Be(Ee),Ye=i(62),We=Be(Ye);function Be(dt){return dt&&dt.__esModule?dt:{default:dt}}o.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":g.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":w.FontClass,"attributors/class/size":j.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":g.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":w.FontStyle,"attributors/style/size":j.SizeStyle},!0),o.default.register({"formats/align":l.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":u.IndentClass,"formats/background":g.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":w.FontClass,"formats/size":j.SizeClass,"formats/blockquote":f.default,"formats/code-block":$.default,"formats/header":h.default,"formats/list":v.default,"formats/bold":N.default,"formats/code":F.Code,"formats/italic":E.default,"formats/link":T.default,"formats/script":P.default,"formats/strike":q.default,"formats/underline":V.default,"formats/image":Z.default,"formats/video":K.default,"formats/list/item":x.ListItem,"modules/formula":z.default,"modules/syntax":te.default,"modules/toolbar":ne.default,"themes/bubble":we.default,"themes/snow":We.default,"ui/icons":re.default,"ui/picker":be.default,"ui/icon-picker":ue.default,"ui/color-picker":ze.default,"ui/tooltip":ut.default},!0),r.default=o.default}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var s=(function(){function v(g,y){for(var w=0;w<y.length;w++){var j=y[w];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(g,j.key,j)}}return function(g,y,w){return y&&v(g.prototype,y),w&&v(g,w),g}})(),o=function v(g,y,w){g===null&&(g=Function.prototype);var j=Object.getOwnPropertyDescriptor(g,y);if(j===void 0){var _=Object.getPrototypeOf(g);return _===null?void 0:v(_,y,w)}else{if("value"in j)return j.value;var N=j.get;return N===void 0?void 0:N.call(w)}},l=i(0),c=u(l);function u(v){return v&&v.__esModule?v:{default:v}}function d(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function f(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function p(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var h=(function(v){p(g,v);function g(){return d(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return s(g,[{key:"add",value:function(w,j){if(j==="+1"||j==="-1"){var _=this.value(w)||0;j=j==="+1"?_+1:_-1}return j===0?(this.remove(w),!0):o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"add",this).call(this,w,j)}},{key:"canAdd",value:function(w,j){return o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,w,j)||o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,w,parseInt(j))}},{key:"value",value:function(w){return parseInt(o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,w))||void 0}}]),g})(c.default.Attributor.Class),x=new h("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});r.IndentClass=x}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i(4),o=l(s);function l(p){return p&&p.__esModule?p:{default:p}}function c(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function u(p,h){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:p}function d(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(p,h):p.__proto__=h)}var f=(function(p){d(h,p);function h(){return c(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(o.default);f.blotName="blockquote",f.tagName="blockquote",r.default=f}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function h(x,v){for(var g=0;g<v.length;g++){var y=v[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(x,y.key,y)}}return function(x,v,g){return v&&h(x.prototype,v),g&&h(x,g),x}})(),o=i(4),l=c(o);function c(h){return h&&h.__esModule?h:{default:h}}function u(h,x){if(!(h instanceof x))throw new TypeError("Cannot call a class as a function")}function d(h,x){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:h}function f(h,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);h.prototype=Object.create(x&&x.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(h,x):h.__proto__=x)}var p=(function(h){f(x,h);function x(){return u(this,x),d(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return s(x,null,[{key:"formats",value:function(g){return this.tagName.indexOf(g.tagName)+1}}]),x})(l.default);p.blotName="header",p.tagName=["H1","H2","H3","H4","H5","H6"],r.default=p}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.ListItem=void 0;var s=(function(){function _(N,A){for(var E=0;E<A.length;E++){var k=A[E];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(N,k.key,k)}}return function(N,A,E){return A&&_(N.prototype,A),E&&_(N,E),N}})(),o=function _(N,A,E){N===null&&(N=Function.prototype);var k=Object.getOwnPropertyDescriptor(N,A);if(k===void 0){var T=Object.getPrototypeOf(N);return T===null?void 0:_(T,A,E)}else{if("value"in k)return k.value;var D=k.get;return D===void 0?void 0:D.call(E)}},l=i(0),c=h(l),u=i(4),d=h(u),f=i(25),p=h(f);function h(_){return _&&_.__esModule?_:{default:_}}function x(_,N,A){return N in _?Object.defineProperty(_,N,{value:A,enumerable:!0,configurable:!0,writable:!0}):_[N]=A,_}function v(_,N){if(!(_ instanceof N))throw new TypeError("Cannot call a class as a function")}function g(_,N){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:_}function y(_,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);_.prototype=Object.create(N&&N.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(_,N):_.__proto__=N)}var w=(function(_){y(N,_);function N(){return v(this,N),g(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return s(N,[{key:"format",value:function(E,k){E===j.blotName&&!k?this.replaceWith(c.default.create(this.statics.scope)):o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,E,k)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(E,k){return this.parent.isolate(this.offset(this.parent),this.length()),E===this.parent.statics.blotName?(this.parent.replaceWith(E,k),this):(this.parent.unwrap(),o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"replaceWith",this).call(this,E,k))}}],[{key:"formats",value:function(E){return E.tagName===this.tagName?void 0:o(N.__proto__||Object.getPrototypeOf(N),"formats",this).call(this,E)}}]),N})(d.default);w.blotName="list-item",w.tagName="LI";var j=(function(_){y(N,_),s(N,null,[{key:"create",value:function(E){var k=E==="ordered"?"OL":"UL",T=o(N.__proto__||Object.getPrototypeOf(N),"create",this).call(this,k);return(E==="checked"||E==="unchecked")&&T.setAttribute("data-checked",E==="checked"),T}},{key:"formats",value:function(E){if(E.tagName==="OL")return"ordered";if(E.tagName==="UL")return E.hasAttribute("data-checked")?E.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function N(A){v(this,N);var E=g(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,A)),k=function(D){if(D.target.parentNode===A){var P=E.statics.formats(A),R=c.default.find(D.target);P==="checked"?R.format("list","unchecked"):P==="unchecked"&&R.format("list","checked")}};return A.addEventListener("touchstart",k),A.addEventListener("mousedown",k),E}return s(N,[{key:"format",value:function(E,k){this.children.length>0&&this.children.tail.format(E,k)}},{key:"formats",value:function(){return x({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(E,k){if(E instanceof w)o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertBefore",this).call(this,E,k);else{var T=k==null?this.length():k.offset(this),D=this.split(T);D.parent.insertBefore(E,D)}}},{key:"optimize",value:function(E){o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"optimize",this).call(this,E);var k=this.next;k!=null&&k.prev===this&&k.statics.blotName===this.statics.blotName&&k.domNode.tagName===this.domNode.tagName&&k.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(k.moveChildren(this),k.remove())}},{key:"replace",value:function(E){if(E.statics.blotName!==this.statics.blotName){var k=c.default.create(this.statics.defaultChild);E.moveChildren(k),this.appendChild(k)}o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"replace",this).call(this,E)}}]),N})(p.default);j.blotName="list",j.scope=c.default.Scope.BLOCK_BLOT,j.tagName=["OL","UL"],j.defaultChild="list-item",j.allowedChildren=[w],r.ListItem=w,r.default=j}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i(56),o=l(s);function l(p){return p&&p.__esModule?p:{default:p}}function c(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function u(p,h){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:p}function d(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(p,h):p.__proto__=h)}var f=(function(p){d(h,p);function h(){return c(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(o.default);f.blotName="italic",f.tagName=["EM","I"],r.default=f}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function x(v,g){for(var y=0;y<g.length;y++){var w=g[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,g,y){return g&&x(v.prototype,g),y&&x(v,y),v}})(),o=function x(v,g,y){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,g);if(w===void 0){var j=Object.getPrototypeOf(v);return j===null?void 0:x(j,g,y)}else{if("value"in w)return w.value;var _=w.get;return _===void 0?void 0:_.call(y)}},l=i(6),c=u(l);function u(x){return x&&x.__esModule?x:{default:x}}function d(x,v){if(!(x instanceof v))throw new TypeError("Cannot call a class as a function")}function f(x,v){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:x}function p(x,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);x.prototype=Object.create(v&&v.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(x,v):x.__proto__=v)}var h=(function(x){p(v,x);function v(){return d(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return s(v,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):o(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),v})(c.default);h.blotName="script",h.tagName=["SUB","SUP"],r.default=h}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i(6),o=l(s);function l(p){return p&&p.__esModule?p:{default:p}}function c(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function u(p,h){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:p}function d(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(p,h):p.__proto__=h)}var f=(function(p){d(h,p);function h(){return c(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(o.default);f.blotName="strike",f.tagName="S",r.default=f}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i(6),o=l(s);function l(p){return p&&p.__esModule?p:{default:p}}function c(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function u(p,h){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:p}function d(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(p,h):p.__proto__=h)}var f=(function(p){d(h,p);function h(){return c(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(o.default);f.blotName="underline",f.tagName="U",r.default=f}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function g(y,w){for(var j=0;j<w.length;j++){var _=w[j];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}return function(y,w,j){return w&&g(y.prototype,w),j&&g(y,j),y}})(),o=function g(y,w,j){y===null&&(y=Function.prototype);var _=Object.getOwnPropertyDescriptor(y,w);if(_===void 0){var N=Object.getPrototypeOf(y);return N===null?void 0:g(N,w,j)}else{if("value"in _)return _.value;var A=_.get;return A===void 0?void 0:A.call(j)}},l=i(0),c=d(l),u=i(27);function d(g){return g&&g.__esModule?g:{default:g}}function f(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function p(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function h(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var x=["alt","height","width"],v=(function(g){h(y,g);function y(){return f(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return s(y,[{key:"format",value:function(j,_){x.indexOf(j)>-1?_?this.domNode.setAttribute(j,_):this.domNode.removeAttribute(j):o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,j,_)}}],[{key:"create",value:function(j){var _=o(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,j);return typeof j=="string"&&_.setAttribute("src",this.sanitize(j)),_}},{key:"formats",value:function(j){return x.reduce(function(_,N){return j.hasAttribute(N)&&(_[N]=j.getAttribute(N)),_},{})}},{key:"match",value:function(j){return/\.(jpe?g|gif|png)$/.test(j)||/^data:image\/.+;base64/.test(j)}},{key:"sanitize",value:function(j){return(0,u.sanitize)(j,["http","https","data"])?j:"//:0"}},{key:"value",value:function(j){return j.getAttribute("src")}}]),y})(c.default.Embed);v.blotName="image",v.tagName="IMG",r.default=v}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=(function(){function g(y,w){for(var j=0;j<w.length;j++){var _=w[j];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}return function(y,w,j){return w&&g(y.prototype,w),j&&g(y,j),y}})(),o=function g(y,w,j){y===null&&(y=Function.prototype);var _=Object.getOwnPropertyDescriptor(y,w);if(_===void 0){var N=Object.getPrototypeOf(y);return N===null?void 0:g(N,w,j)}else{if("value"in _)return _.value;var A=_.get;return A===void 0?void 0:A.call(j)}},l=i(4),c=i(27),u=d(c);function d(g){return g&&g.__esModule?g:{default:g}}function f(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function p(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function h(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var x=["height","width"],v=(function(g){h(y,g);function y(){return f(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return s(y,[{key:"format",value:function(j,_){x.indexOf(j)>-1?_?this.domNode.setAttribute(j,_):this.domNode.removeAttribute(j):o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,j,_)}}],[{key:"create",value:function(j){var _=o(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,j);return _.setAttribute("frameborder","0"),_.setAttribute("allowfullscreen",!0),_.setAttribute("src",this.sanitize(j)),_}},{key:"formats",value:function(j){return x.reduce(function(_,N){return j.hasAttribute(N)&&(_[N]=j.getAttribute(N)),_},{})}},{key:"sanitize",value:function(j){return u.default.sanitize(j)}},{key:"value",value:function(j){return j.getAttribute("src")}}]),y})(l.BlockEmbed);v.blotName="video",v.className="ql-video",v.tagName="IFRAME",r.default=v}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var s=(function(){function j(_,N){for(var A=0;A<N.length;A++){var E=N[A];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(_,E.key,E)}}return function(_,N,A){return N&&j(_.prototype,N),A&&j(_,A),_}})(),o=function j(_,N,A){_===null&&(_=Function.prototype);var E=Object.getOwnPropertyDescriptor(_,N);if(E===void 0){var k=Object.getPrototypeOf(_);return k===null?void 0:j(k,N,A)}else{if("value"in E)return E.value;var T=E.get;return T===void 0?void 0:T.call(A)}},l=i(35),c=h(l),u=i(5),d=h(u),f=i(9),p=h(f);function h(j){return j&&j.__esModule?j:{default:j}}function x(j,_){if(!(j instanceof _))throw new TypeError("Cannot call a class as a function")}function v(j,_){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:j}function g(j,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);j.prototype=Object.create(_&&_.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(j,_):j.__proto__=_)}var y=(function(j){g(_,j);function _(){return x(this,_),v(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return s(_,null,[{key:"create",value:function(A){var E=o(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,A);return typeof A=="string"&&(window.katex.render(A,E,{throwOnError:!1,errorColor:"#f00"}),E.setAttribute("data-value",A)),E}},{key:"value",value:function(A){return A.getAttribute("data-value")}}]),_})(c.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var w=(function(j){g(_,j),s(_,null,[{key:"register",value:function(){d.default.register(y,!0)}}]);function _(){x(this,_);var N=v(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return N}return _})(p.default);r.FormulaBlot=y,r.default=w}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.CodeToken=r.CodeBlock=void 0;var s=(function(){function A(E,k){for(var T=0;T<k.length;T++){var D=k[T];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,D.key,D)}}return function(E,k,T){return k&&A(E.prototype,k),T&&A(E,T),E}})(),o=function A(E,k,T){E===null&&(E=Function.prototype);var D=Object.getOwnPropertyDescriptor(E,k);if(D===void 0){var P=Object.getPrototypeOf(E);return P===null?void 0:A(P,k,T)}else{if("value"in D)return D.value;var R=D.get;return R===void 0?void 0:R.call(T)}},l=i(0),c=v(l),u=i(5),d=v(u),f=i(9),p=v(f),h=i(13),x=v(h);function v(A){return A&&A.__esModule?A:{default:A}}function g(A,E){if(!(A instanceof E))throw new TypeError("Cannot call a class as a function")}function y(A,E){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:A}function w(A,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);A.prototype=Object.create(E&&E.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(A,E):A.__proto__=E)}var j=(function(A){w(E,A);function E(){return g(this,E),y(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return s(E,[{key:"replaceWith",value:function(T){this.domNode.textContent=this.domNode.textContent,this.attach(),o(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,T)}},{key:"highlight",value:function(T){var D=this.domNode.textContent;this.cachedText!==D&&((D.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=T(D),this.domNode.normalize(),this.attach()),this.cachedText=D)}}]),E})(x.default);j.className="ql-syntax";var _=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),N=(function(A){w(E,A),s(E,null,[{key:"register",value:function(){d.default.register(_,!0),d.default.register(j,!0)}}]);function E(k,T){g(this,E);var D=y(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,k,T));if(typeof D.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var P=null;return D.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(P),P=setTimeout(function(){D.highlight(),P=null},D.options.interval)}),D.highlight(),D}return s(E,[{key:"highlight",value:function(){var T=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var D=this.quill.getSelection();
1295this.quill.scroll.descendants(j).forEach(function(P){P.highlight(T.options.highlight)}),this.quill.update(d.default.sources.SILENT),D!=null&&this.quill.setSelection(D,d.default.sources.SILENT)}}}]),E})(p.default);N.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(A){var E=window.hljs.highlightAuto(A);return E.value}})(),interval:1e3},r.CodeBlock=j,r.CodeToken=_,r.default=N}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line>
1295 <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}
vendor: 11,207 bytes, line 1295
1295),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var s=function E(k,T,D){k===null&&(k=Function.prototype);var P=Object.getOwnPropertyDescriptor(k,T);if(P===void 0){var R=Object.getPrototypeOf(k);return R===null?void 0:E(R,T,D)}else{if("value"in P)return P.value;var q=P.get;return q===void 0?void 0:q.call(D)}},o=(function(){function E(k,T){for(var D=0;D<T.length;D++){var P=T[D];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(k,P.key,P)}}return function(k,T,D){return T&&E(k.prototype,T),D&&E(k,D),k}})(),l=i(3),c=g(l),u=i(8),d=g(u),f=i(43),p=g(f),h=i(15),x=i(41),v=g(x);function g(E){return E&&E.__esModule?E:{default:E}}function y(E,k){if(!(E instanceof k))throw new TypeError("Cannot call a class as a function")}function w(E,k){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:E}function j(E,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);E.prototype=Object.create(k&&k.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(E,k):E.__proto__=k)}var _=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],N=(function(E){j(k,E);function k(T,D){y(this,k),D.modules.toolbar!=null&&D.modules.toolbar.container==null&&(D.modules.toolbar.container=_);var P=w(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,T,D));return P.quill.container.classList.add("ql-bubble"),P}return o(k,[{key:"extendToolbar",value:function(D){this.tooltip=new A(this.quill,this.options.bounds),this.tooltip.root.appendChild(D.container),this.buildButtons([].slice.call(D.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(D.container.querySelectorAll("select")),v.default)}}]),k})(p.default);N.DEFAULTS=(0,c.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(k){k?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var A=(function(E){j(k,E);function k(T,D){y(this,k);var P=w(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,T,D));return P.quill.on(d.default.events.EDITOR_CHANGE,function(R,q,M,V){if(R===d.default.events.SELECTION_CHANGE)if(q!=null&&q.length>0&&V===d.default.sources.USER){P.show(),P.root.style.left="0px",P.root.style.width="",P.root.style.width=P.root.offsetWidth+"px";var H=P.quill.getLines(q.index,q.length);if(H.length===1)P.position(P.quill.getBounds(q));else{var Z=H[H.length-1],J=P.quill.getIndex(Z),K=Math.min(Z.length()-1,q.index+q.length-J),F=P.quill.getBounds(new h.Range(J,K));P.position(F)}}else document.activeElement!==P.textbox&&P.quill.hasFocus()&&P.hide()}),P}return o(k,[{key:"listen",value:function(){var D=this;s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){D.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!D.root.classList.contains("ql-hidden")){var P=D.quill.getSelection();P!=null&&D.position(D.quill.getBounds(P))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(D){var P=s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"position",this).call(this,D),R=this.root.querySelector(".ql-tooltip-arrow");if(R.style.marginLeft="",P===0)return P;R.style.marginLeft=-1*P-R.offsetWidth/2+"px"}}]),k})(f.BaseTooltip);A.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),r.BubbleTooltip=A,r.default=N}),(function(n,r,i){n.exports=i(63)})]).default})})(q1)),q1.exports}var Bl,J$;function Oqe(){if(J$)return Bl;J$=1;var e=Bl&&Bl.__extends||(function(){var d=function(f,p){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,x){h.__proto__=x}||function(h,x){for(var v in x)x.hasOwnProperty(v)&&(h[v]=x[v])},d(f,p)};return function(f,p){d(f,p);function h(){this.constructor=f}f.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}})(),t=Bl&&Bl.__assign||function(){return t=Object.assign||function(d){for(var f,p=1,h=arguments.length;p<h;p++){f=arguments[p];for(var x in f)Object.prototype.hasOwnProperty.call(f,x)&&(d[x]=f[x])}return d},t.apply(this,arguments)},n=Bl&&Bl.__spreadArrays||function(){for(var d=0,f=0,p=arguments.length;f<p;f++)d+=arguments[f].length;for(var h=Array(d),x=0,f=0;f<p;f++)for(var v=arguments[f],g=0,y=v.length;g<y;g++,x++)h[x]=v[g];return h},r=Bl&&Bl.__importDefault||function(d){return d&&d.__esModule?d:{default:d}},i=r(b2()),s=r(j4()),o=r(MZ()),l=r(Tqe()),c=(function(d){e(f,d);function f(p){var h=d.call(this,p)||this;h.dirtyProps=["modules","formats","bounds","theme","children"],h.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],h.state={generation:0},h.selection=null,h.onEditorChange=function(v,g,y,w){var j,_,N,A;v==="text-change"?(_=(j=h).onEditorChangeText)===null||_===void 0||_.call(j,h.editor.root.innerHTML,g,w,h.unprivilegedEditor):v==="selection-change"&&((A=(N=h).onEditorChangeSelection)===null||A===void 0||A.call(N,g,w,h.unprivilegedEditor))};var x=h.isControlled()?p.value:p.defaultValue;return h.value=x??"",h}return f.prototype.validateProps=function(p){var h;if(i.default.Children.count(p.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(i.default.Children.count(p.children)){var x=i.default.Children.only(p.children);if(((h=x)===null||h===void 0?void 0:h.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&p.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},f.prototype.shouldComponentUpdate=function(p,h){var x=this,v;if(this.validateProps(p),!this.editor||this.state.generation!==h.generation)return!0;if("value"in p){var g=this.getEditorContents(),y=(v=p.value,v??"");this.isEqualValue(y,g)||this.setEditorContents(this.editor,y)}return p.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,p.readOnly),n(this.cleanProps,this.dirtyProps).some(function(w){return!o.default(p[w],x.props[w])})},f.prototype.shouldComponentRegenerate=function(p){var h=this;return this.dirtyProps.some(function(x){return!o.default(p[x],h.props[x])})},f.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},f.prototype.componentWillUnmount=function(){this.destroyEditor()},f.prototype.componentDidUpdate=function(p,h){var x=this;if(this.editor&&this.shouldComponentRegenerate(p)){var v=this.editor.getContents(),g=this.editor.getSelection();this.regenerationSnapshot={delta:v,selection:g},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==h.generation){var y=this.regenerationSnapshot,v=y.delta,w=y.selection;delete this.regenerationSnapshot,this.instantiateEditor();var j=this.editor;j.setContents(v),u(function(){return x.setEditorSelection(j,w)})}},f.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},f.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},f.prototype.isControlled=function(){return"value"in this.props},f.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},f.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},f.prototype.createEditor=function(p,h){var x=new l.default(p,h);return h.tabIndex!=null&&this.setEditorTabIndex(x,h.tabIndex),this.hookEditor(x),x},f.prototype.hookEditor=function(p){this.unprivilegedEditor=this.makeUnprivilegedEditor(p),p.on("editor-change",this.onEditorChange)},f.prototype.unhookEditor=function(p){p.off("editor-change",this.onEditorChange)},f.prototype.getEditorContents=function(){return this.value},f.prototype.getEditorSelection=function(){return this.selection},f.prototype.isDelta=function(p){return p&&p.ops},f.prototype.isEqualValue=function(p,h){return this.isDelta(p)&&this.isDelta(h)?o.default(p.ops,h.ops):o.default(p,h)},f.prototype.setEditorContents=function(p,h){var x=this;this.value=h;var v=this.getEditorSelection();typeof h=="string"?p.setContents(p.clipboard.convert(h)):p.setContents(h),u(function(){return x.setEditorSelection(p,v)})},f.prototype.setEditorSelection=function(p,h){if(this.selection=h,h){var x=p.getLength();h.index=Math.max(0,Math.min(h.index,x-1)),h.length=Math.max(0,Math.min(h.length,x-1-h.index)),p.setSelection(h)}},f.prototype.setEditorTabIndex=function(p,h){var x,v;!((v=(x=p)===null||x===void 0?void 0:x.scroll)===null||v===void 0)&&v.domNode&&(p.scroll.domNode.tabIndex=h)},f.prototype.setEditorReadOnly=function(p,h){h?p.disable():p.enable()},f.prototype.makeUnprivilegedEditor=function(p){var h=p;return{getHTML:function(){return h.root.innerHTML},getLength:h.getLength.bind(h),getText:h.getText.bind(h),getContents:h.getContents.bind(h),getSelection:h.getSelection.bind(h),getBounds:h.getBounds.bind(h)}},f.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var p=s.default.findDOMNode(this.editingArea);if(!p)throw new Error("Cannot find element for editing area");if(p.nodeType===3)throw new Error("Editing area cannot be a text node");return p},f.prototype.renderEditingArea=function(){var p=this,h=this.props,x=h.children,v=h.preserveWhitespace,g=this.state.generation,y={key:g,ref:function(w){p.editingArea=w}};return i.default.Children.count(x)?i.default.cloneElement(i.default.Children.only(x),y):v?i.default.createElement("pre",t({},y)):i.default.createElement("div",t({},y))},f.prototype.render=function(){var p;return i.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(p=this.props.className,p??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},f.prototype.onEditorChangeText=function(p,h,x,v){var g,y;if(this.editor){var w=this.isDelta(this.value)?v.getContents():v.getHTML();w!==this.getEditorContents()&&(this.lastDeltaChangeSet=h,this.value=w,(y=(g=this.props).onChange)===null||y===void 0||y.call(g,p,h,x,v))}},f.prototype.onEditorChangeSelection=function(p,h,x){var v,g,y,w,j,_;if(this.editor){var N=this.getEditorSelection(),A=!N&&p,E=N&&!p;
1295o.default(p,N)||(this.selection=p,(g=(v=this.props).onChangeSelection)===null||g===void 0||g.call(v,p,h,x),A?(w=(y=this.props).onFocus)===null||w===void 0||w.call(y,p,h,x):E&&((_=(j=this.props).onBlur)===null||_===void 0||_.call(j,N,h,x)))}},f.prototype.focus=function(){this.editor&&this.editor.focus()},f.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},f.displayName="React Quill",f.Quill=l.default,f.defaultProps={theme:"snow",modules:{},readOnly:!1},f})(i.default.Component);function u(d){Promise.resolve().then(d)}return Bl=c,Bl}var Rqe=Oqe();const Iqe=Zn(Rqe),Lqe={draft:"bg-yellow-100 text-yellow-800",published:"bg-green-100 text-green-800",archived:"bg-gray-100 text-gray-800"},e9={title:"",slug:"",tab_label:"",category:"legal",status:"draft",version:"1.0",content:"",show_in_header:!0,show_in_footer:!0,display_order:0,requires_acceptance:!1,acceptance_message:""};function Mqe(){const{t:e}=Zt(),t=Ur(),[n,r]=O.useState(null),[i,s]=O.useState(!1),[o,l]=O.useState(e9),{data:c=[],isLoading:u}=Qt({queryKey:["admin-policies"],queryFn:()=>Ne.entities.PolicyPage.list("-display_order")}),d=Nn({mutationFn:g=>n?Ne.entities.PolicyPage.update(n.id,g):Ne.entities.PolicyPage.create(g),onSuccess:()=>{t.invalidateQueries({queryKey:["admin-policies"]}),s(!1),pt.success(e(n?"admin.policyUpdated":"admin.policyCreated"))}}),f=Nn({mutationFn:g=>Ne.entities.PolicyPage.delete(g),onSuccess:()=>{t.invalidateQueries({queryKey:["admin-policies"]}),pt.success(e("admin.policyDeleted"))}}),p=Nn({mutationFn:({id:g,status:y})=>Ne.entities.PolicyPage.update(g,{status:y,...y==="published"?{last_published_at:new Date().toISOString()}:{}}),onSuccess:()=>t.invalidateQueries({queryKey:["admin-policies"]})}),h=()=>{r(null),l(e9),s(!0)},x=g=>{r(g),l({...g}),s(!0)},v=g=>{const y=g.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"");l(w=>({...w,title:g,slug:w.slug||y}))};return u?a.jsx("div",{className:"p-8",children:e("common.loading")}):a.jsxs("div",{className:"min-h-screen bg-background p-8",children:[a.jsxs("div",{className:"max-w-5xl mx-auto",children:[a.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[a.jsx(Dt,{to:"/admin",children:a.jsx(xe,{variant:"ghost",size:"icon",children:a.jsx(gl,{className:"h-4 w-4"})})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("h1",{className:"text-3xl font-heading font-bold",children:e("admin.legalPolicyMgmt")}),a.jsx("p",{className:"text-muted-foreground",children:e("admin.policyMgmtDesc")})]}),a.jsxs(xe,{onClick:h,children:[a.jsx(sa,{className:"mr-2 h-4 w-4"})," ",e("admin.newPolicy")]})]}),a.jsxs("div",{className:"space-y-4",children:[c.map(g=>a.jsx(Oe,{children:a.jsxs(Le,{className:"flex items-center gap-4 p-4",children:[a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx("h3",{className:"font-semibold truncate",children:g.title}),a.jsx(at,{className:Lqe[g.status],children:g.status}),g.requires_acceptance&&a.jsx(at,{variant:"outline",className:"text-xs",children:e("admin.requiresAcceptance")})]}),a.jsxs("p",{className:"text-sm text-muted-foreground",children:["/",g.slug," · v",g.version," · ",e("admin.policyOrder")," ",g.display_order,g.show_in_footer&&` · ${e("admin.policyFooterLabel")}`,g.show_in_header&&` · ${e("admin.policyHeaderLabel")}`]})]}),a.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[g.status==="draft"&&a.jsxs(xe,{size:"sm",variant:"outline",onClick:()=>p.mutate({id:g.id,status:"published"}),children:[a.jsx(Sp,{className:"mr-1 h-3 w-3"})," ",e("admin.publish")]}),g.status==="published"&&a.jsxs(xe,{size:"sm",variant:"outline",onClick:()=>p.mutate({id:g.id,status:"archived"}),children:[a.jsx(j2,{className:"mr-1 h-3 w-3"})," ",e("admin.archived")]}),g.status==="archived"&&a.jsxs(xe,{size:"sm",variant:"outline",onClick:()=>p.mutate({id:g.id,status:"draft"}),children:[a.jsx(fi,{className:"mr-1 h-3 w-3"})," ",e("admin.restore")]}),a.jsx(xe,{size:"icon",variant:"ghost",asChild:!0,children:a.jsx("a",{href:`/policy/${g.slug}`,target:"_blank",rel:"noopener noreferrer",children:a.jsx(S2,{className:"h-4 w-4"})})}),a.jsx(xe,{size:"icon",variant:"ghost",onClick:()=>x(g),children:a.jsx(md,{className:"h-4 w-4"})}),a.jsx(xe,{size:"icon",variant:"ghost",className:"text-destructive",onClick:()=>{confirm(e("admin.confirmDeletePolicy"))&&f.mutate(g.id)},children:a.jsx(Ps,{className:"h-4 w-4"})})]})]})},g.id)),c.length===0&&a.jsx(Oe,{children:a.jsx(Le,{className:"p-12 text-center text-muted-foreground",children:e("admin.noPolicies")})})]})]}),a.jsx(Gn,{open:i,onOpenChange:s,children:a.jsxs(zn,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:e(n?"admin.editPolicy":"admin.newPolicy")})}),a.jsxs("div",{className:"space-y-4 py-2",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Se,{children:e("admin.title")}),a.jsx(Qe,{value:o.title,onChange:g=>v(g.target.value),placeholder:"Terms of Use"})]}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Se,{children:e("admin.policySlug")}),a.jsx(Qe,{value:o.slug,onChange:g=>l(y=>({...y,slug:g.target.value})),placeholder:"terms-of-use"})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Se,{children:e("admin.policyTabLabel")}),a.jsx(Qe,{value:o.tab_label,onChange:g=>l(y=>({...y,tab_label:g.target.value})),placeholder:"Terms of Use"})]}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Se,{children:e("admin.policyVersion")}),a.jsx(Qe,{value:o.version,onChange:g=>l(y=>({...y,version:g.target.value})),placeholder:"1.0"})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Se,{children:e("admin.policyCategory")}),a.jsxs(Et,{value:o.category,onValueChange:g=>l(y=>({...y,category:g})),children:[a.jsx(Pt,{children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"legal",children:e("admin.catLegal")}),a.jsx(Ce,{value:"privacy",children:e("admin.catPrivacy")}),a.jsx(Ce,{value:"community",children:e("admin.catCommunity")}),a.jsx(Ce,{value:"intellectual_property",children:e("admin.catIP")}),a.jsx(Ce,{value:"other",children:e("admin.catOther")})]})]})]}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Se,{children:e("admin.displayOrder")}),a.jsx(Qe,{type:"number",value:o.display_order,onChange:g=>l(y=>({...y,display_order:Number(g.target.value)}))})]})]}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Se,{children:e("admin.policyContent")}),a.jsx("div",{className:"border border-input rounded-md overflow-hidden",children:a.jsx(Iqe,{theme:"snow",value:o.content,onChange:g=>l(y=>({...y,content:g})),modules:{toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"}],["link"],["clean"]]},style:{minHeight:"300px"}})})]}),a.jsxs("div",{className:"flex items-center gap-6",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(ig,{checked:!!o.show_in_header,onCheckedChange:g=>l(y=>({...y,show_in_header:g}))}),a.jsx(Se,{children:e("admin.showInHeader")})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(ig,{checked:!!o.show_in_footer,onCheckedChange:g=>l(y=>
1295({...y,show_in_footer:g}))}),a.jsx(Se,{children:e("admin.showInFooter")})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(ig,{checked:!!o.requires_acceptance,onCheckedChange:g=>l(y=>({...y,requires_acceptance:g}))}),a.jsx(Se,{children:e("admin.requiresAcceptance")})]})]}),o.requires_acceptance&&a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Se,{children:e("admin.acceptanceMessage")}),a.jsx(Qe,{value:o.acceptance_message,onChange:g=>l(y=>({...y,acceptance_message:g.target.value})),placeholder:"I agree to the Terms of Use"})]}),a.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>s(!1),children:e("admin.cancel")}),a.jsx(xe,{onClick:()=>d.mutate(o),disabled:d.isPending,children:d.isPending?e("admin.saving"):e("admin.savePolicy")})]})]})]})})]})}function Dqe(){const{slug:e}=C2(),{t,currentLanguage:n}=Zt(),{data:r=[],isLoading:i}=Qt({queryKey:["policy",e],queryFn:()=>Ne.entities.PolicyPage.filter({slug:e,status:"published"})}),s=r[0];if(i)return a.jsx("div",{className:"min-h-screen flex items-center justify-center",children:a.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-primary rounded-full animate-spin"})});if(!s)return a.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center gap-4",children:[a.jsx("h1",{className:"text-2xl font-bold",children:t("policyViewer.notFound")}),a.jsx("p",{className:"text-muted-foreground",children:t("policyViewer.notFoundDesc")}),a.jsx(Dt,{to:"/",children:a.jsxs(xe,{variant:"outline",children:[a.jsx(gl,{className:"mr-2 h-4 w-4"}),t("policyViewer.goHome")]})})]});const o={en:"en-US",fr:"fr-FR",de:"de-DE",es:"es-ES"};return a.jsx("div",{className:"min-h-screen bg-background",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[a.jsxs(Dt,{to:"/",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground mb-8",children:[a.jsx(gl,{className:"h-4 w-4"})," ",t("policyViewer.backHome")]}),a.jsxs("div",{className:"mb-8",children:[a.jsx("h1",{className:"text-4xl font-heading font-bold mb-3",children:s.title}),a.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[a.jsxs("span",{children:[t("policyViewer.version")," ",s.version]}),s.last_published_at&&a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx(nne,{className:"h-3.5 w-3.5"}),t("policyViewer.lastUpdated")," ",new Date(s.last_published_at).toLocaleDateString(o[n]||"en-US",{year:"numeric",month:"long",day:"numeric"})]})]})]}),a.jsx("div",{className:`policy-content prose prose-slate max-w-none 1296 [&_h1]:text-3xl [&_h1]:font-bold [&_h1]:mb-4 [&_h1]:mt-8 1297 [&_h2]:text-2xl [&_h2]:font-semibold [&_h2]:mb-3 [&_h2]:mt-6 [&_h2]:border-b [&_h2]:pb-2 1298 [&_h3]:text-xl [&_h3]:font-semibold [&_h3]:mb-2 [&_h3]:mt-5 1299 [&_p]:mb-4 [&_p]:leading-relaxed [&_p]:text-foreground/90 1300 [&_ul]:mb-4 [&_ul]:pl-6 [&_ul]:list-disc [&_li]:mb-1 1301 [&_ol]:mb-4 [&_ol]:pl-6 [&_ol]:list-decimal 1302 [&_strong]:font-semibold [&_a]:text-primary [&_a]:underline`,dangerouslySetInnerHTML:{__html:s.content}})]})})}const Fqe=["facebook","linkedin","youtube","twitter","instagram"],t9={platform:"",url:"",label:"",icon:"facebook",is_enabled:!0,show_on_landing:!0,show_in_footer:!0,show_in_floating_bar:!0,display_order:0,color:""};function Bqe(){const{t:e}=Zt(),t=Ur(),[n,r]=O.useState(!1),[i,s]=O.useState(null),[o,l]=O.useState(t9),{data:c=[],isLoading:u}=Qt({queryKey:["social-media-admin"],queryFn:()=>Ne.entities.SocialMedia.list("display_order",50)}),d=Nn({mutationFn:y=>Ne.entities.SocialMedia.create(y),onSuccess:()=>{t.invalidateQueries(["social-media-admin"]),t.invalidateQueries(["social-links"]),r(!1),pt.success(e("admin.socialAdded"))}}),f=Nn({mutationFn:({id:y,data:w})=>Ne.entities.SocialMedia.update(y,w),onSuccess:()=>{t.invalidateQueries(["social-media-admin"]),t.invalidateQueries(["social-links"]),r(!1),pt.success(e("admin.update"))}}),p=Nn({mutationFn:y=>Ne.entities.SocialMedia.delete(y),onSuccess:()=>{t.invalidateQueries(["social-media-admin"]),t.invalidateQueries(["social-links"]),pt.success(e("admin.delete"))}}),h=(y,w,j)=>{f.mutate({id:y,data:{[w]:j}})},x=()=>{s(null),l(t9),r(!0)},v=y=>{s(y),l({...y}),r(!0)},g=()=>{if(!o.platform||!o.url)return pt.error(e("admin.platformUrlRequired"));i?f.mutate({id:i.id,data:o}):d.mutate(o)};return a.jsxs("div",{className:"min-h-screen bg-background p-8",children:[a.jsxs("div",{className:"max-w-4xl mx-auto",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[a.jsx(Dt,{to:"/admin",children:a.jsx(xe,{variant:"ghost",size:"icon",children:a.jsx(gl,{className:"w-4 h-4"})})}),a.jsxs("div",{children:[a.jsx("h1",{className:"text-2xl font-heading font-bold",children:e("admin.socialMediaMgmtTitle")}),a.jsx("p",{className:"text-sm text-muted-foreground",children:e("admin.socialMediaMgmtDesc")})]}),a.jsxs(xe,{onClick:x,className:"ml-auto",children:[a.jsx(sa,{className:"w-4 h-4 mr-2"}),e("admin.addPlatform")]})]}),u?a.jsx("div",{className:"text-center py-12 text-muted-foreground",children:e("common.loading")}):c.length===0?a.jsx(Oe,{children:a.jsx(Le,{className:"py-12 text-center text-muted-foreground",children:e("admin.noSocialLinks")})}):a.jsx("div",{className:"space-y-3",children:c.sort((y,w)=>(y.display_order||0)-(w.display_order||0)).map(y=>a.jsx(Oe,{className:"border-border/60",children:a.jsxs(Le,{className:"flex items-center gap-4 py-4",children:[a.jsx(Zne,{className:"w-4 h-4 text-muted-foreground
1302/40 flex-shrink-0"}),a.jsx("div",{className:"w-10 h-10 rounded-full bg-muted flex items-center justify-center flex-shrink-0",children:a.jsx(J1,{icon:y.icon,className:"w-5 h-5 text-foreground/70"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[a.jsx("span",{className:"font-semibold text-sm",children:y.platform}),!y.is_enabled&&a.jsx(at,{variant:"outline",className:"text-xs",children:e("admin.disabled")})]}),a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y.url}),a.jsxs("div",{className:"flex gap-2 mt-1.5",children:[y.show_on_landing&&a.jsx(at,{variant:"secondary",className:"text-xs py-0",children:e("admin.landing")}),y.show_in_footer&&a.jsx(at,{variant:"secondary",className:"text-xs py-0",children:e("admin.footer")}),y.show_in_floating_bar&&a.jsx(at,{variant:"secondary",className:"text-xs py-0",children:e("admin.floating")})]})]}),a.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0",children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx(ig,{checked:!!y.is_enabled,onCheckedChange:w=>h(y.id,"is_enabled",w),id:`enable-${y.id}`}),a.jsx(Se,{htmlFor:`enable-${y.id}`,className:"text-xs text-muted-foreground",children:e("admin.active")})]}),a.jsx(xe,{size:"icon",variant:"ghost",onClick:()=>v(y),children:a.jsx(md,{className:"w-4 h-4"})}),a.jsx(xe,{size:"icon",variant:"ghost",className:"text-destructive hover:text-destructive",onClick:()=>p.mutate(y.id),children:a.jsx(Ps,{className:"w-4 h-4"})})]})]})},y.id))})]}),a.jsx(Gn,{open:n,onOpenChange:r,children:a.jsxs(zn,{className:"max-w-lg",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:e(i?"admin.editSocialMedia":"admin.addSocialMedia")})}),a.jsxs("div",{className:"space-y-4 pt-2",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Se,{children:e("admin.platformName")}),a.jsx(Qe,{value:o.platform,onChange:y=>l(w=>({...w,platform:y.target.value})),placeholder:"Facebook"})]}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Se,{children:e("admin.icon")}),a.jsxs(Et,{value:o.icon,onValueChange:y=>l(w=>({...w,icon:y})),children:[a.jsx(Pt,{children:a.jsx(Tt,{})}),a.jsx(Ct,{children:Fqe.map(y=>a.jsx(Ce,{value:y,children:a.jsxs("div",{className:"flex items-center gap-2 capitalize",children:[a.jsx(J1,{icon:y,className:"w-4 h-4"})," ",y]})},y))})]})]})]}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Se,{children:e("admin.url")}),a.jsx(Qe,{value:o.url,onChange:y=>l(w=>({...w,url:y.target.value})),placeholder:"https://..."})]}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Se,{children:e("admin.accessibilityLabel")}),a.jsx(Qe,{value:o.label,onChange:y=>l(w=>({...w,label:y.target.value})),placeholder:"Follow Governancepedia on Facebook"})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Se,{children:e("admin.displayOrder")}),a.jsx(Qe,{type:"number",value:o.display_order,onChange:y=>l(w=>({...w,display_order:Number(y.target.value)}))})]}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Se,{children:e("admin.brandColor")}),a.jsx(Qe,{value:o.color,onChange:y=>l(w=>({...w,color:y.target.value})),placeholder:"#1877F2"})]})]}),a.jsxs("div",{className:"space-y-2 pt-1",children:[a.jsx(Se,{className:"text-sm font-medium",children:e("admin.visibility")}),[{key:"is_enabled",label:e("admin.enabledEverywhere")},{key:"show_on_landing",label:e("admin.showOnLanding")},{key:"show_in_footer",label:e("admin.showInFooter")},{key:"show_in_floating_bar",label:e("admin.showInFloatingBar")}].map(({key:y,label:w})=>a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx(Se,{htmlFor:y,className:"text-sm font-normal text-muted-foreground",children:w}),a.jsx(ig,{id:y,checked:!!o[y],onCheckedChange:j=>l(_=>({..._,[y]:j}))})]},y))]}),a.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>r(!1),children:e("admin.cancel")}),a.jsx(xe,{onClick:g,children:e(i?"admin.saveChanges":"admin.addPlatform")})]})]})]})})]})}var r_="Tabs",[qqe]=xl(r_,[ov]),Nee=ov(),[zqe,kO]=qqe(r_),See=O.forwardRef((e,t)=>
1302{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:s,orientation:o="horizontal",dir:l,activationMode:c="automatic",...u}=e,d=v0(l),[f,p]=od({prop:r,onChange:i,defaultProp:s??"",caller:r_});return a.jsx(zqe,{scope:n,baseId:qc(),value:f,onValueChange:p,orientation:o,dir:d,activationMode:c,children:a.jsx(wn.div,{dir:d,"data-orientation":o,...u,ref:t})})});See.displayName=r_;var Aee="TabsList",kee=O.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,s=kO(Aee,n),o=Nee(n);return a.jsx(jT,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:r,children:a.jsx(wn.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:t})})});kee.displayName=Aee;var Pee="TabsTrigger",Cee=O.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...s}=e,o=kO(Pee,n),l=Nee(n),c=Oee(o.baseId,r),u=Ree(o.baseId,r),d=r===o.value;return a.jsx(_T,{asChild:!0,...l,focusable:!i,active:d,children:a.jsx(wn.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...s,ref:t,onMouseDown:qt(e.onMouseDown,f=>{!i&&f.button===0&&f.ctrlKey===!1?o.onValueChange(r):f.preventDefault()}),onKeyDown:qt(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(r)}),onFocus:qt(e.onFocus,()=>{const f=o.activationMode!=="manual";!d&&!i&&f&&o.onValueChange(r)})})})});Cee.displayName=Pee;var Eee="TabsContent",Tee=O.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:s,...o}=e,l=kO(Eee,n),c=Oee(l.baseId,r),u=Ree(l.baseId,r),d=r===l.value,f=O.useRef(d);return O.useEffect(()=>{const p=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(p)},[]),a.jsx(ec,{present:i||d,children:({present:p})=>a.jsx(wn.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!p,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:p&&s})})});Tee.displayName=Eee;function Oee(e,t){return`${e}-trigger-${t}`}function Ree(e,t){return`${e}-content-${t}`}var $qe=See,Iee=kee,Lee=Cee,Mee=Tee;const F0=$qe,bv=O.forwardRef(({className:e,...t},n)=>a.jsx(Iee,{ref:n,className:ln("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));bv.displayName=Iee.displayName;const ni=O.forwardRef(({className:e,...t},n)=>a.jsx(Lee,{ref:n,className:ln("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));ni.displayName=Lee.displayName;const ri=O.forwardRef(({className:e,...t},n)=>a.jsx(Mee,{ref:n,className:ln("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));ri.displayName=Mee.displayName;function Uqe(){const{data:e=[]}=Qt({queryKey:["promo-codes"],queryFn:()=>Ne.entities.PromoCode.list("-created_date",200)}),{data:t=[]}=Qt({queryKey:["ambassadors"],queryFn:()=>Ne.entities.Ambassador.list("-created_date",200)}),{data:n=[]}=Qt({queryKey:["promo-usage"],queryFn:()=>Ne.entities.PromoUsage.list("-used_at",200)}),r=e.filter(x=>x.status==="active").length,i=e.filter(x=>x.status==="scheduled").length,s=e.filter(x=>x.status==="expired").length,o=n.reduce((x,v)=>x+(v.discount_amount||0),0),l=n.reduce((x,v)=>x+(v.final_price||0),0),c=t.filter(x=>x.type==="ambassador").length,u=t.filter(x=>x.type!=="ambassador").length,d=[{label:"Active Promotions",value:r,icon:fi,color:"text-green-600"},{label:"Scheduled",value:i,icon:ks,color:"text-blue-600"},{label:"Expired",value:s,icon:yne,color:"text-muted-foreground"},{label:"Total Uses",value:n.length,icon:Qg,color:"text-primary"},{label:"Discounts Granted",value:`$${o.toFixed(2)}`,icon:Ire,color:"text-orange-600"},{label:"Promo Revenue",value:`$${l.toFixed(2)}`,icon:Lo,color:"text-green-700"},{label:"Ambassadors",value:c,icon:Mi,color:"text-purple-600"},{label:"Partners",value:u,icon:Yl,color:"text-indigo-600"}],f=[...n].sort((x,v)=>new Date(v.used_at)-new Date(x.used_at)).slice(0,10),p=[...t].sort((x,v)=>(v.revenue_generated||0)-(x.revenue_generated||0)).slice(0,5),h={bronze:"bg-orange-100 text-orange-800",silver:"bg-slate-100 text-slate-700",gold:"bg-yellow-100 text-yellow-800",platinum:"bg-purple-100 text-purple-800"};return a.jsxs("div",{className:"space-y-6",children:[a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:d.map(x=>a.jsxs(Oe,{children:[a.jsxs(vt,{className:"flex flex-row items-center justify-between pb-2",children:[a.jsx(yt,{className:"text-xs font-medium text-muted-foreground",children:x.label}),a.jsx(x.icon,{className:`w-4 h-4 ${x.color}`})]}),a.jsx(Le,{children:a.jsx("div",{className:"text-2xl font-bold",children:x.value})})]},x.label))}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"text-base",children:"Recent Promo Usage"})}),a.jsx(Le,{children:f.length===0?a.jsx("p",{className:"text-sm text-muted-foreground",children:"No usage yet."}):a.jsx("div",{className:"space-y-2",children:f.map(x=>a.jsxs("div",{className:"flex items-center justify-between text-sm border-b pb-2 last:border-0",children:[a.jsxs("div",{children:[a.jsx("span",{className:"font-mono font-medium",children:x.promo_code}),a.jsx("span",{className:"text-muted-foreground ml-2",children:x.user_email})]}),a.jsxs("div",{className:"text-right",children:[a.jsxs("div",{className:"text-green-700 font-medium",children:["$",(x.final_price||0).toFixed(2)]}),a.jsxs("div",{className:"text-xs text-muted-foreground",children:["-$",(x.discount_amount||0).toFixed(2)]})]})]},x.id))})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"text-base",children:"Top Ambassadors"})}),a.jsx(Le,{children:p.length===0?a.jsx("p",{className:"text-sm text-muted-foreground",children:"No ambassadors yet."}):a.jsx("div",{className:"space-y-3",children:p.map(x=>a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium",children:x.full_name||x.user_email}),a.jsx("p",{className:"text-xs text-muted-foreground font-mono",children:x.promo_code})]}),a.jsxs("div",{className:"text-right flex items-center gap-2",children:[a.jsx(at,{className:`text-[10px] ${h[x.level]||""}`,children:x.level}),a.jsxs("span",{className:"text-sm font-medium text-green-700",children:["$",(x.revenue_generated||0).toFixed(2)]})]})]},x.id))})})]})]})]})}var i_="Checkbox",[Gqe]=xl(i_),[Vqe,PO]=Gqe(i_);function Wqe(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:s,form:o,name:l,onCheckedChange:c,required:u,value:d="on",internal_do_not_use_render:f}=e,[p,h]=od({prop:n,defaultProp:i??!1,onChange:c,caller:i_}),[x,v]=O.useState(null),[g,y]=O.useState(null),w=O.useRef(!1),j=x?!!o||!!x.closest("form"):!0,_={checked:p,disabled:s,setChecked:h,control:x,setControl:v,name:l,form:o,value:d,hasConsumerStoppedPropagationRef:w,required:u,defaultChecked:Lf(i)?!1:i,isFormControl:j,bubbleInput:g,setBubbleInput:y};return a.jsx(Vqe,{scope:t,..._,children:Hqe(f)?f(_):r})}var Dee="CheckboxTrigger",Fee=O.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{const{control:s,value:o,disabled:l,checked:c,required:u,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:p,isFormControl:h,bubbleInput:x}=PO(Dee,e),v=Qn(i,d),g=O.useRef(c);return O.useEffect(()=>{const y=s==null?void 0:s.form;if(y){const w=()=>f(g.current);return y.addEventListener("reset",w),()=>y.removeEventListener("reset",w)}},[s,f]),a.jsx(wn.button,{type:"button",role:"checkbox","aria-checked":Lf(c)?"mixed":c,"aria-required":u,"data-state":Uee(c),"data-disabled":l?"":void 0,disabled:l,value:o,...r,ref:v,onKeyDown:qt(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:qt(n,y=>{f(w=>Lf(w)?!0:!w),x&&h&&(p.current=y.isPropagationStopped(),p.current||y.stopPropagation())})})});Fee.displayName=Dee;var CO=O.forwardRef((e,t)=>
1302{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:s,required:o,disabled:l,value:c,onCheckedChange:u,form:d,...f}=e;return a.jsx(Wqe,{__scopeCheckbox:n,checked:i,defaultChecked:s,disabled:l,required:o,onCheckedChange:u,name:r,form:d,value:c,internal_do_not_use_render:({isFormControl:p})=>a.jsxs(a.Fragment,{children:[a.jsx(Fee,{...f,ref:t,__scopeCheckbox:n}),p&&a.jsx($ee,{__scopeCheckbox:n})]})})});CO.displayName=i_;var Bee="CheckboxIndicator",qee=O.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,s=PO(Bee,n);return a.jsx(ec,{present:r||Lf(s.checked)||s.checked===!0,children:a.jsx(wn.span,{"data-state":Uee(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});qee.displayName=Bee;var zee="CheckboxBubbleInput",$ee=O.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:i,checked:s,defaultChecked:o,required:l,disabled:c,name:u,value:d,form:f,bubbleInput:p,setBubbleInput:h}=PO(zee,e),x=Qn(n,h),v=rj(s),g=Z2(r);O.useEffect(()=>{const w=p;if(!w)return;const j=window.HTMLInputElement.prototype,N=Object.getOwnPropertyDescriptor(j,"checked").set,A=!i.current;if(v!==s&&N){const E=new Event("click",{bubbles:A});w.indeterminate=Lf(s),N.call(w,Lf(s)?!1:s),w.dispatchEvent(E)}},[p,v,s,i]);const y=O.useRef(Lf(s)?!1:s);return a.jsx(wn.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??y.current,required:l,disabled:c,name:u,value:d,form:f,...t,tabIndex:-1,ref:x,style:{...t.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});$ee.displayName=zee;function Hqe(e){return typeof e=="function"}function Lf(e){return e==="indeterminate"}function Uee(e){return Lf(e)?"indeterminate":e?"checked":"unchecked"}const ml=O.forwardRef(({className:e,...t},n)=>a.jsx(CO,{ref:n,className:ln("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:a.jsx(qee,{className:ln("flex items-center justify-center text-current"),children:a.jsx(Oi,{className:"h-4 w-4"})})}));ml.displayName=CO.displayName;const Kqe=[{id:"memberships",label:"Memberships"},{id:"advertising",label:"Advertising"},{id:"featured_articles",label:"Featured Articles"},{id:"featured_resources",label:"Featured Governance Resources"},{id:"featured_profiles",label:"Featured Business Profiles"},{id:"verification",label:"Verification Services"},{id:"research_tools",label:"Premium Research Tools"},{id:"ai_features",label:"AI Governance Features"}],Yqe={active:"bg-green-100 text-green-800",scheduled:"bg-blue-100 text-blue-800",expired:"bg-slate-100 text-slate-600",disabled:"bg-red-100 text-red-800"},Xqe=["public","partner","ambassador","conference","university","business","auto"],gP={name:"",code:"",internal_notes:"",discount_type:"percentage",discount_value:10,trial_days:30,upgrade_from:"",upgrade_to:"",start_date:"",end_date:"",never_expires:!1,campaign_usage_limit:0,uses_per_user:1,eligible_services:["memberships"],audience:"everyone",campaign_type:"public",status:"active"};function Qqe(){const e=Ur(),[t,n]=O.useState(""),[r,i]=O.useState(!1),[s,o]=O.useState(null),[l,c]=O.useState(gP),{data:u=[]}=Qt({queryKey:["promo-codes"],queryFn:()=>Ne.entities.PromoCode.list("-created_date",200)}),d=Nn({mutationFn:g=>s?Ne.entities.PromoCode.update(s.id,g):Ne.entities.PromoCode.create(g),onSuccess:()=>{e.invalidateQueries({queryKey:["promo-codes"]}),i(!1),pt.success("Saved")}}),f=Nn({mutationFn:g=>Ne.entities.PromoCode.delete(g),onSuccess:()=>{e.invalidateQueries({queryKey:["promo-codes"]}),pt.success("Deleted")}}),p=()=>{o(null),c(gP),i(!0)},h=g=>{o(g),c({...gP,...g}),i(!0)},x=g=>{c(y=>({...y,eligible_services:y.eligible_services.includes(g)?y.eligible_services.filter(w=>w!==g):[...y.eligible_services,g]}))},v=u.filter(g=>{var y,w;return((y=g.name)==null?void 0:y.toLowerCase().includes(t.toLowerCase()))||((w=g.code)==null?void 0:w.toLowerCase().includes(t.toLowerCase()))});return a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center justify-between gap-4",children:[a.jsxs("div",{className:"relative flex-1 max-w-sm",children:[a.jsx(eo,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),a.jsx(Qe,{placeholder:"Search codes...",className:"pl-9",value:t,onChange:g=>n(g.target.value)})]}),a.jsxs(xe,{onClick:p,className:"gap-2",children:[a.jsx(sa,{className:"w-4 h-4"})," New Promo Code"]})]}),a.jsx(Oe,{children:a.jsx(Le,{className:"p-0",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"border-b",children:a.jsxs("tr",{className:"text-left text-muted-foreground",children:[a.jsx("th",{className:"px-4 py-3 font-medium",children:"Code"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Name"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Discount"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Type"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Uses"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Status"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Expires"}),a.jsx("th",{className:"px-4 py-3"})]})}),a.jsxs("tbody",{children:[v.length===0&&a.jsx("tr",{children:a.jsx("td",{colSpan:8,className:"px-4 py-8 text-center text-muted-foreground",children:"No promo codes found."})}),v.map(g=>a.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/30",children:[a.jsx("td",{className:"px-4 py-3",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"font-mono font-semibold",children:g.code}),a.jsx("button",{onClick:()=>{navigator.clipboard.writeText(g.code),pt.success("Copied")}
1302,children:a.jsx(ad,{className:"w-3 h-3 text-muted-foreground hover:text-foreground"})})]})}),a.jsx("td",{className:"px-4 py-3 max-w-[180px] truncate",children:g.name}),a.jsxs("td",{className:"px-4 py-3",children:[g.discount_type==="percentage"&&`${g.discount_value}%`,g.discount_type==="fixed"&&`$${g.discount_value}`,g.discount_type==="free_trial"&&`${g.trial_days}d free`,g.discount_type==="upgrade"&&`${g.upgrade_from} â ${g.upgrade_to}`]}),a.jsx("td",{className:"px-4 py-3 capitalize",children:g.campaign_type}),a.jsxs("td",{className:"px-4 py-3",children:[g.times_used||0,g.campaign_usage_limit?`/${g.campaign_usage_limit}`:""]}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(at,{className:`text-[10px] ${Yqe[g.status]||""}`,children:g.status})}),a.jsx("td",{className:"px-4 py-3 text-muted-foreground text-xs",children:g.never_expires?"â Never":g.end_date||"â"}),a.jsx("td",{className:"px-4 py-3",children:a.jsxs("div",{className:"flex gap-1",children:[a.jsx("button",{onClick:()=>h(g),className:"p-1 hover:bg-accent rounded",children:a.jsx(md,{className:"w-3.5 h-3.5"})}),a.jsx("button",{onClick:()=>f.mutate(g.id),className:"p-1 hover:bg-destructive/10 rounded",children:a.jsx(Ps,{className:"w-3.5 h-3.5 text-destructive"})})]})})]},g.id))]})]})})}),a.jsx(Gn,{open:r,onOpenChange:i,children:a.jsxs(zn,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:s?"Edit Promo Code":"Create Promo Code"})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Promotion Name"}),a.jsx(Qe,{className:"mt-1",placeholder:"e.g. Governance Excellence Month",value:l.name,onChange:g=>c(y=>({...y,name:g.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Promo Code"}),a.jsx(Qe,{className:"mt-1",placeholder:"e.g. GOV10",value:l.code,onChange:g=>c(y=>({...y,code:g.target.value.toUpperCase()}))})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Internal Notes"}),a.jsx(Pn,{className:"mt-1",rows:2,placeholder:"Visible to admins only",value:l.internal_notes,onChange:g=>c(y=>({...y,internal_notes:g.target.value}))})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Discount Type"}),a.jsxs(Et,{value:l.discount_type,onValueChange:g=>c(y=>({...y,discount_type:g})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"percentage",children:"Percentage Discount"}),a.jsx(Ce,{value:"fixed",children:"Fixed Discount ($)"}),a.jsx(Ce,{value:"free_trial",children:"Free Membership Trial"}),a.jsx(Ce,{value:"upgrade",children:"Membership Upgrade"})]})]})]}),a.jsxs("div",{children:[l.discount_type==="percentage"&&a.jsxs(a.Fragment,{children:[a.jsx(Se,{children:"Discount %"}),a.jsxs(Et,{value:String(l.discount_value),onValueChange:g=>c(y=>({...y,discount_value:Number(g)})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsx(Ct,{children:[5,10,15,20,25,50].map(g=>a.jsxs(Ce,{value:String(g),children:[g,"%"]},g))})]})]}),l.discount_type==="fixed"&&a.jsxs(a.Fragment,{children:[a.jsx(Se,{children:"Fixed Amount ($)"}),a.jsxs(Et,{value:String(l.discount_value),onValueChange:g=>c(y=>({...y,discount_value:Number(g)})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsx(Ct,{children:[5,10,25,50,100].map(g=>a.jsxs(Ce,{value:String(g),children:["$",g]},g))})]})]}),l.discount_type==="free_trial"&&a.jsxs(a.Fragment,{children:[a.jsx(Se,{children:"Trial Days"}),a.jsxs(Et,{value:String(l.trial_days),onValueChange:g=>c(y=>({...y,trial_days:Number(g)})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsx(Ct,{children:[30,60,90].map(g=>a.jsxs(Ce,{value:String(g),children:[g," days"]},g))})]})]}),l.discount_type==="upgrade"&&a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Upgrade From"}),a.jsx(Qe,{className:"mt-1",placeholder:"e.g. Premium",value:l.upgrade_from,onChange:g=>c(y=>({...y,upgrade_from:g.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Upgrade To"}),a.jsx(Qe,{className:"mt-1",placeholder:"e.g. Premium Plus",value:l.upgrade_to,onChange:g=>c(y=>({...y,upgrade_to:g.target.value}))})]})]})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Start Date"}),a.jsx(Qe,{type:"date",className:"mt-1",value:l.start_date,onChange:g=>c(y=>({...y,start_date:g.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"End Date"}),a.jsx(Qe,{type:"date",className:"mt-1",value:l.end_date,disabled:l.never_expires,onChange:g=>c(y=>({...y,end_date:g.target.value}))}),a.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[a.jsx(ml,{id:"never",checked:l.never_expires,onCheckedChange:g=>c(y=>({...y,never_expires:g}))}),a.jsx(Se,{htmlFor:"never",className:"text-xs font-normal cursor-pointer",children:"Never Expires"})]})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Campaign Usage Limit"}),a.jsxs(Et,{value:String(l.campaign_usage_limit),onValueChange:g=>c(y=>({...y,campaign_usage_limit:Number(g)})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"100",children:"100"}),a.jsx(Ce,{value:"500",children:"500"}),a.jsx(Ce,{value:"1000",children:"1000"}),a.jsx(Ce,{value:"0",children:"Unlimited"})]})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Uses Per User"}),a.jsxs(Et,{value:String(l.uses_per_user),onValueChange:g=>c(y=>({...y,uses_per_user:Number(g)})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"1",children:"1"}),a.jsx(Ce,{value:"3",children:"3"}),a.jsx(Ce,{value:"5",children:"5"}),a.jsx(Ce,{value:"0",children:"Unlimited"})]})]})]})]}),a.jsxs("div",{children:[a.jsx(Se,{className:"mb-2 block",children:"Eligible Services"}),a.jsx("div",{className:"grid grid-cols-2 gap-2",children:Kqe.map(g=>a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(ml,{id:g.id,checked:(l.eligible_services||[]).includes(g.id),onCheckedChange:()=>x(g.id)}),a.jsx(Se,{htmlFor:g.id,className:"text-xs font-normal cursor-pointer",children:g.label})]},g.id))})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Audience"}),a.jsxs(Et,{value:l.audience,onValueChange:g=>c(y=>({...y,audience:g})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"everyone",children:"Everyone"}),a.jsx(Ce,{value:"new_users",children:"New Users Only"}),a.jsx(Ce,{value:"existing_users",children:"Existing Users Only"}),a.jsx(Ce,{value:"contributors",children:"Contributors Only"}),a.jsx(Ce,{value:"businesses",children:"Businesses Only"}),a.jsx(Ce,{value:"enterprise",children:"Enterprise Only"})]})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Campaign Type"}),a.jsxs(Et,{value:l.campaign_type,onValueChange:g=>c(y=>({...y,campaign_type:g})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsx(Ct,{children:Xqe.map(g=>a.jsx(Ce,{value:g,className:"capitalize",children:g},g))})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Status"}),a.jsxs(Et,{value:l.status,onValueChange:g=>c(y=>({...y,status:g})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"active",children:"Active"}),a.jsx(Ce,{value:"scheduled",children:"Scheduled"}),a.jsx(Ce,{value:"disabled",children:"Disabled"})]})]})]})]}),a.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>i(!1),children:"Cancel"}),a.jsx(xe,{onClick:()=>d.mutate(l),disabled:d.isPending,children:s?"Update":"Create"})]})]})]})})]})}const Zqe={bronze:"bg-orange-100 text-orange-800",silver:"bg-slate-100 text-slate-700",gold:"bg-yellow-100 text-yellow-800",platinum:"bg-purple-100 text-purple-800"},vP={user_email:"",full_name:"",type:"ambassador",organization:"",promo_code:"",referral_link:"",level:"bronze",status:"active",notes:""};function Jqe(){const e=Ur(),[t,n]=O.useState(""),[r,i]=O.useState("all"),[s,o]=O.useState(!1),[l,c]=O.useState(null),[u,d]=O.useState(vP),{data:f=[]}
1302=Qt({queryKey:["ambassadors"],queryFn:()=>Ne.entities.Ambassador.list("-created_date",200)}),p=Nn({mutationFn:w=>l?Ne.entities.Ambassador.update(l.id,w):Ne.entities.Ambassador.create(w),onSuccess:()=>{e.invalidateQueries({queryKey:["ambassadors"]}),o(!1),pt.success("Saved")}}),h=Nn({mutationFn:w=>Ne.entities.Ambassador.delete(w),onSuccess:()=>{e.invalidateQueries({queryKey:["ambassadors"]}),pt.success("Deleted")}}),x=()=>{c(null),d(vP),o(!0)},v=w=>{c(w),d({...vP,...w}),o(!0)},g=f.filter(w=>{const j=(w.full_name||w.user_email||"").toLowerCase().includes(t.toLowerCase())||(w.promo_code||"").toLowerCase().includes(t.toLowerCase()),_=r==="all"||w.type===r;return j&&_}),y=w=>{navigator.clipboard.writeText(w),pt.success("Link copied!")};return a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs("div",{className:"relative",children:[a.jsx(eo,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),a.jsx(Qe,{placeholder:"Search ambassadors...",className:"pl-9 w-64",value:t,onChange:w=>n(w.target.value)})]}),a.jsxs(Et,{value:r,onValueChange:i,children:[a.jsx(Pt,{className:"w-40",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:"All Types"}),a.jsx(Ce,{value:"ambassador",children:"Ambassador"}),a.jsx(Ce,{value:"partner",children:"Partner"}),a.jsx(Ce,{value:"university",children:"University"}),a.jsx(Ce,{value:"association",children:"Association"})]})]})]}),a.jsxs(xe,{onClick:x,className:"gap-2",children:[a.jsx(sa,{className:"w-4 h-4"})," Add Ambassador"]})]}),a.jsx("div",{className:"grid grid-cols-4 gap-3",children:[{level:"Bronze",threshold:"10+ Referrals",color:"border-orange-200 bg-orange-50"},{level:"Silver",threshold:"50+ Referrals",color:"border-slate-200 bg-slate-50"},{level:"Gold",threshold:"250+ Referrals",color:"border-yellow-200 bg-yellow-50"},{level:"Platinum",threshold:"1000+ Referrals",color:"border-purple-200 bg-purple-50"}].map(w=>a.jsxs("div",{className:`rounded-lg border p-3 text-center ${w.color}`,children:[a.jsx("div",{className:"text-sm font-semibold",children:w.level}),a.jsx("div",{className:"text-xs text-muted-foreground",children:w.threshold}),a.jsx("div",{className:"text-lg font-bold mt-1",children:f.filter(j=>j.level===w.level.toLowerCase()).length})]},w.level))}),a.jsx(Oe,{children:a.jsx(Le,{className:"p-0",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"border-b",children:a.jsxs("tr",{className:"text-left text-muted-foreground",children:[a.jsx("th",{className:"px-4 py-3 font-medium",children:"Name"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Type"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Code"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Registrations"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Revenue"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Level"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Status"}),a.jsx("th",{className:"px-4 py-3"})]})}),a.jsxs("tbody",{children:[g.length===0&&a.jsx("tr",{children:a.jsx("td",{colSpan:8,className:"px-4 py-8 text-center text-muted-foreground",children:"No ambassadors found."})}),g.map(w=>a.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/30",children:[a.jsx("td",{className:"px-4 py-3",children:a.jsxs("div",{children:[a.jsx("p",{className:"font-medium",children:w.full_name||w.user_email}),a.jsx("p",{className:"text-xs text-muted-foreground",children:w.organization||w.user_email})]})}),a.jsx("td",{className:"px-4 py-3 capitalize text-muted-foreground",children:w.type}),a.jsx("td",{className:"px-4 py-3",children:a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("span",{className:"font-mono font-semibold",children:w.promo_code}),a.jsx("button",{onClick:()=>y(w.referral_link||`governancepedia.com/register?promo=${w.promo_code}`),children:a.jsx(ad,{className:"w-3 h-3 text-muted-foreground hover:text-foreground"})})]})}),a.jsx("td",{className:"px-4 py-3",children:w.total_registrations||0}),a.jsxs("td",{className:"px-4 py-3 font-medium text-green-700",children:["$",(w.revenue_generated||0).toFixed(2)]}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(at,{className:`text-[10px] capitalize ${Zqe[w.level]||""}`,children:w.level})}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(at,{variant:w.status==="active"?"default":"secondary",className:"text-[10px]",children:w.status})}),a.jsx("td",{className:"px-4 py-3",children:a.jsxs("div",{className:"flex gap-1",children:[a.jsx("button",{onClick:()=>v(w),className:"p-1 hover:bg-accent rounded",children:a.jsx(md,{className:"w-3.5 h-3.5"})}),a.jsx("button",{onClick:()=>h.mutate(w.id),className:"p-1 hover:bg-destructive/10 rounded",children:a.jsx(Ps,{className:"w-3.5 h-3.5 text-destructive"})})]})})]},w.id))]})]})})}),a.jsx(Gn,{open:s,onOpenChange:o,children:a.jsxs(zn,{className:"max-w-lg max-h-[90vh] overflow-y-auto",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:l?"Edit Ambassador / Partner":"Add Ambassador / Partner"})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Email"}),a.jsx(Qe,{className:"mt-1",placeholder:"[email protected]",value:u.user_email,onChange:w=>d(j=>({...j,user_email:w.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Full Name"}),a.jsx(Qe,{className:"mt-1",placeholder:"Full name",value:u.full_name,onChange:w=>d(j=>({...j,full_name:w.target.value}))})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Type"}),a.jsxs(Et,{value:u.type,onValueChange:w=>d(j=>({...j,type:w})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"ambassador",children:"Ambassador"}),a.jsx(Ce,{value:"partner",children:"Partner"}),a.jsx(Ce,{value:"university",children:"University"}),a.jsx(Ce,{value:"association",children:"Association"})]})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Organization"}),a.jsx(Qe,{className:"mt-1",placeholder:"Company / University",value:u.organization,onChange:w=>d(j=>({...j,organization:w.target.value}))})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Promo Code"}),a.jsx(Qe,{className:"mt-1",placeholder:"RISKEXPERT",value:u.promo_code,onChange:w=>d(j=>({...j,promo_code:w.target.value.toUpperCase()}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Level"}),a.jsxs(Et,{value:u.level,onValueChange:w=>d(j=>({...j,level:w})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"bronze",children:"Bronze"}),a.jsx(Ce,{value:"silver",children:"Silver"}),a.jsx(Ce,{value:"gold",children:"Gold"}),a.jsx(Ce,{value:"platinum",children:"Platinum"})]})]})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Referral Link"}),a.jsx(Qe,{className:"mt-1",placeholder:"governancepedia.com/register?promo=...",value:u.referral_link,onChange:w=>d(j=>({...j,referral_link:w.target.value}))})]}),a.jsx("div",{className:"grid grid-cols-2 gap-4",children:a.jsxs("div",{children:[a.jsx(Se,{children:"Status"}),a.jsxs(Et,{value:u.status,onValueChange:w=>d(j=>({...j,status:w})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"active",children:"Active"}),a.jsx(Ce,{value:"pending",children:"Pending"}),a.jsx(Ce,{value:"suspended",children:"Suspended"})]})]})]})}),a.jsxs("div",{children:[a.jsx(Se,{children:"Notes"}),a.jsx(Pn,{className:"mt-1",rows:2,value:u.notes,onChange:w=>d(j=>({...j,notes:w.target.value}))})]}),a.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>o(!1),children:"Cancel"}),a.jsx(xe,{onClick:()=>p.mutate(u),disabled:p.isPending,children:l?"Update":"Add"})]})]})]})})]})}
1302const eze={completed:"bg-green-100 text-green-800",pending:"bg-yellow-100 text-yellow-800",refunded:"bg-red-100 text-red-800",cancelled:"bg-slate-100 text-slate-600"};function tze(){const[e,t]=O.useState(""),[n,r]=O.useState("all"),{data:i=[]}=Qt({queryKey:["promo-usage"],queryFn:()=>Ne.entities.PromoUsage.list("-used_at",500)}),s=i.filter(u=>{const d=(u.promo_code||"").toLowerCase().includes(e.toLowerCase())||(u.user_email||"").toLowerCase().includes(e.toLowerCase())||(u.service_purchased||"").toLowerCase().includes(e.toLowerCase()),f=n==="all"||u.status===n;return d&&f}),o=s.reduce((u,d)=>u+(d.final_price||0),0),l=s.reduce((u,d)=>u+(d.discount_amount||0),0),c=()=>{const u=["Date","User","Promo Code","Campaign","Service","Original Price","Discount","Final Price","Country","Payment Method","Invoice","Status"],d=s.map(v=>[v.used_at?new Date(v.used_at).toLocaleDateString():"",v.user_email,v.promo_code,v.campaign_name,v.service_purchased,v.original_price,v.discount_amount,v.final_price,v.country,v.payment_method,v.invoice_number,v.status]),f=[u,...d].map(v=>v.join(",")).join(` 1303`),p=new Blob([f],{type:"text/csv"}),h=URL.createObjectURL(p),x=document.createElement("a");x.href=h,x.download="promo-audit-ledger.csv",x.click()};return a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs("div",{className:"relative",children:[a.jsx(eo,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),a.jsx(Qe,{placeholder:"Search ledger...",className:"pl-9 w-64",value:e,onChange:u=>t(u.target.value)})]}),a.jsxs(Et,{value:n,onValueChange:r,children:[a.jsx(Pt,{className:"w-36",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:"All Status"}),a.jsx(Ce,{value:"completed",children:"Completed"}),a.jsx(Ce,{value:"pending",children:"Pending"}),a.jsx(Ce,{value:"refunded",children:"Refunded"}),a.jsx(Ce,{value:"cancelled",children:"Cancelled"})]})]})]}),a.jsxs(xe,{variant:"outline",onClick:c,className:"gap-2",children:[a.jsx(Yg,{className:"w-4 h-4"})," Export CSV"]})]}),a.jsxs("div",{className:"flex gap-4",children:[a.jsxs("div",{className:"rounded-lg border bg-card px-4 py-3",children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:"Transactions"}),a.jsx("p",{className:"text-xl font-bold",children:s.length})]}),a.jsxs("div",{className:"rounded-lg border bg-card px-4 py-3",children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:"Total Revenue"}),a.jsxs("p",{className:"text-xl font-bold text-green-700",children:["$",o.toFixed(2)]})]}),a.jsxs("div",{className:"rounded-lg border bg-card px-4 py-3",children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:"Total Discounts"}),a.jsxs("p",{className:"text-xl font-bold text-orange-600",children:["$",l.toFixed(2)]})]})]}),a.jsx(Oe,{children:a.jsx(Le,{className:"p-0",children:a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"border-b",children:a.jsxs("tr",{className:"text-left text-muted-foreground",children:[a.jsx("th",{className:"px-4 py-3 font-medium",children:"Date"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"User"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Code"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Service"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Original"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Discount"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Final"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Invoice"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Status"})]})}),a.jsxs("tbody",{children:[s.length===0&&a.jsx("tr",{children:a.jsx("td",{colSpan:9,className:"px-4 py-8 text-center text-muted-foreground",children:"No transactions found."})}),s.map(u=>a.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/30",children:[a.jsx("td",{className:"px-4 py-3 text-xs text-muted-foreground whitespace-nowrap",children:u.used_at?new Date(u.used_at).toLocaleDateString():"â"}),a.jsx("td",{className:"px-4 py-3 max-w-[140px] truncate",children:u.user_email}),a.jsx("td",{className:"px-4 py-3 font-mono font-semibold",children:u.promo_code}),a.jsx("td",{className:"px-4 py-3 max-w-[140px] truncate",children:u.service_purchased}),a.jsxs("td",{className:"px-4 py-3",children:["$",(u.original_price||0).toFixed(2)]}),a.jsxs("td",{className:"px-4 py-3 text-orange-600",children:["-$",(u.discount_amount||0).toFixed(2)]}),a.jsxs("td",{className:"px-4 py-3 font-medium text-green-700",children:["$",(u.final_price||0).toFixed(2)]}),a.jsx("td",{className:"px-4 py-3 text-xs font-mono text-muted-foreground",children:u.invoice_number||"â"}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(at,{className:`text-[10px] ${eze[u.status]||""}`,children:u.status})})]},u.id))]})]})})})})]})}function nze(){const{t:e}=Zt();return a.jsx("div",{className:"min-h-screen bg-background p-6",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h1",{className:"text-3xl font-heading font-bold",children:e("admin.promoAmbassad
1303orCenter")}),a.jsx("p",{className:"text-muted-foreground mt-1",children:e("admin.promoCenterDesc")})]}),a.jsxs(F0,{defaultValue:"dashboard",children:[a.jsxs(bv,{className:"mb-6",children:[a.jsxs(ni,{value:"dashboard",className:"gap-2",children:[a.jsx(ja,{className:"w-4 h-4"})," ",e("admin.dashboardTab")]}),a.jsxs(ni,{value:"codes",className:"gap-2",children:[a.jsx(Qg,{className:"w-4 h-4"})," ",e("admin.promoCodesTab")]}),a.jsxs(ni,{value:"ambassadors",className:"gap-2",children:[a.jsx(Mi,{className:"w-4 h-4"})," ",e("admin.ambassadorsTab")]}),a.jsxs(ni,{value:"ledger",className:"gap-2",children:[a.jsx(as,{className:"w-4 h-4"})," ",e("admin.auditLedgerTab")]})]}),a.jsx(ri,{value:"dashboard",children:a.jsx(Uqe,{})}),a.jsx(ri,{value:"codes",children:a.jsx(Qqe,{})}),a.jsx(ri,{value:"ambassadors",children:a.jsx(Jqe,{})}),a.jsx(ri,{value:"ledger",children:a.jsx(tze,{})})]})]})})}function rze(){const{t:e}=Zt(),t=[{q:e("partner.faq1q"),a:e("partner.faq1a")},{q:e("partner.faq2q"),a:e("partner.faq2a")},{q:e("partner.faq3q"),a:e("partner.faq3a")},{q:e("partner.faq4q"),a:e("partner.faq4a")},{q:e("partner.faq5q"),a:e("partner.faq5a")},{q:e("partner.faq6q"),a:e("partner.faq6a")}],n=[{title:e("partner.gp1Title"),description:e("partner.gp1Desc"),color:"border-orange-200 bg-orange-50"},{title:e("partner.gp2Title"),description:e("partner.gp2Desc"),color:"border-slate-200 bg-slate-50"},{title:e("partner.gp3Title"),description:e("partner.gp3Desc"),color:"border-yellow-200 bg-yellow-50"},{title:e("partner.gp4Title"),description:e("partner.gp4Desc"),color:"border-purple-200 bg-purple-50"}],r=[{icon:Xg,title:e("partner.wr1Title"),desc:e("partner.wr1Desc")},{icon:sd,title:e("partner.wr2Title"),desc:e("partner.wr2Desc")},{icon:Qg,title:e("partner.wr3Title"),desc:e("partner.wr3Desc")},{icon:ls,title:e("partner.wr4Title"),desc:e("partner.wr4Desc")},{icon:z1,title:e("partner.wr5Title"),desc:e("partner.wr5Desc")},{icon:Yl,title:e("partner.wr6Title"),desc:e("partner.wr6Desc")}];return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-primary via-primary to-primary/80 text-primary-foreground",children:[a.jsxs("div",{className:"absolute inset-0 opacity-10",children:[a.jsx("div",{className:"absolute top-10 left-20 w-72 h-72 bg-white rounded-full blur-3xl"}),a.jsx("div",{className:"absolute bottom-10 right-20 w-96 h-96 bg-white rounded-full blur-3xl"})]}),a.jsxs("div",{className:"relative max-w-5xl mx-auto px-6 py-20 text-center",children:[a.jsx(at,{className:"bg-white/15 text-white border-white/20 mb-6",children:e("partner.badge")}),a.jsx("h1",{className:"text-4xl md:text-6xl font-heading font-bold mb-4",children:e("partner.heroTitle")}),a.jsx("p",{className:"text-xl md:text-2xl font-heading mb-2 text-white/90",children:e("partner.heroSub1")}),a.jsx("p",{className:"text-lg text-white/80 mb-8",children:e("partner.heroSub2")}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx(Dt,{to:"/partners/apply",children:a.jsxs(xe,{size:"lg",variant:"secondary",className:"w-full sm:w-auto text-base gap-2",children:[e("partner.applyPartner")," ",a.jsx(rs,{className:"w-4 h-4"})]})}),a.jsx(Dt,{to:"/partner-dashboard",children:a.jsx(xe,{size:"lg",variant:"outline",className:"w-full sm:w-auto text-base bg-white/10 border-white/30 text-white hover:bg-white/20 hover:text-white",children:e("partner.partnerLogin")})})]})]})]}),a.jsx("section",{className:"max-w-5xl mx-auto px-6 -mt-6 relative z-10",children:a.jsx(Oe,{className:"bg-gradient-to-r from-purple-50 to-blue-50 border-purple-200",children:a.jsxs(Le,{className:"p-5 flex items-start gap-4",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center flex-shrink-0",children:a.jsx(Xr,{className:"w-5 h-5 text-purple-600"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-heading font-semibold text-base mb-1",children:e("partner.creatorsWelcomeTitle")}),a.jsx("p",{className:"text-sm text-muted-foreground",children:e("partner.creatorsWelcomeDesc")})]})]})})}),a.jsxs("section",{className:"max-w-5xl mx-auto px-6 py-16",children:[a.jsx("h2",{className:"text-3xl font-heading font-bold mb-8 text-center",children:e("partner.opportunityTitle")}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[a.jsx(Oe,{children:a.jsxs(Le,{className:"p-6",children:[a.jsx(z1,{className:"w-8 h-8 text-primary mb-3"}),a.jsx("h3",{className:"font-heading font-semibold text-lg mb-2",children:e("partner.whatPartnersDo")}),a.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[a.jsxs("li",{className:"flex gap-2",children:[a.jsx(fi,{className:"w-4 h-4 text-green-600 flex-shrink-0 mt-0.5"}),e("partner.wpd1")]}),a.jsxs("li",{className:"flex gap-2",children:[a.jsx(fi,{className:"w-4 h-4 text-green-600 flex-shrink-0 mt-0.5"}),e("partner.wpd2")]}),a.jsxs("li",{className:"flex gap-2",children:[a.jsx(fi,{className:"w-4 h-4 text-green-600 flex-shrink-0 mt-0.5"}),e("partner.wpd3")]}),a.jsxs("li",{className:"flex gap-2",children:[a.jsx(fi,{className:"w-4 h-4 text-green-600 flex-shrink-0 mt-0.5"}),e("partner.wpd4")]})]})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-6",children:[a.jsx(Mi,{className:"w-8 h-8 text-primary mb-3"}),a.jsx("h3",{className:"font-heading font-semibold text-lg mb-2",children:e("partner.whoWeServe")}),a.jsx("p",{className:"text-sm text-muted-foreground",children:e("partner.whoWeServeDesc")})]})})]})]}),a.jsx("section",{className:"bg-muted/30 py-16",children:a.jsxs("div",{className:"max-w-5xl mx-auto px-6",children:[a.jsx("h2",{className:"text-3xl font-heading font-bold mb-8 text-center",children:e("partner.earningModel")}),a.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mb-8",children:[a.jsx(Oe,{className:"text-center",children:a.jsxs(Le,{className:"p-6",children:[a.jsx(Lo,{className:"w-10 h-10 text-green-600 mx-auto mb-3"}),a.jsx("p",{className:"text-3xl font-heading font-bold text-primary",children:"30%"}
1303),a.jsx("p",{className:"text-sm font-medium mt-1",children:e("partner.firstYear")}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:e("partner.firstYearDesc")})]})}),a.jsx(Oe,{className:"text-center",children:a.jsxs(Le,{className:"p-6",children:[a.jsx(Yl,{className:"w-10 h-10 text-blue-600 mx-auto mb-3"}),a.jsx("p",{className:"text-3xl font-heading font-bold text-primary",children:"15%"}),a.jsx("p",{className:"text-sm font-medium mt-1",children:e("partner.recurring")}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:e("partner.recurringDesc")})]})}),a.jsx(Oe,{className:"text-center",children:a.jsxs(Le,{className:"p-6",children:[a.jsx(_2,{className:"w-10 h-10 text-purple-600 mx-auto mb-3"}),a.jsx("p",{className:"text-3xl font-heading font-bold text-primary",children:"+5%"}),a.jsx("p",{className:"text-sm font-medium mt-1",children:e("partner.accelerator")}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:e("partner.acceleratorDesc")})]})})]}),a.jsx(Oe,{className:"bg-amber-50 border-amber-200",children:a.jsx(Le,{className:"p-4",children:a.jsxs("p",{className:"text-xs text-amber-800 flex items-start gap-2",children:[a.jsx(Kl,{className:"w-4 h-4 flex-shrink-0 mt-0.5"}),a.jsx("span",{children:e("partner.exampleNote")})]})})})]})}),a.jsxs("section",{className:"max-w-5xl mx-auto px-6 py-16",children:[a.jsx("h2",{className:"text-3xl font-heading font-bold mb-8 text-center",children:e("partner.whatYouReceive")}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:r.map((i,s)=>a.jsx(Oe,{children:a.jsxs(Le,{className:"p-5",children:[a.jsx(i.icon,{className:"w-7 h-7 text-primary mb-3"}),a.jsx("h3",{className:"font-heading font-semibold mb-1",children:i.title}),a.jsx("p",{className:"text-sm text-muted-foreground",children:i.desc})]})},s))})]}),a.jsx("section",{className:"bg-primary text-primary-foreground py-16",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-6 text-center",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-heading font-bold mb-6",children:e("partner.referralPromise")}),a.jsx("p",{className:"text-lg text-white/90 mb-4",children:e("partner.referralPromiseDesc")}),a.jsx("p",{className:"text-sm text-white/70 max-w-2xl mx-auto",children:e("partner.referralPriority")})]})}),a.jsxs("section",{className:"max-w-5xl mx-auto px-6 py-16",children:[a.jsx("h2",{className:"text-3xl font-heading font-bold mb-8 text-center",children:e("partner.growthPathway")}),a.jsx("div",{className:"grid md:grid-cols-4 gap-4",children:n.map((i,s)=>a.jsxs("div",{className:`rounded-xl border-2 p-5 ${i.color}`,children:[a.jsxs("div",{className:"text-xs font-bold text-muted-foreground mb-1",children:[e("partner.level")," ",s+1]}),a.jsx("h3",{className:"font-heading font-bold text-lg mb-2",children:i.title}),a.jsx("p",{className:"text-sm text-muted-foreground",children:i.description})]},s))})]}),a.jsx("section",{className:"bg-muted/30 py-16",children:a.jsxs("div",{className:"max-w-3xl mx-auto px-6",children:[a.jsx("h2",{className:"text-3xl font-heading font-bold mb-8 text-center",children:e("partner.faqTitle")}),a.jsx("div",{className:"space-y-4",children:t.map((i,s)=>a.jsx(Oe,{children:a.jsxs(Le,{className:"p-5",children:[a.jsxs("h3",{className:"font-heading font-semibold mb-2 flex items-start gap-2",children:[a.jsx("span",{className:"text-primary font-bold",children:"Q."}),i.q]}),a.jsx("p",{className:"text-sm text-muted-foreground pl-6",children:i.a})]})},s))})]})}),a.jsxs("section",{className:"max-w-4xl mx-auto px-6 py-16 text-center",children:[a.jsx("h2",{className:"text-3xl font-heading font-bold mb-4",children:e("partner.readyCta")}),a.jsx("p",{className:"text-muted-foreground mb-8",children:e("partner.readyCtaDesc")}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx(Dt,{to:"/partners/apply",children:a.jsxs(xe,{size:"lg",className:"gap-2",children:[e("partner.applyOnline")," ",a.jsx(rs,{className:"w-4 h-4"})]})}),a.jsx("a",{href:"mailto:[email protected]",children:a.jsx(xe,{size:"lg",variant:"outline",children:e("partner.contactUs")})})]}),a.jsx("p",{className:"text-xs text-muted-foreground mt-10 max-w-2xl mx-auto",children:e("partner.legalDisclosure")})]})]})}const ize=["Finance","Technology","Healthcare","Manufacturing","Consulting","Legal","Education","Government","Non-profit","Energy","Retail","Other"],aze=["Governance Tools","Risk Assessment","Policy Generator","Decision Engine","AI Governance","Training","Intelligence","Micro Tools"],sze=["English","German","French","Spanish","Italian","Portuguese","Dutch","Arabic","Other"];function oze(){const e=Uf(),{t}=Zt(),[n,r]=O.useState(0),[i,s]=O.useState(!1),[o,l]=O.useState({full_legal_name:"",preferred_display_name:"",email:"",ph
1303one:"",country:"",region:"",applicant_type:"individual",company_name:"",company_registration:"",website:"",social_profiles:"",professional_background:"",relevant_industries:[],preferred_products:[],existing_audience:"",growth_approach:"",languages:[],estimated_monthly_availability:"part_time",conflict_of_interest_declared:!1,privacy_notice_accepted:!1,consent_communications:!1,status:"draft"}),c=[t("partnerApply.step1"),t("partnerApply.step2"),t("partnerApply.step3"),t("partnerApply.step4"),t("partnerApply.step5")],u=(x,v)=>l(g=>({...g,[x]:v})),d=(x,v)=>{l(g=>({...g,[x]:g[x].includes(v)?g[x].filter(y=>y!==v):[...g[x],v]}))},f=()=>n===0?o.full_legal_name&&o.email&&o.country:n===1?o.professional_background:n===2?o.growth_approach:n===3?o.conflict_of_interest_declared&&o.privacy_notice_accepted:!0,p=async()=>{try{await Ne.entities.PartnerApplication.create({...o,status:"draft"}),pt.success(t("partnerApply.draftSaved")),e("/partners")}catch{pt.error(t("partnerApply.draftFailed"))}},h=async()=>{if(!o.privacy_notice_accepted||!o.consent_communications){pt.error(t("partnerApply.acceptRequired"));return}s(!0);try{await Ne.entities.PartnerApplication.create({...o,status:"email_verification_pending"}),pt.success(t("partnerApply.submitSuccess")),e("/partners")}catch{pt.error(t("partnerApply.submitFailed"))}finally{s(!1)}};return a.jsx("div",{className:"min-h-screen bg-background py-8",children:a.jsxs("div",{className:"max-w-3xl mx-auto px-6",children:[a.jsxs("div",{className:"mb-8",children:[a.jsx("h1",{className:"text-3xl font-heading font-bold mb-2",children:t("partnerApply.title")}),a.jsx("p",{className:"text-muted-foreground",children:t("partnerApply.subtitle")})]}),a.jsx("div",{className:"flex items-center justify-between mb-8",children:c.map((x,v)=>a.jsxs("div",{className:"flex items-center flex-1 last:flex-none",children:[a.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center text-xs font-bold border-2 transition-colors 1304 ${v<n?"bg-primary text-primary-foreground border-primary":""} 1305 ${v===n?"bg-primary text-primary-foreground border-primary":""} 1306 ${v>n?"bg-background text-muted-foreground border-border":""}`,children:v<n?a.jsx(Oi,{className:"w-4 h-4"}):v+1}),a.jsx("span",{className:`text-xs ml-2 hidden sm:inline ${v<=n?"font-medium text-foreground":"text-muted-foreground"}`,children:x}),v<c.length-1&&a.jsx("div",{className:`flex-1 h-0.5 mx-2 ${v<n?"bg-primary":"bg-border"}`})]},v))}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"text-lg",children:c[n]})}),a.jsxs(Le,{className:"space-y-4",children:[n===0&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.fullName")}),a.jsx(Qe,{className:"mt-1",value:o.full_legal_name,onChange:x=>u("full_legal_name",x.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.displayName")}),a.jsx(Qe,{className:"mt-1",value:o.preferred_display_name,onChange:x=>u("preferred_display_name",x.target.value)})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.email")}),a.jsx(Qe,{type:"email",className:"mt-1",value:o.email,onChange:x=>u("email",x.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.phone")}),a.jsx(Qe,{className:"mt-1",value:o.phone,onChange:x=>u("phone",x.target.value)})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.country")}),a.jsx(Qe,{className:"mt-1",value:o.country,onChange:x=>u("country",x.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.region")}),a.jsx(Qe,{className:"mt-1",value:o.region,onChange:x=>u("region",x.target.value)})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.applicantType")}),a.jsxs(Et,{value:o.applicant_type,onValueChange:x=>u("applicant_type",x),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"individual",children:t("partnerApply.individual")}),a.jsx(Ce,{value:"company",children:t("partnerApply.company")})]})]})]}),o.applicant_type==="company"&&a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.companyName")}),a.jsx(Qe,{className:"mt-1",value:o.company_name,onChange:x=>u("company_name",x.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.companyReg")}),a.jsx(Qe,{className:"mt-1",value:o.company_registration,onChange:x=>u("company_registration",x.target.value)})]})]})]}),n===1&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.website")}),a.jsx(Qe,{className:"mt-1",placeholder:"https://...",value:o.website,onChange:x=>u("website",x.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.socialProfiles")}),a.jsx(Qe,{className:"mt-1",placeholder:"LinkedIn URL",value:o.social_profiles,onChange:x=>u("social_profiles",x.target.value)})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.background")}),a.jsx(Pn,{className:"mt-1",rows:4,placeholder:t("partnerApply.backgroundPh"),value:o.professional_background,onChange:x=>u("professional_background",x.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.industries")}),a.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:ize.map(x=>a.jsx("button",{type:"button",onClick:()=>d("relevant_industries",x),className:`px-3 py-1.5 rounded-full text-xs font-medium border transition-colors 1307 ${o.relevant_industries.includes(x)?"bg-primary text-primary-foreground border-primary":"bg-background border-border hover:bg-accent"}`,children:x},x))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.products")}),a.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:aze.map(x=>a.jsx("button",{type:"button",onClick:()=>d("preferred_products",x),className:`px-3 py-1.5 rounded-full text-xs font-medium border transition-colors 1308 ${o.preferred_products.includes(x)?"bg-primary text-primary-foreground border-primary":"bg-background border-border hover:bg-accent"}`,children:x},x))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.audience")}),a.jsx(Pn,{className:"mt-1",rows:2,placeholder:t("partnerApply.audiencePh"),value:o.existing_audience,onChange:x=>u("existing_audience",x.target.value)})]})]}),n===2&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.growthApproach")}),a.jsx(Pn,{className:"mt-1",rows:5,placeholder:t("partnerApply.growthApproachPh"),value:o.growth_approach,onChange:x=>u("growth_approach",x.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.languages")}),a.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:sze.map(x=>a.jsx("button",{type:"button",onClick:()=>d("languages",x),className:`px-3 py-1.5 rounded-full text-xs font-medium border transition-colors 1309 ${o.languages.includes(x)?"bg-primary text-primary-foreground border-primary":"bg-background border-border hover:bg-accent"}`,children:x},x))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.availability")}),a.jsxs(Et,{value:o.estimated_monthly_availability,onValueChange:x=>u("estimated_monthly_availability",x),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"occasional",children:t("partnerApply.occasional")}),a.jsx(Ce,{value:"part_time",children:t("partnerApply.partTime")}),a.jsx(Ce,{value:"full_time",children:t("partnerApply.fullTime")})]})]})]})]}),n===3&&a.jsx(a.Fragment,{children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-start gap-3 p-4 border rounded-lg",children:[a.jsx(ml,{checked:o.conflict_of_interest_declared,onCheckedChange:x=>u("conflict_of_interest_declared",x),id:"coi"}),a.jsxs("div",{children:[a.jsx(Se,{htmlFor:"coi",className:"cursor-pointer",children:t("partnerApply.coiDecl")}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:t("partnerApply.coiDesc")})]})]}),a.jsxs("div",{className:"flex items-start gap-3 p-4 border rounded-lg",children:[a.jsx(ml,{checked:o.privacy_notice_accepted,onCheckedChange:x=>u("privacy_notice_accepted",x),id:"privacy"}),a.jsxs("div",{children:[a.jsx(Se,{htmlFor:"privacy",className:"cursor-pointer",children:t("partnerApply.privacyDecl")}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:t("partnerApply.privacyDesc")})]})]}),a.jsxs("div",{className:"flex items-start gap-3 p-4 border rounded-lg",children:[a.jsx(ml,{checked:o.consent_communications,onCheckedChange:x=>u("consent_communications",x),id:"consent"}),a.jsxs("div",{children:[a.jsx(Se,{htmlFor:"consent",className:"cursor-pointer",children:t("partnerApply.consentDecl")}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:t("partnerApply.consentDesc")})]})]})]})}),n===4&&a.jsx(a.Fragment,{children:a.jsxs("div",{className:"space-y-3",children:[a.jsx("h3",{className:"font-heading font-semibold",children:t("partnerApply.reviewTitle")}),a.jsx("p",{className:"text-sm text-muted-foreground",children:t("partnerApply.reviewDesc")}),a.jsxs("div",{className:"bg-muted/30 rounded-lg p-4 space-y-2 text-sm",children:[a.jsxs("div",{children:[a.jsx("span",{className:"font-medium",children:t("partnerApply.reviewName")})," ",o.full_legal_name]}),a.jsxs("div",{children:[a.jsx("span",{className:"font-medium",children:t("partnerApply.reviewEmail")})," ",o.email]}),a.jsxs("div",{children:[a.jsx("span",{className:"font-medium",children:t("partnerApply.reviewPhone")})," ",o.phone||"â"]}),a.jsxs("div",{children:[a.jsx("span",{className:"font-medium",children:t("partnerApply.reviewCountry")})," ",o.country]}),a.jsxs("div",{children:[a.jsx("span",{className:"font-medium",children:t("partnerApply.reviewType")})," ",o.applicant_type]}),o.company_name&&a.jsxs("div",{children:[a.jsx("span",{className:"font-medium",children:t("partnerApply.reviewCompany")})," ",o.company_name]}),a.jsxs("div",{children:[a.jsx("span",{className:"font-medium",children:t("partnerApply.reviewIndustries")})," ",o.relevant_industries.join(", ")||"â"]}
1309),a.jsxs("div",{children:[a.jsx("span",{className:"font-medium",children:t("partnerApply.reviewProducts")})," ",o.preferred_products.join(", ")||"â"]}),a.jsxs("div",{children:[a.jsx("span",{className:"font-medium",children:t("partnerApply.reviewLanguages")})," ",o.languages.join(", ")||"â"]}),a.jsxs("div",{children:[a.jsx("span",{className:"font-medium",children:t("partnerApply.reviewAvailability")})," ",o.estimated_monthly_availability]})]}),a.jsx("div",{className:"bg-amber-50 border border-amber-200 rounded-lg p-4",children:a.jsx("p",{className:"text-xs text-amber-800",children:t("partnerApply.reviewAck")})})]})})]})]}),a.jsxs("div",{className:"flex justify-between mt-6",children:[n>0?a.jsxs(xe,{variant:"outline",onClick:()=>r(x=>x-1),className:"gap-2",children:[a.jsx(gl,{className:"w-4 h-4"})," ",t("partnerApply.back")]}):a.jsx("div",{}),a.jsx("div",{className:"flex gap-2",children:n<c.length-1?a.jsxs(a.Fragment,{children:[a.jsxs(xe,{variant:"ghost",onClick:p,className:"gap-2",children:[a.jsx(_P,{className:"w-4 h-4"})," ",t("partnerApply.saveDraft")]}),a.jsxs(xe,{onClick:()=>r(x=>x+1),disabled:!f(),className:"gap-2",children:[t("partnerApply.next")," ",a.jsx(rs,{className:"w-4 h-4"})]})]}):a.jsxs(xe,{onClick:h,disabled:i,className:"gap-2",children:[a.jsx(l0,{className:"w-4 h-4"})," ",t(i?"partnerApply.submitting":"partnerApply.submit")]})})]})]})})}const f1=[{key:"profile_completed",label:"Complete Partner Profile"},{key:"agreement_accepted",label:"Accept Partner Agreement"},{key:"payment_details_added",label:"Add Payment Details"},{key:"tax_info_added",label:"Add Tax Information"},{key:"training_completed",label:"Complete Platform Training"},{key:"brand_rules_reviewed",label:"Review Brand & Marketing Rules"},{key:"referral_link_generated",label:"Generate Referral Link"},{key:"starter_pack_downloaded",label:"Download Starter Marketing Pack"}];function lze({myApp:e,primaryLink:t,commissions:n}){const r=t?`https://governancepedia.com/r/${e.partner_code}`:"",i=e.onboarding_steps||{},s=f1.filter(d=>i[d.key]).length,o=Math.round(s/f1.length*100),l=[{label:"Link Clicks",value:e.total_clicks||0,icon:D9,color:"text-blue-600"},{label:"Registrations",value:e.total_registrations||0,icon:vie,color:"text-purple-600"},{label:"Customers",value:e.total_customers||0,icon:Mi,color:"text-indigo-600"},{label:"Qualifying Sales",value:e.total_sales||0,icon:Yl,color:"text-green-600"},{label:"Gross Revenue",value:`$${(e.gross_revenue||0).toFixed(0)}`,icon:Lo,color:"text-green-700"},{label:"Approved Commission",value:`$${(e.approved_commission||0).toFixed(0)}`,icon:fi,color:"text-green-800"},{label:"Pending Commission",value:`$${(e.pending_commission||0).toFixed(0)}`,icon:ks,color:"text-orange-600"},{label:"Paid Commission",value:`$${(e.paid_commission||0).toFixed(0)}`,icon:Lo,color:"text-primary"}],c=[...n].sort((d,f)=>new Date(f.created_date)-new Date(d.created_date)).slice(0,8),u=()=>{navigator.clipboard.writeText(r),pt.success("Referral link copied!")};return a.jsxs("div",{className:"space-y-6",children:[o<100&&a.jsx(Oe,{className:"bg-gradient-to-br from-primary to-primary/80 text-primary-foreground",children:a.jsxs(Le,{className:"p-6",children:[a.jsx("h2",{className:"text-xl font-heading font-bold mb-1",children:"Complete Your Onboarding"}),a.jsx("p",{className:"text-white/80 text-sm mb-4",children:"Complete these steps to activate your account and start earning."}),a.jsx(k0,{value:o,className:"mb-2 bg-white/20"}),a.jsxs("p",{className:"text-xs text-white/70",children:[s," of ",f1.length," steps completed (",o,"%)"]})]})}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:l.map(d=>a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx("div",{className:"flex items-center justify-between mb-2",children:a.jsx(d.icon,{className:`w-5 h-5 ${d.color}`})}),a.jsx("div",{className:"text-2xl font-bold",children:d.value}),a.jsx("p",{className:"text-xs text-muted-foreground",children:d.label})]})},d.label))}),a.jsxs("div",{className:"grid lg:grid-cols-3 gap-6",children:[a.jsxs(Oe,{className:"lg:col-span-2",children:[a.jsx(vt,{children:a.jsxs(yt,{className:"text-base flex items-center gap-2",children:[a.jsx(sd,{className:"w-4 h-4"})," Your Referral Link"]})}),a.jsx(Le,{children:r?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"flex items-center gap-2 bg-muted/50 rounded-lg p-3 mb-3",children:[a.jsx("code",{className:"text-sm flex-1 truncate",children:r}),a.jsxs(xe,{size:"sm",variant:"outline",onClick:u,className:"gap-1",children:[a.jsx(ad,{
1309className:"w-3.5 h-3.5"})," Copy"]})]}),a.jsxs("div",{className:"flex gap-2 mb-4",children:[a.jsxs(xe,{size:"sm",variant:"ghost",className:"gap-1",children:[a.jsx(Bre,{className:"w-3.5 h-3.5"})," QR Code"]}),a.jsxs(xe,{size:"sm",variant:"ghost",className:"gap-1",children:[a.jsx(N4,{className:"w-3.5 h-3.5"})," Share"]}),a.jsxs(xe,{size:"sm",variant:"ghost",className:"gap-1",children:[a.jsx(sa,{className:"w-3.5 h-3.5"})," Campaign Link"]})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-4 text-center pt-3 border-t",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-lg font-bold",children:(t==null?void 0:t.total_clicks)||0}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Total Clicks"})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-lg font-bold",children:(t==null?void 0:t.total_conversions)||0}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Conversions"})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:t!=null&&t.last_used?new Date(t.last_used).toLocaleDateString():"â"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Last Used"})]})]})]}):a.jsxs("div",{className:"text-center py-6",children:[a.jsx(sd,{className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),a.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Your referral link will appear here once generated."})]})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"text-base",children:"Onboarding Checklist"})}),a.jsx(Le,{children:a.jsx("div",{className:"space-y-3",children:f1.map(d=>{const f=i[d.key];return a.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[f?a.jsx(fi,{className:"w-4 h-4 text-green-600 flex-shrink-0"}):a.jsx("div",{className:"w-4 h-4 rounded-full border-2 border-muted-foreground/30 flex-shrink-0"}),a.jsx("span",{className:f?"text-muted-foreground line-through":"",children:d.label})]},d.key)})})})]})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"text-base",children:"Recent Commission Activity"})}),a.jsx(Le,{children:c.length===0?a.jsxs("div",{className:"text-center py-8",children:[a.jsx(Kl,{className:"w-8 h-8 text-muted-foreground mx-auto mb-2"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"No commission activity yet. Share your referral link to start earning!"})]}):a.jsx("div",{className:"space-y-2",children:c.map(d=>a.jsxs("div",{className:"flex items-center justify-between text-sm border-b last:border-0 pb-2 last:pb-0",children:[a.jsxs("div",{children:[a.jsx("span",{className:"font-medium",children:d.product||d.transaction_type}),a.jsx("span",{className:"text-muted-foreground ml-2 text-xs",children:new Date(d.transaction_date||d.created_date).toLocaleDateString()})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs("span",{className:"font-medium text-green-700",children:["$",(d.commission_amount||0).toFixed(2)]}),a.jsx(at,{variant:d.status==="paid"?"default":"secondary",className:"text-[10px]",children:d.status.replace(/_/g," ")})]})]},d.id))})})]})]})}const cze=["direct","email","linkedin","facebook","instagram","youtube","tiktok","website","event","webinar","referral","other"],uze={active:"bg-green-100 text-green-800",paused:"bg-yellow-100 text-yellow-800",expired:"bg-slate-100 text-slate-600"};function dze({partnerApp:e}){const t=Ur(),[n,r]=O.useState(!1),[i,s]=O.useState({campaign_name:"",channel:"email",target_market:"",destination_page:"/",start_date:"",end_date:"",notes:""}),{data:o=[]}=Qt({queryKey:["partner-links",e==null?void 0:e.id],queryFn:()=>Ne.entities.ReferralLink.filter({partner_id:e.id},"-created_date",50),enabled:!!(e!=null&&e.id)}),l=o.filter(h=>h.link_type==="campaign"),c=o.find(h=>h.link_type==="primary"),u=Nn({mutationFn:h=>Ne.entities.ReferralLink.create({...h,partner_id:e.id,partner_email:e.email,partner_code:e.partner_code,link_type:"campaign",campaign_code:`${e.partner_code}_${h.channel.substring(0,3).toUpperCase()}_${Date.now().toString(36).substring(4,7)}`,status:"active",platform_id:"governancepedia"}),onSuccess:()=>{t.invalidateQueries({queryKey:["partner-links",e==null?void 0:e.id]}),r(!1),pt.success("Campaign link created")}}),d=Nn({mutationFn:({id:h,status:x})=>Ne.entities.ReferralLink.update(h,{status:x}),onSuccess:()=>
1309t.invalidateQueries({queryKey:["partner-links",e==null?void 0:e.id]})}),f=h=>`https://governancepedia.com/r/${h.partner_code}${h.campaign_code?`?campaign=${h.campaign_code}`:""}`,p=h=>{navigator.clipboard.writeText(h),pt.success("Link copied!")};return a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-heading font-bold",children:"Campaign Links"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Create trackable variations of your referral link."})]}),a.jsxs(xe,{onClick:()=>r(!0),className:"gap-2",children:[a.jsx(sa,{className:"w-4 h-4"})," New Campaign"]})]}),c&&a.jsx(Oe,{className:"bg-muted/30",children:a.jsx(Le,{className:"p-4",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx(sd,{className:"w-4 h-4 text-primary"}),a.jsx("span",{className:"font-medium text-sm",children:"Primary Referral Link"})]}),a.jsx("code",{className:"text-sm",children:f(c)})]}),a.jsxs(xe,{size:"sm",variant:"outline",onClick:()=>p(f(c)),className:"gap-1",children:[a.jsx(ad,{className:"w-3.5 h-3.5"})," Copy"]})]})})}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"text-base",children:["Campaign Links (",l.length,")"]})}),a.jsx(Le,{className:"p-0",children:l.length===0?a.jsxs("div",{className:"text-center py-8",children:[a.jsx(ja,{className:"w-8 h-8 text-muted-foreground mx-auto mb-2"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"No campaign links yet. Create one to track specific channels."})]}):a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"border-b",children:a.jsxs("tr",{className:"text-left text-muted-foreground",children:[a.jsx("th",{className:"px-4 py-3 font-medium",children:"Campaign"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Channel"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Clicks"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Conversions"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Status"}),a.jsx("th",{className:"px-4 py-3"})]})}),a.jsx("tbody",{children:l.map(h=>a.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/30",children:[a.jsxs("td",{className:"px-4 py-3",children:[a.jsx("p",{className:"font-medium",children:h.campaign_name}),a.jsx("code",{className:"text-xs text-muted-foreground",children:f(h)})]}),a.jsx("td",{className:"px-4 py-3 capitalize",children:h.channel}),a.jsx("td",{className:"px-4 py-3",children:h.total_clicks||0}),a.jsx("td",{className:"px-4 py-3",children:h.total_conversions||0}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(at,{className:`text-[10px] ${uze[h.status]||""}`,children:h.status})}),a.jsx("td",{className:"px-4 py-3",children:a.jsxs("div",{className:"flex gap-1",children:[a.jsx("button",{onClick:()=>p(f(h)),className:"p-1 hover:bg-accent rounded",children:a.jsx(ad,{className:"w-3.5 h-3.5"})}),a.jsx("button",{onClick:()=>d.mutate({id:h.id,status:h.status==="active"?"paused":"active"}),className:"p-1 hover:bg-accent rounded text-xs",children:h.status==="active"?"Pause":"Activate"})]})})]},h.id))})]})})]}),a.jsx(Gn,{open:n,onOpenChange:r,children:a.jsxs(zn,{className:"max-w-lg",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:"New Campaign Link"})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Campaign Name"}),a.jsx(Qe,{className:"mt-1",placeholder:"e.g. Q3 LinkedIn Outreach",value:i.campaign_name,onChange:h=>s(x=>({...x,campaign_name:h.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Channel"}),a.jsxs(Et,{value:i.channel,onValueChange:h=>s(x=>({...x,channel:h})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsx(Ct,{children:cze.map(h=>a.jsx(Ce,{value:h,className:"capitalize",children:h},h))})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Target Market"}),a.jsx(Qe,{className:"mt-1",placeholder:"e.g. DACH region compliance officers",value:i.target_market,onChange:h=>s(x=>({...x,target_market:h.target.value}))})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Start Date"}),a.jsx(Qe,{type:"date",className:"mt-1",value:i.start_date,onChange:h=>s(x=>({...x,start_date:h.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"End Date"}),a.jsx(Qe,{type:"date",className:"mt-1",value:i.end_date,onChange:h=>s(x=>({...x,end_date:h.target.value}))})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Notes"}),a.jsx(Pn,{className:"mt-1",rows:2,value:i.notes,onChange:h=>s(x=>({...x,notes:h.target.value}))})]}),a.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>r(!1),children:"Cancel"}),a.jsx(xe,{onClick:()=>u.mutate(i),disabled:!i.campaign_name||u.isPending,children:"Create Campaign"})]})]})]})})]})}const fze={pending_review:"bg-yellow-100 text-yellow-800",approved:"bg-green-100 text-green-800",rejected:"bg-red-100 text-red-800",more_info_requested:"bg-orange-100 text-orange-800",expired:"bg-slate-100 text-slate-600"};function hze({partnerApp:e}){const t=Ur(),[n,r]=O.useState(!1),[i,s]=O.useState({contact_name:"",business_email:"",company_website:"",country:"",product_interest:"",estimated_value:0,expected_timeframe:"1_3_months",supp
1309orting_notes:"",consent_confirmed:!1}),{data:o=[]}=Qt({queryKey:["partner-leads",e==null?void 0:e.id],queryFn:()=>Ne.entities.LeadRegistration.filter({partner_id:e.id},"-created_date",50),enabled:!!(e!=null&&e.id)}),l=Nn({mutationFn:c=>Ne.entities.LeadRegistration.create({...c,partner_id:e.id,partner_email:e.email,status:"pending_review",platform_id:"governancepedia"}),onSuccess:()=>{t.invalidateQueries({queryKey:["partner-leads",e==null?void 0:e.id]}),r(!1),pt.success("Lead submitted for review"),s({contact_name:"",business_email:"",company_website:"",country:"",product_interest:"",estimated_value:0,expected_timeframe:"1_3_months",supporting_notes:"",consent_confirmed:!1})}});return a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-heading font-bold",children:"Lead Registration"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Register important opportunities for protection and attribution."})]}),a.jsxs(xe,{onClick:()=>r(!0),className:"gap-2",children:[a.jsx(sa,{className:"w-4 h-4"})," Register Lead"]})]}),a.jsx(Oe,{className:"bg-blue-50 border-blue-200",children:a.jsx(Le,{className:"p-4",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx(ls,{className:"w-5 h-5 text-blue-600 flex-shrink-0 mt-0.5"}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium text-blue-900",children:"Lead Protection"}),a.jsx("p",{className:"text-xs text-blue-700 mt-1",children:`Approved leads are protected for 120 days. Transactions linked to the approved opportunity are credited to you. Duplicate checks are performed automatically â if an opportunity may already be registered, you'll see "This opportunity may already be registered and is being reviewed."`})]})]})})}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"text-base",children:["Registered Leads (",o.length,")"]})}),a.jsx(Le,{className:"p-0",children:o.length===0?a.jsxs("div",{className:"text-center py-8",children:[a.jsx(Mi,{className:"w-8 h-8 text-muted-foreground mx-auto mb-2"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"No leads registered yet. Submit an important opportunity for protection."})]}):a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"border-b",children:a.jsxs("tr",{className:"text-left text-muted-foreground",children:[a.jsx("th",{className:"px-4 py-3 font-medium",children:"Contact"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Product Interest"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Est. Value"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Timeframe"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Protection"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Status"})]})}),a.jsx("tbody",{children:o.map(c=>a.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/30",children:[a.jsxs("td",{className:"px-4 py-3",children:[a.jsx("p",{className:"font-medium",children:c.contact_name}),a.jsx("p",{className:"text-xs text-muted-foreground",children:c.business_email})]}),a.jsx("td",{className:"px-4 py-3",children:c.product_interest||"â"}),a.jsx("td",{className:"px-4 py-3",children:c.estimated_value?`$${c.estimated_value.toLocaleString()}`:"â"}),a.jsx("td",{className:"px-4 py-3 capitalize text-xs",children:(c.expected_timeframe||"").replace(/_/g," ")}),a.jsx("td",{className:"px-4 py-3 text-xs text-muted-foreground",children:c.protection_expiry?new Date(c.protection_expiry).toLocaleDateString():"â"}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(at,{className:`text-[10px] ${fze[c.status]||""}`,children:c.status.replace(/_/g," ")})})]},c.id))})]})})})]}),a.jsx(Gn,{open:n,onOpenChange:r,children:a.jsxs(zn,{className:"max-w-lg max-h-[90vh] overflow-y-auto",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:"Register a Lead"})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Contact / Company Name *"}),a.jsx(Qe,{className:"mt-1",value:i.contact_name,onChange:c=>s(u=>({...u,contact_name:c.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Business Email *"}),a.jsx(Qe,{type:"email",className:"mt-1",value:i.business_email,onChange:c=>s(u=>({...u,business_email:c.target.value}))})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Company Website"}),a.jsx(Qe,{className:"mt-1",value:i.company_website,onChange:c=>s(u=>({...u,company_website:c.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Country"}),a.jsx(Qe,{className:"mt-1",value:i.country,onChange:c=>s(u=>({...u,country:c.target.value}))})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Product Interest"}),a.jsx(Qe,{className:"mt-1",placeholder:"e.g. Risk Assessment",value:i.product_interest,onChange:c=>s(u=>({...u,product_interest:c.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Estimated Value ($)"}),a.jsx(Qe,{type:"number",className:"mt-1",value:i.estimated_value,onChange:c=>s(u=>({...u,estimated_value:Number(c.target.value)}))})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Expected Timeframe"}),a.jsxs(Et,{value:i.expected_timeframe,onValueChange:c=>s(u=>({...u,expected_timeframe:c})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"immediate",children:"Immediate"}),a.jsx(Ce,{value:"1_3_months",children:"1-3 Months"}),a.jsx(Ce,{value:"3_6_months",children:"3-6 Months"}),a.jsx(Ce,{value:"6_12_months",children:"6-12 Months"}),a.jsx(Ce,{value:"exploratory",children:"Exploratory"})]})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Supporting Notes"}),a.jsx(Pn,{className:"mt-1",rows:3,placeholder:"Context about this opportunity, existing conversations, etc.",value:i.supporting_notes,onChange:c=>s(u=>({...u,supporting_notes:c.target.value}))})]}),a.jsxs("div",{className:"flex items-start gap-3 p-3 border rounded-lg",children:[a.jsx(ml,{checked:i.consent_confirmed,onCheckedChange:c=>s(u=>({...u,consent_confirmed:c})),id:"lead-consent"}),a.jsxs("div",{children:[a.jsx(Se,{htmlFor:"lead-consent",className:"cursor-pointer text-sm",children:"Lawful Contact Confirmation"}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"I confirm I have a lawful basis to contact this prospect about Governancepedia products."})]})]}),a.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>r(!1),children:"Cancel"}),a.jsx(xe,{onClick:()=>l.mutate(i),disabled:!i.contact_name||!i.business_email||!i.consent_confirmed||l.isPending,children:"Submit Lead"})]})]})]})})]})}function pze({partnerApp:e}){const{data:t=[]}=Qt({queryKey:["partner-events",e==null?void 0:e.id],queryFn:()=>Ne.entities.ReferralEvent.filter({partner_id:e.id},"-created_date",200),enabled:!!(e!=null&&e.id)}),n={};t.forEach(s=>{s.customer_email&&s.event_type!=="click"&&(n[s.customer_email]||(n[s.customer_email]={email:s.customer_email,events:[],firstSeen:s.timestamp,status:"registered",revenue:0,attribution:"referral_link",campaign:s.campaign_id}),n[s.customer_email].events.push(s),(s.event_type==="purchase"||s.event_type==="renewal")&&(n[s.customer_email].revenue+=s.transaction_amount||0,n[s.customer_email].status="customer"),s.flag_reason&&(n[s.customer_email].status="flagged"))});const r=Object.values(n).sort((s,o)=>new Date(o.firstSeen)-new Date(s.firstSeen)),i=s=>{const[o,l]=s.split("@");return l?`${o.substring(0,2)}***@${l}`:s};return a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-heading font-bold",children:"Customer Attribution"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Customers attributed to your partner account via referral link or approved leads."})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(Mi,{className:"w-5 h-5 text-indigo-600 mb-2"}),a.jsx("div",{className:"text-2xl font-bold",children:r.length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Attributed Customers"})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(sd,{className:"w-5 h-5 text-blue-600 mb-2"}),a.jsx("div",{className:"text-2xl font-bold",children:r.filter(s=>s.attribution==="referral_link").length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Via Referral Link"})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(ls,{className:"w-5 h-5 text-purple-600 mb-2"}),a.jsxs("div",{className:"text-2xl font-bold",children:["$",r.reduce((s,o)=>s+o.revenue,0).toFixed(0)]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Eligible Revenue"})]})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"text-base",children:"Attributed Customers"})}),a.jsx(Le,{className:"p-0",children:r.length===0?a.jsxs("div",{className:"text-center py-8",children:[a.jsx(Mi,{className:"w-8 h-8 text-muted-foreground mx-auto mb-2"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"No attributed customers yet. Share your referral link to acquire customers."})]}):a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"border-b",children:a.jsxs("tr",{className:"text-left text-muted-foreground",children:[a.jsx("th",{className:"px-4 py-3 font-medium",children:"Customer Reference"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Acquisition Date"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Attribution Method"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Status"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Eligible Revenue"})]})}),a.jsx("tbody",{children:r.map(s=>a.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/30",children:[a.jsx("td",{className:"px-4 py-3 font-mono text-xs",children:i(s.email)}),a.jsx("td",{className:"px-4 py-3 text-xs",children:new Date(s.firstSeen).toLocaleDateString()}),a.jsx("td",{className:"px-4 py-3 capitalize text-xs",children:s.attribution.replace(/_/g," ")}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(at,{variant:s.status==="customer"?"default":"secondary",className:"text-[10px] capitalize",children:s.status})}),a.jsxs("td",{className:"px-4 py-3 font-medium text-green-700",children:["$",s.revenue.toFixed(2)]})]},s.email))})]})})})]}),a.jsx("p",{className:"text-xs text-muted-foreground px-1",children:"Customer emails are masked to protect privacy. Full customer details are only visible for approved sales activities."})]})}
1309const mze={tracking:"bg-blue-100 text-blue-800",pending_validation:"bg-yellow-100 text-yellow-800",approved:"bg-green-100 text-green-800",on_hold:"bg-orange-100 text-orange-800",reversed:"bg-red-100 text-red-800",paid:"bg-purple-100 text-purple-800",disputed:"bg-red-100 text-red-800"};function gze({partnerApp:e}){const[t,n]=O.useState("all"),[r,i]=O.useState("all"),{data:s=[]}=Qt({queryKey:["partner-commissions",e==null?void 0:e.id],queryFn:()=>Ne.entities.CommissionLedger.filter({partner_id:e.id},"-created_date",200),enabled:!!(e!=null&&e.id)}),o=s.filter(f=>{const p=t==="all"||f.status===t,h=r==="all"||f.transaction_type===r;return p&&h}),l=s.filter(f=>f.status==="approved").reduce((f,p)=>f+(p.commission_amount||0),0),c=s.filter(f=>f.status==="pending_validation"||f.status==="tracking").reduce((f,p)=>f+(p.commission_amount||0),0),u=s.filter(f=>f.status==="paid").reduce((f,p)=>f+(p.commission_amount||0),0),d=()=>{const f=["Date","Transaction Type","Product","Customer Ref","Gross Amount","Eligible Net","Rate","Commission","Status","Expected Payment"],p=o.map(y=>[y.transaction_date?new Date(y.transaction_date).toLocaleDateString():"",y.transaction_type,y.product,y.customer_reference,y.gross_amount,y.eligible_net_revenue,`${y.commission_rate}%`,y.commission_amount,y.status,y.expected_payment_period]),h=[f,...p].map(y=>y.join(",")).join(` 1310`),x=new Blob([h],{type:"text/csv"}),v=URL.createObjectURL(x),g=document.createElement("a");g.href=v,g.download="commission-statement.csv",g.click(),pt.success("Commission statement exported")};return a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex justify-between items-center flex-wrap gap-3",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-heading font-bold",children:"Commissions & Payments"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Your commission ledger and payment status."})]}),a.jsxs(xe,{variant:"outline",onClick:d,className:"gap-2",children:[a.jsx(Yg,{className:"w-4 h-4"})," Export Statement"]})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(ks,{className:"w-5 h-5 text-orange-600 mb-2"}),a.jsxs("div",{className:"text-2xl font-bold text-orange-600",children:["$",c.toFixed(2)]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Pending Commission"})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(fi,{className:"w-5 h-5 text-green-600 mb-2"}),a.jsxs("div",{className:"text-2xl font-bold text-green-700",children:["$",l.toFixed(2)]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Approved Commission"})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(Lo,{className:"w-5 h-5 text-purple-600 mb-2"}),a.jsxs("div",{className:"text-2xl font-bold text-purple-700",children:["$",u.toFixed(2)]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Paid Year to Date"})]})})]}),a.jsxs("div",{className:"flex gap-3",children:[a.jsxs(Et,{value:t,onValueChange:n,children:[a.jsx(Pt,{className:"w-40",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:"All Status"}),a.jsx(Ce,{value:"tracking",children:"Tracking"}),a.jsx(Ce,{value:"pending_validation",children:"Pending Validation"}),a.jsx(Ce,{value:"approved",children:"Approved"}),a.jsx(Ce,{value:"paid",children:"Paid"}),a.jsx(Ce,{value:"reversed",children:"Reversed"})]})]}),a.jsxs(Et,{value:r,onValueChange:i,children:[a.jsx(Pt,{className:"w-40",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:"All Types"}),a.jsx(Ce,{value:"first_sale",children:"First Sale"}),a.jsx(Ce,{value:"renewal",children:"Renewal"}),a.jsx(Ce,{value:"upgrade",children:"Upgrade"}),a.jsx(Ce,{value:"cross_sell",children:"Cross-sell"})]})]})]}),a.jsx(Oe,{children:a.jsx(Le,{className:"p-0",children:a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"border-b",children:a.jsxs("tr",{className:"text-left text-muted-foreground",children:[a.jsx("th",{className:"px-4 py-3 font-medium",children:"Date"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Type"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Product"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Customer"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Net Revenue"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Rate"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Commission"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Status"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:"Payment Period"})]})}),a.jsxs("tbody",{children:[o.length===0&&a.jsx("tr",{children:a.jsxs("td",{colSpan:9,className:"px-4 py-8 text-center text-muted-foreground",children:[a.jsx(Kl,{className:"w-6 h-6 text-muted-foreground mx-auto mb-2"}),"No commission entries yet. Qualifying sales will appear here."]})}),o.map(f=>a.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/30",children:[a.jsx("td",{className:"px-4 py-3 text-xs",children:f.transaction_date?new Date(f.transaction_date).toLocaleDateString():"â"}),a.jsx("td",{className:"px-4 py-3 capitalize text-xs",children:(f.transaction_type||"").replace(/_/g," ")}),a.jsx("td",{className:"px-4 py-3",children:f.product||"â"}),a.jsx("td",{className:"px-4 py-3 font-mono text-xs",children:f.customer_reference||"â"}),a.jsxs("td",{className:"px-4 py-3",children:["$",(f.eligible_net_revenue||0).toFixed(2)]}),a.jsxs("td",{className:"px-4 py-3",children:[f.commission_rate,"%"]}),a.jsxs("td",{className:"px-4 py-3 font-medium text-green-700",children:["$",(f.commission_amount||0).toFixed(2)]}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(at,{className:`text-[10px] ${mze[f.status]||""}`,children:(f.status||"").replace(/_/g," ")})}),a.jsx("td",{className:"px-4 py-3 text-xs text-muted-foreground",children:f.expected_payment_period||"â"})]},f.id))]})]})})})}),a.jsx("p",{className:"text-xs text-muted-foreground px-1",children:"Estimated amounts are subject to validation, refunds, cancellations, and commission rules. Eligible net revenue = gross amount minus taxes, refunds, chargebacks, platform-funded discounts, and processing fees."})]})}const n9=[{value:"all",label:"All Categories"},{value:"platform_overview",label:"Platform Overview"},{value:"product_fact_sheets",label:"Product Fact Sheets"},{value:"pricing",label:"Pricing"},{value:"demo_videos",label:"Demonstration Videos"},{value:"presentations",label:"Presentations"},{value:"social_graphics",label:"Social Media Graphics"},{value:"email_templates",label:"Email Templates"},{value:"linkedin_messages",label:"LinkedIn Messages"}
1310,{value:"approved_ads",label:"Approved Advertisements"},{value:"logos_brand",label:"Logos and Brand Assets"},{value:"faqs",label:"FAQs"},{value:"case_studies",label:"Case Studies"},{value:"sales_scripts",label:"Sales Scripts"},{value:"objection_handling",label:"Objection Handling"},{value:"legal_compliance",label:"Legal and Compliance"},{value:"campaign_ideas",label:"Campaign Ideas"}];function vze(){const e=Ur(),[t,n]=O.useState(""),[r,i]=O.useState("all"),{data:s=[]}=Qt({queryKey:["marketing-resources"],queryFn:()=>Ne.entities.MarketingResource.filter({status:"active"},"display_order",200)}),o=Nn({mutationFn:u=>Ne.entities.MarketingResource.update(u,{}),onSuccess:()=>e.invalidateQueries({queryKey:["marketing-resources"]})}),l=s.filter(u=>{const d=(u.title||"").toLowerCase().includes(t.toLowerCase())||(u.description||"").toLowerCase().includes(t.toLowerCase()),f=r==="all"||u.category===r;return d&&f}),c=u=>{if(u.file_url)window.open(u.file_url,"_blank");else if(u.external_link)window.open(u.external_link,"_blank");else{pt.info("Resource link not available");return}o.mutate(u.id),pt.success(`Downloading: ${u.title}`)};return a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-heading font-bold",children:"Marketing Center"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Approved marketing resources, templates, and brand assets."})]}),a.jsxs("div",{className:"flex flex-wrap gap-3",children:[a.jsxs("div",{className:"relative flex-1 max-w-sm",children:[a.jsx(eo,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),a.jsx(Qe,{placeholder:"Search resources...",className:"pl-9",value:t,onChange:u=>n(u.target.value)})]}),a.jsxs(Et,{value:r,onValueChange:i,children:[a.jsx(Pt,{className:"w-56",children:a.jsx(Tt,{})}),a.jsx(Ct,{children:n9.map(u=>a.jsx(Ce,{value:u.value,children:u.label},u.value))})]})]}),l.length===0?a.jsx(Oe,{children:a.jsxs(Le,{className:"p-8 text-center",children:[a.jsx(s0,{className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"No resources found. Marketing materials will appear here once published by your platform team."})]})}):a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:l.map(u=>{var d;return a.jsx(Oe,{className:"hover:shadow-md transition-shadow",children:a.jsxs(Le,{className:"p-4",children:[a.jsxs("div",{className:"flex items-start justify-between mb-2",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",children:u.file_url?a.jsx(Xn,{className:"w-5 h-5 text-primary"}):a.jsx(nx,{className:"w-5 h-5 text-primary"})}),a.jsx(at,{variant:"secondary",className:"text-[10px]",children:((d=n9.find(f=>f.value===u.category))==null?void 0:d.label)||u.category})]}),a.jsx("h3",{className:"font-heading font-semibold text-sm mb-1",children:u.title}),a.jsx("p",{className:"text-xs text-muted-foreground mb-3 line-clamp-2",children:u.description}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("span",{className:"text-xs text-muted-foreground",children:[u.download_count||0," downloads"]}),a.jsxs(xe,{size:"sm",variant:"outline",onClick:()=>c(u),className:"gap-1",children:[u.file_url?a.jsx(Yg,{className:"w-3.5 h-3.5"}):a.jsx(nx,{className:"w-3.5 h-3.5"}),u.file_url?"Download":"Open"]})]}),u.version&&a.jsxs("p",{className:"text-[10px] text-muted-foreground mt-2",children:["Version ",u.version]})]})},u.id)})})]})}const r9=[{value:"product_question",label:"Product Question"},{value:"demo_request",label:"Demonstration Request"},{value:"proposal_support",label:"Proposal Support"},{value:"pricing_approval",label:"Pricing Approval"},{value:"lead_attribution",label:"Lead Attribution"},{value:"commission_query",label:"Commission Query"},{value:"payment_query",label:"Payment Query"},{value:"marketing_resource",label:"Marketing Resource Request"},{value:"technical_issue",label:"Technical Issue"},{value:"other",label:"Other"}],yze={open:"bg-blue-100 text-blue-800",in_progress:"bg-yellow-100 text-yellow-800",waiting_partner:"bg-orange-100 text-orange-800",resolved:"bg-green-100 text-green-800",closed:"bg-slate-100 text-slate-600"};function xze({partnerApp:e}){const t=Ur(),[n,r]=O.useState(!1),[i,s]=O.useState(null),[o,l]=O.useState(""),[c,u]=O.useState({request_type:"product_question",subject:"",description:"",priority:"medium"}),{data:d=[]}=Qt({queryKey:["partner-cases",e==null?void 0:e.id],queryFn:()=>
1310Ne.entities.SupportCase.filter({partner_id:e.id},"-created_date",50),enabled:!!(e!=null&&e.id)}),f=Nn({mutationFn:x=>Ne.entities.SupportCase.create({...x,partner_id:e.id,partner_email:e.email,partner_name:e.full_legal_name,case_number:`PGH-${Date.now().toString(36).toUpperCase()}`,status:"open",messages:[{sender_email:e.email,sender_type:"partner",message:x.description,timestamp:new Date().toISOString()}],platform_id:"governancepedia"}),onSuccess:()=>{t.invalidateQueries({queryKey:["partner-cases",e==null?void 0:e.id]}),r(!1),pt.success("Support request submitted"),u({request_type:"product_question",subject:"",description:"",priority:"medium"})}}),p=Nn({mutationFn:({id:x,messages:v})=>Ne.entities.SupportCase.update(x,{messages:v,status:"waiting_partner"}),onSuccess:()=>{t.invalidateQueries({queryKey:["partner-cases",e==null?void 0:e.id]}),s(null),l(""),pt.success("Reply sent")}}),h=x=>{const v={sender_email:e.email,sender_type:"partner",message:o,timestamp:new Date().toISOString()};p.mutate({id:x.id,messages:[...x.messages||[],v]})};return a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-heading font-bold",children:"Support"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Get help with products, attribution, commissions, and more."})]}),a.jsxs(xe,{onClick:()=>r(!0),className:"gap-2",children:[a.jsx(sa,{className:"w-4 h-4"})," New Request"]})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"text-base",children:["Support Requests (",d.length,")"]})}),a.jsx(Le,{className:"p-0",children:d.length===0?a.jsxs("div",{className:"text-center py-8",children:[a.jsx(o0,{className:"w-8 h-8 text-muted-foreground mx-auto mb-2"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"No support requests yet."})]}):a.jsx("div",{className:"divide-y",children:d.map(x=>{var v;return a.jsxs("div",{className:"p-4 hover:bg-muted/30",children:[a.jsxs("div",{className:"flex items-start justify-between mb-2",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:x.case_number}),a.jsx(at,{className:`text-[10px] ${yze[x.status]||""}`,children:x.status.replace(/_/g," ")})]}),a.jsx("h3",{className:"font-medium text-sm mt-1",children:x.subject}),a.jsx("p",{className:"text-xs text-muted-foreground capitalize",children:((v=r9.find(g=>g.value===x.request_type))==null?void 0:v.label)||x.request_type})]}),a.jsx(at,{variant:x.priority==="urgent"?"destructive":"secondary",className:"text-[10px]",children:x.priority})]}),x.messages&&x.messages.length>0&&a.jsx("div",{className:"mt-3 space-y-2 bg-muted/30 rounded-lg p-3",children:x.messages.slice(-3).map((g,y)=>a.jsxs("div",{className:`text-xs ${g.sender_type==="partner","text-left"}`,children:[a.jsxs("span",{className:"font-medium",children:[g.sender_type==="partner"?"You":"Support Team",":"]})," ",g.message,a.jsx("span",{className:"text-muted-foreground ml-1",children:g.timestamp?new Date(g.timestamp).toLocaleDateString():""})]},y))}),a.jsx("div",{className:"mt-2",children:i===x.id?a.jsxs("div",{className:"flex gap-2",children:[a.jsx(Qe,{size:"sm",placeholder:"Type your reply...",value:o,onChange:g=>l(g.target.value)}),a.jsxs(xe,{size:"sm",onClick:()=>h(x),disabled:!o,className:"gap-1",children:[a.jsx(l0,{className:"w-3 h-3"})," Send"]}),a.jsx(xe,{size:"sm",variant:"ghost",onClick:()=>s(null),children:"Cancel"})]}):a.jsx(xe,{size:"sm",variant:"ghost",onClick:()=>s(x.id),className:"text-xs",children:"Reply"})})]},x.id)})})})]}),a.jsx(Gn,{open:n,onOpenChange:r,children:a.jsxs(zn,{className:"max-w-lg",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:"New Support Request"})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Request Type"}),a.jsxs(Et,{value:c.request_type,onValueChange:x=>u(v=>({...v,request_type:x})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsx(Ct,{children:r9.map(x=>a.jsx(Ce,{value:x.value,children:x.label},x.value))})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Subject"}),a.jsx(Qe,{className:"mt-1",value:c.subject,onChange:x=>u(v=>({...v,subject:x.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Priority"}),a.jsxs(Et,{value:c.priority,onValueChange:x=>u(v=>({...v,priority:x})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"low",children:"Low"}),a.jsx(Ce,{value:"medium",children:"Medium"}),a.jsx(Ce,{value:"high",children:"High"}),a.jsx(Ce,{value:"urgent",children:"Urgent"})]})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Description"}),a.jsx(Pn,{className:"mt-1",rows:4,value:c.description,onChange:x=>u(v=>({...v,description:x.target.value}))})]}),a.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>r(!1),children:"Cancel"}),a.jsx(xe,{onClick:()=>f.mutate(c),disabled:!c.subject||!c.description||f.isPending,children:"Submit Request"})]})]})]})})]})}const i9={onboarding:"Onboarding",platform_overview:"Platform Overview",product_training:"Product Training",sales_skills:"Sales Skills",compliance_rules:"Compliance Rules",marketing_guidelines:"Marketing Guidelines"},bze={onboarding:"bg-blue-100 text-blue-800",platform_overview:"bg-indigo-100 text-indigo-800",product_training:"bg-purple-100 text-purple-800",sales_skills:"bg-green-100 text-green-800",compliance_rules:"bg-orange-100 text-orange-800",marketing_guidelines:"bg-pink-100 text-pink-800"};function wze({partnerApp:e}){const t=Ur(),[n,r]=O.useState(null),{data:i=[]}=Qt({queryKey:["training-modules"],queryFn:()=>Ne.entities.TrainingModule.filter({status:"active"},"display_order",100)}),{data:s=[]}=Qt({queryKey:["training-completions",e==null?void 0:e.id],queryFn:()=>Ne.entities.TrainingCompletion.filter({partner_id:e.id},"-completed_at",100),enabled:!!(e!=null&&e.id)}),o={};
1310s.forEach(p=>{o[p.module_id]=p});const l=i.filter(p=>p.is_required),c=l.filter(p=>o[p.id]),u=l.length>0?Math.round(c.length/l.length*100):0,d=Nn({mutationFn:p=>Ne.entities.TrainingCompletion.create({partner_id:e.id,partner_email:e.email,module_id:p.id,module_title:p.title,completed_at:new Date().toISOString()}),onSuccess:()=>{t.invalidateQueries({queryKey:["training-completions",e==null?void 0:e.id]}),pt.success("Module marked complete"),r(null)}}),f={};return i.forEach(p=>{f[p.category]||(f[p.category]=[]),f[p.category].push(p)}),a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-heading font-bold",children:"Training Center"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Complete required modules to finish onboarding and unlock all features."})]}),a.jsx(Oe,{className:"bg-gradient-to-br from-primary to-primary/80 text-primary-foreground",children:a.jsxs(Le,{className:"p-6",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"font-heading font-bold text-lg",children:"Training Progress"}),a.jsxs("p",{className:"text-white/80 text-sm",children:[c.length," of ",l.length," required modules completed"]})]}),a.jsx(_2,{className:"w-8 h-8 text-white/80"})]}),a.jsx(k0,{value:u,className:"bg-white/20"}),a.jsxs("p",{className:"text-white/70 text-xs mt-2",children:[u,"% complete"]})]})}),Object.entries(f).map(([p,h])=>a.jsxs("div",{children:[a.jsx("h3",{className:"text-sm font-heading font-semibold text-muted-foreground uppercase tracking-wide mb-3",children:i9[p]||p}),a.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:h.map(x=>{const v=o[x.id];return a.jsx(Oe,{className:`hover:shadow-md transition-shadow ${v?"border-green-200 bg-green-50/30":""}`,children:a.jsxs(Le,{className:"p-4",children:[a.jsx("div",{className:"flex items-start justify-between mb-2",children:a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",children:v?a.jsx(fi,{className:"w-5 h-5 text-green-600"}):a.jsx(VR,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-heading font-semibold text-sm",children:x.title}),a.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[a.jsx(at,{className:`text-[10px] ${bze[x.category]||""}`,children:i9[x.category]}),x.is_required&&a.jsx(at,{variant:"secondary",className:"text-[10px]",children:"Required"})]})]})]})}),a.jsx("p",{className:"text-xs text-muted-foreground mb-3 line-clamp-2",children:x.description}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("span",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[a.jsx(ks,{className:"w-3 h-3"})," ",x.duration_minutes||10," min"]}),v?a.jsx(at,{className:"bg-green-100 text-green-800 text-[10px]",children:"Completed"}):a.jsxs(xe,{size:"sm",onClick:()=>r(x),className:"gap-1",children:[x.content_url?a.jsx(nx,{className:"w-3.5 h-3.5"}):a.jsx(as,{className:"w-3.5 h-3.5"}),x.content_url?"Start":"View"]})]})]})},x.id)})})]},p)),i.length===0&&a.jsx(Oe,{children:a.jsxs(Le,{className:"p-8 text-center",children:[a.jsx(as,{className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"No training modules available yet. Check back soon!"})]})}),a.jsx(Gn,{open:!!n,onOpenChange:p=>!p&&r(null),children:a.jsxs(zn,{className:"max-w-2xl",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:n==null?void 0:n.title})}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("p",{className:"text-sm text-muted-foreground",children:n==null?void 0:n.description}),(n==null?void 0:n.content_url)&&a.jsx("div",{className:"aspect-video bg-muted rounded-lg flex items-center justify-center",children:a.jsxs("a",{href:n.content_url,target:"_blank",rel:"noopener noreferrer",className:"flex flex-col items-center gap-2 text-primary hover:underline",children:[a.jsx(VR,{className:"w-12 h-12"}),a.jsx("span",{className:"text-sm",children:"Open training material"})]})}),a.jsxs("div",{className:"flex items-center justify-between pt-2 border-t",children:[a.jsxs("div",{className:"text-xs text-muted-foreground",children:[a.jsx(ks,{className:"w-3 h-3 inline mr-1"})," ",(n==null?void 0:n.duration_minutes)||10," minutes",(n==null?void 0:n.is_required)&&a.jsx("span",{className:"ml-3 text-orange-600",children:"Required for onboarding"})]}),a.jsxs(xe,{onClick:()=>d.mutate(n),disabled:d.isPending,className:"gap-2",children:[a.jsx(fi,{className:"w-4 h-4"})," Mark as Complete"]})]})]})]})})]})}function jze({partnerApp:e}){var v,g;const t=Ur(),[n,r]=O.useState({preferred_display_name:e.preferred_display_name||"",phone:e.phone||"",country:e.country||"",region:e.region||"",website:e.website||"",social_profiles:e.social_profiles||"",languages:(e.languages||[]).join(", ")}),[i,s]=O.useState({payment_method:"bank_transfer",account_holder_name:"",bank_name:"",iban:"",bic_swift:"",payp
1310al_email:"",tax_country:"",tax_id:"",vat_number:"",business_type:"individual",billing_address:"",invoice_email:e.email||""}),[o,l]=O.useState(((v=e.onboarding_steps)==null?void 0:v.agreement_accepted)||!1),[c,u]=O.useState(((g=e.onboarding_steps)==null?void 0:g.brand_rules_reviewed)||!1),{data:d}=Qt({queryKey:["financial-detail",e.id],queryFn:async()=>(await Ne.entities.PartnerFinancialDetail.filter({partner_id:e.id},"-created_date",1))[0],enabled:!!e.id});O.useEffect(()=>{d&&s({payment_method:d.payment_method||"bank_transfer",account_holder_name:d.account_holder_name||"",bank_name:d.bank_name||"",iban:d.iban||"",bic_swift:d.bic_swift||"",paypal_email:d.paypal_email||"",tax_country:d.tax_country||"",tax_id:d.tax_id||"",vat_number:d.vat_number||"",business_type:d.business_type||"individual",billing_address:d.billing_address||"",invoice_email:d.invoice_email||e.email||""})},[d]);const f=Nn({mutationFn:y=>Ne.entities.PartnerApplication.update(e.id,y),onSuccess:()=>{t.invalidateQueries({queryKey:["my-applications"]}),pt.success("Profile updated")}}),p=Nn({mutationFn:y=>d!=null&&d.id?Ne.entities.PartnerFinancialDetail.update(d.id,y):Ne.entities.PartnerFinancialDetail.create({...y,partner_id:e.id,partner_email:e.email}),onSuccess:()=>{t.invalidateQueries({queryKey:["financial-detail",e.id]});const y={...e.onboarding_steps,payment_details_added:!0,tax_info_added:!0};Ne.entities.PartnerApplication.update(e.id,{onboarding_steps:y}),t.invalidateQueries({queryKey:["my-applications"]}),pt.success("Financial details saved")}}),h=()=>{const y={...e.onboarding_steps,agreement_accepted:o,brand_rules_reviewed:c};f.mutate({onboarding_steps:y})},x=()=>{const y=n.languages.split(",").map(w=>w.trim()).filter(Boolean);f.mutate({preferred_display_name:n.preferred_display_name,phone:n.phone,country:n.country,region:n.region,website:n.website,social_profiles:n.social_profiles,languages:y,onboarding_steps:{...e.onboarding_steps,profile_completed:!0}})};return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl font-heading font-bold",children:"Profile & Settings"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Manage your partner profile, payment details, and onboarding tasks."})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"text-base flex items-center gap-2",children:[a.jsx(z9,{className:"w-4 h-4"})," Partner Profile"]})}),a.jsxs(Le,{className:"space-y-4",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Preferred Display Name"}),a.jsx(Qe,{className:"mt-1",value:n.preferred_display_name,onChange:y=>r(w=>({...w,preferred_display_name:y.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Phone"}),a.jsx(Qe,{className:"mt-1",value:n.phone,onChange:y=>r(w=>({...w,phone:y.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Country"}),a.jsx(Qe,{className:"mt-1",value:n.country,onChange:y=>r(w=>({...w,country:y.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Region"}),a.jsx(Qe,{className:"mt-1",value:n.region,onChange:y=>r(w=>({...w,region:y.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Website"}),a.jsx(Qe,{className:"mt-1",value:n.website,onChange:y=>r(w=>({...w,website:y.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Social Profiles"}),a.jsx(Qe,{className:"mt-1",placeholder:"LinkedIn URL",value:n.social_profiles,onChange:y=>r(w=>({...w,social_profiles:y.target.value}))})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Languages (comma-separated)"}),a.jsx(Qe,{className:"mt-1",placeholder:"en, de, fr",value:n.languages,onChange:y=>r(w=>({...w,languages:y.target.value}))})]}),a.jsxs(xe,{onClick:x,disabled:f.isPending,className:"gap-2",children:[a.jsx(_P,{className:"w-4 h-4"})," Save Profile"]})]})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"text-base flex items-center gap-2",children:[a.jsx(Xn,{className:"w-4 h-4"})," Agreement & Compliance"]})}),a.jsxs(Le,{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-start gap-3 p-3 border rounded-lg",children:[a.jsx(ml,{checked:o,onCheckedChange:l,id:"agreement"}),a.jsxs("div",{children:[a.jsx(Se,{htmlFor:"agreement",className:"cursor-pointer text-sm font-medium",children:"Partner Agreement Accepted"}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"I have read and accept the Governancepedia Partner Agreement terms and conditions."})]})]}),a.jsxs("div",{className:"flex items-start gap-3 p-3 border rounded-lg",children:[a.jsx(ml,{checked:c,onCheckedChange:u,id:"brand-rules"}),a.jsxs("div",{children:[a.jsx(Se,{htmlFor:"brand-rules",className:"cursor-pointer text-sm font-medium",children:"Brand & Marketing Rules Reviewed"}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"I understand the brand usage guidelines and approved marketing practices."})]})]}),a.jsxs(xe,{onClick:h,disabled:f.isPending,className:"gap-2",children:[a.jsx(fi,{className:"w-4 h-4"})," Save Agreement Status"]})]})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"text-base flex items-center gap-2",children:[a.jsx(R9,{className:"w-4 h-4"})," Payment & Tax Details"]}
1310)}),a.jsxs(Le,{className:"space-y-4",children:[(d==null?void 0:d.status)==="verified"&&a.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-lg p-3 flex items-center gap-2",children:[a.jsx(fi,{className:"w-4 h-4 text-green-600"}),a.jsx("p",{className:"text-sm text-green-800",children:"Your payment details have been verified."})]}),(d==null?void 0:d.status)==="rejected"&&a.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-3",children:a.jsx("p",{className:"text-sm text-red-800",children:"Your payment details need attention. Please update and resubmit."})}),a.jsxs("div",{children:[a.jsx(Se,{children:"Business Type"}),a.jsxs(Et,{value:i.business_type,onValueChange:y=>s(w=>({...w,business_type:y})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"individual",children:"Individual"}),a.jsx(Ce,{value:"freelancer",children:"Freelancer"}),a.jsx(Ce,{value:"company",children:"Company"})]})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Payment Method"}),a.jsxs(Et,{value:i.payment_method,onValueChange:y=>s(w=>({...w,payment_method:y})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"bank_transfer",children:"Bank Transfer (SEPA/IBAN)"}),a.jsx(Ce,{value:"paypal",children:"PayPal"}),a.jsx(Ce,{value:"wise",children:"Wise"}),a.jsx(Ce,{value:"other",children:"Other"})]})]})]}),i.payment_method==="bank_transfer"&&a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Account Holder Name"}),a.jsx(Qe,{className:"mt-1",value:i.account_holder_name,onChange:y=>s(w=>({...w,account_holder_name:y.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Bank Name"}),a.jsx(Qe,{className:"mt-1",value:i.bank_name,onChange:y=>s(w=>({...w,bank_name:y.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"IBAN"}),a.jsx(Qe,{className:"mt-1",value:i.iban,onChange:y=>s(w=>({...w,iban:y.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"BIC/SWIFT"}),a.jsx(Qe,{className:"mt-1",value:i.bic_swift,onChange:y=>s(w=>({...w,bic_swift:y.target.value}))})]})]}),i.payment_method==="paypal"&&a.jsxs("div",{children:[a.jsx(Se,{children:"PayPal Email"}),a.jsx(Qe,{className:"mt-1",type:"email",value:i.paypal_email,onChange:y=>s(w=>({...w,paypal_email:y.target.value}))})]}),a.jsxs("div",{className:"border-t pt-4",children:[a.jsx("p",{className:"text-sm font-medium mb-3",children:"Tax Information"}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Tax Country"}),a.jsx(Qe,{className:"mt-1",value:i.tax_country,onChange:y=>s(w=>({...w,tax_country:y.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Tax ID"}),a.jsx(Qe,{className:"mt-1",value:i.tax_id,onChange:y=>s(w=>({...w,tax_id:y.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"VAT Number (if applicable)"}),a.jsx(Qe,{className:"mt-1",value:i.vat_number,onChange:y=>s(w=>({...w,vat_number:y.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Invoice Email"}),a.jsx(Qe,{className:"mt-1",type:"email",value:i.invoice_email,onChange:y=>s(w=>({...w,invoice_email:y.target.value}))})]})]}),a.jsxs("div",{className:"mt-4",children:[a.jsx(Se,{children:"Billing Address"}),a.jsx(Pn,{className:"mt-1",rows:2,value:i.billing_address,onChange:y=>s(w=>({...w,billing_address:y.target.value}))})]})]}),a.jsxs(xe,{onClick:()=>p.mutate(i),disabled:p.isPending,className:"gap-2",children:[a.jsx(_P,{className:"w-4 h-4"})," Save Payment & Tax Details"]})]})]})]})}function _ze({partner:e}){var _,N,A,E,k,T,D;const t=Ur(),[n,r]=O.useState(!1),[i,s]=O.useState({title:"",platform:"",content_type:"",content_url:"",caption:"",notes:""}),[o,l]=O.useState(""),{data:c=[],isLoading:u}=Qt({queryKey:["creator-weekly-packs-published"],queryFn:async()=>Ne.entities.CreatorWeeklyPack.filter({generation_status:"published"},"-week_start",12)}),{data:d=[]}=Qt({queryKey:["creator-resources"],queryFn:async()=>Ne.entities.CreatorResource.filter({status:"published"},"-created_date",50)}),{data:f=[]}
1310=Qt({queryKey:["creator-campaigns"],queryFn:async()=>Ne.entities.CreatorCampaign.filter({status:"active"},"-created_date",20)}),{data:p=[]}=Qt({queryKey:["creator-assignments",e==null?void 0:e.id],queryFn:async()=>e!=null&&e.id?Ne.entities.CreatorAssignment.filter({creator_partner_id:e.id},"-created_date",20):[],enabled:!!(e!=null&&e.id)}),{data:h=[]}=Qt({queryKey:["creator-submissions",e==null?void 0:e.id],queryFn:async()=>e!=null&&e.id?Ne.entities.CreatorSubmission.filter({creator_partner_id:e.id},"-created_date",20):[],enabled:!!(e!=null&&e.id)}),x=Nn({mutationFn:async P=>Ne.entities.CreatorSubmission.create({...P,creator_partner_id:e.id,creator_email:e.email,review_status:"pending",submitted_at:new Date().toISOString(),platform_id:"governancepedia"}),onSuccess:()=>{pt.success("Content submitted! Admin will review it."),t.invalidateQueries({queryKey:["creator-submissions"]}),r(!1),s({title:"",platform:"",content_type:"",content_url:"",caption:"",notes:""})}}),v=c[0],g=d.filter(P=>P.resource_type==="content_idea"),y=d.filter(P=>P.resource_type==="script"),w=d.filter(P=>P.resource_type==="guide"||P.resource_type==="academy_module");d.filter(P=>P.resource_type==="brand_asset");const j=(P,R)=>{navigator.clipboard.writeText(P),l(R),setTimeout(()=>l(""),2e3),pt.success("Copied to clipboard!")};return a.jsxs("div",{className:"space-y-6",children:[a.jsx(Oe,{className:"border-primary/30 bg-primary/5",children:a.jsxs(Le,{className:"pt-6",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[a.jsx(Xr,{className:"w-5 h-5 text-primary"}),a.jsx("h2",{className:"font-heading text-xl font-bold",children:"Create with Governancepedia"})]}),a.jsx("p",{className:"text-muted-foreground",children:"Your Creator Resource Center gives you the ideas, scripts, resources and tools you need to create content around Governancepedia."})]})}),v&&a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs("div",{className:"flex justify-between items-start",children:[a.jsxs("div",{children:[a.jsxs(yt,{className:"flex items-center gap-2",children:[a.jsx(Xr,{className:"w-5 h-5 text-primary"}),"This Week's Creator Pack"]}),a.jsxs(Ja,{className:"mt-1",children:[v.title," â Week of ",v.week_start]})]}),a.jsx(at,{className:"bg-primary/10 text-primary",children:v.ai_generated?"AI Generated":"Curated"})]})}),a.jsxs(Le,{children:[v.summary&&a.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:v.summary}),a.jsxs("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-3",children:[((_=v.content_ideas)==null?void 0:_.length)>0&&a.jsxs("div",{className:"p-3 rounded-lg border",children:[a.jsx("p",{className:"text-xs font-semibold text-muted-foreground mb-1",children:"CONTENT IDEAS"}),a.jsx("p",{className:"text-2xl font-bold",children:v.content_ideas.length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"New Ideas"})]}),((N=v.short_scripts)==null?void 0:N.length)>0&&a.jsxs("div",{className:"p-3 rounded-lg border",children:[a.jsx("p",{className:"text-xs font-semibold text-muted-foreground mb-1",children:"SHORT SCRIPTS"}),a.jsx("p",{className:"text-2xl font-bold",children:v.short_scripts.length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Short-Form Scripts"})]}),v.long_script&&a.jsxs("div",{className:"p-3 rounded-lg border",children:[a.jsx("p",{className:"text-xs font-semibold text-muted-foreground mb-1",children:"LONG SCRIPT"}),a.jsx("p",{className:"text-2xl font-bold",children:"1"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Long-Form Script"})]}),((A=v.video_hooks)==null?void 0:A.length)>0&&a.jsxs("div",{className:"p-3 rounded-lg border",children:[a.jsx("p",{className:"text-xs font-semibold text-muted-foreground mb-1",children:"HOOKS"}),a.jsx("p",{className:"text-2xl font-bold",children:v.video_hooks.length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Video Hooks"})]}),v.creator_challenge&&a.jsxs("div",{className:"p-3 rounded-lg border bg-amber-500/5 border-amber-500/20",children:[a.jsx("p",{className:"text-xs font-semibold text-amber-600 mb-1",children:"CHALLENGE"}),a.jsx("p",{className:"text-sm font-medium",children:v.creator_challenge})]}),v.creator_tip&&a.jsxs("div",{className:"p-3 rounded-lg border bg-blue-500/5 border-blue-500/20",children:[a.jsx("p",{className:"text-xs font-semibold text-blue-600 mb-1",children:"TIP OF THE WEEK"}),a.jsx("p",{className:"text-sm",children:v.creator_tip})]})]}),((E=v.content_ideas)==null?void 0:E.length)>0&&a.jsxs("div",{className:"mt-4 space-y-2",children:[a.jsxs("p",{className:"text-sm font-semibold flex items-center gap-1",children:[a.jsx($1,{className:"w-4 h-4"})," Content Ideas"]}),v.content_ideas.map((P,R)=>{var q;return a.jsxs("div",{className:"p-3 rounded-lg bg-muted/30",children:[a.jsx("p",{className:"font-medium text-sm",children:P.title}),P.description&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:P.description}),P.hook&&a.jsxs("p",{className:"text-xs mt-1",children:[a.jsx("span",{className:"font-semibold",children:"Hook:"})," ",P.hook]}),((q=P.hashtags)==null?void 0:q.length)>0&&a.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:P.hashtags.map(M=>a.jsxs("span",{className:"text-xs text-primary",children:["#",M]},M))})]},R)})]}),((k=v.short_scripts)==null?void 0:k.length)>0&&a.jsxs("div",{className:"mt-4 space-y-2",children:[a.jsxs("p",{className:"text-sm font-semibold flex items-center gap-1",children:[a.jsx(Xn,{className:"w-4 h-4"})," Short-Form Scripts"]}),v.short_scripts.map((P,R)=>{var q;return a.jsxs("div",{className:"p-3 rounded-lg bg-muted/30",children:[a.jsxs("div",{className:"flex justify-between items-start mb-1",children:[a.jsx("p",{className:"font-medium text-sm",children:P.title}),a.jsx(at,{variant:"secondary",className:"text-xs capitalize",children:P.platform})]}),P.hook&&a.jsxs("p",{className:"text-xs font-semibold text-primary",children:["Hook: ",P.hook]}),P.full_script&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1 whitespace-pre-wrap",children:P.full_script}),P.cta&&a.jsxs("p",{className:"text-xs mt-1",children:[a.jsx("span",{className:"font-semibold",children:"CTA:"})," ",P.cta]}),((q=P.hashtags)==null?void 0:q.length)>0&&a.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:P.hashtags.map(M=>a.jsxs("span",{className:"text-xs text-primary",children:["#",M]},M))})]},R)})]}),v.long_script&&a.jsxs("div",{className:"mt-4",children:[a.jsxs("p",{className:"text-sm font-semibold flex items-center gap-1 mb-2",children:[a.jsx(Xn,{className:"w-4 h-4"})," Long-Form Script"]}),a.jsxs("div",{className:"p-3 rounded-lg bg-muted/30",children:[a.jsx("p",{className:"font-medium text-sm",children:v.long_script.title}),v.long_script.hook&&a.jsxs("p",{className:"text-xs font-semibold text-primary mt-1",children:["Hook: ",v.long_script.hook]}),v.long_script.full_script&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1 whitespace-pre-wrap",children:v.long_script.full_script}),v.long_script.cta&&a.jsxs("p",{className:"text-xs mt-1",children:[a.jsx("span",{className:"font-semibold",children:"CTA:"})," ",v.long_script.cta]})]})]}),((T=v.video_hooks)==null?void 0:T.length)>0&&a.jsxs("div",{className:"mt-4",children:[a.jsx("p",{className:"text-sm font-semibold mb-2",children:"Video Hooks"}),a.jsx("div",{className:"space-y-1",children:v.video_hooks.map((P,R)=>a.jsxs("div",{className:"flex items-center gap-2 p-2 rounded-lg bg-muted/30",children:[a.jsxs("span",{className:"text-xs font-bold text-primary",children:[R+1,"."]}
1310),a.jsx("span",{className:"text-sm",children:P}),a.jsx(xe,{size:"icon",variant:"ghost",className:"ml-auto h-6 w-6",onClick:()=>j(P,`hook-${R}`),children:o===`hook-${R}`?a.jsx(Oi,{className:"w-3 h-3"}):a.jsx(ad,{className:"w-3 h-3"})})]},R))})]}),((D=v.hashtag_suggestions)==null?void 0:D.length)>0&&a.jsxs("div",{className:"mt-4",children:[a.jsx("p",{className:"text-sm font-semibold mb-2",children:"Hashtag Suggestions"}),a.jsx("div",{className:"flex flex-wrap gap-1",children:v.hashtag_suggestions.map(P=>a.jsxs(at,{variant:"secondary",className:"text-xs",children:["#",P]},P))})]})]})]}),a.jsxs("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[a.jsx(Oe,{className:"hover:shadow-md transition-shadow cursor-pointer",onClick:()=>r(!0),children:a.jsxs(Le,{className:"pt-5 text-center",children:[a.jsx(Qu,{className:"w-8 h-8 text-primary mx-auto mb-2"}),a.jsx("p",{className:"font-medium text-sm",children:"Submit Content"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Share what you've created"})]})}),a.jsx(Oe,{className:"hover:shadow-md transition-shadow cursor-pointer",onClick:()=>window.location.href="/partner-dashboard",children:a.jsxs(Le,{className:"pt-5 text-center",children:[a.jsx(sd,{className:"w-8 h-8 text-primary mx-auto mb-2"}),a.jsx("p",{className:"font-medium text-sm",children:"Partner Tools"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Referral links & promos"})]})}),a.jsx(Oe,{className:"hover:shadow-md transition-shadow cursor-pointer",onClick:()=>window.location.href="/partner-dashboard",children:a.jsxs(Le,{className:"pt-5 text-center",children:[a.jsx(Lo,{className:"w-8 h-8 text-primary mx-auto mb-2"}),a.jsx("p",{className:"font-medium text-sm",children:"Commissions"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Your earnings"})]})}),a.jsx(Oe,{className:"hover:shadow-md transition-shadow cursor-pointer",onClick:()=>window.location.href="/partner-dashboard",children:a.jsxs(Le,{className:"pt-5 text-center",children:[a.jsx(as,{className:"w-8 h-8 text-primary mx-auto mb-2"}),a.jsx("p",{className:"font-medium text-sm",children:"Partner Resources"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Marketing materials"})]})})]}),g.length>0&&a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"flex items-center gap-2",children:[a.jsx($1,{className:"w-5 h-5"})," Content Ideas Library"]})}),a.jsx(Le,{children:a.jsx("div",{className:"grid sm:grid-cols-2 gap-3",children:g.map(P=>{var R;return a.jsxs("div",{className:"p-3 rounded-lg border",children:[a.jsx("p",{className:"font-medium text-sm",children:P.title}),P.description&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:P.description}),P.hook&&a.jsxs("p",{className:"text-xs mt-1",children:[a.jsx("span",{className:"font-semibold",children:"Hook:"})," ",P.hook]}),P.cta&&a.jsxs("p",{className:"text-xs mt-1",children:[a.jsx("span",{className:"font-semibold",children:"CTA:"})," ",P.cta]}),((R=P.hashtags)==null?void 0:R.length)>0&&a.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:P.hashtags.map(q=>a.jsxs("span",{className:"text-xs text-primary",children:["#",q]},q))})]},P.id)})})})]}),y.length>0&&a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"flex items-center gap-2",children:[a.jsx(Xn,{className:"w-5 h-5"})," Script Library"]})}),a.jsx(Le,{children:a.jsx("div",{className:"space-y-3",children:y.map(P=>a.jsxs("div",{className:"p-3 rounded-lg border",children:[a.jsxs("div",{className:"flex justify-between items-start mb-1",children:[a.jsx("p",{className:"font-medium text-sm",children:P.title}),a.jsxs("div",{className:"flex gap-1",children:[P.platform&&a.jsx(at,{variant:"secondary",className:"text-xs capitalize",children:P.platform}),P.ai_generated&&a.jsx(at,{className:"text-xs bg-purple-500/10 text-purple-600",children:"AI"})]})]}),P.hook&&a.jsxs("p",{className:"text-xs font-semibold text-primary",children:["Hook: ",P.hook]}),P.content&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1 whitespace-pre-wrap",children:P.content}),P.cta&&a.jsxs("p",{className:"text-xs mt-1",children:[a.jsx("span",{className:"font-semibold",children:"CTA:"})," ",P.cta]})]},P.id))})})]}),f.length>0&&a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"flex items-center gap-2",children:[a.jsx(yg,{className:"w-5 h-5"})," Active Campaigns"]})}),a.jsx(Le,{children:a.jsx("div",{className:"space-y-3",children:f.map(P=>a.jsxs("div",{className:"p-4 rounded-lg border",children:[a.jsx("p",{className:"font-medium",children:P.campaign_name}),a.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:P.objective}),P.content_requirement&&a.jsxs("p",{className:"text-xs mt-2",children:[a.jsx("span",{className:"font-semibold",children:"Content needed:"})," ",P.content_requirement]}),P.deadline&&a.jsxs("p",{className:"text-xs mt-1",children:[a.jsx("span",{className:"font-semibold",children:"Deadline:"})," ",P.deadline]}),P.compensation&&a.jsxs("p",{className:"text-xs mt-1",children:[a.jsx("span",{className:"font-semibold",children:"Compensation:"})," ",P.compensation]}),P.referral_link&&a.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[a.jsx(Qe,{value:P.referral_link,readOnly:!0,className:"text-xs h-8"}),a.jsx(xe,{size:"sm",variant:"outline",onClick:()=>j(P.referral_link,`campaign-${P.id}`),children:o===`campaign-${P.id}`?a.jsx(Oi,{className:"w-3 h-3"}
1310):a.jsx(ad,{className:"w-3 h-3"})})]}),P.disclosure_requirements&&a.jsxs("p",{className:"text-xs mt-2 text-amber-600",children:[a.jsx("span",{className:"font-semibold",children:"Disclosure:"})," ",P.disclosure_requirements]})]},P.id))})})]}),p.length>0&&a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"flex items-center gap-2",children:[a.jsx(_ne,{className:"w-5 h-5"})," My Assignments"]})}),a.jsx(Le,{children:a.jsx("div",{className:"space-y-2",children:p.map(P=>a.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border",children:[a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"font-medium text-sm",children:P.title}),P.instructions&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:P.instructions}),P.due_date&&a.jsxs("p",{className:"text-xs mt-1",children:[a.jsx("span",{className:"font-semibold",children:"Due:"})," ",P.due_date]})]}),a.jsx(at,{className:`text-xs ${P.status==="completed"?"bg-green-500/10 text-green-600":P.status==="in_progress"?"bg-blue-500/10 text-blue-600":P.status==="overdue"?"bg-red-500/10 text-red-600":"bg-amber-500/10 text-amber-600"}`,children:P.status.replace(/_/g," ")})]},P.id))})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsxs(yt,{className:"flex items-center gap-2",children:[a.jsx(Qu,{className:"w-5 h-5"})," My Content"]}),a.jsxs(xe,{size:"sm",className:"gap-2",onClick:()=>r(!0),children:[a.jsx(Qu,{className:"w-4 h-4"})," Submit Content"]})]})}),a.jsx(Le,{children:h.length===0?a.jsx("p",{className:"text-center text-muted-foreground py-6 text-sm",children:`No content submitted yet. Click "Submit Content" to share what you've created.`}):a.jsx("div",{className:"space-y-2",children:h.map(P=>a.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border",children:[a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"font-medium text-sm truncate",children:P.title}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mt-0.5",children:[P.platform&&a.jsx("span",{className:"capitalize",children:P.platform}),P.content_type&&a.jsxs("span",{children:["· ",P.content_type]}),P.publication_date&&a.jsxs("span",{children:["· ",P.publication_date]})]})]}),a.jsx(at,{className:`text-xs ${P.review_status==="approved"?"bg-green-500/10 text-green-600":P.review_status==="rejected"?"bg-red-500/10 text-red-600":P.review_status==="changes_requested"?"bg-orange-500/10 text-orange-600":"bg-amber-500/10 text-amber-600"}`,children:P.review_status.replace(/_/g," ")})]},P.id))})})]}),w.length>0&&a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"flex items-center gap-2",children:[a.jsx(Xg,{className:"w-5 h-5"})," Creator Academy"]})}),a.jsx(Le,{children:a.jsx("div",{className:"grid sm:grid-cols-2 gap-3",children:w.map(P=>a.jsxs("div",{className:"p-3 rounded-lg border",children:[a.jsx("p",{className:"font-medium text-sm",children:P.title}),P.description&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:P.description}),P.external_link&&a.jsx("a",{href:P.external_link,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary underline mt-1 inline-block",children:"View Resource â"})]},P.id))})})]}),a.jsx(Gn,{open:n,onOpenChange:r,children:a.jsxs(zn,{children:[a.jsx(Vn,{children:a.jsx(Wn,{children:"Submit Content"})}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Title *"}),a.jsx(Qe,{value:i.title,onChange:P=>s({...i,title:P.target.value})})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx(Se,{children:"Platform"}),a.jsx(Qe,{value:i.platform,onChange:P=>s({...i,platform:P.target.value}),placeholder:"TikTok, YouTube..."})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Content Type"}),a.jsx(Qe,{value:i.content_type,onChange:P=>s({...i,content_type:P.target.value}),placeholder:"Video, Reel, Article..."})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Content URL"}),a.jsx(Qe,{value:i.content_url,onChange:P=>s({...i,content_url:P.target.value}),placeholder:"https://..."})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Caption"}),a.jsx(Pn,{value:i.caption,onChange:P=>s({...i,caption:P.target.value}),rows:2})]}),a.jsxs("div",{children:[a.jsx(Se,{children:"Notes"}),a.jsx(Pn,{value:i.notes,onChange:P=>s({...i,notes:P.target.value}),rows:2})]})]}),a.jsxs(j0,{children:[a.jsx(xe,{variant:"outline",onClick:()=>r(!1),children:"Cancel"}),a.jsx(xe,{disabled:!i.title||x.isPending,onClick:()=>x.mutate(i),children:x.isPending?a.jsx(Mf,{className:"w-4 h-4 animate-spin"}):"Submit"})]})]})})]})}function Nze(){const e=Uf(),{t}=Zt(),{data:n}=Qt({queryKey:["auth-me"],queryFn:()=>Ne.auth.me()}),{data:r=[]}=Qt({queryKey:["my-applications"],queryFn:()=>Ne.entities.PartnerApplication.filter({email:n==null?void 0:n.email},"-created_date",10),enabled:!!(n!=null&&n.email)}),i=r.find(f=>f.status==="approved")||r[0],{data:s=[]}=Qt({queryKey:["my-referral-links",i==null?void 0:i.id],queryFn:()=>Ne.entities.ReferralLink.filter({partner_id:i.id},"-created_date",20),enabled:!!(i!=null&&i.id)}),{data:o=[]}=Qt({queryKey:["my-commissions",i==null?void 0:i.id],queryFn:()=>Ne.entities.CommissionLedger.filter({partner_id:i.id},"-created_date",50),enabled:!!(i!=null&&i.id)}),{data:l=[]}=Qt({queryKey:["partner-announcements"],queryFn:()=>Ne.entities.PartnerAnnouncement.filter({status:"active"},"-created_date",10)}),{data:c=[]}=Qt({queryKey:["my-creator-application",n==null?void 0:n.email],queryFn:()=>Ne.entities.ContentCreatorApplication.filter({email:n==null?void 0:n.email},"-created_date",1),enabled:!!(n!=null&&n.email)});if(!n)return a.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-6",children:a.jsx(Oe,{className:"max-w-md",children:a.jsxs(Le,{className:"p-8 text-center",children:[a.jsx("h2",{className:"text-xl font-heading font-bold mb-2",children:t("partnerDashboard.loginRequired")}),a.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:t("partnerDashboard.loginRequiredDesc")}),a.jsx(xe,{onClick:()=>
1310Ne.auth.redirectToLogin("/partner-dashboard"),children:t("partnerDashboard.logIn")})]})})});if(!i)return a.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-6",children:a.jsx(Oe,{className:"max-w-md",children:a.jsxs(Le,{className:"p-8 text-center",children:[a.jsx("h2",{className:"text-xl font-heading font-bold mb-2",children:t("partnerDashboard.noAccount")}),a.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:t("partnerDashboard.noAccountDesc")}),a.jsx(xe,{onClick:()=>e("/partners/apply"),children:t("partnerDashboard.applyNow")})]})})});if(i.status!=="approved")return a.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-6",children:a.jsx(Oe,{className:"max-w-md",children:a.jsxs(Le,{className:"p-8 text-center",children:[a.jsx("h2",{className:"text-xl font-heading font-bold mb-2",children:t("partnerDashboard.underReview")}),a.jsxs("p",{className:"text-muted-foreground text-sm mb-4",children:[t("partnerDashboard.appStatus")," ",a.jsx(at,{children:i.status.replace(/_/g," ")})]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:t("partnerDashboard.reviewNotify")})]})})});const u=s.find(f=>f.link_type==="primary"),d=l.filter(f=>f.audience==="all"?!0:f.audience===i.partner_type).filter(f=>!f.expires_at||new Date(f.expires_at)>new Date);return a.jsx("div",{className:"min-h-screen bg-background",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-8",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h1",{className:"text-3xl font-heading font-bold",children:t("partnerDashboard.title")}),a.jsxs("p",{className:"text-muted-foreground mt-1",children:[t("partnerDashboard.welcome")," ",i.preferred_display_name||i.full_legal_name,"!"]})]}),d.length>0&&a.jsx("div",{className:"space-y-2 mb-6",children:d.map(f=>{const p=f.priority==="urgent"?{bg:"bg-red-50 border-red-200",icon:Ap,text:"text-red-800"}:f.priority==="important"?{bg:"bg-orange-50 border-orange-200",icon:Kl,text:"text-orange-800"}:{bg:"bg-blue-50 border-blue-200",icon:L9,text:"text-blue-800"},h=p.icon;return a.jsxs("div",{className:`border rounded-lg p-4 flex items-start gap-3 ${p.bg}`,children:[a.jsx(h,{className:`w-5 h-5 flex-shrink-0 mt-0.5 ${p.text}`}),a.jsxs("div",{children:[a.jsx("p",{className:`font-medium text-sm ${p.text}`,children:f.title}),a.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:f.message})]})]},f.id)})}),i.content_creator?a.jsxs("div",{className:"mb-6 p-4 rounded-lg border border-primary/30 bg-primary/5 flex items-center gap-3",children:[a.jsx(Xr,{className:"w-5 h-5 text-primary flex-shrink-0"}),a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"font-medium text-sm",children:t("partnerDashboard.creatorApproved")}),a.jsx("p",{className:"text-xs text-muted-foreground",children:t("partnerDashboard.creatorApprovedDesc")})]})]}):(c==null?void 0:c.length)>0?a.jsxs("div",{className:"mb-6 p-4 rounded-lg border border-amber-500/30 bg-amber-500/5 flex items-center gap-3",children:[a.jsx(Xr,{className:"w-5 h-5 text-amber-500 flex-shrink-0"}),a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"font-medium text-sm",children:t("partnerDashboard.creatorUnderReview")}),a.jsxs("p",{className:"text-xs text-muted-foreground",children:[t("partnerDashboard.creatorReviewStatus")," ",c[0].application_status.replace(/_/g," "),". ",t("partnerDashboard.creatorReviewNotify")]})]})]}):a.jsxs("div",{className:"mb-6 p-4 rounded-lg border border-primary/20 bg-primary/5 flex items-center gap-3",children:[a.jsx(Qu,{className:"w-5 h-5 text-primary flex-shrink-0"}),a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"font-medium text-sm",children:t("partnerDashboard.wantCreator")}),a.jsx("p",{className:"text-xs text-muted-foreground",children:t("partnerDashboard.wantCreatorDesc")})]}),a.jsxs(xe,{size:"sm",className:"gap-2 flex-shrink-0",onClick:()=>e("/content-creators/apply"),children:[a.jsx(Xr,{className:"w-4 h-4"})," ",t("partnerDashboard.applyCreator")]})]}),a.jsxs(F0,{defaultValue:"overview",children:[a.jsxs(bv,{className:"mb-6 flex flex-wrap h-auto",children:[a.jsxs(ni,{value:"overview",className:"gap-2",children:[a.jsx(sre,{className:"w-4 h-4"})," ",t("partnerDashboard.tabOverview")]}),i.content_creator&&a.jsxs(ni,{value:"creator-center",className:"gap-2",children:[a.jsx(Xr,{className:"w-4 h-4"})," ",t("partnerDashboard.tabCreatorCenter")]}),a.jsxs(ni,{value:"campaigns",className:"gap-2",children:[a.jsx(sd,{className:"w-4 h-4"})," ",t("partnerDashboard.tabCampaigns")]}),a.jsxs(ni,{value:"leads",className:"gap-2",children:[a.jsx(z1,{className:"w-4 h-4"})," ",t("partnerDashboard.tabLeads")]}),a.jsxs(ni,{value:"customers",className:"gap-2",children:[a.jsx(Mi,{className:"w-4 h-4"})," ",t("partnerDashboard.tabCustomers")]}),a.jsxs(ni,{value:"commissions",className:"gap-2",children:[a.jsx(Lo,{className:"w-4 h-4"})," ",t("partnerDashboard.tabCommissions")]}),a.jsxs(ni,{value:"marketing",className:"gap-2",children:[a.jsx(s0,{className:"w-4 h-4"})," ",t("partnerDashboard.tabMarketing")]}),a.jsxs(ni,{value:"training",className:"gap-2",children:[a.jsx(Xg,{className:"w-4 h-4"})," ",t("partnerDashboard.tabTraining")]}),a.jsxs(ni,{value:"support",className:"gap-2",children:[a.jsx(o0,{className:"w-4 h-4"})," ",t("partnerDashboard.tabSupport")]}),a.jsxs(ni,{value:"profile",className:"gap-2",children:[a.jsx(Hre,{className:"w-4 h-4"})," ",t("partnerDashboard.tabProfile")]})]}),a.jsx(ri,{value:"overview",children:a.jsx(lze,{myApp:i,primaryLink:u,commissions:o})}),i.content_creator&&a.jsx(ri,{value:"creator-center",children:a.jsx(_ze,{partner:i})}),a.jsx(ri,{value:"campaigns",children:a.jsx(dze,{partnerApp:i})}),a.jsx(ri,{value:"leads",children:a.jsx(hze,{partnerApp:i})}),a.jsx(ri,{value:"customers",children:a.jsx(pze,{partnerApp:i})}),a.jsx(ri,{value:"commissions",children:a.jsx(gze,{partnerApp:i})}),a.jsx(ri,{value:"marketing",children:a.jsx(vze,{})}),a.jsx(ri,{value:"training",children:a.jsx(wze,{partnerApp:i})}),a.jsx(ri,{value:"support",children:a.jsx(xze,{partnerApp:i})}),a.jsx(ri,{value:"profile",children:a.jsx(jze,{partnerApp:i})})]})]})})}const a9={draft:"bg-slate-100 text-slate-600",email_verification_pending:"bg-blue-100 text-blue-800",submitted:"bg-indigo-100 text-indigo-800",under_review:"bg-yellow-100 text-yellow-800",more_info_requested:"bg-orange-100 text-orange-800",interview_requested:"bg-purple-100 text-purple-800",provisionally_approved:"bg-cyan-100 text-cyan-800",agreement_pending:"bg-amber-100 text-amber-800",approved:"bg-green-100 text-green-800",declined:"bg-red-100 text-red-800",withdrawn:"bg-slate-100 text-slate-500",suspended:"bg-orange-100 text-orange-800",terminated:"bg-red-100 text-red-800"};function Sze(e){const t=(e||"PRT").substring(0,3).toUpperCase(),n=Math.floor(100+Math.random()*900);return`${t}${n}`}function Aze(){var V;const{t:e}=Zt(),t=Ur(),[n,r]=O.useState(""),[i,s]=O.useState("all"),[o,l]=O.useState(null),[c,u]=O.useState(""),[d,f]=O.useState(!1),[p,h]=O.useState(""),[x,v]=O.useState(!1),{data:g=[]}
1310=Qt({queryKey:["partner-applications"],queryFn:()=>Ne.entities.PartnerApplication.list("-created_date",200)}),{data:y=[]}=Qt({queryKey:["commission-plans"],queryFn:()=>Ne.entities.CommissionPlan.list("-created_date",50)}),w=y.find(H=>H.is_default)||y[0],j=Nn({mutationFn:({id:H,data:Z})=>Ne.entities.PartnerApplication.update(H,Z),onSuccess:()=>{t.invalidateQueries({queryKey:["partner-applications"]}),pt.success(e("admin.applicationUpdated"))}}),_=Nn({mutationFn:H=>Ne.entities.ReferralLink.create(H)}),N=Nn({mutationFn:H=>Ne.entities.AuditLog.create(H)}),A=g.filter(H=>{const Z=(H.full_legal_name||"").toLowerCase().includes(n.toLowerCase())||(H.email||"").toLowerCase().includes(n.toLowerCase())||(H.partner_code||"").toLowerCase().includes(n.toLowerCase()),J=i==="all"||H.status===i;return Z&&J}),E=g.filter(H=>["submitted","under_review"].includes(H.status)),k=g.filter(H=>H.status==="approved"),T=k.reduce((H,Z)=>H+(Z.approved_commission||0),0),D=k.reduce((H,Z)=>H+(Z.pending_commission||0),0),P=H=>{l(H),u(H.internal_notes||""),H.status==="submitted"&&j.mutate({id:H.id,data:{status:"under_review"}})},R=async()=>{const H=Sze(o.full_legal_name),Z=o.id;await j.mutateAsync({id:Z,data:{status:"approved",partner_code:H,commission_plan_id:w==null?void 0:w.id,commission_plan_name:w==null?void 0:w.plan_name,partner_since:new Date().toISOString(),partner_type:"growth_partner",internal_notes:c,onboarding_steps:{...o.onboarding_steps,referral_link_generated:!1},onboarding_progress:0}}),await _.mutateAsync({partner_id:Z,partner_email:o.email,partner_code:H,link_type:"primary",status:"active",platform_id:"governancepedia"}),await N.mutateAsync({actor_email:"admin",actor_role:"partner_manager",action:"partner_approved",entity_type:"PartnerApplication",entity_id:Z,reason:`Approved partner ${o.full_legal_name} with code ${H}`,timestamp:new Date().toISOString()}),f(!1),l(null),pt.success(`${e("admin.partnerApprovedCode")} ${H}`)},q=async()=>{await j.mutateAsync({id:o.id,data:{status:"declined",internal_notes:`${c} 1311Decline reason: ${p}`}}),await N.mutateAsync({actor_email:"admin",actor_role:"partner_manager",action:"partner_declined",entity_type:"PartnerApplication",entity_id:o.id,reason:p,timestamp:new Date().toISOString()}),v(!1),l(null),h(""),pt.success(e("admin.applicationDeclined"))},M=[{label:e("admin.pendingReviewStat"),value:E.length,icon:ks,color:"text-yellow-600"},{label:e("admin.activePartners"),value:k.length,icon:Mi,color:"text-green-600"},{label:e("admin.approvedCommissionStat"),value:`$${T.toFixed(0)}`,icon:Lo,color:"text-green-700"},{label:e("admin.pendingCommissionStat"),value:`$${D.toFixed(0)}`,icon:Yl,color:"text-orange-600"}];return a.jsxs("div",{className:"min-h-screen bg-background p-6",children:[a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h1",{className:"text-3xl font-heading font-bold",children:e("admin.partnerMgmt")}),a.jsx("p",{className:"text-muted-foreground mt-1",children:e("admin.partnerMgmtDesc")})]}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:M.map(H=>a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx("div",{className:"flex items-center justify-between mb-2",children:a.jsx(H.icon,{className:`w-5 h-5 ${H.color}`})}),a.jsx("div",{className:"text-2xl font-bold",children:H.value}),a.jsx("p",{className:"text-xs text-muted-foreground",children:H.label})]})},H.label))}),a.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[a.jsxs("div",{className:"relative flex-1 max-w-sm",children:[a.jsx(eo,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),a.jsx(Qe,{placeholder:e("admin.searchByNameEmail"),className:"pl-9",value:n,onChange:H=>r(H.target.value)})]}),a.jsxs(Et,{value:i,onValueChange:s,children:[a.jsx(Pt,{className:"w-48",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:e("admin.allStatuses")}),a.jsx(Ce,{value:"submitted",children:e("admin.submitted")}),a.jsx(Ce,{value:"under_review",children:e("admin.underReview")}),a.jsx(Ce,{value:"approved",children:e("admin.approved")}),a.jsx(Ce,{value:"declined",children:e("admin.declined")}),a.jsx(Ce,{value:"draft",children:e("admin.draft")})]})]})]}),a.jsx(Oe,{children:a.jsx(Le,{className:"p-0",children:a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"border-b",children:a.jsxs("tr",{className:"text-left text-muted-foreground",children:[a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.nameCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.emailCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.countryCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.typeCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.codeCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.status")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.appliedCol")}),a.jsx("th",{className:"px-4 py-3"})]})}),a.jsxs("tbody",{children:[A.length===0&&a.jsx("tr",{children:a.jsx("td",{colSpan:8,className:"px-4 py-8 text-center text-muted-foreground",children:e("admin.noApplications")})}),A.map(H=>a.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/30",children:[a.jsx("td",{className:"px-4 py-3 font-medium",children:H.full_legal_name}),a.jsx("td",{className:"px-4 py-3 text-muted-foreground",children:H.email}),a.jsx("td",{className:"px-4 py-3",children:H.country||"â"}),a.jsx("td",{className:"px-4 py-3 capitalize",children:H.applicant_type}),a.jsx("td",{className:"px-4 py-3 font-mono",children:H.partner_co
1311de||"â"}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(at,{className:`text-[10px] ${a9[H.status]||""}`,children:H.status.replace(/_/g," ")})}),a.jsx("td",{className:"px-4 py-3 text-xs text-muted-foreground",children:new Date(H.created_date).toLocaleDateString()}),a.jsx("td",{className:"px-4 py-3",children:a.jsxs(xe,{size:"sm",variant:"ghost",onClick:()=>P(H),className:"gap-1",children:[a.jsx(S2,{className:"w-3.5 h-3.5"})," ",e("admin.reviewBtn")]})})]},H.id))]})]})})})})]}),o&&a.jsx(Gn,{open:!!o,onOpenChange:H=>!H&&l(null),children:a.jsxs(zn,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[a.jsx(Vn,{children:a.jsxs(Wn,{children:[e("admin.applicationReview")," â ",o.full_legal_name]})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(at,{className:a9[o.status],children:o.status.replace(/_/g," ")}),a.jsxs("span",{className:"text-xs text-muted-foreground",children:[e("admin.appliedLabel")," ",new Date(o.created_date).toLocaleDateString()]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[a.jsxs("div",{children:[a.jsxs("span",{className:"text-muted-foreground",children:[e("admin.email"),":"]})," ",o.email]}),a.jsxs("div",{children:[a.jsx("span",{className:"text-muted-foreground",children:e("admin.phoneLabel")})," ",o.phone||"â"]}),a.jsxs("div",{children:[a.jsxs("span",{className:"text-muted-foreground",children:[e("admin.countryCol"),":"]})," ",o.country]}),a.jsxs("div",{children:[a.jsxs("span",{className:"text-muted-foreground",children:[e("admin.typeCol"),":"]})," ",o.applicant_type]}),o.company_name&&a.jsxs("div",{children:[a.jsx("span",{className:"text-muted-foreground",children:e("admin.companyLabel")})," ",o.company_name]}),a.jsxs("div",{children:[a.jsx("span",{className:"text-muted-foreground",children:e("admin.websiteLabel")})," ",o.website||"â"]})]}),a.jsxs("div",{children:[a.jsx(Se,{className:"text-xs",children:e("admin.professionalBackground")}),a.jsx("p",{className:"text-sm mt-1 bg-muted/30 rounded p-3",children:o.professional_background||"â"})]}),a.jsxs("div",{children:[a.jsx(Se,{className:"text-xs",children:e("admin.growthApproach")}),a.jsx("p",{className:"text-sm mt-1 bg-muted/30 rounded p-3",children:o.growth_approach||"â"})]}),((V=o.relevant_industries)==null?void 0:V.length)>0&&a.jsxs("div",{children:[a.jsx(Se,{className:"text-xs",children:e("admin.industries")}),a.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:o.relevant_industries.map(H=>a.jsx(at,{variant:"secondary",className:"text-[10px]",children:H},H))})]}),o.partner_code&&a.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-lg p-3",children:[a.jsxs("p",{className:"text-sm",children:[a.jsx("span",{className:"font-medium",children:e("admin.partnerCodeLabel")})," ",a.jsx("code",{className:"font-mono",children:o.partner_code})]}),a.jsxs("p",{className:"text-sm",children:[a.jsx("span",{className:"font-medium",children:e("admin.commissionPlanLabel")})," ",o.commission_plan_name||"â"]}),a.jsxs("p",{className:"text-sm",children:[a.jsx("span",{className:"font-medium",children:e("admin.partnerSinceLabel")})," ",o.partner_since?new Date(o.partner_since).toLocaleDateString():"â"]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.internalReviewNotes")}),a.jsx(Pn,{className:"mt-1",rows:3,placeholder:e("admin.notesVisibleAdmins"),value:c,onChange:H=>u(H.target.value)})]}),a.jsxs("div",{className:"flex justify-between pt-2 border-t",children:[a.jsxs(xe,{variant:"destructive",onClick:()=>v(!0),className:"gap-2",children:[a.jsx(ss,{className:"w-4 h-4"})," ",e("admin.decline")]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>{j.mutate({id:o.id,data:{status:"more_info_requested",internal_notes:c}}),l(null)},children:e("admin.requestMoreInfo")}),a.jsxs(xe,{onClick:()=>f(!0),disabled:o.status==="approved",className:"gap-2",children:[a.jsx(Oi,{className:"w-4 h-4"})," ",o.status==="approved"?e("admin.alreadyApproved"):e("admin.approvePartner")]})]})]})]})]})}),a.jsx(Gn,{open:d,onOpenChange:f,children:a.jsxs(zn,{className:"max-w-md",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:e("admin.approvePartnerTitle")})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("p",{className:"text-sm text-muted-foreground",children:[e("admin.approvingWill")," ",a.jsx("strong",{children:o==null?void 0:o.full_legal_name})," ",e("admin.approvingWillSuffix")]}),a.jsxs("ul",{className:"text-sm space-y-2",children:[a.jsxs("li",{className:"flex gap-2",children:[a.jsx(Oi,{className:"w-4 h-4 text-green-600 flex-shrink-0"}),e("admin.setApproved")]}),a.jsxs("li",{className:"flex gap-2",children:[a.jsx(Oi,{className:"w-4 h-4 text-green-600 flex-shrink-0"}),e("admin.generateCode")]}),a.jsxs("li",{className:"flex gap-2",children:[a.jsx(Oi,{className:"w-4 h-4 text-green-600 flex-shrink-0"}),e("admin.createReferralLink")]}),a.jsxs("li",{className:"flex gap-2",children:[a.jsx(Oi,{className:"w-4 h-4 text-green-600 flex-shrink-0"}),e("admin.assignCommissionPlan")," ",(w==null?void 0:w.plan_name)||"Default"]}),a.jsxs("li",{className:"flex gap-2",children:[a.jsx(Oi,{className:"w-4 h-4 text-green-600 flex-shrink-0"}),e("admin.recordAudit")]})]}),a.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>f(!1),children:e("admin.cancel")}),a.jsxs(xe,{onClick:R,className:"gap-2",children:[a.jsx(Oi,{className:"w-4 h-4"})," ",e("admin.confirmApproval")]})]})]})]})}),a.jsx(Gn,{open:x,onOpenChange:v,children:a.jsxs(zn,{className:"max-w-md",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:e("admin.declineApplicationTitle")})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.reasonForDecline")}),a.jsx(Pn,{className:"mt-1",rows:3,placeholder:e("admin.declineReasonPlaceholder"),value:p,onChange:H=>h(H.target.value)})]}),a.jsxs("div",{className:"flex justify-end gap-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>v(!1),children:e("admin.cancel")}),a.jsxs(xe,{variant:"destructive",onClick:q,disabled:!p,className:"gap-2",children:[a.jsx(ss,{className:"w-4 h-4"})," ",e("admin.confirmDecline")]})]})]})]})})]})}function kze(e,t){return!e||!t?!1:e.toLowerCase().trim()===t.toLowerCase().trim()}function Pze(e){const t={};return e.forEach(n=>{const r=(n.business_email||"").toLowerCase().trim();r&&(t[r]=(t[r]||0)+1)}),new Set(Object.entries(t).filter(([,n])=>n>1).map(([n])=>n))}function Cze(e,t=[]){const n={};t.forEach(s=>{s.email&&(n[s.id]=s.email.toLowerCase().trim())});const r=Pze(e),i={};return e.forEach(s=>{const o=(s.business_email||"").toLowerCase().trim(),l=s.partner_email?s.partner_email.toLowerCase().trim():n[s.partner_id],c={isDupl
1311icate:!1,isSelfReferral:!1,reasons:[]};o&&r.has(o)&&(c.isDuplicate=!0,c.reasons.push("This opportunity may already be registered and is being reviewed.")),kze(l,o)&&(c.isSelfReferral=!0,c.reasons.push("Self-referral detected: partner email matches lead email")),(c.isDuplicate||c.isSelfReferral)&&(i[s.id]=c)}),i}const s9={pending_review:"bg-yellow-100 text-yellow-800",approved:"bg-green-100 text-green-800",rejected:"bg-red-100 text-red-800",more_info_requested:"bg-orange-100 text-orange-800",expired:"bg-slate-100 text-slate-600"};function Eze(){const{t:e}=Zt(),t=Ur(),[n,r]=O.useState(""),[i,s]=O.useState("all"),[o,l]=O.useState(null),[c,u]=O.useState(""),[d,f]=O.useState(""),{data:p=[]}=Qt({queryKey:["all-leads"],queryFn:()=>Ne.entities.LeadRegistration.list("-created_date",200)}),{data:h=[]}=Qt({queryKey:["partner-applications"],queryFn:()=>Ne.entities.PartnerApplication.filter({status:"approved"},"-created_date",200)}),x={};h.forEach(T=>{x[T.id]=T});const v=Cze(p,h),g=Nn({mutationFn:({id:T,data:D})=>Ne.entities.LeadRegistration.update(T,D),onSuccess:()=>{t.invalidateQueries({queryKey:["all-leads"]})}}),y=Nn({mutationFn:T=>Ne.entities.AuditLog.create(T)}),w=p.filter(T=>{const D=(T.contact_name||"").toLowerCase().includes(n.toLowerCase())||(T.business_email||"").toLowerCase().includes(n.toLowerCase()),P=i==="all"||T.status===i;return D&&P}),j=p.filter(T=>T.status==="pending_review").length,_=p.filter(T=>T.status==="approved").length,N=T=>{l(T),u(T.admin_notes||""),f("")},A=async()=>{const T=new Date;
1311T.setDate(T.getDate()+120),await g.mutateAsync({id:o.id,data:{status:"approved",protection_expiry:T.toISOString().split("T")[0],approved_at:new Date().toISOString(),admin_notes:c}}),await y.mutateAsync({actor_email:"admin",actor_role:"partner_manager",action:"lead_approved",entity_type:"LeadRegistration",entity_id:o.id,reason:`Approved lead for ${o.contact_name}`,timestamp:new Date().toISOString()}),pt.success(`${e("admin.leadApprovedProtected")} ${T.toLocaleDateString()}`),l(null)},E=async()=>{await g.mutateAsync({id:o.id,data:{status:"rejected",admin_notes:`${c} 1312Reject reason: ${d}`}}),await y.mutateAsync({actor_email:"admin",actor_role:"partner_manager",action:"lead_rejected",entity_type:"LeadRegistration",entity_id:o.id,reason:d,timestamp:new Date().toISOString()}),pt.success(e("admin.leadRejected")),l(null)},k=async()=>{await g.mutateAsync({id:o.id,data:{status:"more_info_requested",admin_notes:c}}),pt.success(e("admin.moreInfoRequestedToast")),l(null)};return a.jsxs("div",{className:"min-h-screen bg-background p-6",children:[a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h1",{className:"text-3xl font-heading font-bold",children:e("admin.partnerLeads")}),a.jsx("p",{className:"text-muted-foreground mt-1",children:e("admin.partnerLeadsDesc")})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-4 mb-6",children:[a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(ks,{className:"w-5 h-5 text-yellow-600 mb-2"}),a.jsx("div",{className:"text-2xl font-bold",children:j}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.pendingReviewStat")})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(ls,{className:"w-5 h-5 text-green-600 mb-2"}),a.jsx("div",{className:"text-2xl font-bold",children:_}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.approvedProtected")})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(Kl,{className:"w-5 h-5 text-orange-600 mb-2"}),a.jsx("div",{className:"text-2xl font-bold",children:p.filter(T=>T.duplicate_flag).length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.flaggedDuplicates")})]})})]}),a.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[a.jsxs("div",{className:"relative flex-1 max-w-sm",children:[a.jsx(eo,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),a.jsx(Qe,{placeholder:e("admin.searchLeads"),className:"pl-9",value:n,onChange:T=>r(T.target.value)})]}),a.jsxs(Et,{value:i,onValueChange:s,children:[a.jsx(Pt,{className:"w-40",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:e("admin.allStatus")}),a.jsx(Ce,{value:"pending_review",children:e("admin.pendingReviewStat")}),a.jsx(Ce,{value:"approved",children:e("admin.approved")}),a.jsx(Ce,{value:"rejected",children:e("admin.declined")}),a.jsx(Ce,{value:"more_info_requested",children:e("admin.moreInfoRequested")})]})]})]}),a.jsx(Oe,{children:a.jsx(Le,{className:"p-0",children:a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"border-b",children:a.jsxs("tr",{className:"text-left text-muted-foreground",children:[a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.contactCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.partnerCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.productInterestCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.estValueCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.timeframeCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.protectionCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.status")}),a.jsx("th",{className:"px-4 py-3"})]})}),a.jsxs("tbody",{children:[w.length===0&&a.jsx("tr",{children:a.jsx("td",{colSpan:8,className:"px-4 py-8 text-center text-muted-foreground",children:e("admin.noLeads")})}),w.map(T=>{var D,P,R;return a.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/30",children:[a.jsxs("td",{className:"px-4 py-3",children:[a.jsx("p",{className:"font-medium",children:T.contact_name}),a.jsx("p",{className:"text-xs text-muted-foreground",children:T.business_email}),T.duplicate_flag&&a.jsx(at,{variant:"destructive",className:"text-[10px] mt-1",children:e("admin.duplicateFlag")}),((D=v[T.id])==null?void 0:D.isSelfReferral)&&a.jsx(at,{variant:"destructive",className:"text-[10px] mt-1",children:e("admin.selfReferral")}),((P=v[T.id])==null?void 0:P.isDuplicate)&&!T.duplicate_flag&&a.jsx(at,{variant:"destructive",className:"text-[10px] mt-1",children:e("admin.duplicateEmail")})]}),a.jsx("td",{className:"px-4 py-3 text-xs",children:((R=x[T.partner_id])==null?void 0:R.full_legal_name)||T.partner_email}),a.jsx("td",{className:"px-4 py-3",children:T.product_interest||"â"}),a.jsx("td",{className:"px-4 py-3",children:T.estimated_value?`$${T.estimated_value.toLocaleStr
1312ing()}`:"â"}),a.jsx("td",{className:"px-4 py-3 text-xs capitalize",children:(T.expected_timeframe||"").replace(/_/g," ")}),a.jsx("td",{className:"px-4 py-3 text-xs",children:T.protection_expiry?new Date(T.protection_expiry).toLocaleDateString():"â"}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(at,{className:`text-[10px] ${s9[T.status]||""}`,children:T.status.replace(/_/g," ")})}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(xe,{size:"sm",variant:"ghost",onClick:()=>N(T),children:e("admin.reviewBtn")})})]},T.id)})]})]})})})})]}),o&&a.jsx(Gn,{open:!!o,onOpenChange:T=>!T&&l(null),children:a.jsxs(zn,{className:"max-w-lg max-h-[90vh] overflow-y-auto",children:[a.jsx(Vn,{children:a.jsxs(Wn,{children:[e("admin.leadReview")," â ",o.contact_name]})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[a.jsxs("div",{children:[a.jsxs("span",{className:"text-muted-foreground",children:[e("admin.email"),":"]})," ",o.business_email]}),a.jsxs("div",{children:[a.jsxs("span",{className:"text-muted-foreground",children:[e("admin.countryCol"),":"]})," ",o.country||"â"]}),a.jsxs("div",{children:[a.jsx("span",{className:"text-muted-foreground",children:e("admin.websiteLabel")})," ",o.company_website||"â"]}),a.jsxs("div",{children:[a.jsx("span",{className:"text-muted-foreground",children:e("admin.estValueLabel")})," ",o.estimated_value?`$${o.estimated_value.toLocaleString()}`:"â"]})]}),o.supporting_notes&&a.jsxs("div",{children:[a.jsx(Se,{className:"text-xs",children:e("admin.supportingNotes")}),a.jsx("p",{className:"text-sm mt-1 bg-muted/30 rounded p-3",children:o.supporting_notes})]}),o.duplicate_flag&&a.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-3",children:a.jsxs("p",{className:"text-sm text-red-800",children:[a.jsx("strong",{children:e("admin.duplicateFlagLabel")})," ",o.duplicate_reason||e("admin.duplicateDefaultReason")]})}),v[o.id]&&a.jsxs("div",{className:"bg-orange-50 border border-orange-200 rounded-lg p-3 space-y-1",children:[a.jsxs("p",{className:"text-sm font-medium text-orange-900 flex items-center gap-2",children:[a.jsx(Ap,{className:"w-4 h-4"})," ",e("admin.fraudWarnings")]}),v[o.id].reasons.map((T,D)=>a.jsxs("p",{className:"text-xs text-orange-800",children:["⢠",T]},D))]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.adminNotes")}),a.jsx(Pn,{className:"mt-1",rows:3,placeholder:e("admin.internalNotesPlaceholder"),value:c,onChange:T=>u(T.target.value)})]}),o.status==="pending_review"?a.jsxs("div",{className:"flex justify-between pt-2 border-t",children:[a.jsxs(xe,{variant:"destructive",onClick:E,disabled:!d,className:"gap-2",children:[a.jsx(ss,{className:"w-4 h-4"})," ",e("admin.decline")]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(xe,{variant:"outline",onClick:k,children:e("admin.requestMoreInfo")}),a.jsxs(xe,{onClick:A,className:"gap-2",children:[a.jsx(Oi,{className:"w-4 h-4"})," ",e("admin.approveProtect")]})]})]}):a.jsx("div",{className:"flex justify-end pt-2 border-t",children:a.jsx(at,{className:s9[o.status],children:o.status.replace(/_/g," ")})}),o.status==="pending_review"&&!d&&a.jsxs("div",{children:[a.jsx(Se,{className:"text-xs",children:e("admin.rejectReasonLabel")}),a.jsx(Qe,{className:"mt-1",placeholder:e("admin.rejectReasonPlaceholder"),value:d,onChange:T=>f(T.target.value)})]})]})]})})]})}const yP={title:"",description:"",category:"platform_overview",language:"en",file_url:"",external_link:"",version:"",publication_date:"",expiry_date:"",approved_use:"",status:"active",display_order:0};function Tze(){const{t:e}=Zt(),t=Ur(),[n,r]=O.useState(""),[i,s]=O.useState(!1),[o,l]=O.useState(null),[c,u]=O.useState(yP),d=[{value:"platform_overview",label:e("admin.catPlatformOverview")},{value:"product_fact_sheets",label:e("admin.catProductFactSheets")},{value:"pricing",label:e("admin.catPricing")},{value:"demo_videos",label:e("admin.catDemoVideos")},{value:"presentations",label:e("admin.catPresentations")},{value:"social_graphics",label:e("admin.catSocialGraphics")},{value:"email_templates",label:e("admin.catEmailTemplates")}
1312,{value:"linkedin_messages",label:e("admin.catLinkedInMessages")},{value:"approved_ads",label:e("admin.catApprovedAds")},{value:"logos_brand",label:e("admin.catLogosBrand")},{value:"faqs",label:e("admin.catFAQs")},{value:"case_studies",label:e("admin.catCaseStudies")},{value:"sales_scripts",label:e("admin.catSalesScripts")},{value:"objection_handling",label:e("admin.catObjectionHandling")},{value:"legal_compliance",label:e("admin.catLegalCompliance")},{value:"campaign_ideas",label:e("admin.catCampaignIdeas")}],{data:f=[]}=Qt({queryKey:["marketing-resources"],queryFn:()=>Ne.entities.MarketingResource.list("display_order",200)}),p=Nn({mutationFn:w=>o?Ne.entities.MarketingResource.update(o.id,w):Ne.entities.MarketingResource.create(w),onSuccess:()=>{t.invalidateQueries({queryKey:["marketing-resources"]}),s(!1),pt.success(e("admin.saved"))}}),h=Nn({mutationFn:w=>Ne.entities.MarketingResource.delete(w),onSuccess:()=>{t.invalidateQueries({queryKey:["marketing-resources"]}),pt.success(e("admin.deleted"))}}),x=Nn({mutationFn:({id:w,status:j})=>Ne.entities.MarketingResource.update(w,{status:j}),onSuccess:()=>t.invalidateQueries({queryKey:["marketing-resources"]})}),v=()=>{l(null),u(yP),s(!0)},g=w=>{l(w),u({...yP,...w}),s(!0)},y=f.filter(w=>(w.title||"").toLowerCase().includes(n.toLowerCase()));return a.jsxs("div",{className:"min-h-screen bg-background p-6",children:[a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"flex justify-between items-center mb-6",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-3xl font-heading font-bold",children:e("admin.marketingResources")}),a.jsx("p",{className:"text-muted-foreground mt-1",children:e("admin.marketingResourcesDesc")})]}),a.jsxs(xe,{onClick:v,className:"gap-2",children:[a.jsx(sa,{className:"w-4 h-4"})," ",e("admin.addResource")]})]}),a.jsxs("div",{className:"relative max-w-sm mb-4",children:[a.jsx(eo,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),a.jsx(Qe,{placeholder:e("admin.searchResources"),className:"pl-9",value:n,onChange:w=>r(w.target.value)})]}),a.jsx(Oe,{children:a.jsx(Le,{className:"p-0",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"border-b",children:a.jsxs("tr",{className:"text-left text-muted-foreground",children:[a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.titleCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.categoryColumn")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.versionCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.downloadsCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.status")}),a.jsx("th",{className:"px-4 py-3"})]})}),a.jsxs("tbody",{children:[y.length===0&&a.jsx("tr",{children:a.jsx("td",{colSpan:6,className:"px-4 py-8 text-center text-muted-foreground",children:e("admin.noResources")})}),y.map(w=>{var j;return a.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/30",children:[a.jsxs("td",{className:"px-4 py-3",children:[a.jsx("p",{className:"font-medium",children:w.title}),a.jsx("p",{className:"text-xs text-muted-foreground truncate max-w-xs",children:w.description})]}),a.jsx("td",{className:"px-4 py-3 text-xs",children:((j=d.find(_=>_.value===w.category))==null?void 0:j.label)||w.category}),a.jsx("td",{className:"px-4 py-3 text-xs",children:w.version||"â"}),a.jsx("td",{className:"px-4 py-3",children:w.download_count||0}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(at,{variant:w.status==="active"?"default":"secondary",className:"text-[10px]",children:w.status})}),a.jsx("td",{className:"px-4 py-3",children:a.jsxs("div",{className:"flex gap-1",children:[a.jsx("button",{onClick:()=>g(w),className:"p-1 hover:bg-accent rounded",children:a.jsx(md,{className:"w-3.5 h-3.5"})}),a.jsx("button",{onClick:()=>x.mutate({id:w.id,status:w.status==="active"?"archived":"active"}),className:"p-1 hover:bg-accent rounded",children:a.jsx(j2,{className:"w-3.5 h-3.5"})}),a.jsx("button",{onClick:()=>h.mutate(w.id),className:"p-1 hover:bg-destructive/10 rounded",children:a.jsx(Ps,{className:"w-3.5 h-3.5 text-destructive"})})]})})]},w.id)})]})]})})})]}),a.jsx(Gn,{open:i,onOpenChange:s,children:a.jsxs(zn,{className:"max-w-lg max-h-[90vh] overflow-y-auto",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:e(o?"admin.editResource":"admin.addMarketingResource")})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.title")}),a.jsx(Qe,{className:"mt-1",value:c.title,onChange:w=>u(j=>({...j,title:w.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.description")}),a.jsx(Pn,{className:"mt-1",rows:2,value:c.description,onChange:w=>u(j=>({...j,description:w.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.categoryColumn")}),a.jsxs(Et,{value:c.category,onValueChange:w=>u(j=>({...j,category:w})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsx(Ct,{children:d.map(w=>a.jsx(Ce,{value:w.value,children:w.label},w.value))})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.fileUrl")}),a.jsx(Qe,{className:"mt-1",placeholder:"https://...",value:c.file_url,onChange:w=>u(j=>({...j,file_url:w.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.externalLink")}),a.jsx(Qe,{className:"mt-1",placeholder:"https://...",value:c.external_link,onChange:w=>u(j=>({...j,external_link:w.target.value}))})]})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.versionCol")}),a.jsx(Qe,{className:"mt-1",value:c.version,onChange:w=>u(j=>({...j,version:w.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.publicationDate")}),a.jsx(Qe,{type:"date",className:"mt-1",value:c.publication_date,onChange:w=>u(j=>({...j,publication_date:w.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.expiryDateLabel")}),a.jsx(Qe,{type:"date",className:"mt-1",value:c.expiry_date,onChange:w=>u(j=>({...j,expiry_date:w.target.value}))})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.approvedUse")}),a.jsx(Qe,{className:"mt-1",placeholder:e("admin.approvedUsePlaceholder"),value:c.approved_use,onCh
1312ange:w=>u(j=>({...j,approved_use:w.target.value}))})]}),a.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>s(!1),children:e("admin.cancel")}),a.jsx(xe,{onClick:()=>p.mutate(c),disabled:!c.title||p.isPending,children:e(o?"admin.update":"admin.create")})]})]})]})})]})}function Oze(){const{t:e}=Zt(),t=Ur(),[n,r]=O.useState(new Set),[i,s]=O.useState(null),{data:o=[]}=Qt({queryKey:["all-commissions"],queryFn:()=>Ne.entities.CommissionLedger.list("-created_date",500)}),{data:l=[]}=Qt({queryKey:["partner-applications"],queryFn:()=>Ne.entities.PartnerApplication.filter({status:"approved"},"-created_date",200)}),c={};l.forEach(k=>{c[k.id]=k});const u=o.filter(k=>k.status==="approved"),d=o.filter(k=>k.status==="paid"),f={};u.forEach(k=>{f[k.partner_id]||(f[k.partner_id]={partner:c[k.partner_id],commissions:[],total:0}),f[k.partner_id].commissions.push(k),f[k.partner_id].total+=k.commission_amount||0});const p=Object.values(f).sort((k,T)=>T.total-k.total),h=u.reduce((k,T)=>k+(T.commission_amount||0),0),x=d.reduce((k,T)=>k+(T.commission_amount||0),0),v=p.filter(k=>k.total>=50).length,g=k=>{const T=new Set(n);T.has(k)?T.delete(k):T.add(k),r(T)},y=k=>{const T=u.filter(R=>R.partner_id===k),D=new Set(n);T.every(R=>D.has(R.id))?T.forEach(R=>D.delete(R.id)):T.forEach(R=>D.add(R.id)),r(D)},w=u.filter(k=>n.has(k.id)),j=w.reduce((k,T)=>k+(T.commission_amount||0),0),_=Nn({mutationFn:async k=>Ne.entities.CommissionLedger.bulkUpdate(k.map(T=>({id:T,status:"paid",payment_id:`PAY-${Date.now().toString(36).toUpperCase()}`,approved_by:"admin",approved_at:new Date().toISOString()}))),onSuccess:()=>{t.invalidateQueries({queryKey:["all-commissions"]}),pt.success(`${w.length} ${e("admin.commissionsMarkedPaid")}`),r(new Set),s(null)}}),N=Nn({mutationFn:k=>Ne.entities.AuditLog.create(k)}),A=async()=>{const k=Array.from(n);await _.mutateAsync(k),await N.mutateAsync({actor_email:"admin",actor_role:"finance_admin",action:"payout_processed",entity_type:"CommissionLedger",reason:`Processed payout for ${w.length} commissions totaling $${j.toFixed(2)}`,details:{commission_ids:k,total:j},timestamp:new Date().toISOString()})},E=k=>{var V;const T=["Date","Transaction Type","Product","Customer Ref","Net Revenue","Rate","Commission","Payment ID"],D=k.commissions.map(H=>[H.transaction_date?new Date(H.transaction_date).toLocaleDateString():"",H.transaction_type,H.product,H.customer_reference,H.eligible_net_revenue,`${H.commission_rate}%`,H.commission_amount,H.payment_id||""]),P=[T,...D].map(H=>H.join(",")).join(` 1313`),R=new Blob([P],{type:"text/csv"}),q=URL.createObjectURL(R),M=document.createElement("a");M.href=q,M.download=`payout-${((V=k.partner)==null?void 0:V.partner_code)||"partner"}.csv`,M.click(),pt.success(e("admin.payoutStatementExported"))};return a.jsxs("div",{className:"min-h-screen bg-background p-6",children:[a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h1",{className:"text-3xl font-heading font-bold",children:e("admin.payouts")}),a.jsx("p",{className:"text-muted-foreground mt-1",children:e("admin.payoutsDesc")})]}),a.jsxs("div",{className:"grid grid-cols-4 gap-4 mb-6",children:[a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(ks,{className:"w-5 h-5 text-green-600 mb-2"}),a.jsxs("div",{className:"text-2xl font-bold text-green-700",children:["$",h.toFixed(2)]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.approvedAwaiting")})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(g1,{className:"w-5 h-5 text-purple-600 mb-2"}),a.jsxs("div",{className:"text-2xl font-bold text-purple-700",children:["$",x.toFixed(2)]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.paidYTD")})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(fi,{className:"w-5 h-5 text-blue-600 mb-2"}),a.jsx("div",{className:"text-2xl font-bold",children:u.length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.approvedEntries")})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(Lo,{className:"w-5 h-5 text-orange-600 mb-2"}),a.jsx("div",{className:"text-2xl font-bold",children:v}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.partnersAboveMin")})]})})]}),n.size>0&&a.jsx(Oe,{className:"mb-4 bg-primary/5 border-primary/30",children:a.jsxs(Le,{className:"p-4 flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsxs("p",{className:"font-medium",children:[n.size," ",e("admin.commissionsSelected")]}),a.jsxs("p",{className:"text-sm text-muted-foreground",children:[e("admin.totalPayoutLabel")," ",a.jsxs("span",{className:"font-bold text-green-700",children:["$",j.toFixed(2)]})]})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>r(new Set),children:e("admin.clear")}),a.jsxs(xe,{onClick:()=>s(!0),className:"gap-2",children:[a.jsx(g1,{className:"w-4 h-4"})," ",e("admin.processPayout")]})]})]})}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"text-base",children:e("admin.approvedByPartner")})}),a.jsx(Le,{className:"p-0",children:p.length===0?a.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[a.jsx(fi,{className:"w-8 h-8 mx-auto mb-2"}),a.jsx("p",{className:"text-sm",children:e("admin.noApprovedCommissions")})]}):a.jsx("div",{className:"divide-y",children:p.map(k=>{var T,D,P,R;return a.jsxs("div",{className:"p-4",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(ml,{checked:k.commissions.every(q=>n.has(q.id)),onCheckedChange:()=>{var q;return y((q=k.partner)==null?void 0:q.id)}}),a.jsxs("div",{children:[a.jsx("p",{className:"font-medium text-sm",children:((T=k.partner)==null?void 0:T.full_legal_name)||((D=k.partner)==null?void 0:D.email)||e("admin.unknownPartner")}),a.jsxs("p",{className:"text-xs text-muted-foreground",children:[(P=k.partner)==null?void 0:P.partner_co
1313de," ⢠",k.commissions.length," ",e("admin.entriesLabel")]})]})]}),a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsxs("div",{className:"text-right",children:[a.jsxs("p",{className:"font-bold text-green-700",children:["$",k.total.toFixed(2)]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:k.total>=50?e("admin.aboveMinPayout"):e("admin.belowMinPayout")})]}),a.jsxs(xe,{size:"sm",variant:"ghost",onClick:()=>E(k),className:"gap-1",children:[a.jsx(Yg,{className:"w-3.5 h-3.5"})," ",e("admin.statement")]})]})]}),a.jsx("div",{className:"ml-8 overflow-x-auto",children:a.jsxs("table",{className:"w-full text-xs",children:[a.jsx("thead",{className:"text-muted-foreground",children:a.jsxs("tr",{className:"text-left border-b",children:[a.jsx("th",{className:"py-2 pr-4"}),a.jsx("th",{className:"py-2 pr-4 font-medium",children:e("admin.dateCol")}),a.jsx("th",{className:"py-2 pr-4 font-medium",children:e("admin.typeCol")}),a.jsx("th",{className:"py-2 pr-4 font-medium",children:e("admin.productCol")}),a.jsx("th",{className:"py-2 pr-4 font-medium",children:e("admin.customerCol")}),a.jsx("th",{className:"py-2 pr-4 font-medium",children:e("admin.netRevCol")}),a.jsx("th",{className:"py-2 pr-4 font-medium",children:e("admin.rateCol")}),a.jsx("th",{className:"py-2 pr-4 font-medium",children:e("admin.commissionCol")}),a.jsx("th",{className:"py-2 pr-4 font-medium",children:e("admin.payPeriodCol")})]})}),a.jsx("tbody",{children:k.commissions.map(q=>a.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/20",children:[a.jsx("td",{className:"py-2 pr-4",children:a.jsx(ml,{checked:n.has(q.id),onCheckedChange:()=>g(q.id)})}),a.jsx("td",{className:"py-2 pr-4",children:q.transaction_date?new Date(q.transaction_date).toLocaleDateString():"â"}),a.jsx("td",{className:"py-2 pr-4 capitalize",children:(q.transaction_type||"").replace(/_/g," ")}),a.jsx("td",{className:"py-2 pr-4",children:q.product||"â"}),a.jsx("td",{className:"py-2 pr-4 font-mono",children:q.customer_reference||"â"}),a.jsxs("td",{className:"py-2 pr-4",children:["$",(q.eligible_net_revenue||0).toFixed(2)]}),a.jsxs("td",{className:"py-2 pr-4",children:[q.commission_rate,"%"]}),a.jsxs("td",{className:"py-2 pr-4 font-medium text-green-700",children:["$",(q.commission_amount||0).toFixed(2)]}),a.jsx("td",{className:"py-2 pr-4 text-muted-foreground",children:q.expected_payment_period||"â"})]},q.id))})]})})]},((R=k.partner)==null?void 0:R.id)||"unknown")})})})]})]}),a.jsx(Gn,{open:!!i,onOpenChange:s,children:a.jsxs(zn,{className:"max-w-md",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:e("admin.confirmPayout")})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"bg-muted/30 rounded-lg p-4 space-y-2 text-sm",children:[a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-muted-foreground",children:e("admin.commissionsLabel")}),a.jsx("span",{className:"font-medium",children:w.length})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-muted-foreground",children:e("admin.totalAmountLabel")}),a.jsxs("span",{className:"font-bold text-green-700",children:["$",j.toFixed(2)]})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-muted-foreground",children:e("admin.currencyLabel")}),a.jsx("span",{className:"font-medium",children:"USD"})]})]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.payoutConfirmDesc")}),a.jsxs("div",{className:"flex justify-end gap-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>s(!1),children:e("admin.cancel")}),a.jsxs(xe,{onClick:A,disabled:_.isPending,className:"gap-2",children:[a.jsx(g1,{className:"w-4 h-4"})," ",e("admin.confirmPayoutBtn")]})]})]})]})})]})}const Rze=["video","document","presentation","quiz","interactive"],xP={title:"",description:"",category:"product_training",content_type:"video",content_url:"",duration_minutes:10,is_required:!0,display_order:0,status:"active",passing_score:0};function Ize(){const{t:e}=Zt(),t=Ur(),[n,r]=O.useState(!1),[i,s]=O.useState(null),[o,l]=O.useState(xP),c=[{value:"onboarding",label:e("admin.catOnboarding")},{value:"platform_overview",label:e("admin.catPlatformOverview")},{value:"product_training",label:e("admin.catProductTraining")},{value:"sales_skills",label:e("admin.catSalesSkills")},{value:"compliance_rules",label:e("admin.catComplianceRules")},{value:"marketing_guidelines",label:e("admin.catMarketingGuidelines")}],{data:u=[]}=Qt({queryKey:["training-modules"],queryFn:()=>Ne.entities.TrainingModule.list("display_order",200)}),d=Nn({mutationFn:v=>i?Ne.entities.TrainingModule.update(i.id,v):Ne.entities.TrainingModule.create(v),onSuccess:()=>{t.invalidateQueries({queryKey:["training-modules"]}),r(!1),pt.success(e("admin.saved"))}}),f=Nn({mutationFn:v=>Ne.entities.TrainingModule.delete(v),onSuccess:()=>{t.invalidateQueries({queryKey:["training-modules"]}),pt.success(e("admin.deleted"))}}),p=Nn({mutationFn:({id:v,status:g})=>Ne.entities.TrainingModule.update(v,{status:g}),onSuccess:()=>
1313t.invalidateQueries({queryKey:["training-modules"]})}),h=()=>{s(null),l(xP),r(!0)},x=v=>{s(v),l({...xP,...v}),r(!0)};return a.jsxs("div",{className:"min-h-screen bg-background p-6",children:[a.jsxs("div",{className:"max-w-5xl mx-auto",children:[a.jsxs("div",{className:"flex justify-between items-center mb-6",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-3xl font-heading font-bold",children:e("admin.trainingMgmtTitle")}),a.jsx("p",{className:"text-muted-foreground mt-1",children:e("admin.trainingMgmtDesc")})]}),a.jsxs(xe,{onClick:h,className:"gap-2",children:[a.jsx(sa,{className:"w-4 h-4"})," ",e("admin.addModule")]})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-4 mb-6",children:[a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(Xg,{className:"w-5 h-5 text-primary mb-2"}),a.jsx("div",{className:"text-2xl font-bold",children:u.length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.totalModules")})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx("div",{className:"text-2xl font-bold",children:u.filter(v=>v.is_required).length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.requiredLabel")})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx("div",{className:"text-2xl font-bold",children:u.filter(v=>v.status==="active").length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.active")})]})})]}),a.jsx(Oe,{children:a.jsx(Le,{className:"p-0",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"border-b",children:a.jsxs("tr",{className:"text-left text-muted-foreground",children:[a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.moduleColumn")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.categoryColumn")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.typeColumn")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.durationColumn")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.requiredLabel")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.status")}),a.jsx("th",{className:"px-4 py-3"})]})}),a.jsxs("tbody",{children:[u.length===0&&a.jsx("tr",{children:a.jsx("td",{colSpan:7,className:"px-4 py-8 text-center text-muted-foreground",children:e("admin.noTrainingModules")})}),u.map(v=>{var g;return a.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/30",children:[a.jsxs("td",{className:"px-4 py-3",children:[a.jsx("p",{className:"font-medium",children:v.title}),a.jsx("p",{className:"text-xs text-muted-foreground truncate max-w-xs",children:v.description})]}),a.jsx("td",{className:"px-4 py-3 text-xs",children:((g=c.find(y=>y.value===v.category))==null?void 0:g.label)||v.category}),a.jsx("td",{className:"px-4 py-3 text-xs capitalize",children:v.content_type}),a.jsxs("td",{className:"px-4 py-3 text-xs",children:[v.duration_minutes," ",e("admin.minLabel")]}),a.jsx("td",{className:"px-4 py-3",children:v.is_required?a.jsx(at,{className:"text-[10px]",children:e("admin.yesLabel")}):a.jsx("span",{className:"text-xs text-muted-foreground",children:e("admin.noLabel")})}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(at,{variant:v.status==="active"?"default":"secondary",className:"text-[10px]",children:v.status})}),a.jsx("td",{className:"px-4 py-3",children:a.jsxs("div",{className:"flex gap-1",children:[a.jsx("button",{onClick:()=>x(v),className:"p-1 hover:bg-accent rounded",children:a.jsx(md,{className:"w-3.5 h-3.5"})}),a.jsx("button",{onClick:()=>p.mutate({id:v.id,status:v.status==="active"?"archived":"active"}),className:"p-1 hover:bg-accent rounded",children:a.jsx(j2,{className:"w-3.5 h-3.5"})}),a.jsx("button",{onClick:()=>f.mutate(v.id),className:"p-1 hover:bg-destructive/10 rounded",children:a.jsx(Ps,{className:"w-3.5 h-3.5 text-destructive"})})]})})]},v.id)})]})]})})})]}),a.jsx(Gn,{open:n,onOpenChange:r,children:a.jsxs(zn,{className:"max-w-lg max-h-[90vh] overflow-y-auto",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:e(i?"admin.editModule":"admin.addTrainingModule")})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.title")}),a.jsx(Qe,{className:"mt-1",value:o.title,onChange:v=>l(g=>({...g,title:v.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.description")}),a.jsx(Pn,{className:"mt-1",rows:2,value:o.description,onChange:v=>l(g=>({...g,description:v.target.value}))})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.categoryColumn")}),a.jsxs(Et,{value:o.category,onValueChange:v=>l(g=>({...g,category:v})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}
1313),a.jsx(Ct,{children:c.map(v=>a.jsx(Ce,{value:v.value,children:v.label},v.value))})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.contentType")}),a.jsxs(Et,{value:o.content_type,onValueChange:v=>l(g=>({...g,content_type:v})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsx(Ct,{children:Rze.map(v=>a.jsx(Ce,{value:v,className:"capitalize",children:v},v))})]})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.contentUrl")}),a.jsx(Qe,{className:"mt-1",placeholder:"https://...",value:o.content_url,onChange:v=>l(g=>({...g,content_url:v.target.value}))})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.durationMinutes")}),a.jsx(Qe,{type:"number",className:"mt-1",value:o.duration_minutes,onChange:v=>l(g=>({...g,duration_minutes:Number(v.target.value)}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.displayOrder")}),a.jsx(Qe,{type:"number",className:"mt-1",value:o.display_order,onChange:v=>l(g=>({...g,display_order:Number(v.target.value)}))})]})]}),o.content_type==="quiz"&&a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.passingScore")}),a.jsx(Qe,{type:"number",className:"mt-1",value:o.passing_score,onChange:v=>l(g=>({...g,passing_score:Number(v.target.value)}))})]}),a.jsxs("div",{className:"flex items-center gap-3 p-3 border rounded-lg",children:[a.jsx(ml,{checked:o.is_required,onCheckedChange:v=>l(g=>({...g,is_required:v})),id:"required-mod"}),a.jsx(Se,{htmlFor:"required-mod",className:"cursor-pointer text-sm",children:e("admin.requiredForOnboarding")})]}),a.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>r(!1),children:e("admin.cancel")}),a.jsx(xe,{onClick:()=>d.mutate(o),disabled:!o.title||d.isPending,children:e(i?"admin.update":"admin.create")})]})]})]})})]})}const o9={open:"bg-blue-100 text-blue-800",in_progress:"bg-yellow-100 text-yellow-800",waiting_partner:"bg-orange-100 text-orange-800",resolved:"bg-green-100 text-green-800",closed:"bg-slate-100 text-slate-600"};function Lze(){var E;const{t:e}=Zt(),t=Ur(),[n,r]=O.useState(""),[i,s]=O.useState("all"),[o,l]=O.useState(null),[c,u]=O.useState(""),[d,f]=O.useState(""),p=[{value:"product_question",label:e("admin.productQuestion")},{value:"demo_request",label:e("admin.demoRequest")},{value:"proposal_support",label:e("admin.proposalSupport")},{value:"pricing_approval",label:e("admin.pricingApproval")},{value:"lead_attribution",label:e("admin.leadAttribution")},{value:"commission_query",label:e("admin.commissionQuery")},{value:"payment_query",label:e("admin.paymentQuery")},{value:"marketing_resource",label:e("admin.marketingResourceRequest")},{value:"technical_issue",label:e("admin.technicalIssue")},{value:"other",label:e("admin.otherRequest")}],{data:h=[]}=Qt({queryKey:["all-support-cases"],queryFn:()=>Ne.entities.SupportCase.list("-created_date",200)}),{data:x=[]}=Qt({queryKey:["partner-applications"],queryFn:()=>Ne.entities.PartnerApplication.filter({status:"approved"},"-created_date",200)}),v={};x.forEach(k=>{v[k.id]=k});const g=h.filter(k=>{const T=(k.subject||"").toLowerCase().includes(n.toLowerCase())||(k.partner_email||"").toLowerCase().includes(n.toLowerCase())||(k.case_number||"").toLowerCase().includes(n.toLowerCase()),D=i==="all"||k.status===i;return T&&D}),y=h.filter(k=>k.status==="open").length,w=h.filter(k=>k.status==="in_progress"||k.status==="waiting_partner").length,j=h.filter(k=>k.status==="resolved"||k.status==="closed").length,_=Nn({mutationFn:({id:k,data:T})=>Ne.entities.SupportCase.update(k,T),onSuccess:()=>{t.invalidateQueries({queryKey:["all-support-cases"]}),pt.success(e("admin.replySent")),u("")}}),N=()=>{const k={sender_email:"admin",sender_type:"admin",message:c,timestamp:new Date().toISOString()};_.mutate({id:o.id,data:{messages:[...o.messages||[],k],status:"in_progress",internal_notes:d}}),l(null)},A=(k,T)=>{const D={status:T};(T==="resolved"||T==="closed")&&(D.resolved_at=new Date().toISOString()),_.mutate({id:k,data:D}),pt.success(`${e("admin.statusUpdatedTo")||"Status updated to"} ${T.replace(/_/g," ")}`)};return a.jsxs("div",{className:"min-h-screen bg-background p-6",children:[a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h1",{className:"text-3xl font-heading font-bold",children:e("admin.partner
1313Support")}),a.jsx("p",{className:"text-muted-foreground mt-1",children:e("admin.partnerSupportDesc")})]}),a.jsxs("div",{className:"grid grid-cols-4 gap-4 mb-6",children:[a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(ks,{className:"w-5 h-5 text-blue-600 mb-2"}),a.jsx("div",{className:"text-2xl font-bold",children:y}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.open")})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(o0,{className:"w-5 h-5 text-orange-600 mb-2"}),a.jsx("div",{className:"text-2xl font-bold",children:w}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.inProgress")})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx("div",{className:"text-2xl font-bold",children:j}),a.jsxs("p",{className:"text-xs text-muted-foreground",children:[e("admin.resolved"),"/",e("admin.closedStatus")]})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx("div",{className:"text-2xl font-bold",children:h.length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.totalCases")})]})})]}),a.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[a.jsxs("div",{className:"relative flex-1 max-w-sm",children:[a.jsx(eo,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),a.jsx(Qe,{placeholder:e("admin.searchCases"),className:"pl-9",value:n,onChange:k=>r(k.target.value)})]}),a.jsxs(Et,{value:i,onValueChange:s,children:[a.jsx(Pt,{className:"w-40",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:e("admin.allStatus")}),a.jsx(Ce,{value:"open",children:e("admin.open")}),a.jsx(Ce,{value:"in_progress",children:e("admin.inProgress")}),a.jsx(Ce,{value:"waiting_partner",children:e("admin.waitingPartner")}),a.jsx(Ce,{value:"resolved",children:e("admin.resolved")}),a.jsx(Ce,{value:"closed",children:e("admin.closedStatus")})]})]})]}),a.jsx(Oe,{children:a.jsx(Le,{className:"p-0",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"border-b",children:a.jsxs("tr",{className:"text-left text-muted-foreground",children:[a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.caseCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.partnerCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.typeCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.priority")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.status")}),a.jsx("th",{className:"px-4 py-3"})]})}),a.jsxs("tbody",{children:[g.length===0&&a.jsx("tr",{children:a.jsx("td",{colSpan:6,className:"px-4 py-8 text-center text-muted-foreground",children:e("admin.noSupportCases")})}),g.map(k=>{var T,D;return a.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/30",children:[a.jsxs("td",{className:"px-4 py-3",children:[a.jsx("p",{className:"font-mono text-xs text-muted-foreground",children:k.case_number}),a.jsx("p",{className:"font-medium",children:k.subject})]}),a.jsx("td",{className:"px-4 py-3 text-xs",children:((T=v[k.partner_id])==null?void 0:T.full_legal_name)||k.partner_email}),a.jsx("td",{className:"px-4 py-3 text-xs",children:((D=p.find(P=>P.value===k.request_type))==null?void 0:D.label)||k.request_type}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(at,{variant:k.priority==="urgent"?"destructive":"secondary",className:"text-[10px]",children:k.priority})}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(at,{className:`text-[10px] ${o9[k.status]||""}`,children:k.status.replace(/_/g," ")})}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(xe,{size:"sm",variant:"ghost",onClick:()=>{l(k),f(k.internal_notes||"")},children:e("admin.open")})})]},k.id)})]})]})})})]}),o&&a.jsx(Gn,{open:!!o,onOpenChange:k=>!k&&l(null),children:a.jsxs(zn,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:o.subject})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[a.jsx(at,{className:`text-[10px] ${o9[o.status]}`,children:o.status.replace(/_/g," ")}),a.jsx(at,{variant:o.priority==="urgent"?"destructive":"secondary",className:"text-[10px]",children:o.priority}),a.jsx("span",{className:"text-muted-foreground",children:o.case_number}),a.jsx("span",{className:"text-muted-foreground",children:o.partner_name})]}),a.jsx("div",{className:"bg-muted/30 rounded-lg p-4 max-h-60 overflow-y-auto space-y-3",children:(E=o.messages)==null?void 0:E.map((k,T)=>a.jsxs("div",{className:`text-sm ${k.sender_type==="partner"?"":"bg-primary/5 p-2 rounded"}`,children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx("span",{className:"font-medium text-xs",children:k.sender_type==="partner"?o.partner_name:e("admin.supportTeam")}),a.jsx("span",{className:"text-xs text-muted-foreground",children:k.timestamp?new Date(k.timestamp).toLocaleStr
1313ing():""})]}),a.jsx("p",{children:k.message})]},T))}),a.jsxs("div",{children:[a.jsx(Se,{className:"text-sm",children:e("admin.replyToPartner")}),a.jsx(Pn,{className:"mt-1",rows:3,placeholder:e("admin.typeResponse"),value:c,onChange:k=>u(k.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{className:"text-sm",children:e("admin.internalNotesLabel")}),a.jsx(Pn,{className:"mt-1",rows:2,placeholder:e("admin.internalNotesPlaceholder"),value:d,onChange:k=>f(k.target.value)})]}),a.jsxs("div",{className:"flex items-center justify-between pt-2 border-t",children:[a.jsxs(Et,{value:o.status,onValueChange:k=>{A(o.id,k),l({...o,status:k})},children:[a.jsx(Pt,{className:"w-44",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"open",children:e("admin.open")}),a.jsx(Ce,{value:"in_progress",children:e("admin.inProgress")}),a.jsx(Ce,{value:"waiting_partner",children:e("admin.waitingPartner")}),a.jsx(Ce,{value:"resolved",children:e("admin.resolved")}),a.jsx(Ce,{value:"closed",children:e("admin.closedStatus")})]})]}),a.jsxs(xe,{onClick:N,disabled:!c,className:"gap-2",children:[a.jsx(l0,{className:"w-4 h-4"})," ",e("admin.sendReply")]})]})]})]})})]})}const l9={info:{color:"bg-blue-100 text-blue-800",icon:L9},important:{color:"bg-orange-100 text-orange-800",icon:Ap},urgent:{color:"bg-red-100 text-red-800",icon:Kl}},bP={title:"",message:"",audience:"all",priority:"info",expires_at:"",status:"active"};function Mze(){const{t:e}=Zt(),t=Ur(),[n,r]=O.useState(!1),[i,s]=O.useState(null),[o,l]=O.useState(bP),c=[{value:"all",label:e("admin.allPartners")},{value:"growth_partner",label:e("admin.growthPartners")},{value:"senior_growth_partner",label:e("admin.seniorGrowthPartners")},{value:"platform_sales_director",label:e("admin.platformSalesDirectors")},{value:"platform_operating_partner",label:e("admin.platformOperatingPartners")}],{data:u=[]}=Qt({queryKey:["partner-announcements"],queryFn:()=>Ne.entities.PartnerAnnouncement.list("-created_date",100)}),d=Nn({mutationFn:y=>i?Ne.entities.PartnerAnnouncement.update(i.id,y):Ne.entities.PartnerAnnouncement.create({...y,created_by:"admin",platform_id:"governancepedia"}),onSuccess:()=>{t.invalidateQueries({queryKey:["partner-announcements"]}),r(!1),pt.success(e("admin.saved"))}}),f=Nn({mutationFn:y=>Ne.entities.PartnerAnnouncement.delete(y),onSuccess:()=>{t.invalidateQueries({queryKey:["partner-announcements"]}),pt.success(e("admin.deleted"))}}),p=Nn({mutationFn:({id:y,status:w})=>Ne.entities.PartnerAnnouncement.update(y,{status:w}),onSuccess:()=>t.invalidateQueries({queryKey:["partner-announcements"]})}),h=()=>{s(null),l(bP),r(!0)},x=y=>{s(y),l({...bP,...y,expires_at:y.expires_at?y.expires_at.split("T")[0]:""}),r(!0)},v=u.filter(y=>y.status==="active").length,g=u.filter(y=>y.status==="active"&&y.priority==="urgent").length;return a.jsxs("div",{className:"min-h-screen bg-background p-6",children:[a.jsxs("div",{className:"max-w-5xl mx-auto",children:[a.jsxs("div",{className:"flex justify-between items-center mb-6",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-3xl font-heading font-bold",children:e("admin.partnerAnnouncements")}),a.jsx("p",{className:"text-muted-foreground mt-1",children:e("admin.announcementsDesc")})]}),a.jsxs(xe,{onClick:h,className:"gap-2",children:[a.jsx(sa,{className:"w-4 h-4"})," ",e("admin.newAnnouncement")]})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-4 mb-6",children:[a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(yg,{className:"w-5 h-5 text-primary mb-2"}),a.jsx("div",{className:"text-2xl font-bold",children:v}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.active")})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(Kl,{className:"w-5 h-5 text-red-600 mb-2"}),a.jsx("div",{className:"text-2xl font-bold",children:g}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.urgent")})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx("div",{className:"text-2xl font-bold",children:u.length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.total")})]})})]}),a.jsx(Oe,{children:a.jsx(Le,{className:"p-0",children:u.length===0?a.jsxs("div",{className:"text-center py-8",children:[a.jsx(yg,{className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:e("admin.noAnnouncements")})]}):a.jsx("div",{className:"divide-y",children:u.map(y=>{var _;const w=l9[y.priority]||l9.info,j=w.icon;return a.jsx("div",{className:"p-4 hover:bg-muted/30",children:a.jsxs("div",{className:"flex items-start justify-between mb-2",children:[a.jsxs("div",{className:"flex items-start gap-3 flex-1",children:[a.jsx("div",{className:`w-8 h-8 rounded-lg flex items-center justify-center ${w.color}`,children:a.jsx(j,{className:"w-4 h-4"})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("h3",{className:"font-heading font-semibold text-sm",children:y.title}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:y.message}),a.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[a.jsx(at,{className:`text-[10px] ${w.color}`,children:y.priority}),a.jsx(at,{variant:"secondary",className:"text-[10px]",children:((_=c.find(N=>N.value===y.audience))==null?void 0:_.label)||y.audience}),y.status==="archived"&&a.jsx(at,{variant:"secondary",className:"text-[10px]",children:e("admin.archived")}),y.expires_at&&a.jsxs("span",{className:"text-xs text-muted-foreground",children:[e("admin.expiresLabel")," ",new Date(y.expires_at).toLocaleDateString()]})]})]})]}),a.jsxs("div",{className:"flex gap-1",children:[a.jsx("button",{onClick:()=>x(y),className:"p-1 hover:bg-accent rounded",children:a.jsx(md,{className:"w-3.5 h-3.5"})}),a.jsx("button",{onClick:()=>p.mutate({id:y.id,status:y.status==="active"?"archived":"active"}),className:"p-1 hover:bg-accent rounded",children:a.jsx(j2,{className:"w-3.5 h-3.5"})}),a.jsx("button",{onClick:()=>f.mutate(y.id),className:"p-1 hover:bg-destructive/10 rounded",children:a.jsx(Ps,{className:"w-3.5 h-3.5 text-destructive"})})]})]})},y.id)})})})})]}),a.jsx(Gn,{open:n,onOpenChange:r,children:a.jsxs(zn,{className:"max-w-lg",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:e(i?"admin.editAnnouncement":"admin.newAnnouncement")})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.title")}),a.jsx(Qe,{className:"mt-1",value:o.title,onChange:y=>l(w=>({...w,title:y.target.value}))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.message")}),a.jsx(Pn,{className:"mt-1",rows:4,value:o.message,onChange:y=>l(w=>({...w,message:y.target.value}))})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.audience")}),a.jsxs(Et,{value:o.audience,onValueChange:y=>l(w=>({...w,audience:y})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsx(Ct,{children:c.map(y=>a.jsx(Ce,{value:y.value,children:y.label},y.value))})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.priority")}),a.jsxs(Et,{value:o.priority,onValueChange:y=>l(w=>({...w,priority:y})),children:[a.jsx(Pt,{className:"mt-1",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"info",children:e("admin.infoPriority")}),a.jsx(Ce,{value:"important",children:e("admin.important")}),a.jsx(Ce,{value:"urgent",children:e("admin.urgent")})]})]})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.expiryDate")}),a.jsx(Qe,{type:"date",className:"mt-1",value:o.expires_at,onChange:y=>l(w=>({...w,expires_at:y.target.value?new Date(y.target.value).toISOString():""}))})]}),a.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[a.jsx(xe,{variant:"outline",onClick:()=>r(!1),children:e("admin.cancel")}),a.jsx(xe,{onClick:()=>d.mutate(o),disabled:!o.title||!o.message||d.isPending,children:e(i?"admin.update":"admin.publishBtn")})]})]})]})})]})}const c9=["#22467b","#1990c4","#4c2e76","#b39742","#b45737"];function Dze(){const{t:e}=Zt(),t={growth_partner:e("admin.growthPartner"),senior_growth_partner:e("admin.seniorGrowthPartner"),platform_sales_director:e("admin.platformSalesDirector"),platform_operating_partner:e("admin.platformOperatingPartner")},{data:n=[]}=Qt({queryKey:["partner-applications"],queryFn:()=>Ne.entities.PartnerApplication.filter({status:"approved"},"-gross_revenue",200)}),{data:r=[]}=Qt({queryKey:["all-commissions"],queryFn:()=>Ne.entities.CommissionLedger.list("-created_date",500)}),{data:i=[]}=Qt({queryKey:["all-leads"],queryFn:()=>Ne.entities.LeadRegistration.list("-created_date",200)}),s=n.reduce((g,y)=>g+(y.gross_revenue||0),0),o=n.reduce((g,y)=>g+(y.approved_commission||0)+(y.paid_commission||0),0),l=n.reduce((g,y)=>g+(y.total_clicks||0),0),c=[...n].sort((g,y)=>(y.gross_revenue||0)-(g.gross_revenue||0)).slice(0,10),u={};
1313n.forEach(g=>{const y=g.partner_type||"growth_partner";u[y]=(u[y]||0)+1});const d=Object.entries(u).map(([g,y])=>({name:t[g]||g,value:y})),f={};r.forEach(g=>{const y=g.status||"tracking";f[y]=(f[y]||0)+1});const p=Object.entries(f).map(([g,y])=>({name:g.replace(/_/g," "),value:y})),h={};i.forEach(g=>{const y=g.status||"pending_review";h[y]=(h[y]||0)+1});const x=Object.entries(h).map(([g,y])=>({name:g.replace(/_/g," "),value:y})),v=c.slice(0,8).map(g=>({name:(g.preferred_display_name||g.full_legal_name||"Unknown").substring(0,12),revenue:g.gross_revenue||0,commission:(g.approved_commission||0)+(g.paid_commission||0)}));return a.jsx("div",{className:"min-h-screen bg-background p-6",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h1",{className:"text-3xl font-heading font-bold",children:e("admin.partnerAnalytics")}),a.jsx("p",{className:"text-muted-foreground mt-1",children:e("admin.partnerAnalyticsDesc")})]}),a.jsxs("div",{className:"grid grid-cols-4 gap-4 mb-6",children:[a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(Mi,{className:"w-5 h-5 text-indigo-600 mb-2"}),a.jsx("div",{className:"text-2xl font-bold",children:n.length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.activePartners")})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(D9,{className:"w-5 h-5 text-blue-600 mb-2"}),a.jsx("div",{className:"text-2xl font-bold",children:l.toLocaleString()}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.totalClicks")})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(Yl,{className:"w-5 h-5 text-green-600 mb-2"}),a.jsxs("div",{className:"text-2xl font-bold text-green-700",children:["$",s.toFixed(0)]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.grossRevenue")})]})}),a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx(Lo,{className:"w-5 h-5 text-purple-600 mb-2"}),a.jsxs("div",{className:"text-2xl font-bold text-purple-700",children:["$",o.toFixed(0)]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.totalCommission")})]})})]}),a.jsxs("div",{className:"grid lg:grid-cols-2 gap-6 mb-6",children:[a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"text-base",children:e("admin.topPartnersByRevenue")})}),a.jsx(Le,{children:v.length===0?a.jsx("p",{className:"text-sm text-muted-foreground text-center py-8",children:e("admin.noDataYet")}):a.jsx($h,{width:"100%",height:280,children:a.jsxs(tx,{data:v,children:[a.jsx(rg,{strokeDasharray:"3 3",stroke:"hsl(220 13% 91%)"}),a.jsx(Rf,{dataKey:"name",tick:{fontSize:10},angle:-20,textAnchor:"end",height:60}),a.jsx(If,{tick:{fontSize:10}}),a.jsx(Qa,{}),a.jsx(nd,{}),a.jsx(Qs,{dataKey:"revenue",fill:"hsl(224 67% 32%)",name:e("admin.revenueCol"),radius:[4,4,0,0]}),a.jsx(Qs,{dataKey:"commission",fill:"hsl(199 89% 48%)",name:e("admin.commissionCol"),radius:[4,4,0,0]})]})})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"text-base",children:e("admin.partnerTypeDist")})}),a.jsx(Le,{children:d.length===0?a.jsx("p",{className:"text-sm text-muted-foreground text-center py-8",children:e("admin.noDataYet")}):a.jsx($h,{width:"100%",height:280,children:a.jsxs(gee,{children:[a.jsx(nu,{data:d,dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",outerRadius:90,label:!0,children:d.map((g,y)=>a.jsx(R0,{fill:c9[y%c9.length]},y))}),a.jsx(Qa,{}),a.jsx(nd,{})]})})})]})]}),a.jsxs("div",{className:"grid lg:grid-cols-2 gap-6 mb-6",children:[a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"text-base",children:e("admin.commissionStatusBreakdown")})}),a.jsx(Le,{children:p.length===0?a.jsx("p",{className:"text-sm text-muted-foreground text-center py-8",children:e("admin.noDataYet")}):a.jsx($h,{width:"100%",height:240,children:a.jsxs(tx,{data:p,children:[a.jsx(rg,{strokeDasharray:"3 3",stroke:"hsl(220 13% 91%)"}),a.jsx(Rf,{dataKey:"name",tick:{fontSize:10}}),a.jsx(If,{tick:{fontSize:10}}),a.jsx(Qa,{}),a.jsx(Qs,{dataKey:"value",fill:"hsl(224 67% 45%)",radius:[4,4,0,0]})]})})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{className:"text-base",children:e("admin.leadStatusBreakdown")})}),a.jsx(Le,{children:x.length===0?a.jsx("p",{className:"text-sm text-muted-foreground text-center py-8",children:e("admin.noDataYet")}):a.jsx($h,{width:"100%",height:240,children:a.jsxs(tx,{data:x,children:[a.jsx(rg,{strokeDasharray:"3 3",stroke:"hsl(220 13% 91%)"}),a.jsx(Rf,{dataKey:"name",tick:{fontSize:10}}),a.jsx(If,{tick:{fontSize:10}}),a.jsx(Qa,{}),a.jsx(Qs,{dataKey:"value",fill:"hsl(199 89% 48%)",radius:[4,4,0,0]})]})})})]})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"text-base flex items-center gap-2",children:[a.jsx(cie,{className:"w-4 h-4 text-yellow-600"})," ",e("admin.partnerLeaderboard")]})}),a.jsx(Le,{className:"p-0",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"border-b",children:a.jsxs("tr",{className:"text-left text-muted-foreground",children:[a.jsx("th",{className:"px-4 py-3 font-medium",children:"#"}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.partnerCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.typeCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.clicksCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.customersCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.revenueCol")}),a.jsx("th",{className:"px-4 py-3 font-medium",children:e("admin.commissionCol")})]})}),a.jsxs("tbody",{children:[c.length===0&&a.jsx("tr",{children:a.jsx("td",{colSpan:7,className:"px-4 py-8 text-center text-muted-foreground",children:e("admin.noPartnersYet")})}),c.map((g,y)=>a.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/30",children:[a.jsx("td",{className:"px-4 py-3",children:y<3?a.jsx(_2,{className:`w-5 h-5 ${y===0?"text-yellow-500":y===1?"text-slate-400":"text-orange-600"}`}):a.jsx("span",{className:"text-muted-foreground font-medium",children:y+1})}),a.jsxs("td",{className:"px-4 py-3",children:[a.jsx("p",{className:"font-medium",children:g.preferred_display_name||g.full_legal_name}),a.jsx("p",{className:"text-xs text-muted-foreground",children:g.partner_co
1313de})]}),a.jsx("td",{className:"px-4 py-3",children:a.jsx(at,{variant:"secondary",className:"text-[10px]",children:t[g.partner_type]||g.partner_type})}),a.jsx("td",{className:"px-4 py-3",children:g.total_clicks||0}),a.jsx("td",{className:"px-4 py-3",children:g.total_customers||0}),a.jsxs("td",{className:"px-4 py-3 font-medium text-green-700",children:["$",(g.gross_revenue||0).toFixed(0)]}),a.jsxs("td",{className:"px-4 py-3 font-medium text-purple-700",children:["$",((g.approved_commission||0)+(g.paid_commission||0)).toFixed(0)]})]},g.id))]})]})})]})]})})}function Fze(){const{partnerCode:e}=C2(),t=Uf(),{t:n}=Zt();return O.useEffect(()=>{(async()=>{try{const i=`v_${Date.now()}_${Math.random().toString(36).substring(2,8)}`,s=`s_${Date.now()}`,o=new Date;o.setDate(o.getDate()+90),document.cookie=`gp_referral=${e}; expires=${o.toUTCString()}; path=/; SameSite=Lax`,document.cookie=`gp_visitor=${i}; expires=${o.toUTCString()}; path=/; SameSite=Lax`;const l=navigator.userAgent,c=/Mobile|Android|iPhone/.test(l)?"mobile":/iPad|Tablet/.test(l)?"tablet":"desktop";await Ne.entities.ReferralEvent.create({partner_code:e,event_type:"click",timestamp:new Date().toISOString(),landing_page:window.location.href,referring_source:document.referrer||"direct",anonymous_visitor_id:i,session_id:s,consent_status:"unknown",device_category:c,status:"tracked"})}catch(i){console.error("Referral tracking error:",i)}finally{t("/",{replace:!0})}})()},[e,t]),a.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-primary rounded-full animate-spin mx-auto mb-4"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:n("referral.redirecting")})]})})}function Bze(){const e=Uf(),{t}=Zt(),n=[{icon:$1,title:t("creator.b1Title"),desc:t("creator.b1Desc")},{icon:Xn,title:t("creator.b2Title"),desc:t("creator.b2Desc")},{icon:Xr,title:t("creator.b3Title"),desc:t("creator.b3Desc")},{icon:tre,title:t("creator.b4Title"),desc:t("creator.b4Desc")},{icon:yg,title:t("creator.b5Title"),desc:t("creator.b5Desc")},{icon:Xg,title:t("creator.b6Title"),desc:t("creator.b6Desc")},{icon:sd,title:t("creator.b7Title"),desc:t("creator.b7Desc")},{icon:Lo,title:t("creator.b8Title"),desc:t("creator.b8Desc")}],r=[{num:"1",title:t("creator.step1"),desc:t("creator.step1Desc")},{num:"2",title:t("creator.step2"),desc:t("creator.step2Desc")},{num:"3",title:t("creator.step3"),desc:t("creator.step3Desc")},{num:"4",title:t("creator.step4"),desc:t("creator.step4Desc")},{num:"5",title:t("creator.step5"),desc:t("creator.step5Desc")},{num:"6",title:t("creator.step6"),desc:t("creator.step6Desc")}],i=[{q:t("creator.cfaq1q"),a:t("creator.cfaq1a")},{q:t("creator.cfaq2q"),a:t("creator.cfaq2a")},{q:t("creator.cfaq3q"),a:t("creator.cfaq3a")},{q:t("creator.cfaq4q"),a:t("creator.cfaq4a")},{q:t("creator.cfaq5q"),a:t("creator.cfaq5a")},{q:t("creator.cfaq6q"),a:t("creator.cfaq6a")}],s=[t("creator.traitCreativity"),t("creator.traitCommunication"),t("creator.traitPersonality"),t("creator.traitCuriosity"),t("creator.traitReliability"),t("creator.traitConsistency"),t("creator.traitPotential")];return a.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-background to-muted/30",children:[a.jsxs("section",{className:"relative overflow-hidden pt-20 pb-16 px-4",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 via-transparent to-transparent"}),a.jsxs("div",{className:"max-w-4xl mx-auto text-center relative",children:[a.jsxs(at,{className:"mb-6 bg-primary/10 text-primary border-primary/20 hover:bg-primary/10",children:[a.jsx(Xr,{className:"w-3 h-3 mr-1.5"}),t("creator.badge")]}),a.jsxs("h1",{className:"font-heading text-4xl sm:text-5xl lg:text-6xl font-bold mb-6 leading-tight",children:[t("creator.heroTitle")," ",a.jsx("span",{className:"text-primary",children:"Governancepedia"})]}),a.jsx("p",{className:"text-lg sm:text-xl text-muted-foreground mb-4 max-w-2xl mx-auto",children:t("creator.heroSub1")}),a.jsx("p",{className:"text-base text-muted-foreground mb-8 max-w-2xl mx-auto",children:t("creator.heroSub2")}),a.jsx("p",{className:"text-sm font-medium text-foreground mb-8",children:t("creator.heroLookingFor")}),a.jsx("div",{className:"flex flex-wrap justify-center gap-2 mb-10 max-w-2xl mx-auto",children:s.map(o=>a.jsx(at,{variant:"secondary",className:"text-sm py-1.5 px-3",children:o},o))}),a.jsxs("div",{className:"flex flex-wrap gap-4 justify-center",children:[a.jsxs(xe,{size:"lg",className:"gap-2 h-12 px-8 text-base",onClick:()=>
1313e("/content-creators/apply"),children:[a.jsx(Qu,{className:"w-5 h-5"}),t("creator.applyCta")]}),a.jsxs(xe,{size:"lg",variant:"outline",className:"gap-2 h-12 px-8 text-base",onClick:()=>{var o;(o=document.getElementById("how-it-works"))==null||o.scrollIntoView({behavior:"smooth"})},children:[t("creator.learnHow"),a.jsx(rs,{className:"w-5 h-5"})]})]})]})]}),a.jsx("section",{className:"py-16 px-4 bg-background",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsx("h2",{className:"font-heading text-3xl sm:text-4xl font-bold mb-4",children:t("creator.whatReceiveTitle")}),a.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:t("creator.whatReceiveDesc")})]}),a.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-5",children:n.map((o,l)=>a.jsx(ur.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:l*.05},children:a.jsx(Oe,{className:"h-full hover:shadow-md transition-shadow",children:a.jsxs(Le,{className:"pt-6",children:[a.jsx("div",{className:"w-11 h-11 rounded-lg bg-primary/10 flex items-center justify-center mb-4",children:a.jsx(o.icon,{className:"w-5 h-5 text-primary"})}),a.jsx("h3",{className:"font-semibold mb-2",children:o.title}),a.jsx("p",{className:"text-sm text-muted-foreground",children:o.desc})]})})},o.title))})]})}),a.jsx("section",{id:"how-it-works",className:"py-16 px-4 bg-muted/30",children:a.jsxs("div",{className:"max-w-4xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsx("h2",{className:"font-heading text-3xl sm:text-4xl font-bold mb-4",children:t("creator.howItWorks")}),a.jsx("p",{className:"text-muted-foreground",children:t("creator.howItWorksDesc")})]}),a.jsx("div",{className:"space-y-4",children:r.map((o,l)=>a.jsxs(ur.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:l*.08},className:"flex gap-4 items-start",children:[a.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-primary text-primary-foreground flex items-center justify-center font-bold text-sm",children:o.num}),a.jsxs("div",{className:"flex-1 pb-2",children:[a.jsx("h3",{className:"font-semibold text-lg mb-1",children:o.title}),a.jsx("p",{className:"text-muted-foreground",children:o.desc})]})]},o.num))})]})}),a.jsx("section",{className:"py-16 px-4 bg-background",children:a.jsx("div",{className:"max-w-4xl mx-auto",children:a.jsx(Oe,{className:"border-primary/30 bg-primary/5",children:a.jsx(Le,{className:"pt-6",children:a.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-6",children:[a.jsx("div",{className:"w-14 h-14 rounded-full bg-primary/15 flex items-center justify-center flex-shrink-0",children:a.jsx(Mi,{className:"w-7 h-7 text-primary"})}),a.jsxs("div",{className:"flex-1 text-center sm:text-left",children:[a.jsx("h3",{className:"font-heading text-xl font-bold mb-2",children:t("creator.existingPartnerTitle")}),a.jsx("p",{className:"text-muted-foreground",children:t("creator.existingPartnerDesc")})]}),a.jsx(xe,{asChild:!0,className:"gap-2 flex-shrink-0",children:a.jsxs(Dt,{to:"/partner-dashboard",children:[t("creator.goToPartner"),a.jsx(rs,{className:"w-4 h-4"})]})})]})})})})}),a.jsx("section",{className:"py-16 px-4 bg-muted/30",children:a.jsxs("div",{className:"max-w-3xl mx-auto",children:[a.jsx("div",{className:"text-center mb-12",children:a.jsx("h2",{className:"font-heading text-3xl sm:text-4xl font-bold mb-4",children:t("creator.faqTitle")})}),a.jsx("div",{className:"space-y-4",children:i.map(o=>a.jsx(Oe,{children:a.jsxs(Le,{className:"pt-5",children:[a.jsxs("h3",{className:"font-semibold mb-2 flex items-start gap-2",children:[a.jsx(Oi,{className:"w-4 h-4 text-primary mt-1 flex-shrink-0"}),o.q]}),a.jsx("p",{className:"text-sm text-muted-foreground pl-6",children:o.a})]})},o.q))})]})}),a.jsx("section",{className:"py-20 px-4 bg-primary text-primary-foreground",children:a.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[a.jsx("h2",{className:"font-heading text-3xl sm:text-4xl font-bold mb-6",children:t("creator.finalCtaTitle")}),a.jsxs("div",{className:"space-y-1 mb-8 text-primary-foreground
1313/90",children:[a.jsx("p",{children:t("creator.bringVoice")}),a.jsx("p",{children:t("creator.bringPersonality")}),a.jsx("p",{children:t("creator.bringCreativity")}),a.jsx("p",{className:"font-semibold text-primary-foreground",children:t("creator.weProvide")})]}),a.jsxs(xe,{size:"lg",variant:"secondary",className:"gap-2 h-12 px-8 text-base",onClick:()=>e("/content-creators/apply"),children:[a.jsx(Qu,{className:"w-5 h-5"}),t("creator.applyCta")]})]})})]})}const qze=[{value:"tiktok",label:"TikTok"},{value:"instagram",label:"Instagram"},{value:"youtube",label:"YouTube"},{value:"linkedin",label:"LinkedIn"},{value:"facebook",label:"Facebook"},{value:"x",label:"X"},{value:"twitch",label:"Twitch"},{value:"podcast",label:"Podcast"},{value:"website",label:"Website"},{value:"other",label:"Other"}],zze=["Education","Product Tutorials","Industry Knowledge","How-To Content","Explainers","Reviews","Product Demonstrations","News & Trends","Tips & Advice","Thought Leadership","Entertainment","Community Content","Other"],$ze=["TikTok Videos","Instagram Reels","YouTube Shorts","Long-Form YouTube","LinkedIn Videos","Social Posts","Tutorials","Explainers","Interviews","Podcasts","Product Demonstrations","Reviews","Articles","Live Streams","Other"];function Uze(){const e=Uf(),{t}=Zt(),[n,r]=O.useState(!1),[i,s]=O.useState(null),[o,l]=O.useState(null),[c,u]=O.useState(!0),d=[{value:"experienced_creator",label:t("creatorApply.expExperienced")},{value:"creating_regularly",label:t("creatorApply.expRegularly")},{value:"creating_occasionally",label:t("creatorApply.expOccasionally")},{value:"just_starting",label:t("creatorApply.expJustStarting")},{value:"haven_started_yet",label:t("creatorApply.expNotStarted")}],f=[{value:"several_per_week",label:t("creatorApply.freqSeveralWeek")},{value:"weekly",label:t("creatorApply.freqWeekly")},{value:"several_per_month",label:t("creatorApply.freqSeveralMonth")},{value:"monthly",label:t("creatorApply.freqMonthly")},{value:"campaign_based",label:t("creatorApply.freqCampaign")}],p=[{value:"yes",label:t("creatorApply.cameraYes")},{value:"sometimes",label:t("creatorApply.cameraSometimes")},{value:"prefer_voiceover",label:t("creatorApply.cameraVoiceover")},{value:"no",label:t("creatorApply.cameraNo")}],h=[{value:"yes",label:t("creatorApply.cameraYes")},{value:"maybe",label:t("creatorApply.yesMaybe")},{value:"no",label:t("creatorApply.cameraNo")}],[x,v]=O.useState({first_name:"",last_name:"",email:"",country:"",region:"",timezone:"",languages:[],creator_experience:"",social_profiles:[],content_interests:[],content_formats:[],why_create:"",content_type_preference:"",subjects_interest:"",creation_frequency:"",camera_comfort:"",campaign_interest:"",commission_interest:"",intro_video_url:""});O.useEffect(()=>{g()},[]);const g=async()=>{try{if(!await Ne.auth.isAuthenticated()){u(!1);return}const E=await Ne.auth.me();if(E!=null&&E.email){const k=await Ne.entities.PartnerApplication.filter({email:E.email,content_creator:!0},"-created_date",5);if(k.length>0){s(k[0]),u(!1);return}const T=await Ne.entities.PartnerApplication.filter({email:E.email},"-created_date",5);if(T.length>0){s(T[0]);const P=T[0];v(R=>{var q,M;return{...R,first_name:((q=P.full_legal_name)==null?void 0:q.split(" ")[0])||"",last_name:((M=P.full_legal_name)==null?void 0:M.split(" ").slice(1).join(" "))||"",email:P.email||"",country:P.country||"",region:P.region||"",languages:P.languages||[]}})}const D=await Ne.entities.ContentCreatorApplication.filter({email:E.email,application_status:{$in:["submitted","under_review","shortlisted","waitlisted","more_info_requested","interview_requested"]}},"-created_date",1);D.length>0&&l(D[0])}}catch(A){console.error("Status check failed:",A)}finally{u(!1)}},y=(A,E)=>{v(k=>({...k,[A]:k[A].includes(E)?k[A].filter(T=>T!==E):[...k[A],E]}))},w=()=>{v(A=>({...A,social_profiles:[...A.social_profiles,{platform:"tiktok",username:"",url:"",followers:""}]}))},j=(A,E,k)=>{v(T=>({...T,social_profiles:T.social_profiles.map((D,P)=>P===A?{...D,[E]:k}:D)}))},_=A=>{v(E=>({...E,social_profiles:E.social_profiles.filter((k,T)=>T!==A)}))},N=async A=>
1313{if(A.preventDefault(),!x.first_name||!x.last_name||!x.email){pt.error(t("creatorApply.errNameEmail"));return}if(!x.creator_experience){pt.error(t("creatorApply.errExperience"));return}r(!0);try{const E=new Date().toISOString();await Ne.entities.ContentCreatorApplication.create({...x,user_id:(i==null?void 0:i.created_by_id)||"",partner_id:(i==null?void 0:i.id)||"",is_existing_partner:!!i,application_status:"submitted",submitted_at:E,platform_id:"governancepedia"}),pt.success(t("creatorApply.submitSuccess")),e("/content-creators")}catch(E){console.error("Submission failed:",E),pt.error(t("creatorApply.submitFailed"))}finally{r(!1)}};return c?a.jsx("div",{className:"min-h-screen flex items-center justify-center",children:a.jsx(Mf,{className:"w-8 h-8 animate-spin text-primary"})}):i!=null&&i.content_creator?a.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-16 text-center",children:[a.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-6",children:a.jsx(mie,{className:"w-8 h-8 text-primary"})}),a.jsx("h1",{className:"font-heading text-2xl font-bold mb-3",children:t("creatorApply.alreadyApproved")}),a.jsx("p",{className:"text-muted-foreground mb-8",children:t("creatorApply.alreadyApprovedDesc")}),a.jsx(xe,{asChild:!0,size:"lg",className:"gap-2",children:a.jsxs(Dt,{to:"/partner-dashboard",children:[t("creatorApply.goToCreator")," ",a.jsx(rs,{className:"w-4 h-4"})]})})]}):o?a.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-16 text-center",children:[a.jsx("div",{className:"w-16 h-16 rounded-full bg-amber-500/10 flex items-center justify-center mx-auto mb-6",children:a.jsx(Xr,{className:"w-8 h-8 text-amber-500"})}),a.jsx("h1",{className:"font-heading text-2xl font-bold mb-3",children:t("creatorApply.underReview")}),a.jsxs("p",{className:"text-muted-foreground mb-2",children:[t("creatorApply.status")," ",a.jsx(at,{variant:"secondary",className:"ml-1 capitalize",children:o.application_status.replace(/_/g," ")})]}),a.jsxs("p",{className:"text-muted-foreground mb-8",children:[t("creatorApply.submittedOn")," ",new Date(o.submitted_at).toLocaleDateString(),". ",t("creatorApply.reviewNotify")]}),a.jsx(xe,{asChild:!0,variant:"outline",size:"lg",className:"gap-2",children:a.jsxs(Dt,{to:"/content-creators",children:[a.jsx(gl,{className:"w-4 h-4"})," ",t("creatorApply.backToLanding")]})})]}):a.jsx("div",{className:"min-h-screen bg-gradient-to-b from-background to-muted/30 py-8 px-4",children:a.jsxs("div",{className:"max-w-3xl mx-auto",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx(xe,{asChild:!0,variant:"ghost",size:"sm",className:"gap-2 mb-4",children:a.jsxs(Dt,{to:"/content-creators",children:[a.jsx(gl,{className:"w-4 h-4"})," ",t("creatorApply.back")]})}),a.jsx("h1",{className:"font-heading text-3xl font-bold mb-2",children:t("creatorApply.title")}),a.jsxs("p",{className:"text-muted-foreground",children:[t("creatorApply.subtitle"),i&&a.jsx("span",{className:"block mt-2",children:a.jsx(at,{className:"bg-primary/10 text-primary border-primary/20",children:t("creatorApply.existingPartnerBadge")})})]})]}),a.jsxs("form",{onSubmit:N,className:"space-y-6",children:[a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{children:t("creatorApply.personalInfo")})}),a.jsxs(Le,{className:"space-y-4",children:[a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:t("creatorApply.firstName")}),a.jsx(Qe,{value:x.first_name,onChange:A=>v({...x,first_name:A.target.value}),required:!0})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("creatorApply.lastName")}),a.jsx(Qe,{value:x.last_name,onChange:A=>v({...x,last_name:A.target.value}),required:!0})]})]}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:t("partnerApply.email")}),a.jsx(Qe,{type:"email",value:x.email,onChange:A=>v({...x,email:A.target.value}),required:!0})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("creatorApply.country")}),a.jsx(Qe,{value:x.country,onChange:A=>v({...x,country:A.target.value})})]})]}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:t("creatorApply.region")}),a.jsx(Qe,{value:x.region,onChange:A=>v({...x,region:A.target.value})})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("creatorApply.timezone")}),a.jsx(Qe,{value:x.timezone,onChange:A=>v({...x,timezone:A.target.value}),placeholder:"e.g. Europe/Berlin"})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("creatorApply.languagesLabel")}),a.jsx(Qe,{value:x.languages.join(", "),onChange:A=>v({...x,languages:A.target.value.split(",").map(E=>
1313E.trim()).filter(Boolean)}),placeholder:t("creatorApply.languagesPh")})]})]})]}),a.jsxs(Oe,{children:[a.jsxs(vt,{children:[a.jsx(yt,{children:t("creatorApply.creatorExp")}),a.jsx(Ja,{children:t("creatorApply.creatorExpDesc")})]}),a.jsx(Le,{children:a.jsx("div",{className:"grid sm:grid-cols-2 gap-3",children:d.map(A=>a.jsx("button",{type:"button",onClick:()=>v({...x,creator_experience:A.value}),className:`text-left p-3 rounded-lg border transition-colors ${x.creator_experience===A.value?"border-primary bg-primary/5":"border-input hover:bg-accent"}`,children:a.jsx("span",{className:"text-sm font-medium",children:A.label})},A.value))})})]}),a.jsxs(Oe,{children:[a.jsxs(vt,{children:[a.jsx(yt,{children:t("creatorApply.socialProfiles")}),a.jsx(Ja,{children:t("creatorApply.socialProfilesDesc")})]}),a.jsxs(Le,{className:"space-y-3",children:[x.social_profiles.map((A,E)=>a.jsxs("div",{className:"grid sm:grid-cols-12 gap-2 items-end p-3 rounded-lg border bg-muted/30",children:[a.jsxs("div",{className:"sm:col-span-3",children:[a.jsx(Se,{className:"text-xs",children:t("creatorApply.platform")}),a.jsx("select",{className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm",value:A.platform,onChange:k=>j(E,"platform",k.target.value),children:qze.map(k=>a.jsx("option",{value:k.value,children:k.label},k.value))})]}),a.jsxs("div",{className:"sm:col-span-3",children:[a.jsx(Se,{className:"text-xs",children:t("creatorApply.username")}),a.jsx(Qe,{value:A.username,onChange:k=>j(E,"username",k.target.value),placeholder:"@username"})]}),a.jsxs("div",{className:"sm:col-span-3",children:[a.jsx(Se,{className:"text-xs",children:t("creatorApply.url")}),a.jsx(Qe,{value:A.url,onChange:k=>j(E,"url",k.target.value),placeholder:"https://..."})]}),a.jsxs("div",{className:"sm:col-span-2",children:[a.jsx(Se,{className:"text-xs",children:t("creatorApply.followers")}),a.jsx(Qe,{value:A.followers,onChange:k=>j(E,"followers",k.target.value),placeholder:"~5K"})]}),a.jsx("div",{className:"sm:col-span-1",children:a.jsx(xe,{type:"button",variant:"ghost",size:"icon",onClick:()=>_(E),children:a.jsx(Ps,{className:"w-4 h-4 text-destructive"})})})]},E)),a.jsxs(xe,{type:"button",variant:"outline",size:"sm",className:"gap-2",onClick:w,children:[a.jsx(sa,{className:"w-4 h-4"})," ",t("creatorApply.addSocial")]})]})]}),a.jsxs(Oe,{children:[a.jsxs(vt,{children:[a.jsx(yt,{children:t("creatorApply.contentInterests")}),a.jsx(Ja,{children:t("creatorApply.contentInterestsDesc")})]}),a.jsx(Le,{children:a.jsx("div",{className:"flex flex-wrap gap-2",children:zze.map(A=>a.jsx("button",{type:"button",onClick:()=>y("content_interests",A),className:`px-3 py-1.5 rounded-full text-sm border transition-colors ${x.content_interests.includes(A)?"border-primary bg-primary text-primary-foreground":"border-input hover:bg-accent"}`,children:A},A))})})]}),a.jsxs(Oe,{children:[a.jsxs(vt,{children:[a.jsx(yt,{children:t("creatorApply.contentFormats")}),a.jsx(Ja,{children:t("creatorApply.contentFormatsDesc")})]}),a.jsx(Le,{children:a.jsx("div",{className:"flex flex-wrap gap-2",children:$ze.map(A=>a.jsx("button",{type:"button",onClick:()=>y("content_formats",A),className:`px-3 py-1.5 rounded-full text-sm border transition-colors ${x.content_formats.includes(A)?"border-primary bg-primary text-primary-foreground":"border-input hover:bg-accent"}`,children:A},A))})})]}),a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{children:t("creatorApply.appQuestions")})}),a.jsxs(Le,{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:t("creatorApply.whyCreate")}),a.jsx(Pn,{value:x.why_create,onChange:A=>v({...x,why_create:A.target.value}),rows:3})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("creatorApply.contentTypePref")}),a.jsx(Pn,{value:x.content_type_preference,onChange:A=>v({...x,content_type_preference:A.target.value}),rows:2})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("creatorApply.subjectsInterest")}),a.jsx(Pn,{value:x.subjects_interest,onChange:A=>v({...x,subjects_interest:A.target.value}),rows:2})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("creatorApply.creationFreq")}
1313),a.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:f.map(A=>a.jsx("button",{type:"button",onClick:()=>v({...x,creation_frequency:A.value}),className:`px-3 py-1.5 rounded-full text-sm border transition-colors ${x.creation_frequency===A.value?"border-primary bg-primary text-primary-foreground":"border-input hover:bg-accent"}`,children:A.label},A.value))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("creatorApply.cameraComfort")}),a.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:p.map(A=>a.jsx("button",{type:"button",onClick:()=>v({...x,camera_comfort:A.value}),className:`px-3 py-1.5 rounded-full text-sm border transition-colors ${x.camera_comfort===A.value?"border-primary bg-primary text-primary-foreground":"border-input hover:bg-accent"}`,children:A.label},A.value))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("creatorApply.campaignInterest")}),a.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:h.map(A=>a.jsx("button",{type:"button",onClick:()=>v({...x,campaign_interest:A.value}),className:`px-3 py-1.5 rounded-full text-sm border transition-colors ${x.campaign_interest===A.value?"border-primary bg-primary text-primary-foreground":"border-input hover:bg-accent"}`,children:A.label},A.value))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:t("creatorApply.commissionInterest")}),a.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:h.map(A=>a.jsx("button",{type:"button",onClick:()=>v({...x,commission_interest:A.value}),className:`px-3 py-1.5 rounded-full text-sm border transition-colors ${x.commission_interest===A.value?"border-primary bg-primary text-primary-foreground":"border-input hover:bg-accent"}`,children:A.label},A.value))})]})]})]}),a.jsxs(Oe,{children:[a.jsxs(vt,{children:[a.jsxs(yt,{className:"flex items-center gap-2",children:[a.jsx(Qu,{className:"w-5 h-5"}),t("creatorApply.introVideo")]}),a.jsx(Ja,{children:t("creatorApply.introVideoDesc")})]}),a.jsxs(Le,{children:[a.jsx(Se,{children:t("creatorApply.videoUrl")}),a.jsx(Qe,{value:x.intro_video_url,onChange:A=>v({...x,intro_video_url:A.target.value}),placeholder:t("creatorApply.videoUrlPh")}),a.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:t("creatorApply.videoDesc")})]})]}),a.jsxs("div",{className:"flex justify-end gap-3 pb-8",children:[a.jsx(xe,{type:"button",variant:"outline",onClick:()=>e("/content-creators"),children:t("creatorApply.cancel")}),a.jsx(xe,{type:"submit",disabled:n,className:"gap-2",children:n?a.jsxs(a.Fragment,{children:[a.jsx(Mf,{className:"w-4 h-4 animate-spin"})," ",t("creatorApply.submitting")]}):a.jsxs(a.Fragment,{children:[t("creatorApply.submit")," ",a.jsx(rs,{className:"w-4 h-4"})]})})]})]})]})})}const Gze={submitted:"bg-blue-500/10 text-blue-600 border-blue-500/20",under_review:"bg-amber-500/10 text-amber-600 border-amber-500/20",shortlisted:"bg-purple-500/10 text-purple-600 border-purple-500/20",more_info_requested:"bg-orange-500/10 text-orange-600 border-orange-500/20",interview_requested:"bg-indigo-500/10 text-indigo-600 border-indigo-500/20",waitlisted:"bg-slate-500/10 text-slate-600 border-slate-500/20",approved:"bg-green-500/10 text-green-600 border-green-500/20",declined:"bg-red-500/10 text-red-600 border-red-500/20",withdrawn:"bg-gray-500/10 text-gray-600 border-gray-500/20"},jy=["communication","personality","creativity","camera_presence","reliability_potential","brand_fit","professionalism","content_potential","existing_audience"];function Vze(){var E,k,T,D,P,R,q;const{t:e}=Zt(),t=Ur(),[n,r]=O.useState("all"),[i,s]=O.useState(""),[o,l]=O.useState(null),[c,u]=O.useState({}),[d,f]=O.useState(""),[p,h]=O.useState(""),{data:x=[],isLoading:v}=Qt({queryKey:["creator-applications",n],queryFn:async()=>Ne.entities.ContentCreatorApplication.list("-created_date",100)}),{data:g=[]}=Qt({queryKey:["content-creators"],queryFn:async()=>Ne.entities.PartnerApplication.filter({content_creator:!0},"-created_date",100)}),{data:y=[]}=Qt({queryKey:["creator-weekly-packs"],queryFn:async()=>Ne.entities.CreatorWeeklyPack.list("-week_start",20)}),w=Nn({mutationFn:async({id:M,data:V})=>Ne.entities.ContentCreatorApplication.update(M,V),onSuccess:()=>{t.invalidateQueries({queryKey:["creator-applications"]}),t.invalidateQueries({queryKey:["content-creators"]})}}),j=Nn({mutationFn:async({application:M,decisionNotes:V,scores:H})=>{const Z=new Date().toISOString(),J=await Ne.auth.me(),K=jy.reduce((F,$)=>F+(H[$]||0),0)/jy.length;await Ne.entities.ContentCreatorApplication.update(M.id,{application_status:"approved",reviewed_at:Z,reviewed_by:J==null?void 0:J.email,internal_score:{...H,overall:Math.round(K*10)/10},decision_notes:V}),M.is_existing_partner&&M.partner_id?await Ne.entities.PartnerApplication.update(M.partner_id,{content_creator:!0,creator_status:"active",creator_application_id:M.id,creator_approval_date:Z,creator_approved_by:J==null?void 0:J.email,creator_bio:M.why_create||"",creator_tags:["New Creator"]}):await Ne.entities.PartnerApplication.create({full_legal_name:`${M.first_name} ${M.last_name}`,email:M.email,country:M.country,region:M.region,languages:M.languages,status:"approved",partner_type:"growth_partner",partner_since:Z,content_creator:!0,creator_status:"active",creator_application_id:M.id,creator_approval_date:Z,creator_approved_by:J==null?void 0:J.email,creator_bio:M.why_create||"",creator_tags:["New Creator"],assigned_platform:"governancepedia",platform_id:"governancepedia"}),await Ne.entities.AuditLog.create({actor_email:(J==null?void 0:J.email)||"admin",actor_role:"partner_manager",action:"content_creator_approved",entity_type:"ContentCreatorApplication",entity_id:M.id,reason:V||"Approved as Content Creator",timestamp:Z,platform_id:"governancepedia"})},onSuccess:()=>{pt.success(e("admin.creatorApproved")),t.invalidateQueries({queryKey:["creator-applications"]}),t.invalidateQueries({queryKey:["content-creators"]}),l(null),u({}),h("")},onError:M=>pt.error(`${e("admin.approvalFailed")} ${M.message}`)}),_=async(M,V)=>{const H=new Date().toISOString(),Z=await Ne.auth.me();if(V==="approved"){j.mutate({application:M,decisionNotes:p,scores:c}
1313);return}let J=null;if(V==="declined"){const K=new Date;K.setDate(K.getDate()+90),J=K.toISOString().split("T")[0]}w.mutate({id:M.id,data:{application_status:V,reviewed_at:H,reviewed_by:Z==null?void 0:Z.email,decision_notes:p,reapplication_eligible_at:J}},{onSuccess:()=>{pt.success(`${e("admin.applicationToast")} ${V.replace(/_/g," ")}`),l(null),h("")}})},N=x.filter(M=>{var V,H,Z,J;if(n!=="all"&&M.application_status!==n)return!1;if(i){const K=i.toLowerCase();return((V=M.first_name)==null?void 0:V.toLowerCase().includes(K))||((H=M.last_name)==null?void 0:H.toLowerCase().includes(K))||((Z=M.email)==null?void 0:Z.toLowerCase().includes(K))||((J=M.country)==null?void 0:J.toLowerCase().includes(K))}return!0}),A=x.filter(M=>["submitted","under_review","shortlisted","more_info_requested","interview_requested","waitlisted"].includes(M.application_status)).length;return a.jsxs("div",{className:"min-h-screen bg-background p-4 sm:p-6",children:[a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h1",{className:"font-heading text-2xl sm:text-3xl font-bold mb-1",children:e("admin.contentCreatorMgmt")}),a.jsx("p",{className:"text-muted-foreground",children:e("admin.contentCreatorsDesc")})]}),a.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4 mb-6",children:[a.jsx(Oe,{children:a.jsx(Le,{className:"pt-5",children:a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-500/10 flex items-center justify-center",children:a.jsx(ks,{className:"w-5 h-5 text-blue-500"})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-2xl font-bold",children:A}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.pendingReviewStat")})]})]})})}),a.jsx(Oe,{children:a.jsx(Le,{className:"pt-5",children:a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-green-500/10 flex items-center justify-center",children:a.jsx(Mi,{className:"w-5 h-5 text-green-500"})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-2xl font-bold",children:g.length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.approvedCreators")})]})]})})}),a.jsx(Oe,{children:a.jsx(Le,{className:"pt-5",children:a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-purple-500/10 flex items-center justify-center",children:a.jsx(Xr,{className:"w-5 h-5 text-purple-500"})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-2xl font-bold",children:y.filter(M=>M.generation_status==="published").length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.publishedPacks")})]})]})})}),a.jsx(Oe,{children:a.jsx(Le,{className:"pt-5",children:a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-500/10 flex items-center justify-center",children:a.jsx(Mne,{className:"w-5 h-5 text-amber-500"})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-2xl font-bold",children:y.filter(M=>M.generation_status==="draft"||M.generation_status==="under_review").length}),a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.packsInReview")})]})]})})})]}),a.jsxs(F0,{defaultValue:"applications",children:[a.jsxs(bv,{className:"mb-4",children:[a.jsx(ni,{value:"applications",children:e("admin.applicationsTab")}),a.jsx(ni,{value:"creators",children:e("admin.creatorsTab")}),a.jsx(ni,{value:"weekly-packs",children:e("admin.weeklyPacksTab")})]}),a.jsx(ri,{value:"applications",children:a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-between",children:[a.jsx(yt,{children:e("admin.creatorApplications")}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(Qe,{placeholder:e("admin.searchByNameEmailCountry"),value:i,onChange:M=>s(M.target.value),className:"max-w-xs"}),a.jsxs(Et,{value:n,onValueChange:r,children:[a.jsx(Pt,{className:"w-44",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:e("admin.allStatuses")}),a.jsx(Ce,{value:"submitted",children:e("admin.submitted")}),a.jsx(Ce,{value:"under_review",children:e("admin.underReview")}),a.jsx(Ce,{value:"shortlisted",children:e("admin.shortlisted")}),a.jsx(Ce,{value:"approved",children:e("admin.approved")}),a.jsx(Ce,{value:"declined",children:e("admin.declined")}),a.jsx(Ce,{value:"waitlisted",children:e("admin.waitlisted")})]})]})]})]})}),a.jsx(Le,{children:v?a.jsx("div",{className:"flex justify-center py-8",children:a.jsx(Mf,{className:"w-6 h-6 animate-spin"})}):N.length===0?a.jsx("p",{className:"text-center text-muted-foreground py-8",children:e("admin.noApplications")}):a.jsx("div",{className:"space-y-2",children:N.map(M=>{var V,H;return a.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3 p-3 rounded-lg border hover:bg-accent/50 cursor-pointer transition-colors",onClick:()=>{l(M),u(M.internal_score||{}),f(M.internal_notes||""),h(M.decision_notes||"")},children:[a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[a.jsxs("p",{className:"font-medium truncate",children:[M.first_name," ",M.last_name]}),M.is_existing_partner&&a.jsx(at,{variant:"secondary",className:"text-xs",children:e("admin.existingPartner")})]}),a.jsx("p",{className:"text-sm text-muted-foreground truncate",children:M.email}),a.jsxs("div",{className:"flex items-center gap-3 mt-1 text-xs text-muted-foreground",children:[M.country&&a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx(Sp,{className:"w-3 h-3"}),M.country]}),((V=M.languages)==null?void 0:V.length)>0&&a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx(ire,{className:"w-3 h-3"}
1313),M.languages.join(", ")]}),M.creator_experience&&a.jsx("span",{className:"capitalize",children:M.creator_experience.replace(/_/g," ")})]})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[((H=M.internal_score)==null?void 0:H.overall)!=null&&a.jsxs("div",{className:"flex items-center gap-1 text-sm",children:[a.jsx(NP,{className:"w-3.5 h-3.5 text-amber-500"}),a.jsx("span",{className:"font-medium",children:M.internal_score.overall})]}),a.jsx(at,{className:`text-xs ${Gze[M.application_status]||""}`,children:M.application_status.replace(/_/g," ")})]})]},M.id)})})})]})}),a.jsx(ri,{value:"creators",children:a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsx(yt,{children:e("admin.approvedContentCreators")})}),a.jsx(Le,{children:g.length===0?a.jsx("p",{className:"text-center text-muted-foreground py-8",children:e("admin.noApprovedCreators")}):a.jsx("div",{className:"space-y-2",children:g.map(M=>{var V;return a.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:a.jsx(_2,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"font-medium truncate",children:M.full_legal_name}),a.jsx("p",{className:"text-sm text-muted-foreground truncate",children:M.email})]}),a.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[(V=M.creator_tags)==null?void 0:V.map(H=>a.jsx(at,{variant:"secondary",className:"text-xs",children:H},H)),a.jsx(at,{className:`text-xs ${M.creator_status==="active"?"bg-green-500/10 text-green-600":M.creator_status==="paused"?"bg-amber-500/10 text-amber-600":"bg-slate-500/10 text-slate-600"}`,children:M.creator_status||"active"})]})]},M.id)})})})]})}),a.jsx(ri,{value:"weekly-packs",children:a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx(yt,{children:e("admin.weeklyCreatorPacks")}),a.jsxs(xe,{size:"sm",className:"gap-2",onClick:async()=>{pt.info(e("admin.generatingWeeklyPack"));try{const M=await Ne.functions.invoke("generateWeeklyCreatorPack",{});pt.success(e("admin.weeklyPackGenerated")),t.invalidateQueries({queryKey:["creator-weekly-packs"]})}catch(M){pt.error(`${e("admin.generationFailed")} ${M.message}`)}},children:[a.jsx(Xr,{className:"w-4 h-4"})," ",e("admin.generateNow")]})]})}),a.jsx(Le,{children:y.length===0?a.jsx("p",{className:"text-center text-muted-foreground py-8",children:e("admin.noWeeklyPacks")}):a.jsx("div",{className:"space-y-2",children:y.map(M=>a.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border",children:[a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"font-medium",children:M.title}),a.jsxs("p",{className:"text-sm text-muted-foreground",children:[e("admin.weekOf")," ",M.week_start,M.ai_generated&&a.jsx(at,{variant:"secondary",className:"ml-2 text-xs",children:e("admin.aiGenerated")})]})]}),a.jsx(at,{className:`text-xs ${M.generation_status==="published"?"bg-green-500/10 text-green-600":M.generation_status==="draft"||M.generation_status==="under_review"?"bg-amber-500/10 text-amber-600":M.generation_status==="failed"?"bg-red-500/10 text-red-600":"bg-blue-500/10 text-blue-600"}`,children:M.generation_status.replace(/_/g," ")}),M.generation_status==="draft"&&a.jsx(xe,{size:"sm",variant:"outline",onClick:async()=>{try{await Ne.entities.CreatorWeeklyPack.update(M.id,{generation_status:"published",published_at:new Date().toISOString(),review_status:"approved"}),pt.success(e("admin.weeklyPackPublished")),t.invalidateQueries({queryKey:["creator-weekly-packs"]})}catch(V){pt.error(`${e("admin.publishFailed")} ${V.message}`)}},children:e("admin.publish")})]},M.id))})})]})})]})]}),o&&a.jsx(Gn,{open:!0,onOpenChange:()=>l(null),children:a.jsxs(zn,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[a.jsx(Vn,{children:a.jsxs(Wn,{children:[e("admin.reviewColon")," ",o.first_name," ",o.last_name]})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4 p-4 rounded-lg bg-muted/30",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.emailCol")}),a.jsx("p",{className:"text-sm font-medium",children:o.email})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.countryCol")}),a.jsx("p",{className:"text-sm font-medium",children:o.country||"â"})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.experienceLabel")}),a.jsx("p",{className:"text-sm font-medium capitalize",children:((E=o.creator_experience)==null?void 0:E.replace(/_/g," "))||"â"})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.languagesLabel")}),a.jsx("p",{className:"text-sm font-medium",children:((k=o.languages)==null?void 0:k.join(", "))||"â"})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.existingPartnerQ")}),a.jsx("p",{className:"text-sm font-medium",children:o.is_existing_partner?e("admin.yesLabel"):e("admin.noLabel")})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:e("admin.submittedLabel")}),a.jsx("p",{className:"text-sm font-medium",children:o.submitted_at?new Date(o.submitted_at).toLocaleDateString():"â"})]})]}),((T=o.social_profiles)==null?void 0:T.length)>0&&a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-semibold mb-2",children:e("admin.socialAccounts")}),a.jsx("div",{className:"space-y-1",children:o.social_profiles.map((M,V)=>a.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[a.jsx(at,{variant:"secondary",className:"text-xs capitalize",children:M.platform}),a.jsx("span",{children:M.username||"â"}),M.followers&&a.jsxs("span",{className:"text-muted-foreground",children:["(",M.followers,")"]}),M.url&&a.jsx("a",{href:M.url,target:"_blank",rel:"noopener noreferrer",className:"text-primary text-xs underline",children:e("admin.view")})]},V))})]}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-semibold mb-2",children:e("admin.contentInterests")}),a.jsx("div",{className:"flex flex-wrap gap-1",children:(D=o.content_interests)==null?void 0:D.map(M=>a.jsx(at,{variant:"secondary",className:"text-xs",children:M},M))})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-semibold mb-2",children:e("admin.preferredFormats")}),a.jsx("div",{className:"flex flex-wrap gap-1",children:(P=o.content_formats)==null?void 0:P.map(M=>a.jsx(at,{variant:"secondary",className:"text-xs",children:M},M))})]})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-semibold",children:e("admin.whyBecomeCreator")}),a.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:o.why_create||"â"})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-semibold",children:e("admin.contentTypePref")}),a.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:o.content_type_preference||"â"})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-semibold",children:e("admin.subjectsInterest")}),a.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:o.subjects_interest||"â"})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-2 text-sm",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-muted-foreground",children:e("admin.frequencyLabel")})," ",a.jsx("span",{className:"capitalize",children:((R=o.creation_frequency)==null?void 0:R.replace(/_/g," "))||"â"})]}),a.jsxs("div",{children:[a.jsx("span",{className:"text-muted-foreground",children:e("admin.cameraLabel")})," ",a.jsx("span",{className:"capitalize",children:((q=o.camera_comfort)==null?void 0:q.replace(/_/g," "))||"â"})]}),a.jsxs("div",{children:[a.jsx("span",{className:"text-muted-foreground",children:e("admin.campaignsLabel")})," ",a.jsx("span",{className:"capitalize",children:o.campaign_interest||"â"})]})]})]}),o.intro_video_url&&a.jsxs("div",{children:[a.jsxs("p",{className:"text-sm font-semibold mb-1 flex items-center gap-1",children:[a.jsx(Qu,{className:"w-4 h-4"})," ",e("admin.introductionVideo")]}),a.jsx("a",{href:o.intro_video_url,target:"_blank",rel:"noopener noreferrer",className:"text-primary text-sm underline break-all",children:o.intro_video_url})]}),a.jsxs("div",{className:"border-t pt-4",children:[a.jsxs("p",{className:"text-sm font-semibold mb-3 flex items-center gap-1",children:[a.jsx(NP,{className:"w-4 h-4"})," ",e("admin.internalScoring")]}),a.jsx("div",{className:"grid grid-cols-3 gap-3",children:jy.map(M=>a.jsxs("div",{children:[a.jsx(Se,{className:"text-xs capitalize",children:M.replace(/_/g," ")}),a.jsx(Qe,{type:"number",min:"0",max:"10",step:"0.5",value:c[M]??"",onChange:V=>u({...c,[M]:parseFloat(V.target.value)||0})})]},M))}),Object.keys(c).length>0&&a.jsxs("p",{className:"text-sm mt-2",children:[e("admin.overallLabel")," ",a.jsx("span",{className:"font-bold",children:(jy.reduce((M,V)=>M+(c[V]||0),0)/jy.length).toFixed(1)})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("admin.decisionNotesLabel")}),a.jsx(Pn,{value:p,onChange:M=>h(M.target.value),placeholder:e("admin.decisionNotesPlaceholder"),rows:2})]})]}),a.jsx(j0,{className:"flex-wrap gap-2",children:o.application_status!=="approved"&&o.application_status!=="declined"&&a.jsxs(a.Fragment,{children:[a.jsx(xe,{variant:"outline",size:"sm",onClick:()=>_({...o,id:o.id},"under_review"),children:e("admin.markUnderReview")}),a.jsx(xe,{variant:"outline",size:"sm",onClick:()=>_({...o,id:o.id}
1313,"waitlisted"),children:e("admin.waitlist")}),a.jsxs(xe,{variant:"destructive",size:"sm",onClick:()=>_(o,"declined"),disabled:w.isPending,children:[a.jsx(ss,{className:"w-4 h-4"})," ",e("admin.decline")]}),a.jsxs(xe,{size:"sm",onClick:()=>_(o,"approved"),disabled:j.isPending,children:[j.isPending?a.jsx(Mf,{className:"w-4 h-4 animate-spin"}):a.jsx(Oi,{className:"w-4 h-4"}),e("admin.approveAsCreator")]})]})})]})})]})}const u9={board_governance:"bg-blue-100 text-blue-700",internal_controls:"bg-purple-100 text-purple-700",risk_management:"bg-red-100 text-red-700",compliance:"bg-green-100 text-green-700",audit:"bg-amber-100 text-amber-700",ethics:"bg-indigo-100 text-indigo-700",esg:"bg-emerald-100 text-emerald-700",cybersecurity_governance:"bg-slate-100 text-slate-700",data_privacy:"bg-cyan-100 text-cyan-700",operational_resilience:"bg-orange-100 text-orange-700",third_party_risk:"bg-rose-100 text-rose-700",regulatory:"bg-teal-100 text-teal-700",other:"bg-gray-100 text-gray-700"};function b4({article:e}){var o;const{lang:t,t:n}=Zt(),r=(o=e.translations)==null?void 0:o[t],i=(r==null?void 0:r.title)||e.title,s=(r==null?void 0:r.summary)||e.summary||"";return a.jsx(Dt,{to:`/encyclopedia/${e.slug}`,className:"block group h-full",children:a.jsxs(Oe,{className:"h-full hover:shadow-lg transition-shadow border-border/60",children:[e.featured_image_url&&a.jsx("div",{className:"aspect-[16/9] overflow-hidden rounded-t-xl",children:a.jsx("img",{src:e.featured_image_url,alt:i,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),a.jsxs(vt,{className:"pb-3",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx(at,{variant:"secondary",className:`text-xs ${u9[e.category]||u9.other}`,children:n(`encyclopedia.categories.${e.category}`)}),a.jsxs("span",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[a.jsx(ks,{className:"w-3 h-3"}),e.reading_time_minutes||5," ",n("encyclopedia.minRead")]})]}),a.jsx(yt,{className:"text-lg leading-tight group-hover:text-primary transition-colors line-clamp-2",children:i}),s&&a.jsx(Ja,{className:"line-clamp-2 mt-1",children:s})]}),a.jsx(Le,{className:"pt-0",children:a.jsxs("div",{className:"flex items-center gap-1 text-sm text-primary font-medium",children:[a.jsx(as,{className:"w-4 h-4"}),n(`encyclopedia.contentTypes.${e.content_type}`)]})})]})})}const Wze=["board_governance","internal_controls","risk_management","compliance","audit","ethics","esg","cybersecurity_governance","data_privacy","operational_resilience","third_party_risk","regulatory","other"],Hze=["what_is","how_does","why_important","difference_between","best_practices","framework","guide","definition"];function Kze(){const{t:e}=Zt(),[t,n]=O.useState(""),[r,i]=O.useState("all"),[s,o]=O.useState("all"),{data:l=[],isLoading:c}=Qt({queryKey:["encyclopedia-articles"],queryFn:async()=>await Ne.entities.EncyclopediaArticle.filter({status:"published"},"-publish_at",100)}),u=O.useMemo(()=>l.filter(f=>{var v,g,y;const p=!t||((v=f.title)==null?void 0:v.toLowerCase().includes(t.toLowerCase()))||((g=f.summary)==null?void 0:g.toLowerCase().includes(t.toLowerCase()))||((y=f.tags)==null?void 0:y.some(w=>w.toLowerCase().includes(t.toLowerCase()))),h=r==="all"||f.category===r,x=s==="all"||f.content_type===s;return p&&h&&x}),[l,t,r,s]),d=O.useMemo(()=>[...u].sort((f,p)=>(p.display_order||0)-(f.display_order||0)).slice(0,3),[u]);return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx("section",{className:"bg-gradient-to-br from-primary/5 via-background to-accent/30 py-16 px-4",children:a.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-primary/10 text-primary text-sm font-medium mb-6",children:[a.jsx(as,{className:"w-4 h-4"}),e("encyclopedia.badge")]}),a.jsx("h1",{className:"text-4xl md:text-5xl font-heading font-bold text-foreground mb-4",children:e("encyclopedia.heroTitle")}),a.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-2xl mx-auto",children:e("encyclopedia.heroSubtitle")}),a.jsxs("div",{className:"relative max-w-xl mx-auto",children:[a.jsx(eo,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),a.jsx(Qe,{type:"text",placeholder:e("encyclopedia.searchPlaceholder"),value:t,onChange:f=>n(f.target.value),className:"pl-12 h-12 text-base rounded-full"})]})]})}),a.jsx("section",{className:"border-b bg-card sticky top-0 z-30 shadow-sm",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex flex-wrap items-center gap-3",children:[a.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[a.jsx(I9,{className:"w-4 h-4"}),e("encyclopedia.filterBy")]}),a.jsxs(Et,{value:r,onValueChange:i,children:[a.jsx(Pt,{className:"w-[200px]",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:e("encyclopedia.allCategories")}),Wze.map(f=>a.jsx(Ce,{value:f,children:e(`encyclopedia.categories.${f}`)},f))]})]}),a.jsxs(Et,{value:s,onValueChange:o,children:[a.jsx(Pt,{className:"w-[200px]",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:e("encyclopedia.allTypes")}),Hze.map(f=>a.jsx(Ce,{value:f,children:e(`encyclopedia.contentTypes.${f}`)},f))]})]}),a.jsxs("div",{className:"ml-auto text-sm text-muted-foreground",children:[u.length," ",e("encyclopedia.articles")]})]})}),a.jsx("section",{className:"max-w-7xl mx-auto px-4 py-12",children:c?a.jsx("div",{className:"flex justify-center py-20",children:a.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})}):u.length===0?a.jsxs("div",{className:"text-center py-20",children:[a.jsx(as,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),a.jsx("p",{className:"text-lg font-medium text-foreground mb-1",children:e("encyclopedia.noArticles")}),a.jsx("p",{className:"text-sm text-muted-foreground",children:e("encyclopedia.noArticlesDesc")})]}):a.jsxs(a.Fragment,{children:[d.length>
13130&&!t&&r==="all"&&s==="all"&&a.jsxs("div",{className:"mb-12",children:[a.jsx("h2",{className:"text-2xl font-heading font-bold mb-6",children:e("encyclopedia.featured")}),a.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:d.map(f=>a.jsx(b4,{article:f},f.id))})]}),a.jsx("h2",{className:"text-2xl font-heading font-bold mb-6",children:e(t||r!=="all"||s!=="all"?"encyclopedia.results":"encyclopedia.allArticles")}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:u.map(f=>a.jsx(b4,{article:f},f.id))})]})})]})}const d9={board_governance:"bg-blue-100 text-blue-700",internal_controls:"bg-purple-100 text-purple-700",risk_management:"bg-red-100 text-red-700",compliance:"bg-green-100 text-green-700",audit:"bg-amber-100 text-amber-700",ethics:"bg-indigo-100 text-indigo-700",esg:"bg-emerald-100 text-emerald-700",cybersecurity_governance:"bg-slate-100 text-slate-700",data_privacy:"bg-cyan-100 text-cyan-700",operational_resilience:"bg-orange-100 text-orange-700",third_party_risk:"bg-rose-100 text-rose-700",regulatory:"bg-teal-100 text-teal-700",other:"bg-gray-100 text-gray-700"};function Yze(){var g,y,w;const{slug:e}=C2(),{lang:t,t:n}=Zt(),[r,i]=O.useState(null),[s,o]=O.useState([]),[l,c]=O.useState(!0),[u,d]=O.useState(!1);if(O.useEffect(()=>{let j=!0;return c(!0),d(!1),(async()=>{try{const _=await Ne.entities.EncyclopediaArticle.filter({slug:e,status:"published"},"-publish_at",1);if(!j)return;if(_.length===0){d(!0),c(!1);return}i(_[0]),c(!1),Ne.entities.EncyclopediaArticle.update(_[0].id,{view_count:(_[0].view_count||0)+1}).catch(()=>{})}catch{j&&(d(!0),c(!1))}})(),()=>{j=!1}},[e]),O.useEffect(()=>{var _;if(!((_=r==null?void 0:r.related_articles)!=null&&_.length))return;let j=!0;return(async()=>{try{const N=await Ne.entities.EncyclopediaArticle.filter({status:"published"},"-publish_at",100);if(!j)return;const A=N.filter(E=>r.related_articles.includes(E.slug)&&E.id!==r.id);o(A.slice(0,3))}catch{}})(),()=>{j=!1}},[r]),O.useEffect(()=>{var T;if(!r)return;const j=(T=r.translations)==null?void 0:T[t],_=r.seo_title||(j==null?void 0:j.title)||r.title,N=r.seo_description||(j==null?void 0:j.summary)||r.summary||"";document.title=`${_} | Governancepedia`;const A=document.querySelector('meta[name="description"]');A&&N&&A.setAttribute("content",N);const E=document.querySelector('meta[property="og:title"]');E&&E.setAttribute("content",document.title);const k=document.querySelector('meta[property="og:description"]');k&&N&&k.setAttribute("content",N)},[r,t]),l)return a.jsx("div",{className:"flex justify-center items-center min-h-[60vh]",children:a.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(u||!r)return a.jsxs("div",{className:"max-w-2xl mx-auto py-20 px-4 text-center",children:[a.jsx("h1",{className:"text-2xl font-bold mb-4",children:n("encyclopedia.notFound")}),a.jsx("p",{className:"text-muted-foreground mb-6",children:n("encyclopedia.notFoundDesc")}),a.jsx(Dt,{to:"/encyclopedia",children:a.jsx(xe,{children:n("encyclopedia.backToHub")})})]});const f=(g=r.translations)==null?void 0:g[t],p=(f==null?void 0:f.title)||r.title,h=(f==null?void 0:f.subtitle)||r.subtitle||"",x=(f==null?void 0:f.summary)||r.summary||"",v=(f==null?void 0:f.content)||r.content||"";return a.jsxs("article",{className:"min-h-screen bg-background",children:[a.jsx("header",{className:"bg-gradient-to-br from-primary/5 via-background to-accent/30 border-b",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-12",children:[a.jsxs(Dt,{to:"/encyclopedia",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-primary mb-6",children:[a.jsx(gl,{className:"w-4 h-4"}),n("encyclopedia.backToHub")]}),a.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[a.jsx(at,{variant:"secondary",className:d9[r.category]||d9.other,children:n(`encyclopedia.categories.${r.category}`)}),a.jsx(at,{variant:"outline",className:"text-xs",children:n(`encyclopedia.contentTypes.${r.content_type}`)}),r.difficulty&&a.jsx(at,{variant:"outline",className:"text-xs capitalize",children:n(`encyclopedia.difficulty.${r.difficulty}`)})]}),a.jsx("h1",{className:"text-3xl md:text-4xl font-heading font-bold text-foreground mb-3",children:p}),h&&a.jsx("p",{className:"text-lg text-muted-foreground mb-4",children:h}),a.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-muted-foreground",children:[r.reading_time_minutes&&a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx(ks,{className:"w-4 h-4"}),r.reading_time_minutes," ",n("encyclopedia.minRead")]}),r.author&&a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx(z9,{className:"w-4 h-4"}),r.author]}),r.reviewed_by&&a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx(fi,{className:"w-4 h-4"}),n("encyclopedia.reviewedBy")," ",r.reviewed_by]})]})]})}),r.featured_image_url&&a.jsx("div",{className:"max-w-4xl mx-auto px-4 -mt-6",children:a.jsx("img",{src:r.featured_image_url,alt:p,className:"w-full aspect-[16/9] object-cover rounded-xl shadow-lg"})}),a.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-12",children:[x&&a.jsx("div",{className:"mb-8 p-6 bg-accent/30 rounded-xl border-l-4 border-primary",children:a.jsx("p",{className:"text-base text-foreground
1313/80 leading-relaxed",children:x})}),a.jsx("div",{className:"encyclopedia-content max-w-none",children:a.jsx(Ep,{components:{h1:({node:j,..._})=>a.jsx("h1",{className:"text-2xl font-heading font-bold text-foreground mt-8 mb-4",..._}),h2:({node:j,..._})=>a.jsx("h2",{className:"text-xl font-heading font-bold text-foreground mt-8 mb-3",..._}),h3:({node:j,..._})=>a.jsx("h3",{className:"text-lg font-heading font-semibold text-foreground mt-6 mb-2",..._}),p:({node:j,..._})=>a.jsx("p",{className:"text-foreground/80 leading-relaxed mb-4",..._}),ul:({node:j,..._})=>a.jsx("ul",{className:"list-disc pl-6 mb-4 space-y-1 text-foreground/80",..._}),ol:({node:j,..._})=>a.jsx("ol",{className:"list-decimal pl-6 mb-4 space-y-1 text-foreground/80",..._}),a:({node:j,..._})=>a.jsx("a",{className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",..._}),strong:({node:j,..._})=>a.jsx("strong",{className:"font-semibold text-foreground",..._}),table:({node:j,..._})=>a.jsx("div",{className:"overflow-x-auto mb-4",children:a.jsx("table",{className:"w-full border-collapse border border-border text-sm",..._})}),th:({node:j,..._})=>a.jsx("th",{className:"border border-border p-2 bg-muted/50 text-left font-semibold",..._}),td:({node:j,..._})=>a.jsx("td",{className:"border border-border p-2",..._}),blockquote:({node:j,..._})=>a.jsx("blockquote",{className:"border-l-4 border-primary pl-4 italic text-muted-foreground my-4",..._}),code:({node:j,..._})=>a.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-sm font-mono",..._})},children:v})}),((y=r.tags)==null?void 0:y.length)>0&&a.jsx("div",{className:"mt-10 pt-6 border-t",children:a.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[a.jsx(Qg,{className:"w-4 h-4 text-muted-foreground"}),r.tags.map(j=>a.jsx(at,{variant:"outline",className:"text-xs",children:j},j))]})}),((w=r.references)==null?void 0:w.length)>0&&a.jsxs("div",{className:"mt-8",children:[a.jsxs("h3",{className:"text-lg font-heading font-semibold mb-3 flex items-center gap-2",children:[a.jsx(sd,{className:"w-5 h-5"}),n("encyclopedia.references")]}),a.jsx("ul",{className:"space-y-2",children:r.references.map((j,_)=>a.jsx("li",{className:"text-sm text-muted-foreground",children:j.startsWith("http")?a.jsx("a",{href:j,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:j}):j},_))})]})]}),s.length>0&&a.jsx("section",{className:"bg-accent/20 border-t py-12 px-4",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsx("h2",{className:"text-2xl font-heading font-bold mb-6",children:n("encyclopedia.relatedArticles")}),a.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:s.map(j=>a.jsx(b4,{article:j},j.id))})]})})]})}const Xze=["board_governance","internal_controls","risk_management","compliance","audit","ethics","esg","cybersecurity_governance","data_privacy","operational_resilience","third_party_risk","regulatory","other"],Qze=["what_is","how_does","why_important","difference_between","best_practices","framework","guide","definition"],wP=["draft","review","published","archived"];function f9(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const h9={title:"",slug:"",subtitle:"",summary:"",content:"",category:"board_governance",content_type:"what_is",tags:[],difficulty:"beginner",reading_time_minutes:5,status:"draft",seo_title:"",seo_description:"",featured_image_url:"",author:"",reviewed_by:"",related_articles:[],references:[],translations:{de:{},fr:{},es:{}}};function Zze(){const{t:e}=Zt(),t=Ur(),[n,r]=O.useState(""),[i,s]=O.useState("all"),[o,l]=O.useState(null),[c,u]=O.useState(!1),{data:d=[],isLoading:f}=Qt({queryKey:["admin-encyclopedia"],queryFn:async()=>await Ne.entities.EncyclopediaArticle.list("-updated_date",200)}),p=Nn({mutationFn:async N=>{if(N.id){const{id:A,...E}=N;return await Ne.entities.EncyclopediaArticle.update(A,E)}return await Ne.entities.EncyclopediaArticle.create(N)},onSuccess:()=>{t.invalidateQueries({queryKey:["admin-encyclopedia"]}),t.invalidateQueries({queryKey:["encyclopedia-articles"]}),u(!1),l(null)}}),h=Nn({mutationFn:async N=>await Ne.entities.EncyclopediaArticle.delete(N),onSuccess:()=>{t.invalidateQueries({queryKey:["admin-encyclopedia"]}),t.invalidateQueries({queryKey:["encyclopedia-articles"]})}}),x=d.filter(N=>{var k,T;const A=!n||((k=N.title)==null?void 0:k.toLowerCase().includes(n.toLowerCase()))||((T=N.slug)==null?void 0:T.includes(n.toLowerCase())),E=i==="all"||N.status===i;return A&&E}),v=N=>{l({...h9,...N}),u(!0)},g=()=>{l({...h9}),u(!0)},y=()=>
1313{if(!o.title||!o.slug)return;const N={...o};N.seo_title||(N.seo_title=N.title),N.seo_description||(N.seo_description=N.summary),p.mutate(N)},w=(N,A)=>{l(E=>({...E,[N]:A}))},j=(N,A,E)=>{l(k=>{var T;return{...k,translations:{...k.translations,[N]:{...(T=k.translations)==null?void 0:T[N],[A]:E}}}})},_={draft:"bg-gray-100 text-gray-700",review:"bg-amber-100 text-amber-700",published:"bg-green-100 text-green-700",archived:"bg-red-100 text-red-700"};return a.jsxs("div",{className:"p-6 max-w-7xl mx-auto",children:[a.jsxs("div",{className:"flex items-center justify-between mb-6",children:[a.jsxs("div",{children:[a.jsxs("h1",{className:"text-2xl font-heading font-bold flex items-center gap-2",children:[a.jsx(as,{className:"w-6 h-6"}),e("encyclopedia.adminTitle")]}),a.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:e("encyclopedia.adminSubtitle")})]}),a.jsxs(xe,{onClick:g,className:"gap-2",children:[a.jsx(sa,{className:"w-4 h-4"}),e("encyclopedia.newArticle")]})]}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:wP.map(N=>a.jsx(Oe,{children:a.jsxs(Le,{className:"p-4",children:[a.jsx("div",{className:"text-2xl font-bold",children:d.filter(A=>A.status===N).length}),a.jsx("div",{className:"text-sm text-muted-foreground capitalize",children:e(`encyclopedia.status.${N}`)})]})},N))}),a.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-6",children:[a.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[a.jsx(eo,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),a.jsx(Qe,{placeholder:e("encyclopedia.searchPlaceholder"),value:n,onChange:N=>r(N.target.value),className:"pl-10"})]}),a.jsxs(Et,{value:i,onValueChange:s,children:[a.jsx(Pt,{className:"w-[180px]",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:e("encyclopedia.allStatuses")}),wP.map(N=>a.jsx(Ce,{value:N,children:e(`encyclopedia.status.${N}`)},N))]})]})]}),f?a.jsx("div",{className:"flex justify-center py-20",children:a.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})}):a.jsxs("div",{className:"rounded-xl border overflow-hidden",children:[a.jsxs("table",{className:"w-full",children:[a.jsx("thead",{className:"bg-muted/50",children:a.jsxs("tr",{className:"text-left text-sm",children:[a.jsx("th",{className:"p-3 font-medium",children:e("encyclopedia.tableTitle")}),a.jsx("th",{className:"p-3 font-medium hidden md:table-cell",children:e("encyclopedia.tableCategory")}),a.jsx("th",{className:"p-3 font-medium",children:e("encyclopedia.tableStatus")}),a.jsx("th",{className:"p-3 font-medium hidden lg:table-cell",children:e("encyclopedia.tableTranslations")}),a.jsx("th",{className:"p-3 font-medium text-right",children:e("encyclopedia.tableActions")})]})}),a.jsx("tbody",{children:x.map(N=>a.jsxs("tr",{className:"border-t hover:bg-muted/30",children:[a.jsxs("td",{className:"p-3",children:[a.jsx("div",{className:"font-medium text-sm",children:N.title}),a.jsxs("div",{className:"text-xs text-muted-foreground",children:["/",N.slug]})]}),a.jsx("td",{className:"p-3 hidden md:table-cell",children:a.jsx(at,{variant:"outline",className:"text-xs",children:e(`encyclopedia.categories.${N.category}`)})}),a.jsx("td",{className:"p-3",children:a.jsx(at,{className:`text-xs ${_[N.status]}`,children:e(`encyclopedia.status.${N.status}`)})}),a.jsx("td",{className:"p-3 hidden lg:table-cell",children:a.jsx("div",{className:"flex gap-1",children:["de","fr","es","sk"].map(A=>{var E,k;return a.jsx("span",{className:`text-xs px-1.5 py-0.5 rounded ${(k=(E=N.translations)==null?void 0:E[A])!=null&&k.title?"bg-green-100 text-green-700":"bg-gray-100 text-gray-400"}`,children:A.toUpperCase()},A)})})}),a.jsx("td",{className:"p-3 text-right",children:a.jsxs("div",{className:"flex justify-end gap-1",children:[a.jsx(xe,{variant:"ghost",size:"icon",onClick:()=>v(N),children:a.jsx(B9,{className:"w-4 h-4"})}),a.jsx(xe,{variant:"ghost",size:"icon",onClick:()=>{confirm(e("encyclopedia.confirmDelete"))&&h.mutate(N.id)},children:a.jsx(Ps,{className:"w-4 h-4 text-destructive"})})]})})]},N.id))})]}),x.length===0&&a.jsx("div",{className:"text-center py-12 text-muted-foreground",children:e("encyclopedia.noArticles")})]}),o&&a.jsx(Gn,{open:c,onOpenChange:u,children:a.jsxs(zn,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:o.id?e("encyclopedia.editArticle"):e("encyclopedia.newArticle")})}),a.jsxs(F0,{defaultValue:"content",children:[a.jsxs(bv,{className:"grid w-full grid-cols-3",children:[a.jsx(ni,{value:"content",children:e("encyclopedia.tabContent")}),a.jsx(ni,{value:"seo",children:e("encyclopedia.tabSeo")}),a.jsx(ni,{value:"translations",children:e("encyclopedia.tabTranslations")})]}
1313),a.jsxs(ri,{value:"content",className:"space-y-4 mt-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldTitle")}),a.jsx(Qe,{value:o.title,onChange:N=>{w("title",N.target.value),o.id||w("slug",f9(N.target.value))}})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldSlug")}),a.jsx(Qe,{value:o.slug,onChange:N=>w("slug",f9(N.target.value))})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldSubtitle")}),a.jsx(Qe,{value:o.subtitle||"",onChange:N=>w("subtitle",N.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldSummary")}),a.jsx(Pn,{value:o.summary||"",onChange:N=>w("summary",N.target.value),rows:2})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldCategory")}),a.jsxs(Et,{value:o.category,onValueChange:N=>w("category",N),children:[a.jsx(Pt,{children:a.jsx(Tt,{})}),a.jsx(Ct,{children:Xze.map(N=>a.jsx(Ce,{value:N,children:e(`encyclopedia.categories.${N}`)},N))})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldContentType")}),a.jsxs(Et,{value:o.content_type,onValueChange:N=>w("content_type",N),children:[a.jsx(Pt,{children:a.jsx(Tt,{})}),a.jsx(Ct,{children:Qze.map(N=>a.jsx(Ce,{value:N,children:e(`encyclopedia.contentTypes.${N}`)},N))})]})]})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldStatus")}),a.jsxs(Et,{value:o.status,onValueChange:N=>w("status",N),children:[a.jsx(Pt,{children:a.jsx(Tt,{})}),a.jsx(Ct,{children:wP.map(N=>a.jsx(Ce,{value:N,children:e(`encyclopedia.status.${N}`)},N))})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldDifficulty")}),a.jsxs(Et,{value:o.difficulty,onValueChange:N=>w("difficulty",N),children:[a.jsx(Pt,{children:a.jsx(Tt,{})}),a.jsx(Ct,{children:["beginner","intermediate","advanced"].map(N=>a.jsx(Ce,{value:N,children:e(`encyclopedia.difficulty.${N}`)},N))})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldReadingTime")}),a.jsx(Qe,{type:"number",value:o.reading_time_minutes||5,onChange:N=>w("reading_time_minutes",parseInt(N.target.value)||5)})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldContent")}),a.jsx(Pn,{value:o.content||"",onChange:N=>w("content",N.target.value),rows:10,className:"font-mono text-sm"}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:e("encyclopedia.markdownHint")})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldTags")}),a.jsx(Qe,{value:(o.tags||[]).join(", "),onChange:N=>w("tags",N.target.value.split(",").map(A=>A.trim()).filter(Boolean)),placeholder:"governance, board, oversight"})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldAuthor")}),a.jsx(Qe,{value:o.author||"",onChange:N=>w("author",N.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldReviewedBy")}),a.jsx(Qe,{value:o.reviewed_by||"",onChange:N=>w("reviewed_by",N.target.value)})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldImageUrl")}),a.jsx(Qe,{value:o.featured_image_url||"",onChange:N=>w("featured_image_url",N.target.value),placeholder:"https://..."})]})]}),a.jsxs(ri,{value:"seo",className:"space-y-4 mt-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldSeoTitle")}),a.jsx(Qe,{value:o.seo_title||"",onChange:N=>w("seo_title",N.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldSeoDescription")}),a.jsx(Pn,{value:o.seo_description||"",onChange:N=>w("seo_description",N.target.value),rows:3})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldRelatedArticles")}),a.jsx(Qe,{value:(o.related_articles||[]).join(", "),onChange:N=>w("related_articles",N.target.value.split(",").map(A=>A.trim()).filter(Boolean)),placeholder:"what-is-board-governance, how-does-risk-management-work"})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("encyclopedia.fieldReferences")}),a.jsx(Pn,{value:(o.references||[]).join(` 1314`),onChange:N=>w("references",N.target.value.split(` 1315`).map(A=>
1315A.trim()).filter(Boolean)),rows:4})]})]}),a.jsx(ri,{value:"translations",className:"space-y-4 mt-4",children:["de","fr","es","sk"].map(N=>{var A,E,k,T,D,P,R,q;return a.jsxs(Oe,{children:[a.jsx(vt,{className:"pb-3",children:a.jsxs(yt,{className:"text-sm flex items-center gap-2",children:[N.toUpperCase(),((E=(A=o.translations)==null?void 0:A[N])==null?void 0:E.title)&&a.jsx(fi,{className:"w-4 h-4 text-green-500"})]})}),a.jsxs(Le,{className:"space-y-3",children:[a.jsxs("div",{children:[a.jsx(Se,{className:"text-xs",children:e("encyclopedia.fieldTitle")}),a.jsx(Qe,{value:((T=(k=o.translations)==null?void 0:k[N])==null?void 0:T.title)||"",onChange:M=>j(N,"title",M.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{className:"text-xs",children:e("encyclopedia.fieldSummary")}),a.jsx(Qe,{value:((P=(D=o.translations)==null?void 0:D[N])==null?void 0:P.summary)||"",onChange:M=>j(N,"summary",M.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{className:"text-xs",children:e("encyclopedia.fieldContent")}),a.jsx(Pn,{value:((q=(R=o.translations)==null?void 0:R[N])==null?void 0:q.content)||"",onChange:M=>j(N,"content",M.target.value),rows:6,className:"font-mono text-sm"})]})]})]},N)})})]}),a.jsxs(j0,{className:"mt-4",children:[a.jsx(xe,{variant:"outline",onClick:()=>u(!1),children:e("encyclopedia.cancel")}),a.jsx(xe,{onClick:y,disabled:p.isPending,children:p.isPending?e("encyclopedia.saving"):e("encyclopedia.save")})]})]})})]})}const p9={board_governance:"bg-blue-100 text-blue-700",internal_controls:"bg-purple-100 text-purple-700",risk_management:"bg-red-100 text-red-700",compliance:"bg-green-100 text-green-700",audit:"bg-amber-100 text-amber-700",ethics:"bg-teal-100 text-teal-700",esg:"bg-emerald-100 text-emerald-700",cybersecurity_governance:"bg-indigo-100 text-indigo-700",data_privacy:"bg-cyan-100 text-cyan-700",operational_resilience:"bg-orange-100 text-orange-700",third_party_risk:"bg-rose-100 text-rose-700",regulatory:"bg-slate-100 text-slate-700",other:"bg-gray-100 text-gray-700"};function Jze({term:e}){var o;const{t,lang:n}=Zt(),r=n!=="en"?(o=e.translations)==null?void 0:o[n]:null,i=(r==null?void 0:r.term)||e.term,s=(r==null?void 0:r.definition)||e.definition;return a.jsxs(Dt,{to:`/glossary/${e.slug}`,className:"group block rounded-xl border bg-card p-5 shadow-sm transition-all hover:shadow-md hover:border-primary/30",children:[a.jsxs("div",{className:"flex items-start justify-between gap-3 mb-2",children:[a.jsx("h3",{className:"font-heading font-semibold text-lg group-hover:text-primary transition-colors",children:i}),a.jsx(at,{variant:"secondary",className:`shrink-0 ${p9[e.category]||p9.other}`,children:t(`encyclopedia.categories.${e.category}`)})]}),a.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:s})]})}const e$e=["board_governance","internal_controls","risk_management","compliance","audit","ethics","esg","cybersecurity_governance","data_privacy","operational_resilience","third_party_risk","regulatory","other"];function t$e(){const{t:e}=Zt(),[t,n]=O.useState(""),[r,i]=O.useState("all"),{data:s=[],isLoading:o}=Qt({queryKey:["glossary-terms"],queryFn:async()=>await Ne.entities.GovernanceTerm.filter({status:"published"},"display_order",200)}),l=O.useMemo(()=>s.filter(u=>{var p,h,x;const d=!t||((p=u.term)==null?void 0:p.toLowerCase().includes(t.toLowerCase()))||((h=u.definition)==null?void 0:h.toLowerCase().includes(t.toLowerCase()))||((x=u.synonyms)==null?void 0:x.some(v=>v.toLowerCase().includes(t.toLowerCase()))),f=r==="all"||u.category===r;return d&&f}),[s,t,r]),c=O.useMemo(()=>{const u={};return l.forEach(d=>{const f=(d.term||"#").charAt(0).toUpperCase();u[f]||(u[f]=[]),u[f].push(d)}),Object.keys(u).sort().reduce((d,f)=>(d[f]=u[f],d),{})},[l]);return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(IT,{}),a.jsx("section",{className:"border-b bg-gradient-to-b from-primary/5 to-background",children:a.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-16",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a.jsx(as,{className:"h-5 w-5 text-primary"}),a.jsx("span",{className:"text-sm font-medium text-primary uppercase tracking-wide",children:e("glossary.badge")})]}),a.jsx("h1",{className:"text-4xl md:text-5xl font-heading font-bold mb-4",children:e("glossary.heroTitle")}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl",children:e("glossary.heroSubtitle")})]})}),a.jsx("section",{className:"sticky top-16 z-30 border-b bg-background/95 backdrop-blur",children:a.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-4",children:[a.jsxs("div",{className:"flex flex-col md:flex-row gap-3",children:[a.jsxs("div",{className:"relative flex-1",children:[a.jsx(eo,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),a.jsx(Qe,{placeholder:e("glossary.searchPlaceholder"),value:t,onChange:u=>n(u.target.value),className:"pl-10"})]}),a.jsxs(Et,{value:r,onValueChange:i,children:[a.jsxs(Pt,{className:"w-full md:w-56",children:[a.jsx(I9,{className:"mr-2 h-4 w-4"}),a.jsx(Tt,{})]}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:e("glossary.allCategories")}),e$e.map(u=>a.jsx(Ce,{value:u,children:e(`encyclopedia.categories.${u}`)},u))]})]})]}),a.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:[l.length," ",e("glossary.terms")]})]})}),a.jsx("section",{className:"max-w-6xl mx-auto px-4 py-12",children:o?a.jsx("div",{className:"text-center py-20 text-muted-foreground",children:e("common.loading")}):l.length===0?a.jsxs("div",{className:"text-center py-20",children:[a.jsx("p",{className:"text-xl font-semibold mb-2",children:e("glossary.noTerms")}),a.jsx("p",{className:"text-muted-foreground",children:e("glossary.noTerms
1315Desc")})]}):a.jsx("div",{className:"space-y-10",children:Object.entries(c).map(([u,d])=>a.jsxs("div",{children:[a.jsx("h2",{className:"text-2xl font-heading font-bold mb-4 text-primary/80 sticky top-32 bg-background py-1",children:u}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:d.map(f=>a.jsx(Jze,{term:f},f.id))})]},u))})})]})}function n$e(){var y,w;const{slug:e}=C2(),{t,lang:n}=Zt(),[r,i]=O.useState(null),[s,o]=O.useState(!0),[l,c]=O.useState([]),[u,d]=O.useState([]);if(O.useEffect(()=>{(async()=>{var _,N;o(!0);try{const E=(await Ne.entities.GovernanceTerm.filter({slug:e,status:"published"},null,1))[0];if(i(E),E){if(Ne.entities.GovernanceTerm.update(E.id,{view_count:(E.view_count||0)+1}),(_=E.related_terms)!=null&&_.length){const k=await Ne.entities.GovernanceTerm.filter({slug:{$in:E.related_terms},status:"published"});c(k)}if((N=E.related_article_slugs)!=null&&N.length){const k=await Ne.entities.EncyclopediaArticle.filter({slug:{$in:E.related_article_slugs},status:"published"});d(k)}}}catch(A){console.error("Error fetching term:",A)}finally{o(!1)}})()},[e]),s)return a.jsx("div",{className:"min-h-screen flex items-center justify-center",children:a.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(!r)return a.jsx("div",{className:"min-h-screen flex items-center justify-center px-4",children:a.jsxs("div",{className:"text-center max-w-md",children:[a.jsx(as,{className:"h-16 w-16 mx-auto mb-4 text-muted-foreground"}),a.jsx("h1",{className:"text-2xl font-heading font-bold mb-2",children:t("glossary.notFound")}),a.jsx("p",{className:"text-muted-foreground mb-6",children:t("glossary.notFoundDesc")}),a.jsx(Dt,{to:"/glossary",children:a.jsxs(xe,{variant:"outline",children:[a.jsx(gl,{className:"mr-2 h-4 w-4"}),t("glossary.backToGlossary")]})})]})});const f=n!=="en"?(y=r.translations)==null?void 0:y[n]:null,p=(f==null?void 0:f.term)||r.term,h=(f==null?void 0:f.definition)||r.definition,x=(f==null?void 0:f.detailed_explanation)||r.detailed_explanation,v=r.seo_title||`${p} â Governancepedia Glossary`,g=r.seo_description||(h==null?void 0:h.substring(0,160));return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(IT,{title:v,description:g}),a.jsxs("article",{className:"max-w-4xl mx-auto px-4 py-12",children:[a.jsxs(Dt,{to:"/glossary",className:"inline-flex items-center text-sm text-muted-foreground hover:text-primary mb-6",children:[a.jsx(gl,{className:"mr-2 h-4 w-4"}),t("glossary.backToGlossary")]}),a.jsxs("div",{className:"mb-8",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[a.jsx(at,{variant:"secondary",children:t(`encyclopedia.categories.${r.category}`)}),a.jsx(at,{variant:"outline",children:t(`glossary.difficulty.${r.difficulty}`)})]}),a.jsx("h1",{className:"text-4xl font-heading font-bold mb-3",children:p}),a.jsx("p",{className:"text-xl text-muted-foreground",children:h})]}),((w=r.synonyms)==null?void 0:w.length)>0&&a.jsxs("div",{className:"mb-8 flex items-center gap-2 flex-wrap",children:[a.jsxs("span",{className:"text-sm font-medium text-muted-foreground",children:[t("glossary.synonyms"),":"]}),r.synonyms.map((j,_)=>a.jsx(at,{variant:"outline",children:j},_))]}),x&&a.jsxs("div",{className:"prose prose-lg max-w-none mb-10",children:[a.jsx("h2",{className:"text-xl font-heading font-semibold mb-4",children:t("glossary.detailedExplanation")}),a.jsx(Ep,{children:x})]}),l.length>0&&a.jsxs("div",{className:"mb-10",children:[a.jsxs("h2",{className:"text-xl font-heading font-semibold mb-4 flex items-center gap-2",children:[a.jsx(Qg,{className:"h-5 w-5"}),t("glossary.relatedTerms")]}),a.jsx("div",{className:"flex flex-wrap gap-2",children:l.map(j=>{var _,N;return a.jsx(Dt,{to:`/glossary/${j.slug}`,children:a.jsx(at,{variant:"secondary",className:"cursor-pointer hover:bg-primary/10",children:((N=(_=j.translations)==null?void 0:_[n])==null?void 0:N.term)||j.term})},j.id)})})]}),u.length>0&&a.jsxs("div",{className:"mb-10",children:[a.jsxs("h2",{className:"text-xl font-heading font-semibold mb-4 flex items-center gap-2",children:[a.jsx(Xn,{className:"h-5 w-5"}),t("glossary.relatedArticles")]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:u.map(j=>a.jsxs(Dt,{to:`/encyclopedia/${j.slug}`,className:"flex items-center gap-3 rounded-lg border p-4 hover:border-primary/30 hover:bg-accent/30 transition-colors",children:[a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"font-medium",children:j.title}),a.jsx("p",{className:"text-sm text-muted-foreground line-clamp-1",children:j.summary})]}),a.jsx(nx,{className:"h-4 w-4 text-muted-foreground"})]},j.id))})]})]})]})}const r$e=["board_governance","internal_controls","risk_management","compliance","audit","ethics","esg","cybersecurity_governance","data_privacy","operational_resilience","third_party_risk","regulatory","other"],m9=["draft","published","archived"],i$e=["beginner","intermediate","advanced"];function g9(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const jP={term:"",slug:"",definition:"",detailed_explanation:"",category:"board_governance",synonyms:[],related_terms:[],related_article_slugs:[],difficulty:"beginner",status:"draft",seo_title:"",seo_description:"",translations:{de:{},fr:{},es:{}}};function a$e(){const{t:e}=Zt(),t=Ur(),[n,r]=O.useState(""),[i,s]=O.useState("all"),[o,l]=O.useState(null),[c,u]=O.useState(jP),[d,f]=O.useState(!1),{data:p=[],isLoading:h}=Qt({queryKey:["admin-glossary-terms"],queryFn:async()=>await Ne.entities.GovernanceTerm.list("-updated_date",200)}),x=p.filter(A=>{var T;const E=!n||((T=A.term)==null?void 0:T.toLowerCase().includes(n.toLowerCase())),k=i==="all"||A.status===i;return E&&k}),v=Nn({mutationFn:async A=>A.id?Ne.entities.GovernanceTerm.update(A.id,A):Ne.entities.GovernanceTerm.create(A),onSuccess:()=>{t.invalidateQueries({queryKey:["admin-glossary-terms"]}),t.invalidateQueries({queryKey:["glossary-terms"]}),l(null),f(!1)},onError:()=>f(!1)}),g=Nn({mutationFn:async A=>Ne.entities.GovernanceTerm.delete(A),onSuccess:()=>{t.invalidateQueries({queryKey:["admin-glossary-terms"]}),t.invalidateQueries({queryKey:["glossary-terms"]})}}),y=A=>{l(A),u({...jP,...A})},w=()=>
1315{l({}),u({...jP})},j=()=>{f(!0);const A={...c};A.slug||(A.slug=g9(A.term)),typeof A.synonyms=="string"&&(A.synonyms=A.synonyms.split(",").map(E=>E.trim()).filter(Boolean)),typeof A.related_terms=="string"&&(A.related_terms=A.related_terms.split(",").map(E=>E.trim()).filter(Boolean)),typeof A.related_article_slugs=="string"&&(A.related_article_slugs=A.related_article_slugs.split(",").map(E=>E.trim()).filter(Boolean)),v.mutate(A)},_=(A,E)=>u(k=>({...k,[A]:E})),N=(A,E,k)=>u(T=>{var D;return{...T,translations:{...T.translations,[A]:{...(D=T.translations)==null?void 0:D[A],[E]:k}}}});return a.jsxs("div",{className:"min-h-screen bg-background p-8",children:[a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"flex justify-between items-center mb-6",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-3xl font-heading font-bold",children:e("glossary.adminTitle")}),a.jsx("p",{className:"text-muted-foreground mt-1",children:e("glossary.adminSubtitle")})]}),a.jsxs(xe,{onClick:w,children:[a.jsx(sa,{className:"mr-2 h-4 w-4"}),e("glossary.newTerm")]})]}),a.jsxs("div",{className:"flex gap-3 mb-6",children:[a.jsxs("div",{className:"relative flex-1",children:[a.jsx(eo,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),a.jsx(Qe,{placeholder:e("glossary.searchPlaceholder"),value:n,onChange:A=>r(A.target.value),className:"pl-10"})]}),a.jsxs(Et,{value:i,onValueChange:s,children:[a.jsx(Pt,{className:"w-48",children:a.jsx(Tt,{})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:e("glossary.allTerms")}),m9.map(A=>a.jsx(Ce,{value:A,children:e(`glossary.status.${A}`)},A))]})]})]}),h?a.jsx("div",{className:"text-center py-12 text-muted-foreground",children:e("common.loading")}):a.jsx("div",{className:"rounded-lg border",children:a.jsxs("table",{className:"w-full",children:[a.jsx("thead",{className:"bg-muted/50",children:a.jsxs("tr",{children:[a.jsx("th",{className:"text-left p-3 font-medium",children:e("glossary.tableTerm")}),a.jsx("th",{className:"text-left p-3 font-medium",children:e("glossary.tableCategory")}),a.jsx("th",{className:"text-left p-3 font-medium",children:e("glossary.tableStatus")}),a.jsx("th",{className:"text-left p-3 font-medium",children:e("glossary.tableTranslations")}),a.jsx("th",{className:"text-right p-3 font-medium",children:e("glossary.tableActions")})]})}),a.jsx("tbody",{children:x.map(A=>a.jsxs("tr",{className:"border-t hover:bg-muted/30",children:[a.jsxs("td",{className:"p-3",children:[a.jsx("div",{className:"font-medium",children:A.term}),a.jsxs("div",{className:"text-xs text-muted-foreground",children:["/",A.slug]})]}),a.jsx("td",{className:"p-3",children:a.jsx(at,{variant:"outline",children:e(`encyclopedia.categories.${A.category}`)})}),a.jsx("td",{className:"p-3",children:a.jsx(at,{variant:A.status==="published"?"default":"secondary",children:e(`glossary.status.${A.status}`)})}),a.jsx("td",{className:"p-3",children:a.jsx("div",{className:"flex gap-1",children:["de","fr","es","sk"].map(E=>{var T,D;const k=(D=(T=A.translations)==null?void 0:T[E])==null?void 0:D.term;return a.jsx("span",{className:`text-xs px-1.5 py-0.5 rounded ${k?"bg-green-100 text-green-700":"bg-gray-100 text-gray-400"}`,children:E.toUpperCase()},E)})})}),a.jsxs("td",{className:"p-3 text-right",children:[a.jsx(xe,{variant:"ghost",size:"icon",onClick:()=>y(A),children:a.jsx(B9,{className:"h-4 w-4"})}),a.jsx(xe,{variant:"ghost",size:"icon",onClick:()=>{confirm(e("glossary.confirmDelete"))&&g.mutate(A.id)},children:a.jsx(Ps,{className:"h-4 w-4 text-destructive"})})]})]},A.id))})]})})]}),o&&a.jsx(Gn,{open:!0,onOpenChange:A=>!A&&l(null),children:a.jsxs(zn,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[a.jsx(Vn,{children:a.jsx(Wn,{children:o.id?e("glossary.editTerm"):e("glossary.newTerm")})}),a.jsxs(F0,{defaultValue:"content",children:[a.jsxs(bv,{children:[a.jsx(ni,{value:"content",children:e("glossary.tabContent")}),a.jsx(ni,{value:"seo",children:e("glossary.tabSeo")}),a.jsx(ni,{value:"translations",children:e("glossary.tabTranslations")})]}
1315),a.jsxs(ri,{value:"content",className:"space-y-4 mt-4",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("glossary.fieldTerm")}),a.jsx(Qe,{value:c.term||"",onChange:A=>_("term",A.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("glossary.fieldSlug")}),a.jsx(Qe,{value:c.slug||"",onChange:A=>_("slug",g9(A.target.value)),placeholder:"auto-generated"})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("glossary.fieldDefinition")}),a.jsx(Pn,{value:c.definition||"",onChange:A=>_("definition",A.target.value),rows:2})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("glossary.fieldDetailedExplanation")}),a.jsx(Pn,{value:c.detailed_explanation||"",onChange:A=>_("detailed_explanation",A.target.value),rows:8,className:"font-mono text-sm"}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:e("encyclopedia.markdownHint")})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("glossary.fieldCategory")}),a.jsxs(Et,{value:c.category,onValueChange:A=>
1315_("category",A),children:[a.jsx(Pt,{children:a.jsx(Tt,{})}),a.jsx(Ct,{children:r$e.map(A=>a.jsx(Ce,{value:A,children:e(`encyclopedia.categories.${A}`)},A))})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("glossary.fieldDifficulty")}),a.jsxs(Et,{value:c.difficulty,onValueChange:A=>_("difficulty",A),children:[a.jsx(Pt,{children:a.jsx(Tt,{})}),a.jsx(Ct,{children:i$e.map(A=>a.jsx(Ce,{value:A,children:e(`glossary.difficulty.${A}`)},A))})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("glossary.fieldStatus")}),a.jsxs(Et,{value:c.status,onValueChange:A=>_("status",A),children:[a.jsx(Pt,{children:a.jsx(Tt,{})}),a.jsx(Ct,{children:m9.map(A=>a.jsx(Ce,{value:A,children:e(`glossary.status.${A}`)},A))})]})]})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("glossary.fieldSynonyms")}),a.jsx(Qe,{value:Array.isArray(c.synonyms)?c.synonyms.join(", "):c.synonyms||"",onChange:A=>_("synonyms",A.target.value)})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("glossary.fieldRelatedTerms")}),a.jsx(Qe,{value:Array.isArray(c.related_terms)?c.related_terms.join(", "):c.related_terms||"",onChange:A=>_("related_terms",A.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("glossary.fieldRelatedArticles")}),a.jsx(Qe,{value:Array.isArray(c.related_article_slugs)?c.related_article_slugs.join(", "):c.related_article_slugs||"",onChange:A=>_("related_article_slugs",A.target.value)})]})]})]}),a.jsxs(ri,{value:"seo",className:"space-y-4 mt-4",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("glossary.fieldSeoTitle")}),a.jsx(Qe,{value:c.seo_title||"",onChange:A=>_("seo_title",A.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("glossary.fieldSeoDescription")}),a.jsx(Pn,{value:c.seo_description||"",onChange:A=>_("seo_description",A.target.value),rows:3})]})]}),a.jsx(ri,{value:"translations",className:"space-y-4 mt-4",children:["de","fr","es","sk"].map(A=>{var E,k,T,D,P,R,q,M;return a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"text-base flex items-center gap-2",children:[A.toUpperCase(),((k=(E=c.translations)==null?void 0:E[A])==null?void 0:k.term)&&a.jsx(fi,{className:"h-4 w-4 text-green-500"})]})}),a.jsxs(Le,{className:"space-y-3",children:[a.jsxs("div",{children:[a.jsx(Se,{children:e("glossary.fieldTerm")}),a.jsx(Qe,{value:((D=(T=c.translations)==null?void 0:T[A])==null?void 0:D.term)||"",onChange:V=>N(A,"term",V.target.value)})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("glossary.fieldDefinition")}),a.jsx(Pn,{value:((R=(P=c.translations)==null?void 0:P[A])==null?void 0:R.definition)||"",onChange:V=>N(A,"definition",V.target.value),rows:2})]}),a.jsxs("div",{children:[a.jsx(Se,{children:e("glossary.fieldDetailedExplanation")}),a.jsx(Pn,{value:((M=(q=c.translations)==null?void 0:q[A])==null?void 0:M.detailed_explanation)||"",onChange:V=>N(A,"detailed_explanation",V.target.value),rows:4,className:"font-mono text-sm"})]})]})]},A)})})]}),a.jsxs(j0,{children:[a.jsx(xe,{variant:"outline",onClick:()=>l(null),children:e("glossary.cancel")}),a.jsx(xe,{onClick:j,disabled:d,children:e(d?"glossary.saving":"glossary.save")})]})]})})]})}const _y=[{code:"de",label:"DE"},{code:"fr",label:"FR"},{code:"es",label:"ES"},{code:"sk",label:"SK"}];function h1(e,t){var s;if(!((s=e.translations)!=null&&s[t]))return"missing";const n=e.translations[t],r=n.term||n.title,i=n.definition||n.summary||n.content;return!r&&!i?"missing":r&&!i||!r&&i?"partial":"complete"}function s$e(){const{t:e}=Zt(),t=Ur(),[n,r]=O.useState("all"),[i,s]=O.useState("all"),[o,l]=O.useState("all"),[c,u]=O.useState(null),{data:d=[]}=Qt({queryKey:["admin-encyclopedia-articles"],queryFn:async()=>await Ne.entities.EncyclopediaArticle.list("-updated_date",200)}),{data:f=[]}=Qt({queryKey:["admin-glossary-terms-translation"],queryFn:async()=>await Ne.entities.GovernanceTerm.list("-updated_date",200)}),p=O.useMemo(()=>{const w=[];return d.forEach(j=>{w.push({id:j.id,type:"encyclopedia",typeLabel:e("translationCenter.encyclopedia"),title:j.title,slug:j.slug,translations:j.translations||{},raw:j})}),f.forEach(j=>{w.push({id:j.id,type:"glossary",typeLabel:e("translationCenter.glossary"),title:j.term,slug:j.slug,translations:j.translations||{},raw:j})}),w},[d,f,e]),h=O.useMemo(()=>{const w={};
1315return _y.forEach(({code:j})=>{let _=0,N=0,A=0,E=0;p.forEach(k=>{_++;const T=h1(k,j);T==="complete"?N++:T==="partial"?A++:E++}),w[j]={total:_,complete:N,partial:A,missing:E,rate:_>0?Math.round(N/_*100):0}}),w},[p]),x=O.useMemo(()=>p.filter(w=>{const j=n==="all"||w.type===n;return j?i==="all"||o==="all"?j:h1(w,i)===o:!1}),[p,n,i,o]),v={complete:"bg-green-100 text-green-700",partial:"bg-amber-100 text-amber-700",missing:"bg-red-100 text-red-700"},g={complete:a.jsx(fi,{className:"h-3.5 w-3.5"}),partial:a.jsx(ks,{className:"h-3.5 w-3.5"}),missing:a.jsx(Kl,{className:"h-3.5 w-3.5"})},y=async(w,j)=>{u(`${w.id}-${j}`);try{const _=w.type==="encyclopedia"?`Title: ${w.raw.title} 1316Summary: ${w.raw.summary||""} 1317Content: ${(w.raw.content||"").substring(0,3e3)}`:`Term: ${w.raw.term} 1318Definition: ${w.raw.definition||""} 1319Detailed Explanation: ${(w.raw.detailed_explanation||"").substring(0,2e3)}`,A=`Translate the following governance content into ${{de:"German",fr:"French",es:"Spanish"}[j]}. Return ONLY a JSON object with the translated fields. 1320 1321Source content: 1322${_} 1323 1324Return JSON with these fields: 1325${w.type==="encyclopedia"?'{"title": "...", "subtitle": "...", "summary": "...", "content": "..."}':'{"term": "...", "definition": "...", "detailed_explanation": "..."}'}`,E=await Ne.integrations.Core.InvokeLLM({prompt:A,response_json_schema:w.type==="encyclopedia"?{type:"object",properties:{title:{type:"string"},subtitle:{type:"string"},summary:{type:"string"},content:{type:"string"}}}:{type:"object",properties:{term:{type:"string"},definition:{type:"string"},detailed_explanation:{type:"string"}}}}),k=typeof E=="string"?JSON.parse(E):E,T={...w.raw.translations,[j]:k};w.type==="encyclopedia"?await Ne.entities.EncyclopediaArticle.update(w.id,{translations:T}):await Ne.entities.GovernanceTerm.update(w.id,{translations:T}),t.invalidateQueries({queryKey:["admin-encyclopedia-articles"]}),t.invalidateQueries({queryKey:["admin-glossary-terms-translation"]})}catch(_){console.error("Translation generation failed:",_),alert("Translation generation failed: "+(_.message||"Unknown error"))}finally{u(null)}};return a.jsx("div",{className:"min-h-screen bg-background p-8",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"mb-6",children:[a.jsxs("h1",{className:"text-3xl font-heading font-bold flex items-center gap-2",children:[a.jsx(Sp,{className:"h-7 w-7"}),e("translationCenter.adminTitle")]}),a.jsx("p",{className:"text-muted-foreground mt-1",children:e("translationCenter.adminSubtitle")})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-8",children:_y.map(({code:w,label:j})=>{const _=h[w];return a.jsxs(Oe,{children:[a.jsx(vt,{children:a.jsxs(yt,{className:"flex items-center justify-between",children:[a.jsx("span",{children:e(`translationCenter.translated${j}`)}),a.jsxs("span",{className:"text-2xl font-bold",children:[_.rate,"%"]})]})}),a.jsxs(Le,{children:[a.jsx(k0,{value:_.rate,className:"mb-3"}),a.jsxs("div",{className:"flex justify-between text-sm",children:[a.jsxs("span",{className:"text-green-600 flex items-center gap-1",children:[a.jsx(fi,{className:"h-3 w-3"})," ",_.complete]}),a.jsxs("span",{className:"text-amber-600 flex items-center gap-1",children:[a.jsx(ks,{className:"h-3 w-3"})," ",_.partial]}),a.jsxs("span",{className:"text-red-600 flex items-center gap-1",children:[a.jsx(Kl,{className:"h-3 w-3"})," ",_.missing]}),a.jsxs("span",{className:"text-muted-foreground",children:[_.total," ",e("translationCenter.totalItems")]})]})]})]},w)})}),a.jsxs("div",{className:"flex flex-wrap gap-3 mb-6",children:[a.jsxs(Et,{value:n,onValueChange:r,children:[a.jsx(Pt,{className:"w-56",children:a.jsx(Tt,{placeholder:e("translationCenter.filterByContent")})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:e("translationCenter.allContentTypes")}),a.jsx(Ce,{value:"encyclopedia",children:e("translationCenter.encyclopedia")}),a.jsx(Ce,{value:"glossary",children:e("translationCenter.glossary")})]})]}),a.jsxs(Et,{value:i,onValueChange:s,children:[a.jsx(Pt,{className:"w-48",children:a.jsx(Tt,{placeholder:e("translationCenter.filterByLanguage")})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:e("translationCenter.allLanguages")}),_y.map(({code:w,label:j})=>a.jsx(Ce,{value:w,children:j},w))]})]}),a.jsxs(Et,{value:o,onValueChange:l,children:[a.jsx(Pt,{className:"w-48",children:a.jsx(Tt,{placeholder:e("translationCenter.filterByStatus")})}),a.jsxs(Ct,{children:[a.jsx(Ce,{value:"all",children:e("translationCenter.allStatuses")}),a.jsx(Ce,{value:"complete",children:e("translationCenter.complete")}
1325),a.jsx(Ce,{value:"partial",children:e("translationCenter.partial")}),a.jsx(Ce,{value:"missing",children:e("translationCenter.missing")})]})]})]}),a.jsx("div",{className:"rounded-lg border",children:a.jsxs("table",{className:"w-full",children:[a.jsx("thead",{className:"bg-muted/50",children:a.jsxs("tr",{children:[a.jsx("th",{className:"text-left p-3 font-medium",children:e("glossary.tableTerm")}),a.jsx("th",{className:"text-left p-3 font-medium",children:e("translationCenter.translationStatus")}),a.jsx("th",{className:"text-right p-3 font-medium",children:e("glossary.tableActions")})]})}),a.jsx("tbody",{children:x.slice(0,100).map(w=>a.jsxs("tr",{className:"border-t hover:bg-muted/30",children:[a.jsx("td",{className:"p-3",children:a.jsxs("div",{className:"flex items-center gap-2",children:[w.type==="encyclopedia"?a.jsx(Xn,{className:"h-4 w-4 text-muted-foreground"}):a.jsx(as,{className:"h-4 w-4 text-muted-foreground"}),a.jsxs("div",{children:[a.jsx("div",{className:"font-medium",children:w.title}),a.jsxs("div",{className:"text-xs text-muted-foreground",children:[w.typeLabel," · /",w.slug]})]})]})}),a.jsx("td",{className:"p-3",children:a.jsx("div",{className:"flex gap-2",children:_y.map(({code:j,label:_})=>{const N=h1(w,j);return a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("span",{className:"text-xs font-medium",children:_}),a.jsx("span",{className:`inline-flex items-center gap-1 text-xs px-1.5 py-0.5 rounded ${v[N]}`,children:g[N]})]},j)})})}),a.jsx("td",{className:"p-3 text-right",children:a.jsx("div",{className:"flex justify-end gap-1",children:_y.map(({code:j,label:_})=>{h1(w,j);const N=c===`${w.id}-${j}`;return a.jsx(xe,{variant:"ghost",size:"sm",disabled:N,onClick:()=>y(w,j),title:e("translationCenter.autoGenerateDesc"),children:N?a.jsx("span",{className:"text-xs",children:e("translationCenter.generating")}):a.jsxs(a.Fragment,{children:[a.jsx(Xr,{className:"h-3 w-3 mr-1"}),a.jsx("span",{className:"text-xs",children:_})]})},j)})})})]},`${w.type}-${w.id}`))})]})}),x.length>100&&a.jsxs("p",{className:"text-center text-sm text-muted-foreground mt-4",children:["Showing 100 of ",x.length," items"]})]})})}const o$e=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:r}=jG();return t||e?a.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:a.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})}):n&&n.type==="user_not_registered"?a.jsx(jde,{}):a.jsx(a.Fragment,{children:a.jsxs(Zse,{children:[a.jsxs(yn,{element:a.jsx(Jbe,{}),children:[a.jsx(yn,{path:"/",element:a.jsx(U_e,{})}),a.jsx(yn,{path:"/health-check",element:a.jsx(wNe,{})}),a.jsx(yn,{path:"/policy-generator",element:a.jsx(NNe,{})}),a.jsx(yn,{path:"/risk-analyzer",element:a.jsx(SNe,{})}),a.jsx(yn,{path:"/decision-engine",element:a.jsx(kNe,{})}),a.jsx(yn,{path:"/micro-tools",element:a.jsx(TNe,{})}),a.jsx(yn,{path:"/intelligence",element:a.jsx(INe,{})}),a.jsx(yn,{path:"/dashboard",element:a.jsx(Dke,{})}),a.jsx(yn,{path:"/pricing",element:a.jsx(qke,{})}),a.jsx(yn,{path:"/admin",element:a.jsx(zke,{})}),a.jsx(yn,{path:"/admin/users",element:a.jsx($ke,{})}),a.jsx(yn,{path:"/admin/support",element:a.jsx(Uke,{})}),a.jsx(yn,{path:"/admin/analytics",element:a.jsx(uqe,{})}),a.jsx(yn,{path:"/admin/billing",element:a.jsx(hqe,{})}),a.jsx(yn,{path:"/admin/advertisements",element:a.jsx(pqe,{})}),a.jsx(yn,{path:"/admin/issues",element:a.jsx(Nqe,{})}),a.jsx(yn,{path:"/admin/policies",element:a.jsx(Mqe,{})}),a.jsx(yn,{path:"/policy/:slug",element:a.jsx(Dqe,{})}),a.jsx(yn,{path:"/admin/social-media",element:a.jsx(Bqe,{})}),a.jsx(yn,{path:"/admin/promo",element:a.jsx(nze,{})}),a.jsx(yn,{path:"/partners",element:a.jsx(rze,{})}),a.jsx(yn,{path:"/partners/apply",element:a.jsx(oze,{})}),a.jsx(yn,{path:"/partner-dashboard",element:a.jsx(Nze,{})}),a.jsx(yn,{path:"/admin/partners",element:a.jsx(Aze,{})}),a.jsx(yn,{path:"/admin/partner-leads",element:a.jsx(Eze,{})}),a.jsx(yn,{path:"/admin/marketing-resources",element:a.jsx(Tze,{})}),a.jsx(yn,{path:"/admin/payouts",element:a.jsx(Oze,{})}),a.jsx(yn,{path:"/admin/training",element:a.jsx(Ize,{})}),a.jsx(yn,{path:"/admin/partner-support",element:a.jsx(Lze,{})}),a.jsx(yn,{path:"/admin/announcements",element:a.jsx(Mze,{})}),a.jsx(yn,{path:"/admin/partner-analytics",element:a.jsx(Dze,{})}),a.jsx(yn,{path:"/r/:partnerCode",element:a.jsx(Fze,{})}),a.jsx(yn,{path:"/content-creators",element:a.jsx(Bze,{})}
1325),a.jsx(yn,{path:"/content-creators/apply",element:a.jsx(Uze,{})}),a.jsx(yn,{path:"/admin/content-creators",element:a.jsx(Vze,{})}),a.jsx(yn,{path:"/encyclopedia",element:a.jsx(Kze,{})}),a.jsx(yn,{path:"/encyclopedia/:slug",element:a.jsx(Yze,{})}),a.jsx(yn,{path:"/admin/encyclopedia",element:a.jsx(Zze,{})}),a.jsx(yn,{path:"/glossary",element:a.jsx(t$e,{})}),a.jsx(yn,{path:"/glossary/:slug",element:a.jsx(n$e,{})}),a.jsx(yn,{path:"/admin/glossary",element:a.jsx(a$e,{})}),a.jsx(yn,{path:"/admin/translations",element:a.jsx(s$e,{})}),a.jsx(yn,{path:"/organization-settings",element:a.jsx(dqe,{})}),a.jsx(yn,{path:"/billing",element:a.jsx(fqe,{})})]}),a.jsx(yn,{path:"*",element:a.jsx(yoe,{})})]})})};function l$e(){return a.jsx(wde,{children:a.jsx(Jme,{children:a.jsx(V0e,{children:a.jsxs(Gae,{client:nse,children:[a.jsx(aoe,{children:a.jsx(o$e,{})}),a.jsx(xae,{})]})})})})}Rte.createRoot(document.getElementById("root")).render(a.jsx(l$e,{}));export{Sr as _,bb as c,Zn 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.